blob: 93c511e8679e2d39af343f012ca8bc8ab00e016b [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for c-ares 1.12.0.
4#
5# Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13
14## -------------------------------- ##
15## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
16## -------------------------------- ##
17
18xc_configure_preamble_ver_major='1'
19xc_configure_preamble_ver_minor='0'
20
21#
22# Set IFS to space, tab and newline.
23#
24
25xc_space=' '
26xc_tab=' '
27xc_newline='
28'
29IFS="$xc_space$xc_tab$xc_newline"
30
31#
32# Set internationalization behavior variables.
33#
34
35LANG='C'
36LC_ALL='C'
37LANGUAGE='C'
38export LANG
39export LC_ALL
40export LANGUAGE
41
42#
43# Some useful variables.
44#
45
46xc_msg_warn='configure: WARNING:'
47xc_msg_abrt='Can not continue.'
48xc_msg_err='configure: error:'
49
50#
51# Verify that 'echo' command is available, otherwise abort.
52#
53
54xc_tst_str='unknown'
55(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
56case "x$xc_tst_str" in # ((
57 xsuccess)
58 :
59 ;;
60 *)
61 # Try built-in echo, and fail.
62 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
63 exit 1
64 ;;
65esac
66
67#
68# Verify that 'test' command is available, otherwise abort.
69#
70
71xc_tst_str='unknown'
72(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
73case "x$xc_tst_str" in # ((
74 xsuccess)
75 :
76 ;;
77 *)
78 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
79 exit 1
80 ;;
81esac
82
83#
84# Verify that 'PATH' variable is set, otherwise abort.
85#
86
87xc_tst_str='unknown'
88(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
89case "x$xc_tst_str" in # ((
90 xsuccess)
91 :
92 ;;
93 *)
94 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
95 exit 1
96 ;;
97esac
98
99#
100# Verify that 'expr' command is available, otherwise abort.
101#
102
103xc_tst_str='unknown'
104xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
105case "x$xc_tst_str" in # ((
106 x7)
107 :
108 ;;
109 *)
110 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
111 exit 1
112 ;;
113esac
114
115#
116# Verify that 'sed' utility is found within 'PATH', otherwise abort.
117#
118
119xc_tst_str='unknown'
120xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
121 | sed -e 's:unknown:success:' 2>/dev/null`
122case "x$xc_tst_str" in # ((
123 xsuccess)
124 :
125 ;;
126 *)
127 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
128 exit 1
129 ;;
130esac
131
132#
133# Verify that 'grep' utility is found within 'PATH', otherwise abort.
134#
135
136xc_tst_str='unknown'
137(`echo "$xc_tst_str" 2>/dev/null \
138 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
139case "x$xc_tst_str" in # ((
140 xsuccess)
141 :
142 ;;
143 *)
144 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
145 exit 1
146 ;;
147esac
148
149#
150# Verify that 'tr' utility is found within 'PATH', otherwise abort.
151#
152
153xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
154xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
155 | tr -d "0123456789$xc_tab" 2>/dev/null`
156case "x$xc_tst_str" in # ((
157 xsuccess)
158 :
159 ;;
160 *)
161 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
162 exit 1
163 ;;
164esac
165
166#
167# Verify that 'wc' utility is found within 'PATH', otherwise abort.
168#
169
170xc_tst_str='unknown unknown unknown unknown'
171xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
172 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
173case "x$xc_tst_str" in # ((
174 x4)
175 :
176 ;;
177 *)
178 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
179 exit 1
180 ;;
181esac
182
183#
184# Verify that 'cat' utility is found within 'PATH', otherwise abort.
185#
186
187xc_tst_str='unknown'
188xc_tst_str=`cat <<_EOT 2>/dev/null \
189 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
190unknown
191unknown
192unknown
193_EOT`
194case "x$xc_tst_str" in # ((
195 x3)
196 :
197 ;;
198 *)
199 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
200 exit 1
201 ;;
202esac
203
204#
205# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
206#
207
208# Directory count in 'PATH' when using a colon separator.
209xc_tst_dirs_col='x'
210xc_tst_prev_IFS=$IFS; IFS=':'
211for xc_tst_dir in $PATH; do
212 IFS=$xc_tst_prev_IFS
213 xc_tst_dirs_col="x$xc_tst_dirs_col"
214done
215IFS=$xc_tst_prev_IFS
216xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
217
218# Directory count in 'PATH' when using a semicolon separator.
219xc_tst_dirs_sem='x'
220xc_tst_prev_IFS=$IFS; IFS=';'
221for xc_tst_dir in $PATH; do
222 IFS=$xc_tst_prev_IFS
223 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
224done
225IFS=$xc_tst_prev_IFS
226xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
227
228if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
229 # When both counting methods give the same result we do not want to
230 # chose one over the other, and consider auto-detection not possible.
231 if test -z "$PATH_SEPARATOR"; then
232 # Stop dead until user provides 'PATH_SEPARATOR' definition.
233 echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
234 exit 1
235 fi
236else
237 # Separator with the greater directory count is the auto-detected one.
238 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
239 xc_tst_auto_separator=';'
240 else
241 xc_tst_auto_separator=':'
242 fi
243 if test -z "$PATH_SEPARATOR"; then
244 # Simply use the auto-detected one when not already set.
245 PATH_SEPARATOR=$xc_tst_auto_separator
246 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
247 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
248 fi
249fi
250xc_PATH_SEPARATOR=$PATH_SEPARATOR
251
252xc_configure_preamble_result='yes'
253
254
255## -------------------- ##
256## M4sh Initialization. ##
257## -------------------- ##
258
259# Be more Bourne compatible
260DUALCASE=1; export DUALCASE # for MKS sh
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in #(
270 *posix*) :
271 set -o posix ;; #(
272 *) :
273 ;;
274esac
275fi
276
277
278as_nl='
279'
280export as_nl
281# Printing a long string crashes Solaris 7 /usr/bin/printf.
282as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
283as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
284as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
285# Prefer a ksh shell builtin over an external printf program on Solaris,
286# but without wasting forks for bash or zsh.
287if test -z "$BASH_VERSION$ZSH_VERSION" \
288 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
289 as_echo='print -r --'
290 as_echo_n='print -rn --'
291elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
292 as_echo='printf %s\n'
293 as_echo_n='printf %s'
294else
295 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
296 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
297 as_echo_n='/usr/ucb/echo -n'
298 else
299 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
300 as_echo_n_body='eval
301 arg=$1;
302 case $arg in #(
303 *"$as_nl"*)
304 expr "X$arg" : "X\\(.*\\)$as_nl";
305 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
306 esac;
307 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
308 '
309 export as_echo_n_body
310 as_echo_n='sh -c $as_echo_n_body as_echo'
311 fi
312 export as_echo_body
313 as_echo='sh -c $as_echo_body as_echo'
314fi
315
316
317
318# IFS
319# We need space, tab and new line, in precisely that order. Quoting is
320# there to prevent editors from complaining about space-tab.
321# (If _AS_PATH_WALK were called with IFS unset, it would disable word
322# splitting by setting IFS to empty value.)
323IFS=" "" $as_nl"
324
325# Find who we are. Look in the path if we contain no directory separator.
326as_myself=
327case $0 in #((
328 *[\\/]* ) as_myself=$0 ;;
329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
330for as_dir in $PATH
331do
332 IFS=$as_save_IFS
333 test -z "$as_dir" && as_dir=.
334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
335 done
336IFS=$as_save_IFS
337
338 ;;
339esac
340# We did not find ourselves, most probably we were run as `sh COMMAND'
341# in which case we are not to be found in the path.
342if test "x$as_myself" = x; then
343 as_myself=$0
344fi
345if test ! -f "$as_myself"; then
346 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
347 exit 1
348fi
349
350# Unset variables that we do not need and which cause bugs (e.g. in
351# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
352# suppresses any "Segmentation fault" message there. '((' could
353# trigger a bug in pdksh 5.2.14.
354for as_var in BASH_ENV ENV MAIL MAILPATH
355do eval test x\${$as_var+set} = xset \
356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
357done
358PS1='$ '
359PS2='> '
360PS4='+ '
361
362# NLS nuisances.
363LC_ALL=C
364export LC_ALL
365LANGUAGE=C
366export LANGUAGE
367
368# CDPATH.
369(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
370
371# Use a proper internal environment variable to ensure we don't fall
372 # into an infinite loop, continuously re-executing ourselves.
373 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
374 _as_can_reexec=no; export _as_can_reexec;
375 # We cannot yet assume a decent shell, so we have to provide a
376# neutralization value for shells without unset; and this also
377# works around shells that cannot unset nonexistent variables.
378# Preserve -v and -x to the replacement shell.
379BASH_ENV=/dev/null
380ENV=/dev/null
381(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
382case $- in # ((((
383 *v*x* | *x*v* ) as_opts=-vx ;;
384 *v* ) as_opts=-v ;;
385 *x* ) as_opts=-x ;;
386 * ) as_opts= ;;
387esac
388exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
389# Admittedly, this is quite paranoid, since all the known shells bail
390# out after a failed `exec'.
391$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
392as_fn_exit 255
393 fi
394 # We don't want this to propagate to other subprocesses.
395 { _as_can_reexec=; unset _as_can_reexec;}
396if test "x$CONFIG_SHELL" = x; then
397 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
398 emulate sh
399 NULLCMD=:
400 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
401 # is contrary to our usage. Disable this feature.
402 alias -g '\${1+\"\$@\"}'='\"\$@\"'
403 setopt NO_GLOB_SUBST
404else
405 case \`(set -o) 2>/dev/null\` in #(
406 *posix*) :
407 set -o posix ;; #(
408 *) :
409 ;;
410esac
411fi
412"
413 as_required="as_fn_return () { (exit \$1); }
414as_fn_success () { as_fn_return 0; }
415as_fn_failure () { as_fn_return 1; }
416as_fn_ret_success () { return 0; }
417as_fn_ret_failure () { return 1; }
418
419exitcode=0
420as_fn_success || { exitcode=1; echo as_fn_success failed.; }
421as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
422as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
423as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
424if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
425
426else
427 exitcode=1; echo positional parameters were not saved.
428fi
429test x\$exitcode = x0 || exit 1
430test -x / || exit 1"
431 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
432 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
433 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
434 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
435test \$(( 1 + 1 )) = 2 || exit 1
436
437 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
438 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
439 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
440 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
441 PATH=/empty FPATH=/empty; export PATH FPATH
442 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
443 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
444 if (eval "$as_required") 2>/dev/null; then :
445 as_have_required=yes
446else
447 as_have_required=no
448fi
449 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
450
451else
452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
453as_found=false
454for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
455do
456 IFS=$as_save_IFS
457 test -z "$as_dir" && as_dir=.
458 as_found=:
459 case $as_dir in #(
460 /*)
461 for as_base in sh bash ksh sh5; do
462 # Try only shells that exist, to save several forks.
463 as_shell=$as_dir/$as_base
464 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
465 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
466 CONFIG_SHELL=$as_shell as_have_required=yes
467 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
468 break 2
469fi
470fi
471 done;;
472 esac
473 as_found=false
474done
475$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
476 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
477 CONFIG_SHELL=$SHELL as_have_required=yes
478fi; }
479IFS=$as_save_IFS
480
481
482 if test "x$CONFIG_SHELL" != x; then :
483 export CONFIG_SHELL
484 # We cannot yet assume a decent shell, so we have to provide a
485# neutralization value for shells without unset; and this also
486# works around shells that cannot unset nonexistent variables.
487# Preserve -v and -x to the replacement shell.
488BASH_ENV=/dev/null
489ENV=/dev/null
490(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
491case $- in # ((((
492 *v*x* | *x*v* ) as_opts=-vx ;;
493 *v* ) as_opts=-v ;;
494 *x* ) as_opts=-x ;;
495 * ) as_opts= ;;
496esac
497exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
498# Admittedly, this is quite paranoid, since all the known shells bail
499# out after a failed `exec'.
500$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
501exit 255
502fi
503
504 if test x$as_have_required = xno; then :
505 $as_echo "$0: This script requires a shell more modern than all"
506 $as_echo "$0: the shells that I found on your system."
507 if test x${ZSH_VERSION+set} = xset ; then
508 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
509 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
510 else
511 $as_echo "$0: Please tell bug-autoconf@gnu.org and c-ares mailing
512$0: list: http://cool.haxx.se/mailman/listinfo/c-ares about
513$0: your system, including any error possibly output before
514$0: this message. Then install a modern shell, or manually
515$0: run the script under such a shell if you do have one."
516 fi
517 exit 1
518fi
519fi
520fi
521SHELL=${CONFIG_SHELL-/bin/sh}
522export SHELL
523# Unset more variables known to interfere with behavior of common tools.
524CLICOLOR_FORCE= GREP_OPTIONS=
525unset CLICOLOR_FORCE GREP_OPTIONS
526
527## --------------------- ##
528## M4sh Shell Functions. ##
529## --------------------- ##
530# as_fn_unset VAR
531# ---------------
532# Portably unset VAR.
533as_fn_unset ()
534{
535 { eval $1=; unset $1;}
536}
537as_unset=as_fn_unset
538
539# as_fn_set_status STATUS
540# -----------------------
541# Set $? to STATUS, without forking.
542as_fn_set_status ()
543{
544 return $1
545} # as_fn_set_status
546
547# as_fn_exit STATUS
548# -----------------
549# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
550as_fn_exit ()
551{
552 set +e
553 as_fn_set_status $1
554 exit $1
555} # as_fn_exit
556
557# as_fn_mkdir_p
558# -------------
559# Create "$as_dir" as a directory, including parents if necessary.
560as_fn_mkdir_p ()
561{
562
563 case $as_dir in #(
564 -*) as_dir=./$as_dir;;
565 esac
566 test -d "$as_dir" || eval $as_mkdir_p || {
567 as_dirs=
568 while :; do
569 case $as_dir in #(
570 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
571 *) as_qdir=$as_dir;;
572 esac
573 as_dirs="'$as_qdir' $as_dirs"
574 as_dir=`$as_dirname -- "$as_dir" ||
575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
576 X"$as_dir" : 'X\(//\)[^/]' \| \
577 X"$as_dir" : 'X\(//\)$' \| \
578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
579$as_echo X"$as_dir" |
580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
581 s//\1/
582 q
583 }
584 /^X\(\/\/\)[^/].*/{
585 s//\1/
586 q
587 }
588 /^X\(\/\/\)$/{
589 s//\1/
590 q
591 }
592 /^X\(\/\).*/{
593 s//\1/
594 q
595 }
596 s/.*/./; q'`
597 test -d "$as_dir" && break
598 done
599 test -z "$as_dirs" || eval "mkdir $as_dirs"
600 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
601
602
603} # as_fn_mkdir_p
604
605# as_fn_executable_p FILE
606# -----------------------
607# Test if FILE is an executable regular file.
608as_fn_executable_p ()
609{
610 test -f "$1" && test -x "$1"
611} # as_fn_executable_p
612# as_fn_append VAR VALUE
613# ----------------------
614# Append the text in VALUE to the end of the definition contained in VAR. Take
615# advantage of any shell optimizations that allow amortized linear growth over
616# repeated appends, instead of the typical quadratic growth present in naive
617# implementations.
618if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
619 eval 'as_fn_append ()
620 {
621 eval $1+=\$2
622 }'
623else
624 as_fn_append ()
625 {
626 eval $1=\$$1\$2
627 }
628fi # as_fn_append
629
630# as_fn_arith ARG...
631# ------------------
632# Perform arithmetic evaluation on the ARGs, and store the result in the
633# global $as_val. Take advantage of shells that can avoid forks. The arguments
634# must be portable across $(()) and expr.
635if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
636 eval 'as_fn_arith ()
637 {
638 as_val=$(( $* ))
639 }'
640else
641 as_fn_arith ()
642 {
643 as_val=`expr "$@" || test $? -eq 1`
644 }
645fi # as_fn_arith
646
647
648# as_fn_error STATUS ERROR [LINENO LOG_FD]
649# ----------------------------------------
650# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
651# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
652# script with STATUS, using 1 if that was 0.
653as_fn_error ()
654{
655 as_status=$1; test $as_status -eq 0 && as_status=1
656 if test "$4"; then
657 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
658 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
659 fi
660 $as_echo "$as_me: error: $2" >&2
661 as_fn_exit $as_status
662} # as_fn_error
663
664if expr a : '\(a\)' >/dev/null 2>&1 &&
665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
666 as_expr=expr
667else
668 as_expr=false
669fi
670
671if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
672 as_basename=basename
673else
674 as_basename=false
675fi
676
677if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
678 as_dirname=dirname
679else
680 as_dirname=false
681fi
682
683as_me=`$as_basename -- "$0" ||
684$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
685 X"$0" : 'X\(//\)$' \| \
686 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
687$as_echo X/"$0" |
688 sed '/^.*\/\([^/][^/]*\)\/*$/{
689 s//\1/
690 q
691 }
692 /^X\/\(\/\/\)$/{
693 s//\1/
694 q
695 }
696 /^X\/\(\/\).*/{
697 s//\1/
698 q
699 }
700 s/.*/./; q'`
701
702# Avoid depending upon Character Ranges.
703as_cr_letters='abcdefghijklmnopqrstuvwxyz'
704as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
705as_cr_Letters=$as_cr_letters$as_cr_LETTERS
706as_cr_digits='0123456789'
707as_cr_alnum=$as_cr_Letters$as_cr_digits
708
709
710 as_lineno_1=$LINENO as_lineno_1a=$LINENO
711 as_lineno_2=$LINENO as_lineno_2a=$LINENO
712 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
713 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
714 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
715 sed -n '
716 p
717 /[$]LINENO/=
718 ' <$as_myself |
719 sed '
720 s/[$]LINENO.*/&-/
721 t lineno
722 b
723 :lineno
724 N
725 :loop
726 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
727 t loop
728 s/-\n.*//
729 ' >$as_me.lineno &&
730 chmod +x "$as_me.lineno" ||
731 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
732
733 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
734 # already done that, so ensure we don't try to do so again and fall
735 # in an infinite loop. This has already happened in practice.
736 _as_can_reexec=no; export _as_can_reexec
737 # Don't try to exec as it changes $[0], causing all sort of problems
738 # (the dirname of $[0] is not the place where we might find the
739 # original and so on. Autoconf is especially sensitive to this).
740 . "./$as_me.lineno"
741 # Exit status is that of the last command.
742 exit
743}
744
745ECHO_C= ECHO_N= ECHO_T=
746case `echo -n x` in #(((((
747-n*)
748 case `echo 'xy\c'` in
749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
750 xy) ECHO_C='\c';;
751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
752 ECHO_T=' ';;
753 esac;;
754*)
755 ECHO_N='-n';;
756esac
757
758rm -f conf$$ conf$$.exe conf$$.file
759if test -d conf$$.dir; then
760 rm -f conf$$.dir/conf$$.file
761else
762 rm -f conf$$.dir
763 mkdir conf$$.dir 2>/dev/null
764fi
765if (echo >conf$$.file) 2>/dev/null; then
766 if ln -s conf$$.file conf$$ 2>/dev/null; then
767 as_ln_s='ln -s'
768 # ... but there are two gotchas:
769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
771 # In both cases, we have to default to `cp -pR'.
772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
773 as_ln_s='cp -pR'
774 elif ln conf$$.file conf$$ 2>/dev/null; then
775 as_ln_s=ln
776 else
777 as_ln_s='cp -pR'
778 fi
779else
780 as_ln_s='cp -pR'
781fi
782rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
783rmdir conf$$.dir 2>/dev/null
784
785if mkdir -p . 2>/dev/null; then
786 as_mkdir_p='mkdir -p "$as_dir"'
787else
788 test -d ./-p && rmdir ./-p
789 as_mkdir_p=false
790fi
791
792as_test_x='test -x'
793as_executable_p=as_fn_executable_p
794
795# Sed expression to map a string onto a valid CPP name.
796as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
797
798# Sed expression to map a string onto a valid variable name.
799as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
800
801SHELL=${CONFIG_SHELL-/bin/sh}
802
803
804test -n "$DJDIR" || exec 7<&0 </dev/null
805exec 6>&1
806
807# Name of the host.
808# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
809# so uname gets run too.
810ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
811
812#
813# Initializations.
814#
815ac_default_prefix=/usr/local
816ac_clean_files=
817ac_config_libobj_dir=.
818LIBOBJS=
819cross_compiling=no
820subdirs=
821MFLAGS=
822MAKEFLAGS=
823
824# Identity of this package.
825PACKAGE_NAME='c-ares'
826PACKAGE_TARNAME='c-ares'
827PACKAGE_VERSION='1.12.0'
828PACKAGE_STRING='c-ares 1.12.0'
829PACKAGE_BUGREPORT='c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares'
830PACKAGE_URL=''
831
832ac_unique_file="ares_ipv6.h"
833# Factoring default headers for most tests.
834ac_includes_default="\
835#include <stdio.h>
836#ifdef HAVE_SYS_TYPES_H
837# include <sys/types.h>
838#endif
839#ifdef HAVE_SYS_STAT_H
840# include <sys/stat.h>
841#endif
842#ifdef STDC_HEADERS
843# include <stdlib.h>
844# include <stddef.h>
845#else
846# ifdef HAVE_STDLIB_H
847# include <stdlib.h>
848# endif
849#endif
850#ifdef HAVE_STRING_H
851# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
852# include <memory.h>
853# endif
854# include <string.h>
855#endif
856#ifdef HAVE_STRINGS_H
857# include <strings.h>
858#endif
859#ifdef HAVE_INTTYPES_H
860# include <inttypes.h>
861#endif
862#ifdef HAVE_STDINT_H
863# include <stdint.h>
864#endif
865#ifdef HAVE_UNISTD_H
866# include <unistd.h>
867#endif"
868
869enable_option_checking=no
870ac_subst_vars='am__EXEEXT_FALSE
871am__EXEEXT_TRUE
872LTLIBOBJS
873LIBOBJS
874subdirs
875CARES_CFLAG_EXTRAS
876CARES_PRIVATE_LIBS
877CFLAG_CARES_SYMBOL_HIDING
878DOING_CARES_SYMBOL_HIDING_FALSE
879DOING_CARES_SYMBOL_HIDING_TRUE
880RANDOM_FILE
881DOING_NATIVE_WINDOWS_FALSE
882DOING_NATIVE_WINDOWS_TRUE
883CURLDEBUG_FALSE
884CURLDEBUG_TRUE
885CPPFLAG_CARES_STATICLIB
886USE_CPPFLAG_CARES_STATICLIB_FALSE
887USE_CPPFLAG_CARES_STATICLIB_TRUE
888CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
889CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
890CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE
891CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE
892CARES_LT_SHLIB_USE_VERSION_INFO_FALSE
893CARES_LT_SHLIB_USE_VERSION_INFO_TRUE
894CXXCPP
895LT_SYS_LIBRARY_PATH
896OTOOL64
897OTOOL
898LIPO
899NMEDIT
900DSYMUTIL
901MANIFEST_TOOL
902RANLIB
903ac_ct_AR
904LN_S
905NM
906ac_ct_DUMPBIN
907DUMPBIN
908LD
909FGREP
910LIBTOOL
911OBJDUMP
912DLLTOOL
913AS
914am__fastdepCXX_FALSE
915am__fastdepCXX_TRUE
916CXXDEPMODE
917am__fastdepCC_FALSE
918am__fastdepCC_TRUE
919CCDEPMODE
920am__nodep
921AMDEPBACKSLASH
922AMDEP_FALSE
923AMDEP_TRUE
924am__quote
925am__include
926DEPDIR
927am__untar
928am__tar
929AMTAR
930am__leading_dot
931SET_MAKE
932AWK
933mkdir_p
934MKDIR_P
935INSTALL_STRIP_PROGRAM
936STRIP
937install_sh
938MAKEINFO
939AUTOHEADER
940AUTOMAKE
941AUTOCONF
942ACLOCAL
943VERSION
944PACKAGE
945CYGPATH_W
946am__isrc
947HAVE_CXX11
948ac_ct_CXX
949CXXFLAGS
950CXX
951CPP
952OBJEXT
953EXEEXT
954ac_ct_CC
955CPPFLAGS
956LDFLAGS
957CFLAGS
958CC
959INSTALL_DATA
960INSTALL_SCRIPT
961INSTALL_PROGRAM
962host_os
963host_vendor
964host_cpu
965host
966build_os
967build_vendor
968build_cpu
969build
970CODE_COVERAGE_RULES
971CODE_COVERAGE_LDFLAGS
972CODE_COVERAGE_CFLAGS
973GENHTML
974LCOV
975GCOV
976CODE_COVERAGE_ENABLED
977CODE_COVERAGE_ENABLED_FALSE
978CODE_COVERAGE_ENABLED_TRUE
979AR
980EGREP
981GREP
982SED
983AM_BACKSLASH
984AM_DEFAULT_VERBOSITY
985AM_DEFAULT_V
986AM_V
987MAINT
988MAINTAINER_MODE_FALSE
989MAINTAINER_MODE_TRUE
990target_alias
991host_alias
992build_alias
993LIBS
994ECHO_T
995ECHO_N
996ECHO_C
997DEFS
998mandir
999localedir
1000libdir
1001psdir
1002pdfdir
1003dvidir
1004htmldir
1005infodir
1006docdir
1007oldincludedir
1008includedir
1009runstatedir
1010localstatedir
1011sharedstatedir
1012sysconfdir
1013datadir
1014datarootdir
1015libexecdir
1016sbindir
1017bindir
1018program_transform_name
1019prefix
1020exec_prefix
1021PACKAGE_URL
1022PACKAGE_BUGREPORT
1023PACKAGE_STRING
1024PACKAGE_VERSION
1025PACKAGE_TARNAME
1026PACKAGE_NAME
1027SHELL
1028PATH_SEPARATOR'
1029ac_subst_files=''
1030ac_user_opts='
1031enable_option_checking
1032enable_maintainer_mode
1033enable_silent_rules
1034enable_debug
1035enable_optimize
1036enable_warnings
1037enable_werror
1038enable_curldebug
1039enable_symbol_hiding
1040enable_expose_statics
1041with_gcov
1042enable_code_coverage
1043enable_dependency_tracking
1044enable_largefile
1045enable_shared
1046enable_static
1047with_pic
1048enable_fast_install
1049with_aix_soname
1050with_gnu_ld
1051with_sysroot
1052enable_libtool_lock
1053enable_libgcc
1054with_random
1055enable_nonblocking
1056enable_tests
1057'
1058 ac_precious_vars='build_alias
1059host_alias
1060target_alias
1061CC
1062CFLAGS
1063LDFLAGS
1064LIBS
1065CPPFLAGS
1066CPP
1067CXX
1068CXXFLAGS
1069CCC
1070LT_SYS_LIBRARY_PATH
1071CXXCPP'
1072ac_subdirs_all='test'
1073
1074# Initialize some variables set by options.
1075ac_init_help=
1076ac_init_version=false
1077ac_unrecognized_opts=
1078ac_unrecognized_sep=
1079# The variables have the same names as the options, with
1080# dashes changed to underlines.
1081cache_file=/dev/null
1082exec_prefix=NONE
1083no_create=
1084no_recursion=
1085prefix=NONE
1086program_prefix=NONE
1087program_suffix=NONE
1088program_transform_name=s,x,x,
1089silent=
1090site=
1091srcdir=
1092verbose=
1093x_includes=NONE
1094x_libraries=NONE
1095
1096# Installation directory options.
1097# These are left unexpanded so users can "make install exec_prefix=/foo"
1098# and all the variables that are supposed to be based on exec_prefix
1099# by default will actually change.
1100# Use braces instead of parens because sh, perl, etc. also accept them.
1101# (The list follows the same order as the GNU Coding Standards.)
1102bindir='${exec_prefix}/bin'
1103sbindir='${exec_prefix}/sbin'
1104libexecdir='${exec_prefix}/libexec'
1105datarootdir='${prefix}/share'
1106datadir='${datarootdir}'
1107sysconfdir='${prefix}/etc'
1108sharedstatedir='${prefix}/com'
1109localstatedir='${prefix}/var'
1110runstatedir='${localstatedir}/run'
1111includedir='${prefix}/include'
1112oldincludedir='/usr/include'
1113docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1114infodir='${datarootdir}/info'
1115htmldir='${docdir}'
1116dvidir='${docdir}'
1117pdfdir='${docdir}'
1118psdir='${docdir}'
1119libdir='${exec_prefix}/lib'
1120localedir='${datarootdir}/locale'
1121mandir='${datarootdir}/man'
1122
1123ac_prev=
1124ac_dashdash=
1125for ac_option
1126do
1127 # If the previous option needs an argument, assign it.
1128 if test -n "$ac_prev"; then
1129 eval $ac_prev=\$ac_option
1130 ac_prev=
1131 continue
1132 fi
1133
1134 case $ac_option in
1135 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1136 *=) ac_optarg= ;;
1137 *) ac_optarg=yes ;;
1138 esac
1139
1140 # Accept the important Cygnus configure options, so we can diagnose typos.
1141
1142 case $ac_dashdash$ac_option in
1143 --)
1144 ac_dashdash=yes ;;
1145
1146 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1147 ac_prev=bindir ;;
1148 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1149 bindir=$ac_optarg ;;
1150
1151 -build | --build | --buil | --bui | --bu)
1152 ac_prev=build_alias ;;
1153 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1154 build_alias=$ac_optarg ;;
1155
1156 -cache-file | --cache-file | --cache-fil | --cache-fi \
1157 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1158 ac_prev=cache_file ;;
1159 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1160 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1161 cache_file=$ac_optarg ;;
1162
1163 --config-cache | -C)
1164 cache_file=config.cache ;;
1165
1166 -datadir | --datadir | --datadi | --datad)
1167 ac_prev=datadir ;;
1168 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1169 datadir=$ac_optarg ;;
1170
1171 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1172 | --dataroo | --dataro | --datar)
1173 ac_prev=datarootdir ;;
1174 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1175 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1176 datarootdir=$ac_optarg ;;
1177
1178 -disable-* | --disable-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid feature name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"enable_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval enable_$ac_useropt=no ;;
1193
1194 -docdir | --docdir | --docdi | --doc | --do)
1195 ac_prev=docdir ;;
1196 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1197 docdir=$ac_optarg ;;
1198
1199 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1200 ac_prev=dvidir ;;
1201 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1202 dvidir=$ac_optarg ;;
1203
1204 -enable-* | --enable-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid feature name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213"enable_$ac_useropt"
1214"*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval enable_$ac_useropt=\$ac_optarg ;;
1219
1220 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1221 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1222 | --exec | --exe | --ex)
1223 ac_prev=exec_prefix ;;
1224 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1225 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1226 | --exec=* | --exe=* | --ex=*)
1227 exec_prefix=$ac_optarg ;;
1228
1229 -gas | --gas | --ga | --g)
1230 # Obsolete; use --with-gas.
1231 with_gas=yes ;;
1232
1233 -help | --help | --hel | --he | -h)
1234 ac_init_help=long ;;
1235 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1236 ac_init_help=recursive ;;
1237 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1238 ac_init_help=short ;;
1239
1240 -host | --host | --hos | --ho)
1241 ac_prev=host_alias ;;
1242 -host=* | --host=* | --hos=* | --ho=*)
1243 host_alias=$ac_optarg ;;
1244
1245 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1246 ac_prev=htmldir ;;
1247 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1248 | --ht=*)
1249 htmldir=$ac_optarg ;;
1250
1251 -includedir | --includedir | --includedi | --included | --include \
1252 | --includ | --inclu | --incl | --inc)
1253 ac_prev=includedir ;;
1254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1255 | --includ=* | --inclu=* | --incl=* | --inc=*)
1256 includedir=$ac_optarg ;;
1257
1258 -infodir | --infodir | --infodi | --infod | --info | --inf)
1259 ac_prev=infodir ;;
1260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1261 infodir=$ac_optarg ;;
1262
1263 -libdir | --libdir | --libdi | --libd)
1264 ac_prev=libdir ;;
1265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1266 libdir=$ac_optarg ;;
1267
1268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1269 | --libexe | --libex | --libe)
1270 ac_prev=libexecdir ;;
1271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1272 | --libexe=* | --libex=* | --libe=*)
1273 libexecdir=$ac_optarg ;;
1274
1275 -localedir | --localedir | --localedi | --localed | --locale)
1276 ac_prev=localedir ;;
1277 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1278 localedir=$ac_optarg ;;
1279
1280 -localstatedir | --localstatedir | --localstatedi | --localstated \
1281 | --localstate | --localstat | --localsta | --localst | --locals)
1282 ac_prev=localstatedir ;;
1283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1284 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1285 localstatedir=$ac_optarg ;;
1286
1287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1288 ac_prev=mandir ;;
1289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1290 mandir=$ac_optarg ;;
1291
1292 -nfp | --nfp | --nf)
1293 # Obsolete; use --without-fp.
1294 with_fp=no ;;
1295
1296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1297 | --no-cr | --no-c | -n)
1298 no_create=yes ;;
1299
1300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1302 no_recursion=yes ;;
1303
1304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1306 | --oldin | --oldi | --old | --ol | --o)
1307 ac_prev=oldincludedir ;;
1308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1311 oldincludedir=$ac_optarg ;;
1312
1313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1314 ac_prev=prefix ;;
1315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1316 prefix=$ac_optarg ;;
1317
1318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1319 | --program-pre | --program-pr | --program-p)
1320 ac_prev=program_prefix ;;
1321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1323 program_prefix=$ac_optarg ;;
1324
1325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1326 | --program-suf | --program-su | --program-s)
1327 ac_prev=program_suffix ;;
1328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1330 program_suffix=$ac_optarg ;;
1331
1332 -program-transform-name | --program-transform-name \
1333 | --program-transform-nam | --program-transform-na \
1334 | --program-transform-n | --program-transform- \
1335 | --program-transform | --program-transfor \
1336 | --program-transfo | --program-transf \
1337 | --program-trans | --program-tran \
1338 | --progr-tra | --program-tr | --program-t)
1339 ac_prev=program_transform_name ;;
1340 -program-transform-name=* | --program-transform-name=* \
1341 | --program-transform-nam=* | --program-transform-na=* \
1342 | --program-transform-n=* | --program-transform-=* \
1343 | --program-transform=* | --program-transfor=* \
1344 | --program-transfo=* | --program-transf=* \
1345 | --program-trans=* | --program-tran=* \
1346 | --progr-tra=* | --program-tr=* | --program-t=*)
1347 program_transform_name=$ac_optarg ;;
1348
1349 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1350 ac_prev=pdfdir ;;
1351 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1352 pdfdir=$ac_optarg ;;
1353
1354 -psdir | --psdir | --psdi | --psd | --ps)
1355 ac_prev=psdir ;;
1356 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1357 psdir=$ac_optarg ;;
1358
1359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1360 | -silent | --silent | --silen | --sile | --sil)
1361 silent=yes ;;
1362
1363 -runstatedir | --runstatedir | --runstatedi | --runstated \
1364 | --runstate | --runstat | --runsta | --runst | --runs \
1365 | --run | --ru | --r)
1366 ac_prev=runstatedir ;;
1367 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1368 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1369 | --run=* | --ru=* | --r=*)
1370 runstatedir=$ac_optarg ;;
1371
1372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1373 ac_prev=sbindir ;;
1374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1375 | --sbi=* | --sb=*)
1376 sbindir=$ac_optarg ;;
1377
1378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1380 | --sharedst | --shareds | --shared | --share | --shar \
1381 | --sha | --sh)
1382 ac_prev=sharedstatedir ;;
1383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1386 | --sha=* | --sh=*)
1387 sharedstatedir=$ac_optarg ;;
1388
1389 -site | --site | --sit)
1390 ac_prev=site ;;
1391 -site=* | --site=* | --sit=*)
1392 site=$ac_optarg ;;
1393
1394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1395 ac_prev=srcdir ;;
1396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1397 srcdir=$ac_optarg ;;
1398
1399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1400 | --syscon | --sysco | --sysc | --sys | --sy)
1401 ac_prev=sysconfdir ;;
1402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1404 sysconfdir=$ac_optarg ;;
1405
1406 -target | --target | --targe | --targ | --tar | --ta | --t)
1407 ac_prev=target_alias ;;
1408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1409 target_alias=$ac_optarg ;;
1410
1411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1412 verbose=yes ;;
1413
1414 -version | --version | --versio | --versi | --vers | -V)
1415 ac_init_version=: ;;
1416
1417 -with-* | --with-*)
1418 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1419 # Reject names that are not valid shell variable names.
1420 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1421 as_fn_error $? "invalid package name: $ac_useropt"
1422 ac_useropt_orig=$ac_useropt
1423 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1424 case $ac_user_opts in
1425 *"
1426"with_$ac_useropt"
1427"*) ;;
1428 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1429 ac_unrecognized_sep=', ';;
1430 esac
1431 eval with_$ac_useropt=\$ac_optarg ;;
1432
1433 -without-* | --without-*)
1434 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1435 # Reject names that are not valid shell variable names.
1436 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1437 as_fn_error $? "invalid package name: $ac_useropt"
1438 ac_useropt_orig=$ac_useropt
1439 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1440 case $ac_user_opts in
1441 *"
1442"with_$ac_useropt"
1443"*) ;;
1444 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1445 ac_unrecognized_sep=', ';;
1446 esac
1447 eval with_$ac_useropt=no ;;
1448
1449 --x)
1450 # Obsolete; use --with-x.
1451 with_x=yes ;;
1452
1453 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1454 | --x-incl | --x-inc | --x-in | --x-i)
1455 ac_prev=x_includes ;;
1456 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1457 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1458 x_includes=$ac_optarg ;;
1459
1460 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1461 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1462 ac_prev=x_libraries ;;
1463 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1464 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1465 x_libraries=$ac_optarg ;;
1466
1467 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1468Try \`$0 --help' for more information"
1469 ;;
1470
1471 *=*)
1472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1473 # Reject names that are not valid shell variable names.
1474 case $ac_envvar in #(
1475 '' | [0-9]* | *[!_$as_cr_alnum]* )
1476 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1477 esac
1478 eval $ac_envvar=\$ac_optarg
1479 export $ac_envvar ;;
1480
1481 *)
1482 # FIXME: should be removed in autoconf 3.0.
1483 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1485 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1486 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1487 ;;
1488
1489 esac
1490done
1491
1492if test -n "$ac_prev"; then
1493 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1494 as_fn_error $? "missing argument to $ac_option"
1495fi
1496
1497if test -n "$ac_unrecognized_opts"; then
1498 case $enable_option_checking in
1499 no) ;;
1500 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1501 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1502 esac
1503fi
1504
1505# Check all directory arguments for consistency.
1506for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1507 datadir sysconfdir sharedstatedir localstatedir includedir \
1508 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1509 libdir localedir mandir runstatedir
1510do
1511 eval ac_val=\$$ac_var
1512 # Remove trailing slashes.
1513 case $ac_val in
1514 */ )
1515 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1516 eval $ac_var=\$ac_val;;
1517 esac
1518 # Be sure to have absolute directory names.
1519 case $ac_val in
1520 [\\/$]* | ?:[\\/]* ) continue;;
1521 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1522 esac
1523 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1524done
1525
1526# There might be people who depend on the old broken behavior: `$host'
1527# used to hold the argument of --host etc.
1528# FIXME: To remove some day.
1529build=$build_alias
1530host=$host_alias
1531target=$target_alias
1532
1533# FIXME: To remove some day.
1534if test "x$host_alias" != x; then
1535 if test "x$build_alias" = x; then
1536 cross_compiling=maybe
1537 elif test "x$build_alias" != "x$host_alias"; then
1538 cross_compiling=yes
1539 fi
1540fi
1541
1542ac_tool_prefix=
1543test -n "$host_alias" && ac_tool_prefix=$host_alias-
1544
1545test "$silent" = yes && exec 6>/dev/null
1546
1547
1548ac_pwd=`pwd` && test -n "$ac_pwd" &&
1549ac_ls_di=`ls -di .` &&
1550ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1551 as_fn_error $? "working directory cannot be determined"
1552test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1553 as_fn_error $? "pwd does not report name of working directory"
1554
1555
1556# Find the source files, if location was not specified.
1557if test -z "$srcdir"; then
1558 ac_srcdir_defaulted=yes
1559 # Try the directory containing this script, then the parent directory.
1560 ac_confdir=`$as_dirname -- "$as_myself" ||
1561$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1562 X"$as_myself" : 'X\(//\)[^/]' \| \
1563 X"$as_myself" : 'X\(//\)$' \| \
1564 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1565$as_echo X"$as_myself" |
1566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1567 s//\1/
1568 q
1569 }
1570 /^X\(\/\/\)[^/].*/{
1571 s//\1/
1572 q
1573 }
1574 /^X\(\/\/\)$/{
1575 s//\1/
1576 q
1577 }
1578 /^X\(\/\).*/{
1579 s//\1/
1580 q
1581 }
1582 s/.*/./; q'`
1583 srcdir=$ac_confdir
1584 if test ! -r "$srcdir/$ac_unique_file"; then
1585 srcdir=..
1586 fi
1587else
1588 ac_srcdir_defaulted=no
1589fi
1590if test ! -r "$srcdir/$ac_unique_file"; then
1591 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1592 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1593fi
1594ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1595ac_abs_confdir=`(
1596 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1597 pwd)`
1598# When building in place, set srcdir=.
1599if test "$ac_abs_confdir" = "$ac_pwd"; then
1600 srcdir=.
1601fi
1602# Remove unnecessary trailing slashes from srcdir.
1603# Double slashes in file names in object file debugging info
1604# mess up M-x gdb in Emacs.
1605case $srcdir in
1606*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1607esac
1608for ac_var in $ac_precious_vars; do
1609 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1610 eval ac_env_${ac_var}_value=\$${ac_var}
1611 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1612 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1613done
1614
1615#
1616# Report the --help message.
1617#
1618if test "$ac_init_help" = "long"; then
1619 # Omit some internal or obsolete options to make the list less imposing.
1620 # This message is too long to be a string in the A/UX 3.1 sh.
1621 cat <<_ACEOF
1622\`configure' configures c-ares 1.12.0 to adapt to many kinds of systems.
1623
1624Usage: $0 [OPTION]... [VAR=VALUE]...
1625
1626To assign environment variables (e.g., CC, CFLAGS...), specify them as
1627VAR=VALUE. See below for descriptions of some of the useful variables.
1628
1629Defaults for the options are specified in brackets.
1630
1631Configuration:
1632 -h, --help display this help and exit
1633 --help=short display options specific to this package
1634 --help=recursive display the short help of all the included packages
1635 -V, --version display version information and exit
1636 -q, --quiet, --silent do not print \`checking ...' messages
1637 --cache-file=FILE cache test results in FILE [disabled]
1638 -C, --config-cache alias for \`--cache-file=config.cache'
1639 -n, --no-create do not create output files
1640 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1641
1642Installation directories:
1643 --prefix=PREFIX install architecture-independent files in PREFIX
1644 [$ac_default_prefix]
1645 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1646 [PREFIX]
1647
1648By default, \`make install' will install all the files in
1649\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1650an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1651for instance \`--prefix=\$HOME'.
1652
1653For better control, use the options below.
1654
1655Fine tuning of the installation directories:
1656 --bindir=DIR user executables [EPREFIX/bin]
1657 --sbindir=DIR system admin executables [EPREFIX/sbin]
1658 --libexecdir=DIR program executables [EPREFIX/libexec]
1659 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1660 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1661 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1662 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1663 --libdir=DIR object code libraries [EPREFIX/lib]
1664 --includedir=DIR C header files [PREFIX/include]
1665 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1666 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1667 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1668 --infodir=DIR info documentation [DATAROOTDIR/info]
1669 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1670 --mandir=DIR man documentation [DATAROOTDIR/man]
1671 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares]
1672 --htmldir=DIR html documentation [DOCDIR]
1673 --dvidir=DIR dvi documentation [DOCDIR]
1674 --pdfdir=DIR pdf documentation [DOCDIR]
1675 --psdir=DIR ps documentation [DOCDIR]
1676_ACEOF
1677
1678 cat <<\_ACEOF
1679
1680Program names:
1681 --program-prefix=PREFIX prepend PREFIX to installed program names
1682 --program-suffix=SUFFIX append SUFFIX to installed program names
1683 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1684
1685System types:
1686 --build=BUILD configure for building on BUILD [guessed]
1687 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1688_ACEOF
1689fi
1690
1691if test -n "$ac_init_help"; then
1692 case $ac_init_help in
1693 short | recursive ) echo "Configuration of c-ares 1.12.0:";;
1694 esac
1695 cat <<\_ACEOF
1696
1697Optional Features:
1698 --disable-option-checking ignore unrecognized --enable/--with options
1699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1701 --enable-maintainer-mode
1702 enable make rules and dependencies not useful (and
1703 sometimes confusing) to the casual installer
1704 --enable-silent-rules less verbose build output (undo: "make V=1")
1705 --disable-silent-rules verbose build output (undo: "make V=0")
1706 --enable-debug Enable debug build options
1707 --disable-debug Disable debug build options
1708 --enable-optimize(=OPT) Enable compiler optimizations (default=-O2)
1709 --disable-optimize Disable compiler optimizations
1710 --enable-warnings Enable strict compiler warnings
1711 --disable-warnings Disable strict compiler warnings
1712 --enable-werror Enable compiler warnings as errors
1713 --disable-werror Disable compiler warnings as errors
1714 --enable-curldebug Enable curl debug memory tracking
1715 --disable-curldebug Disable curl debug memory tracking
1716 --enable-symbol-hiding Enable hiding of library internal symbols
1717 --disable-symbol-hiding Disable hiding of library internal symbols
1718 --enable-expose-statics Enable exposure of internal static functions for
1719 testing
1720 --disable-expose-statics
1721 Disable exposure of internal static functions for
1722 testing
1723 --enable-code-coverage Whether to enable code coverage support
1724 --enable-dependency-tracking
1725 do not reject slow dependency extractors
1726 --disable-dependency-tracking
1727 speeds up one-time build
1728 --disable-largefile omit support for large files
1729 --enable-shared[=PKGS] build shared libraries [default=yes]
1730 --enable-static[=PKGS] build static libraries [default=yes]
1731 --enable-fast-install[=PKGS]
1732 optimize for fast installation [default=yes]
1733 --disable-libtool-lock avoid locking (might break parallel builds)
1734 --enable-libgcc use libgcc when linking
1735 --enable-nonblocking Enable non-blocking communications
1736 --disable-nonblocking Disable non-blocking communications
1737 --enable-tests build test suite
1738
1739Optional Packages:
1740 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1741 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1742 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1743 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1744 both]
1745 --with-aix-soname=aix|svr4|both
1746 shared library versioning (aka "SONAME") variant to
1747 provide on AIX, [default=aix].
1748 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1749 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1750 compiler's sysroot if not specified).
1751 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1752
1753Some influential environment variables:
1754 CC C compiler command
1755 CFLAGS C compiler flags
1756 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1757 nonstandard directory <lib dir>
1758 LIBS libraries to pass to the linker, e.g. -l<library>
1759 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1760 you have headers in a nonstandard directory <include dir>
1761 CPP C preprocessor
1762 CXX C++ compiler command
1763 CXXFLAGS C++ compiler flags
1764 LT_SYS_LIBRARY_PATH
1765 User-defined run-time library search path.
1766 CXXCPP C++ preprocessor
1767
1768Use these variables to override the choices made by `configure' or to help
1769it to find libraries and programs with nonstandard names/locations.
1770
1771Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>.
1772_ACEOF
1773ac_status=$?
1774fi
1775
1776if test "$ac_init_help" = "recursive"; then
1777 # If there are subdirs, report their specific --help.
1778 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779 test -d "$ac_dir" ||
1780 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1781 continue
1782 ac_builddir=.
1783
1784case "$ac_dir" in
1785.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786*)
1787 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788 # A ".." for each directory in $ac_dir_suffix.
1789 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790 case $ac_top_builddir_sub in
1791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1793 esac ;;
1794esac
1795ac_abs_top_builddir=$ac_pwd
1796ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797# for backward compatibility:
1798ac_top_builddir=$ac_top_build_prefix
1799
1800case $srcdir in
1801 .) # We are building in place.
1802 ac_srcdir=.
1803 ac_top_srcdir=$ac_top_builddir_sub
1804 ac_abs_top_srcdir=$ac_pwd ;;
1805 [\\/]* | ?:[\\/]* ) # Absolute name.
1806 ac_srcdir=$srcdir$ac_dir_suffix;
1807 ac_top_srcdir=$srcdir
1808 ac_abs_top_srcdir=$srcdir ;;
1809 *) # Relative name.
1810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811 ac_top_srcdir=$ac_top_build_prefix$srcdir
1812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813esac
1814ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815
1816 cd "$ac_dir" || { ac_status=$?; continue; }
1817 # Check for guested configure.
1818 if test -f "$ac_srcdir/configure.gnu"; then
1819 echo &&
1820 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821 elif test -f "$ac_srcdir/configure"; then
1822 echo &&
1823 $SHELL "$ac_srcdir/configure" --help=recursive
1824 else
1825 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826 fi || ac_status=$?
1827 cd "$ac_pwd" || { ac_status=$?; break; }
1828 done
1829fi
1830
1831test -n "$ac_init_help" && exit $ac_status
1832if $ac_init_version; then
1833 cat <<\_ACEOF
1834c-ares configure 1.12.0
1835generated by GNU Autoconf 2.69
1836
1837Copyright (C) 2012 Free Software Foundation, Inc.
1838This configure script is free software; the Free Software Foundation
1839gives unlimited permission to copy, distribute and modify it.
1840_ACEOF
1841 exit
1842fi
1843
1844## ------------------------ ##
1845## Autoconf initialization. ##
1846## ------------------------ ##
1847
1848# ac_fn_c_try_compile LINENO
1849# --------------------------
1850# Try to compile conftest.$ac_ext, and return whether this succeeded.
1851ac_fn_c_try_compile ()
1852{
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext
1855 if { { ac_try="$ac_compile"
1856case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext; then :
1874 ac_retval=0
1875else
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884} # ac_fn_c_try_compile
1885
1886# ac_fn_c_try_cpp LINENO
1887# ----------------------
1888# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1889ac_fn_c_try_cpp ()
1890{
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_cpp conftest.$ac_ext"
1893case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1905 fi
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } > conftest.i && {
1908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 }; then :
1911 ac_retval=0
1912else
1913 $as_echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=1
1917fi
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1920
1921} # ac_fn_c_try_cpp
1922
1923# ac_fn_cxx_try_compile LINENO
1924# ----------------------------
1925# Try to compile conftest.$ac_ext, and return whether this succeeded.
1926ac_fn_cxx_try_compile ()
1927{
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext
1930 if { { ac_try="$ac_compile"
1931case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934esac
1935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936$as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_compile") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1943 fi
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest.$ac_objext; then :
1949 ac_retval=0
1950else
1951 $as_echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_retval=1
1955fi
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 as_fn_set_status $ac_retval
1958
1959} # ac_fn_cxx_try_compile
1960
1961# ac_fn_c_try_link LINENO
1962# -----------------------
1963# Try to link conftest.$ac_ext, and return whether this succeeded.
1964ac_fn_c_try_link ()
1965{
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1969case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972esac
1973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974$as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1981 fi
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 test -x conftest$ac_exeext
1989 }; then :
1990 ac_retval=0
1991else
1992 $as_echo "$as_me: failed program was:" >&5
1993sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_retval=1
1996fi
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2004
2005} # ac_fn_c_try_link
2006
2007# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2008# -------------------------------------------------------
2009# Tests whether HEADER exists and can be compiled using the include files in
2010# INCLUDES, setting the cache variable VAR accordingly.
2011ac_fn_c_check_header_compile ()
2012{
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015$as_echo_n "checking for $2... " >&6; }
2016if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2018else
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020/* end confdefs.h. */
2021$4
2022#include <$2>
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$3=yes"
2026else
2027 eval "$3=no"
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033$as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036} # ac_fn_c_check_header_compile
2037
2038# ac_fn_c_try_run LINENO
2039# ----------------------
2040# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2041# that executables *can* be run.
2042ac_fn_c_try_run ()
2043{
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if { { ac_try="$ac_link"
2046case "(($ac_try" in
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2049esac
2050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051$as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_link") 2>&5
2053 ac_status=$?
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2056 { { case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059esac
2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061$as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_try") 2>&5
2063 ac_status=$?
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; }; }; then :
2066 ac_retval=0
2067else
2068 $as_echo "$as_me: program exited with status $ac_status" >&5
2069 $as_echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072 ac_retval=$ac_status
2073fi
2074 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 as_fn_set_status $ac_retval
2077
2078} # ac_fn_c_try_run
2079
2080# ac_fn_c_check_func LINENO FUNC VAR
2081# ----------------------------------
2082# Tests whether FUNC exists, setting the cache variable VAR accordingly
2083ac_fn_c_check_func ()
2084{
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087$as_echo_n "checking for $2... " >&6; }
2088if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2090else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093
2094#define $2 innocuous_$2
2095#ifdef __STDC__
2096# include <limits.h>
2097#else
2098# include <assert.h>
2099#endif
2100#undef $2
2101#ifdef __cplusplus
2102extern "C"
2103#endif
2104char $2 ();
2105#if defined __stub_$2 || defined __stub___$2
2106choke me
2107#endif
2108
2109int main (void)
2110{
2111return $2 ();
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_link "$LINENO"; then :
2117 eval "$3=yes"
2118else
2119 eval "$3=no"
2120fi
2121rm -f core conftest.err conftest.$ac_objext \
2122 conftest$ac_exeext conftest.$ac_ext
2123fi
2124eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126$as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129} # ac_fn_c_check_func
2130
2131# ac_fn_cxx_try_cpp LINENO
2132# ------------------------
2133# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2134ac_fn_cxx_try_cpp ()
2135{
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 if { { ac_try="$ac_cpp conftest.$ac_ext"
2138case "(($ac_try" in
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2141esac
2142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143$as_echo "$ac_try_echo"; } >&5
2144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2145 ac_status=$?
2146 if test -s conftest.err; then
2147 grep -v '^ *+' conftest.err >conftest.er1
2148 cat conftest.er1 >&5
2149 mv -f conftest.er1 conftest.err
2150 fi
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; } > conftest.i && {
2153 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2154 test ! -s conftest.err
2155 }; then :
2156 ac_retval=0
2157else
2158 $as_echo "$as_me: failed program was:" >&5
2159sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 ac_retval=1
2162fi
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164 as_fn_set_status $ac_retval
2165
2166} # ac_fn_cxx_try_cpp
2167
2168# ac_fn_cxx_try_link LINENO
2169# -------------------------
2170# Try to link conftest.$ac_ext, and return whether this succeeded.
2171ac_fn_cxx_try_link ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 rm -f conftest.$ac_objext conftest$ac_exeext
2175 if { { ac_try="$ac_link"
2176case "(($ac_try" in
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2179esac
2180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181$as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_link") 2>conftest.err
2183 ac_status=$?
2184 if test -s conftest.err; then
2185 grep -v '^ *+' conftest.err >conftest.er1
2186 cat conftest.er1 >&5
2187 mv -f conftest.er1 conftest.err
2188 fi
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } && {
2191 test -z "$ac_cxx_werror_flag" ||
2192 test ! -s conftest.err
2193 } && test -s conftest$ac_exeext && {
2194 test "$cross_compiling" = yes ||
2195 test -x conftest$ac_exeext
2196 }; then :
2197 ac_retval=0
2198else
2199 $as_echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202 ac_retval=1
2203fi
2204 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2205 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2206 # interfere with the next link command; also delete a directory that is
2207 # left behind by Apple's compiler. We do this before executing the actions.
2208 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 as_fn_set_status $ac_retval
2211
2212} # ac_fn_cxx_try_link
2213
2214# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2215# -------------------------------------------------------
2216# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2217# the include files in INCLUDES and setting the cache variable VAR
2218# accordingly.
2219ac_fn_c_check_header_mongrel ()
2220{
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 if eval \${$3+:} false; then :
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224$as_echo_n "checking for $2... " >&6; }
2225if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2227fi
2228eval ac_res=\$$3
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230$as_echo "$ac_res" >&6; }
2231else
2232 # Is the header compilable?
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2234$as_echo_n "checking $2 usability... " >&6; }
2235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h. */
2237$4
2238#include <$2>
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241 ac_header_compiler=yes
2242else
2243 ac_header_compiler=no
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2247$as_echo "$ac_header_compiler" >&6; }
2248
2249# Is the header present?
2250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2251$as_echo_n "checking $2 presence... " >&6; }
2252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253/* end confdefs.h. */
2254#include <$2>
2255_ACEOF
2256if ac_fn_c_try_cpp "$LINENO"; then :
2257 ac_header_preproc=yes
2258else
2259 ac_header_preproc=no
2260fi
2261rm -f conftest.err conftest.i conftest.$ac_ext
2262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2263$as_echo "$ac_header_preproc" >&6; }
2264
2265# So? What about this header?
2266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2267 yes:no: )
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2269$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2271$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2272 ;;
2273 no:yes:* )
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2275$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2277$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2279$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2281$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2283$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2284( $as_echo "## ------------------------------------------------------------------------------- ##
2285## Report this to c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares ##
2286## ------------------------------------------------------------------------------- ##"
2287 ) | sed "s/^/$as_me: WARNING: /" >&2
2288 ;;
2289esac
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291$as_echo_n "checking for $2... " >&6; }
2292if eval \${$3+:} false; then :
2293 $as_echo_n "(cached) " >&6
2294else
2295 eval "$3=\$ac_header_compiler"
2296fi
2297eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299$as_echo "$ac_res" >&6; }
2300fi
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302
2303} # ac_fn_c_check_header_mongrel
2304
2305# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2306# -------------------------------------------
2307# Tests whether TYPE exists after having included INCLUDES, setting cache
2308# variable VAR accordingly.
2309ac_fn_c_check_type ()
2310{
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313$as_echo_n "checking for $2... " >&6; }
2314if eval \${$3+:} false; then :
2315 $as_echo_n "(cached) " >&6
2316else
2317 eval "$3=no"
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319/* end confdefs.h. */
2320$4
2321int main (void)
2322{
2323if (sizeof ($2))
2324 return 0;
2325 ;
2326 return 0;
2327}
2328_ACEOF
2329if ac_fn_c_try_compile "$LINENO"; then :
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331/* end confdefs.h. */
2332$4
2333int main (void)
2334{
2335if (sizeof (($2)))
2336 return 0;
2337 ;
2338 return 0;
2339}
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342
2343else
2344 eval "$3=yes"
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349fi
2350eval ac_res=\$$3
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352$as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354
2355} # ac_fn_c_check_type
2356
2357# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2358# ----------------------------------------------------
2359# Tries to find if the field MEMBER exists in type AGGR, after including
2360# INCLUDES, setting cache variable VAR accordingly.
2361ac_fn_c_check_member ()
2362{
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2365$as_echo_n "checking for $2.$3... " >&6; }
2366if eval \${$4+:} false; then :
2367 $as_echo_n "(cached) " >&6
2368else
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370/* end confdefs.h. */
2371$5
2372int main (void)
2373{
2374static $2 ac_aggr;
2375if (ac_aggr.$3)
2376return 0;
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381if ac_fn_c_try_compile "$LINENO"; then :
2382 eval "$4=yes"
2383else
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385/* end confdefs.h. */
2386$5
2387int main (void)
2388{
2389static $2 ac_aggr;
2390if (sizeof ac_aggr.$3)
2391return 0;
2392 ;
2393 return 0;
2394}
2395_ACEOF
2396if ac_fn_c_try_compile "$LINENO"; then :
2397 eval "$4=yes"
2398else
2399 eval "$4=no"
2400fi
2401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402fi
2403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404fi
2405eval ac_res=\$$4
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407$as_echo "$ac_res" >&6; }
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409
2410} # ac_fn_c_check_member
2411cat >config.log <<_ACEOF
2412This file contains any messages produced by compilers while
2413running configure, to aid debugging if configure makes a mistake.
2414
2415It was created by c-ares $as_me 1.12.0, which was
2416generated by GNU Autoconf 2.69. Invocation command line was
2417
2418 $ $0 $@
2419
2420_ACEOF
2421exec 5>>config.log
2422{
2423cat <<_ASUNAME
2424## --------- ##
2425## Platform. ##
2426## --------- ##
2427
2428hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2429uname -m = `(uname -m) 2>/dev/null || echo unknown`
2430uname -r = `(uname -r) 2>/dev/null || echo unknown`
2431uname -s = `(uname -s) 2>/dev/null || echo unknown`
2432uname -v = `(uname -v) 2>/dev/null || echo unknown`
2433
2434/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2435/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2436
2437/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2438/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2439/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2440/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2441/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2442/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2443/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2444
2445_ASUNAME
2446
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 $as_echo "PATH: $as_dir"
2453 done
2454IFS=$as_save_IFS
2455
2456} >&5
2457
2458cat >&5 <<_ACEOF
2459
2460
2461## ----------- ##
2462## Core tests. ##
2463## ----------- ##
2464
2465_ACEOF
2466
2467
2468# Keep a trace of the command line.
2469# Strip out --no-create and --no-recursion so they do not pile up.
2470# Strip out --silent because we don't want to record it for future runs.
2471# Also quote any args containing shell meta-characters.
2472# Make two passes to allow for proper duplicate-argument suppression.
2473ac_configure_args=
2474ac_configure_args0=
2475ac_configure_args1=
2476ac_must_keep_next=false
2477for ac_pass in 1 2
2478do
2479 for ac_arg
2480 do
2481 case $ac_arg in
2482 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2484 | -silent | --silent | --silen | --sile | --sil)
2485 continue ;;
2486 *\'*)
2487 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2488 esac
2489 case $ac_pass in
2490 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2491 2)
2492 as_fn_append ac_configure_args1 " '$ac_arg'"
2493 if test $ac_must_keep_next = true; then
2494 ac_must_keep_next=false # Got value, back to normal.
2495 else
2496 case $ac_arg in
2497 *=* | --config-cache | -C | -disable-* | --disable-* \
2498 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2499 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2500 | -with-* | --with-* | -without-* | --without-* | --x)
2501 case "$ac_configure_args0 " in
2502 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2503 esac
2504 ;;
2505 -* ) ac_must_keep_next=true ;;
2506 esac
2507 fi
2508 as_fn_append ac_configure_args " '$ac_arg'"
2509 ;;
2510 esac
2511 done
2512done
2513{ ac_configure_args0=; unset ac_configure_args0;}
2514{ ac_configure_args1=; unset ac_configure_args1;}
2515
2516# When interrupted or exit'd, cleanup temporary files, and complete
2517# config.log. We remove comments because anyway the quotes in there
2518# would cause problems or look ugly.
2519# WARNING: Use '\'' to represent an apostrophe within the trap.
2520# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2521trap 'exit_status=$?
2522 # Save into config.log some information that might help in debugging.
2523 {
2524 echo
2525
2526 $as_echo "## ---------------- ##
2527## Cache variables. ##
2528## ---------------- ##"
2529 echo
2530 # The following way of writing the cache mishandles newlines in values,
2531(
2532 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2533 eval ac_val=\$$ac_var
2534 case $ac_val in #(
2535 *${as_nl}*)
2536 case $ac_var in #(
2537 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2538$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2539 esac
2540 case $ac_var in #(
2541 _ | IFS | as_nl) ;; #(
2542 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2543 *) { eval $ac_var=; unset $ac_var;} ;;
2544 esac ;;
2545 esac
2546 done
2547 (set) 2>&1 |
2548 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2549 *${as_nl}ac_space=\ *)
2550 sed -n \
2551 "s/'\''/'\''\\\\'\'''\''/g;
2552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2553 ;; #(
2554 *)
2555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2556 ;;
2557 esac |
2558 sort
2559)
2560 echo
2561
2562 $as_echo "## ----------------- ##
2563## Output variables. ##
2564## ----------------- ##"
2565 echo
2566 for ac_var in $ac_subst_vars
2567 do
2568 eval ac_val=\$$ac_var
2569 case $ac_val in
2570 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571 esac
2572 $as_echo "$ac_var='\''$ac_val'\''"
2573 done | sort
2574 echo
2575
2576 if test -n "$ac_subst_files"; then
2577 $as_echo "## ------------------- ##
2578## File substitutions. ##
2579## ------------------- ##"
2580 echo
2581 for ac_var in $ac_subst_files
2582 do
2583 eval ac_val=\$$ac_var
2584 case $ac_val in
2585 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586 esac
2587 $as_echo "$ac_var='\''$ac_val'\''"
2588 done | sort
2589 echo
2590 fi
2591
2592 if test -s confdefs.h; then
2593 $as_echo "## ----------- ##
2594## confdefs.h. ##
2595## ----------- ##"
2596 echo
2597 cat confdefs.h
2598 echo
2599 fi
2600 test "$ac_signal" != 0 &&
2601 $as_echo "$as_me: caught signal $ac_signal"
2602 $as_echo "$as_me: exit $exit_status"
2603 } >&5
2604 rm -f core *.core core.conftest.* &&
2605 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2606 exit $exit_status
2607' 0
2608for ac_signal in 1 2 13 15; do
2609 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2610done
2611ac_signal=0
2612
2613# confdefs.h avoids OS command line length limits that DEFS can exceed.
2614rm -f -r conftest* confdefs.h
2615
2616$as_echo "/* confdefs.h */" > confdefs.h
2617
2618# Predefined preprocessor variables.
2619
2620cat >>confdefs.h <<_ACEOF
2621#define PACKAGE_NAME "$PACKAGE_NAME"
2622_ACEOF
2623
2624cat >>confdefs.h <<_ACEOF
2625#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2626_ACEOF
2627
2628cat >>confdefs.h <<_ACEOF
2629#define PACKAGE_VERSION "$PACKAGE_VERSION"
2630_ACEOF
2631
2632cat >>confdefs.h <<_ACEOF
2633#define PACKAGE_STRING "$PACKAGE_STRING"
2634_ACEOF
2635
2636cat >>confdefs.h <<_ACEOF
2637#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2638_ACEOF
2639
2640cat >>confdefs.h <<_ACEOF
2641#define PACKAGE_URL "$PACKAGE_URL"
2642_ACEOF
2643
2644
2645# Let the site file select an alternate cache file if it wants to.
2646# Prefer an explicitly selected file to automatically selected ones.
2647ac_site_file1=NONE
2648ac_site_file2=NONE
2649if test -n "$CONFIG_SITE"; then
2650 # We do not want a PATH search for config.site.
2651 case $CONFIG_SITE in #((
2652 -*) ac_site_file1=./$CONFIG_SITE;;
2653 */*) ac_site_file1=$CONFIG_SITE;;
2654 *) ac_site_file1=./$CONFIG_SITE;;
2655 esac
2656elif test "x$prefix" != xNONE; then
2657 ac_site_file1=$prefix/share/config.site
2658 ac_site_file2=$prefix/etc/config.site
2659else
2660 ac_site_file1=$ac_default_prefix/share/config.site
2661 ac_site_file2=$ac_default_prefix/etc/config.site
2662fi
2663for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2664do
2665 test "x$ac_site_file" = xNONE && continue
2666 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2668$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2669 sed 's/^/| /' "$ac_site_file" >&5
2670 . "$ac_site_file" \
2671 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673as_fn_error $? "failed to load site script $ac_site_file
2674See \`config.log' for more details" "$LINENO" 5; }
2675 fi
2676done
2677
2678if test -r "$cache_file"; then
2679 # Some versions of bash will fail to source /dev/null (special files
2680 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2681 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2683$as_echo "$as_me: loading cache $cache_file" >&6;}
2684 case $cache_file in
2685 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2686 *) . "./$cache_file";;
2687 esac
2688 fi
2689else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2691$as_echo "$as_me: creating cache $cache_file" >&6;}
2692 >$cache_file
2693fi
2694
2695# Check that the precious variables saved in the cache have kept the same
2696# value.
2697ac_cache_corrupted=false
2698for ac_var in $ac_precious_vars; do
2699 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2700 eval ac_new_set=\$ac_env_${ac_var}_set
2701 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2702 eval ac_new_val=\$ac_env_${ac_var}_value
2703 case $ac_old_set,$ac_new_set in
2704 set,)
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2706$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2707 ac_cache_corrupted=: ;;
2708 ,set)
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2710$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2711 ac_cache_corrupted=: ;;
2712 ,);;
2713 *)
2714 if test "x$ac_old_val" != "x$ac_new_val"; then
2715 # differences in whitespace do not lead to failure.
2716 ac_old_val_w=`echo x $ac_old_val`
2717 ac_new_val_w=`echo x $ac_new_val`
2718 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2720$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2721 ac_cache_corrupted=:
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2724$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2725 eval $ac_var=\$ac_old_val
2726 fi
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2728$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2730$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2731 fi;;
2732 esac
2733 # Pass precious variables to config.status.
2734 if test "$ac_new_set" = set; then
2735 case $ac_new_val in
2736 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2737 *) ac_arg=$ac_var=$ac_new_val ;;
2738 esac
2739 case " $ac_configure_args " in
2740 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2741 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2742 esac
2743 fi
2744done
2745if $ac_cache_corrupted; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2749$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2750 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2751fi
2752## -------------------- ##
2753## Main body of script. ##
2754## -------------------- ##
2755
2756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762
2763
2764
2765
2766
2767
2768# using cares-override.m4
2769
2770
2771
2772ac_config_headers="$ac_config_headers ares_config.h ares_build.h"
2773
2774
2775
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2777$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2778 # Check whether --enable-maintainer-mode was given.
2779if test "${enable_maintainer_mode+set}" = set; then :
2780 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2781else
2782 USE_MAINTAINER_MODE=no
2783fi
2784
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2786$as_echo "$USE_MAINTAINER_MODE" >&6; }
2787 if test $USE_MAINTAINER_MODE = yes; then
2788 MAINTAINER_MODE_TRUE=
2789 MAINTAINER_MODE_FALSE='#'
2790else
2791 MAINTAINER_MODE_TRUE='#'
2792 MAINTAINER_MODE_FALSE=
2793fi
2794
2795 MAINT=$MAINTAINER_MODE_TRUE
2796
2797
2798# Check whether --enable-silent-rules was given.
2799if test "${enable_silent_rules+set}" = set; then :
2800 enableval=$enable_silent_rules;
2801fi
2802
2803case $enable_silent_rules in # (((
2804 yes) AM_DEFAULT_VERBOSITY=0;;
2805 no) AM_DEFAULT_VERBOSITY=1;;
2806 *) AM_DEFAULT_VERBOSITY=0;;
2807esac
2808am_make=${MAKE-make}
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2810$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2811if ${am_cv_make_support_nested_variables+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813else
2814 if $as_echo 'TRUE=$(BAR$(V))
2815BAR0=false
2816BAR1=true
2817V=1
2818am__doit:
2819 @$(TRUE)
2820.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2821 am_cv_make_support_nested_variables=yes
2822else
2823 am_cv_make_support_nested_variables=no
2824fi
2825fi
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2827$as_echo "$am_cv_make_support_nested_variables" >&6; }
2828if test $am_cv_make_support_nested_variables = yes; then
2829 AM_V='$(V)'
2830 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2831else
2832 AM_V=$AM_DEFAULT_VERBOSITY
2833 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2834fi
2835AM_BACKSLASH='\'
2836
2837
2838
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2840$as_echo_n "checking whether to enable debug build options... " >&6; }
2841 OPT_DEBUG_BUILD="default"
2842 # Check whether --enable-debug was given.
2843if test "${enable_debug+set}" = set; then :
2844 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2845fi
2846
2847 case "$OPT_DEBUG_BUILD" in
2848 no)
2849 want_debug="no"
2850 ;;
2851 default)
2852 want_debug="no"
2853 ;;
2854 *)
2855 want_debug="yes"
2856 ;;
2857 esac
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2859$as_echo "$want_debug" >&6; }
2860
2861
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2863$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2864 OPT_COMPILER_OPTIMIZE="default"
2865 # Check whether --enable-optimize was given.
2866if test "${enable_optimize+set}" = set; then :
2867 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2868fi
2869
2870 case "$OPT_COMPILER_OPTIMIZE" in
2871 no)
2872 want_optimize="no"
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
2875 ;;
2876 default)
2877 if test "$want_debug" = "yes"; then
2878 want_optimize="assume_no"
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5
2880$as_echo "not specified (assuming no)" >&6; }
2881 else
2882 want_optimize="assume_yes"
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5
2884$as_echo "not specified (assuming yes)" >&6; }
2885 fi
2886 ;;
2887 *)
2888 want_optimize="yes"
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890$as_echo "yes" >&6; }
2891 ;;
2892 esac
2893
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2896$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2897 OPT_COMPILER_WARNINGS="default"
2898 # Check whether --enable-warnings was given.
2899if test "${enable_warnings+set}" = set; then :
2900 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2901fi
2902
2903 case "$OPT_COMPILER_WARNINGS" in
2904 no)
2905 want_warnings="no"
2906 ;;
2907 default)
2908 want_warnings="$want_debug"
2909 ;;
2910 *)
2911 want_warnings="yes"
2912 ;;
2913 esac
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2915$as_echo "$want_warnings" >&6; }
2916
2917
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2919$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2920 OPT_COMPILER_WERROR="default"
2921 # Check whether --enable-werror was given.
2922if test "${enable_werror+set}" = set; then :
2923 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2924fi
2925
2926 case "$OPT_COMPILER_WERROR" in
2927 no)
2928 want_werror="no"
2929 ;;
2930 default)
2931 want_werror="no"
2932 ;;
2933 *)
2934 want_werror="yes"
2935 ;;
2936 esac
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2938$as_echo "$want_werror" >&6; }
2939
2940
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
2942$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
2943 OPT_CURLDEBUG_BUILD="default"
2944 # Check whether --enable-curldebug was given.
2945if test "${enable_curldebug+set}" = set; then :
2946 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
2947fi
2948
2949 case "$OPT_CURLDEBUG_BUILD" in
2950 no)
2951 want_curldebug="no"
2952 ;;
2953 default)
2954 want_curldebug="no"
2955 ;;
2956 *)
2957 want_curldebug="yes"
2958 ;;
2959 esac
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_curldebug" >&5
2961$as_echo "$want_curldebug" >&6; }
2962
2963
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
2965$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
2966 OPT_SYMBOL_HIDING="default"
2967 # Check whether --enable-symbol-hiding was given.
2968if test "${enable_symbol_hiding+set}" = set; then :
2969 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
2970fi
2971
2972 case "$OPT_SYMBOL_HIDING" in
2973 no)
2974 want_symbol_hiding="no"
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977 ;;
2978 default)
2979 want_symbol_hiding="yes"
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981$as_echo "yes" >&6; }
2982 ;;
2983 *)
2984 want_symbol_hiding="yes"
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2986$as_echo "yes" >&6; }
2987 ;;
2988 esac
2989
2990
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5
2992$as_echo_n "checking whether to expose internal static functions for testing... " >&6; }
2993 OPT_EXPOSE_STATICS="default"
2994 # Check whether --enable-expose-statics was given.
2995if test "${enable_expose_statics+set}" = set; then :
2996 enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval
2997fi
2998
2999 case "$OPT_EXPOSE_STATICS" in
3000 no)
3001 want_expose_statics="no"
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004 ;;
3005 default)
3006 want_expose_statics="no"
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
3009 ;;
3010 *)
3011 want_expose_statics="yes"
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013$as_echo "yes" >&6; }
3014 ;;
3015 esac
3016 if test "$want_expose_statics" = "yes"; then
3017
3018cat >>confdefs.h <<_ACEOF
3019#define CARES_EXPOSE_STATICS 1
3020_ACEOF
3021
3022 fi
3023
3024
3025#
3026# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3027#
3028
3029if test -z "$xc_configure_preamble_result"; then
3030 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3031fi
3032
3033#
3034# Check that 'PATH_SEPARATOR' has already been set.
3035#
3036
3037if test -z "$xc_PATH_SEPARATOR"; then
3038 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3039fi
3040if test -z "$PATH_SEPARATOR"; then
3041 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3042fi
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3044$as_echo_n "checking for path separator... " >&6; }
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3046$as_echo "$PATH_SEPARATOR" >&6; }
3047if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3049$as_echo_n "checking for initial path separator... " >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3051$as_echo "$xc_PATH_SEPARATOR" >&6; }
3052 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3053fi
3054
3055
3056# Extract the first word of "sed", so it can be a program name with args.
3057set dummy sed; ac_word=$2
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if ${ac_cv_path_SED+:} false; then :
3061 $as_echo_n "(cached) " >&6
3062else
3063 case $SED in
3064 [\\/]* | ?:[\\/]*)
3065 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3066 ;;
3067 *)
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069as_dummy="$PATH:/usr/bin:/usr/local/bin"
3070for as_dir in $as_dummy
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080done
3081 done
3082IFS=$as_save_IFS
3083
3084 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3085 ;;
3086esac
3087fi
3088SED=$ac_cv_path_SED
3089if test -n "$SED"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3091$as_echo "$SED" >&6; }
3092else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098if test -z "$SED" || test "$SED" = "not_found"; then
3099 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3100fi
3101
3102
3103# Extract the first word of "grep", so it can be a program name with args.
3104set dummy grep; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if ${ac_cv_path_GREP+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109else
3110 case $GREP in
3111 [\\/]* | ?:[\\/]*)
3112 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3113 ;;
3114 *)
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116as_dummy="$PATH:/usr/bin:/usr/local/bin"
3117for as_dir in $as_dummy
3118do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127done
3128 done
3129IFS=$as_save_IFS
3130
3131 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3132 ;;
3133esac
3134fi
3135GREP=$ac_cv_path_GREP
3136if test -n "$GREP"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3138$as_echo "$GREP" >&6; }
3139else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145if test -z "$GREP" || test "$GREP" = "not_found"; then
3146 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3147fi
3148
3149
3150if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3152$as_echo_n "checking for egrep... " >&6; }
3153 EGREP="$GREP -E"
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3155$as_echo "$EGREP" >&6; }
3156else
3157 # Extract the first word of "egrep", so it can be a program name with args.
3158set dummy egrep; ac_word=$2
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160$as_echo_n "checking for $ac_word... " >&6; }
3161if ${ac_cv_path_EGREP+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163else
3164 case $EGREP in
3165 [\\/]* | ?:[\\/]*)
3166 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3167 ;;
3168 *)
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170as_dummy="$PATH:/usr/bin:/usr/local/bin"
3171for as_dir in $as_dummy
3172do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181done
3182 done
3183IFS=$as_save_IFS
3184
3185 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3186 ;;
3187esac
3188fi
3189EGREP=$ac_cv_path_EGREP
3190if test -n "$EGREP"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3192$as_echo "$EGREP" >&6; }
3193else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199fi
3200if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3201 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3202fi
3203
3204
3205if test -n "$ac_tool_prefix"; then
3206 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3207set dummy ${ac_tool_prefix}ar; ac_word=$2
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209$as_echo_n "checking for $ac_word... " >&6; }
3210if ${ac_cv_path_AR+:} false; then :
3211 $as_echo_n "(cached) " >&6
3212else
3213 case $AR in
3214 [\\/]* | ?:[\\/]*)
3215 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3216 ;;
3217 *)
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219as_dummy="$PATH:/usr/bin:/usr/local/bin"
3220for as_dir in $as_dummy
3221do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230done
3231 done
3232IFS=$as_save_IFS
3233
3234 ;;
3235esac
3236fi
3237AR=$ac_cv_path_AR
3238if test -n "$AR"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3240$as_echo "$AR" >&6; }
3241else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243$as_echo "no" >&6; }
3244fi
3245
3246
3247fi
3248if test -z "$ac_cv_path_AR"; then
3249 ac_pt_AR=$AR
3250 # Extract the first word of "ar", so it can be a program name with args.
3251set dummy ar; ac_word=$2
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253$as_echo_n "checking for $ac_word... " >&6; }
3254if ${ac_cv_path_ac_pt_AR+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256else
3257 case $ac_pt_AR in
3258 [\\/]* | ?:[\\/]*)
3259 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3260 ;;
3261 *)
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263as_dummy="$PATH:/usr/bin:/usr/local/bin"
3264for as_dir in $as_dummy
3265do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274done
3275 done
3276IFS=$as_save_IFS
3277
3278 ;;
3279esac
3280fi
3281ac_pt_AR=$ac_cv_path_ac_pt_AR
3282if test -n "$ac_pt_AR"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3284$as_echo "$ac_pt_AR" >&6; }
3285else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290 if test "x$ac_pt_AR" = x; then
3291 AR="not_found"
3292 else
3293 case $cross_compiling:$ac_tool_warned in
3294yes:)
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297ac_tool_warned=yes ;;
3298esac
3299 AR=$ac_pt_AR
3300 fi
3301else
3302 AR="$ac_cv_path_AR"
3303fi
3304
3305if test -z "$AR" || test "$AR" = "not_found"; then
3306 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3307fi
3308
3309
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3311$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3312if ${ac_cv_path_SED+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314else
3315 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3316 for ac_i in 1 2 3 4 5 6 7; do
3317 ac_script="$ac_script$as_nl$ac_script"
3318 done
3319 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3320 { ac_script=; unset ac_script;}
3321 if test -z "$SED"; then
3322 ac_path_SED_found=false
3323 # Loop through the user's path and test for each of PROGNAME-LIST
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_prog in sed gsed; do
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3332 as_fn_executable_p "$ac_path_SED" || continue
3333# Check for GNU ac_path_SED and select it if it is found.
3334 # Check for GNU $ac_path_SED
3335case `"$ac_path_SED" --version 2>&1` in
3336*GNU*)
3337 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3338*)
3339 ac_count=0
3340 $as_echo_n 0123456789 >"conftest.in"
3341 while :
3342 do
3343 cat "conftest.in" "conftest.in" >"conftest.tmp"
3344 mv "conftest.tmp" "conftest.in"
3345 cp "conftest.in" "conftest.nl"
3346 $as_echo '' >> "conftest.nl"
3347 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3349 as_fn_arith $ac_count + 1 && ac_count=$as_val
3350 if test $ac_count -gt ${ac_path_SED_max-0}; then
3351 # Best one so far, save it but keep looking for a better one
3352 ac_cv_path_SED="$ac_path_SED"
3353 ac_path_SED_max=$ac_count
3354 fi
3355 # 10*(2^10) chars as input seems more than enough
3356 test $ac_count -gt 10 && break
3357 done
3358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3359esac
3360
3361 $ac_path_SED_found && break 3
3362 done
3363 done
3364 done
3365IFS=$as_save_IFS
3366 if test -z "$ac_cv_path_SED"; then
3367 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3368 fi
3369else
3370 ac_cv_path_SED=$SED
3371fi
3372
3373fi
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3375$as_echo "$ac_cv_path_SED" >&6; }
3376 SED="$ac_cv_path_SED"
3377 rm -f conftest.sed
3378
3379
3380
3381
3382 # allow to override gcov location
3383
3384# Check whether --with-gcov was given.
3385if test "${with_gcov+set}" = set; then :
3386 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3387else
3388 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3389fi
3390
3391
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3393$as_echo_n "checking whether to build with code coverage support... " >&6; }
3394 # Check whether --enable-code-coverage was given.
3395if test "${enable_code_coverage+set}" = set; then :
3396 enableval=$enable_code_coverage;
3397else
3398 enable_code_coverage=no
3399fi
3400
3401
3402 if test x$enable_code_coverage = xyes; then
3403 CODE_COVERAGE_ENABLED_TRUE=
3404 CODE_COVERAGE_ENABLED_FALSE='#'
3405else
3406 CODE_COVERAGE_ENABLED_TRUE='#'
3407 CODE_COVERAGE_ENABLED_FALSE=
3408fi
3409
3410 CODE_COVERAGE_ENABLED=$enable_code_coverage
3411
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3413$as_echo "$enable_code_coverage" >&6; }
3414
3415 if test "$enable_code_coverage" = "yes" ; then :
3416
3417 # check for gcov
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3420set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422$as_echo_n "checking for $ac_word... " >&6; }
3423if ${ac_cv_prog_GCOV+:} false; then :
3424 $as_echo_n "(cached) " >&6
3425else
3426 if test -n "$GCOV"; then
3427 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3428else
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440done
3441 done
3442IFS=$as_save_IFS
3443
3444fi
3445fi
3446GCOV=$ac_cv_prog_GCOV
3447if test -n "$GCOV"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3449$as_echo "$GCOV" >&6; }
3450else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452$as_echo "no" >&6; }
3453fi
3454
3455
3456fi
3457if test -z "$ac_cv_prog_GCOV"; then
3458 ac_ct_GCOV=$GCOV
3459 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3460set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462$as_echo_n "checking for $ac_word... " >&6; }
3463if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465else
3466 if test -n "$ac_ct_GCOV"; then
3467 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480done
3481 done
3482IFS=$as_save_IFS
3483
3484fi
3485fi
3486ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3487if test -n "$ac_ct_GCOV"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3489$as_echo "$ac_ct_GCOV" >&6; }
3490else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492$as_echo "no" >&6; }
3493fi
3494
3495 if test "x$ac_ct_GCOV" = x; then
3496 GCOV=":"
3497 else
3498 case $cross_compiling:$ac_tool_warned in
3499yes:)
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502ac_tool_warned=yes ;;
3503esac
3504 GCOV=$ac_ct_GCOV
3505 fi
3506else
3507 GCOV="$ac_cv_prog_GCOV"
3508fi
3509
3510 if test "X$GCOV" = "X:"; then :
3511 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3512fi
3513
3514
3515 if test "$GCC" = "no" ; then :
3516
3517 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3518
3519fi
3520
3521 # List of supported lcov versions.
3522 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
3523
3524 # Extract the first word of "lcov", so it can be a program name with args.
3525set dummy lcov; ac_word=$2
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527$as_echo_n "checking for $ac_word... " >&6; }
3528if ${ac_cv_prog_LCOV+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530else
3531 if test -n "$LCOV"; then
3532 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3533else
3534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535for as_dir in $PATH
3536do
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_LCOV="lcov"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3544 fi
3545done
3546 done
3547IFS=$as_save_IFS
3548
3549fi
3550fi
3551LCOV=$ac_cv_prog_LCOV
3552if test -n "$LCOV"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3554$as_echo "$LCOV" >&6; }
3555else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557$as_echo "no" >&6; }
3558fi
3559
3560
3561 # Extract the first word of "genhtml", so it can be a program name with args.
3562set dummy genhtml; ac_word=$2
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564$as_echo_n "checking for $ac_word... " >&6; }
3565if ${ac_cv_prog_GENHTML+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567else
3568 if test -n "$GENHTML"; then
3569 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3570else
3571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572for as_dir in $PATH
3573do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_GENHTML="genhtml"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3581 fi
3582done
3583 done
3584IFS=$as_save_IFS
3585
3586fi
3587fi
3588GENHTML=$ac_cv_prog_GENHTML
3589if test -n "$GENHTML"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3591$as_echo "$GENHTML" >&6; }
3592else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594$as_echo "no" >&6; }
3595fi
3596
3597
3598
3599 if test "$LCOV" ; then :
3600
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
3602$as_echo_n "checking for lcov version... " >&6; }
3603if ${ax_cv_lcov_version+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605else
3606
3607 ax_cv_lcov_version=invalid
3608 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
3609 for lcov_check_version in $lcov_version_list; do
3610 if test "$lcov_version" = "$lcov_check_version"; then
3611 ax_cv_lcov_version="$lcov_check_version (ok)"
3612 fi
3613 done
3614
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
3617$as_echo "$ax_cv_lcov_version" >&6; }
3618
3619else
3620
3621 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
3622 as_fn_error $? "$lcov_msg" "$LINENO" 5
3623
3624fi
3625
3626 case $ax_cv_lcov_version in
3627 ""|invalid)
3628 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
3629 as_fn_error $? "$lcov_msg" "$LINENO" 5
3630 LCOV="exit 0;"
3631 ;;
3632 esac
3633
3634 if test -z "$GENHTML" ; then :
3635
3636 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3637
3638fi
3639
3640 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3641 CODE_COVERAGE_LDFLAGS="-lgcov"
3642
3643
3644
3645
3646CODE_COVERAGE_RULES='
3647# Code coverage
3648#
3649# Optional:
3650# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3651# (Default: $(top_builddir))
3652# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3653# by lcov for code coverage. (Default:
3654# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3655# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3656# reports to be created. (Default:
3657# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3658# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3659# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
3660# (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3661# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
3662# (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3663# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3664# instance. (Default: empty)
3665# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3666#
3667# The generated report will be titled using the $(PACKAGE_NAME) and
3668# $(PACKAGE_VERSION). In order to add the current git hash to the title,
3669# use the git-version-gen script, available online.
3670
3671# Optional variables
3672CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3673CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3674CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3675CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3676CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3677CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3678CODE_COVERAGE_GENHTML_OPTIONS ?=
3679CODE_COVERAGE_IGNORE_PATTERN ?=
3680
3681code_coverage_quiet = $(code_coverage_quiet_$(V))
3682code_coverage_quiet_ =
3683code_coverage_quiet_0 = --quiet
3684
3685# Use recursive makes in order to ignore errors during check
3686check-code-coverage:
3687 -$(MAKE) $(AM_MAKEFLAGS) -k check
3688 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3689
3690# Capture code coverage data
3691code-coverage-capture: code-coverage-capture-hook
3692 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
3693 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
3694 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3695 LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
3696 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3697
3698# Hook rule executed before code-coverage-capture, overridable by the user
3699code-coverage-capture-hook:
3700
3701clean: code-coverage-clean
3702code-coverage-clean:
3703 -$(LCOV) --directory $(top_builddir) -z
3704 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3705 -find . -name "*.gcda" -o -name "*.gcov" -delete
3706
3707GITIGNOREFILES ?=
3708GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3709
3710DISTCHECK_CONFIGURE_FLAGS ?=
3711DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3712
3713.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3714'
3715
3716
3717fi
3718
3719
3720
3721
3722if test -f ${srcdir}/ares_build.h; then
3723 rm -f ${srcdir}/ares_build.h
3724fi
3725
3726
3727ac_aux_dir=
3728for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3729 if test -f "$ac_dir/install-sh"; then
3730 ac_aux_dir=$ac_dir
3731 ac_install_sh="$ac_aux_dir/install-sh -c"
3732 break
3733 elif test -f "$ac_dir/install.sh"; then
3734 ac_aux_dir=$ac_dir
3735 ac_install_sh="$ac_aux_dir/install.sh -c"
3736 break
3737 elif test -f "$ac_dir/shtool"; then
3738 ac_aux_dir=$ac_dir
3739 ac_install_sh="$ac_aux_dir/shtool install -c"
3740 break
3741 fi
3742done
3743if test -z "$ac_aux_dir"; then
3744 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3745fi
3746
3747# These three variables are undocumented and unsupported,
3748# and are intended to be withdrawn in a future Autoconf release.
3749# They can cause serious problems if a builder's source tree is in a directory
3750# whose full name contains unusual characters.
3751ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3752ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3753ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3754
3755
3756# Make sure we can run config.sub.
3757$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3758 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3759
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3761$as_echo_n "checking build system type... " >&6; }
3762if ${ac_cv_build+:} false; then :
3763 $as_echo_n "(cached) " >&6
3764else
3765 ac_build_alias=$build_alias
3766test "x$ac_build_alias" = x &&
3767 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3768test "x$ac_build_alias" = x &&
3769 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3770ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3771 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3772
3773fi
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3775$as_echo "$ac_cv_build" >&6; }
3776case $ac_cv_build in
3777*-*-*) ;;
3778*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3779esac
3780build=$ac_cv_build
3781ac_save_IFS=$IFS; IFS='-'
3782set x $ac_cv_build
3783shift
3784build_cpu=$1
3785build_vendor=$2
3786shift; shift
3787# Remember, the first character of IFS is used to create $*,
3788# except with old shells:
3789build_os=$*
3790IFS=$ac_save_IFS
3791case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3792
3793
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3795$as_echo_n "checking host system type... " >&6; }
3796if ${ac_cv_host+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798else
3799 if test "x$host_alias" = x; then
3800 ac_cv_host=$ac_cv_build
3801else
3802 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3804fi
3805
3806fi
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3808$as_echo "$ac_cv_host" >&6; }
3809case $ac_cv_host in
3810*-*-*) ;;
3811*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3812esac
3813host=$ac_cv_host
3814ac_save_IFS=$IFS; IFS='-'
3815set x $ac_cv_host
3816shift
3817host_cpu=$1
3818host_vendor=$2
3819shift; shift
3820# Remember, the first character of IFS is used to create $*,
3821# except with old shells:
3822host_os=$*
3823IFS=$ac_save_IFS
3824case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3825
3826
3827
3828cat >>confdefs.h <<_ACEOF
3829#define OS "${host}"
3830_ACEOF
3831
3832
3833
3834 xc_prog_cc_prev_IFS=$IFS
3835 xc_prog_cc_prev_LIBS=$LIBS
3836 xc_prog_cc_prev_CFLAGS=$CFLAGS
3837 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3838 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3839
3840
3841
3842 xc_bad_var_libs=no
3843 for xc_word in $LIBS; do
3844 case "$xc_word" in
3845 -l* | --library=*)
3846 :
3847 ;;
3848 *)
3849 xc_bad_var_libs=yes
3850 ;;
3851 esac
3852 done
3853 if test $xc_bad_var_libs = yes; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3855$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
3857$as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
3858 fi
3859
3860
3861 xc_bad_var_ldflags=no
3862 for xc_word in $LDFLAGS; do
3863 case "$xc_word" in
3864 -D*)
3865 xc_bad_var_ldflags=yes
3866 ;;
3867 -U*)
3868 xc_bad_var_ldflags=yes
3869 ;;
3870 -I*)
3871 xc_bad_var_ldflags=yes
3872 ;;
3873 -l* | --library=*)
3874 xc_bad_var_ldflags=yes
3875 ;;
3876 esac
3877 done
3878 if test $xc_bad_var_ldflags = yes; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3880$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3881 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
3882 for xc_word in $LDFLAGS; do
3883 case "$xc_word" in
3884 -D*)
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3886$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3887 ;;
3888 -U*)
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3890$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3891 ;;
3892 -I*)
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3894$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3895 ;;
3896 -l* | --library=*)
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3898$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3899 ;;
3900 esac
3901 done
3902 fi
3903
3904
3905 xc_bad_var_cppflags=no
3906 for xc_word in $CPPFLAGS; do
3907 case "$xc_word" in
3908 -rpath*)
3909 xc_bad_var_cppflags=yes
3910 ;;
3911 -L* | --library-path=*)
3912 xc_bad_var_cppflags=yes
3913 ;;
3914 -l* | --library=*)
3915 xc_bad_var_cppflags=yes
3916 ;;
3917 esac
3918 done
3919 if test $xc_bad_var_cppflags = yes; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3921$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3922 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
3923 for xc_word in $CPPFLAGS; do
3924 case "$xc_word" in
3925 -rpath*)
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3927$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3928 ;;
3929 -L* | --library-path=*)
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3931$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3932 ;;
3933 -l* | --library=*)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3935$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3936 ;;
3937 esac
3938 done
3939 fi
3940
3941
3942 xc_bad_var_cflags=no
3943 for xc_word in $CFLAGS; do
3944 case "$xc_word" in
3945 -D*)
3946 xc_bad_var_cflags=yes
3947 ;;
3948 -U*)
3949 xc_bad_var_cflags=yes
3950 ;;
3951 -I*)
3952 xc_bad_var_cflags=yes
3953 ;;
3954 -rpath*)
3955 xc_bad_var_cflags=yes
3956 ;;
3957 -L* | --library-path=*)
3958 xc_bad_var_cflags=yes
3959 ;;
3960 -l* | --library=*)
3961 xc_bad_var_cflags=yes
3962 ;;
3963 esac
3964 done
3965 if test $xc_bad_var_cflags = yes; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3967$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3968 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
3969 for xc_word in $CFLAGS; do
3970 case "$xc_word" in
3971 -D*)
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3973$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3974 ;;
3975 -U*)
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3977$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3978 ;;
3979 -I*)
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3981$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3982 ;;
3983 -rpath*)
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3985$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3986 ;;
3987 -L* | --library-path=*)
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3989$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3990 ;;
3991 -l* | --library=*)
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3993$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3994 ;;
3995 esac
3996 done
3997 fi
3998
3999 if test $xc_bad_var_libs = yes ||
4000 test $xc_bad_var_cflags = yes ||
4001 test $xc_bad_var_ldflags = yes ||
4002 test $xc_bad_var_cppflags = yes; then
4003 as_fn_error $? "Can not continue. Fix errors mentioned immediately above this line." "$LINENO" 5
4004 fi
4005
4006# Find a good install program. We prefer a C program (faster),
4007# so one script is as good as another. But avoid the broken or
4008# incompatible versions:
4009# SysV /etc/install, /usr/sbin/install
4010# SunOS /usr/etc/install
4011# IRIX /sbin/install
4012# AIX /bin/install
4013# AmigaOS /C/install, which installs bootblocks on floppy discs
4014# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4015# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4016# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4017# OS/2's system install, which has a completely different semantic
4018# ./install, which can be erroneously created by make from ./install.sh.
4019# Reject install programs that cannot install multiple files.
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4021$as_echo_n "checking for a BSD-compatible install... " >&6; }
4022if test -z "$INSTALL"; then
4023if ${ac_cv_path_install+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 # Account for people who put trailing slashes in PATH elements.
4032case $as_dir/ in #((
4033 ./ | .// | /[cC]/* | \
4034 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4035 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4036 /usr/ucb/* ) ;;
4037 *)
4038 # OSF1 and SCO ODT 3.0 have their own names for install.
4039 # Don't use installbsd from OSF since it installs stuff as root
4040 # by default.
4041 for ac_prog in ginstall scoinst install; do
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4044 if test $ac_prog = install &&
4045 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4046 # AIX install. It has an incompatible calling convention.
4047 :
4048 elif test $ac_prog = install &&
4049 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4050 # program-specific install script used by HP pwplus--don't use.
4051 :
4052 else
4053 rm -rf conftest.one conftest.two conftest.dir
4054 echo one > conftest.one
4055 echo two > conftest.two
4056 mkdir conftest.dir
4057 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4058 test -s conftest.one && test -s conftest.two &&
4059 test -s conftest.dir/conftest.one &&
4060 test -s conftest.dir/conftest.two
4061 then
4062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4063 break 3
4064 fi
4065 fi
4066 fi
4067 done
4068 done
4069 ;;
4070esac
4071
4072 done
4073IFS=$as_save_IFS
4074
4075rm -rf conftest.one conftest.two conftest.dir
4076
4077fi
4078 if test "${ac_cv_path_install+set}" = set; then
4079 INSTALL=$ac_cv_path_install
4080 else
4081 # As a last resort, use the slow shell script. Don't cache a
4082 # value for INSTALL within a source directory, because that will
4083 # break other packages using the cache if that directory is
4084 # removed, or if the value is a relative name.
4085 INSTALL=$ac_install_sh
4086 fi
4087fi
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4089$as_echo "$INSTALL" >&6; }
4090
4091# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4092# It thinks the first close brace ends the variable substitution.
4093test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4094
4095test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4096
4097test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4098
4099# Expand $ac_aux_dir to an absolute path.
4100am_aux_dir=`cd "$ac_aux_dir" && pwd`
4101
4102ac_ext=c
4103ac_cpp='$CPP $CPPFLAGS'
4104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4109set dummy ${ac_tool_prefix}gcc; ac_word=$2
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111$as_echo_n "checking for $ac_word... " >&6; }
4112if ${ac_cv_prog_CC+:} false; then :
4113 $as_echo_n "(cached) " >&6
4114else
4115 if test -n "$CC"; then
4116 ac_cv_prog_CC="$CC" # Let the user override the test.
4117else
4118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH
4120do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4128 fi
4129done
4130 done
4131IFS=$as_save_IFS
4132
4133fi
4134fi
4135CC=$ac_cv_prog_CC
4136if test -n "$CC"; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4138$as_echo "$CC" >&6; }
4139else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141$as_echo "no" >&6; }
4142fi
4143
4144
4145fi
4146if test -z "$ac_cv_prog_CC"; then
4147 ac_ct_CC=$CC
4148 # Extract the first word of "gcc", so it can be a program name with args.
4149set dummy gcc; ac_word=$2
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151$as_echo_n "checking for $ac_word... " >&6; }
4152if ${ac_cv_prog_ac_ct_CC+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154else
4155 if test -n "$ac_ct_CC"; then
4156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4157else
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165 ac_cv_prog_ac_ct_CC="gcc"
4166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169done
4170 done
4171IFS=$as_save_IFS
4172
4173fi
4174fi
4175ac_ct_CC=$ac_cv_prog_ac_ct_CC
4176if test -n "$ac_ct_CC"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4178$as_echo "$ac_ct_CC" >&6; }
4179else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181$as_echo "no" >&6; }
4182fi
4183
4184 if test "x$ac_ct_CC" = x; then
4185 CC=""
4186 else
4187 case $cross_compiling:$ac_tool_warned in
4188yes:)
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4191ac_tool_warned=yes ;;
4192esac
4193 CC=$ac_ct_CC
4194 fi
4195else
4196 CC="$ac_cv_prog_CC"
4197fi
4198
4199if test -z "$CC"; then
4200 if test -n "$ac_tool_prefix"; then
4201 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4202set dummy ${ac_tool_prefix}cc; ac_word=$2
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204$as_echo_n "checking for $ac_word... " >&6; }
4205if ${ac_cv_prog_CC+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207else
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC="$CC" # Let the user override the test.
4210else
4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_CC="${ac_tool_prefix}cc"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222done
4223 done
4224IFS=$as_save_IFS
4225
4226fi
4227fi
4228CC=$ac_cv_prog_CC
4229if test -n "$CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4231$as_echo "$CC" >&6; }
4232else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234$as_echo "no" >&6; }
4235fi
4236
4237
4238 fi
4239fi
4240if test -z "$CC"; then
4241 # Extract the first word of "cc", so it can be a program name with args.
4242set dummy cc; ac_word=$2
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244$as_echo_n "checking for $ac_word... " >&6; }
4245if ${ac_cv_prog_CC+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247else
4248 if test -n "$CC"; then
4249 ac_cv_prog_CC="$CC" # Let the user override the test.
4250else
4251 ac_prog_rejected=no
4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4260 ac_prog_rejected=yes
4261 continue
4262 fi
4263 ac_cv_prog_CC="cc"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4266 fi
4267done
4268 done
4269IFS=$as_save_IFS
4270
4271if test $ac_prog_rejected = yes; then
4272 # We found a bogon in the path, so make sure we never use it.
4273 set dummy $ac_cv_prog_CC
4274 shift
4275 if test $# != 0; then
4276 # We chose a different compiler from the bogus one.
4277 # However, it has the same basename, so the bogon will be chosen
4278 # first if we set CC to just the basename; use the full file name.
4279 shift
4280 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4281 fi
4282fi
4283fi
4284fi
4285CC=$ac_cv_prog_CC
4286if test -n "$CC"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4288$as_echo "$CC" >&6; }
4289else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
4292fi
4293
4294
4295fi
4296if test -z "$CC"; then
4297 if test -n "$ac_tool_prefix"; then
4298 for ac_prog in cl.exe
4299 do
4300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303$as_echo_n "checking for $ac_word... " >&6; }
4304if ${ac_cv_prog_CC+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306else
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4320 fi
4321done
4322 done
4323IFS=$as_save_IFS
4324
4325fi
4326fi
4327CC=$ac_cv_prog_CC
4328if test -n "$CC"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4330$as_echo "$CC" >&6; }
4331else
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333$as_echo "no" >&6; }
4334fi
4335
4336
4337 test -n "$CC" && break
4338 done
4339fi
4340if test -z "$CC"; then
4341 ac_ct_CC=$CC
4342 for ac_prog in cl.exe
4343do
4344 # Extract the first word of "$ac_prog", so it can be a program name with args.
4345set dummy $ac_prog; ac_word=$2
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347$as_echo_n "checking for $ac_word... " >&6; }
4348if ${ac_cv_prog_ac_ct_CC+:} false; then :
4349 $as_echo_n "(cached) " >&6
4350else
4351 if test -n "$ac_ct_CC"; then
4352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4353else
4354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH
4356do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361 ac_cv_prog_ac_ct_CC="$ac_prog"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4364 fi
4365done
4366 done
4367IFS=$as_save_IFS
4368
4369fi
4370fi
4371ac_ct_CC=$ac_cv_prog_ac_ct_CC
4372if test -n "$ac_ct_CC"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4374$as_echo "$ac_ct_CC" >&6; }
4375else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377$as_echo "no" >&6; }
4378fi
4379
4380
4381 test -n "$ac_ct_CC" && break
4382done
4383
4384 if test "x$ac_ct_CC" = x; then
4385 CC=""
4386 else
4387 case $cross_compiling:$ac_tool_warned in
4388yes:)
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4391ac_tool_warned=yes ;;
4392esac
4393 CC=$ac_ct_CC
4394 fi
4395fi
4396
4397fi
4398
4399
4400test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4402as_fn_error $? "no acceptable C compiler found in \$PATH
4403See \`config.log' for more details" "$LINENO" 5; }
4404
4405# Provide some information about the compiler.
4406$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4407set X $ac_compile
4408ac_compiler=$2
4409for ac_option in --version -v -V -qversion; do
4410 { { ac_try="$ac_compiler $ac_option >&5"
4411case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414esac
4415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416$as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4418 ac_status=$?
4419 if test -s conftest.err; then
4420 sed '10a\
4421... rest of stderr output deleted ...
4422 10q' conftest.err >conftest.er1
4423 cat conftest.er1 >&5
4424 fi
4425 rm -f conftest.er1 conftest.err
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4428done
4429
4430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431/* end confdefs.h. */
4432
4433int main (void)
4434{
4435
4436 ;
4437 return 0;
4438}
4439_ACEOF
4440ac_clean_files_save=$ac_clean_files
4441ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4442# Try to create an executable without -o first, disregard a.out.
4443# It will help us diagnose broken compilers, and finding out an intuition
4444# of exeext.
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4446$as_echo_n "checking whether the C compiler works... " >&6; }
4447ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4448
4449# The possible output files:
4450ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4451
4452ac_rmfiles=
4453for ac_file in $ac_files
4454do
4455 case $ac_file in
4456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4457 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4458 esac
4459done
4460rm -f $ac_rmfiles
4461
4462if { { ac_try="$ac_link_default"
4463case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466esac
4467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468$as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_link_default") 2>&5
4470 ac_status=$?
4471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4472 test $ac_status = 0; }; then :
4473 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4474# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4475# in a Makefile. We should not override ac_cv_exeext if it was cached,
4476# so that the user can short-circuit this test for compilers unknown to
4477# Autoconf.
4478for ac_file in $ac_files ''
4479do
4480 test -f "$ac_file" || continue
4481 case $ac_file in
4482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4483 ;;
4484 [ab].out )
4485 # We found the default executable, but exeext='' is most
4486 # certainly right.
4487 break;;
4488 *.* )
4489 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4490 then :; else
4491 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4492 fi
4493 # We set ac_cv_exeext here because the later test for it is not
4494 # safe: cross compilers may not add the suffix if given an `-o'
4495 # argument, so we may need to know it at that point already.
4496 # Even if this section looks crufty: it has the advantage of
4497 # actually working.
4498 break;;
4499 * )
4500 break;;
4501 esac
4502done
4503test "$ac_cv_exeext" = no && ac_cv_exeext=
4504
4505else
4506 ac_file=''
4507fi
4508if test -z "$ac_file"; then :
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }
4511$as_echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516as_fn_error 77 "C compiler cannot create executables
4517See \`config.log' for more details" "$LINENO" 5; }
4518else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4520$as_echo "yes" >&6; }
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4523$as_echo_n "checking for C compiler default output file name... " >&6; }
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4525$as_echo "$ac_file" >&6; }
4526ac_exeext=$ac_cv_exeext
4527
4528rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4529ac_clean_files=$ac_clean_files_save
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4531$as_echo_n "checking for suffix of executables... " >&6; }
4532if { { ac_try="$ac_link"
4533case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536esac
4537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4538$as_echo "$ac_try_echo"; } >&5
4539 (eval "$ac_link") 2>&5
4540 ac_status=$?
4541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4542 test $ac_status = 0; }; then :
4543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4544# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4545# work properly (i.e., refer to `conftest.exe'), while it won't with
4546# `rm'.
4547for ac_file in conftest.exe conftest conftest.*; do
4548 test -f "$ac_file" || continue
4549 case $ac_file in
4550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4552 break;;
4553 * ) break;;
4554 esac
4555done
4556else
4557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4559as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4560See \`config.log' for more details" "$LINENO" 5; }
4561fi
4562rm -f conftest conftest$ac_cv_exeext
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4564$as_echo "$ac_cv_exeext" >&6; }
4565
4566rm -f conftest.$ac_ext
4567EXEEXT=$ac_cv_exeext
4568ac_exeext=$EXEEXT
4569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h. */
4571#include <stdio.h>
4572int main (void)
4573{
4574FILE *f = fopen ("conftest.out", "w");
4575 return ferror (f) || fclose (f) != 0;
4576
4577 ;
4578 return 0;
4579}
4580_ACEOF
4581ac_clean_files="$ac_clean_files conftest.out"
4582# Check that the compiler produces executables we can run. If not, either
4583# the compiler is broken, or we cross compile.
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4585$as_echo_n "checking whether we are cross compiling... " >&6; }
4586if test "$cross_compiling" != yes; then
4587 { { ac_try="$ac_link"
4588case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593$as_echo "$ac_try_echo"; } >&5
4594 (eval "$ac_link") 2>&5
4595 ac_status=$?
4596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }
4598 if { ac_try='./conftest$ac_cv_exeext'
4599 { { case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602esac
4603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4604$as_echo "$ac_try_echo"; } >&5
4605 (eval "$ac_try") 2>&5
4606 ac_status=$?
4607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4608 test $ac_status = 0; }; }; then
4609 cross_compiling=no
4610 else
4611 if test "$cross_compiling" = maybe; then
4612 cross_compiling=yes
4613 else
4614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4616as_fn_error $? "cannot run C compiled programs.
4617If you meant to cross compile, use \`--host'.
4618See \`config.log' for more details" "$LINENO" 5; }
4619 fi
4620 fi
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4623$as_echo "$cross_compiling" >&6; }
4624
4625rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4626ac_clean_files=$ac_clean_files_save
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4628$as_echo_n "checking for suffix of object files... " >&6; }
4629if ${ac_cv_objext+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631else
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h. */
4634
4635int main (void)
4636{
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
4642rm -f conftest.o conftest.obj
4643if { { ac_try="$ac_compile"
4644case "(($ac_try" in
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4647esac
4648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4649$as_echo "$ac_try_echo"; } >&5
4650 (eval "$ac_compile") 2>&5
4651 ac_status=$?
4652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4653 test $ac_status = 0; }; then :
4654 for ac_file in conftest.o conftest.obj conftest.*; do
4655 test -f "$ac_file" || continue;
4656 case $ac_file in
4657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4658 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4659 break;;
4660 esac
4661done
4662else
4663 $as_echo "$as_me: failed program was:" >&5
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
4666{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4668as_fn_error $? "cannot compute suffix of object files: cannot compile
4669See \`config.log' for more details" "$LINENO" 5; }
4670fi
4671rm -f conftest.$ac_cv_objext conftest.$ac_ext
4672fi
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4674$as_echo "$ac_cv_objext" >&6; }
4675OBJEXT=$ac_cv_objext
4676ac_objext=$OBJEXT
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4678$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4679if ${ac_cv_c_compiler_gnu+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681else
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683/* end confdefs.h. */
4684
4685int main (void)
4686{
4687#ifndef __GNUC__
4688 choke me
4689#endif
4690
4691 ;
4692 return 0;
4693}
4694_ACEOF
4695if ac_fn_c_try_compile "$LINENO"; then :
4696 ac_compiler_gnu=yes
4697else
4698 ac_compiler_gnu=no
4699fi
4700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701ac_cv_c_compiler_gnu=$ac_compiler_gnu
4702
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4705$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4706if test $ac_compiler_gnu = yes; then
4707 GCC=yes
4708else
4709 GCC=
4710fi
4711ac_test_CFLAGS=${CFLAGS+set}
4712ac_save_CFLAGS=$CFLAGS
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4714$as_echo_n "checking whether $CC accepts -g... " >&6; }
4715if ${ac_cv_prog_cc_g+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717else
4718 ac_save_c_werror_flag=$ac_c_werror_flag
4719 ac_c_werror_flag=yes
4720 ac_cv_prog_cc_g=no
4721 CFLAGS="-g"
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h. */
4724
4725int main (void)
4726{
4727
4728 ;
4729 return 0;
4730}
4731_ACEOF
4732if ac_fn_c_try_compile "$LINENO"; then :
4733 ac_cv_prog_cc_g=yes
4734else
4735 CFLAGS=""
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h. */
4738
4739int main (void)
4740{
4741
4742 ;
4743 return 0;
4744}
4745_ACEOF
4746if ac_fn_c_try_compile "$LINENO"; then :
4747
4748else
4749 ac_c_werror_flag=$ac_save_c_werror_flag
4750 CFLAGS="-g"
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752/* end confdefs.h. */
4753
4754int main (void)
4755{
4756
4757 ;
4758 return 0;
4759}
4760_ACEOF
4761if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_prog_cc_g=yes
4763fi
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767fi
4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 ac_c_werror_flag=$ac_save_c_werror_flag
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4772$as_echo "$ac_cv_prog_cc_g" >&6; }
4773if test "$ac_test_CFLAGS" = set; then
4774 CFLAGS=$ac_save_CFLAGS
4775elif test $ac_cv_prog_cc_g = yes; then
4776 if test "$GCC" = yes; then
4777 CFLAGS="-g -O2"
4778 else
4779 CFLAGS="-g"
4780 fi
4781else
4782 if test "$GCC" = yes; then
4783 CFLAGS="-O2"
4784 else
4785 CFLAGS=
4786 fi
4787fi
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4789$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4790if ${ac_cv_prog_cc_c89+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792else
4793 ac_cv_prog_cc_c89=no
4794ac_save_CC=$CC
4795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h. */
4797#include <stdarg.h>
4798#include <stdio.h>
4799struct stat;
4800/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4801struct buf { int x; };
4802FILE * (*rcsopen) (struct buf *, struct stat *, int);
4803static char *e (p, i)
4804 char **p;
4805 int i;
4806{
4807 return p[i];
4808}
4809static char *f (char * (*g) (char **, int), char **p, ...)
4810{
4811 char *s;
4812 va_list v;
4813 va_start (v,p);
4814 s = g (p, va_arg (v,int));
4815 va_end (v);
4816 return s;
4817}
4818
4819/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4820 function prototypes and stuff, but not '\xHH' hex character constants.
4821 These don't provoke an error unfortunately, instead are silently treated
4822 as 'x'. The following induces an error, until -std is added to get
4823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4824 array size at least. It's necessary to write '\x00'==0 to get something
4825 that's true only with -std. */
4826int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4827
4828/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4829 inside strings and character constants. */
4830#define FOO(x) 'x'
4831int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4832
4833int test (int i, double x);
4834struct s1 {int (*f) (int a);};
4835struct s2 {int (*f) (double a);};
4836int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4837int argc;
4838char **argv;
4839int main (void)
4840{
4841return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4842 ;
4843 return 0;
4844}
4845_ACEOF
4846for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4848do
4849 CC="$ac_save_CC $ac_arg"
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 ac_cv_prog_cc_c89=$ac_arg
4852fi
4853rm -f core conftest.err conftest.$ac_objext
4854 test "x$ac_cv_prog_cc_c89" != "xno" && break
4855done
4856rm -f conftest.$ac_ext
4857CC=$ac_save_CC
4858
4859fi
4860# AC_CACHE_VAL
4861case "x$ac_cv_prog_cc_c89" in
4862 x)
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4864$as_echo "none needed" >&6; } ;;
4865 xno)
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4867$as_echo "unsupported" >&6; } ;;
4868 *)
4869 CC="$CC $ac_cv_prog_cc_c89"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4871$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4872esac
4873if test "x$ac_cv_prog_cc_c89" != xno; then :
4874
4875fi
4876
4877ac_ext=c
4878ac_cpp='$CPP $CPPFLAGS'
4879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882
4883ac_ext=c
4884ac_cpp='$CPP $CPPFLAGS'
4885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4889$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4890if ${am_cv_prog_cc_c_o+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892else
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894/* end confdefs.h. */
4895
4896int main (void)
4897{
4898
4899 ;
4900 return 0;
4901}
4902_ACEOF
4903 # Make sure it works both with $CC and with simple cc.
4904 # Following AC_PROG_CC_C_O, we do the test twice because some
4905 # compilers refuse to overwrite an existing .o file with -o,
4906 # though they will create one.
4907 am_cv_prog_cc_c_o=yes
4908 for am_i in 1 2; do
4909 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4910 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } \
4914 && test -f conftest2.$ac_objext; then
4915 : OK
4916 else
4917 am_cv_prog_cc_c_o=no
4918 break
4919 fi
4920 done
4921 rm -f core conftest*
4922 unset am_i
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4925$as_echo "$am_cv_prog_cc_c_o" >&6; }
4926if test "$am_cv_prog_cc_c_o" != yes; then
4927 # Losing compiler, so override with the script.
4928 # FIXME: It is wrong to rewrite CC.
4929 # But if we don't then we get into trouble of one sort or another.
4930 # A longer-term fix would be to have automake use am__CC in this case,
4931 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4932 CC="$am_aux_dir/compile $CC"
4933fi
4934ac_ext=c
4935ac_cpp='$CPP $CPPFLAGS'
4936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
4940
4941
4942ac_ext=c
4943ac_cpp='$CPP $CPPFLAGS'
4944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4948$as_echo_n "checking how to run the C preprocessor... " >&6; }
4949# On Suns, sometimes $CPP names a directory.
4950if test -n "$CPP" && test -d "$CPP"; then
4951 CPP=
4952fi
4953if test -z "$CPP"; then
4954 if ${ac_cv_prog_CPP+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956else
4957 # Double quotes because CPP needs to be expanded
4958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4959 do
4960 ac_preproc_ok=false
4961for ac_c_preproc_warn_flag in '' yes
4962do
4963 # Use a header file that comes with gcc, so configuring glibc
4964 # with a fresh cross-compiler works.
4965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4966 # <limits.h> exists even on freestanding compilers.
4967 # On the NeXT, cc -E runs the code through the compiler's parser,
4968 # not just through cpp. "Syntax error" is here to catch this case.
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970/* end confdefs.h. */
4971#ifdef __STDC__
4972# include <limits.h>
4973#else
4974# include <assert.h>
4975#endif
4976 Syntax error
4977_ACEOF
4978if ac_fn_c_try_cpp "$LINENO"; then :
4979
4980else
4981 # Broken: fails on valid input.
4982continue
4983fi
4984rm -f conftest.err conftest.i conftest.$ac_ext
4985
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h. */
4990#include <ac_nonexistent.h>
4991_ACEOF
4992if ac_fn_c_try_cpp "$LINENO"; then :
4993 # Broken: success on invalid input.
4994continue
4995else
4996 # Passes both tests.
4997ac_preproc_ok=:
4998break
4999fi
5000rm -f conftest.err conftest.i conftest.$ac_ext
5001
5002done
5003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004rm -f conftest.i conftest.err conftest.$ac_ext
5005if $ac_preproc_ok; then :
5006 break
5007fi
5008
5009 done
5010 ac_cv_prog_CPP=$CPP
5011
5012fi
5013 CPP=$ac_cv_prog_CPP
5014else
5015 ac_cv_prog_CPP=$CPP
5016fi
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5018$as_echo "$CPP" >&6; }
5019ac_preproc_ok=false
5020for ac_c_preproc_warn_flag in '' yes
5021do
5022 # Use a header file that comes with gcc, so configuring glibc
5023 # with a fresh cross-compiler works.
5024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025 # <limits.h> exists even on freestanding compilers.
5026 # On the NeXT, cc -E runs the code through the compiler's parser,
5027 # not just through cpp. "Syntax error" is here to catch this case.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h. */
5030#ifdef __STDC__
5031# include <limits.h>
5032#else
5033# include <assert.h>
5034#endif
5035 Syntax error
5036_ACEOF
5037if ac_fn_c_try_cpp "$LINENO"; then :
5038
5039else
5040 # Broken: fails on valid input.
5041continue
5042fi
5043rm -f conftest.err conftest.i conftest.$ac_ext
5044
5045 # OK, works on sane cases. Now check whether nonexistent headers
5046 # can be detected and how.
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h. */
5049#include <ac_nonexistent.h>
5050_ACEOF
5051if ac_fn_c_try_cpp "$LINENO"; then :
5052 # Broken: success on invalid input.
5053continue
5054else
5055 # Passes both tests.
5056ac_preproc_ok=:
5057break
5058fi
5059rm -f conftest.err conftest.i conftest.$ac_ext
5060
5061done
5062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5063rm -f conftest.i conftest.err conftest.$ac_ext
5064if $ac_preproc_ok; then :
5065
5066else
5067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5069as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5070See \`config.log' for more details" "$LINENO" 5; }
5071fi
5072
5073ac_ext=c
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078
5079
5080 IFS=$xc_prog_cc_prev_IFS
5081 LIBS=$xc_prog_cc_prev_LIBS
5082 CFLAGS=$xc_prog_cc_prev_CFLAGS
5083 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5084 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5085
5086
5087
5088
5089
5090ac_ext=cpp
5091ac_cpp='$CXXCPP $CPPFLAGS'
5092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5095if test -z "$CXX"; then
5096 if test -n "$CCC"; then
5097 CXX=$CCC
5098 else
5099 if test -n "$ac_tool_prefix"; then
5100 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5101 do
5102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5103set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105$as_echo_n "checking for $ac_word... " >&6; }
5106if ${ac_cv_prog_CXX+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108else
5109 if test -n "$CXX"; then
5110 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5111else
5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123done
5124 done
5125IFS=$as_save_IFS
5126
5127fi
5128fi
5129CXX=$ac_cv_prog_CXX
5130if test -n "$CXX"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5132$as_echo "$CXX" >&6; }
5133else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135$as_echo "no" >&6; }
5136fi
5137
5138
5139 test -n "$CXX" && break
5140 done
5141fi
5142if test -z "$CXX"; then
5143 ac_ct_CXX=$CXX
5144 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5145do
5146 # Extract the first word of "$ac_prog", so it can be a program name with args.
5147set dummy $ac_prog; ac_word=$2
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
5150if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152else
5153 if test -n "$ac_ct_CXX"; then
5154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5155else
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_ac_ct_CXX="$ac_prog"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167done
5168 done
5169IFS=$as_save_IFS
5170
5171fi
5172fi
5173ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5174if test -n "$ac_ct_CXX"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5176$as_echo "$ac_ct_CXX" >&6; }
5177else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
5180fi
5181
5182
5183 test -n "$ac_ct_CXX" && break
5184done
5185
5186 if test "x$ac_ct_CXX" = x; then
5187 CXX="g++"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190yes:)
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193ac_tool_warned=yes ;;
5194esac
5195 CXX=$ac_ct_CXX
5196 fi
5197fi
5198
5199 fi
5200fi
5201# Provide some information about the compiler.
5202$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5203set X $ac_compile
5204ac_compiler=$2
5205for ac_option in --version -v -V -qversion; do
5206 { { ac_try="$ac_compiler $ac_option >&5"
5207case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5210esac
5211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5212$as_echo "$ac_try_echo"; } >&5
5213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5214 ac_status=$?
5215 if test -s conftest.err; then
5216 sed '10a\
5217... rest of stderr output deleted ...
5218 10q' conftest.err >conftest.er1
5219 cat conftest.er1 >&5
5220 fi
5221 rm -f conftest.er1 conftest.err
5222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5223 test $ac_status = 0; }
5224done
5225
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5227$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5228if ${ac_cv_cxx_compiler_gnu+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230else
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232/* end confdefs.h. */
5233
5234int
5235main ()
5236{
5237#ifndef __GNUC__
5238 choke me
5239#endif
5240
5241 ;
5242 return 0;
5243}
5244_ACEOF
5245if ac_fn_cxx_try_compile "$LINENO"; then :
5246 ac_compiler_gnu=yes
5247else
5248 ac_compiler_gnu=no
5249fi
5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5252
5253fi
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5255$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5256if test $ac_compiler_gnu = yes; then
5257 GXX=yes
5258else
5259 GXX=
5260fi
5261ac_test_CXXFLAGS=${CXXFLAGS+set}
5262ac_save_CXXFLAGS=$CXXFLAGS
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5264$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5265if ${ac_cv_prog_cxx_g+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267else
5268 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5269 ac_cxx_werror_flag=yes
5270 ac_cv_prog_cxx_g=no
5271 CXXFLAGS="-g"
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h. */
5274
5275int
5276main ()
5277{
5278
5279 ;
5280 return 0;
5281}
5282_ACEOF
5283if ac_fn_cxx_try_compile "$LINENO"; then :
5284 ac_cv_prog_cxx_g=yes
5285else
5286 CXXFLAGS=""
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h. */
5289
5290int
5291main ()
5292{
5293
5294 ;
5295 return 0;
5296}
5297_ACEOF
5298if ac_fn_cxx_try_compile "$LINENO"; then :
5299
5300else
5301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5302 CXXFLAGS="-g"
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304/* end confdefs.h. */
5305
5306int
5307main ()
5308{
5309
5310 ;
5311 return 0;
5312}
5313_ACEOF
5314if ac_fn_cxx_try_compile "$LINENO"; then :
5315 ac_cv_prog_cxx_g=yes
5316fi
5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318fi
5319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320fi
5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5323fi
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5325$as_echo "$ac_cv_prog_cxx_g" >&6; }
5326if test "$ac_test_CXXFLAGS" = set; then
5327 CXXFLAGS=$ac_save_CXXFLAGS
5328elif test $ac_cv_prog_cxx_g = yes; then
5329 if test "$GXX" = yes; then
5330 CXXFLAGS="-g -O2"
5331 else
5332 CXXFLAGS="-g"
5333 fi
5334else
5335 if test "$GXX" = yes; then
5336 CXXFLAGS="-O2"
5337 else
5338 CXXFLAGS=
5339 fi
5340fi
5341ac_ext=cpp
5342ac_cpp='$CXXCPP $CPPFLAGS'
5343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5346
5347
5348 ax_cxx_compile_cxx11_required=false
5349 ac_ext=cpp
5350ac_cpp='$CXXCPP $CPPFLAGS'
5351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5354 ac_success=no
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5356$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5357if ${ax_cv_cxx_compile_cxx11+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359else
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h. */
5362
5363 template <typename T>
5364 struct check
5365 {
5366 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5367 };
5368
5369 struct Base {
5370 virtual void f() {}
5371 };
5372 struct Child : public Base {
5373 virtual void f() override {}
5374 };
5375
5376 typedef check<check<bool>> right_angle_brackets;
5377
5378 int a;
5379 decltype(a) b;
5380
5381 typedef check<int> check_type;
5382 check_type c;
5383 check_type&& cr = static_cast<check_type&&>(c);
5384
5385 auto d = a;
5386 auto l = [](){};
5387
5388 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5389 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
5390 namespace test_template_alias_sfinae {
5391 struct foo {};
5392
5393 template<typename T>
5394 using member = typename T::member_type;
5395
5396 template<typename T>
5397 void func(...) {}
5398
5399 template<typename T>
5400 void func(member<T>*) {}
5401
5402 void test();
5403
5404 void test() {
5405 func<foo>(0);
5406 }
5407 }
5408
5409_ACEOF
5410if ac_fn_cxx_try_compile "$LINENO"; then :
5411 ax_cv_cxx_compile_cxx11=yes
5412else
5413 ax_cv_cxx_compile_cxx11=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5418$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5419 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5420 ac_success=yes
5421 fi
5422
5423
5424
5425 if test x$ac_success = xno; then
5426 for switch in -std=c++11 -std=c++0x; do
5427 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5429$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5430if eval \${$cachevar+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432else
5433 ac_save_CXXFLAGS="$CXXFLAGS"
5434 CXXFLAGS="$CXXFLAGS $switch"
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */
5437
5438 template <typename T>
5439 struct check
5440 {
5441 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5442 };
5443
5444 struct Base {
5445 virtual void f() {}
5446 };
5447 struct Child : public Base {
5448 virtual void f() override {}
5449 };
5450
5451 typedef check<check<bool>> right_angle_brackets;
5452
5453 int a;
5454 decltype(a) b;
5455
5456 typedef check<int> check_type;
5457 check_type c;
5458 check_type&& cr = static_cast<check_type&&>(c);
5459
5460 auto d = a;
5461 auto l = [](){};
5462
5463 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5464 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
5465 namespace test_template_alias_sfinae {
5466 struct foo {};
5467
5468 template<typename T>
5469 using member = typename T::member_type;
5470
5471 template<typename T>
5472 void func(...) {}
5473
5474 template<typename T>
5475 void func(member<T>*) {}
5476
5477 void test();
5478
5479 void test() {
5480 func<foo>(0);
5481 }
5482 }
5483
5484_ACEOF
5485if ac_fn_cxx_try_compile "$LINENO"; then :
5486 eval $cachevar=yes
5487else
5488 eval $cachevar=no
5489fi
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 CXXFLAGS="$ac_save_CXXFLAGS"
5492fi
5493eval ac_res=\$$cachevar
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5495$as_echo "$ac_res" >&6; }
5496 if eval test x\$$cachevar = xyes; then
5497 CXXFLAGS="$CXXFLAGS $switch"
5498 ac_success=yes
5499 break
5500 fi
5501 done
5502 fi
5503 ac_ext=c
5504ac_cpp='$CPP $CPPFLAGS'
5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508
5509 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5510 if test x$ac_success = xno; then
5511 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5512 fi
5513 else
5514 if test x$ac_success = xno; then
5515 HAVE_CXX11=0
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5517$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5518 else
5519 HAVE_CXX11=1
5520
5521$as_echo "#define HAVE_CXX11 1" >>confdefs.h
5522
5523 fi
5524
5525
5526 fi
5527
5528
5529am__api_version='1.15'
5530
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5532$as_echo_n "checking whether build environment is sane... " >&6; }
5533# Reject unsafe characters in $srcdir or the absolute working directory
5534# name. Accept space and tab only in the latter.
5535am_lf='
5536'
5537case `pwd` in
5538 *[\\\"\#\$\&\'\`$am_lf]*)
5539 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5540esac
5541case $srcdir in
5542 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5543 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5544esac
5545
5546# Do 'set' in a subshell so we don't clobber the current shell's
5547# arguments. Must try -L first in case configure is actually a
5548# symlink; some systems play weird games with the mod time of symlinks
5549# (eg FreeBSD returns the mod time of the symlink's containing
5550# directory).
5551if (
5552 am_has_slept=no
5553 for am_try in 1 2; do
5554 echo "timestamp, slept: $am_has_slept" > conftest.file
5555 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5556 if test "$*" = "X"; then
5557 # -L didn't work.
5558 set X `ls -t "$srcdir/configure" conftest.file`
5559 fi
5560 if test "$*" != "X $srcdir/configure conftest.file" \
5561 && test "$*" != "X conftest.file $srcdir/configure"; then
5562
5563 # If neither matched, then we have a broken ls. This can happen
5564 # if, for instance, CONFIG_SHELL is bash and it inherits a
5565 # broken ls alias from the environment. This has actually
5566 # happened. Such a system could not be considered "sane".
5567 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5568 alias in your environment" "$LINENO" 5
5569 fi
5570 if test "$2" = conftest.file || test $am_try -eq 2; then
5571 break
5572 fi
5573 # Just in case.
5574 sleep 1
5575 am_has_slept=yes
5576 done
5577 test "$2" = conftest.file
5578 )
5579then
5580 # Ok.
5581 :
5582else
5583 as_fn_error $? "newly created file is older than distributed files!
5584Check your system clock" "$LINENO" 5
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5587$as_echo "yes" >&6; }
5588# If we didn't sleep, we still need to ensure time stamps of config.status and
5589# generated files are strictly newer.
5590am_sleep_pid=
5591if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5592 ( sleep 1 ) &
5593 am_sleep_pid=$!
5594fi
5595
5596rm -f conftest.file
5597
5598test "$program_prefix" != NONE &&
5599 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5600# Use a double $ so make ignores it.
5601test "$program_suffix" != NONE &&
5602 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5603# Double any \ or $.
5604# By default was `s,x,x', remove it if useless.
5605ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5606program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5607
5608if test x"${MISSING+set}" != xset; then
5609 case $am_aux_dir in
5610 *\ * | *\ *)
5611 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5612 *)
5613 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5614 esac
5615fi
5616# Use eval to expand $SHELL
5617if eval "$MISSING --is-lightweight"; then
5618 am_missing_run="$MISSING "
5619else
5620 am_missing_run=
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5622$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5623fi
5624
5625if test x"${install_sh+set}" != xset; then
5626 case $am_aux_dir in
5627 *\ * | *\ *)
5628 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5629 *)
5630 install_sh="\${SHELL} $am_aux_dir/install-sh"
5631 esac
5632fi
5633
5634# Installed binaries are usually stripped using 'strip' when the user
5635# run "make install-strip". However 'strip' might not be the right
5636# tool to use in cross-compilation environments, therefore Automake
5637# will honor the 'STRIP' environment variable to overrule this program.
5638if test "$cross_compiling" != no; then
5639 if test -n "$ac_tool_prefix"; then
5640 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5641set dummy ${ac_tool_prefix}strip; ac_word=$2
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643$as_echo_n "checking for $ac_word... " >&6; }
5644if ${ac_cv_prog_STRIP+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646else
5647 if test -n "$STRIP"; then
5648 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5649else
5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661done
5662 done
5663IFS=$as_save_IFS
5664
5665fi
5666fi
5667STRIP=$ac_cv_prog_STRIP
5668if test -n "$STRIP"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5670$as_echo "$STRIP" >&6; }
5671else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673$as_echo "no" >&6; }
5674fi
5675
5676
5677fi
5678if test -z "$ac_cv_prog_STRIP"; then
5679 ac_ct_STRIP=$STRIP
5680 # Extract the first word of "strip", so it can be a program name with args.
5681set dummy strip; ac_word=$2
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683$as_echo_n "checking for $ac_word... " >&6; }
5684if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686else
5687 if test -n "$ac_ct_STRIP"; then
5688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5689else
5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_ac_ct_STRIP="strip"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5700 fi
5701done
5702 done
5703IFS=$as_save_IFS
5704
5705fi
5706fi
5707ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5708if test -n "$ac_ct_STRIP"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5710$as_echo "$ac_ct_STRIP" >&6; }
5711else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713$as_echo "no" >&6; }
5714fi
5715
5716 if test "x$ac_ct_STRIP" = x; then
5717 STRIP=":"
5718 else
5719 case $cross_compiling:$ac_tool_warned in
5720yes:)
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723ac_tool_warned=yes ;;
5724esac
5725 STRIP=$ac_ct_STRIP
5726 fi
5727else
5728 STRIP="$ac_cv_prog_STRIP"
5729fi
5730
5731fi
5732INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5733
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5735$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5736if test -z "$MKDIR_P"; then
5737 if ${ac_cv_path_mkdir+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_prog in mkdir gmkdir; do
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5748 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5749 'mkdir (GNU coreutils) '* | \
5750 'mkdir (coreutils) '* | \
5751 'mkdir (fileutils) '4.1*)
5752 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5753 break 3;;
5754 esac
5755 done
5756 done
5757 done
5758IFS=$as_save_IFS
5759
5760fi
5761
5762 test -d ./--version && rmdir ./--version
5763 if test "${ac_cv_path_mkdir+set}" = set; then
5764 MKDIR_P="$ac_cv_path_mkdir -p"
5765 else
5766 # As a last resort, use the slow shell script. Don't cache a
5767 # value for MKDIR_P within a source directory, because that will
5768 # break other packages using the cache if that directory is
5769 # removed, or if the value is a relative name.
5770 MKDIR_P="$ac_install_sh -d"
5771 fi
5772fi
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5774$as_echo "$MKDIR_P" >&6; }
5775
5776for ac_prog in gawk mawk nawk awk
5777do
5778 # Extract the first word of "$ac_prog", so it can be a program name with args.
5779set dummy $ac_prog; ac_word=$2
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781$as_echo_n "checking for $ac_word... " >&6; }
5782if ${ac_cv_prog_AWK+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784else
5785 if test -n "$AWK"; then
5786 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_AWK="$ac_prog"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799done
5800 done
5801IFS=$as_save_IFS
5802
5803fi
5804fi
5805AWK=$ac_cv_prog_AWK
5806if test -n "$AWK"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5808$as_echo "$AWK" >&6; }
5809else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
5812fi
5813
5814
5815 test -n "$AWK" && break
5816done
5817
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5819$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5820set x ${MAKE-make}
5821ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5822if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824else
5825 cat >conftest.make <<\_ACEOF
5826SHELL = /bin/sh
5827all:
5828 @echo '@@@%%%=$(MAKE)=@@@%%%'
5829_ACEOF
5830# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5831case `${MAKE-make} -f conftest.make 2>/dev/null` in
5832 *@@@%%%=?*=@@@%%%*)
5833 eval ac_cv_prog_make_${ac_make}_set=yes;;
5834 *)
5835 eval ac_cv_prog_make_${ac_make}_set=no;;
5836esac
5837rm -f conftest.make
5838fi
5839if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5841$as_echo "yes" >&6; }
5842 SET_MAKE=
5843else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845$as_echo "no" >&6; }
5846 SET_MAKE="MAKE=${MAKE-make}"
5847fi
5848
5849rm -rf .tst 2>/dev/null
5850mkdir .tst 2>/dev/null
5851if test -d .tst; then
5852 am__leading_dot=.
5853else
5854 am__leading_dot=_
5855fi
5856rmdir .tst 2>/dev/null
5857
5858DEPDIR="${am__leading_dot}deps"
5859
5860ac_config_commands="$ac_config_commands depfiles"
5861
5862
5863am_make=${MAKE-make}
5864cat > confinc << 'END'
5865am__doit:
5866 @echo this is the am__doit target
5867.PHONY: am__doit
5868END
5869# If we don't find an include directive, just comment out the code.
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5871$as_echo_n "checking for style of include used by $am_make... " >&6; }
5872am__include="#"
5873am__quote=
5874_am_result=none
5875# First try GNU make style include.
5876echo "include confinc" > confmf
5877# Ignore all kinds of additional output from 'make'.
5878case `$am_make -s -f confmf 2> /dev/null` in #(
5879*the\ am__doit\ target*)
5880 am__include=include
5881 am__quote=
5882 _am_result=GNU
5883 ;;
5884esac
5885# Now try BSD make style include.
5886if test "$am__include" = "#"; then
5887 echo '.include "confinc"' > confmf
5888 case `$am_make -s -f confmf 2> /dev/null` in #(
5889 *the\ am__doit\ target*)
5890 am__include=.include
5891 am__quote="\""
5892 _am_result=BSD
5893 ;;
5894 esac
5895fi
5896
5897
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5899$as_echo "$_am_result" >&6; }
5900rm -f confinc confmf
5901
5902# Check whether --enable-dependency-tracking was given.
5903if test "${enable_dependency_tracking+set}" = set; then :
5904 enableval=$enable_dependency_tracking;
5905fi
5906
5907if test "x$enable_dependency_tracking" != xno; then
5908 am_depcomp="$ac_aux_dir/depcomp"
5909 AMDEPBACKSLASH='\'
5910 am__nodep='_no'
5911fi
5912 if test "x$enable_dependency_tracking" != xno; then
5913 AMDEP_TRUE=
5914 AMDEP_FALSE='#'
5915else
5916 AMDEP_TRUE='#'
5917 AMDEP_FALSE=
5918fi
5919
5920
5921## --------------------------------------- ##
5922## Start of automake initialization code ##
5923## --------------------------------------- ##
5924
5925if test "`cd $srcdir && pwd`" != "`pwd`"; then
5926 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5927 # is not polluted with repeated "-I."
5928 am__isrc=' -I$(srcdir)'
5929 # test to see if srcdir already configured
5930 if test -f $srcdir/config.status; then
5931 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5932 fi
5933fi
5934
5935# test whether we have cygpath
5936if test -z "$CYGPATH_W"; then
5937 if (cygpath --version) >/dev/null 2>/dev/null; then
5938 CYGPATH_W='cygpath -w'
5939 else
5940 CYGPATH_W=echo
5941 fi
5942fi
5943
5944
5945# Define the identity of the package.
5946 PACKAGE='c-ares'
5947 VERSION='1.12.0'
5948
5949
5950cat >>confdefs.h <<_ACEOF
5951#define PACKAGE "$PACKAGE"
5952_ACEOF
5953
5954
5955cat >>confdefs.h <<_ACEOF
5956#define VERSION "$VERSION"
5957_ACEOF
5958
5959# Some tools Automake needs.
5960
5961ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5962
5963
5964AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5965
5966
5967AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5968
5969
5970AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5971
5972
5973MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5974
5975# For better backward compatibility. To be removed once Automake 1.9.x
5976# dies out for good. For more background, see:
5977# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5978# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5979mkdir_p='$(MKDIR_P)'
5980
5981# We need awk for the "check" target (and possibly the TAP driver). The
5982# system "awk" is bad on some platforms.
5983# Always define AMTAR for backward compatibility. Yes, it's still used
5984# in the wild :-( We should find a proper way to deprecate it ...
5985AMTAR='$${TAR-tar}'
5986
5987
5988# We'll loop over all known methods to create a tar archive until one works.
5989_am_tools='gnutar pax cpio none'
5990
5991am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5992
5993
5994
5995
5996
5997depcc="$CC" am_compiler_list=
5998
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6000$as_echo_n "checking dependency style of $depcc... " >&6; }
6001if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6002 $as_echo_n "(cached) " >&6
6003else
6004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6005 # We make a subdir and do the tests there. Otherwise we can end up
6006 # making bogus files that we don't know about and never remove. For
6007 # instance it was reported that on HP-UX the gcc test will end up
6008 # making a dummy file named 'D' -- because '-MD' means "put the output
6009 # in D".
6010 rm -rf conftest.dir
6011 mkdir conftest.dir
6012 # Copy depcomp to subdir because otherwise we won't find it if we're
6013 # using a relative directory.
6014 cp "$am_depcomp" conftest.dir
6015 cd conftest.dir
6016 # We will build objects and dependencies in a subdirectory because
6017 # it helps to detect inapplicable dependency modes. For instance
6018 # both Tru64's cc and ICC support -MD to output dependencies as a
6019 # side effect of compilation, but ICC will put the dependencies in
6020 # the current directory while Tru64 will put them in the object
6021 # directory.
6022 mkdir sub
6023
6024 am_cv_CC_dependencies_compiler_type=none
6025 if test "$am_compiler_list" = ""; then
6026 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6027 fi
6028 am__universal=false
6029 case " $depcc " in #(
6030 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6031 esac
6032
6033 for depmode in $am_compiler_list; do
6034 # Setup a source with many dependencies, because some compilers
6035 # like to wrap large dependency lists on column 80 (with \), and
6036 # we should not choose a depcomp mode which is confused by this.
6037 #
6038 # We need to recreate these files for each test, as the compiler may
6039 # overwrite some of them when testing with obscure command lines.
6040 # This happens at least with the AIX C compiler.
6041 : > sub/conftest.c
6042 for i in 1 2 3 4 5 6; do
6043 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6044 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6045 # Solaris 10 /bin/sh.
6046 echo '/* dummy */' > sub/conftst$i.h
6047 done
6048 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6049
6050 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6051 # mode. It turns out that the SunPro C++ compiler does not properly
6052 # handle '-M -o', and we need to detect this. Also, some Intel
6053 # versions had trouble with output in subdirs.
6054 am__obj=sub/conftest.${OBJEXT-o}
6055 am__minus_obj="-o $am__obj"
6056 case $depmode in
6057 gcc)
6058 # This depmode causes a compiler race in universal mode.
6059 test "$am__universal" = false || continue
6060 ;;
6061 nosideeffect)
6062 # After this tag, mechanisms are not by side-effect, so they'll
6063 # only be used when explicitly requested.
6064 if test "x$enable_dependency_tracking" = xyes; then
6065 continue
6066 else
6067 break
6068 fi
6069 ;;
6070 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6071 # This compiler won't grok '-c -o', but also, the minuso test has
6072 # not run yet. These depmodes are late enough in the game, and
6073 # so weak that their functioning should not be impacted.
6074 am__obj=conftest.${OBJEXT-o}
6075 am__minus_obj=
6076 ;;
6077 none) break ;;
6078 esac
6079 if depmode=$depmode \
6080 source=sub/conftest.c object=$am__obj \
6081 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6082 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6083 >/dev/null 2>conftest.err &&
6084 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6085 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6086 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6087 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6088 # icc doesn't choke on unknown options, it will just issue warnings
6089 # or remarks (even with -Werror). So we grep stderr for any message
6090 # that says an option was ignored or not supported.
6091 # When given -MP, icc 7.0 and 7.1 complain thusly:
6092 # icc: Command line warning: ignoring option '-M'; no argument required
6093 # The diagnosis changed in icc 8.0:
6094 # icc: Command line remark: option '-MP' not supported
6095 if (grep 'ignoring option' conftest.err ||
6096 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6097 am_cv_CC_dependencies_compiler_type=$depmode
6098 break
6099 fi
6100 fi
6101 done
6102
6103 cd ..
6104 rm -rf conftest.dir
6105else
6106 am_cv_CC_dependencies_compiler_type=none
6107fi
6108
6109fi
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6111$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6112CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6113
6114 if
6115 test "x$enable_dependency_tracking" != xno \
6116 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6117 am__fastdepCC_TRUE=
6118 am__fastdepCC_FALSE='#'
6119else
6120 am__fastdepCC_TRUE='#'
6121 am__fastdepCC_FALSE=
6122fi
6123
6124
6125depcc="$CXX" am_compiler_list=
6126
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6128$as_echo_n "checking dependency style of $depcc... " >&6; }
6129if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131else
6132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6133 # We make a subdir and do the tests there. Otherwise we can end up
6134 # making bogus files that we don't know about and never remove. For
6135 # instance it was reported that on HP-UX the gcc test will end up
6136 # making a dummy file named 'D' -- because '-MD' means "put the output
6137 # in D".
6138 rm -rf conftest.dir
6139 mkdir conftest.dir
6140 # Copy depcomp to subdir because otherwise we won't find it if we're
6141 # using a relative directory.
6142 cp "$am_depcomp" conftest.dir
6143 cd conftest.dir
6144 # We will build objects and dependencies in a subdirectory because
6145 # it helps to detect inapplicable dependency modes. For instance
6146 # both Tru64's cc and ICC support -MD to output dependencies as a
6147 # side effect of compilation, but ICC will put the dependencies in
6148 # the current directory while Tru64 will put them in the object
6149 # directory.
6150 mkdir sub
6151
6152 am_cv_CXX_dependencies_compiler_type=none
6153 if test "$am_compiler_list" = ""; then
6154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6155 fi
6156 am__universal=false
6157 case " $depcc " in #(
6158 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6159 esac
6160
6161 for depmode in $am_compiler_list; do
6162 # Setup a source with many dependencies, because some compilers
6163 # like to wrap large dependency lists on column 80 (with \), and
6164 # we should not choose a depcomp mode which is confused by this.
6165 #
6166 # We need to recreate these files for each test, as the compiler may
6167 # overwrite some of them when testing with obscure command lines.
6168 # This happens at least with the AIX C compiler.
6169 : > sub/conftest.c
6170 for i in 1 2 3 4 5 6; do
6171 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6172 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6173 # Solaris 10 /bin/sh.
6174 echo '/* dummy */' > sub/conftst$i.h
6175 done
6176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6177
6178 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6179 # mode. It turns out that the SunPro C++ compiler does not properly
6180 # handle '-M -o', and we need to detect this. Also, some Intel
6181 # versions had trouble with output in subdirs.
6182 am__obj=sub/conftest.${OBJEXT-o}
6183 am__minus_obj="-o $am__obj"
6184 case $depmode in
6185 gcc)
6186 # This depmode causes a compiler race in universal mode.
6187 test "$am__universal" = false || continue
6188 ;;
6189 nosideeffect)
6190 # After this tag, mechanisms are not by side-effect, so they'll
6191 # only be used when explicitly requested.
6192 if test "x$enable_dependency_tracking" = xyes; then
6193 continue
6194 else
6195 break
6196 fi
6197 ;;
6198 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6199 # This compiler won't grok '-c -o', but also, the minuso test has
6200 # not run yet. These depmodes are late enough in the game, and
6201 # so weak that their functioning should not be impacted.
6202 am__obj=conftest.${OBJEXT-o}
6203 am__minus_obj=
6204 ;;
6205 none) break ;;
6206 esac
6207 if depmode=$depmode \
6208 source=sub/conftest.c object=$am__obj \
6209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6210 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6211 >/dev/null 2>conftest.err &&
6212 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6214 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6216 # icc doesn't choke on unknown options, it will just issue warnings
6217 # or remarks (even with -Werror). So we grep stderr for any message
6218 # that says an option was ignored or not supported.
6219 # When given -MP, icc 7.0 and 7.1 complain thusly:
6220 # icc: Command line warning: ignoring option '-M'; no argument required
6221 # The diagnosis changed in icc 8.0:
6222 # icc: Command line remark: option '-MP' not supported
6223 if (grep 'ignoring option' conftest.err ||
6224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6225 am_cv_CXX_dependencies_compiler_type=$depmode
6226 break
6227 fi
6228 fi
6229 done
6230
6231 cd ..
6232 rm -rf conftest.dir
6233else
6234 am_cv_CXX_dependencies_compiler_type=none
6235fi
6236
6237fi
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6239$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6240CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6241
6242 if
6243 test "x$enable_dependency_tracking" != xno \
6244 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6245 am__fastdepCXX_TRUE=
6246 am__fastdepCXX_FALSE='#'
6247else
6248 am__fastdepCXX_TRUE='#'
6249 am__fastdepCXX_FALSE=
6250fi
6251
6252
6253
6254# POSIX will say in a future version that running "rm -f" with no argument
6255# is OK; and we want to be able to make that assumption in our Makefile
6256# recipes. So use an aggressive probe to check that the usage we want is
6257# actually supported "in the wild" to an acceptable degree.
6258# See automake bug#10828.
6259# To make any issue more visible, cause the running configure to be aborted
6260# by default if the 'rm' program in use doesn't match our expectations; the
6261# user can still override this though.
6262if rm -f && rm -fr && rm -rf; then : OK; else
6263 cat >&2 <<'END'
6264Oops!
6265
6266Your 'rm' program seems unable to run without file operands specified
6267on the command line, even when the '-f' option is present. This is contrary
6268to the behaviour of most rm programs out there, and not conforming with
6269the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6270
6271Please tell bug-automake@gnu.org about your system, including the value
6272of your $PATH and any error possibly output before this message. This
6273can help us improve future automake versions.
6274
6275END
6276 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6277 echo 'Configuration will proceed anyway, since you have set the' >&2
6278 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6279 echo >&2
6280 else
6281 cat >&2 <<'END'
6282Aborting the configuration process, to ensure you take notice of the issue.
6283
6284You can download and install GNU coreutils to get an 'rm' implementation
6285that behaves properly: <http://www.gnu.org/software/coreutils/>.
6286
6287If you want to complete the configuration process using your problematic
6288'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6289to "yes", and re-run configure.
6290
6291END
6292 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6293 fi
6294fi
6295
6296## ------------------------------------- ##
6297## End of automake initialization code ##
6298## ------------------------------------- ##
6299
6300
6301
6302
6303
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6305$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6306if ${ac_cv_path_GREP+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308else
6309 if test -z "$GREP"; then
6310 ac_path_GREP_found=false
6311 # Loop through the user's path and test for each of PROGNAME-LIST
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6314do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_prog in grep ggrep; do
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6320 as_fn_executable_p "$ac_path_GREP" || continue
6321# Check for GNU ac_path_GREP and select it if it is found.
6322 # Check for GNU $ac_path_GREP
6323case `"$ac_path_GREP" --version 2>&1` in
6324*GNU*)
6325 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6326*)
6327 ac_count=0
6328 $as_echo_n 0123456789 >"conftest.in"
6329 while :
6330 do
6331 cat "conftest.in" "conftest.in" >"conftest.tmp"
6332 mv "conftest.tmp" "conftest.in"
6333 cp "conftest.in" "conftest.nl"
6334 $as_echo 'GREP' >> "conftest.nl"
6335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6337 as_fn_arith $ac_count + 1 && ac_count=$as_val
6338 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6339 # Best one so far, save it but keep looking for a better one
6340 ac_cv_path_GREP="$ac_path_GREP"
6341 ac_path_GREP_max=$ac_count
6342 fi
6343 # 10*(2^10) chars as input seems more than enough
6344 test $ac_count -gt 10 && break
6345 done
6346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6347esac
6348
6349 $ac_path_GREP_found && break 3
6350 done
6351 done
6352 done
6353IFS=$as_save_IFS
6354 if test -z "$ac_cv_path_GREP"; then
6355 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6356 fi
6357else
6358 ac_cv_path_GREP=$GREP
6359fi
6360
6361fi
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6363$as_echo "$ac_cv_path_GREP" >&6; }
6364 GREP="$ac_cv_path_GREP"
6365
6366
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6368$as_echo_n "checking for egrep... " >&6; }
6369if ${ac_cv_path_EGREP+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371else
6372 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6373 then ac_cv_path_EGREP="$GREP -E"
6374 else
6375 if test -z "$EGREP"; then
6376 ac_path_EGREP_found=false
6377 # Loop through the user's path and test for each of PROGNAME-LIST
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6380do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_prog in egrep; do
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6386 as_fn_executable_p "$ac_path_EGREP" || continue
6387# Check for GNU ac_path_EGREP and select it if it is found.
6388 # Check for GNU $ac_path_EGREP
6389case `"$ac_path_EGREP" --version 2>&1` in
6390*GNU*)
6391 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6392*)
6393 ac_count=0
6394 $as_echo_n 0123456789 >"conftest.in"
6395 while :
6396 do
6397 cat "conftest.in" "conftest.in" >"conftest.tmp"
6398 mv "conftest.tmp" "conftest.in"
6399 cp "conftest.in" "conftest.nl"
6400 $as_echo 'EGREP' >> "conftest.nl"
6401 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6403 as_fn_arith $ac_count + 1 && ac_count=$as_val
6404 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6405 # Best one so far, save it but keep looking for a better one
6406 ac_cv_path_EGREP="$ac_path_EGREP"
6407 ac_path_EGREP_max=$ac_count
6408 fi
6409 # 10*(2^10) chars as input seems more than enough
6410 test $ac_count -gt 10 && break
6411 done
6412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6413esac
6414
6415 $ac_path_EGREP_found && break 3
6416 done
6417 done
6418 done
6419IFS=$as_save_IFS
6420 if test -z "$ac_cv_path_EGREP"; then
6421 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6422 fi
6423else
6424 ac_cv_path_EGREP=$EGREP
6425fi
6426
6427 fi
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6430$as_echo "$ac_cv_path_EGREP" >&6; }
6431 EGREP="$ac_cv_path_EGREP"
6432
6433
6434
6435
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6437$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439/* end confdefs.h. */
6440
6441#ifdef _AIX
6442 yes_this_is_aix
6443#endif
6444
6445_ACEOF
6446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6447 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6450$as_echo "yes" >&6; }
6451 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6452
6453
6454else
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457$as_echo "no" >&6; }
6458
6459fi
6460rm -f conftest*
6461
6462
6463
6464
6465 #
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6467$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h. */
6470
6471
6472
6473int main (void)
6474{
6475
6476#ifdef _THREAD_SAFE
6477 int dummy=1;
6478#else
6479 force compilation error
6480#endif
6481
6482 ;
6483 return 0;
6484}
6485
6486_ACEOF
6487if ac_fn_c_try_compile "$LINENO"; then :
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6490$as_echo "yes" >&6; }
6491 tmp_thread_safe_initially_defined="yes"
6492
6493else
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
6497 tmp_thread_safe_initially_defined="no"
6498
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 #
6502 if test "$tmp_thread_safe_initially_defined" = "no"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6504$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6505
6506 case $host_os in
6507 aix[123].* | aix4.[012].*)
6508 tmp_need_thread_safe="no"
6509 ;;
6510 aix*)
6511 tmp_need_thread_safe="yes"
6512 ;;
6513 *)
6514 tmp_need_thread_safe="no"
6515 ;;
6516 esac
6517
6518 if test "$tmp_need_thread_safe" = "yes"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6520$as_echo "yes" >&6; }
6521 else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; }
6524 fi
6525 fi
6526 #
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6528$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6529 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6530 test "$tmp_need_thread_safe" = "yes"; then
6531
6532
6533$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6534
6535cat >>confdefs.h <<_EOF
6536#ifndef _THREAD_SAFE
6537# define _THREAD_SAFE
6538#endif
6539_EOF
6540
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6542$as_echo "yes" >&6; }
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545$as_echo "no" >&6; }
6546 fi
6547 #
6548
6549
6550 #
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6552$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554/* end confdefs.h. */
6555
6556
6557
6558int main (void)
6559{
6560
6561#ifdef _REENTRANT
6562 int dummy=1;
6563#else
6564 force compilation error
6565#endif
6566
6567 ;
6568 return 0;
6569}
6570
6571_ACEOF
6572if ac_fn_c_try_compile "$LINENO"; then :
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6575$as_echo "yes" >&6; }
6576 tmp_reentrant_initially_defined="yes"
6577
6578else
6579
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581$as_echo "no" >&6; }
6582 tmp_reentrant_initially_defined="no"
6583
6584fi
6585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 #
6587 if test "$tmp_reentrant_initially_defined" = "no"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6589$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6590
6591 case $host_os in
6592 solaris*)
6593 tmp_need_reentrant="yes"
6594 ;;
6595 *)
6596 tmp_need_reentrant="no"
6597 ;;
6598 esac
6599
6600 if test "$tmp_need_reentrant" = "no"; then
6601
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603/* end confdefs.h. */
6604
6605
6606#include <errno.h>
6607
6608int main (void)
6609{
6610
6611 if(0 != errno)
6612 return 1;
6613
6614 ;
6615 return 0;
6616}
6617
6618_ACEOF
6619if ac_fn_c_try_compile "$LINENO"; then :
6620
6621 tmp_errno="yes"
6622
6623else
6624
6625 tmp_errno="no"
6626
6627fi
6628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 if test "$tmp_errno" = "yes"; then
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631/* end confdefs.h. */
6632
6633
6634#include <errno.h>
6635
6636int main (void)
6637{
6638
6639#ifdef errno
6640 int dummy=1;
6641#else
6642 force compilation error
6643#endif
6644
6645 ;
6646 return 0;
6647}
6648
6649_ACEOF
6650if ac_fn_c_try_compile "$LINENO"; then :
6651
6652 tmp_errno="errno_macro_defined"
6653
6654else
6655
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657/* end confdefs.h. */
6658
6659
6660#define _REENTRANT
6661#include <errno.h>
6662
6663int main (void)
6664{
6665
6666#ifdef errno
6667 int dummy=1;
6668#else
6669 force compilation error
6670#endif
6671
6672 ;
6673 return 0;
6674}
6675
6676_ACEOF
6677if ac_fn_c_try_compile "$LINENO"; then :
6678
6679 tmp_errno="errno_macro_needs_reentrant"
6680 tmp_need_reentrant="yes"
6681
6682fi
6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684
6685fi
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688
6689 fi
6690 if test "$tmp_need_reentrant" = "no"; then
6691
6692 if test "$tmp_need_reentrant" = "no"; then
6693
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695/* end confdefs.h. */
6696
6697
6698#define gmtime_r innocuous_gmtime_r
6699#ifdef __STDC__
6700# include <limits.h>
6701#else
6702# include <assert.h>
6703#endif
6704#undef gmtime_r
6705#ifdef __cplusplus
6706extern "C"
6707#endif
6708char gmtime_r ();
6709#if defined __stub_gmtime_r || defined __stub___gmtime_r
6710choke me
6711#endif
6712
6713int main (void)
6714{
6715return gmtime_r ();
6716 ;
6717 return 0;
6718}
6719
6720_ACEOF
6721if ac_fn_c_try_link "$LINENO"; then :
6722
6723 tmp_gmtime_r="yes"
6724
6725else
6726
6727 tmp_gmtime_r="no"
6728
6729fi
6730rm -f core conftest.err conftest.$ac_objext \
6731 conftest$ac_exeext conftest.$ac_ext
6732 if test "$tmp_gmtime_r" = "yes"; then
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734/* end confdefs.h. */
6735
6736#include <sys/types.h>
6737#include <time.h>
6738
6739_ACEOF
6740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6742
6743 tmp_gmtime_r="proto_declared"
6744
6745else
6746
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h. */
6749
6750#define _REENTRANT
6751#include <sys/types.h>
6752#include <time.h>
6753
6754_ACEOF
6755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6756 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6757
6758 tmp_gmtime_r="proto_needs_reentrant"
6759 tmp_need_reentrant="yes"
6760
6761fi
6762rm -f conftest*
6763
6764
6765fi
6766rm -f conftest*
6767
6768 fi
6769
6770 fi
6771 if test "$tmp_need_reentrant" = "no"; then
6772
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774/* end confdefs.h. */
6775
6776
6777#define localtime_r innocuous_localtime_r
6778#ifdef __STDC__
6779# include <limits.h>
6780#else
6781# include <assert.h>
6782#endif
6783#undef localtime_r
6784#ifdef __cplusplus
6785extern "C"
6786#endif
6787char localtime_r ();
6788#if defined __stub_localtime_r || defined __stub___localtime_r
6789choke me
6790#endif
6791
6792int main (void)
6793{
6794return localtime_r ();
6795 ;
6796 return 0;
6797}
6798
6799_ACEOF
6800if ac_fn_c_try_link "$LINENO"; then :
6801
6802 tmp_localtime_r="yes"
6803
6804else
6805
6806 tmp_localtime_r="no"
6807
6808fi
6809rm -f core conftest.err conftest.$ac_objext \
6810 conftest$ac_exeext conftest.$ac_ext
6811 if test "$tmp_localtime_r" = "yes"; then
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813/* end confdefs.h. */
6814
6815#include <sys/types.h>
6816#include <time.h>
6817
6818_ACEOF
6819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6820 $EGREP "localtime_r" >/dev/null 2>&1; then :
6821
6822 tmp_localtime_r="proto_declared"
6823
6824else
6825
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h. */
6828
6829#define _REENTRANT
6830#include <sys/types.h>
6831#include <time.h>
6832
6833_ACEOF
6834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6835 $EGREP "localtime_r" >/dev/null 2>&1; then :
6836
6837 tmp_localtime_r="proto_needs_reentrant"
6838 tmp_need_reentrant="yes"
6839
6840fi
6841rm -f conftest*
6842
6843
6844fi
6845rm -f conftest*
6846
6847 fi
6848
6849 fi
6850 if test "$tmp_need_reentrant" = "no"; then
6851
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853/* end confdefs.h. */
6854
6855
6856#define strerror_r innocuous_strerror_r
6857#ifdef __STDC__
6858# include <limits.h>
6859#else
6860# include <assert.h>
6861#endif
6862#undef strerror_r
6863#ifdef __cplusplus
6864extern "C"
6865#endif
6866char strerror_r ();
6867#if defined __stub_strerror_r || defined __stub___strerror_r
6868choke me
6869#endif
6870
6871int main (void)
6872{
6873return strerror_r ();
6874 ;
6875 return 0;
6876}
6877
6878_ACEOF
6879if ac_fn_c_try_link "$LINENO"; then :
6880
6881 tmp_strerror_r="yes"
6882
6883else
6884
6885 tmp_strerror_r="no"
6886
6887fi
6888rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 if test "$tmp_strerror_r" = "yes"; then
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h. */
6893
6894#include <sys/types.h>
6895#include <string.h>
6896
6897_ACEOF
6898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899 $EGREP "strerror_r" >/dev/null 2>&1; then :
6900
6901 tmp_strerror_r="proto_declared"
6902
6903else
6904
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906/* end confdefs.h. */
6907
6908#define _REENTRANT
6909#include <sys/types.h>
6910#include <string.h>
6911
6912_ACEOF
6913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6914 $EGREP "strerror_r" >/dev/null 2>&1; then :
6915
6916 tmp_strerror_r="proto_needs_reentrant"
6917 tmp_need_reentrant="yes"
6918
6919fi
6920rm -f conftest*
6921
6922
6923fi
6924rm -f conftest*
6925
6926 fi
6927
6928 fi
6929 if test "$tmp_need_reentrant" = "no"; then
6930
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h. */
6933
6934
6935#define strtok_r innocuous_strtok_r
6936#ifdef __STDC__
6937# include <limits.h>
6938#else
6939# include <assert.h>
6940#endif
6941#undef strtok_r
6942#ifdef __cplusplus
6943extern "C"
6944#endif
6945char strtok_r ();
6946#if defined __stub_strtok_r || defined __stub___strtok_r
6947choke me
6948#endif
6949
6950int main (void)
6951{
6952return strtok_r ();
6953 ;
6954 return 0;
6955}
6956
6957_ACEOF
6958if ac_fn_c_try_link "$LINENO"; then :
6959
6960 tmp_strtok_r="yes"
6961
6962else
6963
6964 tmp_strtok_r="no"
6965
6966fi
6967rm -f core conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6969 if test "$tmp_strtok_r" = "yes"; then
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971/* end confdefs.h. */
6972
6973#include <sys/types.h>
6974#include <string.h>
6975
6976_ACEOF
6977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6978 $EGREP "strtok_r" >/dev/null 2>&1; then :
6979
6980 tmp_strtok_r="proto_declared"
6981
6982else
6983
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985/* end confdefs.h. */
6986
6987#define _REENTRANT
6988#include <sys/types.h>
6989#include <string.h>
6990
6991_ACEOF
6992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6993 $EGREP "strtok_r" >/dev/null 2>&1; then :
6994
6995 tmp_strtok_r="proto_needs_reentrant"
6996 tmp_need_reentrant="yes"
6997
6998fi
6999rm -f conftest*
7000
7001
7002fi
7003rm -f conftest*
7004
7005 fi
7006
7007 fi
7008 if test "$tmp_need_reentrant" = "no"; then
7009
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011/* end confdefs.h. */
7012
7013
7014#define inet_ntoa_r innocuous_inet_ntoa_r
7015#ifdef __STDC__
7016# include <limits.h>
7017#else
7018# include <assert.h>
7019#endif
7020#undef inet_ntoa_r
7021#ifdef __cplusplus
7022extern "C"
7023#endif
7024char inet_ntoa_r ();
7025#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7026choke me
7027#endif
7028
7029int main (void)
7030{
7031return inet_ntoa_r ();
7032 ;
7033 return 0;
7034}
7035
7036_ACEOF
7037if ac_fn_c_try_link "$LINENO"; then :
7038
7039 tmp_inet_ntoa_r="yes"
7040
7041else
7042
7043 tmp_inet_ntoa_r="no"
7044
7045fi
7046rm -f core conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048 if test "$tmp_inet_ntoa_r" = "yes"; then
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h. */
7051
7052#include <sys/types.h>
7053#include <sys/socket.h>
7054#include <netinet/in.h>
7055#include <arpa/inet.h>
7056
7057_ACEOF
7058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7060
7061 tmp_inet_ntoa_r="proto_declared"
7062
7063else
7064
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066/* end confdefs.h. */
7067
7068#define _REENTRANT
7069#include <sys/types.h>
7070#include <sys/socket.h>
7071#include <netinet/in.h>
7072#include <arpa/inet.h>
7073
7074_ACEOF
7075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7077
7078 tmp_inet_ntoa_r="proto_needs_reentrant"
7079 tmp_need_reentrant="yes"
7080
7081fi
7082rm -f conftest*
7083
7084
7085fi
7086rm -f conftest*
7087
7088 fi
7089
7090 fi
7091 if test "$tmp_need_reentrant" = "no"; then
7092
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h. */
7095
7096
7097#define gethostbyaddr_r innocuous_gethostbyaddr_r
7098#ifdef __STDC__
7099# include <limits.h>
7100#else
7101# include <assert.h>
7102#endif
7103#undef gethostbyaddr_r
7104#ifdef __cplusplus
7105extern "C"
7106#endif
7107char gethostbyaddr_r ();
7108#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7109choke me
7110#endif
7111
7112int main (void)
7113{
7114return gethostbyaddr_r ();
7115 ;
7116 return 0;
7117}
7118
7119_ACEOF
7120if ac_fn_c_try_link "$LINENO"; then :
7121
7122 tmp_gethostbyaddr_r="yes"
7123
7124else
7125
7126 tmp_gethostbyaddr_r="no"
7127
7128fi
7129rm -f core conftest.err conftest.$ac_objext \
7130 conftest$ac_exeext conftest.$ac_ext
7131 if test "$tmp_gethostbyaddr_r" = "yes"; then
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h. */
7134
7135#include <sys/types.h>
7136#include <netdb.h>
7137
7138_ACEOF
7139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7141
7142 tmp_gethostbyaddr_r="proto_declared"
7143
7144else
7145
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h. */
7148
7149#define _REENTRANT
7150#include <sys/types.h>
7151#include <netdb.h>
7152
7153_ACEOF
7154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7155 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7156
7157 tmp_gethostbyaddr_r="proto_needs_reentrant"
7158 tmp_need_reentrant="yes"
7159
7160fi
7161rm -f conftest*
7162
7163
7164fi
7165rm -f conftest*
7166
7167 fi
7168
7169 fi
7170 if test "$tmp_need_reentrant" = "no"; then
7171
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h. */
7174
7175
7176#define gethostbyname_r innocuous_gethostbyname_r
7177#ifdef __STDC__
7178# include <limits.h>
7179#else
7180# include <assert.h>
7181#endif
7182#undef gethostbyname_r
7183#ifdef __cplusplus
7184extern "C"
7185#endif
7186char gethostbyname_r ();
7187#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7188choke me
7189#endif
7190
7191int main (void)
7192{
7193return gethostbyname_r ();
7194 ;
7195 return 0;
7196}
7197
7198_ACEOF
7199if ac_fn_c_try_link "$LINENO"; then :
7200
7201 tmp_gethostbyname_r="yes"
7202
7203else
7204
7205 tmp_gethostbyname_r="no"
7206
7207fi
7208rm -f core conftest.err conftest.$ac_objext \
7209 conftest$ac_exeext conftest.$ac_ext
7210 if test "$tmp_gethostbyname_r" = "yes"; then
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212/* end confdefs.h. */
7213
7214#include <sys/types.h>
7215#include <netdb.h>
7216
7217_ACEOF
7218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7219 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7220
7221 tmp_gethostbyname_r="proto_declared"
7222
7223else
7224
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h. */
7227
7228#define _REENTRANT
7229#include <sys/types.h>
7230#include <netdb.h>
7231
7232_ACEOF
7233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7234 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7235
7236 tmp_gethostbyname_r="proto_needs_reentrant"
7237 tmp_need_reentrant="yes"
7238
7239fi
7240rm -f conftest*
7241
7242
7243fi
7244rm -f conftest*
7245
7246 fi
7247
7248 fi
7249 if test "$tmp_need_reentrant" = "no"; then
7250
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h. */
7253
7254
7255#define getprotobyname_r innocuous_getprotobyname_r
7256#ifdef __STDC__
7257# include <limits.h>
7258#else
7259# include <assert.h>
7260#endif
7261#undef getprotobyname_r
7262#ifdef __cplusplus
7263extern "C"
7264#endif
7265char getprotobyname_r ();
7266#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7267choke me
7268#endif
7269
7270int main (void)
7271{
7272return getprotobyname_r ();
7273 ;
7274 return 0;
7275}
7276
7277_ACEOF
7278if ac_fn_c_try_link "$LINENO"; then :
7279
7280 tmp_getprotobyname_r="yes"
7281
7282else
7283
7284 tmp_getprotobyname_r="no"
7285
7286fi
7287rm -f core conftest.err conftest.$ac_objext \
7288 conftest$ac_exeext conftest.$ac_ext
7289 if test "$tmp_getprotobyname_r" = "yes"; then
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h. */
7292
7293#include <sys/types.h>
7294#include <netdb.h>
7295
7296_ACEOF
7297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7299
7300 tmp_getprotobyname_r="proto_declared"
7301
7302else
7303
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305/* end confdefs.h. */
7306
7307#define _REENTRANT
7308#include <sys/types.h>
7309#include <netdb.h>
7310
7311_ACEOF
7312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7314
7315 tmp_getprotobyname_r="proto_needs_reentrant"
7316 tmp_need_reentrant="yes"
7317
7318fi
7319rm -f conftest*
7320
7321
7322fi
7323rm -f conftest*
7324
7325 fi
7326
7327 fi
7328 if test "$tmp_need_reentrant" = "no"; then
7329
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h. */
7332
7333
7334#define getservbyport_r innocuous_getservbyport_r
7335#ifdef __STDC__
7336# include <limits.h>
7337#else
7338# include <assert.h>
7339#endif
7340#undef getservbyport_r
7341#ifdef __cplusplus
7342extern "C"
7343#endif
7344char getservbyport_r ();
7345#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7346choke me
7347#endif
7348
7349int main (void)
7350{
7351return getservbyport_r ();
7352 ;
7353 return 0;
7354}
7355
7356_ACEOF
7357if ac_fn_c_try_link "$LINENO"; then :
7358
7359 tmp_getservbyport_r="yes"
7360
7361else
7362
7363 tmp_getservbyport_r="no"
7364
7365fi
7366rm -f core conftest.err conftest.$ac_objext \
7367 conftest$ac_exeext conftest.$ac_ext
7368 if test "$tmp_getservbyport_r" = "yes"; then
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370/* end confdefs.h. */
7371
7372#include <sys/types.h>
7373#include <netdb.h>
7374
7375_ACEOF
7376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7377 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7378
7379 tmp_getservbyport_r="proto_declared"
7380
7381else
7382
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h. */
7385
7386#define _REENTRANT
7387#include <sys/types.h>
7388#include <netdb.h>
7389
7390_ACEOF
7391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7392 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7393
7394 tmp_getservbyport_r="proto_needs_reentrant"
7395 tmp_need_reentrant="yes"
7396
7397fi
7398rm -f conftest*
7399
7400
7401fi
7402rm -f conftest*
7403
7404 fi
7405
7406 fi
7407
7408 fi
7409 if test "$tmp_need_reentrant" = "yes"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7411$as_echo "yes" >&6; }
7412 else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414$as_echo "no" >&6; }
7415 fi
7416 fi
7417 #
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7419$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7420 if test "$tmp_reentrant_initially_defined" = "yes" ||
7421 test "$tmp_need_reentrant" = "yes"; then
7422
7423
7424$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7425
7426cat >>confdefs.h <<_EOF
7427#ifndef _REENTRANT
7428# define _REENTRANT
7429#endif
7430_EOF
7431
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433$as_echo "yes" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
7437 fi
7438 #
7439
7440
7441# Check whether --enable-largefile was given.
7442if test "${enable_largefile+set}" = set; then :
7443 enableval=$enable_largefile;
7444fi
7445
7446if test "$enable_largefile" != no; then
7447
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7449$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7450if ${ac_cv_sys_largefile_CC+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452else
7453 ac_cv_sys_largefile_CC=no
7454 if test "$GCC" != yes; then
7455 ac_save_CC=$CC
7456 while :; do
7457 # IRIX 6.2 and later do not support large files by default,
7458 # so use the C compiler's -n32 option if that helps.
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h. */
7461#include <sys/types.h>
7462 /* Check that off_t can represent 2**63 - 1 correctly.
7463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7464 since some C++ compilers masquerading as C compilers
7465 incorrectly reject 9223372036854775807. */
7466#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7468 && LARGE_OFF_T % 2147483647 == 1)
7469 ? 1 : -1];
7470int main (void)
7471{
7472
7473 ;
7474 return 0;
7475}
7476_ACEOF
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 break
7479fi
7480rm -f core conftest.err conftest.$ac_objext
7481 CC="$CC -n32"
7482 if ac_fn_c_try_compile "$LINENO"; then :
7483 ac_cv_sys_largefile_CC=' -n32'; break
7484fi
7485rm -f core conftest.err conftest.$ac_objext
7486 break
7487 done
7488 CC=$ac_save_CC
7489 rm -f conftest.$ac_ext
7490 fi
7491fi
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7493$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7494 if test "$ac_cv_sys_largefile_CC" != no; then
7495 CC=$CC$ac_cv_sys_largefile_CC
7496 fi
7497
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7499$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7500if ${ac_cv_sys_file_offset_bits+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502else
7503 while :; do
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h. */
7506#include <sys/types.h>
7507 /* Check that off_t can represent 2**63 - 1 correctly.
7508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7509 since some C++ compilers masquerading as C compilers
7510 incorrectly reject 9223372036854775807. */
7511#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7513 && LARGE_OFF_T % 2147483647 == 1)
7514 ? 1 : -1];
7515int main (void)
7516{
7517
7518 ;
7519 return 0;
7520}
7521_ACEOF
7522if ac_fn_c_try_compile "$LINENO"; then :
7523 ac_cv_sys_file_offset_bits=no; break
7524fi
7525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527/* end confdefs.h. */
7528#define _FILE_OFFSET_BITS 64
7529#include <sys/types.h>
7530 /* Check that off_t can represent 2**63 - 1 correctly.
7531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7532 since some C++ compilers masquerading as C compilers
7533 incorrectly reject 9223372036854775807. */
7534#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7536 && LARGE_OFF_T % 2147483647 == 1)
7537 ? 1 : -1];
7538int main (void)
7539{
7540
7541 ;
7542 return 0;
7543}
7544_ACEOF
7545if ac_fn_c_try_compile "$LINENO"; then :
7546 ac_cv_sys_file_offset_bits=64; break
7547fi
7548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 ac_cv_sys_file_offset_bits=unknown
7550 break
7551done
7552fi
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7554$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7555case $ac_cv_sys_file_offset_bits in #(
7556 no | unknown) ;;
7557 *)
7558cat >>confdefs.h <<_ACEOF
7559#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7560_ACEOF
7561;;
7562esac
7563rm -rf conftest*
7564 if test $ac_cv_sys_file_offset_bits = unknown; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7566$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7567if ${ac_cv_sys_large_files+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569else
7570 while :; do
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572/* end confdefs.h. */
7573#include <sys/types.h>
7574 /* Check that off_t can represent 2**63 - 1 correctly.
7575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7576 since some C++ compilers masquerading as C compilers
7577 incorrectly reject 9223372036854775807. */
7578#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7580 && LARGE_OFF_T % 2147483647 == 1)
7581 ? 1 : -1];
7582int main (void)
7583{
7584
7585 ;
7586 return 0;
7587}
7588_ACEOF
7589if ac_fn_c_try_compile "$LINENO"; then :
7590 ac_cv_sys_large_files=no; break
7591fi
7592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h. */
7595#define _LARGE_FILES 1
7596#include <sys/types.h>
7597 /* Check that off_t can represent 2**63 - 1 correctly.
7598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7599 since some C++ compilers masquerading as C compilers
7600 incorrectly reject 9223372036854775807. */
7601#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7603 && LARGE_OFF_T % 2147483647 == 1)
7604 ? 1 : -1];
7605int main (void)
7606{
7607
7608 ;
7609 return 0;
7610}
7611_ACEOF
7612if ac_fn_c_try_compile "$LINENO"; then :
7613 ac_cv_sys_large_files=1; break
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 ac_cv_sys_large_files=unknown
7617 break
7618done
7619fi
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7621$as_echo "$ac_cv_sys_large_files" >&6; }
7622case $ac_cv_sys_large_files in #(
7623 no | unknown) ;;
7624 *)
7625cat >>confdefs.h <<_ACEOF
7626#define _LARGE_FILES $ac_cv_sys_large_files
7627_ACEOF
7628;;
7629esac
7630rm -rf conftest*
7631 fi
7632
7633
7634fi
7635
7636
7637case $host_os in
7638 solaris*)
7639
7640$as_echo "#define ETC_INET 1" >>confdefs.h
7641
7642 ;;
7643esac
7644
7645case `pwd` in
7646 *\ * | *\ *)
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7648$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7649esac
7650
7651
7652
7653macro_version='2.4.6'
7654macro_revision='2.4.6'
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668ltmain=$ac_aux_dir/ltmain.sh
7669
7670# Backslashify metacharacters that are still active within
7671# double-quoted strings.
7672sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7673
7674# Same as above, but do not quote variable references.
7675double_quote_subst='s/\(["`\\]\)/\\\1/g'
7676
7677# Sed substitution to delay expansion of an escaped shell variable in a
7678# double_quote_subst'ed string.
7679delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7680
7681# Sed substitution to delay expansion of an escaped single quote.
7682delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7683
7684# Sed substitution to avoid accidental globbing in evaled expressions
7685no_glob_subst='s/\*/\\\*/g'
7686
7687ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7688ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7689ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7690
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7692$as_echo_n "checking how to print strings... " >&6; }
7693# Test print first, because it will be a builtin if present.
7694if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7695 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7696 ECHO='print -r --'
7697elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7698 ECHO='printf %s\n'
7699else
7700 # Use this function as a fallback that always works.
7701 func_fallback_echo ()
7702 {
7703 eval 'cat <<_LTECHO_EOF
7704$1
7705_LTECHO_EOF'
7706 }
7707 ECHO='func_fallback_echo'
7708fi
7709
7710# func_echo_all arg...
7711# Invoke $ECHO with all args, space-separated.
7712func_echo_all ()
7713{
7714 $ECHO ""
7715}
7716
7717case $ECHO in
7718 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7719$as_echo "printf" >&6; } ;;
7720 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7721$as_echo "print -r" >&6; } ;;
7722 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7723$as_echo "cat" >&6; } ;;
7724esac
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7740$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7741if ${ac_cv_path_SED+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743else
7744 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7745 for ac_i in 1 2 3 4 5 6 7; do
7746 ac_script="$ac_script$as_nl$ac_script"
7747 done
7748 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7749 { ac_script=; unset ac_script;}
7750 if test -z "$SED"; then
7751 ac_path_SED_found=false
7752 # Loop through the user's path and test for each of PROGNAME-LIST
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_prog in sed gsed; do
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7761 as_fn_executable_p "$ac_path_SED" || continue
7762# Check for GNU ac_path_SED and select it if it is found.
7763 # Check for GNU $ac_path_SED
7764case `"$ac_path_SED" --version 2>&1` in
7765*GNU*)
7766 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7767*)
7768 ac_count=0
7769 $as_echo_n 0123456789 >"conftest.in"
7770 while :
7771 do
7772 cat "conftest.in" "conftest.in" >"conftest.tmp"
7773 mv "conftest.tmp" "conftest.in"
7774 cp "conftest.in" "conftest.nl"
7775 $as_echo '' >> "conftest.nl"
7776 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7778 as_fn_arith $ac_count + 1 && ac_count=$as_val
7779 if test $ac_count -gt ${ac_path_SED_max-0}; then
7780 # Best one so far, save it but keep looking for a better one
7781 ac_cv_path_SED="$ac_path_SED"
7782 ac_path_SED_max=$ac_count
7783 fi
7784 # 10*(2^10) chars as input seems more than enough
7785 test $ac_count -gt 10 && break
7786 done
7787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7788esac
7789
7790 $ac_path_SED_found && break 3
7791 done
7792 done
7793 done
7794IFS=$as_save_IFS
7795 if test -z "$ac_cv_path_SED"; then
7796 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7797 fi
7798else
7799 ac_cv_path_SED=$SED
7800fi
7801
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7804$as_echo "$ac_cv_path_SED" >&6; }
7805 SED="$ac_cv_path_SED"
7806 rm -f conftest.sed
7807
7808test -z "$SED" && SED=sed
7809Xsed="$SED -e 1s/^X//"
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7822$as_echo_n "checking for fgrep... " >&6; }
7823if ${ac_cv_path_FGREP+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825else
7826 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7827 then ac_cv_path_FGREP="$GREP -F"
7828 else
7829 if test -z "$FGREP"; then
7830 ac_path_FGREP_found=false
7831 # Loop through the user's path and test for each of PROGNAME-LIST
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_prog in fgrep; do
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7840 as_fn_executable_p "$ac_path_FGREP" || continue
7841# Check for GNU ac_path_FGREP and select it if it is found.
7842 # Check for GNU $ac_path_FGREP
7843case `"$ac_path_FGREP" --version 2>&1` in
7844*GNU*)
7845 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7846*)
7847 ac_count=0
7848 $as_echo_n 0123456789 >"conftest.in"
7849 while :
7850 do
7851 cat "conftest.in" "conftest.in" >"conftest.tmp"
7852 mv "conftest.tmp" "conftest.in"
7853 cp "conftest.in" "conftest.nl"
7854 $as_echo 'FGREP' >> "conftest.nl"
7855 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7857 as_fn_arith $ac_count + 1 && ac_count=$as_val
7858 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7859 # Best one so far, save it but keep looking for a better one
7860 ac_cv_path_FGREP="$ac_path_FGREP"
7861 ac_path_FGREP_max=$ac_count
7862 fi
7863 # 10*(2^10) chars as input seems more than enough
7864 test $ac_count -gt 10 && break
7865 done
7866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7867esac
7868
7869 $ac_path_FGREP_found && break 3
7870 done
7871 done
7872 done
7873IFS=$as_save_IFS
7874 if test -z "$ac_cv_path_FGREP"; then
7875 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7876 fi
7877else
7878 ac_cv_path_FGREP=$FGREP
7879fi
7880
7881 fi
7882fi
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7884$as_echo "$ac_cv_path_FGREP" >&6; }
7885 FGREP="$ac_cv_path_FGREP"
7886
7887
7888test -z "$GREP" && GREP=grep
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908# Check whether --with-gnu-ld was given.
7909if test "${with_gnu_ld+set}" = set; then :
7910 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7911else
7912 with_gnu_ld=no
7913fi
7914
7915ac_prog=ld
7916if test yes = "$GCC"; then
7917 # Check if gcc -print-prog-name=ld gives a path.
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7919$as_echo_n "checking for ld used by $CC... " >&6; }
7920 case $host in
7921 *-*-mingw*)
7922 # gcc leaves a trailing carriage return, which upsets mingw
7923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7924 *)
7925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7926 esac
7927 case $ac_prog in
7928 # Accept absolute paths.
7929 [\\/]* | ?:[\\/]*)
7930 re_direlt='/[^/][^/]*/\.\./'
7931 # Canonicalize the pathname of ld
7932 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7933 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7934 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7935 done
7936 test -z "$LD" && LD=$ac_prog
7937 ;;
7938 "")
7939 # If it fails, then pretend we aren't using GCC.
7940 ac_prog=ld
7941 ;;
7942 *)
7943 # If it is relative, then search for the first ld in PATH.
7944 with_gnu_ld=unknown
7945 ;;
7946 esac
7947elif test yes = "$with_gnu_ld"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7949$as_echo_n "checking for GNU ld... " >&6; }
7950else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7952$as_echo_n "checking for non-GNU ld... " >&6; }
7953fi
7954if ${lt_cv_path_LD+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956else
7957 if test -z "$LD"; then
7958 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7959 for ac_dir in $PATH; do
7960 IFS=$lt_save_ifs
7961 test -z "$ac_dir" && ac_dir=.
7962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7963 lt_cv_path_LD=$ac_dir/$ac_prog
7964 # Check to see if the program is GNU ld. I'd rather use --version,
7965 # but apparently some variants of GNU ld only accept -v.
7966 # Break only if it was the GNU/non-GNU ld that we prefer.
7967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7968 *GNU* | *'with BFD'*)
7969 test no != "$with_gnu_ld" && break
7970 ;;
7971 *)
7972 test yes != "$with_gnu_ld" && break
7973 ;;
7974 esac
7975 fi
7976 done
7977 IFS=$lt_save_ifs
7978else
7979 lt_cv_path_LD=$LD # Let the user override the test with a path.
7980fi
7981fi
7982
7983LD=$lt_cv_path_LD
7984if test -n "$LD"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7986$as_echo "$LD" >&6; }
7987else
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
7990fi
7991test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7993$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7994if ${lt_cv_prog_gnu_ld+:} false; then :
7995 $as_echo_n "(cached) " >&6
7996else
7997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7998case `$LD -v 2>&1 </dev/null` in
7999*GNU* | *'with BFD'*)
8000 lt_cv_prog_gnu_ld=yes
8001 ;;
8002*)
8003 lt_cv_prog_gnu_ld=no
8004 ;;
8005esac
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8008$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8009with_gnu_ld=$lt_cv_prog_gnu_ld
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8020$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8021if ${lt_cv_path_NM+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023else
8024 if test -n "$NM"; then
8025 # Let the user override the test.
8026 lt_cv_path_NM=$NM
8027else
8028 lt_nm_to_check=${ac_tool_prefix}nm
8029 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8030 lt_nm_to_check="$lt_nm_to_check nm"
8031 fi
8032 for lt_tmp_nm in $lt_nm_to_check; do
8033 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8034 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8035 IFS=$lt_save_ifs
8036 test -z "$ac_dir" && ac_dir=.
8037 tmp_nm=$ac_dir/$lt_tmp_nm
8038 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8039 # Check to see if the nm accepts a BSD-compat flag.
8040 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8041 # nm: unknown option "B" ignored
8042 # Tru64's nm complains that /dev/null is an invalid object file
8043 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8044 case $build_os in
8045 mingw*) lt_bad_file=conftest.nm/nofile ;;
8046 *) lt_bad_file=/dev/null ;;
8047 esac
8048 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8049 *$lt_bad_file* | *'Invalid file or object type'*)
8050 lt_cv_path_NM="$tmp_nm -B"
8051 break 2
8052 ;;
8053 *)
8054 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8055 */dev/null*)
8056 lt_cv_path_NM="$tmp_nm -p"
8057 break 2
8058 ;;
8059 *)
8060 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8061 continue # so that we can try to find one that supports BSD flags
8062 ;;
8063 esac
8064 ;;
8065 esac
8066 fi
8067 done
8068 IFS=$lt_save_ifs
8069 done
8070 : ${lt_cv_path_NM=no}
8071fi
8072fi
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8074$as_echo "$lt_cv_path_NM" >&6; }
8075if test no != "$lt_cv_path_NM"; then
8076 NM=$lt_cv_path_NM
8077else
8078 # Didn't find any BSD compatible name lister, look for dumpbin.
8079 if test -n "$DUMPBIN"; then :
8080 # Let the user override the test.
8081 else
8082 if test -n "$ac_tool_prefix"; then
8083 for ac_prog in dumpbin "link -dump"
8084 do
8085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8086set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088$as_echo_n "checking for $ac_word... " >&6; }
8089if ${ac_cv_prog_DUMPBIN+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091else
8092 if test -n "$DUMPBIN"; then
8093 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8094else
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106done
8107 done
8108IFS=$as_save_IFS
8109
8110fi
8111fi
8112DUMPBIN=$ac_cv_prog_DUMPBIN
8113if test -n "$DUMPBIN"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8115$as_echo "$DUMPBIN" >&6; }
8116else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
8119fi
8120
8121
8122 test -n "$DUMPBIN" && break
8123 done
8124fi
8125if test -z "$DUMPBIN"; then
8126 ac_ct_DUMPBIN=$DUMPBIN
8127 for ac_prog in dumpbin "link -dump"
8128do
8129 # Extract the first word of "$ac_prog", so it can be a program name with args.
8130set dummy $ac_prog; ac_word=$2
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132$as_echo_n "checking for $ac_word... " >&6; }
8133if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8134 $as_echo_n "(cached) " >&6
8135else
8136 if test -n "$ac_ct_DUMPBIN"; then
8137 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8138else
8139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $PATH
8141do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8146 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 break 2
8149 fi
8150done
8151 done
8152IFS=$as_save_IFS
8153
8154fi
8155fi
8156ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8157if test -n "$ac_ct_DUMPBIN"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8159$as_echo "$ac_ct_DUMPBIN" >&6; }
8160else
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162$as_echo "no" >&6; }
8163fi
8164
8165
8166 test -n "$ac_ct_DUMPBIN" && break
8167done
8168
8169 if test "x$ac_ct_DUMPBIN" = x; then
8170 DUMPBIN=":"
8171 else
8172 case $cross_compiling:$ac_tool_warned in
8173yes:)
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8176ac_tool_warned=yes ;;
8177esac
8178 DUMPBIN=$ac_ct_DUMPBIN
8179 fi
8180fi
8181
8182 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8183 *COFF*)
8184 DUMPBIN="$DUMPBIN -symbols -headers"
8185 ;;
8186 *)
8187 DUMPBIN=:
8188 ;;
8189 esac
8190 fi
8191
8192 if test : != "$DUMPBIN"; then
8193 NM=$DUMPBIN
8194 fi
8195fi
8196test -z "$NM" && NM=nm
8197
8198
8199
8200
8201
8202
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8204$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8205if ${lt_cv_nm_interface+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207else
8208 lt_cv_nm_interface="BSD nm"
8209 echo "int some_variable = 0;" > conftest.$ac_ext
8210 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8211 (eval "$ac_compile" 2>conftest.err)
8212 cat conftest.err >&5
8213 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8214 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8215 cat conftest.err >&5
8216 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8217 cat conftest.out >&5
8218 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8219 lt_cv_nm_interface="MS dumpbin"
8220 fi
8221 rm -f conftest*
8222fi
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8224$as_echo "$lt_cv_nm_interface" >&6; }
8225
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8227$as_echo_n "checking whether ln -s works... " >&6; }
8228LN_S=$as_ln_s
8229if test "$LN_S" = "ln -s"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8231$as_echo "yes" >&6; }
8232else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8234$as_echo "no, using $LN_S" >&6; }
8235fi
8236
8237# find the maximum length of command line arguments
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8239$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8240if ${lt_cv_sys_max_cmd_len+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242else
8243 i=0
8244 teststring=ABCD
8245
8246 case $build_os in
8247 msdosdjgpp*)
8248 # On DJGPP, this test can blow up pretty badly due to problems in libc
8249 # (any single argument exceeding 2000 bytes causes a buffer overrun
8250 # during glob expansion). Even if it were fixed, the result of this
8251 # check would be larger than it should be.
8252 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8253 ;;
8254
8255 gnu*)
8256 # Under GNU Hurd, this test is not required because there is
8257 # no limit to the length of command line arguments.
8258 # Libtool will interpret -1 as no limit whatsoever
8259 lt_cv_sys_max_cmd_len=-1;
8260 ;;
8261
8262 cygwin* | mingw* | cegcc*)
8263 # On Win9x/ME, this test blows up -- it succeeds, but takes
8264 # about 5 minutes as the teststring grows exponentially.
8265 # Worse, since 9x/ME are not pre-emptively multitasking,
8266 # you end up with a "frozen" computer, even though with patience
8267 # the test eventually succeeds (with a max line length of 256k).
8268 # Instead, let's just punt: use the minimum linelength reported by
8269 # all of the supported platforms: 8192 (on NT/2K/XP).
8270 lt_cv_sys_max_cmd_len=8192;
8271 ;;
8272
8273 mint*)
8274 # On MiNT this can take a long time and run out of memory.
8275 lt_cv_sys_max_cmd_len=8192;
8276 ;;
8277
8278 amigaos*)
8279 # On AmigaOS with pdksh, this test takes hours, literally.
8280 # So we just punt and use a minimum line length of 8192.
8281 lt_cv_sys_max_cmd_len=8192;
8282 ;;
8283
8284 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8285 # This has been around since 386BSD, at least. Likely further.
8286 if test -x /sbin/sysctl; then
8287 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8288 elif test -x /usr/sbin/sysctl; then
8289 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8290 else
8291 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8292 fi
8293 # And add a safety zone
8294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8296 ;;
8297
8298 interix*)
8299 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8300 lt_cv_sys_max_cmd_len=196608
8301 ;;
8302
8303 os2*)
8304 # The test takes a long time on OS/2.
8305 lt_cv_sys_max_cmd_len=8192
8306 ;;
8307
8308 osf*)
8309 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8310 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8311 # nice to cause kernel panics so lets avoid the loop below.
8312 # First set a reasonable default.
8313 lt_cv_sys_max_cmd_len=16384
8314 #
8315 if test -x /sbin/sysconfig; then
8316 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8317 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8318 esac
8319 fi
8320 ;;
8321 sco3.2v5*)
8322 lt_cv_sys_max_cmd_len=102400
8323 ;;
8324 sysv5* | sco5v6* | sysv4.2uw2*)
8325 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8326 if test -n "$kargmax"; then
8327 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8328 else
8329 lt_cv_sys_max_cmd_len=32768
8330 fi
8331 ;;
8332 *)
8333 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8334 if test -n "$lt_cv_sys_max_cmd_len" && \
8335 test undefined != "$lt_cv_sys_max_cmd_len"; then
8336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8338 else
8339 # Make teststring a little bigger before we do anything with it.
8340 # a 1K string should be a reasonable start.
8341 for i in 1 2 3 4 5 6 7 8; do
8342 teststring=$teststring$teststring
8343 done
8344 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8345 # If test is not a shell built-in, we'll probably end up computing a
8346 # maximum length that is only half of the actual maximum length, but
8347 # we can't tell.
8348 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8349 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8350 test 17 != "$i" # 1/2 MB should be enough
8351 do
8352 i=`expr $i + 1`
8353 teststring=$teststring$teststring
8354 done
8355 # Only check the string length outside the loop.
8356 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8357 teststring=
8358 # Add a significant safety factor because C++ compilers can tack on
8359 # massive amounts of additional arguments before passing them to the
8360 # linker. It appears as though 1/2 is a usable value.
8361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8362 fi
8363 ;;
8364 esac
8365
8366fi
8367
8368if test -n "$lt_cv_sys_max_cmd_len"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8370$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8371else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8373$as_echo "none" >&6; }
8374fi
8375max_cmd_len=$lt_cv_sys_max_cmd_len
8376
8377
8378
8379
8380
8381
8382: ${CP="cp -f"}
8383: ${MV="mv -f"}
8384: ${RM="rm -f"}
8385
8386if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8387 lt_unset=unset
8388else
8389 lt_unset=false
8390fi
8391
8392
8393
8394
8395
8396# test EBCDIC or ASCII
8397case `echo X|tr X '\101'` in
8398 A) # ASCII based system
8399 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8400 lt_SP2NL='tr \040 \012'
8401 lt_NL2SP='tr \015\012 \040\040'
8402 ;;
8403 *) # EBCDIC based system
8404 lt_SP2NL='tr \100 \n'
8405 lt_NL2SP='tr \r\n \100\100'
8406 ;;
8407esac
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8418$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8419if ${lt_cv_to_host_file_cmd+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421else
8422 case $host in
8423 *-*-mingw* )
8424 case $build in
8425 *-*-mingw* ) # actually msys
8426 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8427 ;;
8428 *-*-cygwin* )
8429 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8430 ;;
8431 * ) # otherwise, assume *nix
8432 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8433 ;;
8434 esac
8435 ;;
8436 *-*-cygwin* )
8437 case $build in
8438 *-*-mingw* ) # actually msys
8439 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8440 ;;
8441 *-*-cygwin* )
8442 lt_cv_to_host_file_cmd=func_convert_file_noop
8443 ;;
8444 * ) # otherwise, assume *nix
8445 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8446 ;;
8447 esac
8448 ;;
8449 * ) # unhandled hosts (and "normal" native builds)
8450 lt_cv_to_host_file_cmd=func_convert_file_noop
8451 ;;
8452esac
8453
8454fi
8455
8456to_host_file_cmd=$lt_cv_to_host_file_cmd
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8458$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8459
8460
8461
8462
8463
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8465$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8466if ${lt_cv_to_tool_file_cmd+:} false; then :
8467 $as_echo_n "(cached) " >&6
8468else
8469 #assume ordinary cross tools, or native build.
8470lt_cv_to_tool_file_cmd=func_convert_file_noop
8471case $host in
8472 *-*-mingw* )
8473 case $build in
8474 *-*-mingw* ) # actually msys
8475 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8476 ;;
8477 esac
8478 ;;
8479esac
8480
8481fi
8482
8483to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8485$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8486
8487
8488
8489
8490
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8492$as_echo_n "checking for $LD option to reload object files... " >&6; }
8493if ${lt_cv_ld_reload_flag+:} false; then :
8494 $as_echo_n "(cached) " >&6
8495else
8496 lt_cv_ld_reload_flag='-r'
8497fi
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8499$as_echo "$lt_cv_ld_reload_flag" >&6; }
8500reload_flag=$lt_cv_ld_reload_flag
8501case $reload_flag in
8502"" | " "*) ;;
8503*) reload_flag=" $reload_flag" ;;
8504esac
8505reload_cmds='$LD$reload_flag -o $output$reload_objs'
8506case $host_os in
8507 cygwin* | mingw* | pw32* | cegcc*)
8508 if test yes != "$GCC"; then
8509 reload_cmds=false
8510 fi
8511 ;;
8512 darwin*)
8513 if test yes = "$GCC"; then
8514 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8515 else
8516 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8517 fi
8518 ;;
8519esac
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529if test -n "$ac_tool_prefix"; then
8530 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8531set dummy ${ac_tool_prefix}objdump; ac_word=$2
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533$as_echo_n "checking for $ac_word... " >&6; }
8534if ${ac_cv_prog_OBJDUMP+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536else
8537 if test -n "$OBJDUMP"; then
8538 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8539else
8540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541for as_dir in $PATH
8542do
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8550 fi
8551done
8552 done
8553IFS=$as_save_IFS
8554
8555fi
8556fi
8557OBJDUMP=$ac_cv_prog_OBJDUMP
8558if test -n "$OBJDUMP"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8560$as_echo "$OBJDUMP" >&6; }
8561else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563$as_echo "no" >&6; }
8564fi
8565
8566
8567fi
8568if test -z "$ac_cv_prog_OBJDUMP"; then
8569 ac_ct_OBJDUMP=$OBJDUMP
8570 # Extract the first word of "objdump", so it can be a program name with args.
8571set dummy objdump; ac_word=$2
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573$as_echo_n "checking for $ac_word... " >&6; }
8574if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576else
8577 if test -n "$ac_ct_OBJDUMP"; then
8578 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8579else
8580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581for as_dir in $PATH
8582do
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8587 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 break 2
8590 fi
8591done
8592 done
8593IFS=$as_save_IFS
8594
8595fi
8596fi
8597ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8598if test -n "$ac_ct_OBJDUMP"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8600$as_echo "$ac_ct_OBJDUMP" >&6; }
8601else
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603$as_echo "no" >&6; }
8604fi
8605
8606 if test "x$ac_ct_OBJDUMP" = x; then
8607 OBJDUMP="false"
8608 else
8609 case $cross_compiling:$ac_tool_warned in
8610yes:)
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8613ac_tool_warned=yes ;;
8614esac
8615 OBJDUMP=$ac_ct_OBJDUMP
8616 fi
8617else
8618 OBJDUMP="$ac_cv_prog_OBJDUMP"
8619fi
8620
8621test -z "$OBJDUMP" && OBJDUMP=objdump
8622
8623
8624
8625
8626
8627
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8629$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8630if ${lt_cv_deplibs_check_method+:} false; then :
8631 $as_echo_n "(cached) " >&6
8632else
8633 lt_cv_file_magic_cmd='$MAGIC_CMD'
8634lt_cv_file_magic_test_file=
8635lt_cv_deplibs_check_method='unknown'
8636# Need to set the preceding variable on all platforms that support
8637# interlibrary dependencies.
8638# 'none' -- dependencies not supported.
8639# 'unknown' -- same as none, but documents that we really don't know.
8640# 'pass_all' -- all dependencies passed with no checks.
8641# 'test_compile' -- check by making test program.
8642# 'file_magic [[regex]]' -- check by looking for files in library path
8643# that responds to the $file_magic_cmd with a given extended regex.
8644# If you have 'file' or equivalent on your system and you're not sure
8645# whether 'pass_all' will *always* work, you probably want this one.
8646
8647case $host_os in
8648aix[4-9]*)
8649 lt_cv_deplibs_check_method=pass_all
8650 ;;
8651
8652beos*)
8653 lt_cv_deplibs_check_method=pass_all
8654 ;;
8655
8656bsdi[45]*)
8657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8658 lt_cv_file_magic_cmd='/usr/bin/file -L'
8659 lt_cv_file_magic_test_file=/shlib/libc.so
8660 ;;
8661
8662cygwin*)
8663 # func_win32_libid is a shell function defined in ltmain.sh
8664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8665 lt_cv_file_magic_cmd='func_win32_libid'
8666 ;;
8667
8668mingw* | pw32*)
8669 # Base MSYS/MinGW do not provide the 'file' command needed by
8670 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8671 # unless we find 'file', for example because we are cross-compiling.
8672 if ( file / ) >/dev/null 2>&1; then
8673 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8674 lt_cv_file_magic_cmd='func_win32_libid'
8675 else
8676 # Keep this pattern in sync with the one in func_win32_libid.
8677 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8678 lt_cv_file_magic_cmd='$OBJDUMP -f'
8679 fi
8680 ;;
8681
8682cegcc*)
8683 # use the weaker test based on 'objdump'. See mingw*.
8684 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8685 lt_cv_file_magic_cmd='$OBJDUMP -f'
8686 ;;
8687
8688darwin* | rhapsody*)
8689 lt_cv_deplibs_check_method=pass_all
8690 ;;
8691
8692freebsd* | dragonfly*)
8693 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8694 case $host_cpu in
8695 i*86 )
8696 # Not sure whether the presence of OpenBSD here was a mistake.
8697 # Let's accept both of them until this is cleared up.
8698 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8699 lt_cv_file_magic_cmd=/usr/bin/file
8700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8701 ;;
8702 esac
8703 else
8704 lt_cv_deplibs_check_method=pass_all
8705 fi
8706 ;;
8707
8708haiku*)
8709 lt_cv_deplibs_check_method=pass_all
8710 ;;
8711
8712hpux10.20* | hpux11*)
8713 lt_cv_file_magic_cmd=/usr/bin/file
8714 case $host_cpu in
8715 ia64*)
8716 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8717 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8718 ;;
8719 hppa*64*)
8720 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]'
8721 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8722 ;;
8723 *)
8724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8725 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8726 ;;
8727 esac
8728 ;;
8729
8730interix[3-9]*)
8731 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8733 ;;
8734
8735irix5* | irix6* | nonstopux*)
8736 case $LD in
8737 *-32|*"-32 ") libmagic=32-bit;;
8738 *-n32|*"-n32 ") libmagic=N32;;
8739 *-64|*"-64 ") libmagic=64-bit;;
8740 *) libmagic=never-match;;
8741 esac
8742 lt_cv_deplibs_check_method=pass_all
8743 ;;
8744
8745# This must be glibc/ELF.
8746linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8747 lt_cv_deplibs_check_method=pass_all
8748 ;;
8749
8750netbsd* | netbsdelf*-gnu)
8751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8753 else
8754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8755 fi
8756 ;;
8757
8758newos6*)
8759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8760 lt_cv_file_magic_cmd=/usr/bin/file
8761 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8762 ;;
8763
8764*nto* | *qnx*)
8765 lt_cv_deplibs_check_method=pass_all
8766 ;;
8767
8768openbsd* | bitrig*)
8769 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8771 else
8772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8773 fi
8774 ;;
8775
8776osf3* | osf4* | osf5*)
8777 lt_cv_deplibs_check_method=pass_all
8778 ;;
8779
8780rdos*)
8781 lt_cv_deplibs_check_method=pass_all
8782 ;;
8783
8784solaris*)
8785 lt_cv_deplibs_check_method=pass_all
8786 ;;
8787
8788sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8789 lt_cv_deplibs_check_method=pass_all
8790 ;;
8791
8792sysv4 | sysv4.3*)
8793 case $host_vendor in
8794 motorola)
8795 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]'
8796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8797 ;;
8798 ncr)
8799 lt_cv_deplibs_check_method=pass_all
8800 ;;
8801 sequent)
8802 lt_cv_file_magic_cmd='/bin/file'
8803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8804 ;;
8805 sni)
8806 lt_cv_file_magic_cmd='/bin/file'
8807 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8808 lt_cv_file_magic_test_file=/lib/libc.so
8809 ;;
8810 siemens)
8811 lt_cv_deplibs_check_method=pass_all
8812 ;;
8813 pc)
8814 lt_cv_deplibs_check_method=pass_all
8815 ;;
8816 esac
8817 ;;
8818
8819tpf*)
8820 lt_cv_deplibs_check_method=pass_all
8821 ;;
8822os2*)
8823 lt_cv_deplibs_check_method=pass_all
8824 ;;
8825esac
8826
8827fi
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8829$as_echo "$lt_cv_deplibs_check_method" >&6; }
8830
8831file_magic_glob=
8832want_nocaseglob=no
8833if test "$build" = "$host"; then
8834 case $host_os in
8835 mingw* | pw32*)
8836 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8837 want_nocaseglob=yes
8838 else
8839 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8840 fi
8841 ;;
8842 esac
8843fi
8844
8845file_magic_cmd=$lt_cv_file_magic_cmd
8846deplibs_check_method=$lt_cv_deplibs_check_method
8847test -z "$deplibs_check_method" && deplibs_check_method=unknown
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870if test -n "$ac_tool_prefix"; then
8871 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8872set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874$as_echo_n "checking for $ac_word... " >&6; }
8875if ${ac_cv_prog_DLLTOOL+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877else
8878 if test -n "$DLLTOOL"; then
8879 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8880else
8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882for as_dir in $PATH
8883do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8888 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8891 fi
8892done
8893 done
8894IFS=$as_save_IFS
8895
8896fi
8897fi
8898DLLTOOL=$ac_cv_prog_DLLTOOL
8899if test -n "$DLLTOOL"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8901$as_echo "$DLLTOOL" >&6; }
8902else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904$as_echo "no" >&6; }
8905fi
8906
8907
8908fi
8909if test -z "$ac_cv_prog_DLLTOOL"; then
8910 ac_ct_DLLTOOL=$DLLTOOL
8911 # Extract the first word of "dlltool", so it can be a program name with args.
8912set dummy dlltool; ac_word=$2
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914$as_echo_n "checking for $ac_word... " >&6; }
8915if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917else
8918 if test -n "$ac_ct_DLLTOOL"; then
8919 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8920else
8921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922for as_dir in $PATH
8923do
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8928 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 break 2
8931 fi
8932done
8933 done
8934IFS=$as_save_IFS
8935
8936fi
8937fi
8938ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8939if test -n "$ac_ct_DLLTOOL"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8941$as_echo "$ac_ct_DLLTOOL" >&6; }
8942else
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944$as_echo "no" >&6; }
8945fi
8946
8947 if test "x$ac_ct_DLLTOOL" = x; then
8948 DLLTOOL="false"
8949 else
8950 case $cross_compiling:$ac_tool_warned in
8951yes:)
8952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8954ac_tool_warned=yes ;;
8955esac
8956 DLLTOOL=$ac_ct_DLLTOOL
8957 fi
8958else
8959 DLLTOOL="$ac_cv_prog_DLLTOOL"
8960fi
8961
8962test -z "$DLLTOOL" && DLLTOOL=dlltool
8963
8964
8965
8966
8967
8968
8969
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8971$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8972if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974else
8975 lt_cv_sharedlib_from_linklib_cmd='unknown'
8976
8977case $host_os in
8978cygwin* | mingw* | pw32* | cegcc*)
8979 # two different shell functions defined in ltmain.sh;
8980 # decide which one to use based on capabilities of $DLLTOOL
8981 case `$DLLTOOL --help 2>&1` in
8982 *--identify-strict*)
8983 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8984 ;;
8985 *)
8986 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8987 ;;
8988 esac
8989 ;;
8990*)
8991 # fallback: assume linklib IS sharedlib
8992 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8993 ;;
8994esac
8995
8996fi
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8998$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8999sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9000test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9001
9002
9003
9004
9005
9006
9007
9008if test -n "$ac_tool_prefix"; then
9009 for ac_prog in ar
9010 do
9011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9012set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014$as_echo_n "checking for $ac_word... " >&6; }
9015if ${ac_cv_prog_AR+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017else
9018 if test -n "$AR"; then
9019 ac_cv_prog_AR="$AR" # Let the user override the test.
9020else
9021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022for as_dir in $PATH
9023do
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9028 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9031 fi
9032done
9033 done
9034IFS=$as_save_IFS
9035
9036fi
9037fi
9038AR=$ac_cv_prog_AR
9039if test -n "$AR"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9041$as_echo "$AR" >&6; }
9042else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044$as_echo "no" >&6; }
9045fi
9046
9047
9048 test -n "$AR" && break
9049 done
9050fi
9051if test -z "$AR"; then
9052 ac_ct_AR=$AR
9053 for ac_prog in ar
9054do
9055 # Extract the first word of "$ac_prog", so it can be a program name with args.
9056set dummy $ac_prog; ac_word=$2
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058$as_echo_n "checking for $ac_word... " >&6; }
9059if ${ac_cv_prog_ac_ct_AR+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061else
9062 if test -n "$ac_ct_AR"; then
9063 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9064else
9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066for as_dir in $PATH
9067do
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072 ac_cv_prog_ac_ct_AR="$ac_prog"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 break 2
9075 fi
9076done
9077 done
9078IFS=$as_save_IFS
9079
9080fi
9081fi
9082ac_ct_AR=$ac_cv_prog_ac_ct_AR
9083if test -n "$ac_ct_AR"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9085$as_echo "$ac_ct_AR" >&6; }
9086else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088$as_echo "no" >&6; }
9089fi
9090
9091
9092 test -n "$ac_ct_AR" && break
9093done
9094
9095 if test "x$ac_ct_AR" = x; then
9096 AR="false"
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 AR=$ac_ct_AR
9105 fi
9106fi
9107
9108: ${AR=ar}
9109: ${AR_FLAGS=cru}
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9122$as_echo_n "checking for archiver @FILE support... " >&6; }
9123if ${lt_cv_ar_at_file+:} false; then :
9124 $as_echo_n "(cached) " >&6
9125else
9126 lt_cv_ar_at_file=no
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128/* end confdefs.h. */
9129
9130int main (void)
9131{
9132
9133 ;
9134 return 0;
9135}
9136_ACEOF
9137if ac_fn_c_try_compile "$LINENO"; then :
9138 echo conftest.$ac_objext > conftest.lst
9139 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9141 (eval $lt_ar_try) 2>&5
9142 ac_status=$?
9143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9144 test $ac_status = 0; }
9145 if test 0 -eq "$ac_status"; then
9146 # Ensure the archiver fails upon bogus file names.
9147 rm -f conftest.$ac_objext libconftest.a
9148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9149 (eval $lt_ar_try) 2>&5
9150 ac_status=$?
9151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9152 test $ac_status = 0; }
9153 if test 0 -ne "$ac_status"; then
9154 lt_cv_ar_at_file=@
9155 fi
9156 fi
9157 rm -f conftest.* libconftest.a
9158
9159fi
9160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161
9162fi
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9164$as_echo "$lt_cv_ar_at_file" >&6; }
9165
9166if test no = "$lt_cv_ar_at_file"; then
9167 archiver_list_spec=
9168else
9169 archiver_list_spec=$lt_cv_ar_at_file
9170fi
9171
9172
9173
9174
9175
9176
9177
9178if test -n "$ac_tool_prefix"; then
9179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9180set dummy ${ac_tool_prefix}strip; ac_word=$2
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182$as_echo_n "checking for $ac_word... " >&6; }
9183if ${ac_cv_prog_STRIP+:} false; then :
9184 $as_echo_n "(cached) " >&6
9185else
9186 if test -n "$STRIP"; then
9187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9188else
9189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190for as_dir in $PATH
9191do
9192 IFS=$as_save_IFS
9193 test -z "$as_dir" && as_dir=.
9194 for ac_exec_ext in '' $ac_executable_extensions; do
9195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9196 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198 break 2
9199 fi
9200done
9201 done
9202IFS=$as_save_IFS
9203
9204fi
9205fi
9206STRIP=$ac_cv_prog_STRIP
9207if test -n "$STRIP"; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9209$as_echo "$STRIP" >&6; }
9210else
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212$as_echo "no" >&6; }
9213fi
9214
9215
9216fi
9217if test -z "$ac_cv_prog_STRIP"; then
9218 ac_ct_STRIP=$STRIP
9219 # Extract the first word of "strip", so it can be a program name with args.
9220set dummy strip; ac_word=$2
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9222$as_echo_n "checking for $ac_word... " >&6; }
9223if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9224 $as_echo_n "(cached) " >&6
9225else
9226 if test -n "$ac_ct_STRIP"; then
9227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9228else
9229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9230for as_dir in $PATH
9231do
9232 IFS=$as_save_IFS
9233 test -z "$as_dir" && as_dir=.
9234 for ac_exec_ext in '' $ac_executable_extensions; do
9235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9236 ac_cv_prog_ac_ct_STRIP="strip"
9237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9238 break 2
9239 fi
9240done
9241 done
9242IFS=$as_save_IFS
9243
9244fi
9245fi
9246ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9247if test -n "$ac_ct_STRIP"; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9249$as_echo "$ac_ct_STRIP" >&6; }
9250else
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252$as_echo "no" >&6; }
9253fi
9254
9255 if test "x$ac_ct_STRIP" = x; then
9256 STRIP=":"
9257 else
9258 case $cross_compiling:$ac_tool_warned in
9259yes:)
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9262ac_tool_warned=yes ;;
9263esac
9264 STRIP=$ac_ct_STRIP
9265 fi
9266else
9267 STRIP="$ac_cv_prog_STRIP"
9268fi
9269
9270test -z "$STRIP" && STRIP=:
9271
9272
9273
9274
9275
9276
9277if test -n "$ac_tool_prefix"; then
9278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9279set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281$as_echo_n "checking for $ac_word... " >&6; }
9282if ${ac_cv_prog_RANLIB+:} false; then :
9283 $as_echo_n "(cached) " >&6
9284else
9285 if test -n "$RANLIB"; then
9286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9287else
9288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289for as_dir in $PATH
9290do
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 break 2
9298 fi
9299done
9300 done
9301IFS=$as_save_IFS
9302
9303fi
9304fi
9305RANLIB=$ac_cv_prog_RANLIB
9306if test -n "$RANLIB"; then
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9308$as_echo "$RANLIB" >&6; }
9309else
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311$as_echo "no" >&6; }
9312fi
9313
9314
9315fi
9316if test -z "$ac_cv_prog_RANLIB"; then
9317 ac_ct_RANLIB=$RANLIB
9318 # Extract the first word of "ranlib", so it can be a program name with args.
9319set dummy ranlib; ac_word=$2
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321$as_echo_n "checking for $ac_word... " >&6; }
9322if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324else
9325 if test -n "$ac_ct_RANLIB"; then
9326 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9327else
9328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329for as_dir in $PATH
9330do
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335 ac_cv_prog_ac_ct_RANLIB="ranlib"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 break 2
9338 fi
9339done
9340 done
9341IFS=$as_save_IFS
9342
9343fi
9344fi
9345ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9346if test -n "$ac_ct_RANLIB"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9348$as_echo "$ac_ct_RANLIB" >&6; }
9349else
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351$as_echo "no" >&6; }
9352fi
9353
9354 if test "x$ac_ct_RANLIB" = x; then
9355 RANLIB=":"
9356 else
9357 case $cross_compiling:$ac_tool_warned in
9358yes:)
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9361ac_tool_warned=yes ;;
9362esac
9363 RANLIB=$ac_ct_RANLIB
9364 fi
9365else
9366 RANLIB="$ac_cv_prog_RANLIB"
9367fi
9368
9369test -z "$RANLIB" && RANLIB=:
9370
9371
9372
9373
9374
9375
9376# Determine commands to create old-style static archives.
9377old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9378old_postinstall_cmds='chmod 644 $oldlib'
9379old_postuninstall_cmds=
9380
9381if test -n "$RANLIB"; then
9382 case $host_os in
9383 bitrig* | openbsd*)
9384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9385 ;;
9386 *)
9387 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9388 ;;
9389 esac
9390 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9391fi
9392
9393case $host_os in
9394 darwin*)
9395 lock_old_archive_extraction=yes ;;
9396 *)
9397 lock_old_archive_extraction=no ;;
9398esac
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438# If no C compiler was specified, use CC.
9439LTCC=${LTCC-"$CC"}
9440
9441# If no C compiler flags were specified, use CFLAGS.
9442LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9443
9444# Allow CC to be a program name with arguments.
9445compiler=$CC
9446
9447
9448# Check for command to grab the raw symbol name followed by C symbol from nm.
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9450$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9451if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453else
9454
9455# These are sane defaults that work on at least a few old systems.
9456# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9457
9458# Character class describing NM global symbol codes.
9459symcode='[BCDEGRST]'
9460
9461# Regexp to match symbols that can be accessed directly from C.
9462sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9463
9464# Define system-specific variables.
9465case $host_os in
9466aix*)
9467 symcode='[BCDT]'
9468 ;;
9469cygwin* | mingw* | pw32* | cegcc*)
9470 symcode='[ABCDGISTW]'
9471 ;;
9472hpux*)
9473 if test ia64 = "$host_cpu"; then
9474 symcode='[ABCDEGRST]'
9475 fi
9476 ;;
9477irix* | nonstopux*)
9478 symcode='[BCDEGRST]'
9479 ;;
9480osf*)
9481 symcode='[BCDEGQRST]'
9482 ;;
9483solaris*)
9484 symcode='[BDRT]'
9485 ;;
9486sco3.2v5*)
9487 symcode='[DT]'
9488 ;;
9489sysv4.2uw2*)
9490 symcode='[DT]'
9491 ;;
9492sysv5* | sco5v6* | unixware* | OpenUNIX*)
9493 symcode='[ABDT]'
9494 ;;
9495sysv4)
9496 symcode='[DFNSTU]'
9497 ;;
9498esac
9499
9500# If we're using GNU nm, then use its standard symbol codes.
9501case `$NM -V 2>&1` in
9502*GNU* | *'with BFD'*)
9503 symcode='[ABCDGIRSTW]' ;;
9504esac
9505
9506if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9507 # Gets list of data symbols to import.
9508 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9509 # Adjust the below global symbol transforms to fixup imported variables.
9510 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9511 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9512 lt_c_name_lib_hook="\
9513 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9514 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9515else
9516 # Disable hooks by default.
9517 lt_cv_sys_global_symbol_to_import=
9518 lt_cdecl_hook=
9519 lt_c_name_hook=
9520 lt_c_name_lib_hook=
9521fi
9522
9523# Transform an extracted symbol line into a proper C declaration.
9524# Some systems (esp. on ia64) link data and code symbols differently,
9525# so use this general approach.
9526lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9527$lt_cdecl_hook\
9528" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9529" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9530
9531# Transform an extracted symbol line into symbol name and symbol address
9532lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9533$lt_c_name_hook\
9534" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9535" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9536
9537# Transform an extracted symbol line into symbol name with lib prefix and
9538# symbol address.
9539lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9540$lt_c_name_lib_hook\
9541" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9542" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9543" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9544
9545# Handle CRLF in mingw tool chain
9546opt_cr=
9547case $build_os in
9548mingw*)
9549 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9550 ;;
9551esac
9552
9553# Try without a prefix underscore, then with it.
9554for ac_symprfx in "" "_"; do
9555
9556 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9557 symxfrm="\\1 $ac_symprfx\\2 \\2"
9558
9559 # Write the raw and C identifiers.
9560 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9561 # Fake it for dumpbin and say T for any non-static function,
9562 # D for any global variable and I for any imported variable.
9563 # Also find C++ and __fastcall symbols from MSVC++,
9564 # which start with @ or ?.
9565 lt_cv_sys_global_symbol_pipe="$AWK '"\
9566" {last_section=section; section=\$ 3};"\
9567" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9568" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9569" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9570" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9571" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9572" \$ 0!~/External *\|/{next};"\
9573" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9574" {if(hide[section]) next};"\
9575" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9576" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9577" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9578" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9579" ' prfx=^$ac_symprfx"
9580 else
9581 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9582 fi
9583 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9584
9585 # Check to see that the pipe works correctly.
9586 pipe_works=no
9587
9588 rm -f conftest*
9589 cat > conftest.$ac_ext <<_LT_EOF
9590#ifdef __cplusplus
9591extern "C" {
9592#endif
9593char nm_test_var;
9594void nm_test_func(void);
9595void nm_test_func(void){}
9596#ifdef __cplusplus
9597}
9598#endif
9599int main(){nm_test_var='a';nm_test_func();return(0);}
9600_LT_EOF
9601
9602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9603 (eval $ac_compile) 2>&5
9604 ac_status=$?
9605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9606 test $ac_status = 0; }; then
9607 # Now try to grab the symbols.
9608 nlist=conftest.nm
9609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9610 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9611 ac_status=$?
9612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9613 test $ac_status = 0; } && test -s "$nlist"; then
9614 # Try sorting and uniquifying the output.
9615 if sort "$nlist" | uniq > "$nlist"T; then
9616 mv -f "$nlist"T "$nlist"
9617 else
9618 rm -f "$nlist"T
9619 fi
9620
9621 # Make sure that we snagged all the symbols we need.
9622 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9623 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9624 cat <<_LT_EOF > conftest.$ac_ext
9625/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9626#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9627/* DATA imports from DLLs on WIN32 can't be const, because runtime
9628 relocations are performed -- see ld's documentation on pseudo-relocs. */
9629# define LT_DLSYM_CONST
9630#elif defined __osf__
9631/* This system does not cope well with relocations in const data. */
9632# define LT_DLSYM_CONST
9633#else
9634# define LT_DLSYM_CONST const
9635#endif
9636
9637#ifdef __cplusplus
9638extern "C" {
9639#endif
9640
9641_LT_EOF
9642 # Now generate the symbol file.
9643 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9644
9645 cat <<_LT_EOF >> conftest.$ac_ext
9646
9647/* The mapping between symbol names and symbols. */
9648LT_DLSYM_CONST struct {
9649 const char *name;
9650 void *address;
9651}
9652lt__PROGRAM__LTX_preloaded_symbols[] =
9653{
9654 { "@PROGRAM@", (void *) 0 },
9655_LT_EOF
9656 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9657 cat <<\_LT_EOF >> conftest.$ac_ext
9658 {0, (void *) 0}
9659};
9660
9661/* This works around a problem in FreeBSD linker */
9662#ifdef FREEBSD_WORKAROUND
9663static const void *lt_preloaded_setup() {
9664 return lt__PROGRAM__LTX_preloaded_symbols;
9665}
9666#endif
9667
9668#ifdef __cplusplus
9669}
9670#endif
9671_LT_EOF
9672 # Now try linking the two files.
9673 mv -f conftest.$ac_objext conftstm.$ac_objext
9674 lt_globsym_save_LIBS=$LIBS
9675 lt_globsym_save_CFLAGS=$CFLAGS
9676 LIBS=conftstm.$ac_objext
9677 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9679 (eval $ac_link) 2>&5
9680 ac_status=$?
9681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9682 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9683 pipe_works=yes
9684 fi
9685 LIBS=$lt_globsym_save_LIBS
9686 CFLAGS=$lt_globsym_save_CFLAGS
9687 else
9688 echo "cannot find nm_test_func in $nlist" >&5
9689 fi
9690 else
9691 echo "cannot find nm_test_var in $nlist" >&5
9692 fi
9693 else
9694 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9695 fi
9696 else
9697 echo "$progname: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9699 fi
9700 rm -rf conftest* conftst*
9701
9702 # Do not use the global_symbol_pipe unless it works.
9703 if test yes = "$pipe_works"; then
9704 break
9705 else
9706 lt_cv_sys_global_symbol_pipe=
9707 fi
9708done
9709
9710fi
9711
9712if test -z "$lt_cv_sys_global_symbol_pipe"; then
9713 lt_cv_sys_global_symbol_to_cdecl=
9714fi
9715if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9717$as_echo "failed" >&6; }
9718else
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9720$as_echo "ok" >&6; }
9721fi
9722
9723# Response file support.
9724if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9725 nm_file_list_spec='@'
9726elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9727 nm_file_list_spec='@'
9728fi
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9767$as_echo_n "checking for sysroot... " >&6; }
9768
9769# Check whether --with-sysroot was given.
9770if test "${with_sysroot+set}" = set; then :
9771 withval=$with_sysroot;
9772else
9773 with_sysroot=no
9774fi
9775
9776
9777lt_sysroot=
9778case $with_sysroot in #(
9779 yes)
9780 if test yes = "$GCC"; then
9781 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9782 fi
9783 ;; #(
9784 /*)
9785 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9786 ;; #(
9787 no|'')
9788 ;; #(
9789 *)
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9791$as_echo "$with_sysroot" >&6; }
9792 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9793 ;;
9794esac
9795
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9797$as_echo "${lt_sysroot:-no}" >&6; }
9798
9799
9800
9801
9802
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9804$as_echo_n "checking for a working dd... " >&6; }
9805if ${ac_cv_path_lt_DD+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807else
9808 printf 0123456789abcdef0123456789abcdef >conftest.i
9809cat conftest.i conftest.i >conftest2.i
9810: ${lt_DD:=$DD}
9811if test -z "$lt_DD"; then
9812 ac_path_lt_DD_found=false
9813 # Loop through the user's path and test for each of PROGNAME-LIST
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815for as_dir in $PATH
9816do
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_prog in dd; do
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9822 as_fn_executable_p "$ac_path_lt_DD" || continue
9823if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9824 cmp -s conftest.i conftest.out \
9825 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9826fi
9827 $ac_path_lt_DD_found && break 3
9828 done
9829 done
9830 done
9831IFS=$as_save_IFS
9832 if test -z "$ac_cv_path_lt_DD"; then
9833 :
9834 fi
9835else
9836 ac_cv_path_lt_DD=$lt_DD
9837fi
9838
9839rm -f conftest.i conftest2.i conftest.out
9840fi
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9842$as_echo "$ac_cv_path_lt_DD" >&6; }
9843
9844
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9846$as_echo_n "checking how to truncate binary pipes... " >&6; }
9847if ${lt_cv_truncate_bin+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849else
9850 printf 0123456789abcdef0123456789abcdef >conftest.i
9851cat conftest.i conftest.i >conftest2.i
9852lt_cv_truncate_bin=
9853if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9854 cmp -s conftest.i conftest.out \
9855 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9856fi
9857rm -f conftest.i conftest2.i conftest.out
9858test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9859fi
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9861$as_echo "$lt_cv_truncate_bin" >&6; }
9862
9863
9864
9865
9866
9867
9868
9869# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9870func_cc_basename ()
9871{
9872 for cc_temp in $*""; do
9873 case $cc_temp in
9874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9876 \-*) ;;
9877 *) break;;
9878 esac
9879 done
9880 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9881}
9882
9883# Check whether --enable-libtool-lock was given.
9884if test "${enable_libtool_lock+set}" = set; then :
9885 enableval=$enable_libtool_lock;
9886fi
9887
9888test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9889
9890# Some flags need to be propagated to the compiler or linker for good
9891# libtool support.
9892case $host in
9893ia64-*-hpux*)
9894 # Find out what ABI is being produced by ac_compile, and set mode
9895 # options accordingly.
9896 echo 'int i;' > conftest.$ac_ext
9897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9898 (eval $ac_compile) 2>&5
9899 ac_status=$?
9900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9901 test $ac_status = 0; }; then
9902 case `/usr/bin/file conftest.$ac_objext` in
9903 *ELF-32*)
9904 HPUX_IA64_MODE=32
9905 ;;
9906 *ELF-64*)
9907 HPUX_IA64_MODE=64
9908 ;;
9909 esac
9910 fi
9911 rm -rf conftest*
9912 ;;
9913*-*-irix6*)
9914 # Find out what ABI is being produced by ac_compile, and set linker
9915 # options accordingly.
9916 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9918 (eval $ac_compile) 2>&5
9919 ac_status=$?
9920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921 test $ac_status = 0; }; then
9922 if test yes = "$lt_cv_prog_gnu_ld"; then
9923 case `/usr/bin/file conftest.$ac_objext` in
9924 *32-bit*)
9925 LD="${LD-ld} -melf32bsmip"
9926 ;;
9927 *N32*)
9928 LD="${LD-ld} -melf32bmipn32"
9929 ;;
9930 *64-bit*)
9931 LD="${LD-ld} -melf64bmip"
9932 ;;
9933 esac
9934 else
9935 case `/usr/bin/file conftest.$ac_objext` in
9936 *32-bit*)
9937 LD="${LD-ld} -32"
9938 ;;
9939 *N32*)
9940 LD="${LD-ld} -n32"
9941 ;;
9942 *64-bit*)
9943 LD="${LD-ld} -64"
9944 ;;
9945 esac
9946 fi
9947 fi
9948 rm -rf conftest*
9949 ;;
9950
9951mips64*-*linux*)
9952 # Find out what ABI is being produced by ac_compile, and set linker
9953 # options accordingly.
9954 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9956 (eval $ac_compile) 2>&5
9957 ac_status=$?
9958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9959 test $ac_status = 0; }; then
9960 emul=elf
9961 case `/usr/bin/file conftest.$ac_objext` in
9962 *32-bit*)
9963 emul="${emul}32"
9964 ;;
9965 *64-bit*)
9966 emul="${emul}64"
9967 ;;
9968 esac
9969 case `/usr/bin/file conftest.$ac_objext` in
9970 *MSB*)
9971 emul="${emul}btsmip"
9972 ;;
9973 *LSB*)
9974 emul="${emul}ltsmip"
9975 ;;
9976 esac
9977 case `/usr/bin/file conftest.$ac_objext` in
9978 *N32*)
9979 emul="${emul}n32"
9980 ;;
9981 esac
9982 LD="${LD-ld} -m $emul"
9983 fi
9984 rm -rf conftest*
9985 ;;
9986
9987x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9988s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9989 # Find out what ABI is being produced by ac_compile, and set linker
9990 # options accordingly. Note that the listed cases only cover the
9991 # situations where additional linker options are needed (such as when
9992 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9993 # vice versa); the common cases where no linker options are needed do
9994 # not appear in the list.
9995 echo 'int i;' > conftest.$ac_ext
9996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9997 (eval $ac_compile) 2>&5
9998 ac_status=$?
9999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10000 test $ac_status = 0; }; then
10001 case `/usr/bin/file conftest.o` in
10002 *32-bit*)
10003 case $host in
10004 x86_64-*kfreebsd*-gnu)
10005 LD="${LD-ld} -m elf_i386_fbsd"
10006 ;;
10007 x86_64-*linux*)
10008 case `/usr/bin/file conftest.o` in
10009 *x86-64*)
10010 LD="${LD-ld} -m elf32_x86_64"
10011 ;;
10012 *)
10013 LD="${LD-ld} -m elf_i386"
10014 ;;
10015 esac
10016 ;;
10017 powerpc64le-*linux*)
10018 LD="${LD-ld} -m elf32lppclinux"
10019 ;;
10020 powerpc64-*linux*)
10021 LD="${LD-ld} -m elf32ppclinux"
10022 ;;
10023 s390x-*linux*)
10024 LD="${LD-ld} -m elf_s390"
10025 ;;
10026 sparc64-*linux*)
10027 LD="${LD-ld} -m elf32_sparc"
10028 ;;
10029 esac
10030 ;;
10031 *64-bit*)
10032 case $host in
10033 x86_64-*kfreebsd*-gnu)
10034 LD="${LD-ld} -m elf_x86_64_fbsd"
10035 ;;
10036 x86_64-*linux*)
10037 LD="${LD-ld} -m elf_x86_64"
10038 ;;
10039 powerpcle-*linux*)
10040 LD="${LD-ld} -m elf64lppc"
10041 ;;
10042 powerpc-*linux*)
10043 LD="${LD-ld} -m elf64ppc"
10044 ;;
10045 s390*-*linux*|s390*-*tpf*)
10046 LD="${LD-ld} -m elf64_s390"
10047 ;;
10048 sparc*-*linux*)
10049 LD="${LD-ld} -m elf64_sparc"
10050 ;;
10051 esac
10052 ;;
10053 esac
10054 fi
10055 rm -rf conftest*
10056 ;;
10057
10058*-*-sco3.2v5*)
10059 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10060 SAVE_CFLAGS=$CFLAGS
10061 CFLAGS="$CFLAGS -belf"
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10063$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10064if ${lt_cv_cc_needs_belf+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066else
10067 ac_ext=c
10068ac_cpp='$CPP $CPPFLAGS'
10069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10071ac_compiler_gnu=$ac_cv_c_compiler_gnu
10072
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h. */
10075
10076int main (void)
10077{
10078
10079 ;
10080 return 0;
10081}
10082_ACEOF
10083if ac_fn_c_try_link "$LINENO"; then :
10084 lt_cv_cc_needs_belf=yes
10085else
10086 lt_cv_cc_needs_belf=no
10087fi
10088rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090 ac_ext=c
10091ac_cpp='$CPP $CPPFLAGS'
10092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10094ac_compiler_gnu=$ac_cv_c_compiler_gnu
10095
10096fi
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10098$as_echo "$lt_cv_cc_needs_belf" >&6; }
10099 if test yes != "$lt_cv_cc_needs_belf"; then
10100 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10101 CFLAGS=$SAVE_CFLAGS
10102 fi
10103 ;;
10104*-*solaris*)
10105 # Find out what ABI is being produced by ac_compile, and set linker
10106 # options accordingly.
10107 echo 'int i;' > conftest.$ac_ext
10108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10109 (eval $ac_compile) 2>&5
10110 ac_status=$?
10111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10112 test $ac_status = 0; }; then
10113 case `/usr/bin/file conftest.o` in
10114 *64-bit*)
10115 case $lt_cv_prog_gnu_ld in
10116 yes*)
10117 case $host in
10118 i?86-*-solaris*|x86_64-*-solaris*)
10119 LD="${LD-ld} -m elf_x86_64"
10120 ;;
10121 sparc*-*-solaris*)
10122 LD="${LD-ld} -m elf64_sparc"
10123 ;;
10124 esac
10125 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10126 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10127 LD=${LD-ld}_sol2
10128 fi
10129 ;;
10130 *)
10131 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10132 LD="${LD-ld} -64"
10133 fi
10134 ;;
10135 esac
10136 ;;
10137 esac
10138 fi
10139 rm -rf conftest*
10140 ;;
10141esac
10142
10143need_locks=$enable_libtool_lock
10144
10145if test -n "$ac_tool_prefix"; then
10146 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10147set dummy ${ac_tool_prefix}mt; ac_word=$2
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149$as_echo_n "checking for $ac_word... " >&6; }
10150if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152else
10153 if test -n "$MANIFEST_TOOL"; then
10154 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10155else
10156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157for as_dir in $PATH
10158do
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10166 fi
10167done
10168 done
10169IFS=$as_save_IFS
10170
10171fi
10172fi
10173MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10174if test -n "$MANIFEST_TOOL"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10176$as_echo "$MANIFEST_TOOL" >&6; }
10177else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179$as_echo "no" >&6; }
10180fi
10181
10182
10183fi
10184if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10185 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10186 # Extract the first word of "mt", so it can be a program name with args.
10187set dummy mt; ac_word=$2
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189$as_echo_n "checking for $ac_word... " >&6; }
10190if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10191 $as_echo_n "(cached) " >&6
10192else
10193 if test -n "$ac_ct_MANIFEST_TOOL"; then
10194 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10195else
10196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197for as_dir in $PATH
10198do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207done
10208 done
10209IFS=$as_save_IFS
10210
10211fi
10212fi
10213ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10214if test -n "$ac_ct_MANIFEST_TOOL"; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10216$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10217else
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219$as_echo "no" >&6; }
10220fi
10221
10222 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10223 MANIFEST_TOOL=":"
10224 else
10225 case $cross_compiling:$ac_tool_warned in
10226yes:)
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10229ac_tool_warned=yes ;;
10230esac
10231 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10232 fi
10233else
10234 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10235fi
10236
10237test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10239$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10240if ${lt_cv_path_mainfest_tool+:} false; then :
10241 $as_echo_n "(cached) " >&6
10242else
10243 lt_cv_path_mainfest_tool=no
10244 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10245 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10246 cat conftest.err >&5
10247 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10248 lt_cv_path_mainfest_tool=yes
10249 fi
10250 rm -f conftest*
10251fi
10252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10253$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10254if test yes != "$lt_cv_path_mainfest_tool"; then
10255 MANIFEST_TOOL=:
10256fi
10257
10258
10259
10260
10261
10262
10263 case $host_os in
10264 rhapsody* | darwin*)
10265 if test -n "$ac_tool_prefix"; then
10266 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10267set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269$as_echo_n "checking for $ac_word... " >&6; }
10270if ${ac_cv_prog_DSYMUTIL+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272else
10273 if test -n "$DSYMUTIL"; then
10274 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10275else
10276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277for as_dir in $PATH
10278do
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 break 2
10286 fi
10287done
10288 done
10289IFS=$as_save_IFS
10290
10291fi
10292fi
10293DSYMUTIL=$ac_cv_prog_DSYMUTIL
10294if test -n "$DSYMUTIL"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10296$as_echo "$DSYMUTIL" >&6; }
10297else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299$as_echo "no" >&6; }
10300fi
10301
10302
10303fi
10304if test -z "$ac_cv_prog_DSYMUTIL"; then
10305 ac_ct_DSYMUTIL=$DSYMUTIL
10306 # Extract the first word of "dsymutil", so it can be a program name with args.
10307set dummy dsymutil; ac_word=$2
10308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309$as_echo_n "checking for $ac_word... " >&6; }
10310if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312else
10313 if test -n "$ac_ct_DSYMUTIL"; then
10314 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10315else
10316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317for as_dir in $PATH
10318do
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 break 2
10326 fi
10327done
10328 done
10329IFS=$as_save_IFS
10330
10331fi
10332fi
10333ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10334if test -n "$ac_ct_DSYMUTIL"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10336$as_echo "$ac_ct_DSYMUTIL" >&6; }
10337else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339$as_echo "no" >&6; }
10340fi
10341
10342 if test "x$ac_ct_DSYMUTIL" = x; then
10343 DSYMUTIL=":"
10344 else
10345 case $cross_compiling:$ac_tool_warned in
10346yes:)
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10349ac_tool_warned=yes ;;
10350esac
10351 DSYMUTIL=$ac_ct_DSYMUTIL
10352 fi
10353else
10354 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10355fi
10356
10357 if test -n "$ac_tool_prefix"; then
10358 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10359set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361$as_echo_n "checking for $ac_word... " >&6; }
10362if ${ac_cv_prog_NMEDIT+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364else
10365 if test -n "$NMEDIT"; then
10366 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10367else
10368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $PATH
10370do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 break 2
10378 fi
10379done
10380 done
10381IFS=$as_save_IFS
10382
10383fi
10384fi
10385NMEDIT=$ac_cv_prog_NMEDIT
10386if test -n "$NMEDIT"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10388$as_echo "$NMEDIT" >&6; }
10389else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391$as_echo "no" >&6; }
10392fi
10393
10394
10395fi
10396if test -z "$ac_cv_prog_NMEDIT"; then
10397 ac_ct_NMEDIT=$NMEDIT
10398 # Extract the first word of "nmedit", so it can be a program name with args.
10399set dummy nmedit; ac_word=$2
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401$as_echo_n "checking for $ac_word... " >&6; }
10402if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404else
10405 if test -n "$ac_ct_NMEDIT"; then
10406 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10407else
10408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10418 fi
10419done
10420 done
10421IFS=$as_save_IFS
10422
10423fi
10424fi
10425ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10426if test -n "$ac_ct_NMEDIT"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10428$as_echo "$ac_ct_NMEDIT" >&6; }
10429else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431$as_echo "no" >&6; }
10432fi
10433
10434 if test "x$ac_ct_NMEDIT" = x; then
10435 NMEDIT=":"
10436 else
10437 case $cross_compiling:$ac_tool_warned in
10438yes:)
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10441ac_tool_warned=yes ;;
10442esac
10443 NMEDIT=$ac_ct_NMEDIT
10444 fi
10445else
10446 NMEDIT="$ac_cv_prog_NMEDIT"
10447fi
10448
10449 if test -n "$ac_tool_prefix"; then
10450 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10451set dummy ${ac_tool_prefix}lipo; ac_word=$2
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453$as_echo_n "checking for $ac_word... " >&6; }
10454if ${ac_cv_prog_LIPO+:} false; then :
10455 $as_echo_n "(cached) " >&6
10456else
10457 if test -n "$LIPO"; then
10458 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10459else
10460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10467 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10470 fi
10471done
10472 done
10473IFS=$as_save_IFS
10474
10475fi
10476fi
10477LIPO=$ac_cv_prog_LIPO
10478if test -n "$LIPO"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10480$as_echo "$LIPO" >&6; }
10481else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483$as_echo "no" >&6; }
10484fi
10485
10486
10487fi
10488if test -z "$ac_cv_prog_LIPO"; then
10489 ac_ct_LIPO=$LIPO
10490 # Extract the first word of "lipo", so it can be a program name with args.
10491set dummy lipo; ac_word=$2
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493$as_echo_n "checking for $ac_word... " >&6; }
10494if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10495 $as_echo_n "(cached) " >&6
10496else
10497 if test -n "$ac_ct_LIPO"; then
10498 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10499else
10500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501for as_dir in $PATH
10502do
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507 ac_cv_prog_ac_ct_LIPO="lipo"
10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10509 break 2
10510 fi
10511done
10512 done
10513IFS=$as_save_IFS
10514
10515fi
10516fi
10517ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10518if test -n "$ac_ct_LIPO"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10520$as_echo "$ac_ct_LIPO" >&6; }
10521else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523$as_echo "no" >&6; }
10524fi
10525
10526 if test "x$ac_ct_LIPO" = x; then
10527 LIPO=":"
10528 else
10529 case $cross_compiling:$ac_tool_warned in
10530yes:)
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10533ac_tool_warned=yes ;;
10534esac
10535 LIPO=$ac_ct_LIPO
10536 fi
10537else
10538 LIPO="$ac_cv_prog_LIPO"
10539fi
10540
10541 if test -n "$ac_tool_prefix"; then
10542 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10543set dummy ${ac_tool_prefix}otool; ac_word=$2
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545$as_echo_n "checking for $ac_word... " >&6; }
10546if ${ac_cv_prog_OTOOL+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548else
10549 if test -n "$OTOOL"; then
10550 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10551else
10552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553for as_dir in $PATH
10554do
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10559 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10562 fi
10563done
10564 done
10565IFS=$as_save_IFS
10566
10567fi
10568fi
10569OTOOL=$ac_cv_prog_OTOOL
10570if test -n "$OTOOL"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10572$as_echo "$OTOOL" >&6; }
10573else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
10576fi
10577
10578
10579fi
10580if test -z "$ac_cv_prog_OTOOL"; then
10581 ac_ct_OTOOL=$OTOOL
10582 # Extract the first word of "otool", so it can be a program name with args.
10583set dummy otool; ac_word=$2
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585$as_echo_n "checking for $ac_word... " >&6; }
10586if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588else
10589 if test -n "$ac_ct_OTOOL"; then
10590 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10591else
10592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593for as_dir in $PATH
10594do
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_ac_ct_OTOOL="otool"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10602 fi
10603done
10604 done
10605IFS=$as_save_IFS
10606
10607fi
10608fi
10609ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10610if test -n "$ac_ct_OTOOL"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10612$as_echo "$ac_ct_OTOOL" >&6; }
10613else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615$as_echo "no" >&6; }
10616fi
10617
10618 if test "x$ac_ct_OTOOL" = x; then
10619 OTOOL=":"
10620 else
10621 case $cross_compiling:$ac_tool_warned in
10622yes:)
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10625ac_tool_warned=yes ;;
10626esac
10627 OTOOL=$ac_ct_OTOOL
10628 fi
10629else
10630 OTOOL="$ac_cv_prog_OTOOL"
10631fi
10632
10633 if test -n "$ac_tool_prefix"; then
10634 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10635set dummy ${ac_tool_prefix}otool64; ac_word=$2
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637$as_echo_n "checking for $ac_word... " >&6; }
10638if ${ac_cv_prog_OTOOL64+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640else
10641 if test -n "$OTOOL64"; then
10642 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10643else
10644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645for as_dir in $PATH
10646do
10647 IFS=$as_save_IFS
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10651 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10653 break 2
10654 fi
10655done
10656 done
10657IFS=$as_save_IFS
10658
10659fi
10660fi
10661OTOOL64=$ac_cv_prog_OTOOL64
10662if test -n "$OTOOL64"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10664$as_echo "$OTOOL64" >&6; }
10665else
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667$as_echo "no" >&6; }
10668fi
10669
10670
10671fi
10672if test -z "$ac_cv_prog_OTOOL64"; then
10673 ac_ct_OTOOL64=$OTOOL64
10674 # Extract the first word of "otool64", so it can be a program name with args.
10675set dummy otool64; ac_word=$2
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677$as_echo_n "checking for $ac_word... " >&6; }
10678if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10679 $as_echo_n "(cached) " >&6
10680else
10681 if test -n "$ac_ct_OTOOL64"; then
10682 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10683else
10684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685for as_dir in $PATH
10686do
10687 IFS=$as_save_IFS
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10691 ac_cv_prog_ac_ct_OTOOL64="otool64"
10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693 break 2
10694 fi
10695done
10696 done
10697IFS=$as_save_IFS
10698
10699fi
10700fi
10701ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10702if test -n "$ac_ct_OTOOL64"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10704$as_echo "$ac_ct_OTOOL64" >&6; }
10705else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707$as_echo "no" >&6; }
10708fi
10709
10710 if test "x$ac_ct_OTOOL64" = x; then
10711 OTOOL64=":"
10712 else
10713 case $cross_compiling:$ac_tool_warned in
10714yes:)
10715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10717ac_tool_warned=yes ;;
10718esac
10719 OTOOL64=$ac_ct_OTOOL64
10720 fi
10721else
10722 OTOOL64="$ac_cv_prog_OTOOL64"
10723fi
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10752$as_echo_n "checking for -single_module linker flag... " >&6; }
10753if ${lt_cv_apple_cc_single_mod+:} false; then :
10754 $as_echo_n "(cached) " >&6
10755else
10756 lt_cv_apple_cc_single_mod=no
10757 if test -z "$LT_MULTI_MODULE"; then
10758 # By default we will add the -single_module flag. You can override
10759 # by either setting the environment variable LT_MULTI_MODULE
10760 # non-empty at configure time, or by adding -multi_module to the
10761 # link flags.
10762 rm -rf libconftest.dylib*
10763 echo "int foo(void){return 1;}" > conftest.c
10764 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10765-dynamiclib -Wl,-single_module conftest.c" >&5
10766 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10767 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10768 _lt_result=$?
10769 # If there is a non-empty error log, and "single_module"
10770 # appears in it, assume the flag caused a linker warning
10771 if test -s conftest.err && $GREP single_module conftest.err; then
10772 cat conftest.err >&5
10773 # Otherwise, if the output was created with a 0 exit code from
10774 # the compiler, it worked.
10775 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10776 lt_cv_apple_cc_single_mod=yes
10777 else
10778 cat conftest.err >&5
10779 fi
10780 rm -rf libconftest.dylib*
10781 rm -f conftest.*
10782 fi
10783fi
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10785$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10786
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10788$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10789if ${lt_cv_ld_exported_symbols_list+:} false; then :
10790 $as_echo_n "(cached) " >&6
10791else
10792 lt_cv_ld_exported_symbols_list=no
10793 save_LDFLAGS=$LDFLAGS
10794 echo "_main" > conftest.sym
10795 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h. */
10798
10799int main (void)
10800{
10801
10802 ;
10803 return 0;
10804}
10805_ACEOF
10806if ac_fn_c_try_link "$LINENO"; then :
10807 lt_cv_ld_exported_symbols_list=yes
10808else
10809 lt_cv_ld_exported_symbols_list=no
10810fi
10811rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LDFLAGS=$save_LDFLAGS
10814
10815fi
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10817$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10818
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10820$as_echo_n "checking for -force_load linker flag... " >&6; }
10821if ${lt_cv_ld_force_load+:} false; then :
10822 $as_echo_n "(cached) " >&6
10823else
10824 lt_cv_ld_force_load=no
10825 cat > conftest.c << _LT_EOF
10826int forced_loaded() { return 2;}
10827_LT_EOF
10828 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10829 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10830 echo "$AR cru libconftest.a conftest.o" >&5
10831 $AR cru libconftest.a conftest.o 2>&5
10832 echo "$RANLIB libconftest.a" >&5
10833 $RANLIB libconftest.a 2>&5
10834 cat > conftest.c << _LT_EOF
10835int main() { return 0;}
10836_LT_EOF
10837 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10838 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10839 _lt_result=$?
10840 if test -s conftest.err && $GREP force_load conftest.err; then
10841 cat conftest.err >&5
10842 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10843 lt_cv_ld_force_load=yes
10844 else
10845 cat conftest.err >&5
10846 fi
10847 rm -f conftest.err libconftest.a conftest conftest.c
10848 rm -rf conftest.dSYM
10849
10850fi
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10852$as_echo "$lt_cv_ld_force_load" >&6; }
10853 case $host_os in
10854 rhapsody* | darwin1.[012])
10855 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10856 darwin1.*)
10857 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10858 darwin*) # darwin 5.x on
10859 # if running on 10.5 or later, the deployment target defaults
10860 # to the OS version, if on x86, and 10.4, the deployment
10861 # target defaults to 10.4. Don't you love it?
10862 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10863 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10864 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10865 10.[012][,.]*)
10866 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10867 10.*)
10868 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10869 esac
10870 ;;
10871 esac
10872 if test yes = "$lt_cv_apple_cc_single_mod"; then
10873 _lt_dar_single_mod='$single_module'
10874 fi
10875 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10876 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10877 else
10878 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10879 fi
10880 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10881 _lt_dsymutil='~$DSYMUTIL $lib || :'
10882 else
10883 _lt_dsymutil=
10884 fi
10885 ;;
10886 esac
10887
10888# func_munge_path_list VARIABLE PATH
10889# -----------------------------------
10890# VARIABLE is name of variable containing _space_ separated list of
10891# directories to be munged by the contents of PATH, which is string
10892# having a format:
10893# "DIR[:DIR]:"
10894# string "DIR[ DIR]" will be prepended to VARIABLE
10895# ":DIR[:DIR]"
10896# string "DIR[ DIR]" will be appended to VARIABLE
10897# "DIRP[:DIRP]::[DIRA:]DIRA"
10898# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10899# "DIRA[ DIRA]" will be appended to VARIABLE
10900# "DIR[:DIR]"
10901# VARIABLE will be replaced by "DIR[ DIR]"
10902func_munge_path_list ()
10903{
10904 case x$2 in
10905 x)
10906 ;;
10907 *:)
10908 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10909 ;;
10910 x:*)
10911 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10912 ;;
10913 *::*)
10914 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10915 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10916 ;;
10917 *)
10918 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10919 ;;
10920 esac
10921}
10922
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10924$as_echo_n "checking for ANSI C header files... " >&6; }
10925if ${ac_cv_header_stdc+:} false; then :
10926 $as_echo_n "(cached) " >&6
10927else
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929/* end confdefs.h. */
10930#include <stdlib.h>
10931#include <stdarg.h>
10932#include <string.h>
10933#include <float.h>
10934
10935int main (void)
10936{
10937
10938 ;
10939 return 0;
10940}
10941_ACEOF
10942if ac_fn_c_try_compile "$LINENO"; then :
10943 ac_cv_header_stdc=yes
10944else
10945 ac_cv_header_stdc=no
10946fi
10947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948
10949if test $ac_cv_header_stdc = yes; then
10950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952/* end confdefs.h. */
10953#include <string.h>
10954
10955_ACEOF
10956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10957 $EGREP "memchr" >/dev/null 2>&1; then :
10958
10959else
10960 ac_cv_header_stdc=no
10961fi
10962rm -f conftest*
10963
10964fi
10965
10966if test $ac_cv_header_stdc = yes; then
10967 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969/* end confdefs.h. */
10970#include <stdlib.h>
10971
10972_ACEOF
10973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10974 $EGREP "free" >/dev/null 2>&1; then :
10975
10976else
10977 ac_cv_header_stdc=no
10978fi
10979rm -f conftest*
10980
10981fi
10982
10983if test $ac_cv_header_stdc = yes; then
10984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10985 if test "$cross_compiling" = yes; then :
10986 :
10987else
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989/* end confdefs.h. */
10990#include <ctype.h>
10991#include <stdlib.h>
10992#if ((' ' & 0x0FF) == 0x020)
10993# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10994# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10995#else
10996# define ISLOWER(c) \
10997 (('a' <= (c) && (c) <= 'i') \
10998 || ('j' <= (c) && (c) <= 'r') \
10999 || ('s' <= (c) && (c) <= 'z'))
11000# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11001#endif
11002
11003#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11004int
11005main ()
11006{
11007 int i;
11008 for (i = 0; i < 256; i++)
11009 if (XOR (islower (i), ISLOWER (i))
11010 || toupper (i) != TOUPPER (i))
11011 return 2;
11012 return 0;
11013}
11014_ACEOF
11015if ac_fn_c_try_run "$LINENO"; then :
11016
11017else
11018 ac_cv_header_stdc=no
11019fi
11020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11021 conftest.$ac_objext conftest.beam conftest.$ac_ext
11022fi
11023
11024fi
11025fi
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11027$as_echo "$ac_cv_header_stdc" >&6; }
11028if test $ac_cv_header_stdc = yes; then
11029
11030$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11031
11032fi
11033
11034# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11035for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11036 inttypes.h stdint.h unistd.h
11037do :
11038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11039ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11040"
11041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11042 cat >>confdefs.h <<_ACEOF
11043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11044_ACEOF
11045
11046fi
11047
11048done
11049
11050
11051for ac_header in dlfcn.h
11052do :
11053 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11054"
11055if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11056 cat >>confdefs.h <<_ACEOF
11057#define HAVE_DLFCN_H 1
11058_ACEOF
11059
11060fi
11061
11062done
11063
11064
11065
11066func_stripname_cnf ()
11067{
11068 case $2 in
11069 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11070 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
11071 esac
11072} # func_stripname_cnf
11073
11074# ------------------------------------ #
11075# Determine libtool default behavior #
11076# ------------------------------------ #
11077
11078#
11079# Default behavior is to enable shared and static libraries on systems
11080# where libtool knows how to build both library versions, and does not
11081# require separate configuration and build runs for each flavor.
11082#
11083
11084xc_lt_want_enable_shared='yes'
11085xc_lt_want_enable_static='yes'
11086
11087#
11088# User may have disabled shared or static libraries.
11089#
11090case "x$enable_shared" in # (
11091 xno)
11092 xc_lt_want_enable_shared='no'
11093 ;;
11094esac
11095case "x$enable_static" in # (
11096 xno)
11097 xc_lt_want_enable_static='no'
11098 ;;
11099esac
11100if test "x$xc_lt_want_enable_shared" = 'xno' &&
11101 test "x$xc_lt_want_enable_static" = 'xno'; then
11102 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11103fi
11104
11105#
11106# Default behavior on systems that require independent configuration
11107# and build runs for shared and static is to enable shared libraries
11108# and disable static ones. On these systems option '--disable-shared'
11109# must be used in order to build a proper static library.
11110#
11111
11112if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11113 test "x$xc_lt_want_enable_static" = 'xyes'; then
11114 case $host_os in # (
11115 mingw* | pw32* | cegcc* | os2* | aix*)
11116 xc_lt_want_enable_static='no'
11117 ;;
11118 esac
11119fi
11120
11121#
11122# Make libtool aware of current shared and static library preferences
11123# taking in account that, depending on host characteristics, libtool
11124# may modify these option preferences later in this configure script.
11125#
11126
11127enable_shared=$xc_lt_want_enable_shared
11128enable_static=$xc_lt_want_enable_static
11129
11130#
11131# Default behavior is to build PIC objects for shared libraries and
11132# non-PIC objects for static libraries.
11133#
11134
11135xc_lt_want_with_pic='default'
11136
11137#
11138# User may have specified PIC preference.
11139#
11140
11141case "x$with_pic" in # ((
11142 xno)
11143 xc_lt_want_with_pic='no'
11144 ;;
11145 xyes)
11146 xc_lt_want_with_pic='yes'
11147 ;;
11148esac
11149
11150#
11151# Default behavior on some systems where building a shared library out
11152# of non-PIC compiled objects will fail with following linker error
11153# "relocation R_X86_64_32 can not be used when making a shared object"
11154# is to build PIC objects even for static libraries. This behavior may
11155# be overriden using 'configure --disable-shared --without-pic'.
11156#
11157
11158if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11159 case $host_cpu in # (
11160 x86_64 | amd64 | ia64)
11161 case $host_os in # (
11162 linux* | freebsd*)
11163 xc_lt_want_with_pic='yes'
11164 ;;
11165 esac
11166 ;;
11167 esac
11168fi
11169
11170#
11171# Make libtool aware of current PIC preference taking in account that,
11172# depending on host characteristics, libtool may modify PIC default
11173# behavior to fit host system idiosyncrasies later in this script.
11174#
11175
11176with_pic=$xc_lt_want_with_pic
11177
11178## ----------------------- ##
11179## Start of libtool code ##
11180## ----------------------- ##
11181
11182
11183
11184
11185# Set options
11186enable_win32_dll=yes
11187
11188case $host in
11189*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11190 if test -n "$ac_tool_prefix"; then
11191 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11192set dummy ${ac_tool_prefix}as; ac_word=$2
11193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194$as_echo_n "checking for $ac_word... " >&6; }
11195if ${ac_cv_prog_AS+:} false; then :
11196 $as_echo_n "(cached) " >&6
11197else
11198 if test -n "$AS"; then
11199 ac_cv_prog_AS="$AS" # Let the user override the test.
11200else
11201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202for as_dir in $PATH
11203do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11208 ac_cv_prog_AS="${ac_tool_prefix}as"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11211 fi
11212done
11213 done
11214IFS=$as_save_IFS
11215
11216fi
11217fi
11218AS=$ac_cv_prog_AS
11219if test -n "$AS"; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11221$as_echo "$AS" >&6; }
11222else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224$as_echo "no" >&6; }
11225fi
11226
11227
11228fi
11229if test -z "$ac_cv_prog_AS"; then
11230 ac_ct_AS=$AS
11231 # Extract the first word of "as", so it can be a program name with args.
11232set dummy as; ac_word=$2
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11234$as_echo_n "checking for $ac_word... " >&6; }
11235if ${ac_cv_prog_ac_ct_AS+:} false; then :
11236 $as_echo_n "(cached) " >&6
11237else
11238 if test -n "$ac_ct_AS"; then
11239 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11240else
11241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242for as_dir in $PATH
11243do
11244 IFS=$as_save_IFS
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11248 ac_cv_prog_ac_ct_AS="as"
11249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 break 2
11251 fi
11252done
11253 done
11254IFS=$as_save_IFS
11255
11256fi
11257fi
11258ac_ct_AS=$ac_cv_prog_ac_ct_AS
11259if test -n "$ac_ct_AS"; then
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11261$as_echo "$ac_ct_AS" >&6; }
11262else
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264$as_echo "no" >&6; }
11265fi
11266
11267 if test "x$ac_ct_AS" = x; then
11268 AS="false"
11269 else
11270 case $cross_compiling:$ac_tool_warned in
11271yes:)
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11274ac_tool_warned=yes ;;
11275esac
11276 AS=$ac_ct_AS
11277 fi
11278else
11279 AS="$ac_cv_prog_AS"
11280fi
11281
11282 if test -n "$ac_tool_prefix"; then
11283 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11284set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286$as_echo_n "checking for $ac_word... " >&6; }
11287if ${ac_cv_prog_DLLTOOL+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289else
11290 if test -n "$DLLTOOL"; then
11291 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11292else
11293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294for as_dir in $PATH
11295do
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 break 2
11303 fi
11304done
11305 done
11306IFS=$as_save_IFS
11307
11308fi
11309fi
11310DLLTOOL=$ac_cv_prog_DLLTOOL
11311if test -n "$DLLTOOL"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11313$as_echo "$DLLTOOL" >&6; }
11314else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316$as_echo "no" >&6; }
11317fi
11318
11319
11320fi
11321if test -z "$ac_cv_prog_DLLTOOL"; then
11322 ac_ct_DLLTOOL=$DLLTOOL
11323 # Extract the first word of "dlltool", so it can be a program name with args.
11324set dummy dlltool; ac_word=$2
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11326$as_echo_n "checking for $ac_word... " >&6; }
11327if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11328 $as_echo_n "(cached) " >&6
11329else
11330 if test -n "$ac_ct_DLLTOOL"; then
11331 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11332else
11333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334for as_dir in $PATH
11335do
11336 IFS=$as_save_IFS
11337 test -z "$as_dir" && as_dir=.
11338 for ac_exec_ext in '' $ac_executable_extensions; do
11339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11340 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11342 break 2
11343 fi
11344done
11345 done
11346IFS=$as_save_IFS
11347
11348fi
11349fi
11350ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11351if test -n "$ac_ct_DLLTOOL"; then
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11353$as_echo "$ac_ct_DLLTOOL" >&6; }
11354else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356$as_echo "no" >&6; }
11357fi
11358
11359 if test "x$ac_ct_DLLTOOL" = x; then
11360 DLLTOOL="false"
11361 else
11362 case $cross_compiling:$ac_tool_warned in
11363yes:)
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11366ac_tool_warned=yes ;;
11367esac
11368 DLLTOOL=$ac_ct_DLLTOOL
11369 fi
11370else
11371 DLLTOOL="$ac_cv_prog_DLLTOOL"
11372fi
11373
11374 if test -n "$ac_tool_prefix"; then
11375 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11376set dummy ${ac_tool_prefix}objdump; ac_word=$2
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378$as_echo_n "checking for $ac_word... " >&6; }
11379if ${ac_cv_prog_OBJDUMP+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381else
11382 if test -n "$OBJDUMP"; then
11383 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11384else
11385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386for as_dir in $PATH
11387do
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11392 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 break 2
11395 fi
11396done
11397 done
11398IFS=$as_save_IFS
11399
11400fi
11401fi
11402OBJDUMP=$ac_cv_prog_OBJDUMP
11403if test -n "$OBJDUMP"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11405$as_echo "$OBJDUMP" >&6; }
11406else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408$as_echo "no" >&6; }
11409fi
11410
11411
11412fi
11413if test -z "$ac_cv_prog_OBJDUMP"; then
11414 ac_ct_OBJDUMP=$OBJDUMP
11415 # Extract the first word of "objdump", so it can be a program name with args.
11416set dummy objdump; ac_word=$2
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418$as_echo_n "checking for $ac_word... " >&6; }
11419if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11420 $as_echo_n "(cached) " >&6
11421else
11422 if test -n "$ac_ct_OBJDUMP"; then
11423 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11424else
11425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426for as_dir in $PATH
11427do
11428 IFS=$as_save_IFS
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11432 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 break 2
11435 fi
11436done
11437 done
11438IFS=$as_save_IFS
11439
11440fi
11441fi
11442ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11443if test -n "$ac_ct_OBJDUMP"; then
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11445$as_echo "$ac_ct_OBJDUMP" >&6; }
11446else
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448$as_echo "no" >&6; }
11449fi
11450
11451 if test "x$ac_ct_OBJDUMP" = x; then
11452 OBJDUMP="false"
11453 else
11454 case $cross_compiling:$ac_tool_warned in
11455yes:)
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11458ac_tool_warned=yes ;;
11459esac
11460 OBJDUMP=$ac_ct_OBJDUMP
11461 fi
11462else
11463 OBJDUMP="$ac_cv_prog_OBJDUMP"
11464fi
11465
11466 ;;
11467esac
11468
11469test -z "$AS" && AS=as
11470
11471
11472
11473
11474
11475test -z "$DLLTOOL" && DLLTOOL=dlltool
11476
11477
11478
11479
11480
11481test -z "$OBJDUMP" && OBJDUMP=objdump
11482
11483
11484
11485
11486
11487
11488
11489 enable_dlopen=no
11490
11491
11492
11493 # Check whether --enable-shared was given.
11494if test "${enable_shared+set}" = set; then :
11495 enableval=$enable_shared; p=${PACKAGE-default}
11496 case $enableval in
11497 yes) enable_shared=yes ;;
11498 no) enable_shared=no ;;
11499 *)
11500 enable_shared=no
11501 # Look at the argument we got. We use all the common list separators.
11502 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11503 for pkg in $enableval; do
11504 IFS=$lt_save_ifs
11505 if test "X$pkg" = "X$p"; then
11506 enable_shared=yes
11507 fi
11508 done
11509 IFS=$lt_save_ifs
11510 ;;
11511 esac
11512else
11513 enable_shared=yes
11514fi
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524 # Check whether --enable-static was given.
11525if test "${enable_static+set}" = set; then :
11526 enableval=$enable_static; p=${PACKAGE-default}
11527 case $enableval in
11528 yes) enable_static=yes ;;
11529 no) enable_static=no ;;
11530 *)
11531 enable_static=no
11532 # Look at the argument we got. We use all the common list separators.
11533 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11534 for pkg in $enableval; do
11535 IFS=$lt_save_ifs
11536 if test "X$pkg" = "X$p"; then
11537 enable_static=yes
11538 fi
11539 done
11540 IFS=$lt_save_ifs
11541 ;;
11542 esac
11543else
11544 enable_static=yes
11545fi
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556# Check whether --with-pic was given.
11557if test "${with_pic+set}" = set; then :
11558 withval=$with_pic; lt_p=${PACKAGE-default}
11559 case $withval in
11560 yes|no) pic_mode=$withval ;;
11561 *)
11562 pic_mode=default
11563 # Look at the argument we got. We use all the common list separators.
11564 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11565 for lt_pkg in $withval; do
11566 IFS=$lt_save_ifs
11567 if test "X$lt_pkg" = "X$lt_p"; then
11568 pic_mode=yes
11569 fi
11570 done
11571 IFS=$lt_save_ifs
11572 ;;
11573 esac
11574else
11575 pic_mode=default
11576fi
11577
11578
11579
11580
11581
11582
11583
11584
11585 # Check whether --enable-fast-install was given.
11586if test "${enable_fast_install+set}" = set; then :
11587 enableval=$enable_fast_install; p=${PACKAGE-default}
11588 case $enableval in
11589 yes) enable_fast_install=yes ;;
11590 no) enable_fast_install=no ;;
11591 *)
11592 enable_fast_install=no
11593 # Look at the argument we got. We use all the common list separators.
11594 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11595 for pkg in $enableval; do
11596 IFS=$lt_save_ifs
11597 if test "X$pkg" = "X$p"; then
11598 enable_fast_install=yes
11599 fi
11600 done
11601 IFS=$lt_save_ifs
11602 ;;
11603 esac
11604else
11605 enable_fast_install=yes
11606fi
11607
11608
11609
11610
11611
11612
11613
11614
11615 shared_archive_member_spec=
11616case $host,$enable_shared in
11617power*-*-aix[5-9]*,yes)
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11619$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11620
11621# Check whether --with-aix-soname was given.
11622if test "${with_aix_soname+set}" = set; then :
11623 withval=$with_aix_soname; case $withval in
11624 aix|svr4|both)
11625 ;;
11626 *)
11627 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11628 ;;
11629 esac
11630 lt_cv_with_aix_soname=$with_aix_soname
11631else
11632 if ${lt_cv_with_aix_soname+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634else
11635 lt_cv_with_aix_soname=aix
11636fi
11637
11638 with_aix_soname=$lt_cv_with_aix_soname
11639fi
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11642$as_echo "$with_aix_soname" >&6; }
11643 if test aix != "$with_aix_soname"; then
11644 # For the AIX way of multilib, we name the shared archive member
11645 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11646 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11647 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11648 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11649 if test 64 = "${OBJECT_MODE-32}"; then
11650 shared_archive_member_spec=shr_64
11651 else
11652 shared_archive_member_spec=shr
11653 fi
11654 fi
11655 ;;
11656*)
11657 with_aix_soname=aix
11658 ;;
11659esac
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670# This can be used to rebuild libtool when needed
11671LIBTOOL_DEPS=$ltmain
11672
11673# Always use our own libtool.
11674LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705test -z "$LN_S" && LN_S="ln -s"
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720if test -n "${ZSH_VERSION+set}"; then
11721 setopt NO_GLOB_SUBST
11722fi
11723
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11725$as_echo_n "checking for objdir... " >&6; }
11726if ${lt_cv_objdir+:} false; then :
11727 $as_echo_n "(cached) " >&6
11728else
11729 rm -f .libs 2>/dev/null
11730mkdir .libs 2>/dev/null
11731if test -d .libs; then
11732 lt_cv_objdir=.libs
11733else
11734 # MS-DOS does not allow filenames that begin with a dot.
11735 lt_cv_objdir=_libs
11736fi
11737rmdir .libs 2>/dev/null
11738fi
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11740$as_echo "$lt_cv_objdir" >&6; }
11741objdir=$lt_cv_objdir
11742
11743
11744
11745
11746
11747cat >>confdefs.h <<_ACEOF
11748#define LT_OBJDIR "$lt_cv_objdir/"
11749_ACEOF
11750
11751
11752
11753
11754case $host_os in
11755aix3*)
11756 # AIX sometimes has problems with the GCC collect2 program. For some
11757 # reason, if we set the COLLECT_NAMES environment variable, the problems
11758 # vanish in a puff of smoke.
11759 if test set != "${COLLECT_NAMES+set}"; then
11760 COLLECT_NAMES=
11761 export COLLECT_NAMES
11762 fi
11763 ;;
11764esac
11765
11766# Global variables:
11767ofile=libtool
11768can_build_shared=yes
11769
11770# All known linkers require a '.a' archive for static linking (except MSVC,
11771# which needs '.lib').
11772libext=a
11773
11774with_gnu_ld=$lt_cv_prog_gnu_ld
11775
11776old_CC=$CC
11777old_CFLAGS=$CFLAGS
11778
11779# Set sane defaults for various variables
11780test -z "$CC" && CC=cc
11781test -z "$LTCC" && LTCC=$CC
11782test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11783test -z "$LD" && LD=ld
11784test -z "$ac_objext" && ac_objext=o
11785
11786func_cc_basename $compiler
11787cc_basename=$func_cc_basename_result
11788
11789
11790# Only perform the check for file, if the check method requires it
11791test -z "$MAGIC_CMD" && MAGIC_CMD=file
11792case $deplibs_check_method in
11793file_magic*)
11794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11796$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11797if ${lt_cv_path_MAGIC_CMD+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799else
11800 case $MAGIC_CMD in
11801[\\/*] | ?:[\\/]*)
11802 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11803 ;;
11804*)
11805 lt_save_MAGIC_CMD=$MAGIC_CMD
11806 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11808 for ac_dir in $ac_dummy; do
11809 IFS=$lt_save_ifs
11810 test -z "$ac_dir" && ac_dir=.
11811 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11812 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11813 if test -n "$file_magic_test_file"; then
11814 case $deplibs_check_method in
11815 "file_magic "*)
11816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11817 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11819 $EGREP "$file_magic_regex" > /dev/null; then
11820 :
11821 else
11822 cat <<_LT_EOF 1>&2
11823
11824*** Warning: the command libtool uses to detect shared libraries,
11825*** $file_magic_cmd, produces output that libtool cannot recognize.
11826*** The result is that libtool may fail to recognize shared libraries
11827*** as such. This will affect the creation of libtool libraries that
11828*** depend on shared libraries, but programs linked with such libtool
11829*** libraries will work regardless of this problem. Nevertheless, you
11830*** may want to report the problem to your system manager and/or to
11831*** bug-libtool@gnu.org
11832
11833_LT_EOF
11834 fi ;;
11835 esac
11836 fi
11837 break
11838 fi
11839 done
11840 IFS=$lt_save_ifs
11841 MAGIC_CMD=$lt_save_MAGIC_CMD
11842 ;;
11843esac
11844fi
11845
11846MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11847if test -n "$MAGIC_CMD"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11849$as_echo "$MAGIC_CMD" >&6; }
11850else
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852$as_echo "no" >&6; }
11853fi
11854
11855
11856
11857
11858
11859if test -z "$lt_cv_path_MAGIC_CMD"; then
11860 if test -n "$ac_tool_prefix"; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11862$as_echo_n "checking for file... " >&6; }
11863if ${lt_cv_path_MAGIC_CMD+:} false; then :
11864 $as_echo_n "(cached) " >&6
11865else
11866 case $MAGIC_CMD in
11867[\\/*] | ?:[\\/]*)
11868 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11869 ;;
11870*)
11871 lt_save_MAGIC_CMD=$MAGIC_CMD
11872 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11874 for ac_dir in $ac_dummy; do
11875 IFS=$lt_save_ifs
11876 test -z "$ac_dir" && ac_dir=.
11877 if test -f "$ac_dir/file"; then
11878 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11879 if test -n "$file_magic_test_file"; then
11880 case $deplibs_check_method in
11881 "file_magic "*)
11882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11883 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11885 $EGREP "$file_magic_regex" > /dev/null; then
11886 :
11887 else
11888 cat <<_LT_EOF 1>&2
11889
11890*** Warning: the command libtool uses to detect shared libraries,
11891*** $file_magic_cmd, produces output that libtool cannot recognize.
11892*** The result is that libtool may fail to recognize shared libraries
11893*** as such. This will affect the creation of libtool libraries that
11894*** depend on shared libraries, but programs linked with such libtool
11895*** libraries will work regardless of this problem. Nevertheless, you
11896*** may want to report the problem to your system manager and/or to
11897*** bug-libtool@gnu.org
11898
11899_LT_EOF
11900 fi ;;
11901 esac
11902 fi
11903 break
11904 fi
11905 done
11906 IFS=$lt_save_ifs
11907 MAGIC_CMD=$lt_save_MAGIC_CMD
11908 ;;
11909esac
11910fi
11911
11912MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11913if test -n "$MAGIC_CMD"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11915$as_echo "$MAGIC_CMD" >&6; }
11916else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918$as_echo "no" >&6; }
11919fi
11920
11921
11922 else
11923 MAGIC_CMD=:
11924 fi
11925fi
11926
11927 fi
11928 ;;
11929esac
11930
11931# Use C for the default configuration in the libtool script
11932
11933lt_save_CC=$CC
11934ac_ext=c
11935ac_cpp='$CPP $CPPFLAGS'
11936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11938ac_compiler_gnu=$ac_cv_c_compiler_gnu
11939
11940
11941# Source file extension for C test sources.
11942ac_ext=c
11943
11944# Object file extension for compiled C test sources.
11945objext=o
11946objext=$objext
11947
11948# Code to be used in simple compile tests
11949lt_simple_compile_test_code="int some_variable = 0;"
11950
11951# Code to be used in simple link tests
11952lt_simple_link_test_code='int main(){return(0);}'
11953
11954
11955
11956
11957
11958
11959
11960# If no C compiler was specified, use CC.
11961LTCC=${LTCC-"$CC"}
11962
11963# If no C compiler flags were specified, use CFLAGS.
11964LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11965
11966# Allow CC to be a program name with arguments.
11967compiler=$CC
11968
11969# Save the default compiler, since it gets overwritten when the other
11970# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11971compiler_DEFAULT=$CC
11972
11973# save warnings/boilerplate of simple test code
11974ac_outfile=conftest.$ac_objext
11975echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11977_lt_compiler_boilerplate=`cat conftest.err`
11978$RM conftest*
11979
11980ac_outfile=conftest.$ac_objext
11981echo "$lt_simple_link_test_code" >conftest.$ac_ext
11982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11983_lt_linker_boilerplate=`cat conftest.err`
11984$RM -r conftest*
11985
11986
11987## CAVEAT EMPTOR:
11988## There is no encapsulation within the following macros, do not change
11989## the running order or otherwise move them around unless you know exactly
11990## what you are doing...
11991if test -n "$compiler"; then
11992
11993lt_prog_compiler_no_builtin_flag=
11994
11995if test yes = "$GCC"; then
11996 case $cc_basename in
11997 nvcc*)
11998 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11999 *)
12000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12001 esac
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12004$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12005if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12006 $as_echo_n "(cached) " >&6
12007else
12008 lt_cv_prog_compiler_rtti_exceptions=no
12009 ac_outfile=conftest.$ac_objext
12010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12011 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12012 # Insert the option either (1) after the last *FLAGS variable, or
12013 # (2) before a word containing "conftest.", or (3) at the end.
12014 # Note that $ac_compile itself does not contain backslashes and begins
12015 # with a dollar sign (not a hyphen), so the echo should work correctly.
12016 # The option is referenced via a variable to avoid confusing sed.
12017 lt_compile=`echo "$ac_compile" | $SED \
12018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12020 -e 's:$: $lt_compiler_flag:'`
12021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12022 (eval "$lt_compile" 2>conftest.err)
12023 ac_status=$?
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 if (exit $ac_status) && test -s "$ac_outfile"; then
12027 # The compiler can only warn and ignore the option if not recognized
12028 # So say no if there are warnings other than the usual output.
12029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12032 lt_cv_prog_compiler_rtti_exceptions=yes
12033 fi
12034 fi
12035 $RM conftest*
12036
12037fi
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12039$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12040
12041if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12042 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12043else
12044 :
12045fi
12046
12047fi
12048
12049
12050
12051
12052
12053
12054 lt_prog_compiler_wl=
12055lt_prog_compiler_pic=
12056lt_prog_compiler_static=
12057
12058
12059 if test yes = "$GCC"; then
12060 lt_prog_compiler_wl='-Wl,'
12061 lt_prog_compiler_static='-static'
12062
12063 case $host_os in
12064 aix*)
12065 # All AIX code is PIC.
12066 if test ia64 = "$host_cpu"; then
12067 # AIX 5 now supports IA64 processor
12068 lt_prog_compiler_static='-Bstatic'
12069 fi
12070 lt_prog_compiler_pic='-fPIC'
12071 ;;
12072
12073 amigaos*)
12074 case $host_cpu in
12075 powerpc)
12076 # see comment about AmigaOS4 .so support
12077 lt_prog_compiler_pic='-fPIC'
12078 ;;
12079 m68k)
12080 # FIXME: we need at least 68020 code to build shared libraries, but
12081 # adding the '-m68020' flag to GCC prevents building anything better,
12082 # like '-m68040'.
12083 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12084 ;;
12085 esac
12086 ;;
12087
12088 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12089 # PIC is the default for these OSes.
12090 ;;
12091
12092 mingw* | cygwin* | pw32* | os2* | cegcc*)
12093 # This hack is so that the source file can tell whether it is being
12094 # built for inclusion in a dll (and should export symbols for example).
12095 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12096 # (--disable-auto-import) libraries
12097 lt_prog_compiler_pic='-DDLL_EXPORT'
12098 case $host_os in
12099 os2*)
12100 lt_prog_compiler_static='$wl-static'
12101 ;;
12102 esac
12103 ;;
12104
12105 darwin* | rhapsody*)
12106 # PIC is the default on this platform
12107 # Common symbols not allowed in MH_DYLIB files
12108 lt_prog_compiler_pic='-fno-common'
12109 ;;
12110
12111 haiku*)
12112 # PIC is the default for Haiku.
12113 # The "-static" flag exists, but is broken.
12114 lt_prog_compiler_static=
12115 ;;
12116
12117 hpux*)
12118 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12119 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12120 # sets the default TLS model and affects inlining.
12121 case $host_cpu in
12122 hppa*64*)
12123 # +Z the default
12124 ;;
12125 *)
12126 lt_prog_compiler_pic='-fPIC'
12127 ;;
12128 esac
12129 ;;
12130
12131 interix[3-9]*)
12132 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12133 # Instead, we relocate shared libraries at runtime.
12134 ;;
12135
12136 msdosdjgpp*)
12137 # Just because we use GCC doesn't mean we suddenly get shared libraries
12138 # on systems that don't support them.
12139 lt_prog_compiler_can_build_shared=no
12140 enable_shared=no
12141 ;;
12142
12143 *nto* | *qnx*)
12144 # QNX uses GNU C++, but need to define -shared option too, otherwise
12145 # it will coredump.
12146 lt_prog_compiler_pic='-fPIC -shared'
12147 ;;
12148
12149 sysv4*MP*)
12150 if test -d /usr/nec; then
12151 lt_prog_compiler_pic=-Kconform_pic
12152 fi
12153 ;;
12154
12155 *)
12156 lt_prog_compiler_pic='-fPIC'
12157 ;;
12158 esac
12159
12160 case $cc_basename in
12161 nvcc*) # Cuda Compiler Driver 2.2
12162 lt_prog_compiler_wl='-Xlinker '
12163 if test -n "$lt_prog_compiler_pic"; then
12164 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12165 fi
12166 ;;
12167 esac
12168 else
12169 # PORTME Check for flag to pass linker flags through the system compiler.
12170 case $host_os in
12171 aix*)
12172 lt_prog_compiler_wl='-Wl,'
12173 if test ia64 = "$host_cpu"; then
12174 # AIX 5 now supports IA64 processor
12175 lt_prog_compiler_static='-Bstatic'
12176 else
12177 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12178 fi
12179 ;;
12180
12181 darwin* | rhapsody*)
12182 # PIC is the default on this platform
12183 # Common symbols not allowed in MH_DYLIB files
12184 lt_prog_compiler_pic='-fno-common'
12185 case $cc_basename in
12186 nagfor*)
12187 # NAG Fortran compiler
12188 lt_prog_compiler_wl='-Wl,-Wl,,'
12189 lt_prog_compiler_pic='-PIC'
12190 lt_prog_compiler_static='-Bstatic'
12191 ;;
12192 esac
12193 ;;
12194
12195 mingw* | cygwin* | pw32* | os2* | cegcc*)
12196 # This hack is so that the source file can tell whether it is being
12197 # built for inclusion in a dll (and should export symbols for example).
12198 lt_prog_compiler_pic='-DDLL_EXPORT'
12199 case $host_os in
12200 os2*)
12201 lt_prog_compiler_static='$wl-static'
12202 ;;
12203 esac
12204 ;;
12205
12206 hpux9* | hpux10* | hpux11*)
12207 lt_prog_compiler_wl='-Wl,'
12208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12209 # not for PA HP-UX.
12210 case $host_cpu in
12211 hppa*64*|ia64*)
12212 # +Z the default
12213 ;;
12214 *)
12215 lt_prog_compiler_pic='+Z'
12216 ;;
12217 esac
12218 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12219 lt_prog_compiler_static='$wl-a ${wl}archive'
12220 ;;
12221
12222 irix5* | irix6* | nonstopux*)
12223 lt_prog_compiler_wl='-Wl,'
12224 # PIC (with -KPIC) is the default.
12225 lt_prog_compiler_static='-non_shared'
12226 ;;
12227
12228 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12229 case $cc_basename in
12230 # old Intel for x86_64, which still supported -KPIC.
12231 ecc*)
12232 lt_prog_compiler_wl='-Wl,'
12233 lt_prog_compiler_pic='-KPIC'
12234 lt_prog_compiler_static='-static'
12235 ;;
12236 # icc used to be incompatible with GCC.
12237 # ICC 10 doesn't accept -KPIC any more.
12238 icc* | ifort*)
12239 lt_prog_compiler_wl='-Wl,'
12240 lt_prog_compiler_pic='-fPIC'
12241 lt_prog_compiler_static='-static'
12242 ;;
12243 # Lahey Fortran 8.1.
12244 lf95*)
12245 lt_prog_compiler_wl='-Wl,'
12246 lt_prog_compiler_pic='--shared'
12247 lt_prog_compiler_static='--static'
12248 ;;
12249 nagfor*)
12250 # NAG Fortran compiler
12251 lt_prog_compiler_wl='-Wl,-Wl,,'
12252 lt_prog_compiler_pic='-PIC'
12253 lt_prog_compiler_static='-Bstatic'
12254 ;;
12255 tcc*)
12256 # Fabrice Bellard et al's Tiny C Compiler
12257 lt_prog_compiler_wl='-Wl,'
12258 lt_prog_compiler_pic='-fPIC'
12259 lt_prog_compiler_static='-static'
12260 ;;
12261 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12262 # Portland Group compilers (*not* the Pentium gcc compiler,
12263 # which looks to be a dead project)
12264 lt_prog_compiler_wl='-Wl,'
12265 lt_prog_compiler_pic='-fpic'
12266 lt_prog_compiler_static='-Bstatic'
12267 ;;
12268 ccc*)
12269 lt_prog_compiler_wl='-Wl,'
12270 # All Alpha code is PIC.
12271 lt_prog_compiler_static='-non_shared'
12272 ;;
12273 xl* | bgxl* | bgf* | mpixl*)
12274 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12275 lt_prog_compiler_wl='-Wl,'
12276 lt_prog_compiler_pic='-qpic'
12277 lt_prog_compiler_static='-qstaticlink'
12278 ;;
12279 *)
12280 case `$CC -V 2>&1 | sed 5q` in
12281 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12282 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12283 lt_prog_compiler_pic='-KPIC'
12284 lt_prog_compiler_static='-Bstatic'
12285 lt_prog_compiler_wl=''
12286 ;;
12287 *Sun\ F* | *Sun*Fortran*)
12288 lt_prog_compiler_pic='-KPIC'
12289 lt_prog_compiler_static='-Bstatic'
12290 lt_prog_compiler_wl='-Qoption ld '
12291 ;;
12292 *Sun\ C*)
12293 # Sun C 5.9
12294 lt_prog_compiler_pic='-KPIC'
12295 lt_prog_compiler_static='-Bstatic'
12296 lt_prog_compiler_wl='-Wl,'
12297 ;;
12298 *Intel*\ [CF]*Compiler*)
12299 lt_prog_compiler_wl='-Wl,'
12300 lt_prog_compiler_pic='-fPIC'
12301 lt_prog_compiler_static='-static'
12302 ;;
12303 *Portland\ Group*)
12304 lt_prog_compiler_wl='-Wl,'
12305 lt_prog_compiler_pic='-fpic'
12306 lt_prog_compiler_static='-Bstatic'
12307 ;;
12308 esac
12309 ;;
12310 esac
12311 ;;
12312
12313 newsos6)
12314 lt_prog_compiler_pic='-KPIC'
12315 lt_prog_compiler_static='-Bstatic'
12316 ;;
12317
12318 *nto* | *qnx*)
12319 # QNX uses GNU C++, but need to define -shared option too, otherwise
12320 # it will coredump.
12321 lt_prog_compiler_pic='-fPIC -shared'
12322 ;;
12323
12324 osf3* | osf4* | osf5*)
12325 lt_prog_compiler_wl='-Wl,'
12326 # All OSF/1 code is PIC.
12327 lt_prog_compiler_static='-non_shared'
12328 ;;
12329
12330 rdos*)
12331 lt_prog_compiler_static='-non_shared'
12332 ;;
12333
12334 solaris*)
12335 lt_prog_compiler_pic='-KPIC'
12336 lt_prog_compiler_static='-Bstatic'
12337 case $cc_basename in
12338 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12339 lt_prog_compiler_wl='-Qoption ld ';;
12340 *)
12341 lt_prog_compiler_wl='-Wl,';;
12342 esac
12343 ;;
12344
12345 sunos4*)
12346 lt_prog_compiler_wl='-Qoption ld '
12347 lt_prog_compiler_pic='-PIC'
12348 lt_prog_compiler_static='-Bstatic'
12349 ;;
12350
12351 sysv4 | sysv4.2uw2* | sysv4.3*)
12352 lt_prog_compiler_wl='-Wl,'
12353 lt_prog_compiler_pic='-KPIC'
12354 lt_prog_compiler_static='-Bstatic'
12355 ;;
12356
12357 sysv4*MP*)
12358 if test -d /usr/nec; then
12359 lt_prog_compiler_pic='-Kconform_pic'
12360 lt_prog_compiler_static='-Bstatic'
12361 fi
12362 ;;
12363
12364 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12365 lt_prog_compiler_wl='-Wl,'
12366 lt_prog_compiler_pic='-KPIC'
12367 lt_prog_compiler_static='-Bstatic'
12368 ;;
12369
12370 unicos*)
12371 lt_prog_compiler_wl='-Wl,'
12372 lt_prog_compiler_can_build_shared=no
12373 ;;
12374
12375 uts4*)
12376 lt_prog_compiler_pic='-pic'
12377 lt_prog_compiler_static='-Bstatic'
12378 ;;
12379
12380 *)
12381 lt_prog_compiler_can_build_shared=no
12382 ;;
12383 esac
12384 fi
12385
12386case $host_os in
12387 # For platforms that do not support PIC, -DPIC is meaningless:
12388 *djgpp*)
12389 lt_prog_compiler_pic=
12390 ;;
12391 *)
12392 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12393 ;;
12394esac
12395
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12397$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12398if ${lt_cv_prog_compiler_pic+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400else
12401 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12402fi
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12404$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12405lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12406
12407#
12408# Check to make sure the PIC flag actually works.
12409#
12410if test -n "$lt_prog_compiler_pic"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12412$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12413if ${lt_cv_prog_compiler_pic_works+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415else
12416 lt_cv_prog_compiler_pic_works=no
12417 ac_outfile=conftest.$ac_objext
12418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12420 # Insert the option either (1) after the last *FLAGS variable, or
12421 # (2) before a word containing "conftest.", or (3) at the end.
12422 # Note that $ac_compile itself does not contain backslashes and begins
12423 # with a dollar sign (not a hyphen), so the echo should work correctly.
12424 # The option is referenced via a variable to avoid confusing sed.
12425 lt_compile=`echo "$ac_compile" | $SED \
12426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12428 -e 's:$: $lt_compiler_flag:'`
12429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12430 (eval "$lt_compile" 2>conftest.err)
12431 ac_status=$?
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 if (exit $ac_status) && test -s "$ac_outfile"; then
12435 # The compiler can only warn and ignore the option if not recognized
12436 # So say no if there are warnings other than the usual output.
12437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12440 lt_cv_prog_compiler_pic_works=yes
12441 fi
12442 fi
12443 $RM conftest*
12444
12445fi
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12447$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12448
12449if test yes = "$lt_cv_prog_compiler_pic_works"; then
12450 case $lt_prog_compiler_pic in
12451 "" | " "*) ;;
12452 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12453 esac
12454else
12455 lt_prog_compiler_pic=
12456 lt_prog_compiler_can_build_shared=no
12457fi
12458
12459fi
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471#
12472# Check to make sure the static flag actually works.
12473#
12474wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12476$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12477if ${lt_cv_prog_compiler_static_works+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479else
12480 lt_cv_prog_compiler_static_works=no
12481 save_LDFLAGS=$LDFLAGS
12482 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12483 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12484 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12485 # The linker can only warn and ignore the option if not recognized
12486 # So say no if there are warnings
12487 if test -s conftest.err; then
12488 # Append any errors to the config.log.
12489 cat conftest.err 1>&5
12490 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12492 if diff conftest.exp conftest.er2 >/dev/null; then
12493 lt_cv_prog_compiler_static_works=yes
12494 fi
12495 else
12496 lt_cv_prog_compiler_static_works=yes
12497 fi
12498 fi
12499 $RM -r conftest*
12500 LDFLAGS=$save_LDFLAGS
12501
12502fi
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12504$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12505
12506if test yes = "$lt_cv_prog_compiler_static_works"; then
12507 :
12508else
12509 lt_prog_compiler_static=
12510fi
12511
12512
12513
12514
12515
12516
12517
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12519$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12520if ${lt_cv_prog_compiler_c_o+:} false; then :
12521 $as_echo_n "(cached) " >&6
12522else
12523 lt_cv_prog_compiler_c_o=no
12524 $RM -r conftest 2>/dev/null
12525 mkdir conftest
12526 cd conftest
12527 mkdir out
12528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12529
12530 lt_compiler_flag="-o out/conftest2.$ac_objext"
12531 # Insert the option either (1) after the last *FLAGS variable, or
12532 # (2) before a word containing "conftest.", or (3) at the end.
12533 # Note that $ac_compile itself does not contain backslashes and begins
12534 # with a dollar sign (not a hyphen), so the echo should work correctly.
12535 lt_compile=`echo "$ac_compile" | $SED \
12536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12538 -e 's:$: $lt_compiler_flag:'`
12539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12540 (eval "$lt_compile" 2>out/conftest.err)
12541 ac_status=$?
12542 cat out/conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12545 then
12546 # The compiler can only warn and ignore the option if not recognized
12547 # So say no if there are warnings
12548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12551 lt_cv_prog_compiler_c_o=yes
12552 fi
12553 fi
12554 chmod u+w . 2>&5
12555 $RM conftest*
12556 # SGI C++ compiler will create directory out/ii_files/ for
12557 # template instantiation
12558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12559 $RM out/* && rmdir out
12560 cd ..
12561 $RM -r conftest
12562 $RM conftest*
12563
12564fi
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12566$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12567
12568
12569
12570
12571
12572
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12574$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12575if ${lt_cv_prog_compiler_c_o+:} false; then :
12576 $as_echo_n "(cached) " >&6
12577else
12578 lt_cv_prog_compiler_c_o=no
12579 $RM -r conftest 2>/dev/null
12580 mkdir conftest
12581 cd conftest
12582 mkdir out
12583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12584
12585 lt_compiler_flag="-o out/conftest2.$ac_objext"
12586 # Insert the option either (1) after the last *FLAGS variable, or
12587 # (2) before a word containing "conftest.", or (3) at the end.
12588 # Note that $ac_compile itself does not contain backslashes and begins
12589 # with a dollar sign (not a hyphen), so the echo should work correctly.
12590 lt_compile=`echo "$ac_compile" | $SED \
12591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12593 -e 's:$: $lt_compiler_flag:'`
12594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12595 (eval "$lt_compile" 2>out/conftest.err)
12596 ac_status=$?
12597 cat out/conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12600 then
12601 # The compiler can only warn and ignore the option if not recognized
12602 # So say no if there are warnings
12603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12606 lt_cv_prog_compiler_c_o=yes
12607 fi
12608 fi
12609 chmod u+w . 2>&5
12610 $RM conftest*
12611 # SGI C++ compiler will create directory out/ii_files/ for
12612 # template instantiation
12613 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12614 $RM out/* && rmdir out
12615 cd ..
12616 $RM -r conftest
12617 $RM conftest*
12618
12619fi
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12621$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12622
12623
12624
12625
12626hard_links=nottested
12627if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12628 # do not overwrite the value of need_locks provided by the user
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12630$as_echo_n "checking if we can lock with hard links... " >&6; }
12631 hard_links=yes
12632 $RM conftest*
12633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12634 touch conftest.a
12635 ln conftest.a conftest.b 2>&5 || hard_links=no
12636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12638$as_echo "$hard_links" >&6; }
12639 if test no = "$hard_links"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12641$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12642 need_locks=warn
12643 fi
12644else
12645 need_locks=no
12646fi
12647
12648
12649
12650
12651
12652
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12654$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12655
12656 runpath_var=
12657 allow_undefined_flag=
12658 always_export_symbols=no
12659 archive_cmds=
12660 archive_expsym_cmds=
12661 compiler_needs_object=no
12662 enable_shared_with_static_runtimes=no
12663 export_dynamic_flag_spec=
12664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12665 hardcode_automatic=no
12666 hardcode_direct=no
12667 hardcode_direct_absolute=no
12668 hardcode_libdir_flag_spec=
12669 hardcode_libdir_separator=
12670 hardcode_minus_L=no
12671 hardcode_shlibpath_var=unsupported
12672 inherit_rpath=no
12673 link_all_deplibs=unknown
12674 module_cmds=
12675 module_expsym_cmds=
12676 old_archive_from_new_cmds=
12677 old_archive_from_expsyms_cmds=
12678 thread_safe_flag_spec=
12679 whole_archive_flag_spec=
12680 # include_expsyms should be a list of space-separated symbols to be *always*
12681 # included in the symbol list
12682 include_expsyms=
12683 # exclude_expsyms can be an extended regexp of symbols to exclude
12684 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12685 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12686 # as well as any symbol that contains 'd'.
12687 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12689 # platforms (ab)use it in PIC code, but their linkers get confused if
12690 # the symbol is explicitly referenced. Since portable code cannot
12691 # rely on this symbol name, it's probably fine to never include it in
12692 # preloaded symbol tables.
12693 # Exclude shared library initialization/finalization symbols.
12694 extract_expsyms_cmds=
12695
12696 case $host_os in
12697 cygwin* | mingw* | pw32* | cegcc*)
12698 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12699 # When not using gcc, we currently assume that we are using
12700 # Microsoft Visual C++.
12701 if test yes != "$GCC"; then
12702 with_gnu_ld=no
12703 fi
12704 ;;
12705 interix*)
12706 # we just hope/assume this is gcc and not c89 (= MSVC++)
12707 with_gnu_ld=yes
12708 ;;
12709 openbsd* | bitrig*)
12710 with_gnu_ld=no
12711 ;;
12712 linux* | k*bsd*-gnu | gnu*)
12713 link_all_deplibs=no
12714 ;;
12715 esac
12716
12717 ld_shlibs=yes
12718
12719 # On some targets, GNU ld is compatible enough with the native linker
12720 # that we're better off using the native interface for both.
12721 lt_use_gnu_ld_interface=no
12722 if test yes = "$with_gnu_ld"; then
12723 case $host_os in
12724 aix*)
12725 # The AIX port of GNU ld has always aspired to compatibility
12726 # with the native linker. However, as the warning in the GNU ld
12727 # block says, versions before 2.19.5* couldn't really create working
12728 # shared libraries, regardless of the interface used.
12729 case `$LD -v 2>&1` in
12730 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12731 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12732 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12733 *)
12734 lt_use_gnu_ld_interface=yes
12735 ;;
12736 esac
12737 ;;
12738 *)
12739 lt_use_gnu_ld_interface=yes
12740 ;;
12741 esac
12742 fi
12743
12744 if test yes = "$lt_use_gnu_ld_interface"; then
12745 # If archive_cmds runs LD, not CC, wlarc should be empty
12746 wlarc='$wl'
12747
12748 # Set some defaults for GNU ld with shared library support. These
12749 # are reset later if shared libraries are not supported. Putting them
12750 # here allows them to be overridden if necessary.
12751 runpath_var=LD_RUN_PATH
12752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12753 export_dynamic_flag_spec='$wl--export-dynamic'
12754 # ancient GNU ld didn't support --whole-archive et. al.
12755 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12756 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12757 else
12758 whole_archive_flag_spec=
12759 fi
12760 supports_anon_versioning=no
12761 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12762 *GNU\ gold*) supports_anon_versioning=yes ;;
12763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12766 *\ 2.11.*) ;; # other 2.11 versions
12767 *) supports_anon_versioning=yes ;;
12768 esac
12769
12770 # See if GNU ld supports shared libraries.
12771 case $host_os in
12772 aix[3-9]*)
12773 # On AIX/PPC, the GNU linker is very broken
12774 if test ia64 != "$host_cpu"; then
12775 ld_shlibs=no
12776 cat <<_LT_EOF 1>&2
12777
12778*** Warning: the GNU linker, at least up to release 2.19, is reported
12779*** to be unable to reliably create shared libraries on AIX.
12780*** Therefore, libtool is disabling shared libraries support. If you
12781*** really care for shared libraries, you may want to install binutils
12782*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12783*** You will then need to restart the configuration process.
12784
12785_LT_EOF
12786 fi
12787 ;;
12788
12789 amigaos*)
12790 case $host_cpu in
12791 powerpc)
12792 # see comment about AmigaOS4 .so support
12793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12794 archive_expsym_cmds=''
12795 ;;
12796 m68k)
12797 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)'
12798 hardcode_libdir_flag_spec='-L$libdir'
12799 hardcode_minus_L=yes
12800 ;;
12801 esac
12802 ;;
12803
12804 beos*)
12805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12806 allow_undefined_flag=unsupported
12807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12808 # support --undefined. This deserves some investigation. FIXME
12809 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12810 else
12811 ld_shlibs=no
12812 fi
12813 ;;
12814
12815 cygwin* | mingw* | pw32* | cegcc*)
12816 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12817 # as there is no search path for DLLs.
12818 hardcode_libdir_flag_spec='-L$libdir'
12819 export_dynamic_flag_spec='$wl--export-all-symbols'
12820 allow_undefined_flag=unsupported
12821 always_export_symbols=no
12822 enable_shared_with_static_runtimes=yes
12823 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'
12824 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12825
12826 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12828 # If the export-symbols file already is a .def file, use it as
12829 # is; otherwise, prepend EXPORTS...
12830 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12831 cp $export_symbols $output_objdir/$soname.def;
12832 else
12833 echo EXPORTS > $output_objdir/$soname.def;
12834 cat $export_symbols >> $output_objdir/$soname.def;
12835 fi~
12836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12837 else
12838 ld_shlibs=no
12839 fi
12840 ;;
12841
12842 haiku*)
12843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12844 link_all_deplibs=yes
12845 ;;
12846
12847 os2*)
12848 hardcode_libdir_flag_spec='-L$libdir'
12849 hardcode_minus_L=yes
12850 allow_undefined_flag=unsupported
12851 shrext_cmds=.dll
12852 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12853 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12854 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12855 $ECHO EXPORTS >> $output_objdir/$libname.def~
12856 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12857 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12858 emximp -o $lib $output_objdir/$libname.def'
12859 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12860 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12861 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12862 $ECHO EXPORTS >> $output_objdir/$libname.def~
12863 prefix_cmds="$SED"~
12864 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12865 prefix_cmds="$prefix_cmds -e 1d";
12866 fi~
12867 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12868 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12869 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12870 emximp -o $lib $output_objdir/$libname.def'
12871 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12872 enable_shared_with_static_runtimes=yes
12873 ;;
12874
12875 interix[3-9]*)
12876 hardcode_direct=no
12877 hardcode_shlibpath_var=no
12878 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12879 export_dynamic_flag_spec='$wl-E'
12880 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12881 # Instead, shared libraries are loaded at an image base (0x10000000 by
12882 # default) and relocated if they conflict, which is a slow very memory
12883 # consuming and fragmenting process. To avoid this, we pick a random,
12884 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12885 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12887 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'
12888 ;;
12889
12890 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12891 tmp_diet=no
12892 if test linux-dietlibc = "$host_os"; then
12893 case $cc_basename in
12894 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12895 esac
12896 fi
12897 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12898 && test no = "$tmp_diet"
12899 then
12900 tmp_addflag=' $pic_flag'
12901 tmp_sharedflag='-shared'
12902 case $cc_basename,$host_cpu in
12903 pgcc*) # Portland Group C compiler
12904 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'
12905 tmp_addflag=' $pic_flag'
12906 ;;
12907 pgf77* | pgf90* | pgf95* | pgfortran*)
12908 # Portland Group f77 and f90 compilers
12909 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'
12910 tmp_addflag=' $pic_flag -Mnomain' ;;
12911 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12912 tmp_addflag=' -i_dynamic' ;;
12913 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12914 tmp_addflag=' -i_dynamic -nofor_main' ;;
12915 ifc* | ifort*) # Intel Fortran compiler
12916 tmp_addflag=' -nofor_main' ;;
12917 lf95*) # Lahey Fortran 8.1
12918 whole_archive_flag_spec=
12919 tmp_sharedflag='--shared' ;;
12920 nagfor*) # NAGFOR 5.3
12921 tmp_sharedflag='-Wl,-shared' ;;
12922 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12923 tmp_sharedflag='-qmkshrobj'
12924 tmp_addflag= ;;
12925 nvcc*) # Cuda Compiler Driver 2.2
12926 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'
12927 compiler_needs_object=yes
12928 ;;
12929 esac
12930 case `$CC -V 2>&1 | sed 5q` in
12931 *Sun\ C*) # Sun C 5.9
12932 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'
12933 compiler_needs_object=yes
12934 tmp_sharedflag='-G' ;;
12935 *Sun\ F*) # Sun Fortran 8.3
12936 tmp_sharedflag='-G' ;;
12937 esac
12938 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12939
12940 if test yes = "$supports_anon_versioning"; then
12941 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12942 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12943 echo "local: *; };" >> $output_objdir/$libname.ver~
12944 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12945 fi
12946
12947 case $cc_basename in
12948 tcc*)
12949 export_dynamic_flag_spec='-rdynamic'
12950 ;;
12951 xlf* | bgf* | bgxlf* | mpixlf*)
12952 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12953 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12954 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12955 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12956 if test yes = "$supports_anon_versioning"; then
12957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12959 echo "local: *; };" >> $output_objdir/$libname.ver~
12960 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12961 fi
12962 ;;
12963 esac
12964 else
12965 ld_shlibs=no
12966 fi
12967 ;;
12968
12969 netbsd* | netbsdelf*-gnu)
12970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12971 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12972 wlarc=
12973 else
12974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12975 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12976 fi
12977 ;;
12978
12979 solaris*)
12980 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12981 ld_shlibs=no
12982 cat <<_LT_EOF 1>&2
12983
12984*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12985*** create shared libraries on Solaris systems. Therefore, libtool
12986*** is disabling shared libraries support. We urge you to upgrade GNU
12987*** binutils to release 2.9.1 or newer. Another option is to modify
12988*** your PATH or compiler configuration so that the native linker is
12989*** used, and then restart.
12990
12991_LT_EOF
12992 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12993 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12994 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12995 else
12996 ld_shlibs=no
12997 fi
12998 ;;
12999
13000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13001 case `$LD -v 2>&1` in
13002 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13003 ld_shlibs=no
13004 cat <<_LT_EOF 1>&2
13005
13006*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13007*** reliably create shared libraries on SCO systems. Therefore, libtool
13008*** is disabling shared libraries support. We urge you to upgrade GNU
13009*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13010*** your PATH or compiler configuration so that the native linker is
13011*** used, and then restart.
13012
13013_LT_EOF
13014 ;;
13015 *)
13016 # For security reasons, it is highly recommended that you always
13017 # use absolute paths for naming shared libraries, and exclude the
13018 # DT_RUNPATH tag from executables and libraries. But doing so
13019 # requires that you compile everything twice, which is a pain.
13020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13021 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13024 else
13025 ld_shlibs=no
13026 fi
13027 ;;
13028 esac
13029 ;;
13030
13031 sunos4*)
13032 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13033 wlarc=
13034 hardcode_direct=yes
13035 hardcode_shlibpath_var=no
13036 ;;
13037
13038 *)
13039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13042 else
13043 ld_shlibs=no
13044 fi
13045 ;;
13046 esac
13047
13048 if test no = "$ld_shlibs"; then
13049 runpath_var=
13050 hardcode_libdir_flag_spec=
13051 export_dynamic_flag_spec=
13052 whole_archive_flag_spec=
13053 fi
13054 else
13055 # PORTME fill in a description of your system's linker (not GNU ld)
13056 case $host_os in
13057 aix3*)
13058 allow_undefined_flag=unsupported
13059 always_export_symbols=yes
13060 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'
13061 # Note: this linker hardcodes the directories in LIBPATH if there
13062 # are no directories specified by -L.
13063 hardcode_minus_L=yes
13064 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13065 # Neither direct hardcoding nor static linking is supported with a
13066 # broken collect2.
13067 hardcode_direct=unsupported
13068 fi
13069 ;;
13070
13071 aix[4-9]*)
13072 if test ia64 = "$host_cpu"; then
13073 # On IA64, the linker does run time linking by default, so we don't
13074 # have to do anything special.
13075 aix_use_runtimelinking=no
13076 exp_sym_flag='-Bexport'
13077 no_entry_flag=
13078 else
13079 # If we're using GNU nm, then we don't want the "-C" option.
13080 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13081 # Without the "-l" option, or with the "-B" option, AIX nm treats
13082 # weak defined symbols like other global defined symbols, whereas
13083 # GNU nm marks them as "W".
13084 # While the 'weak' keyword is ignored in the Export File, we need
13085 # it in the Import File for the 'aix-soname' feature, so we have
13086 # to replace the "-B" option with "-P" for AIX nm.
13087 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13088 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
13089 else
13090 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13091 fi
13092 aix_use_runtimelinking=no
13093
13094 # Test if we are trying to use run time linking or normal
13095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13096 # have runtime linking enabled, and use it for executables.
13097 # For shared libraries, we enable/disable runtime linking
13098 # depending on the kind of the shared library created -
13099 # when "with_aix_soname,aix_use_runtimelinking" is:
13100 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13101 # "aix,yes" lib.so shared, rtl:yes, for executables
13102 # lib.a static archive
13103 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13104 # lib.a(lib.so.V) shared, rtl:no, for executables
13105 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13106 # lib.a(lib.so.V) shared, rtl:no
13107 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13108 # lib.a static archive
13109 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13110 for ld_flag in $LDFLAGS; do
13111 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13112 aix_use_runtimelinking=yes
13113 break
13114 fi
13115 done
13116 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13117 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13118 # so we don't have lib.a shared libs to link our executables.
13119 # We have to force runtime linking in this case.
13120 aix_use_runtimelinking=yes
13121 LDFLAGS="$LDFLAGS -Wl,-brtl"
13122 fi
13123 ;;
13124 esac
13125
13126 exp_sym_flag='-bexport'
13127 no_entry_flag='-bnoentry'
13128 fi
13129
13130 # When large executables or shared objects are built, AIX ld can
13131 # have problems creating the table of contents. If linking a library
13132 # or program results in "error TOC overflow" add -mminimal-toc to
13133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13135
13136 archive_cmds=''
13137 hardcode_direct=yes
13138 hardcode_direct_absolute=yes
13139 hardcode_libdir_separator=':'
13140 link_all_deplibs=yes
13141 file_list_spec='$wl-f,'
13142 case $with_aix_soname,$aix_use_runtimelinking in
13143 aix,*) ;; # traditional, no import file
13144 svr4,* | *,yes) # use import file
13145 # The Import File defines what to hardcode.
13146 hardcode_direct=no
13147 hardcode_direct_absolute=no
13148 ;;
13149 esac
13150
13151 if test yes = "$GCC"; then
13152 case $host_os in aix4.[012]|aix4.[012].*)
13153 # We only want to do this on AIX 4.2 and lower, the check
13154 # below for broken collect2 doesn't work under 4.3+
13155 collect2name=`$CC -print-prog-name=collect2`
13156 if test -f "$collect2name" &&
13157 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13158 then
13159 # We have reworked collect2
13160 :
13161 else
13162 # We have old collect2
13163 hardcode_direct=unsupported
13164 # It fails to find uninstalled libraries when the uninstalled
13165 # path is not listed in the libpath. Setting hardcode_minus_L
13166 # to unsupported forces relinking
13167 hardcode_minus_L=yes
13168 hardcode_libdir_flag_spec='-L$libdir'
13169 hardcode_libdir_separator=
13170 fi
13171 ;;
13172 esac
13173 shared_flag='-shared'
13174 if test yes = "$aix_use_runtimelinking"; then
13175 shared_flag="$shared_flag "'$wl-G'
13176 fi
13177 # Need to ensure runtime linking is disabled for the traditional
13178 # shared library, or the linker may eventually find shared libraries
13179 # /with/ Import File - we do not want to mix them.
13180 shared_flag_aix='-shared'
13181 shared_flag_svr4='-shared $wl-G'
13182 else
13183 # not using gcc
13184 if test ia64 = "$host_cpu"; then
13185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13186 # chokes on -Wl,-G. The following line is correct:
13187 shared_flag='-G'
13188 else
13189 if test yes = "$aix_use_runtimelinking"; then
13190 shared_flag='$wl-G'
13191 else
13192 shared_flag='$wl-bM:SRE'
13193 fi
13194 shared_flag_aix='$wl-bM:SRE'
13195 shared_flag_svr4='$wl-G'
13196 fi
13197 fi
13198
13199 export_dynamic_flag_spec='$wl-bexpall'
13200 # It seems that -bexpall does not export symbols beginning with
13201 # underscore (_), so it is better to generate a list of symbols to export.
13202 always_export_symbols=yes
13203 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13204 # Warning - without using the other runtime loading flags (-brtl),
13205 # -berok will link without error, but may produce a broken library.
13206 allow_undefined_flag='-berok'
13207 # Determine the default libpath from the value encoded in an
13208 # empty executable.
13209 if test set = "${lt_cv_aix_libpath+set}"; then
13210 aix_libpath=$lt_cv_aix_libpath
13211else
13212 if ${lt_cv_aix_libpath_+:} false; then :
13213 $as_echo_n "(cached) " >&6
13214else
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216/* end confdefs.h. */
13217
13218int main (void)
13219{
13220
13221 ;
13222 return 0;
13223}
13224_ACEOF
13225if ac_fn_c_try_link "$LINENO"; then :
13226
13227 lt_aix_libpath_sed='
13228 /Import File Strings/,/^$/ {
13229 /^0/ {
13230 s/^0 *\([^ ]*\) *$/\1/
13231 p
13232 }
13233 }'
13234 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13235 # Check for a 64-bit object if we didn't find anything.
13236 if test -z "$lt_cv_aix_libpath_"; then
13237 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13238 fi
13239fi
13240rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
13242 if test -z "$lt_cv_aix_libpath_"; then
13243 lt_cv_aix_libpath_=/usr/lib:/lib
13244 fi
13245
13246fi
13247
13248 aix_libpath=$lt_cv_aix_libpath_
13249fi
13250
13251 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13252 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13253 else
13254 if test ia64 = "$host_cpu"; then
13255 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13256 allow_undefined_flag="-z nodefs"
13257 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"
13258 else
13259 # Determine the default libpath from the value encoded in an
13260 # empty executable.
13261 if test set = "${lt_cv_aix_libpath+set}"; then
13262 aix_libpath=$lt_cv_aix_libpath
13263else
13264 if ${lt_cv_aix_libpath_+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266else
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268/* end confdefs.h. */
13269
13270int main (void)
13271{
13272
13273 ;
13274 return 0;
13275}
13276_ACEOF
13277if ac_fn_c_try_link "$LINENO"; then :
13278
13279 lt_aix_libpath_sed='
13280 /Import File Strings/,/^$/ {
13281 /^0/ {
13282 s/^0 *\([^ ]*\) *$/\1/
13283 p
13284 }
13285 }'
13286 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13287 # Check for a 64-bit object if we didn't find anything.
13288 if test -z "$lt_cv_aix_libpath_"; then
13289 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13290 fi
13291fi
13292rm -f core conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 if test -z "$lt_cv_aix_libpath_"; then
13295 lt_cv_aix_libpath_=/usr/lib:/lib
13296 fi
13297
13298fi
13299
13300 aix_libpath=$lt_cv_aix_libpath_
13301fi
13302
13303 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13304 # Warning - without using the other run time loading flags,
13305 # -berok will link without error, but may produce a broken library.
13306 no_undefined_flag=' $wl-bernotok'
13307 allow_undefined_flag=' $wl-berok'
13308 if test yes = "$with_gnu_ld"; then
13309 # We only use this code for GNU lds that support --whole-archive.
13310 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13311 else
13312 # Exported symbols can be pulled into shared objects from archives
13313 whole_archive_flag_spec='$convenience'
13314 fi
13315 archive_cmds_need_lc=yes
13316 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13317 # -brtl affects multiple linker settings, -berok does not and is overridden later
13318 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13319 if test svr4 != "$with_aix_soname"; then
13320 # This is similar to how AIX traditionally builds its shared libraries.
13321 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13322 fi
13323 if test aix != "$with_aix_soname"; then
13324 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13325 else
13326 # used by -dlpreopen to get the symbols
13327 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13328 fi
13329 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13330 fi
13331 fi
13332 ;;
13333
13334 amigaos*)
13335 case $host_cpu in
13336 powerpc)
13337 # see comment about AmigaOS4 .so support
13338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13339 archive_expsym_cmds=''
13340 ;;
13341 m68k)
13342 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)'
13343 hardcode_libdir_flag_spec='-L$libdir'
13344 hardcode_minus_L=yes
13345 ;;
13346 esac
13347 ;;
13348
13349 bsdi[45]*)
13350 export_dynamic_flag_spec=-rdynamic
13351 ;;
13352
13353 cygwin* | mingw* | pw32* | cegcc*)
13354 # When not using gcc, we currently assume that we are using
13355 # Microsoft Visual C++.
13356 # hardcode_libdir_flag_spec is actually meaningless, as there is
13357 # no search path for DLLs.
13358 case $cc_basename in
13359 cl*)
13360 # Native MSVC
13361 hardcode_libdir_flag_spec=' '
13362 allow_undefined_flag=unsupported
13363 always_export_symbols=yes
13364 file_list_spec='@'
13365 # Tell ltmain to make .lib files, not .a files.
13366 libext=lib
13367 # Tell ltmain to make .dll files, not .so files.
13368 shrext_cmds=.dll
13369 # FIXME: Setting linknames here is a bad hack.
13370 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13371 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13372 cp "$export_symbols" "$output_objdir/$soname.def";
13373 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13374 else
13375 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13376 fi~
13377 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13378 linknames='
13379 # The linker will not automatically build a static lib if we build a DLL.
13380 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13381 enable_shared_with_static_runtimes=yes
13382 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13383 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13384 # Don't use ranlib
13385 old_postinstall_cmds='chmod 644 $oldlib'
13386 postlink_cmds='lt_outputfile="@OUTPUT@"~
13387 lt_tool_outputfile="@TOOL_OUTPUT@"~
13388 case $lt_outputfile in
13389 *.exe|*.EXE) ;;
13390 *)
13391 lt_outputfile=$lt_outputfile.exe
13392 lt_tool_outputfile=$lt_tool_outputfile.exe
13393 ;;
13394 esac~
13395 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13396 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13397 $RM "$lt_outputfile.manifest";
13398 fi'
13399 ;;
13400 *)
13401 # Assume MSVC wrapper
13402 hardcode_libdir_flag_spec=' '
13403 allow_undefined_flag=unsupported
13404 # Tell ltmain to make .lib files, not .a files.
13405 libext=lib
13406 # Tell ltmain to make .dll files, not .so files.
13407 shrext_cmds=.dll
13408 # FIXME: Setting linknames here is a bad hack.
13409 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13410 # The linker will automatically build a .lib file if we build a DLL.
13411 old_archive_from_new_cmds='true'
13412 # FIXME: Should let the user specify the lib program.
13413 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13414 enable_shared_with_static_runtimes=yes
13415 ;;
13416 esac
13417 ;;
13418
13419 darwin* | rhapsody*)
13420
13421
13422 archive_cmds_need_lc=no
13423 hardcode_direct=no
13424 hardcode_automatic=yes
13425 hardcode_shlibpath_var=unsupported
13426 if test yes = "$lt_cv_ld_force_load"; then
13427 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\"`'
13428
13429 else
13430 whole_archive_flag_spec=''
13431 fi
13432 link_all_deplibs=yes
13433 allow_undefined_flag=$_lt_dar_allow_undefined
13434 case $cc_basename in
13435 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13436 *) _lt_dar_can_shared=$GCC ;;
13437 esac
13438 if test yes = "$_lt_dar_can_shared"; then
13439 output_verbose_link_cmd=func_echo_all
13440 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13441 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13442 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"
13443 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"
13444
13445 else
13446 ld_shlibs=no
13447 fi
13448
13449 ;;
13450
13451 dgux*)
13452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13453 hardcode_libdir_flag_spec='-L$libdir'
13454 hardcode_shlibpath_var=no
13455 ;;
13456
13457 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13458 # support. Future versions do this automatically, but an explicit c++rt0.o
13459 # does not break anything, and helps significantly (at the cost of a little
13460 # extra space).
13461 freebsd2.2*)
13462 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13463 hardcode_libdir_flag_spec='-R$libdir'
13464 hardcode_direct=yes
13465 hardcode_shlibpath_var=no
13466 ;;
13467
13468 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13469 freebsd2.*)
13470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13471 hardcode_direct=yes
13472 hardcode_minus_L=yes
13473 hardcode_shlibpath_var=no
13474 ;;
13475
13476 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13477 freebsd* | dragonfly*)
13478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13479 hardcode_libdir_flag_spec='-R$libdir'
13480 hardcode_direct=yes
13481 hardcode_shlibpath_var=no
13482 ;;
13483
13484 hpux9*)
13485 if test yes = "$GCC"; then
13486 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13487 else
13488 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13489 fi
13490 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13491 hardcode_libdir_separator=:
13492 hardcode_direct=yes
13493
13494 # hardcode_minus_L: Not really in the search PATH,
13495 # but as the default location of the library.
13496 hardcode_minus_L=yes
13497 export_dynamic_flag_spec='$wl-E'
13498 ;;
13499
13500 hpux10*)
13501 if test yes,no = "$GCC,$with_gnu_ld"; then
13502 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13503 else
13504 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13505 fi
13506 if test no = "$with_gnu_ld"; then
13507 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13508 hardcode_libdir_separator=:
13509 hardcode_direct=yes
13510 hardcode_direct_absolute=yes
13511 export_dynamic_flag_spec='$wl-E'
13512 # hardcode_minus_L: Not really in the search PATH,
13513 # but as the default location of the library.
13514 hardcode_minus_L=yes
13515 fi
13516 ;;
13517
13518 hpux11*)
13519 if test yes,no = "$GCC,$with_gnu_ld"; then
13520 case $host_cpu in
13521 hppa*64*)
13522 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13523 ;;
13524 ia64*)
13525 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13526 ;;
13527 *)
13528 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13529 ;;
13530 esac
13531 else
13532 case $host_cpu in
13533 hppa*64*)
13534 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13535 ;;
13536 ia64*)
13537 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13538 ;;
13539 *)
13540
13541 # Older versions of the 11.00 compiler do not understand -b yet
13542 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13544$as_echo_n "checking if $CC understands -b... " >&6; }
13545if ${lt_cv_prog_compiler__b+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547else
13548 lt_cv_prog_compiler__b=no
13549 save_LDFLAGS=$LDFLAGS
13550 LDFLAGS="$LDFLAGS -b"
13551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13553 # The linker can only warn and ignore the option if not recognized
13554 # So say no if there are warnings
13555 if test -s conftest.err; then
13556 # Append any errors to the config.log.
13557 cat conftest.err 1>&5
13558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13560 if diff conftest.exp conftest.er2 >/dev/null; then
13561 lt_cv_prog_compiler__b=yes
13562 fi
13563 else
13564 lt_cv_prog_compiler__b=yes
13565 fi
13566 fi
13567 $RM -r conftest*
13568 LDFLAGS=$save_LDFLAGS
13569
13570fi
13571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13572$as_echo "$lt_cv_prog_compiler__b" >&6; }
13573
13574if test yes = "$lt_cv_prog_compiler__b"; then
13575 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13576else
13577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13578fi
13579
13580 ;;
13581 esac
13582 fi
13583 if test no = "$with_gnu_ld"; then
13584 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13585 hardcode_libdir_separator=:
13586
13587 case $host_cpu in
13588 hppa*64*|ia64*)
13589 hardcode_direct=no
13590 hardcode_shlibpath_var=no
13591 ;;
13592 *)
13593 hardcode_direct=yes
13594 hardcode_direct_absolute=yes
13595 export_dynamic_flag_spec='$wl-E'
13596
13597 # hardcode_minus_L: Not really in the search PATH,
13598 # but as the default location of the library.
13599 hardcode_minus_L=yes
13600 ;;
13601 esac
13602 fi
13603 ;;
13604
13605 irix5* | irix6* | nonstopux*)
13606 if test yes = "$GCC"; then
13607 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'
13608 # Try to use the -exported_symbol ld option, if it does not
13609 # work, assume that -exports_file does not work either and
13610 # implicitly export all symbols.
13611 # This should be the same for all languages, so no per-tag cache variable.
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13613$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13614if ${lt_cv_irix_exported_symbol+:} false; then :
13615 $as_echo_n "(cached) " >&6
13616else
13617 save_LDFLAGS=$LDFLAGS
13618 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620/* end confdefs.h. */
13621int foo (void) { return 0; }
13622_ACEOF
13623if ac_fn_c_try_link "$LINENO"; then :
13624 lt_cv_irix_exported_symbol=yes
13625else
13626 lt_cv_irix_exported_symbol=no
13627fi
13628rm -f core conftest.err conftest.$ac_objext \
13629 conftest$ac_exeext conftest.$ac_ext
13630 LDFLAGS=$save_LDFLAGS
13631fi
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13633$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13634 if test yes = "$lt_cv_irix_exported_symbol"; then
13635 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'
13636 fi
13637 link_all_deplibs=no
13638 else
13639 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'
13640 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'
13641 fi
13642 archive_cmds_need_lc='no'
13643 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13644 hardcode_libdir_separator=:
13645 inherit_rpath=yes
13646 link_all_deplibs=yes
13647 ;;
13648
13649 linux*)
13650 case $cc_basename in
13651 tcc*)
13652 # Fabrice Bellard et al's Tiny C Compiler
13653 ld_shlibs=yes
13654 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13655 ;;
13656 esac
13657 ;;
13658
13659 netbsd* | netbsdelf*-gnu)
13660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13662 else
13663 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13664 fi
13665 hardcode_libdir_flag_spec='-R$libdir'
13666 hardcode_direct=yes
13667 hardcode_shlibpath_var=no
13668 ;;
13669
13670 newsos6)
13671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13672 hardcode_direct=yes
13673 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13674 hardcode_libdir_separator=:
13675 hardcode_shlibpath_var=no
13676 ;;
13677
13678 *nto* | *qnx*)
13679 ;;
13680
13681 openbsd* | bitrig*)
13682 if test -f /usr/libexec/ld.so; then
13683 hardcode_direct=yes
13684 hardcode_shlibpath_var=no
13685 hardcode_direct_absolute=yes
13686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13688 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13689 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13690 export_dynamic_flag_spec='$wl-E'
13691 else
13692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13693 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13694 fi
13695 else
13696 ld_shlibs=no
13697 fi
13698 ;;
13699
13700 os2*)
13701 hardcode_libdir_flag_spec='-L$libdir'
13702 hardcode_minus_L=yes
13703 allow_undefined_flag=unsupported
13704 shrext_cmds=.dll
13705 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13706 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13707 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13708 $ECHO EXPORTS >> $output_objdir/$libname.def~
13709 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13710 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13711 emximp -o $lib $output_objdir/$libname.def'
13712 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13713 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13714 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13715 $ECHO EXPORTS >> $output_objdir/$libname.def~
13716 prefix_cmds="$SED"~
13717 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13718 prefix_cmds="$prefix_cmds -e 1d";
13719 fi~
13720 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13721 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13722 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13723 emximp -o $lib $output_objdir/$libname.def'
13724 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13725 enable_shared_with_static_runtimes=yes
13726 ;;
13727
13728 osf3*)
13729 if test yes = "$GCC"; then
13730 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13731 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'
13732 else
13733 allow_undefined_flag=' -expect_unresolved \*'
13734 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'
13735 fi
13736 archive_cmds_need_lc='no'
13737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13738 hardcode_libdir_separator=:
13739 ;;
13740
13741 osf4* | osf5*) # as osf3* with the addition of -msym flag
13742 if test yes = "$GCC"; then
13743 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13744 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'
13745 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13746 else
13747 allow_undefined_flag=' -expect_unresolved \*'
13748 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'
13749 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~
13750 $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'
13751
13752 # Both c and cxx compiler support -rpath directly
13753 hardcode_libdir_flag_spec='-rpath $libdir'
13754 fi
13755 archive_cmds_need_lc='no'
13756 hardcode_libdir_separator=:
13757 ;;
13758
13759 solaris*)
13760 no_undefined_flag=' -z defs'
13761 if test yes = "$GCC"; then
13762 wlarc='$wl'
13763 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13765 $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'
13766 else
13767 case `$CC -V 2>&1` in
13768 *"Compilers 5.0"*)
13769 wlarc=''
13770 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13772 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13773 ;;
13774 *)
13775 wlarc='$wl'
13776 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13777 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13778 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13779 ;;
13780 esac
13781 fi
13782 hardcode_libdir_flag_spec='-R$libdir'
13783 hardcode_shlibpath_var=no
13784 case $host_os in
13785 solaris2.[0-5] | solaris2.[0-5].*) ;;
13786 *)
13787 # The compiler driver will combine and reorder linker options,
13788 # but understands '-z linker_flag'. GCC discards it without '$wl',
13789 # but is careful enough not to reorder.
13790 # Supported since Solaris 2.6 (maybe 2.5.1?)
13791 if test yes = "$GCC"; then
13792 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13793 else
13794 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13795 fi
13796 ;;
13797 esac
13798 link_all_deplibs=yes
13799 ;;
13800
13801 sunos4*)
13802 if test sequent = "$host_vendor"; then
13803 # Use $CC to link under sequent, because it throws in some extra .o
13804 # files that make .init and .fini sections work.
13805 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13806 else
13807 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13808 fi
13809 hardcode_libdir_flag_spec='-L$libdir'
13810 hardcode_direct=yes
13811 hardcode_minus_L=yes
13812 hardcode_shlibpath_var=no
13813 ;;
13814
13815 sysv4)
13816 case $host_vendor in
13817 sni)
13818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819 hardcode_direct=yes # is this really true???
13820 ;;
13821 siemens)
13822 ## LD is ld it makes a PLAMLIB
13823 ## CC just makes a GrossModule.
13824 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13825 reload_cmds='$CC -r -o $output$reload_objs'
13826 hardcode_direct=no
13827 ;;
13828 motorola)
13829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13830 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13831 ;;
13832 esac
13833 runpath_var='LD_RUN_PATH'
13834 hardcode_shlibpath_var=no
13835 ;;
13836
13837 sysv4.3*)
13838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13839 hardcode_shlibpath_var=no
13840 export_dynamic_flag_spec='-Bexport'
13841 ;;
13842
13843 sysv4*MP*)
13844 if test -d /usr/nec; then
13845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_shlibpath_var=no
13847 runpath_var=LD_RUN_PATH
13848 hardcode_runpath_var=yes
13849 ld_shlibs=yes
13850 fi
13851 ;;
13852
13853 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13854 no_undefined_flag='$wl-z,text'
13855 archive_cmds_need_lc=no
13856 hardcode_shlibpath_var=no
13857 runpath_var='LD_RUN_PATH'
13858
13859 if test yes = "$GCC"; then
13860 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13862 else
13863 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13864 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13865 fi
13866 ;;
13867
13868 sysv5* | sco3.2v5* | sco5v6*)
13869 # Note: We CANNOT use -z defs as we might desire, because we do not
13870 # link with -lc, and that would cause any symbols used from libc to
13871 # always be unresolved, which means just about no library would
13872 # ever link correctly. If we're not using GNU ld we use -z text
13873 # though, which does catch some bad symbols but isn't as heavy-handed
13874 # as -z defs.
13875 no_undefined_flag='$wl-z,text'
13876 allow_undefined_flag='$wl-z,nodefs'
13877 archive_cmds_need_lc=no
13878 hardcode_shlibpath_var=no
13879 hardcode_libdir_flag_spec='$wl-R,$libdir'
13880 hardcode_libdir_separator=':'
13881 link_all_deplibs=yes
13882 export_dynamic_flag_spec='$wl-Bexport'
13883 runpath_var='LD_RUN_PATH'
13884
13885 if test yes = "$GCC"; then
13886 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13887 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13888 else
13889 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13890 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13891 fi
13892 ;;
13893
13894 uts4*)
13895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13896 hardcode_libdir_flag_spec='-L$libdir'
13897 hardcode_shlibpath_var=no
13898 ;;
13899
13900 *)
13901 ld_shlibs=no
13902 ;;
13903 esac
13904
13905 if test sni = "$host_vendor"; then
13906 case $host in
13907 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13908 export_dynamic_flag_spec='$wl-Blargedynsym'
13909 ;;
13910 esac
13911 fi
13912 fi
13913
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13915$as_echo "$ld_shlibs" >&6; }
13916test no = "$ld_shlibs" && can_build_shared=no
13917
13918with_gnu_ld=$with_gnu_ld
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934#
13935# Do we need to explicitly link libc?
13936#
13937case "x$archive_cmds_need_lc" in
13938x|xyes)
13939 # Assume -lc should be added
13940 archive_cmds_need_lc=yes
13941
13942 if test yes,yes = "$GCC,$enable_shared"; then
13943 case $archive_cmds in
13944 *'~'*)
13945 # FIXME: we may have to deal with multi-command sequences.
13946 ;;
13947 '$CC '*)
13948 # Test whether the compiler implicitly links with -lc since on some
13949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13950 # to ld, don't add -lc before -lgcc.
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13952$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13953if ${lt_cv_archive_cmds_need_lc+:} false; then :
13954 $as_echo_n "(cached) " >&6
13955else
13956 $RM conftest*
13957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13958
13959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13960 (eval $ac_compile) 2>&5
13961 ac_status=$?
13962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13963 test $ac_status = 0; } 2>conftest.err; then
13964 soname=conftest
13965 lib=conftest
13966 libobjs=conftest.$ac_objext
13967 deplibs=
13968 wl=$lt_prog_compiler_wl
13969 pic_flag=$lt_prog_compiler_pic
13970 compiler_flags=-v
13971 linker_flags=-v
13972 verstring=
13973 output_objdir=.
13974 libname=conftest
13975 lt_save_allow_undefined_flag=$allow_undefined_flag
13976 allow_undefined_flag=
13977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13978 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13979 ac_status=$?
13980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13981 test $ac_status = 0; }
13982 then
13983 lt_cv_archive_cmds_need_lc=no
13984 else
13985 lt_cv_archive_cmds_need_lc=yes
13986 fi
13987 allow_undefined_flag=$lt_save_allow_undefined_flag
13988 else
13989 cat conftest.err 1>&5
13990 fi
13991 $RM conftest*
13992
13993fi
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13995$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13996 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13997 ;;
13998 esac
13999 fi
14000 ;;
14001esac
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14155$as_echo_n "checking dynamic linker characteristics... " >&6; }
14156
14157if test yes = "$GCC"; then
14158 case $host_os in
14159 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14160 *) lt_awk_arg='/^libraries:/' ;;
14161 esac
14162 case $host_os in
14163 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14164 *) lt_sed_strip_eq='s|=/|/|g' ;;
14165 esac
14166 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14167 case $lt_search_path_spec in
14168 *\;*)
14169 # if the path contains ";" then we assume it to be the separator
14170 # otherwise default to the standard path separator (i.e. ":") - it is
14171 # assumed that no part of a normal pathname contains ";" but that should
14172 # okay in the real world where ";" in dirpaths is itself problematic.
14173 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14174 ;;
14175 *)
14176 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14177 ;;
14178 esac
14179 # Ok, now we have the path, separated by spaces, we can step through it
14180 # and add multilib dir if necessary...
14181 lt_tmp_lt_search_path_spec=
14182 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14183 # ...but if some path component already ends with the multilib dir we assume
14184 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14185 case "$lt_multi_os_dir; $lt_search_path_spec " in
14186 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14187 lt_multi_os_dir=
14188 ;;
14189 esac
14190 for lt_sys_path in $lt_search_path_spec; do
14191 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14192 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14193 elif test -n "$lt_multi_os_dir"; then
14194 test -d "$lt_sys_path" && \
14195 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14196 fi
14197 done
14198 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14199BEGIN {RS = " "; FS = "/|\n";} {
14200 lt_foo = "";
14201 lt_count = 0;
14202 for (lt_i = NF; lt_i > 0; lt_i--) {
14203 if ($lt_i != "" && $lt_i != ".") {
14204 if ($lt_i == "..") {
14205 lt_count++;
14206 } else {
14207 if (lt_count == 0) {
14208 lt_foo = "/" $lt_i lt_foo;
14209 } else {
14210 lt_count--;
14211 }
14212 }
14213 }
14214 }
14215 if (lt_foo != "") { lt_freq[lt_foo]++; }
14216 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14217}'`
14218 # AWK program above erroneously prepends '/' to C:/dos/paths
14219 # for these hosts.
14220 case $host_os in
14221 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14222 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14223 esac
14224 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14225else
14226 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14227fi
14228library_names_spec=
14229libname_spec='lib$name'
14230soname_spec=
14231shrext_cmds=.so
14232postinstall_cmds=
14233postuninstall_cmds=
14234finish_cmds=
14235finish_eval=
14236shlibpath_var=
14237shlibpath_overrides_runpath=unknown
14238version_type=none
14239dynamic_linker="$host_os ld.so"
14240sys_lib_dlsearch_path_spec="/lib /usr/lib"
14241need_lib_prefix=unknown
14242hardcode_into_libs=no
14243
14244# when you set need_version to no, make sure it does not cause -set_version
14245# flags to be left without arguments
14246need_version=unknown
14247
14248
14249
14250case $host_os in
14251aix3*)
14252 version_type=linux # correct to gnu/linux during the next big refactor
14253 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14254 shlibpath_var=LIBPATH
14255
14256 # AIX 3 has no versioning support, so we append a major version to the name.
14257 soname_spec='$libname$release$shared_ext$major'
14258 ;;
14259
14260aix[4-9]*)
14261 version_type=linux # correct to gnu/linux during the next big refactor
14262 need_lib_prefix=no
14263 need_version=no
14264 hardcode_into_libs=yes
14265 if test ia64 = "$host_cpu"; then
14266 # AIX 5 supports IA64
14267 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14268 shlibpath_var=LD_LIBRARY_PATH
14269 else
14270 # With GCC up to 2.95.x, collect2 would create an import file
14271 # for dependence libraries. The import file would start with
14272 # the line '#! .'. This would cause the generated library to
14273 # depend on '.', always an invalid library. This was fixed in
14274 # development snapshots of GCC prior to 3.0.
14275 case $host_os in
14276 aix4 | aix4.[01] | aix4.[01].*)
14277 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14278 echo ' yes '
14279 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14280 :
14281 else
14282 can_build_shared=no
14283 fi
14284 ;;
14285 esac
14286 # Using Import Files as archive members, it is possible to support
14287 # filename-based versioning of shared library archives on AIX. While
14288 # this would work for both with and without runtime linking, it will
14289 # prevent static linking of such archives. So we do filename-based
14290 # shared library versioning with .so extension only, which is used
14291 # when both runtime linking and shared linking is enabled.
14292 # Unfortunately, runtime linking may impact performance, so we do
14293 # not want this to be the default eventually. Also, we use the
14294 # versioned .so libs for executables only if there is the -brtl
14295 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14296 # To allow for filename-based versioning support, we need to create
14297 # libNAME.so.V as an archive file, containing:
14298 # *) an Import File, referring to the versioned filename of the
14299 # archive as well as the shared archive member, telling the
14300 # bitwidth (32 or 64) of that shared object, and providing the
14301 # list of exported symbols of that shared object, eventually
14302 # decorated with the 'weak' keyword
14303 # *) the shared object with the F_LOADONLY flag set, to really avoid
14304 # it being seen by the linker.
14305 # At run time we better use the real file rather than another symlink,
14306 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14307
14308 case $with_aix_soname,$aix_use_runtimelinking in
14309 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14310 # soname into executable. Probably we can add versioning support to
14311 # collect2, so additional links can be useful in future.
14312 aix,yes) # traditional libtool
14313 dynamic_linker='AIX unversionable lib.so'
14314 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14315 # instead of lib<name>.a to let people know that these are not
14316 # typical AIX shared libraries.
14317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14318 ;;
14319 aix,no) # traditional AIX only
14320 dynamic_linker='AIX lib.a(lib.so.V)'
14321 # We preserve .a as extension for shared libraries through AIX4.2
14322 # and later when we are not doing run time linking.
14323 library_names_spec='$libname$release.a $libname.a'
14324 soname_spec='$libname$release$shared_ext$major'
14325 ;;
14326 svr4,*) # full svr4 only
14327 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14328 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14329 # We do not specify a path in Import Files, so LIBPATH fires.
14330 shlibpath_overrides_runpath=yes
14331 ;;
14332 *,yes) # both, prefer svr4
14333 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14334 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14335 # unpreferred sharedlib libNAME.a needs extra handling
14336 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14337 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14338 # We do not specify a path in Import Files, so LIBPATH fires.
14339 shlibpath_overrides_runpath=yes
14340 ;;
14341 *,no) # both, prefer aix
14342 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14343 library_names_spec='$libname$release.a $libname.a'
14344 soname_spec='$libname$release$shared_ext$major'
14345 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14346 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14347 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14348 ;;
14349 esac
14350 shlibpath_var=LIBPATH
14351 fi
14352 ;;
14353
14354amigaos*)
14355 case $host_cpu in
14356 powerpc)
14357 # Since July 2007 AmigaOS4 officially supports .so libraries.
14358 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14360 ;;
14361 m68k)
14362 library_names_spec='$libname.ixlibrary $libname.a'
14363 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14364 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14365 ;;
14366 esac
14367 ;;
14368
14369beos*)
14370 library_names_spec='$libname$shared_ext'
14371 dynamic_linker="$host_os ld.so"
14372 shlibpath_var=LIBRARY_PATH
14373 ;;
14374
14375bsdi[45]*)
14376 version_type=linux # correct to gnu/linux during the next big refactor
14377 need_version=no
14378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14379 soname_spec='$libname$release$shared_ext$major'
14380 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14381 shlibpath_var=LD_LIBRARY_PATH
14382 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14383 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14384 # the default ld.so.conf also contains /usr/contrib/lib and
14385 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14386 # libtool to hard-code these into programs
14387 ;;
14388
14389cygwin* | mingw* | pw32* | cegcc*)
14390 version_type=windows
14391 shrext_cmds=.dll
14392 need_version=no
14393 need_lib_prefix=no
14394
14395 case $GCC,$cc_basename in
14396 yes,*)
14397 # gcc
14398 library_names_spec='$libname.dll.a'
14399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14400 postinstall_cmds='base_file=`basename \$file`~
14401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14402 dldir=$destdir/`dirname \$dlpath`~
14403 test -d \$dldir || mkdir -p \$dldir~
14404 $install_prog $dir/$dlname \$dldir/$dlname~
14405 chmod a+x \$dldir/$dlname~
14406 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14407 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14408 fi'
14409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14410 dlpath=$dir/\$dldll~
14411 $RM \$dlpath'
14412 shlibpath_overrides_runpath=yes
14413
14414 case $host_os in
14415 cygwin*)
14416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14417 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14418
14419 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14420 ;;
14421 mingw* | cegcc*)
14422 # MinGW DLLs use traditional 'lib' prefix
14423 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14424 ;;
14425 pw32*)
14426 # pw32 DLLs use 'pw' prefix rather than 'lib'
14427 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14428 ;;
14429 esac
14430 dynamic_linker='Win32 ld.exe'
14431 ;;
14432
14433 *,cl*)
14434 # Native MSVC
14435 libname_spec='$name'
14436 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14437 library_names_spec='$libname.dll.lib'
14438
14439 case $build_os in
14440 mingw*)
14441 sys_lib_search_path_spec=
14442 lt_save_ifs=$IFS
14443 IFS=';'
14444 for lt_path in $LIB
14445 do
14446 IFS=$lt_save_ifs
14447 # Let DOS variable expansion print the short 8.3 style file name.
14448 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14449 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14450 done
14451 IFS=$lt_save_ifs
14452 # Convert to MSYS style.
14453 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14454 ;;
14455 cygwin*)
14456 # Convert to unix form, then to dos form, then back to unix form
14457 # but this time dos style (no spaces!) so that the unix form looks
14458 # like /cygdrive/c/PROGRA~1:/cygdr...
14459 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14460 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14461 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14462 ;;
14463 *)
14464 sys_lib_search_path_spec=$LIB
14465 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14466 # It is most probably a Windows format PATH.
14467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14468 else
14469 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14470 fi
14471 # FIXME: find the short name or the path components, as spaces are
14472 # common. (e.g. "Program Files" -> "PROGRA~1")
14473 ;;
14474 esac
14475
14476 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14477 postinstall_cmds='base_file=`basename \$file`~
14478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14479 dldir=$destdir/`dirname \$dlpath`~
14480 test -d \$dldir || mkdir -p \$dldir~
14481 $install_prog $dir/$dlname \$dldir/$dlname'
14482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14483 dlpath=$dir/\$dldll~
14484 $RM \$dlpath'
14485 shlibpath_overrides_runpath=yes
14486 dynamic_linker='Win32 link.exe'
14487 ;;
14488
14489 *)
14490 # Assume MSVC wrapper
14491 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14492 dynamic_linker='Win32 ld.exe'
14493 ;;
14494 esac
14495 # FIXME: first we should search . and the directory the executable is in
14496 shlibpath_var=PATH
14497 ;;
14498
14499darwin* | rhapsody*)
14500 dynamic_linker="$host_os dyld"
14501 version_type=darwin
14502 need_lib_prefix=no
14503 need_version=no
14504 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14505 soname_spec='$libname$release$major$shared_ext'
14506 shlibpath_overrides_runpath=yes
14507 shlibpath_var=DYLD_LIBRARY_PATH
14508 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14509
14510 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14511 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14512 ;;
14513
14514dgux*)
14515 version_type=linux # correct to gnu/linux during the next big refactor
14516 need_lib_prefix=no
14517 need_version=no
14518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14519 soname_spec='$libname$release$shared_ext$major'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 ;;
14522
14523freebsd* | dragonfly*)
14524 # DragonFly does not have aout. When/if they implement a new
14525 # versioning mechanism, adjust this.
14526 if test -x /usr/bin/objformat; then
14527 objformat=`/usr/bin/objformat`
14528 else
14529 case $host_os in
14530 freebsd[23].*) objformat=aout ;;
14531 *) objformat=elf ;;
14532 esac
14533 fi
14534 version_type=freebsd-$objformat
14535 case $version_type in
14536 freebsd-elf*)
14537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14538 soname_spec='$libname$release$shared_ext$major'
14539 need_version=no
14540 need_lib_prefix=no
14541 ;;
14542 freebsd-*)
14543 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14544 need_version=yes
14545 ;;
14546 esac
14547 shlibpath_var=LD_LIBRARY_PATH
14548 case $host_os in
14549 freebsd2.*)
14550 shlibpath_overrides_runpath=yes
14551 ;;
14552 freebsd3.[01]* | freebsdelf3.[01]*)
14553 shlibpath_overrides_runpath=yes
14554 hardcode_into_libs=yes
14555 ;;
14556 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14557 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14558 shlibpath_overrides_runpath=no
14559 hardcode_into_libs=yes
14560 ;;
14561 *) # from 4.6 on, and DragonFly
14562 shlibpath_overrides_runpath=yes
14563 hardcode_into_libs=yes
14564 ;;
14565 esac
14566 ;;
14567
14568haiku*)
14569 version_type=linux # correct to gnu/linux during the next big refactor
14570 need_lib_prefix=no
14571 need_version=no
14572 dynamic_linker="$host_os runtime_loader"
14573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14574 soname_spec='$libname$release$shared_ext$major'
14575 shlibpath_var=LIBRARY_PATH
14576 shlibpath_overrides_runpath=no
14577 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14578 hardcode_into_libs=yes
14579 ;;
14580
14581hpux9* | hpux10* | hpux11*)
14582 # Give a soname corresponding to the major version so that dld.sl refuses to
14583 # link against other versions.
14584 version_type=sunos
14585 need_lib_prefix=no
14586 need_version=no
14587 case $host_cpu in
14588 ia64*)
14589 shrext_cmds='.so'
14590 hardcode_into_libs=yes
14591 dynamic_linker="$host_os dld.so"
14592 shlibpath_var=LD_LIBRARY_PATH
14593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14595 soname_spec='$libname$release$shared_ext$major'
14596 if test 32 = "$HPUX_IA64_MODE"; then
14597 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14598 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14599 else
14600 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14601 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14602 fi
14603 ;;
14604 hppa*64*)
14605 shrext_cmds='.sl'
14606 hardcode_into_libs=yes
14607 dynamic_linker="$host_os dld.sl"
14608 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14611 soname_spec='$libname$release$shared_ext$major'
14612 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14614 ;;
14615 *)
14616 shrext_cmds='.sl'
14617 dynamic_linker="$host_os dld.sl"
14618 shlibpath_var=SHLIB_PATH
14619 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14621 soname_spec='$libname$release$shared_ext$major'
14622 ;;
14623 esac
14624 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14625 postinstall_cmds='chmod 555 $lib'
14626 # or fails outright, so override atomically:
14627 install_override_mode=555
14628 ;;
14629
14630interix[3-9]*)
14631 version_type=linux # correct to gnu/linux during the next big refactor
14632 need_lib_prefix=no
14633 need_version=no
14634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14635 soname_spec='$libname$release$shared_ext$major'
14636 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath=no
14639 hardcode_into_libs=yes
14640 ;;
14641
14642irix5* | irix6* | nonstopux*)
14643 case $host_os in
14644 nonstopux*) version_type=nonstopux ;;
14645 *)
14646 if test yes = "$lt_cv_prog_gnu_ld"; then
14647 version_type=linux # correct to gnu/linux during the next big refactor
14648 else
14649 version_type=irix
14650 fi ;;
14651 esac
14652 need_lib_prefix=no
14653 need_version=no
14654 soname_spec='$libname$release$shared_ext$major'
14655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14656 case $host_os in
14657 irix5* | nonstopux*)
14658 libsuff= shlibsuff=
14659 ;;
14660 *)
14661 case $LD in # libtool.m4 will add one of these switches to LD
14662 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14663 libsuff= shlibsuff= libmagic=32-bit;;
14664 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14665 libsuff=32 shlibsuff=N32 libmagic=N32;;
14666 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14667 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14668 *) libsuff= shlibsuff= libmagic=never-match;;
14669 esac
14670 ;;
14671 esac
14672 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14673 shlibpath_overrides_runpath=no
14674 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14675 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14676 hardcode_into_libs=yes
14677 ;;
14678
14679# No shared lib support for Linux oldld, aout, or coff.
14680linux*oldld* | linux*aout* | linux*coff*)
14681 dynamic_linker=no
14682 ;;
14683
14684linux*android*)
14685 version_type=none # Android doesn't support versioned libraries.
14686 need_lib_prefix=no
14687 need_version=no
14688 library_names_spec='$libname$release$shared_ext'
14689 soname_spec='$libname$release$shared_ext'
14690 finish_cmds=
14691 shlibpath_var=LD_LIBRARY_PATH
14692 shlibpath_overrides_runpath=yes
14693
14694 # This implies no fast_install, which is unacceptable.
14695 # Some rework will be needed to allow for fast_install
14696 # before this can be enabled.
14697 hardcode_into_libs=yes
14698
14699 dynamic_linker='Android linker'
14700 # Don't embed -rpath directories since the linker doesn't support them.
14701 hardcode_libdir_flag_spec='-L$libdir'
14702 ;;
14703
14704# This must be glibc/ELF.
14705linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14706 version_type=linux # correct to gnu/linux during the next big refactor
14707 need_lib_prefix=no
14708 need_version=no
14709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14710 soname_spec='$libname$release$shared_ext$major'
14711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 shlibpath_overrides_runpath=no
14714
14715 # Some binutils ld are patched to set DT_RUNPATH
14716 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14717 $as_echo_n "(cached) " >&6
14718else
14719 lt_cv_shlibpath_overrides_runpath=no
14720 save_LDFLAGS=$LDFLAGS
14721 save_libdir=$libdir
14722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725/* end confdefs.h. */
14726
14727int main (void)
14728{
14729
14730 ;
14731 return 0;
14732}
14733_ACEOF
14734if ac_fn_c_try_link "$LINENO"; then :
14735 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14736 lt_cv_shlibpath_overrides_runpath=yes
14737fi
14738fi
14739rm -f core conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
14741 LDFLAGS=$save_LDFLAGS
14742 libdir=$save_libdir
14743
14744fi
14745
14746 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14747
14748 # This implies no fast_install, which is unacceptable.
14749 # Some rework will be needed to allow for fast_install
14750 # before this can be enabled.
14751 hardcode_into_libs=yes
14752
14753 # Ideally, we could use ldconfig to report *all* directores which are
14754 # searched for libraries, however this is still not possible. Aside from not
14755 # being certain /sbin/ldconfig is available, command
14756 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14757 # even though it is searched at run-time. Try to do the best guess by
14758 # appending ld.so.conf contents (and includes) to the search path.
14759 if test -f /etc/ld.so.conf; then
14760 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' ' '`
14761 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14762 fi
14763
14764 # We used to test for /lib/ld.so.1 and disable shared libraries on
14765 # powerpc, because MkLinux only supported shared libraries with the
14766 # GNU dynamic linker. Since this was broken with cross compilers,
14767 # most powerpc-linux boxes support dynamic linking these days and
14768 # people can always --disable-shared, the test was removed, and we
14769 # assume the GNU/Linux dynamic linker is in use.
14770 dynamic_linker='GNU/Linux ld.so'
14771 ;;
14772
14773netbsdelf*-gnu)
14774 version_type=linux
14775 need_lib_prefix=no
14776 need_version=no
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath=no
14781 hardcode_into_libs=yes
14782 dynamic_linker='NetBSD ld.elf_so'
14783 ;;
14784
14785netbsd*)
14786 version_type=sunos
14787 need_lib_prefix=no
14788 need_version=no
14789 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14790 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14792 dynamic_linker='NetBSD (a.out) ld.so'
14793 else
14794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14795 soname_spec='$libname$release$shared_ext$major'
14796 dynamic_linker='NetBSD ld.elf_so'
14797 fi
14798 shlibpath_var=LD_LIBRARY_PATH
14799 shlibpath_overrides_runpath=yes
14800 hardcode_into_libs=yes
14801 ;;
14802
14803newsos6)
14804 version_type=linux # correct to gnu/linux during the next big refactor
14805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14806 shlibpath_var=LD_LIBRARY_PATH
14807 shlibpath_overrides_runpath=yes
14808 ;;
14809
14810*nto* | *qnx*)
14811 version_type=qnx
14812 need_lib_prefix=no
14813 need_version=no
14814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14815 soname_spec='$libname$release$shared_ext$major'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=no
14818 hardcode_into_libs=yes
14819 dynamic_linker='ldqnx.so'
14820 ;;
14821
14822openbsd* | bitrig*)
14823 version_type=sunos
14824 sys_lib_dlsearch_path_spec=/usr/lib
14825 need_lib_prefix=no
14826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14827 need_version=no
14828 else
14829 need_version=yes
14830 fi
14831 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 shlibpath_overrides_runpath=yes
14835 ;;
14836
14837os2*)
14838 libname_spec='$name'
14839 version_type=windows
14840 shrext_cmds=.dll
14841 need_version=no
14842 need_lib_prefix=no
14843 # OS/2 can only load a DLL with a base name of 8 characters or less.
14844 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14845 v=$($ECHO $release$versuffix | tr -d .-);
14846 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14847 $ECHO $n$v`$shared_ext'
14848 library_names_spec='${libname}_dll.$libext'
14849 dynamic_linker='OS/2 ld.exe'
14850 shlibpath_var=BEGINLIBPATH
14851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14853 postinstall_cmds='base_file=`basename \$file`~
14854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14855 dldir=$destdir/`dirname \$dlpath`~
14856 test -d \$dldir || mkdir -p \$dldir~
14857 $install_prog $dir/$dlname \$dldir/$dlname~
14858 chmod a+x \$dldir/$dlname~
14859 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14860 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14861 fi'
14862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14863 dlpath=$dir/\$dldll~
14864 $RM \$dlpath'
14865 ;;
14866
14867osf3* | osf4* | osf5*)
14868 version_type=osf
14869 need_lib_prefix=no
14870 need_version=no
14871 soname_spec='$libname$release$shared_ext$major'
14872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14876 ;;
14877
14878rdos*)
14879 dynamic_linker=no
14880 ;;
14881
14882solaris*)
14883 version_type=linux # correct to gnu/linux during the next big refactor
14884 need_lib_prefix=no
14885 need_version=no
14886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14887 soname_spec='$libname$release$shared_ext$major'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=yes
14890 hardcode_into_libs=yes
14891 # ldd complains unless libraries are executable
14892 postinstall_cmds='chmod +x $lib'
14893 ;;
14894
14895sunos4*)
14896 version_type=sunos
14897 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14899 shlibpath_var=LD_LIBRARY_PATH
14900 shlibpath_overrides_runpath=yes
14901 if test yes = "$with_gnu_ld"; then
14902 need_lib_prefix=no
14903 fi
14904 need_version=yes
14905 ;;
14906
14907sysv4 | sysv4.3*)
14908 version_type=linux # correct to gnu/linux during the next big refactor
14909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14910 soname_spec='$libname$release$shared_ext$major'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 case $host_vendor in
14913 sni)
14914 shlibpath_overrides_runpath=no
14915 need_lib_prefix=no
14916 runpath_var=LD_RUN_PATH
14917 ;;
14918 siemens)
14919 need_lib_prefix=no
14920 ;;
14921 motorola)
14922 need_lib_prefix=no
14923 need_version=no
14924 shlibpath_overrides_runpath=no
14925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14926 ;;
14927 esac
14928 ;;
14929
14930sysv4*MP*)
14931 if test -d /usr/nec; then
14932 version_type=linux # correct to gnu/linux during the next big refactor
14933 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14934 soname_spec='$libname$shared_ext.$major'
14935 shlibpath_var=LD_LIBRARY_PATH
14936 fi
14937 ;;
14938
14939sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14940 version_type=sco
14941 need_lib_prefix=no
14942 need_version=no
14943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14944 soname_spec='$libname$release$shared_ext$major'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=yes
14947 hardcode_into_libs=yes
14948 if test yes = "$with_gnu_ld"; then
14949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14950 else
14951 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14952 case $host_os in
14953 sco3.2v5*)
14954 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14955 ;;
14956 esac
14957 fi
14958 sys_lib_dlsearch_path_spec='/usr/lib'
14959 ;;
14960
14961tpf*)
14962 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14963 version_type=linux # correct to gnu/linux during the next big refactor
14964 need_lib_prefix=no
14965 need_version=no
14966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14967 shlibpath_var=LD_LIBRARY_PATH
14968 shlibpath_overrides_runpath=no
14969 hardcode_into_libs=yes
14970 ;;
14971
14972uts4*)
14973 version_type=linux # correct to gnu/linux during the next big refactor
14974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14975 soname_spec='$libname$release$shared_ext$major'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 ;;
14978
14979*)
14980 dynamic_linker=no
14981 ;;
14982esac
14983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14984$as_echo "$dynamic_linker" >&6; }
14985test no = "$dynamic_linker" && can_build_shared=no
14986
14987variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14988if test yes = "$GCC"; then
14989 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14990fi
14991
14992if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14993 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14994fi
14995
14996if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14997 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14998fi
14999
15000# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15001configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15002
15003# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15004func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15005
15006# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15007configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15106$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15107hardcode_action=
15108if test -n "$hardcode_libdir_flag_spec" ||
15109 test -n "$runpath_var" ||
15110 test yes = "$hardcode_automatic"; then
15111
15112 # We can hardcode non-existent directories.
15113 if test no != "$hardcode_direct" &&
15114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15115 # have to relink, otherwise we might link with an installed library
15116 # when we should be linking with a yet-to-be-installed one
15117 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15118 test no != "$hardcode_minus_L"; then
15119 # Linking always hardcodes the temporary library directory.
15120 hardcode_action=relink
15121 else
15122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15123 hardcode_action=immediate
15124 fi
15125else
15126 # We cannot hardcode anything, or else we can only hardcode existing
15127 # directories.
15128 hardcode_action=unsupported
15129fi
15130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15131$as_echo "$hardcode_action" >&6; }
15132
15133if test relink = "$hardcode_action" ||
15134 test yes = "$inherit_rpath"; then
15135 # Fast installation is not supported
15136 enable_fast_install=no
15137elif test yes = "$shlibpath_overrides_runpath" ||
15138 test no = "$enable_shared"; then
15139 # Fast installation is not necessary
15140 enable_fast_install=needless
15141fi
15142
15143
15144
15145
15146
15147
15148 if test yes != "$enable_dlopen"; then
15149 enable_dlopen=unknown
15150 enable_dlopen_self=unknown
15151 enable_dlopen_self_static=unknown
15152else
15153 lt_cv_dlopen=no
15154 lt_cv_dlopen_libs=
15155
15156 case $host_os in
15157 beos*)
15158 lt_cv_dlopen=load_add_on
15159 lt_cv_dlopen_libs=
15160 lt_cv_dlopen_self=yes
15161 ;;
15162
15163 mingw* | pw32* | cegcc*)
15164 lt_cv_dlopen=LoadLibrary
15165 lt_cv_dlopen_libs=
15166 ;;
15167
15168 cygwin*)
15169 lt_cv_dlopen=dlopen
15170 lt_cv_dlopen_libs=
15171 ;;
15172
15173 darwin*)
15174 # if libdl is installed we need to link against it
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15176$as_echo_n "checking for dlopen in -ldl... " >&6; }
15177if ${ac_cv_lib_dl_dlopen+:} false; then :
15178 $as_echo_n "(cached) " >&6
15179else
15180 ac_check_lib_save_LIBS=$LIBS
15181LIBS="-ldl $LIBS"
15182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183/* end confdefs.h. */
15184
15185
15186#ifdef __cplusplus
15187extern "C"
15188#endif
15189char dlopen ();
15190int main (void)
15191{
15192return dlopen ();
15193 ;
15194 return 0;
15195}
15196_ACEOF
15197if ac_fn_c_try_link "$LINENO"; then :
15198 ac_cv_lib_dl_dlopen=yes
15199else
15200 ac_cv_lib_dl_dlopen=no
15201fi
15202rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204LIBS=$ac_check_lib_save_LIBS
15205fi
15206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15207$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15208if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15209 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15210else
15211
15212 lt_cv_dlopen=dyld
15213 lt_cv_dlopen_libs=
15214 lt_cv_dlopen_self=yes
15215
15216fi
15217
15218 ;;
15219
15220 tpf*)
15221 # Don't try to run any link tests for TPF. We know it's impossible
15222 # because TPF is a cross-compiler, and we know how we open DSOs.
15223 lt_cv_dlopen=dlopen
15224 lt_cv_dlopen_libs=
15225 lt_cv_dlopen_self=no
15226 ;;
15227
15228 *)
15229 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15230if test "x$ac_cv_func_shl_load" = xyes; then :
15231 lt_cv_dlopen=shl_load
15232else
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15234$as_echo_n "checking for shl_load in -ldld... " >&6; }
15235if ${ac_cv_lib_dld_shl_load+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237else
15238 ac_check_lib_save_LIBS=$LIBS
15239LIBS="-ldld $LIBS"
15240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241/* end confdefs.h. */
15242
15243
15244#ifdef __cplusplus
15245extern "C"
15246#endif
15247char shl_load ();
15248int main (void)
15249{
15250return shl_load ();
15251 ;
15252 return 0;
15253}
15254_ACEOF
15255if ac_fn_c_try_link "$LINENO"; then :
15256 ac_cv_lib_dld_shl_load=yes
15257else
15258 ac_cv_lib_dld_shl_load=no
15259fi
15260rm -f core conftest.err conftest.$ac_objext \
15261 conftest$ac_exeext conftest.$ac_ext
15262LIBS=$ac_check_lib_save_LIBS
15263fi
15264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15265$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15266if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15267 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15268else
15269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15270if test "x$ac_cv_func_dlopen" = xyes; then :
15271 lt_cv_dlopen=dlopen
15272else
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15274$as_echo_n "checking for dlopen in -ldl... " >&6; }
15275if ${ac_cv_lib_dl_dlopen+:} false; then :
15276 $as_echo_n "(cached) " >&6
15277else
15278 ac_check_lib_save_LIBS=$LIBS
15279LIBS="-ldl $LIBS"
15280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281/* end confdefs.h. */
15282
15283
15284#ifdef __cplusplus
15285extern "C"
15286#endif
15287char dlopen ();
15288int main (void)
15289{
15290return dlopen ();
15291 ;
15292 return 0;
15293}
15294_ACEOF
15295if ac_fn_c_try_link "$LINENO"; then :
15296 ac_cv_lib_dl_dlopen=yes
15297else
15298 ac_cv_lib_dl_dlopen=no
15299fi
15300rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302LIBS=$ac_check_lib_save_LIBS
15303fi
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15305$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15306if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15307 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15308else
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15310$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15311if ${ac_cv_lib_svld_dlopen+:} false; then :
15312 $as_echo_n "(cached) " >&6
15313else
15314 ac_check_lib_save_LIBS=$LIBS
15315LIBS="-lsvld $LIBS"
15316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317/* end confdefs.h. */
15318
15319
15320#ifdef __cplusplus
15321extern "C"
15322#endif
15323char dlopen ();
15324int main (void)
15325{
15326return dlopen ();
15327 ;
15328 return 0;
15329}
15330_ACEOF
15331if ac_fn_c_try_link "$LINENO"; then :
15332 ac_cv_lib_svld_dlopen=yes
15333else
15334 ac_cv_lib_svld_dlopen=no
15335fi
15336rm -f core conftest.err conftest.$ac_objext \
15337 conftest$ac_exeext conftest.$ac_ext
15338LIBS=$ac_check_lib_save_LIBS
15339fi
15340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15341$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15342if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15343 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15344else
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15346$as_echo_n "checking for dld_link in -ldld... " >&6; }
15347if ${ac_cv_lib_dld_dld_link+:} false; then :
15348 $as_echo_n "(cached) " >&6
15349else
15350 ac_check_lib_save_LIBS=$LIBS
15351LIBS="-ldld $LIBS"
15352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15353/* end confdefs.h. */
15354
15355
15356#ifdef __cplusplus
15357extern "C"
15358#endif
15359char dld_link ();
15360int main (void)
15361{
15362return dld_link ();
15363 ;
15364 return 0;
15365}
15366_ACEOF
15367if ac_fn_c_try_link "$LINENO"; then :
15368 ac_cv_lib_dld_dld_link=yes
15369else
15370 ac_cv_lib_dld_dld_link=no
15371fi
15372rm -f core conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15374LIBS=$ac_check_lib_save_LIBS
15375fi
15376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15377$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15378if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15379 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15380fi
15381
15382
15383fi
15384
15385
15386fi
15387
15388
15389fi
15390
15391
15392fi
15393
15394
15395fi
15396
15397 ;;
15398 esac
15399
15400 if test no = "$lt_cv_dlopen"; then
15401 enable_dlopen=no
15402 else
15403 enable_dlopen=yes
15404 fi
15405
15406 case $lt_cv_dlopen in
15407 dlopen)
15408 save_CPPFLAGS=$CPPFLAGS
15409 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15410
15411 save_LDFLAGS=$LDFLAGS
15412 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15413
15414 save_LIBS=$LIBS
15415 LIBS="$lt_cv_dlopen_libs $LIBS"
15416
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15418$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15419if ${lt_cv_dlopen_self+:} false; then :
15420 $as_echo_n "(cached) " >&6
15421else
15422 if test yes = "$cross_compiling"; then :
15423 lt_cv_dlopen_self=cross
15424else
15425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15426 lt_status=$lt_dlunknown
15427 cat > conftest.$ac_ext <<_LT_EOF
15428#line $LINENO "configure"
15429#include "confdefs.h"
15430
15431#if HAVE_DLFCN_H
15432#include <dlfcn.h>
15433#endif
15434
15435#include <stdio.h>
15436
15437#ifdef RTLD_GLOBAL
15438# define LT_DLGLOBAL RTLD_GLOBAL
15439#else
15440# ifdef DL_GLOBAL
15441# define LT_DLGLOBAL DL_GLOBAL
15442# else
15443# define LT_DLGLOBAL 0
15444# endif
15445#endif
15446
15447/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15448 find out it does not work in some platform. */
15449#ifndef LT_DLLAZY_OR_NOW
15450# ifdef RTLD_LAZY
15451# define LT_DLLAZY_OR_NOW RTLD_LAZY
15452# else
15453# ifdef DL_LAZY
15454# define LT_DLLAZY_OR_NOW DL_LAZY
15455# else
15456# ifdef RTLD_NOW
15457# define LT_DLLAZY_OR_NOW RTLD_NOW
15458# else
15459# ifdef DL_NOW
15460# define LT_DLLAZY_OR_NOW DL_NOW
15461# else
15462# define LT_DLLAZY_OR_NOW 0
15463# endif
15464# endif
15465# endif
15466# endif
15467#endif
15468
15469/* When -fvisibility=hidden is used, assume the code has been annotated
15470 correspondingly for the symbols needed. */
15471#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15472int fnord () __attribute__((visibility("default")));
15473#endif
15474
15475int fnord () { return 42; }
15476int main ()
15477{
15478 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15479 int status = $lt_dlunknown;
15480
15481 if (self)
15482 {
15483 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15484 else
15485 {
15486 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15487 else puts (dlerror ());
15488 }
15489 /* dlclose (self); */
15490 }
15491 else
15492 puts (dlerror ());
15493
15494 return status;
15495}
15496_LT_EOF
15497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15498 (eval $ac_link) 2>&5
15499 ac_status=$?
15500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15501 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15502 (./conftest; exit; ) >&5 2>/dev/null
15503 lt_status=$?
15504 case x$lt_status in
15505 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15506 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15507 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15508 esac
15509 else :
15510 # compilation failed
15511 lt_cv_dlopen_self=no
15512 fi
15513fi
15514rm -fr conftest*
15515
15516
15517fi
15518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15519$as_echo "$lt_cv_dlopen_self" >&6; }
15520
15521 if test yes = "$lt_cv_dlopen_self"; then
15522 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15524$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15525if ${lt_cv_dlopen_self_static+:} false; then :
15526 $as_echo_n "(cached) " >&6
15527else
15528 if test yes = "$cross_compiling"; then :
15529 lt_cv_dlopen_self_static=cross
15530else
15531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15532 lt_status=$lt_dlunknown
15533 cat > conftest.$ac_ext <<_LT_EOF
15534#line $LINENO "configure"
15535#include "confdefs.h"
15536
15537#if HAVE_DLFCN_H
15538#include <dlfcn.h>
15539#endif
15540
15541#include <stdio.h>
15542
15543#ifdef RTLD_GLOBAL
15544# define LT_DLGLOBAL RTLD_GLOBAL
15545#else
15546# ifdef DL_GLOBAL
15547# define LT_DLGLOBAL DL_GLOBAL
15548# else
15549# define LT_DLGLOBAL 0
15550# endif
15551#endif
15552
15553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15554 find out it does not work in some platform. */
15555#ifndef LT_DLLAZY_OR_NOW
15556# ifdef RTLD_LAZY
15557# define LT_DLLAZY_OR_NOW RTLD_LAZY
15558# else
15559# ifdef DL_LAZY
15560# define LT_DLLAZY_OR_NOW DL_LAZY
15561# else
15562# ifdef RTLD_NOW
15563# define LT_DLLAZY_OR_NOW RTLD_NOW
15564# else
15565# ifdef DL_NOW
15566# define LT_DLLAZY_OR_NOW DL_NOW
15567# else
15568# define LT_DLLAZY_OR_NOW 0
15569# endif
15570# endif
15571# endif
15572# endif
15573#endif
15574
15575/* When -fvisibility=hidden is used, assume the code has been annotated
15576 correspondingly for the symbols needed. */
15577#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15578int fnord () __attribute__((visibility("default")));
15579#endif
15580
15581int fnord () { return 42; }
15582int main ()
15583{
15584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15585 int status = $lt_dlunknown;
15586
15587 if (self)
15588 {
15589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15590 else
15591 {
15592 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15593 else puts (dlerror ());
15594 }
15595 /* dlclose (self); */
15596 }
15597 else
15598 puts (dlerror ());
15599
15600 return status;
15601}
15602_LT_EOF
15603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15604 (eval $ac_link) 2>&5
15605 ac_status=$?
15606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15607 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15608 (./conftest; exit; ) >&5 2>/dev/null
15609 lt_status=$?
15610 case x$lt_status in
15611 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15612 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15613 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15614 esac
15615 else :
15616 # compilation failed
15617 lt_cv_dlopen_self_static=no
15618 fi
15619fi
15620rm -fr conftest*
15621
15622
15623fi
15624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15625$as_echo "$lt_cv_dlopen_self_static" >&6; }
15626 fi
15627
15628 CPPFLAGS=$save_CPPFLAGS
15629 LDFLAGS=$save_LDFLAGS
15630 LIBS=$save_LIBS
15631 ;;
15632 esac
15633
15634 case $lt_cv_dlopen_self in
15635 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15636 *) enable_dlopen_self=unknown ;;
15637 esac
15638
15639 case $lt_cv_dlopen_self_static in
15640 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15641 *) enable_dlopen_self_static=unknown ;;
15642 esac
15643fi
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661striplib=
15662old_striplib=
15663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15664$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15665if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15666 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15667 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15669$as_echo "yes" >&6; }
15670else
15671# FIXME - insert some real tests, host_os isn't really good enough
15672 case $host_os in
15673 darwin*)
15674 if test -n "$STRIP"; then
15675 striplib="$STRIP -x"
15676 old_striplib="$STRIP -S"
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15678$as_echo "yes" >&6; }
15679 else
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15681$as_echo "no" >&6; }
15682 fi
15683 ;;
15684 *)
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15686$as_echo "no" >&6; }
15687 ;;
15688 esac
15689fi
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702 # Report what library types will actually be built
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15704$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15706$as_echo "$can_build_shared" >&6; }
15707
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15709$as_echo_n "checking whether to build shared libraries... " >&6; }
15710 test no = "$can_build_shared" && enable_shared=no
15711
15712 # On AIX, shared libraries and static libraries use the same namespace, and
15713 # are all built from PIC.
15714 case $host_os in
15715 aix3*)
15716 test yes = "$enable_shared" && enable_static=no
15717 if test -n "$RANLIB"; then
15718 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15719 postinstall_cmds='$RANLIB $lib'
15720 fi
15721 ;;
15722
15723 aix[4-9]*)
15724 if test ia64 != "$host_cpu"; then
15725 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15726 yes,aix,yes) ;; # shared object as lib.so file only
15727 yes,svr4,*) ;; # shared object as lib.so archive member only
15728 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15729 esac
15730 fi
15731 ;;
15732 esac
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15734$as_echo "$enable_shared" >&6; }
15735
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15737$as_echo_n "checking whether to build static libraries... " >&6; }
15738 # Make sure either enable_shared or enable_static is yes.
15739 test yes = "$enable_shared" || enable_static=yes
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15741$as_echo "$enable_static" >&6; }
15742
15743
15744
15745
15746fi
15747ac_ext=c
15748ac_cpp='$CPP $CPPFLAGS'
15749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15751ac_compiler_gnu=$ac_cv_c_compiler_gnu
15752
15753CC=$lt_save_CC
15754
15755 if test -n "$CXX" && ( test no != "$CXX" &&
15756 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15757 (test g++ != "$CXX"))); then
15758 ac_ext=cpp
15759ac_cpp='$CXXCPP $CPPFLAGS'
15760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15764$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15765if test -z "$CXXCPP"; then
15766 if ${ac_cv_prog_CXXCPP+:} false; then :
15767 $as_echo_n "(cached) " >&6
15768else
15769 # Double quotes because CXXCPP needs to be expanded
15770 for CXXCPP in "$CXX -E" "/lib/cpp"
15771 do
15772 ac_preproc_ok=false
15773for ac_cxx_preproc_warn_flag in '' yes
15774do
15775 # Use a header file that comes with gcc, so configuring glibc
15776 # with a fresh cross-compiler works.
15777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15778 # <limits.h> exists even on freestanding compilers.
15779 # On the NeXT, cc -E runs the code through the compiler's parser,
15780 # not just through cpp. "Syntax error" is here to catch this case.
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782/* end confdefs.h. */
15783#ifdef __STDC__
15784# include <limits.h>
15785#else
15786# include <assert.h>
15787#endif
15788 Syntax error
15789_ACEOF
15790if ac_fn_cxx_try_cpp "$LINENO"; then :
15791
15792else
15793 # Broken: fails on valid input.
15794continue
15795fi
15796rm -f conftest.err conftest.i conftest.$ac_ext
15797
15798 # OK, works on sane cases. Now check whether nonexistent headers
15799 # can be detected and how.
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801/* end confdefs.h. */
15802#include <ac_nonexistent.h>
15803_ACEOF
15804if ac_fn_cxx_try_cpp "$LINENO"; then :
15805 # Broken: success on invalid input.
15806continue
15807else
15808 # Passes both tests.
15809ac_preproc_ok=:
15810break
15811fi
15812rm -f conftest.err conftest.i conftest.$ac_ext
15813
15814done
15815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15816rm -f conftest.i conftest.err conftest.$ac_ext
15817if $ac_preproc_ok; then :
15818 break
15819fi
15820
15821 done
15822 ac_cv_prog_CXXCPP=$CXXCPP
15823
15824fi
15825 CXXCPP=$ac_cv_prog_CXXCPP
15826else
15827 ac_cv_prog_CXXCPP=$CXXCPP
15828fi
15829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15830$as_echo "$CXXCPP" >&6; }
15831ac_preproc_ok=false
15832for ac_cxx_preproc_warn_flag in '' yes
15833do
15834 # Use a header file that comes with gcc, so configuring glibc
15835 # with a fresh cross-compiler works.
15836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15837 # <limits.h> exists even on freestanding compilers.
15838 # On the NeXT, cc -E runs the code through the compiler's parser,
15839 # not just through cpp. "Syntax error" is here to catch this case.
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841/* end confdefs.h. */
15842#ifdef __STDC__
15843# include <limits.h>
15844#else
15845# include <assert.h>
15846#endif
15847 Syntax error
15848_ACEOF
15849if ac_fn_cxx_try_cpp "$LINENO"; then :
15850
15851else
15852 # Broken: fails on valid input.
15853continue
15854fi
15855rm -f conftest.err conftest.i conftest.$ac_ext
15856
15857 # OK, works on sane cases. Now check whether nonexistent headers
15858 # can be detected and how.
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860/* end confdefs.h. */
15861#include <ac_nonexistent.h>
15862_ACEOF
15863if ac_fn_cxx_try_cpp "$LINENO"; then :
15864 # Broken: success on invalid input.
15865continue
15866else
15867 # Passes both tests.
15868ac_preproc_ok=:
15869break
15870fi
15871rm -f conftest.err conftest.i conftest.$ac_ext
15872
15873done
15874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15875rm -f conftest.i conftest.err conftest.$ac_ext
15876if $ac_preproc_ok; then :
15877
15878else
15879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15881as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15882See \`config.log' for more details" "$LINENO" 5; }
15883fi
15884
15885ac_ext=c
15886ac_cpp='$CPP $CPPFLAGS'
15887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15889ac_compiler_gnu=$ac_cv_c_compiler_gnu
15890
15891else
15892 _lt_caught_CXX_error=yes
15893fi
15894
15895ac_ext=cpp
15896ac_cpp='$CXXCPP $CPPFLAGS'
15897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15900
15901archive_cmds_need_lc_CXX=no
15902allow_undefined_flag_CXX=
15903always_export_symbols_CXX=no
15904archive_expsym_cmds_CXX=
15905compiler_needs_object_CXX=no
15906export_dynamic_flag_spec_CXX=
15907hardcode_direct_CXX=no
15908hardcode_direct_absolute_CXX=no
15909hardcode_libdir_flag_spec_CXX=
15910hardcode_libdir_separator_CXX=
15911hardcode_minus_L_CXX=no
15912hardcode_shlibpath_var_CXX=unsupported
15913hardcode_automatic_CXX=no
15914inherit_rpath_CXX=no
15915module_cmds_CXX=
15916module_expsym_cmds_CXX=
15917link_all_deplibs_CXX=unknown
15918old_archive_cmds_CXX=$old_archive_cmds
15919reload_flag_CXX=$reload_flag
15920reload_cmds_CXX=$reload_cmds
15921no_undefined_flag_CXX=
15922whole_archive_flag_spec_CXX=
15923enable_shared_with_static_runtimes_CXX=no
15924
15925# Source file extension for C++ test sources.
15926ac_ext=cpp
15927
15928# Object file extension for compiled C++ test sources.
15929objext=o
15930objext_CXX=$objext
15931
15932# No sense in running all these tests if we already determined that
15933# the CXX compiler isn't working. Some variables (like enable_shared)
15934# are currently assumed to apply to all compilers on this platform,
15935# and will be corrupted by setting them based on a non-working compiler.
15936if test yes != "$_lt_caught_CXX_error"; then
15937 # Code to be used in simple compile tests
15938 lt_simple_compile_test_code="int some_variable = 0;"
15939
15940 # Code to be used in simple link tests
15941 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15942
15943 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15944
15945
15946
15947
15948
15949
15950# If no C compiler was specified, use CC.
15951LTCC=${LTCC-"$CC"}
15952
15953# If no C compiler flags were specified, use CFLAGS.
15954LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15955
15956# Allow CC to be a program name with arguments.
15957compiler=$CC
15958
15959
15960 # save warnings/boilerplate of simple test code
15961 ac_outfile=conftest.$ac_objext
15962echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15963eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15964_lt_compiler_boilerplate=`cat conftest.err`
15965$RM conftest*
15966
15967 ac_outfile=conftest.$ac_objext
15968echo "$lt_simple_link_test_code" >conftest.$ac_ext
15969eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15970_lt_linker_boilerplate=`cat conftest.err`
15971$RM -r conftest*
15972
15973
15974 # Allow CC to be a program name with arguments.
15975 lt_save_CC=$CC
15976 lt_save_CFLAGS=$CFLAGS
15977 lt_save_LD=$LD
15978 lt_save_GCC=$GCC
15979 GCC=$GXX
15980 lt_save_with_gnu_ld=$with_gnu_ld
15981 lt_save_path_LD=$lt_cv_path_LD
15982 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15983 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15984 else
15985 $as_unset lt_cv_prog_gnu_ld
15986 fi
15987 if test -n "${lt_cv_path_LDCXX+set}"; then
15988 lt_cv_path_LD=$lt_cv_path_LDCXX
15989 else
15990 $as_unset lt_cv_path_LD
15991 fi
15992 test -z "${LDCXX+set}" || LD=$LDCXX
15993 CC=${CXX-"c++"}
15994 CFLAGS=$CXXFLAGS
15995 compiler=$CC
15996 compiler_CXX=$CC
15997 func_cc_basename $compiler
15998cc_basename=$func_cc_basename_result
15999
16000
16001 if test -n "$compiler"; then
16002 # We don't want -fno-exception when compiling C++ code, so set the
16003 # no_builtin_flag separately
16004 if test yes = "$GXX"; then
16005 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16006 else
16007 lt_prog_compiler_no_builtin_flag_CXX=
16008 fi
16009
16010 if test yes = "$GXX"; then
16011 # Set up default GNU C++ configuration
16012
16013
16014
16015# Check whether --with-gnu-ld was given.
16016if test "${with_gnu_ld+set}" = set; then :
16017 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16018else
16019 with_gnu_ld=no
16020fi
16021
16022ac_prog=ld
16023if test yes = "$GCC"; then
16024 # Check if gcc -print-prog-name=ld gives a path.
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16026$as_echo_n "checking for ld used by $CC... " >&6; }
16027 case $host in
16028 *-*-mingw*)
16029 # gcc leaves a trailing carriage return, which upsets mingw
16030 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16031 *)
16032 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16033 esac
16034 case $ac_prog in
16035 # Accept absolute paths.
16036 [\\/]* | ?:[\\/]*)
16037 re_direlt='/[^/][^/]*/\.\./'
16038 # Canonicalize the pathname of ld
16039 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16040 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16041 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16042 done
16043 test -z "$LD" && LD=$ac_prog
16044 ;;
16045 "")
16046 # If it fails, then pretend we aren't using GCC.
16047 ac_prog=ld
16048 ;;
16049 *)
16050 # If it is relative, then search for the first ld in PATH.
16051 with_gnu_ld=unknown
16052 ;;
16053 esac
16054elif test yes = "$with_gnu_ld"; then
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16056$as_echo_n "checking for GNU ld... " >&6; }
16057else
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16059$as_echo_n "checking for non-GNU ld... " >&6; }
16060fi
16061if ${lt_cv_path_LD+:} false; then :
16062 $as_echo_n "(cached) " >&6
16063else
16064 if test -z "$LD"; then
16065 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16066 for ac_dir in $PATH; do
16067 IFS=$lt_save_ifs
16068 test -z "$ac_dir" && ac_dir=.
16069 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16070 lt_cv_path_LD=$ac_dir/$ac_prog
16071 # Check to see if the program is GNU ld. I'd rather use --version,
16072 # but apparently some variants of GNU ld only accept -v.
16073 # Break only if it was the GNU/non-GNU ld that we prefer.
16074 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16075 *GNU* | *'with BFD'*)
16076 test no != "$with_gnu_ld" && break
16077 ;;
16078 *)
16079 test yes != "$with_gnu_ld" && break
16080 ;;
16081 esac
16082 fi
16083 done
16084 IFS=$lt_save_ifs
16085else
16086 lt_cv_path_LD=$LD # Let the user override the test with a path.
16087fi
16088fi
16089
16090LD=$lt_cv_path_LD
16091if test -n "$LD"; then
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16093$as_echo "$LD" >&6; }
16094else
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16096$as_echo "no" >&6; }
16097fi
16098test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16100$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16101if ${lt_cv_prog_gnu_ld+:} false; then :
16102 $as_echo_n "(cached) " >&6
16103else
16104 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16105case `$LD -v 2>&1 </dev/null` in
16106*GNU* | *'with BFD'*)
16107 lt_cv_prog_gnu_ld=yes
16108 ;;
16109*)
16110 lt_cv_prog_gnu_ld=no
16111 ;;
16112esac
16113fi
16114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16115$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16116with_gnu_ld=$lt_cv_prog_gnu_ld
16117
16118
16119
16120
16121
16122
16123
16124 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16125 # archiving commands below assume that GNU ld is being used.
16126 if test yes = "$with_gnu_ld"; then
16127 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16128 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16129
16130 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16131 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16132
16133 # If archive_cmds runs LD, not CC, wlarc should be empty
16134 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16135 # investigate it a little bit more. (MM)
16136 wlarc='$wl'
16137
16138 # ancient GNU ld didn't support --whole-archive et. al.
16139 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16140 $GREP 'no-whole-archive' > /dev/null; then
16141 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16142 else
16143 whole_archive_flag_spec_CXX=
16144 fi
16145 else
16146 with_gnu_ld=no
16147 wlarc=
16148
16149 # A generic and very simple default shared library creation
16150 # command for GNU C++ for the case where it uses the native
16151 # linker, instead of GNU ld. If possible, this setting should
16152 # overridden to take advantage of the native linker features on
16153 # the platform it is being used on.
16154 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16155 fi
16156
16157 # Commands to make compiler produce verbose output that lists
16158 # what "hidden" libraries, object files and flags are used when
16159 # linking a shared library.
16160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16161
16162 else
16163 GXX=no
16164 with_gnu_ld=no
16165 wlarc=
16166 fi
16167
16168 # PORTME: fill in a description of your system's C++ link characteristics
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16170$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16171 ld_shlibs_CXX=yes
16172 case $host_os in
16173 aix3*)
16174 # FIXME: insert proper C++ library support
16175 ld_shlibs_CXX=no
16176 ;;
16177 aix[4-9]*)
16178 if test ia64 = "$host_cpu"; then
16179 # On IA64, the linker does run time linking by default, so we don't
16180 # have to do anything special.
16181 aix_use_runtimelinking=no
16182 exp_sym_flag='-Bexport'
16183 no_entry_flag=
16184 else
16185 aix_use_runtimelinking=no
16186
16187 # Test if we are trying to use run time linking or normal
16188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16189 # have runtime linking enabled, and use it for executables.
16190 # For shared libraries, we enable/disable runtime linking
16191 # depending on the kind of the shared library created -
16192 # when "with_aix_soname,aix_use_runtimelinking" is:
16193 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16194 # "aix,yes" lib.so shared, rtl:yes, for executables
16195 # lib.a static archive
16196 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16197 # lib.a(lib.so.V) shared, rtl:no, for executables
16198 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16199 # lib.a(lib.so.V) shared, rtl:no
16200 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16201 # lib.a static archive
16202 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16203 for ld_flag in $LDFLAGS; do
16204 case $ld_flag in
16205 *-brtl*)
16206 aix_use_runtimelinking=yes
16207 break
16208 ;;
16209 esac
16210 done
16211 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16212 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16213 # so we don't have lib.a shared libs to link our executables.
16214 # We have to force runtime linking in this case.
16215 aix_use_runtimelinking=yes
16216 LDFLAGS="$LDFLAGS -Wl,-brtl"
16217 fi
16218 ;;
16219 esac
16220
16221 exp_sym_flag='-bexport'
16222 no_entry_flag='-bnoentry'
16223 fi
16224
16225 # When large executables or shared objects are built, AIX ld can
16226 # have problems creating the table of contents. If linking a library
16227 # or program results in "error TOC overflow" add -mminimal-toc to
16228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16230
16231 archive_cmds_CXX=''
16232 hardcode_direct_CXX=yes
16233 hardcode_direct_absolute_CXX=yes
16234 hardcode_libdir_separator_CXX=':'
16235 link_all_deplibs_CXX=yes
16236 file_list_spec_CXX='$wl-f,'
16237 case $with_aix_soname,$aix_use_runtimelinking in
16238 aix,*) ;; # no import file
16239 svr4,* | *,yes) # use import file
16240 # The Import File defines what to hardcode.
16241 hardcode_direct_CXX=no
16242 hardcode_direct_absolute_CXX=no
16243 ;;
16244 esac
16245
16246 if test yes = "$GXX"; then
16247 case $host_os in aix4.[012]|aix4.[012].*)
16248 # We only want to do this on AIX 4.2 and lower, the check
16249 # below for broken collect2 doesn't work under 4.3+
16250 collect2name=`$CC -print-prog-name=collect2`
16251 if test -f "$collect2name" &&
16252 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16253 then
16254 # We have reworked collect2
16255 :
16256 else
16257 # We have old collect2
16258 hardcode_direct_CXX=unsupported
16259 # It fails to find uninstalled libraries when the uninstalled
16260 # path is not listed in the libpath. Setting hardcode_minus_L
16261 # to unsupported forces relinking
16262 hardcode_minus_L_CXX=yes
16263 hardcode_libdir_flag_spec_CXX='-L$libdir'
16264 hardcode_libdir_separator_CXX=
16265 fi
16266 esac
16267 shared_flag='-shared'
16268 if test yes = "$aix_use_runtimelinking"; then
16269 shared_flag=$shared_flag' $wl-G'
16270 fi
16271 # Need to ensure runtime linking is disabled for the traditional
16272 # shared library, or the linker may eventually find shared libraries
16273 # /with/ Import File - we do not want to mix them.
16274 shared_flag_aix='-shared'
16275 shared_flag_svr4='-shared $wl-G'
16276 else
16277 # not using gcc
16278 if test ia64 = "$host_cpu"; then
16279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16280 # chokes on -Wl,-G. The following line is correct:
16281 shared_flag='-G'
16282 else
16283 if test yes = "$aix_use_runtimelinking"; then
16284 shared_flag='$wl-G'
16285 else
16286 shared_flag='$wl-bM:SRE'
16287 fi
16288 shared_flag_aix='$wl-bM:SRE'
16289 shared_flag_svr4='$wl-G'
16290 fi
16291 fi
16292
16293 export_dynamic_flag_spec_CXX='$wl-bexpall'
16294 # It seems that -bexpall does not export symbols beginning with
16295 # underscore (_), so it is better to generate a list of symbols to
16296 # export.
16297 always_export_symbols_CXX=yes
16298 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16299 # Warning - without using the other runtime loading flags (-brtl),
16300 # -berok will link without error, but may produce a broken library.
16301 # The "-G" linker flag allows undefined symbols.
16302 no_undefined_flag_CXX='-bernotok'
16303 # Determine the default libpath from the value encoded in an empty
16304 # executable.
16305 if test set = "${lt_cv_aix_libpath+set}"; then
16306 aix_libpath=$lt_cv_aix_libpath
16307else
16308 if ${lt_cv_aix_libpath__CXX+:} false; then :
16309 $as_echo_n "(cached) " >&6
16310else
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312/* end confdefs.h. */
16313
16314int
16315main ()
16316{
16317
16318 ;
16319 return 0;
16320}
16321_ACEOF
16322if ac_fn_cxx_try_link "$LINENO"; then :
16323
16324 lt_aix_libpath_sed='
16325 /Import File Strings/,/^$/ {
16326 /^0/ {
16327 s/^0 *\([^ ]*\) *$/\1/
16328 p
16329 }
16330 }'
16331 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16332 # Check for a 64-bit object if we didn't find anything.
16333 if test -z "$lt_cv_aix_libpath__CXX"; then
16334 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16335 fi
16336fi
16337rm -f core conftest.err conftest.$ac_objext \
16338 conftest$ac_exeext conftest.$ac_ext
16339 if test -z "$lt_cv_aix_libpath__CXX"; then
16340 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16341 fi
16342
16343fi
16344
16345 aix_libpath=$lt_cv_aix_libpath__CXX
16346fi
16347
16348 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16349
16350 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
16351 else
16352 if test ia64 = "$host_cpu"; then
16353 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16354 allow_undefined_flag_CXX="-z nodefs"
16355 archive_expsym_cmds_CXX="\$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"
16356 else
16357 # Determine the default libpath from the value encoded in an
16358 # empty executable.
16359 if test set = "${lt_cv_aix_libpath+set}"; then
16360 aix_libpath=$lt_cv_aix_libpath
16361else
16362 if ${lt_cv_aix_libpath__CXX+:} false; then :
16363 $as_echo_n "(cached) " >&6
16364else
16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366/* end confdefs.h. */
16367
16368int
16369main ()
16370{
16371
16372 ;
16373 return 0;
16374}
16375_ACEOF
16376if ac_fn_cxx_try_link "$LINENO"; then :
16377
16378 lt_aix_libpath_sed='
16379 /Import File Strings/,/^$/ {
16380 /^0/ {
16381 s/^0 *\([^ ]*\) *$/\1/
16382 p
16383 }
16384 }'
16385 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16386 # Check for a 64-bit object if we didn't find anything.
16387 if test -z "$lt_cv_aix_libpath__CXX"; then
16388 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16389 fi
16390fi
16391rm -f core conftest.err conftest.$ac_objext \
16392 conftest$ac_exeext conftest.$ac_ext
16393 if test -z "$lt_cv_aix_libpath__CXX"; then
16394 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16395 fi
16396
16397fi
16398
16399 aix_libpath=$lt_cv_aix_libpath__CXX
16400fi
16401
16402 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16403 # Warning - without using the other run time loading flags,
16404 # -berok will link without error, but may produce a broken library.
16405 no_undefined_flag_CXX=' $wl-bernotok'
16406 allow_undefined_flag_CXX=' $wl-berok'
16407 if test yes = "$with_gnu_ld"; then
16408 # We only use this code for GNU lds that support --whole-archive.
16409 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16410 else
16411 # Exported symbols can be pulled into shared objects from archives
16412 whole_archive_flag_spec_CXX='$convenience'
16413 fi
16414 archive_cmds_need_lc_CXX=yes
16415 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16416 # -brtl affects multiple linker settings, -berok does not and is overridden later
16417 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16418 if test svr4 != "$with_aix_soname"; then
16419 # This is similar to how AIX traditionally builds its shared
16420 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16421 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16422 fi
16423 if test aix != "$with_aix_soname"; then
16424 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16425 else
16426 # used by -dlpreopen to get the symbols
16427 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16428 fi
16429 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16430 fi
16431 fi
16432 ;;
16433
16434 beos*)
16435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16436 allow_undefined_flag_CXX=unsupported
16437 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16438 # support --undefined. This deserves some investigation. FIXME
16439 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16440 else
16441 ld_shlibs_CXX=no
16442 fi
16443 ;;
16444
16445 chorus*)
16446 case $cc_basename in
16447 *)
16448 # FIXME: insert proper C++ library support
16449 ld_shlibs_CXX=no
16450 ;;
16451 esac
16452 ;;
16453
16454 cygwin* | mingw* | pw32* | cegcc*)
16455 case $GXX,$cc_basename in
16456 ,cl* | no,cl*)
16457 # Native MSVC
16458 # hardcode_libdir_flag_spec is actually meaningless, as there is
16459 # no search path for DLLs.
16460 hardcode_libdir_flag_spec_CXX=' '
16461 allow_undefined_flag_CXX=unsupported
16462 always_export_symbols_CXX=yes
16463 file_list_spec_CXX='@'
16464 # Tell ltmain to make .lib files, not .a files.
16465 libext=lib
16466 # Tell ltmain to make .dll files, not .so files.
16467 shrext_cmds=.dll
16468 # FIXME: Setting linknames here is a bad hack.
16469 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16470 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16471 cp "$export_symbols" "$output_objdir/$soname.def";
16472 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16473 else
16474 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16475 fi~
16476 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16477 linknames='
16478 # The linker will not automatically build a static lib if we build a DLL.
16479 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16480 enable_shared_with_static_runtimes_CXX=yes
16481 # Don't use ranlib
16482 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16483 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16484 lt_tool_outputfile="@TOOL_OUTPUT@"~
16485 case $lt_outputfile in
16486 *.exe|*.EXE) ;;
16487 *)
16488 lt_outputfile=$lt_outputfile.exe
16489 lt_tool_outputfile=$lt_tool_outputfile.exe
16490 ;;
16491 esac~
16492 func_to_tool_file "$lt_outputfile"~
16493 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16494 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16495 $RM "$lt_outputfile.manifest";
16496 fi'
16497 ;;
16498 *)
16499 # g++
16500 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16501 # as there is no search path for DLLs.
16502 hardcode_libdir_flag_spec_CXX='-L$libdir'
16503 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16504 allow_undefined_flag_CXX=unsupported
16505 always_export_symbols_CXX=no
16506 enable_shared_with_static_runtimes_CXX=yes
16507
16508 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16509 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16510 # If the export-symbols file already is a .def file, use it as
16511 # is; otherwise, prepend EXPORTS...
16512 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16513 cp $export_symbols $output_objdir/$soname.def;
16514 else
16515 echo EXPORTS > $output_objdir/$soname.def;
16516 cat $export_symbols >> $output_objdir/$soname.def;
16517 fi~
16518 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16519 else
16520 ld_shlibs_CXX=no
16521 fi
16522 ;;
16523 esac
16524 ;;
16525 darwin* | rhapsody*)
16526
16527
16528 archive_cmds_need_lc_CXX=no
16529 hardcode_direct_CXX=no
16530 hardcode_automatic_CXX=yes
16531 hardcode_shlibpath_var_CXX=unsupported
16532 if test yes = "$lt_cv_ld_force_load"; then
16533 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16534
16535 else
16536 whole_archive_flag_spec_CXX=''
16537 fi
16538 link_all_deplibs_CXX=yes
16539 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16540 case $cc_basename in
16541 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16542 *) _lt_dar_can_shared=$GCC ;;
16543 esac
16544 if test yes = "$_lt_dar_can_shared"; then
16545 output_verbose_link_cmd=func_echo_all
16546 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16547 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16548 archive_expsym_cmds_CXX="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"
16549 module_expsym_cmds_CXX="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"
16550 if test yes != "$lt_cv_apple_cc_single_mod"; then
16551 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
16552 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
16553 fi
16554
16555 else
16556 ld_shlibs_CXX=no
16557 fi
16558
16559 ;;
16560
16561 os2*)
16562 hardcode_libdir_flag_spec_CXX='-L$libdir'
16563 hardcode_minus_L_CXX=yes
16564 allow_undefined_flag_CXX=unsupported
16565 shrext_cmds=.dll
16566 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16567 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16568 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16569 $ECHO EXPORTS >> $output_objdir/$libname.def~
16570 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16571 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16572 emximp -o $lib $output_objdir/$libname.def'
16573 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16574 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16575 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16576 $ECHO EXPORTS >> $output_objdir/$libname.def~
16577 prefix_cmds="$SED"~
16578 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16579 prefix_cmds="$prefix_cmds -e 1d";
16580 fi~
16581 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16582 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16583 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16584 emximp -o $lib $output_objdir/$libname.def'
16585 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16586 enable_shared_with_static_runtimes_CXX=yes
16587 ;;
16588
16589 dgux*)
16590 case $cc_basename in
16591 ec++*)
16592 # FIXME: insert proper C++ library support
16593 ld_shlibs_CXX=no
16594 ;;
16595 ghcx*)
16596 # Green Hills C++ Compiler
16597 # FIXME: insert proper C++ library support
16598 ld_shlibs_CXX=no
16599 ;;
16600 *)
16601 # FIXME: insert proper C++ library support
16602 ld_shlibs_CXX=no
16603 ;;
16604 esac
16605 ;;
16606
16607 freebsd2.*)
16608 # C++ shared libraries reported to be fairly broken before
16609 # switch to ELF
16610 ld_shlibs_CXX=no
16611 ;;
16612
16613 freebsd-elf*)
16614 archive_cmds_need_lc_CXX=no
16615 ;;
16616
16617 freebsd* | dragonfly*)
16618 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16619 # conventions
16620 ld_shlibs_CXX=yes
16621 ;;
16622
16623 haiku*)
16624 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16625 link_all_deplibs_CXX=yes
16626 ;;
16627
16628 hpux9*)
16629 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16630 hardcode_libdir_separator_CXX=:
16631 export_dynamic_flag_spec_CXX='$wl-E'
16632 hardcode_direct_CXX=yes
16633 hardcode_minus_L_CXX=yes # Not in the search PATH,
16634 # but as the default
16635 # location of the library.
16636
16637 case $cc_basename in
16638 CC*)
16639 # FIXME: insert proper C++ library support
16640 ld_shlibs_CXX=no
16641 ;;
16642 aCC*)
16643 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
16644 # Commands to make compiler produce verbose output that lists
16645 # what "hidden" libraries, object files and flags are used when
16646 # linking a shared library.
16647 #
16648 # There doesn't appear to be a way to prevent this compiler from
16649 # explicitly linking system object files so we need to strip them
16650 # from the output so that they don't get included in the library
16651 # dependencies.
16652 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16653 ;;
16654 *)
16655 if test yes = "$GXX"; then
16656 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
16657 else
16658 # FIXME: insert proper C++ library support
16659 ld_shlibs_CXX=no
16660 fi
16661 ;;
16662 esac
16663 ;;
16664
16665 hpux10*|hpux11*)
16666 if test no = "$with_gnu_ld"; then
16667 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16668 hardcode_libdir_separator_CXX=:
16669
16670 case $host_cpu in
16671 hppa*64*|ia64*)
16672 ;;
16673 *)
16674 export_dynamic_flag_spec_CXX='$wl-E'
16675 ;;
16676 esac
16677 fi
16678 case $host_cpu in
16679 hppa*64*|ia64*)
16680 hardcode_direct_CXX=no
16681 hardcode_shlibpath_var_CXX=no
16682 ;;
16683 *)
16684 hardcode_direct_CXX=yes
16685 hardcode_direct_absolute_CXX=yes
16686 hardcode_minus_L_CXX=yes # Not in the search PATH,
16687 # but as the default
16688 # location of the library.
16689 ;;
16690 esac
16691
16692 case $cc_basename in
16693 CC*)
16694 # FIXME: insert proper C++ library support
16695 ld_shlibs_CXX=no
16696 ;;
16697 aCC*)
16698 case $host_cpu in
16699 hppa*64*)
16700 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16701 ;;
16702 ia64*)
16703 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16704 ;;
16705 *)
16706 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16707 ;;
16708 esac
16709 # Commands to make compiler produce verbose output that lists
16710 # what "hidden" libraries, object files and flags are used when
16711 # linking a shared library.
16712 #
16713 # There doesn't appear to be a way to prevent this compiler from
16714 # explicitly linking system object files so we need to strip them
16715 # from the output so that they don't get included in the library
16716 # dependencies.
16717 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16718 ;;
16719 *)
16720 if test yes = "$GXX"; then
16721 if test no = "$with_gnu_ld"; then
16722 case $host_cpu in
16723 hppa*64*)
16724 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16725 ;;
16726 ia64*)
16727 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16728 ;;
16729 *)
16730 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16731 ;;
16732 esac
16733 fi
16734 else
16735 # FIXME: insert proper C++ library support
16736 ld_shlibs_CXX=no
16737 fi
16738 ;;
16739 esac
16740 ;;
16741
16742 interix[3-9]*)
16743 hardcode_direct_CXX=no
16744 hardcode_shlibpath_var_CXX=no
16745 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16746 export_dynamic_flag_spec_CXX='$wl-E'
16747 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16748 # Instead, shared libraries are loaded at an image base (0x10000000 by
16749 # default) and relocated if they conflict, which is a slow very memory
16750 # consuming and fragmenting process. To avoid this, we pick a random,
16751 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16752 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16753 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16754 archive_expsym_cmds_CXX='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'
16755 ;;
16756 irix5* | irix6*)
16757 case $cc_basename in
16758 CC*)
16759 # SGI C++
16760 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16761
16762 # Archives containing C++ object files must be created using
16763 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16764 # necessary to make sure instantiated templates are included
16765 # in the archive.
16766 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16767 ;;
16768 *)
16769 if test yes = "$GXX"; then
16770 if test no = "$with_gnu_ld"; then
16771 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
16772 else
16773 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16774 fi
16775 fi
16776 link_all_deplibs_CXX=yes
16777 ;;
16778 esac
16779 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16780 hardcode_libdir_separator_CXX=:
16781 inherit_rpath_CXX=yes
16782 ;;
16783
16784 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16785 case $cc_basename in
16786 KCC*)
16787 # Kuck and Associates, Inc. (KAI) C++ Compiler
16788
16789 # KCC will only create a shared library if the output file
16790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16791 # to its proper name (with version) after linking.
16792 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
16793 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv -f \$templib $lib'
16794 # Commands to make compiler produce verbose output that lists
16795 # what "hidden" libraries, object files and flags are used when
16796 # linking a shared library.
16797 #
16798 # There doesn't appear to be a way to prevent this compiler from
16799 # explicitly linking system object files so we need to strip them
16800 # from the output so that they don't get included in the library
16801 # dependencies.
16802 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16803
16804 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16805 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16806
16807 # Archives containing C++ object files must be created using
16808 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16809 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16810 ;;
16811 icpc* | ecpc* )
16812 # Intel C++
16813 with_gnu_ld=yes
16814 # version 8.0 and above of icpc choke on multiply defined symbols
16815 # if we add $predep_objects and $postdep_objects, however 7.1 and
16816 # earlier do not add the objects themselves.
16817 case `$CC -V 2>&1` in
16818 *"Version 7."*)
16819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16820 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16821 ;;
16822 *) # Version 8.0 or newer
16823 tmp_idyn=
16824 case $host_cpu in
16825 ia64*) tmp_idyn=' -i_dynamic';;
16826 esac
16827 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16828 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16829 ;;
16830 esac
16831 archive_cmds_need_lc_CXX=no
16832 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16833 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16834 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16835 ;;
16836 pgCC* | pgcpp*)
16837 # Portland Group C++ compiler
16838 case `$CC -V` in
16839 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16840 prelink_cmds_CXX='tpldir=Template.dir~
16841 rm -rf $tpldir~
16842 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16843 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16844 old_archive_cmds_CXX='tpldir=Template.dir~
16845 rm -rf $tpldir~
16846 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16847 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16848 $RANLIB $oldlib'
16849 archive_cmds_CXX='tpldir=Template.dir~
16850 rm -rf $tpldir~
16851 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16852 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16853 archive_expsym_cmds_CXX='tpldir=Template.dir~
16854 rm -rf $tpldir~
16855 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16856 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16857 ;;
16858 *) # Version 6 and above use weak symbols
16859 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16860 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16861 ;;
16862 esac
16863
16864 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16865 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16866 whole_archive_flag_spec_CXX='$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'
16867 ;;
16868 cxx*)
16869 # Compaq C++
16870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16871 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
16872
16873 runpath_var=LD_RUN_PATH
16874 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16875 hardcode_libdir_separator_CXX=:
16876
16877 # Commands to make compiler produce verbose output that lists
16878 # what "hidden" libraries, object files and flags are used when
16879 # linking a shared library.
16880 #
16881 # There doesn't appear to be a way to prevent this compiler from
16882 # explicitly linking system object files so we need to strip them
16883 # from the output so that they don't get included in the library
16884 # dependencies.
16885 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16886 ;;
16887 xl* | mpixl* | bgxl*)
16888 # IBM XL 8.0 on PPC, with GNU ld
16889 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16890 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16891 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16892 if test yes = "$supports_anon_versioning"; then
16893 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16894 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16895 echo "local: *; };" >> $output_objdir/$libname.ver~
16896 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16897 fi
16898 ;;
16899 *)
16900 case `$CC -V 2>&1 | sed 5q` in
16901 *Sun\ C*)
16902 # Sun C++ 5.9
16903 no_undefined_flag_CXX=' -zdefs'
16904 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16905 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16906 hardcode_libdir_flag_spec_CXX='-R$libdir'
16907 whole_archive_flag_spec_CXX='$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'
16908 compiler_needs_object_CXX=yes
16909
16910 # Not sure whether something based on
16911 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16912 # would be better.
16913 output_verbose_link_cmd='func_echo_all'
16914
16915 # Archives containing C++ object files must be created using
16916 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16917 # necessary to make sure instantiated templates are included
16918 # in the archive.
16919 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16920 ;;
16921 esac
16922 ;;
16923 esac
16924 ;;
16925
16926 lynxos*)
16927 # FIXME: insert proper C++ library support
16928 ld_shlibs_CXX=no
16929 ;;
16930
16931 m88k*)
16932 # FIXME: insert proper C++ library support
16933 ld_shlibs_CXX=no
16934 ;;
16935
16936 mvs*)
16937 case $cc_basename in
16938 cxx*)
16939 # FIXME: insert proper C++ library support
16940 ld_shlibs_CXX=no
16941 ;;
16942 *)
16943 # FIXME: insert proper C++ library support
16944 ld_shlibs_CXX=no
16945 ;;
16946 esac
16947 ;;
16948
16949 netbsd*)
16950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16951 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16952 wlarc=
16953 hardcode_libdir_flag_spec_CXX='-R$libdir'
16954 hardcode_direct_CXX=yes
16955 hardcode_shlibpath_var_CXX=no
16956 fi
16957 # Workaround some broken pre-1.5 toolchains
16958 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16959 ;;
16960
16961 *nto* | *qnx*)
16962 ld_shlibs_CXX=yes
16963 ;;
16964
16965 openbsd* | bitrig*)
16966 if test -f /usr/libexec/ld.so; then
16967 hardcode_direct_CXX=yes
16968 hardcode_shlibpath_var_CXX=no
16969 hardcode_direct_absolute_CXX=yes
16970 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16971 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16973 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16974 export_dynamic_flag_spec_CXX='$wl-E'
16975 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16976 fi
16977 output_verbose_link_cmd=func_echo_all
16978 else
16979 ld_shlibs_CXX=no
16980 fi
16981 ;;
16982
16983 osf3* | osf4* | osf5*)
16984 case $cc_basename in
16985 KCC*)
16986 # Kuck and Associates, Inc. (KAI) C++ Compiler
16987
16988 # KCC will only create a shared library if the output file
16989 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16990 # to its proper name (with version) after linking.
16991 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv -f \$templib $lib'
16992
16993 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16994 hardcode_libdir_separator_CXX=:
16995
16996 # Archives containing C++ object files must be created using
16997 # the KAI C++ compiler.
16998 case $host in
16999 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17000 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17001 esac
17002 ;;
17003 RCC*)
17004 # Rational C++ 2.4.1
17005 # FIXME: insert proper C++ library support
17006 ld_shlibs_CXX=no
17007 ;;
17008 cxx*)
17009 case $host in
17010 osf3*)
17011 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17012 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17013 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17014 ;;
17015 *)
17016 allow_undefined_flag_CXX=' -expect_unresolved \*'
17017 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17018 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17019 echo "-hidden">> $lib.exp~
17020 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17021 $RM $lib.exp'
17022 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17023 ;;
17024 esac
17025
17026 hardcode_libdir_separator_CXX=:
17027
17028 # Commands to make compiler produce verbose output that lists
17029 # what "hidden" libraries, object files and flags are used when
17030 # linking a shared library.
17031 #
17032 # There doesn't appear to be a way to prevent this compiler from
17033 # explicitly linking system object files so we need to strip them
17034 # from the output so that they don't get included in the library
17035 # dependencies.
17036 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17037 ;;
17038 *)
17039 if test yes,no = "$GXX,$with_gnu_ld"; then
17040 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17041 case $host in
17042 osf3*)
17043 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17044 ;;
17045 *)
17046 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
17047 ;;
17048 esac
17049
17050 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17051 hardcode_libdir_separator_CXX=:
17052
17053 # Commands to make compiler produce verbose output that lists
17054 # what "hidden" libraries, object files and flags are used when
17055 # linking a shared library.
17056 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17057
17058 else
17059 # FIXME: insert proper C++ library support
17060 ld_shlibs_CXX=no
17061 fi
17062 ;;
17063 esac
17064 ;;
17065
17066 psos*)
17067 # FIXME: insert proper C++ library support
17068 ld_shlibs_CXX=no
17069 ;;
17070
17071 sunos4*)
17072 case $cc_basename in
17073 CC*)
17074 # Sun C++ 4.x
17075 # FIXME: insert proper C++ library support
17076 ld_shlibs_CXX=no
17077 ;;
17078 lcc*)
17079 # Lucid
17080 # FIXME: insert proper C++ library support
17081 ld_shlibs_CXX=no
17082 ;;
17083 *)
17084 # FIXME: insert proper C++ library support
17085 ld_shlibs_CXX=no
17086 ;;
17087 esac
17088 ;;
17089
17090 solaris*)
17091 case $cc_basename in
17092 CC* | sunCC*)
17093 # Sun C++ 4.2, 5.x and Centerline C++
17094 archive_cmds_need_lc_CXX=yes
17095 no_undefined_flag_CXX=' -zdefs'
17096 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17097 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17098 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17099
17100 hardcode_libdir_flag_spec_CXX='-R$libdir'
17101 hardcode_shlibpath_var_CXX=no
17102 case $host_os in
17103 solaris2.[0-5] | solaris2.[0-5].*) ;;
17104 *)
17105 # The compiler driver will combine and reorder linker options,
17106 # but understands '-z linker_flag'.
17107 # Supported since Solaris 2.6 (maybe 2.5.1?)
17108 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17109 ;;
17110 esac
17111 link_all_deplibs_CXX=yes
17112
17113 output_verbose_link_cmd='func_echo_all'
17114
17115 # Archives containing C++ object files must be created using
17116 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17117 # necessary to make sure instantiated templates are included
17118 # in the archive.
17119 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17120 ;;
17121 gcx*)
17122 # Green Hills C++ Compiler
17123 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17124
17125 # The C++ compiler must be used to create the archive.
17126 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17127 ;;
17128 *)
17129 # GNU C++ compiler with Solaris linker
17130 if test yes,no = "$GXX,$with_gnu_ld"; then
17131 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17132 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17133 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17134 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17135 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17136
17137 # Commands to make compiler produce verbose output that lists
17138 # what "hidden" libraries, object files and flags are used when
17139 # linking a shared library.
17140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17141 else
17142 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17143 # platform.
17144 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17145 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17146 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17147
17148 # Commands to make compiler produce verbose output that lists
17149 # what "hidden" libraries, object files and flags are used when
17150 # linking a shared library.
17151 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17152 fi
17153
17154 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17155 case $host_os in
17156 solaris2.[0-5] | solaris2.[0-5].*) ;;
17157 *)
17158 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17159 ;;
17160 esac
17161 fi
17162 ;;
17163 esac
17164 ;;
17165
17166 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17167 no_undefined_flag_CXX='$wl-z,text'
17168 archive_cmds_need_lc_CXX=no
17169 hardcode_shlibpath_var_CXX=no
17170 runpath_var='LD_RUN_PATH'
17171
17172 case $cc_basename in
17173 CC*)
17174 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17175 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17176 ;;
17177 *)
17178 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17179 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17180 ;;
17181 esac
17182 ;;
17183
17184 sysv5* | sco3.2v5* | sco5v6*)
17185 # Note: We CANNOT use -z defs as we might desire, because we do not
17186 # link with -lc, and that would cause any symbols used from libc to
17187 # always be unresolved, which means just about no library would
17188 # ever link correctly. If we're not using GNU ld we use -z text
17189 # though, which does catch some bad symbols but isn't as heavy-handed
17190 # as -z defs.
17191 no_undefined_flag_CXX='$wl-z,text'
17192 allow_undefined_flag_CXX='$wl-z,nodefs'
17193 archive_cmds_need_lc_CXX=no
17194 hardcode_shlibpath_var_CXX=no
17195 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17196 hardcode_libdir_separator_CXX=':'
17197 link_all_deplibs_CXX=yes
17198 export_dynamic_flag_spec_CXX='$wl-Bexport'
17199 runpath_var='LD_RUN_PATH'
17200
17201 case $cc_basename in
17202 CC*)
17203 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17204 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17205 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17206 '"$old_archive_cmds_CXX"
17207 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17208 '"$reload_cmds_CXX"
17209 ;;
17210 *)
17211 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17212 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17213 ;;
17214 esac
17215 ;;
17216
17217 tandem*)
17218 case $cc_basename in
17219 NCC*)
17220 # NonStop-UX NCC 3.20
17221 # FIXME: insert proper C++ library support
17222 ld_shlibs_CXX=no
17223 ;;
17224 *)
17225 # FIXME: insert proper C++ library support
17226 ld_shlibs_CXX=no
17227 ;;
17228 esac
17229 ;;
17230
17231 vxworks*)
17232 # FIXME: insert proper C++ library support
17233 ld_shlibs_CXX=no
17234 ;;
17235
17236 *)
17237 # FIXME: insert proper C++ library support
17238 ld_shlibs_CXX=no
17239 ;;
17240 esac
17241
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17243$as_echo "$ld_shlibs_CXX" >&6; }
17244 test no = "$ld_shlibs_CXX" && can_build_shared=no
17245
17246 GCC_CXX=$GXX
17247 LD_CXX=$LD
17248
17249 ## CAVEAT EMPTOR:
17250 ## There is no encapsulation within the following macros, do not change
17251 ## the running order or otherwise move them around unless you know exactly
17252 ## what you are doing...
17253 # Dependencies to place before and after the object being linked:
17254predep_objects_CXX=
17255postdep_objects_CXX=
17256predeps_CXX=
17257postdeps_CXX=
17258compiler_lib_search_path_CXX=
17259
17260cat > conftest.$ac_ext <<_LT_EOF
17261class Foo
17262{
17263public:
17264 Foo (void) { a = 0; }
17265private:
17266 int a;
17267};
17268_LT_EOF
17269
17270
17271_lt_libdeps_save_CFLAGS=$CFLAGS
17272case "$CC $CFLAGS " in #(
17273*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17274*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17275*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17276esac
17277
17278if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17279 (eval $ac_compile) 2>&5
17280 ac_status=$?
17281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17282 test $ac_status = 0; }; then
17283 # Parse the compiler output and extract the necessary
17284 # objects, libraries and library flags.
17285
17286 # Sentinel used to keep track of whether or not we are before
17287 # the conftest object file.
17288 pre_test_object_deps_done=no
17289
17290 for p in `eval "$output_verbose_link_cmd"`; do
17291 case $prev$p in
17292
17293 -L* | -R* | -l*)
17294 # Some compilers place space between "-{L,R}" and the path.
17295 # Remove the space.
17296 if test x-L = "$p" ||
17297 test x-R = "$p"; then
17298 prev=$p
17299 continue
17300 fi
17301
17302 # Expand the sysroot to ease extracting the directories later.
17303 if test -z "$prev"; then
17304 case $p in
17305 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17306 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17307 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17308 esac
17309 fi
17310 case $p in
17311 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17312 esac
17313 if test no = "$pre_test_object_deps_done"; then
17314 case $prev in
17315 -L | -R)
17316 # Internal compiler library paths should come after those
17317 # provided the user. The postdeps already come after the
17318 # user supplied libs so there is no need to process them.
17319 if test -z "$compiler_lib_search_path_CXX"; then
17320 compiler_lib_search_path_CXX=$prev$p
17321 else
17322 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17323 fi
17324 ;;
17325 # The "-l" case would never come before the object being
17326 # linked, so don't bother handling this case.
17327 esac
17328 else
17329 if test -z "$postdeps_CXX"; then
17330 postdeps_CXX=$prev$p
17331 else
17332 postdeps_CXX="${postdeps_CXX} $prev$p"
17333 fi
17334 fi
17335 prev=
17336 ;;
17337
17338 *.lto.$objext) ;; # Ignore GCC LTO objects
17339 *.$objext)
17340 # This assumes that the test object file only shows up
17341 # once in the compiler output.
17342 if test "$p" = "conftest.$objext"; then
17343 pre_test_object_deps_done=yes
17344 continue
17345 fi
17346
17347 if test no = "$pre_test_object_deps_done"; then
17348 if test -z "$predep_objects_CXX"; then
17349 predep_objects_CXX=$p
17350 else
17351 predep_objects_CXX="$predep_objects_CXX $p"
17352 fi
17353 else
17354 if test -z "$postdep_objects_CXX"; then
17355 postdep_objects_CXX=$p
17356 else
17357 postdep_objects_CXX="$postdep_objects_CXX $p"
17358 fi
17359 fi
17360 ;;
17361
17362 *) ;; # Ignore the rest.
17363
17364 esac
17365 done
17366
17367 # Clean up.
17368 rm -f a.out a.exe
17369else
17370 echo "libtool.m4: error: problem compiling CXX test program"
17371fi
17372
17373$RM -f confest.$objext
17374CFLAGS=$_lt_libdeps_save_CFLAGS
17375
17376# PORTME: override above test on systems where it is broken
17377case $host_os in
17378interix[3-9]*)
17379 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17380 # hack all around it, let's just trust "g++" to DTRT.
17381 predep_objects_CXX=
17382 postdep_objects_CXX=
17383 postdeps_CXX=
17384 ;;
17385esac
17386
17387
17388case " $postdeps_CXX " in
17389*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17390esac
17391 compiler_lib_search_dirs_CXX=
17392if test -n "${compiler_lib_search_path_CXX}"; then
17393 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17394fi
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426 lt_prog_compiler_wl_CXX=
17427lt_prog_compiler_pic_CXX=
17428lt_prog_compiler_static_CXX=
17429
17430
17431 # C++ specific cases for pic, static, wl, etc.
17432 if test yes = "$GXX"; then
17433 lt_prog_compiler_wl_CXX='-Wl,'
17434 lt_prog_compiler_static_CXX='-static'
17435
17436 case $host_os in
17437 aix*)
17438 # All AIX code is PIC.
17439 if test ia64 = "$host_cpu"; then
17440 # AIX 5 now supports IA64 processor
17441 lt_prog_compiler_static_CXX='-Bstatic'
17442 fi
17443 lt_prog_compiler_pic_CXX='-fPIC'
17444 ;;
17445
17446 amigaos*)
17447 case $host_cpu in
17448 powerpc)
17449 # see comment about AmigaOS4 .so support
17450 lt_prog_compiler_pic_CXX='-fPIC'
17451 ;;
17452 m68k)
17453 # FIXME: we need at least 68020 code to build shared libraries, but
17454 # adding the '-m68020' flag to GCC prevents building anything better,
17455 # like '-m68040'.
17456 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17457 ;;
17458 esac
17459 ;;
17460
17461 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17462 # PIC is the default for these OSes.
17463 ;;
17464 mingw* | cygwin* | os2* | pw32* | cegcc*)
17465 # This hack is so that the source file can tell whether it is being
17466 # built for inclusion in a dll (and should export symbols for example).
17467 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17468 # (--disable-auto-import) libraries
17469 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17470 case $host_os in
17471 os2*)
17472 lt_prog_compiler_static_CXX='$wl-static'
17473 ;;
17474 esac
17475 ;;
17476 darwin* | rhapsody*)
17477 # PIC is the default on this platform
17478 # Common symbols not allowed in MH_DYLIB files
17479 lt_prog_compiler_pic_CXX='-fno-common'
17480 ;;
17481 *djgpp*)
17482 # DJGPP does not support shared libraries at all
17483 lt_prog_compiler_pic_CXX=
17484 ;;
17485 haiku*)
17486 # PIC is the default for Haiku.
17487 # The "-static" flag exists, but is broken.
17488 lt_prog_compiler_static_CXX=
17489 ;;
17490 interix[3-9]*)
17491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17492 # Instead, we relocate shared libraries at runtime.
17493 ;;
17494 sysv4*MP*)
17495 if test -d /usr/nec; then
17496 lt_prog_compiler_pic_CXX=-Kconform_pic
17497 fi
17498 ;;
17499 hpux*)
17500 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17501 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17502 # sets the default TLS model and affects inlining.
17503 case $host_cpu in
17504 hppa*64*)
17505 ;;
17506 *)
17507 lt_prog_compiler_pic_CXX='-fPIC'
17508 ;;
17509 esac
17510 ;;
17511 *qnx* | *nto*)
17512 # QNX uses GNU C++, but need to define -shared option too, otherwise
17513 # it will coredump.
17514 lt_prog_compiler_pic_CXX='-fPIC -shared'
17515 ;;
17516 *)
17517 lt_prog_compiler_pic_CXX='-fPIC'
17518 ;;
17519 esac
17520 else
17521 case $host_os in
17522 aix[4-9]*)
17523 # All AIX code is PIC.
17524 if test ia64 = "$host_cpu"; then
17525 # AIX 5 now supports IA64 processor
17526 lt_prog_compiler_static_CXX='-Bstatic'
17527 else
17528 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17529 fi
17530 ;;
17531 chorus*)
17532 case $cc_basename in
17533 cxch68*)
17534 # Green Hills C++ Compiler
17535 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17536 ;;
17537 esac
17538 ;;
17539 mingw* | cygwin* | os2* | pw32* | cegcc*)
17540 # This hack is so that the source file can tell whether it is being
17541 # built for inclusion in a dll (and should export symbols for example).
17542 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17543 ;;
17544 dgux*)
17545 case $cc_basename in
17546 ec++*)
17547 lt_prog_compiler_pic_CXX='-KPIC'
17548 ;;
17549 ghcx*)
17550 # Green Hills C++ Compiler
17551 lt_prog_compiler_pic_CXX='-pic'
17552 ;;
17553 *)
17554 ;;
17555 esac
17556 ;;
17557 freebsd* | dragonfly*)
17558 # FreeBSD uses GNU C++
17559 ;;
17560 hpux9* | hpux10* | hpux11*)
17561 case $cc_basename in
17562 CC*)
17563 lt_prog_compiler_wl_CXX='-Wl,'
17564 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17565 if test ia64 != "$host_cpu"; then
17566 lt_prog_compiler_pic_CXX='+Z'
17567 fi
17568 ;;
17569 aCC*)
17570 lt_prog_compiler_wl_CXX='-Wl,'
17571 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17572 case $host_cpu in
17573 hppa*64*|ia64*)
17574 # +Z the default
17575 ;;
17576 *)
17577 lt_prog_compiler_pic_CXX='+Z'
17578 ;;
17579 esac
17580 ;;
17581 *)
17582 ;;
17583 esac
17584 ;;
17585 interix*)
17586 # This is c89, which is MS Visual C++ (no shared libs)
17587 # Anyone wants to do a port?
17588 ;;
17589 irix5* | irix6* | nonstopux*)
17590 case $cc_basename in
17591 CC*)
17592 lt_prog_compiler_wl_CXX='-Wl,'
17593 lt_prog_compiler_static_CXX='-non_shared'
17594 # CC pic flag -KPIC is the default.
17595 ;;
17596 *)
17597 ;;
17598 esac
17599 ;;
17600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17601 case $cc_basename in
17602 KCC*)
17603 # KAI C++ Compiler
17604 lt_prog_compiler_wl_CXX='--backend -Wl,'
17605 lt_prog_compiler_pic_CXX='-fPIC'
17606 ;;
17607 ecpc* )
17608 # old Intel C++ for x86_64, which still supported -KPIC.
17609 lt_prog_compiler_wl_CXX='-Wl,'
17610 lt_prog_compiler_pic_CXX='-KPIC'
17611 lt_prog_compiler_static_CXX='-static'
17612 ;;
17613 icpc* )
17614 # Intel C++, used to be incompatible with GCC.
17615 # ICC 10 doesn't accept -KPIC any more.
17616 lt_prog_compiler_wl_CXX='-Wl,'
17617 lt_prog_compiler_pic_CXX='-fPIC'
17618 lt_prog_compiler_static_CXX='-static'
17619 ;;
17620 pgCC* | pgcpp*)
17621 # Portland Group C++ compiler
17622 lt_prog_compiler_wl_CXX='-Wl,'
17623 lt_prog_compiler_pic_CXX='-fpic'
17624 lt_prog_compiler_static_CXX='-Bstatic'
17625 ;;
17626 cxx*)
17627 # Compaq C++
17628 # Make sure the PIC flag is empty. It appears that all Alpha
17629 # Linux and Compaq Tru64 Unix objects are PIC.
17630 lt_prog_compiler_pic_CXX=
17631 lt_prog_compiler_static_CXX='-non_shared'
17632 ;;
17633 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17634 # IBM XL 8.0, 9.0 on PPC and BlueGene
17635 lt_prog_compiler_wl_CXX='-Wl,'
17636 lt_prog_compiler_pic_CXX='-qpic'
17637 lt_prog_compiler_static_CXX='-qstaticlink'
17638 ;;
17639 *)
17640 case `$CC -V 2>&1 | sed 5q` in
17641 *Sun\ C*)
17642 # Sun C++ 5.9
17643 lt_prog_compiler_pic_CXX='-KPIC'
17644 lt_prog_compiler_static_CXX='-Bstatic'
17645 lt_prog_compiler_wl_CXX='-Qoption ld '
17646 ;;
17647 esac
17648 ;;
17649 esac
17650 ;;
17651 lynxos*)
17652 ;;
17653 m88k*)
17654 ;;
17655 mvs*)
17656 case $cc_basename in
17657 cxx*)
17658 lt_prog_compiler_pic_CXX='-W c,exportall'
17659 ;;
17660 *)
17661 ;;
17662 esac
17663 ;;
17664 netbsd* | netbsdelf*-gnu)
17665 ;;
17666 *qnx* | *nto*)
17667 # QNX uses GNU C++, but need to define -shared option too, otherwise
17668 # it will coredump.
17669 lt_prog_compiler_pic_CXX='-fPIC -shared'
17670 ;;
17671 osf3* | osf4* | osf5*)
17672 case $cc_basename in
17673 KCC*)
17674 lt_prog_compiler_wl_CXX='--backend -Wl,'
17675 ;;
17676 RCC*)
17677 # Rational C++ 2.4.1
17678 lt_prog_compiler_pic_CXX='-pic'
17679 ;;
17680 cxx*)
17681 # Digital/Compaq C++
17682 lt_prog_compiler_wl_CXX='-Wl,'
17683 # Make sure the PIC flag is empty. It appears that all Alpha
17684 # Linux and Compaq Tru64 Unix objects are PIC.
17685 lt_prog_compiler_pic_CXX=
17686 lt_prog_compiler_static_CXX='-non_shared'
17687 ;;
17688 *)
17689 ;;
17690 esac
17691 ;;
17692 psos*)
17693 ;;
17694 solaris*)
17695 case $cc_basename in
17696 CC* | sunCC*)
17697 # Sun C++ 4.2, 5.x and Centerline C++
17698 lt_prog_compiler_pic_CXX='-KPIC'
17699 lt_prog_compiler_static_CXX='-Bstatic'
17700 lt_prog_compiler_wl_CXX='-Qoption ld '
17701 ;;
17702 gcx*)
17703 # Green Hills C++ Compiler
17704 lt_prog_compiler_pic_CXX='-PIC'
17705 ;;
17706 *)
17707 ;;
17708 esac
17709 ;;
17710 sunos4*)
17711 case $cc_basename in
17712 CC*)
17713 # Sun C++ 4.x
17714 lt_prog_compiler_pic_CXX='-pic'
17715 lt_prog_compiler_static_CXX='-Bstatic'
17716 ;;
17717 lcc*)
17718 # Lucid
17719 lt_prog_compiler_pic_CXX='-pic'
17720 ;;
17721 *)
17722 ;;
17723 esac
17724 ;;
17725 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17726 case $cc_basename in
17727 CC*)
17728 lt_prog_compiler_wl_CXX='-Wl,'
17729 lt_prog_compiler_pic_CXX='-KPIC'
17730 lt_prog_compiler_static_CXX='-Bstatic'
17731 ;;
17732 esac
17733 ;;
17734 tandem*)
17735 case $cc_basename in
17736 NCC*)
17737 # NonStop-UX NCC 3.20
17738 lt_prog_compiler_pic_CXX='-KPIC'
17739 ;;
17740 *)
17741 ;;
17742 esac
17743 ;;
17744 vxworks*)
17745 ;;
17746 *)
17747 lt_prog_compiler_can_build_shared_CXX=no
17748 ;;
17749 esac
17750 fi
17751
17752case $host_os in
17753 # For platforms that do not support PIC, -DPIC is meaningless:
17754 *djgpp*)
17755 lt_prog_compiler_pic_CXX=
17756 ;;
17757 *)
17758 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17759 ;;
17760esac
17761
17762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17763$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17764if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17765 $as_echo_n "(cached) " >&6
17766else
17767 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17768fi
17769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17770$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17771lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17772
17773#
17774# Check to make sure the PIC flag actually works.
17775#
17776if test -n "$lt_prog_compiler_pic_CXX"; then
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17778$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17779if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17780 $as_echo_n "(cached) " >&6
17781else
17782 lt_cv_prog_compiler_pic_works_CXX=no
17783 ac_outfile=conftest.$ac_objext
17784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17785 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17786 # Insert the option either (1) after the last *FLAGS variable, or
17787 # (2) before a word containing "conftest.", or (3) at the end.
17788 # Note that $ac_compile itself does not contain backslashes and begins
17789 # with a dollar sign (not a hyphen), so the echo should work correctly.
17790 # The option is referenced via a variable to avoid confusing sed.
17791 lt_compile=`echo "$ac_compile" | $SED \
17792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17794 -e 's:$: $lt_compiler_flag:'`
17795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17796 (eval "$lt_compile" 2>conftest.err)
17797 ac_status=$?
17798 cat conftest.err >&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 if (exit $ac_status) && test -s "$ac_outfile"; then
17801 # The compiler can only warn and ignore the option if not recognized
17802 # So say no if there are warnings other than the usual output.
17803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17806 lt_cv_prog_compiler_pic_works_CXX=yes
17807 fi
17808 fi
17809 $RM conftest*
17810
17811fi
17812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17813$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17814
17815if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17816 case $lt_prog_compiler_pic_CXX in
17817 "" | " "*) ;;
17818 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17819 esac
17820else
17821 lt_prog_compiler_pic_CXX=
17822 lt_prog_compiler_can_build_shared_CXX=no
17823fi
17824
17825fi
17826
17827
17828
17829
17830
17831#
17832# Check to make sure the static flag actually works.
17833#
17834wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17836$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17837if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17838 $as_echo_n "(cached) " >&6
17839else
17840 lt_cv_prog_compiler_static_works_CXX=no
17841 save_LDFLAGS=$LDFLAGS
17842 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17843 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17845 # The linker can only warn and ignore the option if not recognized
17846 # So say no if there are warnings
17847 if test -s conftest.err; then
17848 # Append any errors to the config.log.
17849 cat conftest.err 1>&5
17850 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17852 if diff conftest.exp conftest.er2 >/dev/null; then
17853 lt_cv_prog_compiler_static_works_CXX=yes
17854 fi
17855 else
17856 lt_cv_prog_compiler_static_works_CXX=yes
17857 fi
17858 fi
17859 $RM -r conftest*
17860 LDFLAGS=$save_LDFLAGS
17861
17862fi
17863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17864$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17865
17866if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17867 :
17868else
17869 lt_prog_compiler_static_CXX=
17870fi
17871
17872
17873
17874
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17876$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17877if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17878 $as_echo_n "(cached) " >&6
17879else
17880 lt_cv_prog_compiler_c_o_CXX=no
17881 $RM -r conftest 2>/dev/null
17882 mkdir conftest
17883 cd conftest
17884 mkdir out
17885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17886
17887 lt_compiler_flag="-o out/conftest2.$ac_objext"
17888 # Insert the option either (1) after the last *FLAGS variable, or
17889 # (2) before a word containing "conftest.", or (3) at the end.
17890 # Note that $ac_compile itself does not contain backslashes and begins
17891 # with a dollar sign (not a hyphen), so the echo should work correctly.
17892 lt_compile=`echo "$ac_compile" | $SED \
17893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17895 -e 's:$: $lt_compiler_flag:'`
17896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17897 (eval "$lt_compile" 2>out/conftest.err)
17898 ac_status=$?
17899 cat out/conftest.err >&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17902 then
17903 # The compiler can only warn and ignore the option if not recognized
17904 # So say no if there are warnings
17905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17908 lt_cv_prog_compiler_c_o_CXX=yes
17909 fi
17910 fi
17911 chmod u+w . 2>&5
17912 $RM conftest*
17913 # SGI C++ compiler will create directory out/ii_files/ for
17914 # template instantiation
17915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17916 $RM out/* && rmdir out
17917 cd ..
17918 $RM -r conftest
17919 $RM conftest*
17920
17921fi
17922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17923$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17924
17925
17926
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17928$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17929if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17930 $as_echo_n "(cached) " >&6
17931else
17932 lt_cv_prog_compiler_c_o_CXX=no
17933 $RM -r conftest 2>/dev/null
17934 mkdir conftest
17935 cd conftest
17936 mkdir out
17937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17938
17939 lt_compiler_flag="-o out/conftest2.$ac_objext"
17940 # Insert the option either (1) after the last *FLAGS variable, or
17941 # (2) before a word containing "conftest.", or (3) at the end.
17942 # Note that $ac_compile itself does not contain backslashes and begins
17943 # with a dollar sign (not a hyphen), so the echo should work correctly.
17944 lt_compile=`echo "$ac_compile" | $SED \
17945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17947 -e 's:$: $lt_compiler_flag:'`
17948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17949 (eval "$lt_compile" 2>out/conftest.err)
17950 ac_status=$?
17951 cat out/conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17954 then
17955 # The compiler can only warn and ignore the option if not recognized
17956 # So say no if there are warnings
17957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17960 lt_cv_prog_compiler_c_o_CXX=yes
17961 fi
17962 fi
17963 chmod u+w . 2>&5
17964 $RM conftest*
17965 # SGI C++ compiler will create directory out/ii_files/ for
17966 # template instantiation
17967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17968 $RM out/* && rmdir out
17969 cd ..
17970 $RM -r conftest
17971 $RM conftest*
17972
17973fi
17974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17975$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17976
17977
17978
17979
17980hard_links=nottested
17981if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17982 # do not overwrite the value of need_locks provided by the user
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17984$as_echo_n "checking if we can lock with hard links... " >&6; }
17985 hard_links=yes
17986 $RM conftest*
17987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17988 touch conftest.a
17989 ln conftest.a conftest.b 2>&5 || hard_links=no
17990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17992$as_echo "$hard_links" >&6; }
17993 if test no = "$hard_links"; then
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17995$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17996 need_locks=warn
17997 fi
17998else
17999 need_locks=no
18000fi
18001
18002
18003
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18005$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18006
18007 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18008 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18009 case $host_os in
18010 aix[4-9]*)
18011 # If we're using GNU nm, then we don't want the "-C" option.
18012 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18013 # Without the "-l" option, or with the "-B" option, AIX nm treats
18014 # weak defined symbols like other global defined symbols, whereas
18015 # GNU nm marks them as "W".
18016 # While the 'weak' keyword is ignored in the Export File, we need
18017 # it in the Import File for the 'aix-soname' feature, so we have
18018 # to replace the "-B" option with "-P" for AIX nm.
18019 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18020 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
18021 else
18022 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
18023 fi
18024 ;;
18025 pw32*)
18026 export_symbols_cmds_CXX=$ltdll_cmds
18027 ;;
18028 cygwin* | mingw* | cegcc*)
18029 case $cc_basename in
18030 cl*)
18031 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18032 ;;
18033 *)
18034 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18035 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18036 ;;
18037 esac
18038 ;;
18039 linux* | k*bsd*-gnu | gnu*)
18040 link_all_deplibs_CXX=no
18041 ;;
18042 *)
18043 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18044 ;;
18045 esac
18046
18047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18048$as_echo "$ld_shlibs_CXX" >&6; }
18049test no = "$ld_shlibs_CXX" && can_build_shared=no
18050
18051with_gnu_ld_CXX=$with_gnu_ld
18052
18053
18054
18055
18056
18057
18058#
18059# Do we need to explicitly link libc?
18060#
18061case "x$archive_cmds_need_lc_CXX" in
18062x|xyes)
18063 # Assume -lc should be added
18064 archive_cmds_need_lc_CXX=yes
18065
18066 if test yes,yes = "$GCC,$enable_shared"; then
18067 case $archive_cmds_CXX in
18068 *'~'*)
18069 # FIXME: we may have to deal with multi-command sequences.
18070 ;;
18071 '$CC '*)
18072 # Test whether the compiler implicitly links with -lc since on some
18073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18074 # to ld, don't add -lc before -lgcc.
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18076$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18077if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18078 $as_echo_n "(cached) " >&6
18079else
18080 $RM conftest*
18081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18082
18083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18084 (eval $ac_compile) 2>&5
18085 ac_status=$?
18086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18087 test $ac_status = 0; } 2>conftest.err; then
18088 soname=conftest
18089 lib=conftest
18090 libobjs=conftest.$ac_objext
18091 deplibs=
18092 wl=$lt_prog_compiler_wl_CXX
18093 pic_flag=$lt_prog_compiler_pic_CXX
18094 compiler_flags=-v
18095 linker_flags=-v
18096 verstring=
18097 output_objdir=.
18098 libname=conftest
18099 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18100 allow_undefined_flag_CXX=
18101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18102 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18103 ac_status=$?
18104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18105 test $ac_status = 0; }
18106 then
18107 lt_cv_archive_cmds_need_lc_CXX=no
18108 else
18109 lt_cv_archive_cmds_need_lc_CXX=yes
18110 fi
18111 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18112 else
18113 cat conftest.err 1>&5
18114 fi
18115 $RM conftest*
18116
18117fi
18118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18119$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18120 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18121 ;;
18122 esac
18123 fi
18124 ;;
18125esac
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18189$as_echo_n "checking dynamic linker characteristics... " >&6; }
18190
18191library_names_spec=
18192libname_spec='lib$name'
18193soname_spec=
18194shrext_cmds=.so
18195postinstall_cmds=
18196postuninstall_cmds=
18197finish_cmds=
18198finish_eval=
18199shlibpath_var=
18200shlibpath_overrides_runpath=unknown
18201version_type=none
18202dynamic_linker="$host_os ld.so"
18203sys_lib_dlsearch_path_spec="/lib /usr/lib"
18204need_lib_prefix=unknown
18205hardcode_into_libs=no
18206
18207# when you set need_version to no, make sure it does not cause -set_version
18208# flags to be left without arguments
18209need_version=unknown
18210
18211
18212
18213case $host_os in
18214aix3*)
18215 version_type=linux # correct to gnu/linux during the next big refactor
18216 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18217 shlibpath_var=LIBPATH
18218
18219 # AIX 3 has no versioning support, so we append a major version to the name.
18220 soname_spec='$libname$release$shared_ext$major'
18221 ;;
18222
18223aix[4-9]*)
18224 version_type=linux # correct to gnu/linux during the next big refactor
18225 need_lib_prefix=no
18226 need_version=no
18227 hardcode_into_libs=yes
18228 if test ia64 = "$host_cpu"; then
18229 # AIX 5 supports IA64
18230 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18231 shlibpath_var=LD_LIBRARY_PATH
18232 else
18233 # With GCC up to 2.95.x, collect2 would create an import file
18234 # for dependence libraries. The import file would start with
18235 # the line '#! .'. This would cause the generated library to
18236 # depend on '.', always an invalid library. This was fixed in
18237 # development snapshots of GCC prior to 3.0.
18238 case $host_os in
18239 aix4 | aix4.[01] | aix4.[01].*)
18240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18241 echo ' yes '
18242 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18243 :
18244 else
18245 can_build_shared=no
18246 fi
18247 ;;
18248 esac
18249 # Using Import Files as archive members, it is possible to support
18250 # filename-based versioning of shared library archives on AIX. While
18251 # this would work for both with and without runtime linking, it will
18252 # prevent static linking of such archives. So we do filename-based
18253 # shared library versioning with .so extension only, which is used
18254 # when both runtime linking and shared linking is enabled.
18255 # Unfortunately, runtime linking may impact performance, so we do
18256 # not want this to be the default eventually. Also, we use the
18257 # versioned .so libs for executables only if there is the -brtl
18258 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18259 # To allow for filename-based versioning support, we need to create
18260 # libNAME.so.V as an archive file, containing:
18261 # *) an Import File, referring to the versioned filename of the
18262 # archive as well as the shared archive member, telling the
18263 # bitwidth (32 or 64) of that shared object, and providing the
18264 # list of exported symbols of that shared object, eventually
18265 # decorated with the 'weak' keyword
18266 # *) the shared object with the F_LOADONLY flag set, to really avoid
18267 # it being seen by the linker.
18268 # At run time we better use the real file rather than another symlink,
18269 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18270
18271 case $with_aix_soname,$aix_use_runtimelinking in
18272 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18273 # soname into executable. Probably we can add versioning support to
18274 # collect2, so additional links can be useful in future.
18275 aix,yes) # traditional libtool
18276 dynamic_linker='AIX unversionable lib.so'
18277 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18278 # instead of lib<name>.a to let people know that these are not
18279 # typical AIX shared libraries.
18280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18281 ;;
18282 aix,no) # traditional AIX only
18283 dynamic_linker='AIX lib.a(lib.so.V)'
18284 # We preserve .a as extension for shared libraries through AIX4.2
18285 # and later when we are not doing run time linking.
18286 library_names_spec='$libname$release.a $libname.a'
18287 soname_spec='$libname$release$shared_ext$major'
18288 ;;
18289 svr4,*) # full svr4 only
18290 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18291 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18292 # We do not specify a path in Import Files, so LIBPATH fires.
18293 shlibpath_overrides_runpath=yes
18294 ;;
18295 *,yes) # both, prefer svr4
18296 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18297 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18298 # unpreferred sharedlib libNAME.a needs extra handling
18299 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18300 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18301 # We do not specify a path in Import Files, so LIBPATH fires.
18302 shlibpath_overrides_runpath=yes
18303 ;;
18304 *,no) # both, prefer aix
18305 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18306 library_names_spec='$libname$release.a $libname.a'
18307 soname_spec='$libname$release$shared_ext$major'
18308 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18309 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18310 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18311 ;;
18312 esac
18313 shlibpath_var=LIBPATH
18314 fi
18315 ;;
18316
18317amigaos*)
18318 case $host_cpu in
18319 powerpc)
18320 # Since July 2007 AmigaOS4 officially supports .so libraries.
18321 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18323 ;;
18324 m68k)
18325 library_names_spec='$libname.ixlibrary $libname.a'
18326 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18327 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18328 ;;
18329 esac
18330 ;;
18331
18332beos*)
18333 library_names_spec='$libname$shared_ext'
18334 dynamic_linker="$host_os ld.so"
18335 shlibpath_var=LIBRARY_PATH
18336 ;;
18337
18338bsdi[45]*)
18339 version_type=linux # correct to gnu/linux during the next big refactor
18340 need_version=no
18341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18342 soname_spec='$libname$release$shared_ext$major'
18343 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18346 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18347 # the default ld.so.conf also contains /usr/contrib/lib and
18348 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18349 # libtool to hard-code these into programs
18350 ;;
18351
18352cygwin* | mingw* | pw32* | cegcc*)
18353 version_type=windows
18354 shrext_cmds=.dll
18355 need_version=no
18356 need_lib_prefix=no
18357
18358 case $GCC,$cc_basename in
18359 yes,*)
18360 # gcc
18361 library_names_spec='$libname.dll.a'
18362 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18363 postinstall_cmds='base_file=`basename \$file`~
18364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18365 dldir=$destdir/`dirname \$dlpath`~
18366 test -d \$dldir || mkdir -p \$dldir~
18367 $install_prog $dir/$dlname \$dldir/$dlname~
18368 chmod a+x \$dldir/$dlname~
18369 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18370 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18371 fi'
18372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18373 dlpath=$dir/\$dldll~
18374 $RM \$dlpath'
18375 shlibpath_overrides_runpath=yes
18376
18377 case $host_os in
18378 cygwin*)
18379 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18380 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18381
18382 ;;
18383 mingw* | cegcc*)
18384 # MinGW DLLs use traditional 'lib' prefix
18385 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18386 ;;
18387 pw32*)
18388 # pw32 DLLs use 'pw' prefix rather than 'lib'
18389 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18390 ;;
18391 esac
18392 dynamic_linker='Win32 ld.exe'
18393 ;;
18394
18395 *,cl*)
18396 # Native MSVC
18397 libname_spec='$name'
18398 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18399 library_names_spec='$libname.dll.lib'
18400
18401 case $build_os in
18402 mingw*)
18403 sys_lib_search_path_spec=
18404 lt_save_ifs=$IFS
18405 IFS=';'
18406 for lt_path in $LIB
18407 do
18408 IFS=$lt_save_ifs
18409 # Let DOS variable expansion print the short 8.3 style file name.
18410 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18411 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18412 done
18413 IFS=$lt_save_ifs
18414 # Convert to MSYS style.
18415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18416 ;;
18417 cygwin*)
18418 # Convert to unix form, then to dos form, then back to unix form
18419 # but this time dos style (no spaces!) so that the unix form looks
18420 # like /cygdrive/c/PROGRA~1:/cygdr...
18421 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18422 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18423 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18424 ;;
18425 *)
18426 sys_lib_search_path_spec=$LIB
18427 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18428 # It is most probably a Windows format PATH.
18429 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18430 else
18431 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18432 fi
18433 # FIXME: find the short name or the path components, as spaces are
18434 # common. (e.g. "Program Files" -> "PROGRA~1")
18435 ;;
18436 esac
18437
18438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18439 postinstall_cmds='base_file=`basename \$file`~
18440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18441 dldir=$destdir/`dirname \$dlpath`~
18442 test -d \$dldir || mkdir -p \$dldir~
18443 $install_prog $dir/$dlname \$dldir/$dlname'
18444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18445 dlpath=$dir/\$dldll~
18446 $RM \$dlpath'
18447 shlibpath_overrides_runpath=yes
18448 dynamic_linker='Win32 link.exe'
18449 ;;
18450
18451 *)
18452 # Assume MSVC wrapper
18453 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18454 dynamic_linker='Win32 ld.exe'
18455 ;;
18456 esac
18457 # FIXME: first we should search . and the directory the executable is in
18458 shlibpath_var=PATH
18459 ;;
18460
18461darwin* | rhapsody*)
18462 dynamic_linker="$host_os dyld"
18463 version_type=darwin
18464 need_lib_prefix=no
18465 need_version=no
18466 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18467 soname_spec='$libname$release$major$shared_ext'
18468 shlibpath_overrides_runpath=yes
18469 shlibpath_var=DYLD_LIBRARY_PATH
18470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18471
18472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18473 ;;
18474
18475dgux*)
18476 version_type=linux # correct to gnu/linux during the next big refactor
18477 need_lib_prefix=no
18478 need_version=no
18479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18480 soname_spec='$libname$release$shared_ext$major'
18481 shlibpath_var=LD_LIBRARY_PATH
18482 ;;
18483
18484freebsd* | dragonfly*)
18485 # DragonFly does not have aout. When/if they implement a new
18486 # versioning mechanism, adjust this.
18487 if test -x /usr/bin/objformat; then
18488 objformat=`/usr/bin/objformat`
18489 else
18490 case $host_os in
18491 freebsd[23].*) objformat=aout ;;
18492 *) objformat=elf ;;
18493 esac
18494 fi
18495 version_type=freebsd-$objformat
18496 case $version_type in
18497 freebsd-elf*)
18498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18499 soname_spec='$libname$release$shared_ext$major'
18500 need_version=no
18501 need_lib_prefix=no
18502 ;;
18503 freebsd-*)
18504 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18505 need_version=yes
18506 ;;
18507 esac
18508 shlibpath_var=LD_LIBRARY_PATH
18509 case $host_os in
18510 freebsd2.*)
18511 shlibpath_overrides_runpath=yes
18512 ;;
18513 freebsd3.[01]* | freebsdelf3.[01]*)
18514 shlibpath_overrides_runpath=yes
18515 hardcode_into_libs=yes
18516 ;;
18517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18519 shlibpath_overrides_runpath=no
18520 hardcode_into_libs=yes
18521 ;;
18522 *) # from 4.6 on, and DragonFly
18523 shlibpath_overrides_runpath=yes
18524 hardcode_into_libs=yes
18525 ;;
18526 esac
18527 ;;
18528
18529haiku*)
18530 version_type=linux # correct to gnu/linux during the next big refactor
18531 need_lib_prefix=no
18532 need_version=no
18533 dynamic_linker="$host_os runtime_loader"
18534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18535 soname_spec='$libname$release$shared_ext$major'
18536 shlibpath_var=LIBRARY_PATH
18537 shlibpath_overrides_runpath=no
18538 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18539 hardcode_into_libs=yes
18540 ;;
18541
18542hpux9* | hpux10* | hpux11*)
18543 # Give a soname corresponding to the major version so that dld.sl refuses to
18544 # link against other versions.
18545 version_type=sunos
18546 need_lib_prefix=no
18547 need_version=no
18548 case $host_cpu in
18549 ia64*)
18550 shrext_cmds='.so'
18551 hardcode_into_libs=yes
18552 dynamic_linker="$host_os dld.so"
18553 shlibpath_var=LD_LIBRARY_PATH
18554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18556 soname_spec='$libname$release$shared_ext$major'
18557 if test 32 = "$HPUX_IA64_MODE"; then
18558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18559 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18560 else
18561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18562 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18563 fi
18564 ;;
18565 hppa*64*)
18566 shrext_cmds='.sl'
18567 hardcode_into_libs=yes
18568 dynamic_linker="$host_os dld.sl"
18569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18572 soname_spec='$libname$release$shared_ext$major'
18573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18575 ;;
18576 *)
18577 shrext_cmds='.sl'
18578 dynamic_linker="$host_os dld.sl"
18579 shlibpath_var=SHLIB_PATH
18580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18582 soname_spec='$libname$release$shared_ext$major'
18583 ;;
18584 esac
18585 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18586 postinstall_cmds='chmod 555 $lib'
18587 # or fails outright, so override atomically:
18588 install_override_mode=555
18589 ;;
18590
18591interix[3-9]*)
18592 version_type=linux # correct to gnu/linux during the next big refactor
18593 need_lib_prefix=no
18594 need_version=no
18595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18596 soname_spec='$libname$release$shared_ext$major'
18597 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18598 shlibpath_var=LD_LIBRARY_PATH
18599 shlibpath_overrides_runpath=no
18600 hardcode_into_libs=yes
18601 ;;
18602
18603irix5* | irix6* | nonstopux*)
18604 case $host_os in
18605 nonstopux*) version_type=nonstopux ;;
18606 *)
18607 if test yes = "$lt_cv_prog_gnu_ld"; then
18608 version_type=linux # correct to gnu/linux during the next big refactor
18609 else
18610 version_type=irix
18611 fi ;;
18612 esac
18613 need_lib_prefix=no
18614 need_version=no
18615 soname_spec='$libname$release$shared_ext$major'
18616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18617 case $host_os in
18618 irix5* | nonstopux*)
18619 libsuff= shlibsuff=
18620 ;;
18621 *)
18622 case $LD in # libtool.m4 will add one of these switches to LD
18623 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18624 libsuff= shlibsuff= libmagic=32-bit;;
18625 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18626 libsuff=32 shlibsuff=N32 libmagic=N32;;
18627 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18628 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18629 *) libsuff= shlibsuff= libmagic=never-match;;
18630 esac
18631 ;;
18632 esac
18633 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18634 shlibpath_overrides_runpath=no
18635 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18636 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18637 hardcode_into_libs=yes
18638 ;;
18639
18640# No shared lib support for Linux oldld, aout, or coff.
18641linux*oldld* | linux*aout* | linux*coff*)
18642 dynamic_linker=no
18643 ;;
18644
18645linux*android*)
18646 version_type=none # Android doesn't support versioned libraries.
18647 need_lib_prefix=no
18648 need_version=no
18649 library_names_spec='$libname$release$shared_ext'
18650 soname_spec='$libname$release$shared_ext'
18651 finish_cmds=
18652 shlibpath_var=LD_LIBRARY_PATH
18653 shlibpath_overrides_runpath=yes
18654
18655 # This implies no fast_install, which is unacceptable.
18656 # Some rework will be needed to allow for fast_install
18657 # before this can be enabled.
18658 hardcode_into_libs=yes
18659
18660 dynamic_linker='Android linker'
18661 # Don't embed -rpath directories since the linker doesn't support them.
18662 hardcode_libdir_flag_spec_CXX='-L$libdir'
18663 ;;
18664
18665# This must be glibc/ELF.
18666linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18667 version_type=linux # correct to gnu/linux during the next big refactor
18668 need_lib_prefix=no
18669 need_version=no
18670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18671 soname_spec='$libname$release$shared_ext$major'
18672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18673 shlibpath_var=LD_LIBRARY_PATH
18674 shlibpath_overrides_runpath=no
18675
18676 # Some binutils ld are patched to set DT_RUNPATH
18677 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18678 $as_echo_n "(cached) " >&6
18679else
18680 lt_cv_shlibpath_overrides_runpath=no
18681 save_LDFLAGS=$LDFLAGS
18682 save_libdir=$libdir
18683 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18684 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686/* end confdefs.h. */
18687
18688int
18689main ()
18690{
18691
18692 ;
18693 return 0;
18694}
18695_ACEOF
18696if ac_fn_cxx_try_link "$LINENO"; then :
18697 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18698 lt_cv_shlibpath_overrides_runpath=yes
18699fi
18700fi
18701rm -f core conftest.err conftest.$ac_objext \
18702 conftest$ac_exeext conftest.$ac_ext
18703 LDFLAGS=$save_LDFLAGS
18704 libdir=$save_libdir
18705
18706fi
18707
18708 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18709
18710 # This implies no fast_install, which is unacceptable.
18711 # Some rework will be needed to allow for fast_install
18712 # before this can be enabled.
18713 hardcode_into_libs=yes
18714
18715 # Ideally, we could use ldconfig to report *all* directores which are
18716 # searched for libraries, however this is still not possible. Aside from not
18717 # being certain /sbin/ldconfig is available, command
18718 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18719 # even though it is searched at run-time. Try to do the best guess by
18720 # appending ld.so.conf contents (and includes) to the search path.
18721 if test -f /etc/ld.so.conf; then
18722 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' ' '`
18723 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18724 fi
18725
18726 # We used to test for /lib/ld.so.1 and disable shared libraries on
18727 # powerpc, because MkLinux only supported shared libraries with the
18728 # GNU dynamic linker. Since this was broken with cross compilers,
18729 # most powerpc-linux boxes support dynamic linking these days and
18730 # people can always --disable-shared, the test was removed, and we
18731 # assume the GNU/Linux dynamic linker is in use.
18732 dynamic_linker='GNU/Linux ld.so'
18733 ;;
18734
18735netbsdelf*-gnu)
18736 version_type=linux
18737 need_lib_prefix=no
18738 need_version=no
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18740 soname_spec='${libname}${release}${shared_ext}$major'
18741 shlibpath_var=LD_LIBRARY_PATH
18742 shlibpath_overrides_runpath=no
18743 hardcode_into_libs=yes
18744 dynamic_linker='NetBSD ld.elf_so'
18745 ;;
18746
18747netbsd*)
18748 version_type=sunos
18749 need_lib_prefix=no
18750 need_version=no
18751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18752 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18754 dynamic_linker='NetBSD (a.out) ld.so'
18755 else
18756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18757 soname_spec='$libname$release$shared_ext$major'
18758 dynamic_linker='NetBSD ld.elf_so'
18759 fi
18760 shlibpath_var=LD_LIBRARY_PATH
18761 shlibpath_overrides_runpath=yes
18762 hardcode_into_libs=yes
18763 ;;
18764
18765newsos6)
18766 version_type=linux # correct to gnu/linux during the next big refactor
18767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18768 shlibpath_var=LD_LIBRARY_PATH
18769 shlibpath_overrides_runpath=yes
18770 ;;
18771
18772*nto* | *qnx*)
18773 version_type=qnx
18774 need_lib_prefix=no
18775 need_version=no
18776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18777 soname_spec='$libname$release$shared_ext$major'
18778 shlibpath_var=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath=no
18780 hardcode_into_libs=yes
18781 dynamic_linker='ldqnx.so'
18782 ;;
18783
18784openbsd* | bitrig*)
18785 version_type=sunos
18786 sys_lib_dlsearch_path_spec=/usr/lib
18787 need_lib_prefix=no
18788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18789 need_version=no
18790 else
18791 need_version=yes
18792 fi
18793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18795 shlibpath_var=LD_LIBRARY_PATH
18796 shlibpath_overrides_runpath=yes
18797 ;;
18798
18799os2*)
18800 libname_spec='$name'
18801 version_type=windows
18802 shrext_cmds=.dll
18803 need_version=no
18804 need_lib_prefix=no
18805 # OS/2 can only load a DLL with a base name of 8 characters or less.
18806 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18807 v=$($ECHO $release$versuffix | tr -d .-);
18808 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18809 $ECHO $n$v`$shared_ext'
18810 library_names_spec='${libname}_dll.$libext'
18811 dynamic_linker='OS/2 ld.exe'
18812 shlibpath_var=BEGINLIBPATH
18813 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18815 postinstall_cmds='base_file=`basename \$file`~
18816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18817 dldir=$destdir/`dirname \$dlpath`~
18818 test -d \$dldir || mkdir -p \$dldir~
18819 $install_prog $dir/$dlname \$dldir/$dlname~
18820 chmod a+x \$dldir/$dlname~
18821 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18822 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18823 fi'
18824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18825 dlpath=$dir/\$dldll~
18826 $RM \$dlpath'
18827 ;;
18828
18829osf3* | osf4* | osf5*)
18830 version_type=osf
18831 need_lib_prefix=no
18832 need_version=no
18833 soname_spec='$libname$release$shared_ext$major'
18834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18835 shlibpath_var=LD_LIBRARY_PATH
18836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18838 ;;
18839
18840rdos*)
18841 dynamic_linker=no
18842 ;;
18843
18844solaris*)
18845 version_type=linux # correct to gnu/linux during the next big refactor
18846 need_lib_prefix=no
18847 need_version=no
18848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18849 soname_spec='$libname$release$shared_ext$major'
18850 shlibpath_var=LD_LIBRARY_PATH
18851 shlibpath_overrides_runpath=yes
18852 hardcode_into_libs=yes
18853 # ldd complains unless libraries are executable
18854 postinstall_cmds='chmod +x $lib'
18855 ;;
18856
18857sunos4*)
18858 version_type=sunos
18859 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18861 shlibpath_var=LD_LIBRARY_PATH
18862 shlibpath_overrides_runpath=yes
18863 if test yes = "$with_gnu_ld"; then
18864 need_lib_prefix=no
18865 fi
18866 need_version=yes
18867 ;;
18868
18869sysv4 | sysv4.3*)
18870 version_type=linux # correct to gnu/linux during the next big refactor
18871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18872 soname_spec='$libname$release$shared_ext$major'
18873 shlibpath_var=LD_LIBRARY_PATH
18874 case $host_vendor in
18875 sni)
18876 shlibpath_overrides_runpath=no
18877 need_lib_prefix=no
18878 runpath_var=LD_RUN_PATH
18879 ;;
18880 siemens)
18881 need_lib_prefix=no
18882 ;;
18883 motorola)
18884 need_lib_prefix=no
18885 need_version=no
18886 shlibpath_overrides_runpath=no
18887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18888 ;;
18889 esac
18890 ;;
18891
18892sysv4*MP*)
18893 if test -d /usr/nec; then
18894 version_type=linux # correct to gnu/linux during the next big refactor
18895 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18896 soname_spec='$libname$shared_ext.$major'
18897 shlibpath_var=LD_LIBRARY_PATH
18898 fi
18899 ;;
18900
18901sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18902 version_type=sco
18903 need_lib_prefix=no
18904 need_version=no
18905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18906 soname_spec='$libname$release$shared_ext$major'
18907 shlibpath_var=LD_LIBRARY_PATH
18908 shlibpath_overrides_runpath=yes
18909 hardcode_into_libs=yes
18910 if test yes = "$with_gnu_ld"; then
18911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18912 else
18913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18914 case $host_os in
18915 sco3.2v5*)
18916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18917 ;;
18918 esac
18919 fi
18920 sys_lib_dlsearch_path_spec='/usr/lib'
18921 ;;
18922
18923tpf*)
18924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18925 version_type=linux # correct to gnu/linux during the next big refactor
18926 need_lib_prefix=no
18927 need_version=no
18928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18929 shlibpath_var=LD_LIBRARY_PATH
18930 shlibpath_overrides_runpath=no
18931 hardcode_into_libs=yes
18932 ;;
18933
18934uts4*)
18935 version_type=linux # correct to gnu/linux during the next big refactor
18936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18937 soname_spec='$libname$release$shared_ext$major'
18938 shlibpath_var=LD_LIBRARY_PATH
18939 ;;
18940
18941*)
18942 dynamic_linker=no
18943 ;;
18944esac
18945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18946$as_echo "$dynamic_linker" >&6; }
18947test no = "$dynamic_linker" && can_build_shared=no
18948
18949variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18950if test yes = "$GCC"; then
18951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18952fi
18953
18954if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18955 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18956fi
18957
18958if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18959 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18960fi
18961
18962# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18963configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18964
18965# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18966func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18967
18968# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18969configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19011$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19012hardcode_action_CXX=
19013if test -n "$hardcode_libdir_flag_spec_CXX" ||
19014 test -n "$runpath_var_CXX" ||
19015 test yes = "$hardcode_automatic_CXX"; then
19016
19017 # We can hardcode non-existent directories.
19018 if test no != "$hardcode_direct_CXX" &&
19019 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19020 # have to relink, otherwise we might link with an installed library
19021 # when we should be linking with a yet-to-be-installed one
19022 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19023 test no != "$hardcode_minus_L_CXX"; then
19024 # Linking always hardcodes the temporary library directory.
19025 hardcode_action_CXX=relink
19026 else
19027 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19028 hardcode_action_CXX=immediate
19029 fi
19030else
19031 # We cannot hardcode anything, or else we can only hardcode existing
19032 # directories.
19033 hardcode_action_CXX=unsupported
19034fi
19035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19036$as_echo "$hardcode_action_CXX" >&6; }
19037
19038if test relink = "$hardcode_action_CXX" ||
19039 test yes = "$inherit_rpath_CXX"; then
19040 # Fast installation is not supported
19041 enable_fast_install=no
19042elif test yes = "$shlibpath_overrides_runpath" ||
19043 test no = "$enable_shared"; then
19044 # Fast installation is not necessary
19045 enable_fast_install=needless
19046fi
19047
19048
19049
19050
19051
19052
19053
19054 fi # test -n "$compiler"
19055
19056 CC=$lt_save_CC
19057 CFLAGS=$lt_save_CFLAGS
19058 LDCXX=$LD
19059 LD=$lt_save_LD
19060 GCC=$lt_save_GCC
19061 with_gnu_ld=$lt_save_with_gnu_ld
19062 lt_cv_path_LDCXX=$lt_cv_path_LD
19063 lt_cv_path_LD=$lt_save_path_LD
19064 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19065 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19066fi # test yes != "$_lt_caught_CXX_error"
19067
19068ac_ext=c
19069ac_cpp='$CPP $CPPFLAGS'
19070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19072ac_compiler_gnu=$ac_cv_c_compiler_gnu
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088 ac_config_commands="$ac_config_commands libtool"
19089
19090
19091
19092
19093# Only expand once:
19094
19095
19096## --------------------- ##
19097## End of libtool code ##
19098## --------------------- ##
19099
19100#
19101# Verify if finally libtool shared libraries will be built
19102#
19103
19104case "x$enable_shared" in # ((
19105 xyes | xno)
19106 xc_lt_build_shared=$enable_shared
19107 ;;
19108 *)
19109 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
19110 ;;
19111esac
19112
19113#
19114# Verify if finally libtool static libraries will be built
19115#
19116
19117case "x$enable_static" in # ((
19118 xyes | xno)
19119 xc_lt_build_static=$enable_static
19120 ;;
19121 *)
19122 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
19123 ;;
19124esac
19125
19126#
19127# Verify if libtool shared libraries should be linked using flag -version-info
19128#
19129
19130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
19131$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
19132xc_lt_shlib_use_version_info='yes'
19133if test "x$version_type" = 'xnone'; then
19134 xc_lt_shlib_use_version_info='no'
19135fi
19136case $host_os in # (
19137 amigaos*)
19138 xc_lt_shlib_use_version_info='yes'
19139 ;;
19140esac
19141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
19142$as_echo "$xc_lt_shlib_use_version_info" >&6; }
19143
19144#
19145# Verify if libtool shared libraries should be linked using flag -no-undefined
19146#
19147
19148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
19149$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
19150xc_lt_shlib_use_no_undefined='no'
19151if test "x$allow_undefined" = 'xno'; then
19152 xc_lt_shlib_use_no_undefined='yes'
19153elif test "x$allow_undefined_flag" = 'xunsupported'; then
19154 xc_lt_shlib_use_no_undefined='yes'
19155fi
19156case $host_os in # (
19157 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
19158 xc_lt_shlib_use_no_undefined='yes'
19159 ;;
19160esac
19161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
19162$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
19163
19164#
19165# Verify if libtool shared libraries should be linked using flag -mimpure-text
19166#
19167
19168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
19169$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
19170xc_lt_shlib_use_mimpure_text='no'
19171case $host_os in # (
19172 solaris2*)
19173 if test "x$GCC" = 'xyes'; then
19174 xc_lt_shlib_use_mimpure_text='yes'
19175 fi
19176 ;;
19177esac
19178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
19179$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
19180
19181#
19182# Find out wether libtool libraries would be built wit PIC
19183#
19184
19185case "x$pic_mode" in # ((((
19186 xdefault)
19187 xc_lt_build_shared_with_pic='yes'
19188 xc_lt_build_static_with_pic='no'
19189 ;;
19190 xyes)
19191 xc_lt_build_shared_with_pic='yes'
19192 xc_lt_build_static_with_pic='yes'
19193 ;;
19194 xno)
19195 xc_lt_build_shared_with_pic='no'
19196 xc_lt_build_static_with_pic='no'
19197 ;;
19198 *)
19199 xc_lt_build_shared_with_pic='unknown'
19200 xc_lt_build_static_with_pic='unknown'
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
19202$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
19203 ;;
19204esac
19205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
19206$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
19207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
19208$as_echo "$xc_lt_build_shared_with_pic" >&6; }
19209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
19210$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
19211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
19212$as_echo "$xc_lt_build_static_with_pic" >&6; }
19213
19214#
19215# Verify if libtool shared libraries will be built while static not built
19216#
19217
19218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
19219$as_echo_n "checking whether to build shared libraries only... " >&6; }
19220if test "$xc_lt_build_shared" = 'yes' &&
19221 test "$xc_lt_build_static" = 'no'; then
19222 xc_lt_build_shared_only='yes'
19223else
19224 xc_lt_build_shared_only='no'
19225fi
19226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
19227$as_echo "$xc_lt_build_shared_only" >&6; }
19228
19229#
19230# Verify if libtool static libraries will be built while shared not built
19231#
19232
19233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
19234$as_echo_n "checking whether to build static libraries only... " >&6; }
19235if test "$xc_lt_build_static" = 'yes' &&
19236 test "$xc_lt_build_shared" = 'no'; then
19237 xc_lt_build_static_only='yes'
19238else
19239 xc_lt_build_static_only='no'
19240fi
19241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
19242$as_echo "$xc_lt_build_static_only" >&6; }
19243
19244
19245
19246
19247#
19248# Automake conditionals based on libtool related checks
19249#
19250
19251 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
19252 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE=
19253 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
19254else
19255 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
19256 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE=
19257fi
19258
19259 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
19260 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
19261 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
19262else
19263 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
19264 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
19265fi
19266
19267 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
19268 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
19269 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
19270else
19271 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
19272 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
19273fi
19274
19275
19276#
19277# Due to libtool and automake machinery limitations of not allowing
19278# specifying separate CPPFLAGS or CFLAGS when compiling objects for
19279# inclusion of these in shared or static libraries, we are forced to
19280# build using separate configure runs for shared and static libraries
19281# on systems where different CPPFLAGS or CFLAGS are mandatory in order
19282# to compile objects for each kind of library. Notice that relying on
19283# the '-DPIC' CFLAG that libtool provides is not valid given that the
19284# user might for example choose to build static libraries with PIC.
19285#
19286
19287#
19288# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
19289# targeting a static library and not building its shared counterpart.
19290#
19291
19292 if test "x$xc_lt_build_static_only" = 'xyes'; then
19293 USE_CPPFLAG_CARES_STATICLIB_TRUE=
19294 USE_CPPFLAG_CARES_STATICLIB_FALSE='#'
19295else
19296 USE_CPPFLAG_CARES_STATICLIB_TRUE='#'
19297 USE_CPPFLAG_CARES_STATICLIB_FALSE=
19298fi
19299
19300
19301#
19302# Make staticlib CPPFLAG variable and its definition visible in output
19303# files unconditionally, providing an empty definition unless strictly
19304# targeting a static library and not building its shared counterpart.
19305#
19306
19307CPPFLAG_CARES_STATICLIB=
19308if test "x$xc_lt_build_static_only" = 'xyes'; then
19309 CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB'
19310fi
19311
19312
19313
19314
19315 #
19316 compiler_id="unknown"
19317 compiler_num="0"
19318 #
19319 flags_dbg_all="unknown"
19320 flags_dbg_yes="unknown"
19321 flags_dbg_off="unknown"
19322 flags_opt_all="unknown"
19323 flags_opt_yes="unknown"
19324 flags_opt_off="unknown"
19325 #
19326 flags_prefer_cppflags="no"
19327 #
19328
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
19330$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
19331
19332 if test -z "$SED"; then
19333 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19334 fi
19335 if test -z "$GREP"; then
19336 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19337 fi
19338
19339 tmp_exp=""
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341/* end confdefs.h. */
19342
19343
19344#ifdef __DECC
19345CURL_DEF_TOKEN __DECC
19346#endif
19347
19348
19349_ACEOF
19350if ac_fn_c_try_cpp "$LINENO"; then :
19351
19352 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19353 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19354 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19355 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19356 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
19357 tmp_exp=""
19358 fi
19359
19360fi
19361rm -f conftest.err conftest.i conftest.$ac_ext
19362 if test -z "$tmp_exp"; then
19363 curl_cv_have_def___DECC=no
19364
19365 else
19366 curl_cv_have_def___DECC=yes
19367 curl_cv_def___DECC=$tmp_exp
19368
19369 fi
19370
19371
19372 if test -z "$SED"; then
19373 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19374 fi
19375 if test -z "$GREP"; then
19376 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19377 fi
19378
19379 tmp_exp=""
19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381/* end confdefs.h. */
19382
19383
19384#ifdef __DECC_VER
19385CURL_DEF_TOKEN __DECC_VER
19386#endif
19387
19388
19389_ACEOF
19390if ac_fn_c_try_cpp "$LINENO"; then :
19391
19392 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19393 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19394 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19395 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19396 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
19397 tmp_exp=""
19398 fi
19399
19400fi
19401rm -f conftest.err conftest.i conftest.$ac_ext
19402 if test -z "$tmp_exp"; then
19403 curl_cv_have_def___DECC_VER=no
19404
19405 else
19406 curl_cv_have_def___DECC_VER=yes
19407 curl_cv_def___DECC_VER=$tmp_exp
19408
19409 fi
19410
19411 if test "$curl_cv_have_def___DECC" = "yes" &&
19412 test "$curl_cv_have_def___DECC_VER" = "yes"; then
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19414$as_echo "yes" >&6; }
19415 compiler_id="DEC_C"
19416 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19417 flags_dbg_yes="-g2"
19418 flags_dbg_off="-g0"
19419 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
19420 flags_opt_yes="-O1"
19421 flags_opt_off="-O0"
19422 else
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19424$as_echo "no" >&6; }
19425 fi
19426
19427
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
19429$as_echo_n "checking if compiler is HP-UX C... " >&6; }
19430
19431 if test -z "$SED"; then
19432 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19433 fi
19434 if test -z "$GREP"; then
19435 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19436 fi
19437
19438 tmp_exp=""
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440/* end confdefs.h. */
19441
19442
19443#ifdef __HP_cc
19444CURL_DEF_TOKEN __HP_cc
19445#endif
19446
19447
19448_ACEOF
19449if ac_fn_c_try_cpp "$LINENO"; then :
19450
19451 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19452 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19453 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19454 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19455 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
19456 tmp_exp=""
19457 fi
19458
19459fi
19460rm -f conftest.err conftest.i conftest.$ac_ext
19461 if test -z "$tmp_exp"; then
19462 curl_cv_have_def___HP_cc=no
19463
19464 else
19465 curl_cv_have_def___HP_cc=yes
19466 curl_cv_def___HP_cc=$tmp_exp
19467
19468 fi
19469
19470 if test "$curl_cv_have_def___HP_cc" = "yes"; then
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19472$as_echo "yes" >&6; }
19473 compiler_id="HP_UX_C"
19474 flags_dbg_all="-g -s"
19475 flags_dbg_yes="-g"
19476 flags_dbg_off="-s"
19477 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
19478 flags_opt_yes="+O2"
19479 flags_opt_off="+O0"
19480 else
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19482$as_echo "no" >&6; }
19483 fi
19484
19485
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
19487$as_echo_n "checking if compiler is IBM C... " >&6; }
19488
19489 if test -z "$SED"; then
19490 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19491 fi
19492 if test -z "$GREP"; then
19493 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19494 fi
19495
19496 tmp_exp=""
19497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498/* end confdefs.h. */
19499
19500
19501#ifdef __IBMC__
19502CURL_DEF_TOKEN __IBMC__
19503#endif
19504
19505
19506_ACEOF
19507if ac_fn_c_try_cpp "$LINENO"; then :
19508
19509 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19510 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19511 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19512 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19513 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
19514 tmp_exp=""
19515 fi
19516
19517fi
19518rm -f conftest.err conftest.i conftest.$ac_ext
19519 if test -z "$tmp_exp"; then
19520 curl_cv_have_def___IBMC__=no
19521
19522 else
19523 curl_cv_have_def___IBMC__=yes
19524 curl_cv_def___IBMC__=$tmp_exp
19525
19526 fi
19527
19528 if test "$curl_cv_have_def___IBMC__" = "yes"; then
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19530$as_echo "yes" >&6; }
19531 compiler_id="IBM_C"
19532 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19533 flags_dbg_yes="-g"
19534 flags_dbg_off=""
19535 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
19536 flags_opt_all="$flags_opt_all -qnooptimize"
19537 flags_opt_all="$flags_opt_all -qoptimize=0"
19538 flags_opt_all="$flags_opt_all -qoptimize=1"
19539 flags_opt_all="$flags_opt_all -qoptimize=2"
19540 flags_opt_all="$flags_opt_all -qoptimize=3"
19541 flags_opt_all="$flags_opt_all -qoptimize=4"
19542 flags_opt_all="$flags_opt_all -qoptimize=5"
19543 flags_opt_yes="-O2"
19544 flags_opt_off="-qnooptimize"
19545 flags_prefer_cppflags="yes"
19546 else
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19548$as_echo "no" >&6; }
19549 fi
19550
19551
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
19553$as_echo_n "checking if compiler is Intel C... " >&6; }
19554
19555 if test -z "$SED"; then
19556 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19557 fi
19558 if test -z "$GREP"; then
19559 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19560 fi
19561
19562 tmp_exp=""
19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19564/* end confdefs.h. */
19565
19566
19567#ifdef __INTEL_COMPILER
19568CURL_DEF_TOKEN __INTEL_COMPILER
19569#endif
19570
19571
19572_ACEOF
19573if ac_fn_c_try_cpp "$LINENO"; then :
19574
19575 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19576 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19577 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19578 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19579 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
19580 tmp_exp=""
19581 fi
19582
19583fi
19584rm -f conftest.err conftest.i conftest.$ac_ext
19585 if test -z "$tmp_exp"; then
19586 curl_cv_have_def___INTEL_COMPILER=no
19587
19588 else
19589 curl_cv_have_def___INTEL_COMPILER=yes
19590 curl_cv_def___INTEL_COMPILER=$tmp_exp
19591
19592 fi
19593
19594 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19596$as_echo "yes" >&6; }
19597 compiler_num="$curl_cv_def___INTEL_COMPILER"
19598
19599 if test -z "$SED"; then
19600 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19601 fi
19602 if test -z "$GREP"; then
19603 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19604 fi
19605
19606 tmp_exp=""
19607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608/* end confdefs.h. */
19609
19610
19611#ifdef __unix__
19612CURL_DEF_TOKEN __unix__
19613#endif
19614
19615
19616_ACEOF
19617if ac_fn_c_try_cpp "$LINENO"; then :
19618
19619 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19620 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19621 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19622 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19623 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
19624 tmp_exp=""
19625 fi
19626
19627fi
19628rm -f conftest.err conftest.i conftest.$ac_ext
19629 if test -z "$tmp_exp"; then
19630 curl_cv_have_def___unix__=no
19631
19632 else
19633 curl_cv_have_def___unix__=yes
19634 curl_cv_def___unix__=$tmp_exp
19635
19636 fi
19637
19638 if test "$curl_cv_have_def___unix__" = "yes"; then
19639 compiler_id="INTEL_UNIX_C"
19640 flags_dbg_all="-g -g0"
19641 flags_dbg_yes="-g"
19642 flags_dbg_off="-g0"
19643 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
19644 flags_opt_yes="-O2"
19645 flags_opt_off="-O0"
19646 else
19647 compiler_id="INTEL_WINDOWS_C"
19648 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
19649 flags_dbg_all="$flags_dbg_all /debug"
19650 flags_dbg_all="$flags_dbg_all /debug:none"
19651 flags_dbg_all="$flags_dbg_all /debug:minimal"
19652 flags_dbg_all="$flags_dbg_all /debug:partial"
19653 flags_dbg_all="$flags_dbg_all /debug:full"
19654 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
19655 flags_dbg_all="$flags_dbg_all /debug:extended"
19656 flags_dbg_yes="/Zi /Oy-"
19657 flags_dbg_off="/debug:none /Oy-"
19658 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
19659 flags_opt_yes="/O2"
19660 flags_opt_off="/Od"
19661 fi
19662 else
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19664$as_echo "no" >&6; }
19665 fi
19666
19667
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
19669$as_echo_n "checking if compiler is clang... " >&6; }
19670
19671 if test -z "$SED"; then
19672 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19673 fi
19674 if test -z "$GREP"; then
19675 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19676 fi
19677
19678 tmp_exp=""
19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680/* end confdefs.h. */
19681
19682
19683#ifdef __clang__
19684CURL_DEF_TOKEN __clang__
19685#endif
19686
19687
19688_ACEOF
19689if ac_fn_c_try_cpp "$LINENO"; then :
19690
19691 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19692 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19693 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19694 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19695 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
19696 tmp_exp=""
19697 fi
19698
19699fi
19700rm -f conftest.err conftest.i conftest.$ac_ext
19701 if test -z "$tmp_exp"; then
19702 curl_cv_have_def___clang__=no
19703
19704 else
19705 curl_cv_have_def___clang__=yes
19706 curl_cv_def___clang__=$tmp_exp
19707
19708 fi
19709
19710 if test "$curl_cv_have_def___clang__" = "yes"; then
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19712$as_echo "yes" >&6; }
19713 compiler_id="CLANG"
19714 clangver=`$CC -dumpversion`
19715 clangvhi=`echo $clangver | cut -d . -f1`
19716 clangvlo=`echo $clangver | cut -d . -f2`
19717 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
19718 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19719 flags_dbg_all="$flags_dbg_all -ggdb"
19720 flags_dbg_all="$flags_dbg_all -gstabs"
19721 flags_dbg_all="$flags_dbg_all -gstabs+"
19722 flags_dbg_all="$flags_dbg_all -gcoff"
19723 flags_dbg_all="$flags_dbg_all -gxcoff"
19724 flags_dbg_all="$flags_dbg_all -gdwarf-2"
19725 flags_dbg_all="$flags_dbg_all -gvms"
19726 flags_dbg_yes="-g"
19727 flags_dbg_off="-g0"
19728 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
19729 flags_opt_yes="-Os"
19730 flags_opt_off="-O0"
19731 else
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19733$as_echo "no" >&6; }
19734 fi
19735
19736
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
19738$as_echo_n "checking if compiler is GNU C... " >&6; }
19739
19740 if test -z "$SED"; then
19741 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19742 fi
19743 if test -z "$GREP"; then
19744 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19745 fi
19746
19747 tmp_exp=""
19748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19749/* end confdefs.h. */
19750
19751
19752#ifdef __GNUC__
19753CURL_DEF_TOKEN __GNUC__
19754#endif
19755
19756
19757_ACEOF
19758if ac_fn_c_try_cpp "$LINENO"; then :
19759
19760 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19761 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19762 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19763 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19764 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
19765 tmp_exp=""
19766 fi
19767
19768fi
19769rm -f conftest.err conftest.i conftest.$ac_ext
19770 if test -z "$tmp_exp"; then
19771 curl_cv_have_def___GNUC__=no
19772
19773 else
19774 curl_cv_have_def___GNUC__=yes
19775 curl_cv_def___GNUC__=$tmp_exp
19776
19777 fi
19778
19779 if test "$curl_cv_have_def___GNUC__" = "yes" &&
19780 test "$compiler_id" = "unknown"; then
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19782$as_echo "yes" >&6; }
19783 compiler_id="GNU_C"
19784 gccver=`$CC -dumpversion`
19785 gccvhi=`echo $gccver | cut -d . -f1`
19786 gccvlo=`echo $gccver | cut -d . -f2`
19787 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
19788 flags_dbg_all="-g -g0 -g1 -g2 -g3"
19789 flags_dbg_all="$flags_dbg_all -ggdb"
19790 flags_dbg_all="$flags_dbg_all -gstabs"
19791 flags_dbg_all="$flags_dbg_all -gstabs+"
19792 flags_dbg_all="$flags_dbg_all -gcoff"
19793 flags_dbg_all="$flags_dbg_all -gxcoff"
19794 flags_dbg_all="$flags_dbg_all -gdwarf-2"
19795 flags_dbg_all="$flags_dbg_all -gvms"
19796 flags_dbg_yes="-g"
19797 flags_dbg_off="-g0"
19798 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
19799 flags_opt_yes="-O2"
19800 flags_opt_off="-O0"
19801
19802 if test -z "$SED"; then
19803 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19804 fi
19805 if test -z "$GREP"; then
19806 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19807 fi
19808
19809 tmp_exp=""
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811/* end confdefs.h. */
19812
19813
19814#ifdef _WIN32
19815CURL_DEF_TOKEN _WIN32
19816#endif
19817
19818
19819_ACEOF
19820if ac_fn_c_try_cpp "$LINENO"; then :
19821
19822 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19823 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19824 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19825 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19826 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
19827 tmp_exp=""
19828 fi
19829
19830fi
19831rm -f conftest.err conftest.i conftest.$ac_ext
19832 if test -z "$tmp_exp"; then
19833 curl_cv_have_def__WIN32=no
19834
19835 else
19836 curl_cv_have_def__WIN32=yes
19837 curl_cv_def__WIN32=$tmp_exp
19838
19839 fi
19840
19841 else
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19843$as_echo "no" >&6; }
19844 fi
19845
19846
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
19848$as_echo_n "checking if compiler is LCC... " >&6; }
19849
19850 if test -z "$SED"; then
19851 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19852 fi
19853 if test -z "$GREP"; then
19854 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19855 fi
19856
19857 tmp_exp=""
19858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859/* end confdefs.h. */
19860
19861
19862#ifdef __LCC__
19863CURL_DEF_TOKEN __LCC__
19864#endif
19865
19866
19867_ACEOF
19868if ac_fn_c_try_cpp "$LINENO"; then :
19869
19870 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19871 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19872 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19873 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19874 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
19875 tmp_exp=""
19876 fi
19877
19878fi
19879rm -f conftest.err conftest.i conftest.$ac_ext
19880 if test -z "$tmp_exp"; then
19881 curl_cv_have_def___LCC__=no
19882
19883 else
19884 curl_cv_have_def___LCC__=yes
19885 curl_cv_def___LCC__=$tmp_exp
19886
19887 fi
19888
19889 if test "$curl_cv_have_def___LCC__" = "yes"; then
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19891$as_echo "yes" >&6; }
19892 compiler_id="LCC"
19893 flags_dbg_all="-g"
19894 flags_dbg_yes="-g"
19895 flags_dbg_off=""
19896 flags_opt_all=""
19897 flags_opt_yes=""
19898 flags_opt_off=""
19899 else
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19901$as_echo "no" >&6; }
19902 fi
19903
19904
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
19906$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
19907
19908 if test -z "$SED"; then
19909 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19910 fi
19911 if test -z "$GREP"; then
19912 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19913 fi
19914
19915 tmp_exp=""
19916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917/* end confdefs.h. */
19918
19919
19920#ifdef __GNUC__
19921CURL_DEF_TOKEN __GNUC__
19922#endif
19923
19924
19925_ACEOF
19926if ac_fn_c_try_cpp "$LINENO"; then :
19927
19928 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19929 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19930 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19931 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19932 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
19933 tmp_exp=""
19934 fi
19935
19936fi
19937rm -f conftest.err conftest.i conftest.$ac_ext
19938 if test -z "$tmp_exp"; then
19939 curl_cv_have_def___GNUC__=no
19940
19941 else
19942 curl_cv_have_def___GNUC__=yes
19943 curl_cv_def___GNUC__=$tmp_exp
19944
19945 fi
19946
19947
19948 if test -z "$SED"; then
19949 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19950 fi
19951 if test -z "$GREP"; then
19952 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19953 fi
19954
19955 tmp_exp=""
19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957/* end confdefs.h. */
19958
19959
19960#ifdef _COMPILER_VERSION
19961CURL_DEF_TOKEN _COMPILER_VERSION
19962#endif
19963
19964
19965_ACEOF
19966if ac_fn_c_try_cpp "$LINENO"; then :
19967
19968 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
19969 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
19970 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
19971 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
19972 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
19973 tmp_exp=""
19974 fi
19975
19976fi
19977rm -f conftest.err conftest.i conftest.$ac_ext
19978 if test -z "$tmp_exp"; then
19979 curl_cv_have_def__COMPILER_VERSION=no
19980
19981 else
19982 curl_cv_have_def__COMPILER_VERSION=yes
19983 curl_cv_def__COMPILER_VERSION=$tmp_exp
19984
19985 fi
19986
19987
19988 if test -z "$SED"; then
19989 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
19990 fi
19991 if test -z "$GREP"; then
19992 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
19993 fi
19994
19995 tmp_exp=""
19996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997/* end confdefs.h. */
19998
19999
20000#ifdef _SGI_COMPILER_VERSION
20001CURL_DEF_TOKEN _SGI_COMPILER_VERSION
20002#endif
20003
20004
20005_ACEOF
20006if ac_fn_c_try_cpp "$LINENO"; then :
20007
20008 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20009 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20010 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20011 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20012 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
20013 tmp_exp=""
20014 fi
20015
20016fi
20017rm -f conftest.err conftest.i conftest.$ac_ext
20018 if test -z "$tmp_exp"; then
20019 curl_cv_have_def__SGI_COMPILER_VERSION=no
20020
20021 else
20022 curl_cv_have_def__SGI_COMPILER_VERSION=yes
20023 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
20024
20025 fi
20026
20027 if test "$curl_cv_have_def___GNUC__" = "no" &&
20028 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
20029 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20031$as_echo "yes" >&6; }
20032 compiler_id="SGI_MIPSPRO_C"
20033 flags_dbg_all="-g -g0 -g1 -g2 -g3"
20034 flags_dbg_yes="-g"
20035 flags_dbg_off="-g0"
20036 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
20037 flags_opt_yes="-O2"
20038 flags_opt_off="-O0"
20039 else
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20041$as_echo "no" >&6; }
20042 fi
20043
20044
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
20046$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
20047
20048 if test -z "$SED"; then
20049 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20050 fi
20051 if test -z "$GREP"; then
20052 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20053 fi
20054
20055 tmp_exp=""
20056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20057/* end confdefs.h. */
20058
20059
20060#ifdef __GNUC__
20061CURL_DEF_TOKEN __GNUC__
20062#endif
20063
20064
20065_ACEOF
20066if ac_fn_c_try_cpp "$LINENO"; then :
20067
20068 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20069 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20070 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20071 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20072 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
20073 tmp_exp=""
20074 fi
20075
20076fi
20077rm -f conftest.err conftest.i conftest.$ac_ext
20078 if test -z "$tmp_exp"; then
20079 curl_cv_have_def___GNUC__=no
20080
20081 else
20082 curl_cv_have_def___GNUC__=yes
20083 curl_cv_def___GNUC__=$tmp_exp
20084
20085 fi
20086
20087
20088 if test -z "$SED"; then
20089 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20090 fi
20091 if test -z "$GREP"; then
20092 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20093 fi
20094
20095 tmp_exp=""
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097/* end confdefs.h. */
20098
20099
20100#ifdef __sgi
20101CURL_DEF_TOKEN __sgi
20102#endif
20103
20104
20105_ACEOF
20106if ac_fn_c_try_cpp "$LINENO"; then :
20107
20108 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20109 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20110 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20111 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20112 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
20113 tmp_exp=""
20114 fi
20115
20116fi
20117rm -f conftest.err conftest.i conftest.$ac_ext
20118 if test -z "$tmp_exp"; then
20119 curl_cv_have_def___sgi=no
20120
20121 else
20122 curl_cv_have_def___sgi=yes
20123 curl_cv_def___sgi=$tmp_exp
20124
20125 fi
20126
20127 if test "$curl_cv_have_def___GNUC__" = "no" &&
20128 test "$curl_cv_have_def___sgi" = "yes" &&
20129 test "$compiler_id" = "unknown"; then
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20131$as_echo "yes" >&6; }
20132 compiler_id="SGI_MIPS_C"
20133 flags_dbg_all="-g -g0 -g1 -g2 -g3"
20134 flags_dbg_yes="-g"
20135 flags_dbg_off="-g0"
20136 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
20137 flags_opt_yes="-O2"
20138 flags_opt_off="-O0"
20139 else
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20141$as_echo "no" >&6; }
20142 fi
20143
20144
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
20146$as_echo_n "checking if compiler is SunPro C... " >&6; }
20147
20148 if test -z "$SED"; then
20149 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20150 fi
20151 if test -z "$GREP"; then
20152 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20153 fi
20154
20155 tmp_exp=""
20156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20157/* end confdefs.h. */
20158
20159
20160#ifdef __SUNPRO_C
20161CURL_DEF_TOKEN __SUNPRO_C
20162#endif
20163
20164
20165_ACEOF
20166if ac_fn_c_try_cpp "$LINENO"; then :
20167
20168 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20169 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20170 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20171 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20172 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
20173 tmp_exp=""
20174 fi
20175
20176fi
20177rm -f conftest.err conftest.i conftest.$ac_ext
20178 if test -z "$tmp_exp"; then
20179 curl_cv_have_def___SUNPRO_C=no
20180
20181 else
20182 curl_cv_have_def___SUNPRO_C=yes
20183 curl_cv_def___SUNPRO_C=$tmp_exp
20184
20185 fi
20186
20187 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20189$as_echo "yes" >&6; }
20190 compiler_id="SUNPRO_C"
20191 flags_dbg_all="-g -s"
20192 flags_dbg_yes="-g"
20193 flags_dbg_off="-s"
20194 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
20195 flags_opt_yes="-xO2"
20196 flags_opt_off=""
20197 else
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199$as_echo "no" >&6; }
20200 fi
20201
20202
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
20204$as_echo_n "checking if compiler is Tiny C... " >&6; }
20205
20206 if test -z "$SED"; then
20207 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20208 fi
20209 if test -z "$GREP"; then
20210 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20211 fi
20212
20213 tmp_exp=""
20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215/* end confdefs.h. */
20216
20217
20218#ifdef __TINYC__
20219CURL_DEF_TOKEN __TINYC__
20220#endif
20221
20222
20223_ACEOF
20224if ac_fn_c_try_cpp "$LINENO"; then :
20225
20226 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20227 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20228 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20229 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20230 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
20231 tmp_exp=""
20232 fi
20233
20234fi
20235rm -f conftest.err conftest.i conftest.$ac_ext
20236 if test -z "$tmp_exp"; then
20237 curl_cv_have_def___TINYC__=no
20238
20239 else
20240 curl_cv_have_def___TINYC__=yes
20241 curl_cv_def___TINYC__=$tmp_exp
20242
20243 fi
20244
20245 if test "$curl_cv_have_def___TINYC__" = "yes"; then
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20247$as_echo "yes" >&6; }
20248 compiler_id="TINY_C"
20249 flags_dbg_all="-g -b"
20250 flags_dbg_yes="-g"
20251 flags_dbg_off=""
20252 flags_opt_all=""
20253 flags_opt_yes=""
20254 flags_opt_off=""
20255 else
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20257$as_echo "no" >&6; }
20258 fi
20259
20260
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
20262$as_echo_n "checking if compiler is Watcom C... " >&6; }
20263
20264 if test -z "$SED"; then
20265 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20266 fi
20267 if test -z "$GREP"; then
20268 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20269 fi
20270
20271 tmp_exp=""
20272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20273/* end confdefs.h. */
20274
20275
20276#ifdef __WATCOMC__
20277CURL_DEF_TOKEN __WATCOMC__
20278#endif
20279
20280
20281_ACEOF
20282if ac_fn_c_try_cpp "$LINENO"; then :
20283
20284 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20285 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20286 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20287 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20288 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
20289 tmp_exp=""
20290 fi
20291
20292fi
20293rm -f conftest.err conftest.i conftest.$ac_ext
20294 if test -z "$tmp_exp"; then
20295 curl_cv_have_def___WATCOMC__=no
20296
20297 else
20298 curl_cv_have_def___WATCOMC__=yes
20299 curl_cv_def___WATCOMC__=$tmp_exp
20300
20301 fi
20302
20303 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20305$as_echo "yes" >&6; }
20306
20307 if test -z "$SED"; then
20308 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
20309 fi
20310 if test -z "$GREP"; then
20311 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
20312 fi
20313
20314 tmp_exp=""
20315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316/* end confdefs.h. */
20317
20318
20319#ifdef __UNIX__
20320CURL_DEF_TOKEN __UNIX__
20321#endif
20322
20323
20324_ACEOF
20325if ac_fn_c_try_cpp "$LINENO"; then :
20326
20327 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
20328 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
20329 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
20330 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
20331 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
20332 tmp_exp=""
20333 fi
20334
20335fi
20336rm -f conftest.err conftest.i conftest.$ac_ext
20337 if test -z "$tmp_exp"; then
20338 curl_cv_have_def___UNIX__=no
20339
20340 else
20341 curl_cv_have_def___UNIX__=yes
20342 curl_cv_def___UNIX__=$tmp_exp
20343
20344 fi
20345
20346 if test "$curl_cv_have_def___UNIX__" = "yes"; then
20347 compiler_id="WATCOM_UNIX_C"
20348 flags_dbg_all="-g1 -g1+ -g2 -g3"
20349 flags_dbg_yes="-g2"
20350 flags_dbg_off=""
20351 flags_opt_all="-O0 -O1 -O2 -O3"
20352 flags_opt_yes="-O2"
20353 flags_opt_off="-O0"
20354 else
20355 compiler_id="WATCOM_WINDOWS_C"
20356 flags_dbg_all=""
20357 flags_dbg_yes=""
20358 flags_dbg_off=""
20359 flags_opt_all=""
20360 flags_opt_yes=""
20361 flags_opt_off=""
20362 fi
20363 else
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20365$as_echo "no" >&6; }
20366 fi
20367
20368 #
20369 if test "$compiler_id" = "unknown"; then
20370 cat <<_EOF 1>&2
20371***
20372*** Warning: This configure script does not have information about the
20373*** compiler you are using, relative to the flags required to enable or
20374*** disable generation of debug info, optimization options or warnings.
20375***
20376*** Whatever settings are present in CFLAGS will be used for this run.
20377***
20378*** If you wish to help the c-ares project to better support your compiler
20379*** you can report this and the required info on the c-ares development
20380*** mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
20381***
20382_EOF
20383 fi
20384
20385
20386squeeze() {
20387 _sqz_result=""
20388 eval _sqz_input=\$$1
20389 for _sqz_token in $_sqz_input; do
20390 if test -z "$_sqz_result"; then
20391 _sqz_result="$_sqz_token"
20392 else
20393 _sqz_result="$_sqz_result $_sqz_token"
20394 fi
20395 done
20396 eval $1=\$_sqz_result
20397 return 0
20398}
20399
20400
20401 #
20402 if test "$compiler_id" != "unknown"; then
20403 #
20404 if test "$compiler_id" = "GNU_C" ||
20405 test "$compiler_id" = "CLANG"; then
20406
20407 if test "$compiler_id" = "GNU_C" ||
20408 test "$compiler_id" = "CLANG"; then
20409 tmp_has_include="no"
20410 tmp_chg_FLAGS="$CFLAGS"
20411 for word1 in $tmp_chg_FLAGS; do
20412 case "$word1" in
20413 -I*)
20414 tmp_has_include="yes"
20415 ;;
20416 esac
20417 done
20418 if test "$tmp_has_include" = "yes"; then
20419 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
20420 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
20421 CFLAGS="$tmp_chg_FLAGS"
20422 squeeze CFLAGS
20423 fi
20424 tmp_has_include="no"
20425 tmp_chg_FLAGS="$CPPFLAGS"
20426 for word1 in $tmp_chg_FLAGS; do
20427 case "$word1" in
20428 -I*)
20429 tmp_has_include="yes"
20430 ;;
20431 esac
20432 done
20433 if test "$tmp_has_include" = "yes"; then
20434 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
20435 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
20436 CPPFLAGS="$tmp_chg_FLAGS"
20437 squeeze CPPFLAGS
20438 fi
20439 fi
20440
20441 fi
20442 #
20443 tmp_save_CPPFLAGS="$CPPFLAGS"
20444 tmp_save_CFLAGS="$CFLAGS"
20445 tmp_CPPFLAGS=""
20446 tmp_CFLAGS=""
20447 #
20448 case "$compiler_id" in
20449 #
20450 CLANG)
20451 #
20452 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
20453 ;;
20454 #
20455 DEC_C)
20456 #
20457 tmp_CFLAGS="$tmp_CFLAGS -std1"
20458 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
20459 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
20460 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
20461 ;;
20462 #
20463 GNU_C)
20464 #
20465 tmp_CFLAGS="$tmp_CFLAGS"
20466 ;;
20467 #
20468 HP_UX_C)
20469 #
20470 tmp_CFLAGS="$tmp_CFLAGS -z"
20471 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
20472 ;;
20473 #
20474 IBM_C)
20475 #
20476 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
20477 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
20478 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
20479 ;;
20480 #
20481 INTEL_UNIX_C)
20482 #
20483 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
20484 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
20485 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
20486 ;;
20487 #
20488 INTEL_WINDOWS_C)
20489 #
20490 tmp_CFLAGS="$tmp_CFLAGS"
20491 ;;
20492 #
20493 LCC)
20494 #
20495 tmp_CFLAGS="$tmp_CFLAGS -n"
20496 ;;
20497 #
20498 SGI_MIPS_C)
20499 #
20500 tmp_CFLAGS="$tmp_CFLAGS"
20501 ;;
20502 #
20503 SGI_MIPSPRO_C)
20504 #
20505 tmp_CFLAGS="$tmp_CFLAGS"
20506 ;;
20507 #
20508 SUNPRO_C)
20509 #
20510 tmp_CFLAGS="$tmp_CFLAGS"
20511 ;;
20512 #
20513 TINY_C)
20514 #
20515 tmp_CFLAGS="$tmp_CFLAGS"
20516 ;;
20517 #
20518 WATCOM_UNIX_C)
20519 #
20520 tmp_CFLAGS="$tmp_CFLAGS"
20521 ;;
20522 #
20523 WATCOM_WINDOWS_C)
20524 #
20525 tmp_CFLAGS="$tmp_CFLAGS"
20526 ;;
20527 #
20528 esac
20529 #
20530 squeeze tmp_CPPFLAGS
20531 squeeze tmp_CFLAGS
20532 #
20533 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
20535$as_echo_n "checking if compiler accepts some basic options... " >&6; }
20536 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
20537 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20538 squeeze CPPFLAGS
20539 squeeze CFLAGS
20540
20541 tmp_compiler_works="unknown"
20542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543/* end confdefs.h. */
20544
20545
20546
20547int main (void)
20548{
20549
20550 int i = 1;
20551 return i;
20552
20553 ;
20554 return 0;
20555}
20556
20557_ACEOF
20558if ac_fn_c_try_compile "$LINENO"; then :
20559
20560 tmp_compiler_works="yes"
20561
20562else
20563
20564 tmp_compiler_works="no"
20565 echo " " >&6
20566 sed 's/^/cc-fail: /' conftest.err >&6
20567 echo " " >&6
20568
20569fi
20570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20571 if test "$tmp_compiler_works" = "yes"; then
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573/* end confdefs.h. */
20574
20575
20576
20577int main (void)
20578{
20579
20580 int i = 1;
20581 return i;
20582
20583 ;
20584 return 0;
20585}
20586
20587_ACEOF
20588if ac_fn_c_try_link "$LINENO"; then :
20589
20590 tmp_compiler_works="yes"
20591
20592else
20593
20594 tmp_compiler_works="no"
20595 echo " " >&6
20596 sed 's/^/link-fail: /' conftest.err >&6
20597 echo " " >&6
20598
20599fi
20600rm -f core conftest.err conftest.$ac_objext \
20601 conftest$ac_exeext conftest.$ac_ext
20602 fi
20603 if test "x$cross_compiling" != "xyes" &&
20604 test "$tmp_compiler_works" = "yes"; then
20605 if test "$cross_compiling" = yes; then :
20606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20608as_fn_error $? "cannot run test program while cross compiling
20609See \`config.log' for more details" "$LINENO" 5; }
20610else
20611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20612/* end confdefs.h. */
20613
20614
20615# ifdef __STDC__
20616# include <stdlib.h>
20617# endif
20618
20619int main (void)
20620{
20621
20622 int i = 0;
20623 exit(i);
20624
20625 ;
20626 return 0;
20627}
20628
20629_ACEOF
20630if ac_fn_c_try_run "$LINENO"; then :
20631
20632 tmp_compiler_works="yes"
20633
20634else
20635
20636 tmp_compiler_works="no"
20637 echo " " >&6
20638 echo "run-fail: test program exited with status $ac_status" >&6
20639 echo " " >&6
20640
20641fi
20642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20643 conftest.$ac_objext conftest.beam conftest.$ac_ext
20644fi
20645
20646 fi
20647 if test "$tmp_compiler_works" = "yes"; then
20648
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20650$as_echo "yes" >&6; }
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20652$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
20653
20654 else
20655
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20657$as_echo "no" >&6; }
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20659$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
20660 CPPFLAGS="$tmp_save_CPPFLAGS"
20661 CFLAGS="$tmp_save_CFLAGS"
20662
20663 fi
20664
20665 fi
20666 #
20667 fi
20668
20669
20670 #
20671 if test "$compiler_id" != "unknown"; then
20672 #
20673 tmp_save_CFLAGS="$CFLAGS"
20674 tmp_save_CPPFLAGS="$CPPFLAGS"
20675 #
20676 tmp_options=""
20677 tmp_CFLAGS="$CFLAGS"
20678 tmp_CPPFLAGS="$CPPFLAGS"
20679
20680 ac_var_stripped=""
20681 for word1 in $tmp_CFLAGS; do
20682 ac_var_strip_word="no"
20683 for word2 in $flags_dbg_all; do
20684 if test "$word1" = "$word2"; then
20685 ac_var_strip_word="yes"
20686 fi
20687 done
20688 if test "$ac_var_strip_word" = "no"; then
20689 ac_var_stripped="$ac_var_stripped $word1"
20690 fi
20691 done
20692 tmp_CFLAGS="$ac_var_stripped"
20693 squeeze tmp_CFLAGS
20694
20695
20696 ac_var_stripped=""
20697 for word1 in $tmp_CPPFLAGS; do
20698 ac_var_strip_word="no"
20699 for word2 in $flags_dbg_all; do
20700 if test "$word1" = "$word2"; then
20701 ac_var_strip_word="yes"
20702 fi
20703 done
20704 if test "$ac_var_strip_word" = "no"; then
20705 ac_var_stripped="$ac_var_stripped $word1"
20706 fi
20707 done
20708 tmp_CPPFLAGS="$ac_var_stripped"
20709 squeeze tmp_CPPFLAGS
20710
20711 #
20712 if test "$want_debug" = "yes"; then
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
20714$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
20715 tmp_options="$flags_dbg_yes"
20716 fi
20717 if test "$want_debug" = "no"; then
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
20719$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
20720 tmp_options="$flags_dbg_off"
20721 fi
20722 #
20723 if test "$flags_prefer_cppflags" = "yes"; then
20724 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
20725 CFLAGS="$tmp_CFLAGS"
20726 else
20727 CPPFLAGS="$tmp_CPPFLAGS"
20728 CFLAGS="$tmp_CFLAGS $tmp_options"
20729 fi
20730 squeeze CPPFLAGS
20731 squeeze CFLAGS
20732
20733 tmp_compiler_works="unknown"
20734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20735/* end confdefs.h. */
20736
20737
20738
20739int main (void)
20740{
20741
20742 int i = 1;
20743 return i;
20744
20745 ;
20746 return 0;
20747}
20748
20749_ACEOF
20750if ac_fn_c_try_compile "$LINENO"; then :
20751
20752 tmp_compiler_works="yes"
20753
20754else
20755
20756 tmp_compiler_works="no"
20757 echo " " >&6
20758 sed 's/^/cc-fail: /' conftest.err >&6
20759 echo " " >&6
20760
20761fi
20762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20763 if test "$tmp_compiler_works" = "yes"; then
20764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765/* end confdefs.h. */
20766
20767
20768
20769int main (void)
20770{
20771
20772 int i = 1;
20773 return i;
20774
20775 ;
20776 return 0;
20777}
20778
20779_ACEOF
20780if ac_fn_c_try_link "$LINENO"; then :
20781
20782 tmp_compiler_works="yes"
20783
20784else
20785
20786 tmp_compiler_works="no"
20787 echo " " >&6
20788 sed 's/^/link-fail: /' conftest.err >&6
20789 echo " " >&6
20790
20791fi
20792rm -f core conftest.err conftest.$ac_objext \
20793 conftest$ac_exeext conftest.$ac_ext
20794 fi
20795 if test "x$cross_compiling" != "xyes" &&
20796 test "$tmp_compiler_works" = "yes"; then
20797 if test "$cross_compiling" = yes; then :
20798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20800as_fn_error $? "cannot run test program while cross compiling
20801See \`config.log' for more details" "$LINENO" 5; }
20802else
20803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804/* end confdefs.h. */
20805
20806
20807# ifdef __STDC__
20808# include <stdlib.h>
20809# endif
20810
20811int main (void)
20812{
20813
20814 int i = 0;
20815 exit(i);
20816
20817 ;
20818 return 0;
20819}
20820
20821_ACEOF
20822if ac_fn_c_try_run "$LINENO"; then :
20823
20824 tmp_compiler_works="yes"
20825
20826else
20827
20828 tmp_compiler_works="no"
20829 echo " " >&6
20830 echo "run-fail: test program exited with status $ac_status" >&6
20831 echo " " >&6
20832
20833fi
20834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20835 conftest.$ac_objext conftest.beam conftest.$ac_ext
20836fi
20837
20838 fi
20839 if test "$tmp_compiler_works" = "yes"; then
20840
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20842$as_echo "yes" >&6; }
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
20844$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
20845
20846 else
20847
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20849$as_echo "no" >&6; }
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
20851$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
20852 CPPFLAGS="$tmp_save_CPPFLAGS"
20853 CFLAGS="$tmp_save_CFLAGS"
20854
20855 fi
20856
20857 #
20858 fi
20859
20860
20861 #
20862 if test "$compiler_id" != "unknown"; then
20863 #
20864 tmp_save_CFLAGS="$CFLAGS"
20865 tmp_save_CPPFLAGS="$CPPFLAGS"
20866 #
20867 tmp_options=""
20868 tmp_CFLAGS="$CFLAGS"
20869 tmp_CPPFLAGS="$CPPFLAGS"
20870 honor_optimize_option="yes"
20871 #
20872 #
20873 if test "$want_optimize" = "assume_no" ||
20874 test "$want_optimize" = "assume_yes"; then
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
20876$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
20877
20878
20879 ac_var_match_word="no"
20880 for word1 in $tmp_CFLAGS; do
20881 for word2 in $flags_opt_all; do
20882 if test "$word1" = "$word2"; then
20883 ac_var_match_word="yes"
20884 fi
20885 done
20886 done
20887
20888 if test "$ac_var_match_word" = "yes"; then
20889
20890 honor_optimize_option="no"
20891
20892
20893 fi
20894
20895
20896
20897 ac_var_match_word="no"
20898 for word1 in $tmp_CPPFLAGS; do
20899 for word2 in $flags_opt_all; do
20900 if test "$word1" = "$word2"; then
20901 ac_var_match_word="yes"
20902 fi
20903 done
20904 done
20905
20906 if test "$ac_var_match_word" = "yes"; then
20907
20908 honor_optimize_option="no"
20909
20910
20911 fi
20912
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
20914$as_echo "$honor_optimize_option" >&6; }
20915 if test "$honor_optimize_option" = "yes"; then
20916 if test "$want_optimize" = "assume_yes"; then
20917 want_optimize="yes"
20918 fi
20919 if test "$want_optimize" = "assume_no"; then
20920 want_optimize="no"
20921 fi
20922 fi
20923 fi
20924 #
20925 if test "$honor_optimize_option" = "yes"; then
20926
20927 ac_var_stripped=""
20928 for word1 in $tmp_CFLAGS; do
20929 ac_var_strip_word="no"
20930 for word2 in $flags_opt_all; do
20931 if test "$word1" = "$word2"; then
20932 ac_var_strip_word="yes"
20933 fi
20934 done
20935 if test "$ac_var_strip_word" = "no"; then
20936 ac_var_stripped="$ac_var_stripped $word1"
20937 fi
20938 done
20939 tmp_CFLAGS="$ac_var_stripped"
20940 squeeze tmp_CFLAGS
20941
20942
20943 ac_var_stripped=""
20944 for word1 in $tmp_CPPFLAGS; do
20945 ac_var_strip_word="no"
20946 for word2 in $flags_opt_all; do
20947 if test "$word1" = "$word2"; then
20948 ac_var_strip_word="yes"
20949 fi
20950 done
20951 if test "$ac_var_strip_word" = "no"; then
20952 ac_var_stripped="$ac_var_stripped $word1"
20953 fi
20954 done
20955 tmp_CPPFLAGS="$ac_var_stripped"
20956 squeeze tmp_CPPFLAGS
20957
20958 if test "$want_optimize" = "yes"; then
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
20960$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
20961 tmp_options="$flags_opt_yes"
20962 fi
20963 if test "$want_optimize" = "no"; then
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
20965$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
20966 tmp_options="$flags_opt_off"
20967 fi
20968 if test "$flags_prefer_cppflags" = "yes"; then
20969 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
20970 CFLAGS="$tmp_CFLAGS"
20971 else
20972 CPPFLAGS="$tmp_CPPFLAGS"
20973 CFLAGS="$tmp_CFLAGS $tmp_options"
20974 fi
20975 squeeze CPPFLAGS
20976 squeeze CFLAGS
20977
20978 tmp_compiler_works="unknown"
20979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980/* end confdefs.h. */
20981
20982
20983
20984int main (void)
20985{
20986
20987 int i = 1;
20988 return i;
20989
20990 ;
20991 return 0;
20992}
20993
20994_ACEOF
20995if ac_fn_c_try_compile "$LINENO"; then :
20996
20997 tmp_compiler_works="yes"
20998
20999else
21000
21001 tmp_compiler_works="no"
21002 echo " " >&6
21003 sed 's/^/cc-fail: /' conftest.err >&6
21004 echo " " >&6
21005
21006fi
21007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 if test "$tmp_compiler_works" = "yes"; then
21009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010/* end confdefs.h. */
21011
21012
21013
21014int main (void)
21015{
21016
21017 int i = 1;
21018 return i;
21019
21020 ;
21021 return 0;
21022}
21023
21024_ACEOF
21025if ac_fn_c_try_link "$LINENO"; then :
21026
21027 tmp_compiler_works="yes"
21028
21029else
21030
21031 tmp_compiler_works="no"
21032 echo " " >&6
21033 sed 's/^/link-fail: /' conftest.err >&6
21034 echo " " >&6
21035
21036fi
21037rm -f core conftest.err conftest.$ac_objext \
21038 conftest$ac_exeext conftest.$ac_ext
21039 fi
21040 if test "x$cross_compiling" != "xyes" &&
21041 test "$tmp_compiler_works" = "yes"; then
21042 if test "$cross_compiling" = yes; then :
21043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21045as_fn_error $? "cannot run test program while cross compiling
21046See \`config.log' for more details" "$LINENO" 5; }
21047else
21048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21049/* end confdefs.h. */
21050
21051
21052# ifdef __STDC__
21053# include <stdlib.h>
21054# endif
21055
21056int main (void)
21057{
21058
21059 int i = 0;
21060 exit(i);
21061
21062 ;
21063 return 0;
21064}
21065
21066_ACEOF
21067if ac_fn_c_try_run "$LINENO"; then :
21068
21069 tmp_compiler_works="yes"
21070
21071else
21072
21073 tmp_compiler_works="no"
21074 echo " " >&6
21075 echo "run-fail: test program exited with status $ac_status" >&6
21076 echo " " >&6
21077
21078fi
21079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21080 conftest.$ac_objext conftest.beam conftest.$ac_ext
21081fi
21082
21083 fi
21084 if test "$tmp_compiler_works" = "yes"; then
21085
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21087$as_echo "yes" >&6; }
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
21089$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
21090
21091 else
21092
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21094$as_echo "no" >&6; }
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
21096$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
21097 CPPFLAGS="$tmp_save_CPPFLAGS"
21098 CFLAGS="$tmp_save_CFLAGS"
21099
21100 fi
21101
21102 fi
21103 #
21104 fi
21105
21106
21107 #
21108 if test "$compiler_id" != "unknown"; then
21109 #
21110 tmp_save_CPPFLAGS="$CPPFLAGS"
21111 tmp_save_CFLAGS="$CFLAGS"
21112 tmp_CPPFLAGS=""
21113 tmp_CFLAGS=""
21114 #
21115 case "$compiler_id" in
21116 #
21117 CLANG)
21118 #
21119 if test "$want_warnings" = "yes"; then
21120 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
21121 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
21122 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
21123 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
21124 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
21125 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
21126 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
21127 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
21128 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
21129 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
21130 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
21131 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
21132 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
21133 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
21134 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
21135 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
21136 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
21137 #
21138 if test "$compiler_num" -ge "101"; then
21139 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
21140 fi
21141 fi
21142 ;;
21143 #
21144 DEC_C)
21145 #
21146 if test "$want_warnings" = "yes"; then
21147 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
21148 fi
21149 ;;
21150 #
21151 GNU_C)
21152 #
21153 if test "$want_warnings" = "yes"; then
21154 #
21155 if test "x$cross_compiling" != "xyes" ||
21156 test "$compiler_num" -ge "300"; then
21157 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
21158 fi
21159 #
21160 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
21161 #
21162 if test "$compiler_num" -ge "104"; then
21163 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
21164 if test "x$cross_compiling" != "xyes" ||
21165 test "$compiler_num" -ge "300"; then
21166 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
21167 fi
21168 fi
21169 #
21170 if test "$compiler_num" -ge "207"; then
21171 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
21172 if test "x$cross_compiling" != "xyes" ||
21173 test "$compiler_num" -ge "300"; then
21174 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
21175 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
21176 fi
21177 fi
21178 #
21179 if test "$compiler_num" -ge "295"; then
21180 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
21181 fi
21182 #
21183 if test "$compiler_num" -ge "296"; then
21184 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
21185 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
21186 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
21187 fi
21188 #
21189 if test "$compiler_num" -ge "297"; then
21190 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
21191 fi
21192 #
21193 if test "$compiler_num" -ge "300"; then
21194 tmp_CFLAGS="$tmp_CFLAGS"
21195 fi
21196 #
21197 if test "$compiler_num" -ge "303"; then
21198 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
21199 fi
21200 #
21201 if test "$compiler_num" -ge "304"; then
21202 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
21203 fi
21204 #
21205 if test "$compiler_num" -ge "400"; then
21206 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
21207 fi
21208 #
21209 if test "$compiler_num" -ge "402"; then
21210 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
21211 fi
21212 #
21213 if test "$compiler_num" -ge "403"; then
21214 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
21215 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
21216 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
21217 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
21218 fi
21219 #
21220 if test "$compiler_num" -ge "405"; then
21221 if test "$curl_cv_have_def__WIN32" = "yes"; then
21222 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
21223 fi
21224 fi
21225 #
21226 fi
21227 #
21228 if test "$compiler_num" -ge "300"; then
21229 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
21230 else
21231 if test "x$cross_compiling" = "xyes"; then
21232 if test "$compiler_num" -ge "104"; then
21233 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
21234 fi
21235 if test "$compiler_num" -ge "207"; then
21236 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
21237 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
21238 fi
21239 fi
21240 fi
21241 ;;
21242 #
21243 HP_UX_C)
21244 #
21245 if test "$want_warnings" = "yes"; then
21246 tmp_CFLAGS="$tmp_CFLAGS +w1"
21247 fi
21248 ;;
21249 #
21250 IBM_C)
21251 #
21252 tmp_CFLAGS="$tmp_CFLAGS"
21253 ;;
21254 #
21255 INTEL_UNIX_C)
21256 #
21257 if test "$want_warnings" = "yes"; then
21258 if test "$compiler_num" -gt "600"; then
21259 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
21260 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
21261 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
21262 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
21263 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
21264 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
21265 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
21266 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
21267 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
21268 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
21269 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
21270 fi
21271 fi
21272 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
21273 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
21274 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
21275 if test "$compiler_num" -ge "1000"; then
21276 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
21277 fi
21278 ;;
21279 #
21280 INTEL_WINDOWS_C)
21281 #
21282 tmp_CFLAGS="$tmp_CFLAGS"
21283 ;;
21284 #
21285 LCC)
21286 #
21287 if test "$want_warnings" = "yes"; then
21288 tmp_CFLAGS="$tmp_CFLAGS"
21289 fi
21290 ;;
21291 #
21292 SGI_MIPS_C)
21293 #
21294 if test "$want_warnings" = "yes"; then
21295 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
21296 fi
21297 ;;
21298 #
21299 SGI_MIPSPRO_C)
21300 #
21301 if test "$want_warnings" = "yes"; then
21302 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
21303 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
21304 fi
21305 ;;
21306 #
21307 SUNPRO_C)
21308 #
21309 if test "$want_warnings" = "yes"; then
21310 tmp_CFLAGS="$tmp_CFLAGS -v"
21311 fi
21312 ;;
21313 #
21314 TINY_C)
21315 #
21316 if test "$want_warnings" = "yes"; then
21317 tmp_CFLAGS="$tmp_CFLAGS -Wall"
21318 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
21319 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
21320 fi
21321 ;;
21322 #
21323 WATCOM_UNIX_C)
21324 #
21325 if test "$want_warnings" = "yes"; then
21326 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
21327 fi
21328 ;;
21329 #
21330 WATCOM_WINDOWS_C)
21331 #
21332 tmp_CFLAGS="$tmp_CFLAGS"
21333 ;;
21334 #
21335 esac
21336 #
21337 squeeze tmp_CPPFLAGS
21338 squeeze tmp_CFLAGS
21339 #
21340 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
21342$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
21343 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
21344 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21345 squeeze CPPFLAGS
21346 squeeze CFLAGS
21347
21348 tmp_compiler_works="unknown"
21349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21350/* end confdefs.h. */
21351
21352
21353
21354int main (void)
21355{
21356
21357 int i = 1;
21358 return i;
21359
21360 ;
21361 return 0;
21362}
21363
21364_ACEOF
21365if ac_fn_c_try_compile "$LINENO"; then :
21366
21367 tmp_compiler_works="yes"
21368
21369else
21370
21371 tmp_compiler_works="no"
21372 echo " " >&6
21373 sed 's/^/cc-fail: /' conftest.err >&6
21374 echo " " >&6
21375
21376fi
21377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21378 if test "$tmp_compiler_works" = "yes"; then
21379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380/* end confdefs.h. */
21381
21382
21383
21384int main (void)
21385{
21386
21387 int i = 1;
21388 return i;
21389
21390 ;
21391 return 0;
21392}
21393
21394_ACEOF
21395if ac_fn_c_try_link "$LINENO"; then :
21396
21397 tmp_compiler_works="yes"
21398
21399else
21400
21401 tmp_compiler_works="no"
21402 echo " " >&6
21403 sed 's/^/link-fail: /' conftest.err >&6
21404 echo " " >&6
21405
21406fi
21407rm -f core conftest.err conftest.$ac_objext \
21408 conftest$ac_exeext conftest.$ac_ext
21409 fi
21410 if test "x$cross_compiling" != "xyes" &&
21411 test "$tmp_compiler_works" = "yes"; then
21412 if test "$cross_compiling" = yes; then :
21413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21415as_fn_error $? "cannot run test program while cross compiling
21416See \`config.log' for more details" "$LINENO" 5; }
21417else
21418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419/* end confdefs.h. */
21420
21421
21422# ifdef __STDC__
21423# include <stdlib.h>
21424# endif
21425
21426int main (void)
21427{
21428
21429 int i = 0;
21430 exit(i);
21431
21432 ;
21433 return 0;
21434}
21435
21436_ACEOF
21437if ac_fn_c_try_run "$LINENO"; then :
21438
21439 tmp_compiler_works="yes"
21440
21441else
21442
21443 tmp_compiler_works="no"
21444 echo " " >&6
21445 echo "run-fail: test program exited with status $ac_status" >&6
21446 echo " " >&6
21447
21448fi
21449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21450 conftest.$ac_objext conftest.beam conftest.$ac_ext
21451fi
21452
21453 fi
21454 if test "$tmp_compiler_works" = "yes"; then
21455
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21457$as_echo "yes" >&6; }
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21459$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21460
21461 else
21462
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21464$as_echo "no" >&6; }
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21466$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21467 CPPFLAGS="$tmp_save_CPPFLAGS"
21468 CFLAGS="$tmp_save_CFLAGS"
21469
21470 fi
21471
21472 fi
21473 #
21474 fi
21475
21476
21477if test "$compiler_id" = "INTEL_UNIX_C"; then
21478 #
21479 if test "$compiler_num" -ge "1000"; then
21480 CFLAGS="$CFLAGS -shared-intel"
21481 elif test "$compiler_num" -ge "900"; then
21482 CFLAGS="$CFLAGS -i-dynamic"
21483 fi
21484 #
21485fi
21486
21487
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
21489$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
21490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21491/* end confdefs.h. */
21492
21493
21494
21495int main (void)
21496{
21497
21498 force compilation error
21499
21500 ;
21501 return 0;
21502}
21503
21504_ACEOF
21505if ac_fn_c_try_compile "$LINENO"; then :
21506
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21508$as_echo "no" >&6; }
21509 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
21510
21511else
21512
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21514$as_echo "yes" >&6; }
21515
21516fi
21517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21518
21519
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
21521$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523/* end confdefs.h. */
21524
21525
21526 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
21527
21528int main (void)
21529{
21530
21531 bad_t dummy;
21532
21533 ;
21534 return 0;
21535}
21536
21537_ACEOF
21538if ac_fn_c_try_compile "$LINENO"; then :
21539
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21541$as_echo "no" >&6; }
21542 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
21543
21544else
21545
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21547$as_echo "yes" >&6; }
21548
21549fi
21550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21551
21552
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
21554$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
21555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21556/* end confdefs.h. */
21557
21558
21559# include <stdlib.h>
21560 int rand(int n);
21561 int rand(int n)
21562 {
21563 if(n)
21564 return ++n;
21565 else
21566 return n;
21567 }
21568
21569int main (void)
21570{
21571
21572 int i[2];
21573 int j = rand(i[0]);
21574 if(j)
21575 return j;
21576
21577 ;
21578 return 0;
21579}
21580
21581_ACEOF
21582if ac_fn_c_try_compile "$LINENO"; then :
21583
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21585$as_echo "no" >&6; }
21586 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
21587
21588else
21589
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21591$as_echo "yes" >&6; }
21592
21593fi
21594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21595
21596
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
21598$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
21599 supports_symbol_hiding="no"
21600 symbol_hiding_CFLAGS=""
21601 symbol_hiding_EXTERN=""
21602 tmp_CFLAGS=""
21603 tmp_EXTERN=""
21604 case "$compiler_id" in
21605 CLANG)
21606 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21607 tmp_CFLAGS="-fvisibility=hidden"
21608 supports_symbol_hiding="yes"
21609 ;;
21610 GNU_C)
21611 if test "$compiler_num" -ge "304"; then
21612 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21613 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21614 tmp_CFLAGS="-fvisibility=hidden"
21615 supports_symbol_hiding="yes"
21616 fi
21617 fi
21618 ;;
21619 INTEL_UNIX_C)
21620 if test "$compiler_num" -ge "900"; then
21621 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21622 tmp_save_CFLAGS="$CFLAGS"
21623 CFLAGS="$CFLAGS -fvisibility=hidden"
21624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21625/* end confdefs.h. */
21626
21627
21628# include <stdio.h>
21629
21630int main (void)
21631{
21632
21633 printf("icc fvisibility bug test");
21634
21635 ;
21636 return 0;
21637}
21638
21639_ACEOF
21640if ac_fn_c_try_link "$LINENO"; then :
21641
21642 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21643 tmp_CFLAGS="-fvisibility=hidden"
21644 supports_symbol_hiding="yes"
21645
21646fi
21647rm -f core conftest.err conftest.$ac_objext \
21648 conftest$ac_exeext conftest.$ac_ext
21649 CFLAGS="$tmp_save_CFLAGS"
21650 fi
21651 fi
21652 ;;
21653 SUNPRO_C)
21654 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
21655 tmp_EXTERN="__global"
21656 tmp_CFLAGS="-xldscope=hidden"
21657 supports_symbol_hiding="yes"
21658 fi
21659 ;;
21660 esac
21661 if test "$supports_symbol_hiding" = "yes"; then
21662 tmp_save_CFLAGS="$CFLAGS"
21663 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21664 squeeze CFLAGS
21665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666/* end confdefs.h. */
21667
21668
21669 $tmp_EXTERN char *dummy(char *buff);
21670 char *dummy(char *buff)
21671 {
21672 if(buff)
21673 return ++buff;
21674 else
21675 return buff;
21676 }
21677
21678int main (void)
21679{
21680
21681 char b[16];
21682 char *r = dummy(&b[0]);
21683 if(r)
21684 return (int)*r;
21685
21686 ;
21687 return 0;
21688}
21689
21690_ACEOF
21691if ac_fn_c_try_compile "$LINENO"; then :
21692
21693 supports_symbol_hiding="yes"
21694 if test -f conftest.err; then
21695 grep 'visibility' conftest.err >/dev/null
21696 if test "$?" -eq "0"; then
21697 supports_symbol_hiding="no"
21698 fi
21699 fi
21700
21701else
21702
21703 supports_symbol_hiding="no"
21704 echo " " >&6
21705 sed 's/^/cc-src: /' conftest.$ac_ext >&6
21706 sed 's/^/cc-err: /' conftest.err >&6
21707 echo " " >&6
21708
21709fi
21710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21711 CFLAGS="$tmp_save_CFLAGS"
21712 fi
21713 if test "$supports_symbol_hiding" = "yes"; then
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21715$as_echo "yes" >&6; }
21716 symbol_hiding_CFLAGS="$tmp_CFLAGS"
21717 symbol_hiding_EXTERN="$tmp_EXTERN"
21718 else
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21720$as_echo "no" >&6; }
21721 fi
21722
21723
21724
21725 cares_builddir=`pwd`
21726 supports_curldebug="unknown"
21727 if test "$want_curldebug" = "yes"; then
21728 if test "x$enable_shared" != "xno" &&
21729 test "x$enable_shared" != "xyes"; then
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
21731$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
21732 supports_curldebug="no"
21733 fi
21734 if test "x$enable_static" != "xno" &&
21735 test "x$enable_static" != "xyes"; then
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
21737$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
21738 supports_curldebug="no"
21739 fi
21740 if test "$supports_curldebug" != "no"; then
21741 if test "$enable_shared" = "yes" &&
21742 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
21743 supports_curldebug="no"
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
21745$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
21746 fi
21747 if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: c-ares source not embedded in curl's CVS tree." >&5
21749$as_echo "$as_me: WARNING: c-ares source not embedded in curl's CVS tree." >&2;}
21750 supports_curldebug="no"
21751 elif test ! -f "$srcdir/../include/curl/Makefile.in"; then
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's buildconf has not been run." >&5
21753$as_echo "$as_me: WARNING: curl's buildconf has not been run." >&2;}
21754 supports_curldebug="no"
21755 elif test ! -f "$cares_builddir/../libcurl.pc" ||
21756 test ! -f "$cares_builddir/../include/curl/curlbuild.h"; then
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's configure has not been run." >&5
21758$as_echo "$as_me: WARNING: curl's configure has not been run." >&2;}
21759 supports_curldebug="no"
21760 elif test ! -f "$cares_builddir/../lib/curl_config.h"; then
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl's curl_config.h is missing." >&5
21762$as_echo "$as_me: WARNING: libcurl's curl_config.h is missing." >&2;}
21763 supports_curldebug="no"
21764 elif test ! -f "$cares_builddir/../config.status"; then
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: curl's config.status is missing." >&5
21766$as_echo "$as_me: WARNING: curl's config.status is missing." >&2;}
21767 supports_curldebug="no"
21768 fi
21769 if test "$supports_curldebug" != "no"; then
21770 grep '^#define USE_ARES' "$cares_builddir/../lib/curl_config.h" >/dev/null
21771 if test "$?" -ne "0"; then
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without c-ares support." >&5
21773$as_echo "$as_me: WARNING: libcurl configured without c-ares support." >&2;}
21774 supports_curldebug="no"
21775 fi
21776 fi
21777 if test "$supports_curldebug" != "no"; then
21778 grep 'CPPFLAGS.*CURLDEBUG' "$cares_builddir/../config.status" >/dev/null
21779 if test "$?" -ne "0"; then
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl configured without curldebug support." >&5
21781$as_echo "$as_me: WARNING: libcurl configured without curldebug support." >&2;}
21782 supports_curldebug="no"
21783 fi
21784 fi
21785 fi
21786 fi
21787 #
21788 if test "$want_curldebug" = "yes"; then
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
21790$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
21791 test "$supports_curldebug" = "no" || supports_curldebug="yes"
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
21793$as_echo "$supports_curldebug" >&6; }
21794 if test "$supports_curldebug" = "no"; then
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
21796$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
21797 want_curldebug="no"
21798 fi
21799 fi
21800 #
21801 if test "$want_curldebug" = "yes"; then
21802
21803$as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
21804
21805 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
21806 squeeze CPPFLAGS
21807 fi
21808 #
21809 if test "$want_debug" = "yes"; then
21810 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
21811 squeeze CPPFLAGS
21812 fi
21813
21814 if test x$want_curldebug = xyes; then
21815 CURLDEBUG_TRUE=
21816 CURLDEBUG_FALSE='#'
21817else
21818 CURLDEBUG_TRUE='#'
21819 CURLDEBUG_FALSE=
21820fi
21821
21822
21823
21824
21825
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21827$as_echo_n "checking for windows.h... " >&6; }
21828if ${ac_cv_header_windows_h+:} false; then :
21829 $as_echo_n "(cached) " >&6
21830else
21831
21832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21833/* end confdefs.h. */
21834
21835
21836#undef inline
21837#ifndef WIN32_LEAN_AND_MEAN
21838#define WIN32_LEAN_AND_MEAN
21839#endif
21840#include <windows.h>
21841
21842int main (void)
21843{
21844
21845#if defined(__CYGWIN__) || defined(__CEGCC__)
21846 HAVE_WINDOWS_H shall not be defined.
21847#else
21848 int dummy=2*WINVER;
21849#endif
21850
21851 ;
21852 return 0;
21853}
21854
21855_ACEOF
21856if ac_fn_c_try_compile "$LINENO"; then :
21857
21858 ac_cv_header_windows_h="yes"
21859
21860else
21861
21862 ac_cv_header_windows_h="no"
21863
21864fi
21865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21866
21867fi
21868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
21869$as_echo "$ac_cv_header_windows_h" >&6; }
21870 case "$ac_cv_header_windows_h" in
21871 yes)
21872
21873cat >>confdefs.h <<_ACEOF
21874#define HAVE_WINDOWS_H 1
21875_ACEOF
21876
21877
21878cat >>confdefs.h <<_ACEOF
21879#define WIN32_LEAN_AND_MEAN 1
21880_ACEOF
21881
21882 ;;
21883 esac
21884
21885
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
21887$as_echo_n "checking whether build target is a native Windows one... " >&6; }
21888if ${ac_cv_native_windows+:} false; then :
21889 $as_echo_n "(cached) " >&6
21890else
21891
21892 if test "$ac_cv_header_windows_h" = "no"; then
21893 ac_cv_native_windows="no"
21894 else
21895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896/* end confdefs.h. */
21897
21898
21899
21900int main (void)
21901{
21902
21903#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
21904 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
21905 int dummy=1;
21906#else
21907 Not a native Windows build target.
21908#endif
21909
21910 ;
21911 return 0;
21912}
21913
21914_ACEOF
21915if ac_fn_c_try_compile "$LINENO"; then :
21916
21917 ac_cv_native_windows="yes"
21918
21919else
21920
21921 ac_cv_native_windows="no"
21922
21923fi
21924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21925 fi
21926
21927fi
21928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
21929$as_echo "$ac_cv_native_windows" >&6; }
21930 if test "x$ac_cv_native_windows" = xyes; then
21931 DOING_NATIVE_WINDOWS_TRUE=
21932 DOING_NATIVE_WINDOWS_FALSE='#'
21933else
21934 DOING_NATIVE_WINDOWS_TRUE='#'
21935 DOING_NATIVE_WINDOWS_FALSE=
21936fi
21937
21938
21939case X-"$ac_cv_native_windows" in
21940 X-yes)
21941
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
21943$as_echo_n "checking for winsock.h... " >&6; }
21944if ${ac_cv_header_winsock_h+:} false; then :
21945 $as_echo_n "(cached) " >&6
21946else
21947
21948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21949/* end confdefs.h. */
21950
21951
21952#undef inline
21953#ifndef WIN32_LEAN_AND_MEAN
21954#define WIN32_LEAN_AND_MEAN
21955#endif
21956#include <windows.h>
21957#include <winsock.h>
21958
21959int main (void)
21960{
21961
21962#if defined(__CYGWIN__) || defined(__CEGCC__)
21963 HAVE_WINSOCK_H shall not be defined.
21964#else
21965 int dummy=WSACleanup();
21966#endif
21967
21968 ;
21969 return 0;
21970}
21971
21972_ACEOF
21973if ac_fn_c_try_compile "$LINENO"; then :
21974
21975 ac_cv_header_winsock_h="yes"
21976
21977else
21978
21979 ac_cv_header_winsock_h="no"
21980
21981fi
21982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21983
21984fi
21985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
21986$as_echo "$ac_cv_header_winsock_h" >&6; }
21987 case "$ac_cv_header_winsock_h" in
21988 yes)
21989
21990cat >>confdefs.h <<_ACEOF
21991#define HAVE_WINSOCK_H 1
21992_ACEOF
21993
21994 ;;
21995 esac
21996
21997
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
21999$as_echo_n "checking for winsock2.h... " >&6; }
22000if ${ac_cv_header_winsock2_h+:} false; then :
22001 $as_echo_n "(cached) " >&6
22002else
22003
22004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22005/* end confdefs.h. */
22006
22007
22008#undef inline
22009#ifndef WIN32_LEAN_AND_MEAN
22010#define WIN32_LEAN_AND_MEAN
22011#endif
22012#include <windows.h>
22013#include <winsock2.h>
22014
22015int main (void)
22016{
22017
22018#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22019 HAVE_WINSOCK2_H shall not be defined.
22020#else
22021 int dummy=2*IPPROTO_ESP;
22022#endif
22023
22024 ;
22025 return 0;
22026}
22027
22028_ACEOF
22029if ac_fn_c_try_compile "$LINENO"; then :
22030
22031 ac_cv_header_winsock2_h="yes"
22032
22033else
22034
22035 ac_cv_header_winsock2_h="no"
22036
22037fi
22038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22039
22040fi
22041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
22042$as_echo "$ac_cv_header_winsock2_h" >&6; }
22043 case "$ac_cv_header_winsock2_h" in
22044 yes)
22045
22046cat >>confdefs.h <<_ACEOF
22047#define HAVE_WINSOCK2_H 1
22048_ACEOF
22049
22050 ;;
22051 esac
22052
22053
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
22055$as_echo_n "checking for ws2tcpip.h... " >&6; }
22056if ${ac_cv_header_ws2tcpip_h+:} false; then :
22057 $as_echo_n "(cached) " >&6
22058else
22059
22060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061/* end confdefs.h. */
22062
22063
22064#undef inline
22065#ifndef WIN32_LEAN_AND_MEAN
22066#define WIN32_LEAN_AND_MEAN
22067#endif
22068#include <windows.h>
22069#include <winsock2.h>
22070#include <ws2tcpip.h>
22071
22072int main (void)
22073{
22074
22075#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22076 HAVE_WS2TCPIP_H shall not be defined.
22077#else
22078 int dummy=2*IP_PKTINFO;
22079#endif
22080
22081 ;
22082 return 0;
22083}
22084
22085_ACEOF
22086if ac_fn_c_try_compile "$LINENO"; then :
22087
22088 ac_cv_header_ws2tcpip_h="yes"
22089
22090else
22091
22092 ac_cv_header_ws2tcpip_h="no"
22093
22094fi
22095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096
22097fi
22098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
22099$as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
22100 case "$ac_cv_header_ws2tcpip_h" in
22101 yes)
22102
22103cat >>confdefs.h <<_ACEOF
22104#define HAVE_WS2TCPIP_H 1
22105_ACEOF
22106
22107 ;;
22108 esac
22109
22110 ;;
22111 *)
22112 ac_cv_header_winsock_h="no"
22113 ac_cv_header_winsock2_h="no"
22114 ac_cv_header_ws2tcpip_h="no"
22115 ;;
22116esac
22117
22118
22119
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22121$as_echo_n "checking if X/Open network library is required... " >&6; }
22122 tst_lib_xnet_required="no"
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124/* end confdefs.h. */
22125
22126
22127int main (void)
22128{
22129#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22130 return 0;
22131#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22132 return 0;
22133#else
22134 force compilation error
22135#endif
22136}
22137
22138
22139_ACEOF
22140if ac_fn_c_try_compile "$LINENO"; then :
22141
22142 tst_lib_xnet_required="yes"
22143 LIBS="$LIBS -lxnet"
22144
22145fi
22146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22148$as_echo "$tst_lib_xnet_required" >&6; }
22149
22150
22151ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22152if test "x$ac_cv_func_gethostbyname" = xyes; then :
22153 HAVE_GETHOSTBYNAME="1"
22154
22155else
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22157$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22158if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
22159 $as_echo_n "(cached) " >&6
22160else
22161 ac_check_lib_save_LIBS=$LIBS
22162LIBS="-lnsl $LIBS"
22163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22164/* end confdefs.h. */
22165
22166
22167#ifdef __cplusplus
22168extern "C"
22169#endif
22170char gethostbyname ();
22171int main (void)
22172{
22173return gethostbyname ();
22174 ;
22175 return 0;
22176}
22177_ACEOF
22178if ac_fn_c_try_link "$LINENO"; then :
22179 ac_cv_lib_nsl_gethostbyname=yes
22180else
22181 ac_cv_lib_nsl_gethostbyname=no
22182fi
22183rm -f core conftest.err conftest.$ac_objext \
22184 conftest$ac_exeext conftest.$ac_ext
22185LIBS=$ac_check_lib_save_LIBS
22186fi
22187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22188$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22189if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
22190 HAVE_GETHOSTBYNAME="1"
22191 LIBS="$LIBS -lnsl"
22192
22193fi
22194
22195
22196fi
22197
22198
22199if test "$HAVE_GETHOSTBYNAME" != "1"
22200then
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22202$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
22203if ${ac_cv_lib_socket_gethostbyname+:} false; then :
22204 $as_echo_n "(cached) " >&6
22205else
22206 ac_check_lib_save_LIBS=$LIBS
22207LIBS="-lsocket $LIBS"
22208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22209/* end confdefs.h. */
22210
22211
22212#ifdef __cplusplus
22213extern "C"
22214#endif
22215char gethostbyname ();
22216int main (void)
22217{
22218return gethostbyname ();
22219 ;
22220 return 0;
22221}
22222_ACEOF
22223if ac_fn_c_try_link "$LINENO"; then :
22224 ac_cv_lib_socket_gethostbyname=yes
22225else
22226 ac_cv_lib_socket_gethostbyname=no
22227fi
22228rm -f core conftest.err conftest.$ac_objext \
22229 conftest$ac_exeext conftest.$ac_ext
22230LIBS=$ac_check_lib_save_LIBS
22231fi
22232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22233$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
22234if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
22235 HAVE_GETHOSTBYNAME="1"
22236 LIBS="$LIBS -lsocket"
22237
22238fi
22239
22240fi
22241
22242if test "$HAVE_GETHOSTBYNAME" != "1"
22243then
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22245$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
22246 my_ac_save_LIBS=$LIBS
22247 LIBS="-lnsl -lsocket $LIBS"
22248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22249/* end confdefs.h. */
22250
22251
22252
22253int main (void)
22254{
22255
22256 gethostbyname();
22257
22258 ;
22259 return 0;
22260}
22261
22262_ACEOF
22263if ac_fn_c_try_link "$LINENO"; then :
22264
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22266$as_echo "yes" >&6; }
22267 HAVE_GETHOSTBYNAME="1"
22268
22269else
22270
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22272$as_echo "no" >&6; }
22273 LIBS=$my_ac_save_LIBS
22274
22275fi
22276rm -f core conftest.err conftest.$ac_objext \
22277 conftest$ac_exeext conftest.$ac_ext
22278fi
22279
22280if test "$HAVE_GETHOSTBYNAME" != "1"
22281then
22282 if test "$ac_cv_header_windows_h" = "yes"; then
22283 if test "$ac_cv_header_winsock_h" = "yes"; then
22284 case $host in
22285 *-*-mingw32ce*)
22286 winsock_LIB="-lwinsock"
22287 ;;
22288 *)
22289 winsock_LIB="-lwsock32"
22290 ;;
22291 esac
22292 fi
22293 if test "$ac_cv_header_winsock2_h" = "yes"; then
22294 winsock_LIB="-lws2_32"
22295 fi
22296 if test ! -z "$winsock_LIB"; then
22297 my_ac_save_LIBS=$LIBS
22298 LIBS="$winsock_LIB $LIBS"
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22300$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
22301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302/* end confdefs.h. */
22303
22304
22305#ifdef HAVE_WINDOWS_H
22306#ifndef WIN32_LEAN_AND_MEAN
22307#define WIN32_LEAN_AND_MEAN
22308#endif
22309#include <windows.h>
22310#ifdef HAVE_WINSOCK2_H
22311#include <winsock2.h>
22312#else
22313#ifdef HAVE_WINSOCK_H
22314#include <winsock.h>
22315#endif
22316#endif
22317#endif
22318
22319int main (void)
22320{
22321
22322 gethostbyname("www.dummysite.com");
22323
22324 ;
22325 return 0;
22326}
22327
22328_ACEOF
22329if ac_fn_c_try_link "$LINENO"; then :
22330
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22332$as_echo "yes" >&6; }
22333 HAVE_GETHOSTBYNAME="1"
22334
22335else
22336
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22338$as_echo "no" >&6; }
22339 winsock_LIB=""
22340 LIBS=$my_ac_save_LIBS
22341
22342fi
22343rm -f core conftest.err conftest.$ac_objext \
22344 conftest$ac_exeext conftest.$ac_ext
22345 fi
22346 fi
22347fi
22348
22349if test "$HAVE_GETHOSTBYNAME" != "1"
22350then
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22352$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
22353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22354/* end confdefs.h. */
22355
22356
22357/* Older Minix versions may need <net/gen/netdb.h> here instead */
22358#include <netdb.h>
22359
22360int main (void)
22361{
22362
22363 gethostbyname("www.dummysite.com");
22364
22365 ;
22366 return 0;
22367}
22368
22369_ACEOF
22370if ac_fn_c_try_link "$LINENO"; then :
22371
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22373$as_echo "yes" >&6; }
22374 HAVE_GETHOSTBYNAME="1"
22375
22376else
22377
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22379$as_echo "no" >&6; }
22380
22381fi
22382rm -f core conftest.err conftest.$ac_objext \
22383 conftest$ac_exeext conftest.$ac_ext
22384fi
22385
22386if test "$HAVE_GETHOSTBYNAME" != "1"
22387then
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22389$as_echo_n "checking for gethostbyname for eCos... " >&6; }
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391/* end confdefs.h. */
22392
22393
22394#include <stdio.h>
22395#include <netdb.h>
22396
22397int main (void)
22398{
22399
22400 gethostbyname("www.dummysite.com");
22401
22402 ;
22403 return 0;
22404}
22405
22406_ACEOF
22407if ac_fn_c_try_link "$LINENO"; then :
22408
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22410$as_echo "yes" >&6; }
22411 HAVE_GETHOSTBYNAME="1"
22412
22413else
22414
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22416$as_echo "no" >&6; }
22417
22418fi
22419rm -f core conftest.err conftest.$ac_objext \
22420 conftest$ac_exeext conftest.$ac_ext
22421fi
22422
22423if test "$HAVE_GETHOSTBYNAME" != "1"
22424then
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
22426$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
22427if ${ac_cv_lib_net_gethostbyname+:} false; then :
22428 $as_echo_n "(cached) " >&6
22429else
22430 ac_check_lib_save_LIBS=$LIBS
22431LIBS="-lnet $LIBS"
22432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433/* end confdefs.h. */
22434
22435
22436#ifdef __cplusplus
22437extern "C"
22438#endif
22439char gethostbyname ();
22440int main (void)
22441{
22442return gethostbyname ();
22443 ;
22444 return 0;
22445}
22446_ACEOF
22447if ac_fn_c_try_link "$LINENO"; then :
22448 ac_cv_lib_net_gethostbyname=yes
22449else
22450 ac_cv_lib_net_gethostbyname=no
22451fi
22452rm -f core conftest.err conftest.$ac_objext \
22453 conftest$ac_exeext conftest.$ac_ext
22454LIBS=$ac_check_lib_save_LIBS
22455fi
22456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
22457$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
22458if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
22459 HAVE_GETHOSTBYNAME="1"
22460 LIBS="$LIBS -lnet"
22461
22462fi
22463
22464fi
22465
22466
22467if test "$HAVE_GETHOSTBYNAME" != "1"; then
22468 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22469fi
22470
22471if test "x$host_vendor" = "xapple"; then :
22472
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iPhone target" >&5
22474$as_echo_n "checking for iPhone target... " >&6; }
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476/* end confdefs.h. */
22477
22478
22479#include "TargetConditionals.h"
22480
22481int main (void)
22482{
22483
22484#if TARGET_OS_IPHONE == 0
22485#error Not an iPhone target
22486#endif
22487return 0;
22488
22489 ;
22490 return 0;
22491}
22492
22493_ACEOF
22494if ac_fn_c_try_compile "$LINENO"; then :
22495
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22497$as_echo "yes" >&6; }
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5
22499$as_echo_n "checking for library containing res_servicename... " >&6; }
22500if ${ac_cv_search_res_servicename+:} false; then :
22501 $as_echo_n "(cached) " >&6
22502else
22503 ac_func_search_save_LIBS=$LIBS
22504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22505/* end confdefs.h. */
22506
22507
22508#ifdef __cplusplus
22509extern "C"
22510#endif
22511char res_servicename ();
22512int main (void)
22513{
22514return res_servicename ();
22515 ;
22516 return 0;
22517}
22518_ACEOF
22519for ac_lib in '' resolv; do
22520 if test -z "$ac_lib"; then
22521 ac_res="none required"
22522 else
22523 ac_res=-l$ac_lib
22524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22525 fi
22526 if ac_fn_c_try_link "$LINENO"; then :
22527 ac_cv_search_res_servicename=$ac_res
22528fi
22529rm -f core conftest.err conftest.$ac_objext \
22530 conftest$ac_exeext
22531 if ${ac_cv_search_res_servicename+:} false; then :
22532 break
22533fi
22534done
22535if ${ac_cv_search_res_servicename+:} false; then :
22536
22537else
22538 ac_cv_search_res_servicename=no
22539fi
22540rm conftest.$ac_ext
22541LIBS=$ac_func_search_save_LIBS
22542fi
22543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5
22544$as_echo "$ac_cv_search_res_servicename" >&6; }
22545ac_res=$ac_cv_search_res_servicename
22546if test "$ac_res" != no; then :
22547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22548
22549
22550$as_echo "#define CARES_USE_LIBRESOLV 1" >>confdefs.h
22551
22552
22553else
22554
22555 as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5
22556
22557fi
22558
22559
22560else
22561
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22563$as_echo "no" >&6; }
22564
22565fi
22566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567
22568fi
22569
22570ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22571if test "x$ac_cv_func_strcasecmp" = xyes; then :
22572
22573else
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
22575$as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
22576if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
22577 $as_echo_n "(cached) " >&6
22578else
22579 ac_check_lib_save_LIBS=$LIBS
22580LIBS="-lresolve $LIBS"
22581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22582/* end confdefs.h. */
22583
22584
22585#ifdef __cplusplus
22586extern "C"
22587#endif
22588char strcasecmp ();
22589int main (void)
22590{
22591return strcasecmp ();
22592 ;
22593 return 0;
22594}
22595_ACEOF
22596if ac_fn_c_try_link "$LINENO"; then :
22597 ac_cv_lib_resolve_strcasecmp=yes
22598else
22599 ac_cv_lib_resolve_strcasecmp=no
22600fi
22601rm -f core conftest.err conftest.$ac_objext \
22602 conftest$ac_exeext conftest.$ac_ext
22603LIBS=$ac_check_lib_save_LIBS
22604fi
22605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
22606$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
22607if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
22608 cat >>confdefs.h <<_ACEOF
22609#define HAVE_LIBRESOLVE 1
22610_ACEOF
22611
22612 LIBS="-lresolve $LIBS"
22613
22614fi
22615
22616fi
22617
22618
22619if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
22621$as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
22622if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
22623 $as_echo_n "(cached) " >&6
22624else
22625 ac_check_lib_save_LIBS=$LIBS
22626LIBS="-lresolve -lnsl $LIBS"
22627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22628/* end confdefs.h. */
22629
22630
22631#ifdef __cplusplus
22632extern "C"
22633#endif
22634char strcasecmp ();
22635int main (void)
22636{
22637return strcasecmp ();
22638 ;
22639 return 0;
22640}
22641_ACEOF
22642if ac_fn_c_try_link "$LINENO"; then :
22643 ac_cv_lib_resolve_strcasecmp=yes
22644else
22645 ac_cv_lib_resolve_strcasecmp=no
22646fi
22647rm -f core conftest.err conftest.$ac_objext \
22648 conftest$ac_exeext conftest.$ac_ext
22649LIBS=$ac_check_lib_save_LIBS
22650fi
22651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
22652$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
22653if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
22654 LIBS="-lresolve $LIBS"
22655fi
22656
22657fi
22658ac_cv_func_strcasecmp="no"
22659
22660
22661cares_includes_winsock2="\
22662/* includes start */
22663#ifdef HAVE_WINDOWS_H
22664# ifndef WIN32_LEAN_AND_MEAN
22665# define WIN32_LEAN_AND_MEAN
22666# endif
22667# include <windows.h>
22668# ifdef HAVE_WINSOCK2_H
22669# include <winsock2.h>
22670# else
22671# ifdef HAVE_WINSOCK_H
22672# include <winsock.h>
22673# endif
22674# endif
22675#endif
22676/* includes end */"
22677
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22679$as_echo_n "checking for windows.h... " >&6; }
22680if ${ac_cv_header_windows_h+:} false; then :
22681 $as_echo_n "(cached) " >&6
22682else
22683
22684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22685/* end confdefs.h. */
22686
22687
22688#undef inline
22689#ifndef WIN32_LEAN_AND_MEAN
22690#define WIN32_LEAN_AND_MEAN
22691#endif
22692#include <windows.h>
22693
22694int main (void)
22695{
22696
22697#if defined(__CYGWIN__) || defined(__CEGCC__)
22698 HAVE_WINDOWS_H shall not be defined.
22699#else
22700 int dummy=2*WINVER;
22701#endif
22702
22703 ;
22704 return 0;
22705}
22706
22707_ACEOF
22708if ac_fn_c_try_compile "$LINENO"; then :
22709
22710 ac_cv_header_windows_h="yes"
22711
22712else
22713
22714 ac_cv_header_windows_h="no"
22715
22716fi
22717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22718
22719fi
22720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
22721$as_echo "$ac_cv_header_windows_h" >&6; }
22722 case "$ac_cv_header_windows_h" in
22723 yes)
22724
22725cat >>confdefs.h <<_ACEOF
22726#define HAVE_WINDOWS_H 1
22727_ACEOF
22728
22729
22730cat >>confdefs.h <<_ACEOF
22731#define WIN32_LEAN_AND_MEAN 1
22732_ACEOF
22733
22734 ;;
22735 esac
22736
22737
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
22739$as_echo_n "checking for winsock.h... " >&6; }
22740if ${ac_cv_header_winsock_h+:} false; then :
22741 $as_echo_n "(cached) " >&6
22742else
22743
22744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22745/* end confdefs.h. */
22746
22747
22748#undef inline
22749#ifndef WIN32_LEAN_AND_MEAN
22750#define WIN32_LEAN_AND_MEAN
22751#endif
22752#include <windows.h>
22753#include <winsock.h>
22754
22755int main (void)
22756{
22757
22758#if defined(__CYGWIN__) || defined(__CEGCC__)
22759 HAVE_WINSOCK_H shall not be defined.
22760#else
22761 int dummy=WSACleanup();
22762#endif
22763
22764 ;
22765 return 0;
22766}
22767
22768_ACEOF
22769if ac_fn_c_try_compile "$LINENO"; then :
22770
22771 ac_cv_header_winsock_h="yes"
22772
22773else
22774
22775 ac_cv_header_winsock_h="no"
22776
22777fi
22778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22779
22780fi
22781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
22782$as_echo "$ac_cv_header_winsock_h" >&6; }
22783 case "$ac_cv_header_winsock_h" in
22784 yes)
22785
22786cat >>confdefs.h <<_ACEOF
22787#define HAVE_WINSOCK_H 1
22788_ACEOF
22789
22790 ;;
22791 esac
22792
22793
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22795$as_echo_n "checking for winsock2.h... " >&6; }
22796if ${ac_cv_header_winsock2_h+:} false; then :
22797 $as_echo_n "(cached) " >&6
22798else
22799
22800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22801/* end confdefs.h. */
22802
22803
22804#undef inline
22805#ifndef WIN32_LEAN_AND_MEAN
22806#define WIN32_LEAN_AND_MEAN
22807#endif
22808#include <windows.h>
22809#include <winsock2.h>
22810
22811int main (void)
22812{
22813
22814#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22815 HAVE_WINSOCK2_H shall not be defined.
22816#else
22817 int dummy=2*IPPROTO_ESP;
22818#endif
22819
22820 ;
22821 return 0;
22822}
22823
22824_ACEOF
22825if ac_fn_c_try_compile "$LINENO"; then :
22826
22827 ac_cv_header_winsock2_h="yes"
22828
22829else
22830
22831 ac_cv_header_winsock2_h="no"
22832
22833fi
22834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835
22836fi
22837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
22838$as_echo "$ac_cv_header_winsock2_h" >&6; }
22839 case "$ac_cv_header_winsock2_h" in
22840 yes)
22841
22842cat >>confdefs.h <<_ACEOF
22843#define HAVE_WINSOCK2_H 1
22844_ACEOF
22845
22846 ;;
22847 esac
22848
22849
22850
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
22852$as_echo_n "checking for connect in libraries... " >&6; }
22853 tst_connect_save_LIBS="$LIBS"
22854 tst_connect_need_LIBS="unknown"
22855 for tst_lib in '' '-lsocket' ; do
22856 if test "$tst_connect_need_LIBS" = "unknown"; then
22857 LIBS="$tst_lib $tst_connect_save_LIBS"
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859/* end confdefs.h. */
22860
22861
22862 $cares_includes_winsock2
22863 #ifndef HAVE_WINDOWS_H
22864 int connect(int, void*, int);
22865 #endif
22866
22867int main (void)
22868{
22869
22870 if(0 != connect(0, 0, 0))
22871 return 1;
22872
22873 ;
22874 return 0;
22875}
22876
22877_ACEOF
22878if ac_fn_c_try_link "$LINENO"; then :
22879
22880 tst_connect_need_LIBS="$tst_lib"
22881
22882fi
22883rm -f core conftest.err conftest.$ac_objext \
22884 conftest$ac_exeext conftest.$ac_ext
22885 fi
22886 done
22887 LIBS="$tst_connect_save_LIBS"
22888 #
22889 case X-"$tst_connect_need_LIBS" in
22890 X-unknown)
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
22892$as_echo "cannot find connect" >&6; }
22893 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
22894 ;;
22895 X-)
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22897$as_echo "yes" >&6; }
22898 ;;
22899 *)
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
22901$as_echo "$tst_connect_need_LIBS" >&6; }
22902 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
22903 ;;
22904 esac
22905
22906
22907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22908$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22909if ${ac_cv_header_time+:} false; then :
22910 $as_echo_n "(cached) " >&6
22911else
22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22913/* end confdefs.h. */
22914#include <sys/types.h>
22915#include <sys/time.h>
22916#include <time.h>
22917
22918int main (void)
22919{
22920if ((struct tm *) 0)
22921return 0;
22922 ;
22923 return 0;
22924}
22925_ACEOF
22926if ac_fn_c_try_compile "$LINENO"; then :
22927 ac_cv_header_time=yes
22928else
22929 ac_cv_header_time=no
22930fi
22931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932fi
22933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22934$as_echo "$ac_cv_header_time" >&6; }
22935if test $ac_cv_header_time = yes; then
22936
22937$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22938
22939fi
22940
22941
22942 for ac_header in sys/types.h sys/time.h time.h
22943do :
22944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22945ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22946if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22947 cat >>confdefs.h <<_ACEOF
22948#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22949_ACEOF
22950
22951fi
22952
22953done
22954
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
22956$as_echo_n "checking for monotonic clock_gettime... " >&6; }
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958/* end confdefs.h. */
22959
22960
22961#ifdef HAVE_SYS_TYPES_H
22962#include <sys/types.h>
22963#endif
22964#ifdef HAVE_SYS_TIME_H
22965#include <sys/time.h>
22966#ifdef TIME_WITH_SYS_TIME
22967#include <time.h>
22968#endif
22969#else
22970#ifdef HAVE_TIME_H
22971#include <time.h>
22972#endif
22973#endif
22974
22975int main (void)
22976{
22977
22978 struct timespec ts;
22979 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22980
22981 ;
22982 return 0;
22983}
22984
22985_ACEOF
22986if ac_fn_c_try_compile "$LINENO"; then :
22987
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22989$as_echo "yes" >&6; }
22990 ac_cv_func_clock_gettime="yes"
22991
22992else
22993
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22995$as_echo "no" >&6; }
22996 ac_cv_func_clock_gettime="no"
22997
22998fi
22999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23000
23001
23002 #
23003 if test "$ac_cv_func_clock_gettime" = "yes"; then
23004 #
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
23006$as_echo_n "checking for clock_gettime in libraries... " >&6; }
23007 #
23008 curl_cv_save_LIBS="$LIBS"
23009 curl_cv_gclk_LIBS="unknown"
23010 #
23011 for x_xlibs in '' '-lrt' '-lposix4' ; do
23012 if test "$curl_cv_gclk_LIBS" = "unknown"; then
23013 if test -z "$x_xlibs"; then
23014 LIBS="$curl_cv_save_LIBS"
23015 else
23016 LIBS="$x_xlibs $curl_cv_save_LIBS"
23017 fi
23018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019/* end confdefs.h. */
23020
23021
23022#ifdef HAVE_SYS_TYPES_H
23023#include <sys/types.h>
23024#endif
23025#ifdef HAVE_SYS_TIME_H
23026#include <sys/time.h>
23027#ifdef TIME_WITH_SYS_TIME
23028#include <time.h>
23029#endif
23030#else
23031#ifdef HAVE_TIME_H
23032#include <time.h>
23033#endif
23034#endif
23035
23036int main (void)
23037{
23038
23039 struct timespec ts;
23040 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23041
23042 ;
23043 return 0;
23044}
23045
23046_ACEOF
23047if ac_fn_c_try_link "$LINENO"; then :
23048
23049 curl_cv_gclk_LIBS="$x_xlibs"
23050
23051fi
23052rm -f core conftest.err conftest.$ac_objext \
23053 conftest$ac_exeext conftest.$ac_ext
23054 fi
23055 done
23056 #
23057 LIBS="$curl_cv_save_LIBS"
23058 #
23059 case X-"$curl_cv_gclk_LIBS" in
23060 X-unknown)
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
23062$as_echo "cannot find clock_gettime" >&6; }
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23064$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23065 ac_cv_func_clock_gettime="no"
23066 ;;
23067 X-)
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23069$as_echo "no additional lib required" >&6; }
23070 ac_cv_func_clock_gettime="yes"
23071 ;;
23072 *)
23073 if test -z "$curl_cv_save_LIBS"; then
23074 LIBS="$curl_cv_gclk_LIBS"
23075 else
23076 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23077 fi
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23079$as_echo "$curl_cv_gclk_LIBS" >&6; }
23080 ac_cv_func_clock_gettime="yes"
23081 ;;
23082 esac
23083 #
23084 if test "x$cross_compiling" != "xyes" &&
23085 test "$ac_cv_func_clock_gettime" = "yes"; then
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23087$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
23088 if test "$cross_compiling" = yes; then :
23089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23091as_fn_error $? "cannot run test program while cross compiling
23092See \`config.log' for more details" "$LINENO" 5; }
23093else
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095/* end confdefs.h. */
23096
23097
23098#ifdef HAVE_STDLIB_H
23099#include <stdlib.h>
23100#endif
23101#ifdef HAVE_SYS_TYPES_H
23102#include <sys/types.h>
23103#endif
23104#ifdef HAVE_SYS_TIME_H
23105#include <sys/time.h>
23106#ifdef TIME_WITH_SYS_TIME
23107#include <time.h>
23108#endif
23109#else
23110#ifdef HAVE_TIME_H
23111#include <time.h>
23112#endif
23113#endif
23114
23115int main (void)
23116{
23117
23118 struct timespec ts;
23119 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23120 exit(0);
23121 else
23122 exit(1);
23123
23124 ;
23125 return 0;
23126}
23127
23128_ACEOF
23129if ac_fn_c_try_run "$LINENO"; then :
23130
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23132$as_echo "yes" >&6; }
23133
23134else
23135
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23137$as_echo "no" >&6; }
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23139$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23140 ac_cv_func_clock_gettime="no"
23141 LIBS="$curl_cv_save_LIBS"
23142
23143fi
23144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23145 conftest.$ac_objext conftest.beam conftest.$ac_ext
23146fi
23147
23148 fi
23149 #
23150 case "$ac_cv_func_clock_gettime" in
23151 yes)
23152
23153cat >>confdefs.h <<_ACEOF
23154#define HAVE_CLOCK_GETTIME_MONOTONIC 1
23155_ACEOF
23156
23157 ;;
23158 esac
23159 #
23160 fi
23161 #
23162
23163
23164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
23165$as_echo_n "checking whether to use libgcc... " >&6; }
23166# Check whether --enable-libgcc was given.
23167if test "${enable_libgcc+set}" = set; then :
23168 enableval=$enable_libgcc; case "$enableval" in
23169 yes)
23170 LIBS="$LIBS -lgcc"
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23172$as_echo "yes" >&6; }
23173 ;;
23174 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23175$as_echo "no" >&6; }
23176 ;;
23177 esac
23178else
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23180$as_echo "no" >&6; }
23181
23182fi
23183
23184
23185
23186
23187
23188
23189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23190$as_echo_n "checking for ANSI C header files... " >&6; }
23191if ${ac_cv_header_stdc+:} false; then :
23192 $as_echo_n "(cached) " >&6
23193else
23194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23195/* end confdefs.h. */
23196#include <stdlib.h>
23197#include <stdarg.h>
23198#include <string.h>
23199#include <float.h>
23200
23201int main (void)
23202{
23203
23204 ;
23205 return 0;
23206}
23207_ACEOF
23208if ac_fn_c_try_compile "$LINENO"; then :
23209 ac_cv_header_stdc=yes
23210else
23211 ac_cv_header_stdc=no
23212fi
23213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23214
23215if test $ac_cv_header_stdc = yes; then
23216 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23218/* end confdefs.h. */
23219#include <string.h>
23220
23221_ACEOF
23222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23223 $EGREP "memchr" >/dev/null 2>&1; then :
23224
23225else
23226 ac_cv_header_stdc=no
23227fi
23228rm -f conftest*
23229
23230fi
23231
23232if test $ac_cv_header_stdc = yes; then
23233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23235/* end confdefs.h. */
23236#include <stdlib.h>
23237
23238_ACEOF
23239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23240 $EGREP "free" >/dev/null 2>&1; then :
23241
23242else
23243 ac_cv_header_stdc=no
23244fi
23245rm -f conftest*
23246
23247fi
23248
23249if test $ac_cv_header_stdc = yes; then
23250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23251 if test "$cross_compiling" = yes; then :
23252 :
23253else
23254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23255/* end confdefs.h. */
23256#include <ctype.h>
23257#include <stdlib.h>
23258#if ((' ' & 0x0FF) == 0x020)
23259# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23260# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23261#else
23262# define ISLOWER(c) \
23263 (('a' <= (c) && (c) <= 'i') \
23264 || ('j' <= (c) && (c) <= 'r') \
23265 || ('s' <= (c) && (c) <= 'z'))
23266# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23267#endif
23268
23269#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23270int
23271main ()
23272{
23273 int i;
23274 for (i = 0; i < 256; i++)
23275 if (XOR (islower (i), ISLOWER (i))
23276 || toupper (i) != TOUPPER (i))
23277 return 2;
23278 return 0;
23279}
23280_ACEOF
23281if ac_fn_c_try_run "$LINENO"; then :
23282
23283else
23284 ac_cv_header_stdc=no
23285fi
23286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23287 conftest.$ac_objext conftest.beam conftest.$ac_ext
23288fi
23289
23290fi
23291fi
23292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23293$as_echo "$ac_cv_header_stdc" >&6; }
23294if test $ac_cv_header_stdc = yes; then
23295
23296$as_echo "#define STDC_HEADERS 1" >>confdefs.h
23297
23298fi
23299
23300
23301
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
23303$as_echo_n "checking for malloc.h... " >&6; }
23304if ${ac_cv_header_malloc_h+:} false; then :
23305 $as_echo_n "(cached) " >&6
23306else
23307
23308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23309/* end confdefs.h. */
23310
23311
23312#include <malloc.h>
23313
23314int main (void)
23315{
23316
23317 void *p = malloc(10);
23318 void *q = calloc(10,10);
23319 free(p);
23320 free(q);
23321
23322 ;
23323 return 0;
23324}
23325
23326_ACEOF
23327if ac_fn_c_try_compile "$LINENO"; then :
23328
23329 ac_cv_header_malloc_h="yes"
23330
23331else
23332
23333 ac_cv_header_malloc_h="no"
23334
23335fi
23336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23337
23338fi
23339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
23340$as_echo "$ac_cv_header_malloc_h" >&6; }
23341 if test "$ac_cv_header_malloc_h" = "yes"; then
23342
23343cat >>confdefs.h <<_ACEOF
23344#define HAVE_MALLOC_H 1
23345_ACEOF
23346
23347 #
23348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23349/* end confdefs.h. */
23350
23351
23352#include <stdlib.h>
23353
23354int main (void)
23355{
23356
23357 void *p = malloc(10);
23358 void *q = calloc(10,10);
23359 free(p);
23360 free(q);
23361
23362 ;
23363 return 0;
23364}
23365
23366_ACEOF
23367if ac_fn_c_try_compile "$LINENO"; then :
23368
23369 curl_cv_need_header_malloc_h="no"
23370
23371else
23372
23373 curl_cv_need_header_malloc_h="yes"
23374
23375fi
23376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23377 #
23378 case "$curl_cv_need_header_malloc_h" in
23379 yes)
23380
23381cat >>confdefs.h <<_ACEOF
23382#define NEED_MALLOC_H 1
23383_ACEOF
23384
23385 ;;
23386 esac
23387 fi
23388
23389
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
23391$as_echo_n "checking for memory.h... " >&6; }
23392if ${ac_cv_header_memory_h+:} false; then :
23393 $as_echo_n "(cached) " >&6
23394else
23395
23396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23397/* end confdefs.h. */
23398
23399
23400#include <memory.h>
23401
23402int main (void)
23403{
23404
23405 void *p = malloc(10);
23406 void *q = calloc(10,10);
23407 free(p);
23408 free(q);
23409
23410 ;
23411 return 0;
23412}
23413
23414_ACEOF
23415if ac_fn_c_try_compile "$LINENO"; then :
23416
23417 ac_cv_header_memory_h="yes"
23418
23419else
23420
23421 ac_cv_header_memory_h="no"
23422
23423fi
23424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23425
23426fi
23427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
23428$as_echo "$ac_cv_header_memory_h" >&6; }
23429 if test "$ac_cv_header_memory_h" = "yes"; then
23430
23431cat >>confdefs.h <<_ACEOF
23432#define HAVE_MEMORY_H 1
23433_ACEOF
23434
23435 #
23436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437/* end confdefs.h. */
23438
23439
23440#include <stdlib.h>
23441
23442int main (void)
23443{
23444
23445 void *p = malloc(10);
23446 void *q = calloc(10,10);
23447 free(p);
23448 free(q);
23449
23450 ;
23451 return 0;
23452}
23453
23454_ACEOF
23455if ac_fn_c_try_compile "$LINENO"; then :
23456
23457 curl_cv_need_header_memory_h="no"
23458
23459else
23460
23461 curl_cv_need_header_memory_h="yes"
23462
23463fi
23464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23465 #
23466 case "$curl_cv_need_header_memory_h" in
23467 yes)
23468
23469cat >>confdefs.h <<_ACEOF
23470#define NEED_MEMORY_H 1
23471_ACEOF
23472
23473 ;;
23474 esac
23475 fi
23476
23477
23478for ac_header in sys/types.h \
23479 sys/time.h \
23480 sys/select.h \
23481 sys/socket.h \
23482 sys/ioctl.h \
23483 sys/param.h \
23484 sys/uio.h \
23485 assert.h \
23486 netdb.h \
23487 netinet/in.h \
23488 netinet/tcp.h \
23489 net/if.h \
23490 errno.h \
23491 socket.h \
23492 strings.h \
23493 stdbool.h \
23494 time.h \
23495 limits.h \
23496 arpa/nameser.h \
23497 arpa/nameser_compat.h \
23498 arpa/inet.h
23499do :
23500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23501ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23502#ifdef HAVE_SYS_TYPES_H
23503#include <sys/types.h>
23504#endif
23505#ifdef HAVE_SYS_TIME_H
23506#include <sys/time.h>
23507#endif
23508#ifdef HAVE_ARPA_NAMESER_H
23509#include <arpa/nameser.h>
23510#endif
23511
23512#ifdef HAVE_SYS_SOCKET_H
23513#include <sys/socket.h>
23514#endif
23515#ifdef HAVE_NETINET_IN_H
23516#include <netinet/in.h>
23517#endif
23518
23519
23520"
23521if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23522 cat >>confdefs.h <<_ACEOF
23523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23524_ACEOF
23525
23526fi
23527
23528done
23529
23530
23531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23532$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23533if ${ac_cv_c_const+:} false; then :
23534 $as_echo_n "(cached) " >&6
23535else
23536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23537/* end confdefs.h. */
23538
23539int main (void)
23540{
23541
23542#ifndef __cplusplus
23543 /* Ultrix mips cc rejects this sort of thing. */
23544 typedef int charset[2];
23545 const charset cs = { 0, 0 };
23546 /* SunOS 4.1.1 cc rejects this. */
23547 char const *const *pcpcc;
23548 char **ppc;
23549 /* NEC SVR4.0.2 mips cc rejects this. */
23550 struct point {int x, y;};
23551 static struct point const zero = {0,0};
23552 /* AIX XL C 1.02.0.0 rejects this.
23553 It does not let you subtract one const X* pointer from another in
23554 an arm of an if-expression whose if-part is not a constant
23555 expression */
23556 const char *g = "string";
23557 pcpcc = &g + (g ? g-g : 0);
23558 /* HPUX 7.0 cc rejects these. */
23559 ++pcpcc;
23560 ppc = (char**) pcpcc;
23561 pcpcc = (char const *const *) ppc;
23562 { /* SCO 3.2v4 cc rejects this sort of thing. */
23563 char tx;
23564 char *t = &tx;
23565 char const *s = 0 ? (char *) 0 : (char const *) 0;
23566
23567 *t++ = 0;
23568 if (s) return 0;
23569 }
23570 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23571 int x[] = {25, 17};
23572 const int *foo = &x[0];
23573 ++foo;
23574 }
23575 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23576 typedef const int *iptr;
23577 iptr p = 0;
23578 ++p;
23579 }
23580 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23581 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23582 struct s { int j; const int *ap[3]; } bx;
23583 struct s *b = &bx; b->j = 5;
23584 }
23585 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23586 const int foo = 10;
23587 if (!foo) return 0;
23588 }
23589 return !cs[0] && !zero.x;
23590#endif
23591
23592 ;
23593 return 0;
23594}
23595_ACEOF
23596if ac_fn_c_try_compile "$LINENO"; then :
23597 ac_cv_c_const=yes
23598else
23599 ac_cv_c_const=no
23600fi
23601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23602fi
23603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23604$as_echo "$ac_cv_c_const" >&6; }
23605if test $ac_cv_c_const = no; then
23606
23607$as_echo "#define const /**/" >>confdefs.h
23608
23609fi
23610
23611ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23612if test "x$ac_cv_type_size_t" = xyes; then :
23613
23614else
23615
23616cat >>confdefs.h <<_ACEOF
23617#define size_t unsigned int
23618_ACEOF
23619
23620fi
23621
23622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23623$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23624if ${ac_cv_header_time+:} false; then :
23625 $as_echo_n "(cached) " >&6
23626else
23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628/* end confdefs.h. */
23629#include <sys/types.h>
23630#include <sys/time.h>
23631#include <time.h>
23632
23633int main (void)
23634{
23635if ((struct tm *) 0)
23636return 0;
23637 ;
23638 return 0;
23639}
23640_ACEOF
23641if ac_fn_c_try_compile "$LINENO"; then :
23642 ac_cv_header_time=yes
23643else
23644 ac_cv_header_time=no
23645fi
23646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23647fi
23648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23649$as_echo "$ac_cv_header_time" >&6; }
23650if test $ac_cv_header_time = yes; then
23651
23652$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23653
23654fi
23655
23656
23657 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
23658do :
23659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23660ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23661if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23662 cat >>confdefs.h <<_ACEOF
23663#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23664_ACEOF
23665
23666fi
23667
23668done
23669
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
23671$as_echo_n "checking for struct timeval... " >&6; }
23672if ${ac_cv_struct_timeval+:} false; then :
23673 $as_echo_n "(cached) " >&6
23674else
23675
23676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23677/* end confdefs.h. */
23678
23679
23680#undef inline
23681#ifdef HAVE_WINDOWS_H
23682#ifndef WIN32_LEAN_AND_MEAN
23683#define WIN32_LEAN_AND_MEAN
23684#endif
23685#include <windows.h>
23686#ifdef HAVE_WINSOCK2_H
23687#include <winsock2.h>
23688#else
23689#ifdef HAVE_WINSOCK_H
23690#include <winsock.h>
23691#endif
23692#endif
23693#endif
23694#ifdef HAVE_SYS_TYPES_H
23695#include <sys/types.h>
23696#endif
23697#ifdef HAVE_SYS_TIME_H
23698#include <sys/time.h>
23699#ifdef TIME_WITH_SYS_TIME
23700#include <time.h>
23701#endif
23702#else
23703#ifdef HAVE_TIME_H
23704#include <time.h>
23705#endif
23706#endif
23707#ifdef HAVE_SYS_SOCKET_H
23708#include <sys/socket.h>
23709#endif
23710
23711int main (void)
23712{
23713
23714 struct timeval ts;
23715 ts.tv_sec = 0;
23716 ts.tv_usec = 0;
23717
23718 ;
23719 return 0;
23720}
23721
23722_ACEOF
23723if ac_fn_c_try_compile "$LINENO"; then :
23724
23725 ac_cv_struct_timeval="yes"
23726
23727else
23728
23729 ac_cv_struct_timeval="no"
23730
23731fi
23732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733
23734fi
23735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
23736$as_echo "$ac_cv_struct_timeval" >&6; }
23737 case "$ac_cv_struct_timeval" in
23738 yes)
23739
23740cat >>confdefs.h <<_ACEOF
23741#define HAVE_STRUCT_TIMEVAL 1
23742_ACEOF
23743
23744 ;;
23745 esac
23746
23747
23748ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23749if test "x$ac_cv_type_long_long" = xyes; then :
23750
23751$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
23752
23753 longlong="yes"
23754
23755fi
23756
23757
23758if test "xyes" = "x$longlong"; then
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
23760$as_echo_n "checking if numberLL works... " >&6; }
23761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23762/* end confdefs.h. */
23763
23764
23765
23766int main (void)
23767{
23768
23769 long long val = 1000LL;
23770
23771 ;
23772 return 0;
23773}
23774
23775_ACEOF
23776if ac_fn_c_try_compile "$LINENO"; then :
23777
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23779$as_echo "yes" >&6; }
23780
23781$as_echo "#define HAVE_LL 1" >>confdefs.h
23782
23783
23784else
23785
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23787$as_echo "no" >&6; }
23788
23789fi
23790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23791fi
23792
23793
23794# check for ssize_t
23795ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23796if test "x$ac_cv_type_ssize_t" = xyes; then :
23797
23798else
23799
23800$as_echo "#define ssize_t int" >>confdefs.h
23801
23802fi
23803
23804
23805# check for bool type
23806ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
23807#ifdef HAVE_SYS_TYPES_H
23808#include <sys/types.h>
23809#endif
23810#ifdef HAVE_STDBOOL_H
23811#include <stdbool.h>
23812#endif
23813
23814"
23815if test "x$ac_cv_type_bool" = xyes; then :
23816
23817
23818$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
23819
23820
23821fi
23822
23823
23824
23825cares_includes_ws2tcpip="\
23826/* includes start */
23827#ifdef HAVE_WINDOWS_H
23828# ifndef WIN32_LEAN_AND_MEAN
23829# define WIN32_LEAN_AND_MEAN
23830# endif
23831# include <windows.h>
23832# ifdef HAVE_WINSOCK2_H
23833# include <winsock2.h>
23834# ifdef HAVE_WS2TCPIP_H
23835# include <ws2tcpip.h>
23836# endif
23837# endif
23838#endif
23839/* includes end */"
23840
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23842$as_echo_n "checking for windows.h... " >&6; }
23843if ${ac_cv_header_windows_h+:} false; then :
23844 $as_echo_n "(cached) " >&6
23845else
23846
23847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848/* end confdefs.h. */
23849
23850
23851#undef inline
23852#ifndef WIN32_LEAN_AND_MEAN
23853#define WIN32_LEAN_AND_MEAN
23854#endif
23855#include <windows.h>
23856
23857int main (void)
23858{
23859
23860#if defined(__CYGWIN__) || defined(__CEGCC__)
23861 HAVE_WINDOWS_H shall not be defined.
23862#else
23863 int dummy=2*WINVER;
23864#endif
23865
23866 ;
23867 return 0;
23868}
23869
23870_ACEOF
23871if ac_fn_c_try_compile "$LINENO"; then :
23872
23873 ac_cv_header_windows_h="yes"
23874
23875else
23876
23877 ac_cv_header_windows_h="no"
23878
23879fi
23880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23881
23882fi
23883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
23884$as_echo "$ac_cv_header_windows_h" >&6; }
23885 case "$ac_cv_header_windows_h" in
23886 yes)
23887
23888cat >>confdefs.h <<_ACEOF
23889#define HAVE_WINDOWS_H 1
23890_ACEOF
23891
23892
23893cat >>confdefs.h <<_ACEOF
23894#define WIN32_LEAN_AND_MEAN 1
23895_ACEOF
23896
23897 ;;
23898 esac
23899
23900
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
23902$as_echo_n "checking for winsock2.h... " >&6; }
23903if ${ac_cv_header_winsock2_h+:} false; then :
23904 $as_echo_n "(cached) " >&6
23905else
23906
23907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908/* end confdefs.h. */
23909
23910
23911#undef inline
23912#ifndef WIN32_LEAN_AND_MEAN
23913#define WIN32_LEAN_AND_MEAN
23914#endif
23915#include <windows.h>
23916#include <winsock2.h>
23917
23918int main (void)
23919{
23920
23921#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23922 HAVE_WINSOCK2_H shall not be defined.
23923#else
23924 int dummy=2*IPPROTO_ESP;
23925#endif
23926
23927 ;
23928 return 0;
23929}
23930
23931_ACEOF
23932if ac_fn_c_try_compile "$LINENO"; then :
23933
23934 ac_cv_header_winsock2_h="yes"
23935
23936else
23937
23938 ac_cv_header_winsock2_h="no"
23939
23940fi
23941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23942
23943fi
23944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
23945$as_echo "$ac_cv_header_winsock2_h" >&6; }
23946 case "$ac_cv_header_winsock2_h" in
23947 yes)
23948
23949cat >>confdefs.h <<_ACEOF
23950#define HAVE_WINSOCK2_H 1
23951_ACEOF
23952
23953 ;;
23954 esac
23955
23956
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
23958$as_echo_n "checking for ws2tcpip.h... " >&6; }
23959if ${ac_cv_header_ws2tcpip_h+:} false; then :
23960 $as_echo_n "(cached) " >&6
23961else
23962
23963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23964/* end confdefs.h. */
23965
23966
23967#undef inline
23968#ifndef WIN32_LEAN_AND_MEAN
23969#define WIN32_LEAN_AND_MEAN
23970#endif
23971#include <windows.h>
23972#include <winsock2.h>
23973#include <ws2tcpip.h>
23974
23975int main (void)
23976{
23977
23978#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23979 HAVE_WS2TCPIP_H shall not be defined.
23980#else
23981 int dummy=2*IP_PKTINFO;
23982#endif
23983
23984 ;
23985 return 0;
23986}
23987
23988_ACEOF
23989if ac_fn_c_try_compile "$LINENO"; then :
23990
23991 ac_cv_header_ws2tcpip_h="yes"
23992
23993else
23994
23995 ac_cv_header_ws2tcpip_h="no"
23996
23997fi
23998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999
24000fi
24001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
24002$as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
24003 case "$ac_cv_header_ws2tcpip_h" in
24004 yes)
24005
24006cat >>confdefs.h <<_ACEOF
24007#define HAVE_WS2TCPIP_H 1
24008_ACEOF
24009
24010 ;;
24011 esac
24012
24013
24014
24015cares_includes_sys_socket="\
24016/* includes start */
24017#ifdef HAVE_SYS_TYPES_H
24018# include <sys/types.h>
24019#endif
24020#ifdef HAVE_SYS_SOCKET_H
24021# include <sys/socket.h>
24022#endif
24023/* includes end */"
24024 for ac_header in sys/types.h sys/socket.h
24025do :
24026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24027ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_socket
24028"
24029if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24030 cat >>confdefs.h <<_ACEOF
24031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24032_ACEOF
24033
24034fi
24035
24036done
24037
24038
24039
24040cares_preprocess_callconv="\
24041/* preprocess start */
24042#ifdef HAVE_WINDOWS_H
24043# define FUNCALLCONV __stdcall
24044#else
24045# define FUNCALLCONV
24046#endif
24047/* preprocess end */"
24048
24049
24050 #
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5
24052$as_echo_n "checking for ares_socklen_t data type... " >&6; }
24053 cares_typeof_ares_socklen_t="unknown"
24054 for arg1 in int SOCKET; do
24055 for arg2 in 'struct sockaddr' void; do
24056 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
24057 if test "$cares_typeof_ares_socklen_t" = "unknown"; then
24058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059/* end confdefs.h. */
24060
24061
24062 $cares_includes_ws2tcpip
24063 $cares_includes_sys_socket
24064 $cares_preprocess_callconv
24065 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
24066
24067int main (void)
24068{
24069
24070 $t *lenptr = 0;
24071 if(0 != getpeername(0, 0, lenptr))
24072 return 1;
24073
24074 ;
24075 return 0;
24076}
24077
24078_ACEOF
24079if ac_fn_c_try_compile "$LINENO"; then :
24080
24081 cares_typeof_ares_socklen_t="$t"
24082
24083fi
24084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24085 fi
24086 done
24087 done
24088 done
24089 for t in socklen_t int; do
24090 if test "$cares_typeof_ares_socklen_t" = "void"; then
24091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24092/* end confdefs.h. */
24093
24094
24095 $cares_includes_sys_socket
24096 typedef $t ares_socklen_t;
24097
24098int main (void)
24099{
24100
24101 ares_socklen_t dummy;
24102
24103 ;
24104 return 0;
24105}
24106
24107_ACEOF
24108if ac_fn_c_try_compile "$LINENO"; then :
24109
24110 cares_typeof_ares_socklen_t="$t"
24111
24112fi
24113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24114 fi
24115 done
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5
24117$as_echo "$cares_typeof_ares_socklen_t" >&6; }
24118 if test "$cares_typeof_ares_socklen_t" = "void" ||
24119 test "$cares_typeof_ares_socklen_t" = "unknown"; then
24120 as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5
24121 fi
24122 #
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5
24124$as_echo_n "checking size of ares_socklen_t... " >&6; }
24125 cares_sizeof_ares_socklen_t="unknown"
24126 cares_pull_headers_socklen_t="unknown"
24127 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
24128 tst_pull_header_checks='none ws2tcpip'
24129 tst_size_checks='4'
24130 else
24131 tst_pull_header_checks='none systypes syssocket'
24132 tst_size_checks='4 8 2'
24133 fi
24134 for tst_size in $tst_size_checks; do
24135 for tst_pull_headers in $tst_pull_header_checks; do
24136 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
24137 case $tst_pull_headers in
24138 ws2tcpip)
24139 tmp_includes="$cares_includes_ws2tcpip"
24140 ;;
24141 systypes)
24142 tmp_includes="$cares_includes_sys_types"
24143 ;;
24144 syssocket)
24145 tmp_includes="$cares_includes_sys_socket"
24146 ;;
24147 *)
24148 tmp_includes=""
24149 ;;
24150 esac
24151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152/* end confdefs.h. */
24153
24154
24155 $tmp_includes
24156 typedef $cares_typeof_ares_socklen_t ares_socklen_t;
24157 typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1];
24158
24159int main (void)
24160{
24161
24162 ares_socklen_t dummy;
24163
24164 ;
24165 return 0;
24166}
24167
24168_ACEOF
24169if ac_fn_c_try_compile "$LINENO"; then :
24170
24171 cares_sizeof_ares_socklen_t="$tst_size"
24172 cares_pull_headers_socklen_t="$tst_pull_headers"
24173
24174fi
24175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24176 fi
24177 done
24178 done
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5
24180$as_echo "$cares_sizeof_ares_socklen_t" >&6; }
24181 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then
24182 as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5
24183 fi
24184 #
24185 case $cares_pull_headers_socklen_t in
24186 ws2tcpip)
24187
24188cat >>confdefs.h <<_EOF
24189#define CARES_PULL_WS2TCPIP_H 1
24190_EOF
24191
24192 ;;
24193 systypes)
24194
24195cat >>confdefs.h <<_EOF
24196#define CARES_PULL_SYS_TYPES_H 1
24197_EOF
24198
24199 ;;
24200 syssocket)
24201
24202cat >>confdefs.h <<_EOF
24203#define CARES_PULL_SYS_TYPES_H 1
24204_EOF
24205
24206
24207cat >>confdefs.h <<_EOF
24208#define CARES_PULL_SYS_SOCKET_H 1
24209_EOF
24210
24211 ;;
24212 esac
24213
24214cat >>confdefs.h <<_EOF
24215#define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t
24216_EOF
24217
24218
24219cat >>confdefs.h <<_EOF
24220#define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t
24221_EOF
24222
24223
24224
24225
24226 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
24227#undef inline
24228#ifdef HAVE_WINDOWS_H
24229#ifndef WIN32_LEAN_AND_MEAN
24230#define WIN32_LEAN_AND_MEAN
24231#endif
24232#include <windows.h>
24233#ifdef HAVE_WINSOCK2_H
24234#include <winsock2.h>
24235#else
24236#ifdef HAVE_WINSOCK_H
24237#include <winsock.h>
24238#endif
24239#endif
24240#else
24241#ifdef HAVE_SYS_TYPES_H
24242#include <sys/types.h>
24243#endif
24244#ifdef HAVE_SYS_SOCKET_H
24245#include <sys/socket.h>
24246#endif
24247#ifdef HAVE_NETINET_IN_H
24248#include <netinet/in.h>
24249#endif
24250#ifdef HAVE_ARPA_INET_H
24251#include <arpa/inet.h>
24252#endif
24253#endif
24254
24255"
24256if test "x$ac_cv_type_in_addr_t" = xyes; then :
24257
24258else
24259
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
24261$as_echo_n "checking for in_addr_t equivalent... " >&6; }
24262if ${curl_cv_in_addr_t_equiv+:} false; then :
24263 $as_echo_n "(cached) " >&6
24264else
24265
24266 curl_cv_in_addr_t_equiv="unknown"
24267 for t in "unsigned long" int size_t unsigned long; do
24268 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
24269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24270/* end confdefs.h. */
24271
24272
24273#undef inline
24274#ifdef HAVE_WINDOWS_H
24275#ifndef WIN32_LEAN_AND_MEAN
24276#define WIN32_LEAN_AND_MEAN
24277#endif
24278#include <windows.h>
24279#ifdef HAVE_WINSOCK2_H
24280#include <winsock2.h>
24281#else
24282#ifdef HAVE_WINSOCK_H
24283#include <winsock.h>
24284#endif
24285#endif
24286#else
24287#ifdef HAVE_SYS_TYPES_H
24288#include <sys/types.h>
24289#endif
24290#ifdef HAVE_SYS_SOCKET_H
24291#include <sys/socket.h>
24292#endif
24293#ifdef HAVE_NETINET_IN_H
24294#include <netinet/in.h>
24295#endif
24296#ifdef HAVE_ARPA_INET_H
24297#include <arpa/inet.h>
24298#endif
24299#endif
24300
24301int main (void)
24302{
24303
24304 $t data = inet_addr ("1.2.3.4");
24305
24306 ;
24307 return 0;
24308}
24309
24310_ACEOF
24311if ac_fn_c_try_link "$LINENO"; then :
24312
24313 curl_cv_in_addr_t_equiv="$t"
24314
24315fi
24316rm -f core conftest.err conftest.$ac_objext \
24317 conftest$ac_exeext conftest.$ac_ext
24318 fi
24319 done
24320
24321fi
24322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
24323$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
24324 case "$curl_cv_in_addr_t_equiv" in
24325 unknown)
24326 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
24327 ;;
24328 *)
24329
24330cat >>confdefs.h <<_ACEOF
24331#define in_addr_t $curl_cv_in_addr_t_equiv
24332_ACEOF
24333
24334 ;;
24335 esac
24336
24337fi
24338
24339
24340
24341
24342 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
24343#undef inline
24344#ifdef HAVE_WINDOWS_H
24345#ifndef WIN32_LEAN_AND_MEAN
24346#define WIN32_LEAN_AND_MEAN
24347#endif
24348#include <windows.h>
24349#ifdef HAVE_WINSOCK2_H
24350#include <winsock2.h>
24351#endif
24352#else
24353#ifdef HAVE_SYS_TYPES_H
24354#include <sys/types.h>
24355#endif
24356#ifdef HAVE_SYS_SOCKET_H
24357#include <sys/socket.h>
24358#endif
24359#ifdef HAVE_NETINET_IN_H
24360#include <netinet/in.h>
24361#endif
24362#ifdef HAVE_ARPA_INET_H
24363#include <arpa/inet.h>
24364#endif
24365#endif
24366
24367"
24368if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
24369
24370$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
24371
24372fi
24373
24374
24375
24376
24377 for ac_header in signal.h
24378do :
24379 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
24380if test "x$ac_cv_header_signal_h" = xyes; then :
24381 cat >>confdefs.h <<_ACEOF
24382#define HAVE_SIGNAL_H 1
24383_ACEOF
24384
24385fi
24386
24387done
24388
24389 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
24390#ifdef HAVE_SIGNAL_H
24391#include <signal.h>
24392#endif
24393
24394"
24395if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
24396
24397
24398$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
24399
24400
24401fi
24402
24403 case "$ac_cv_type_sig_atomic_t" in
24404 yes)
24405 #
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
24407$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
24408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24409/* end confdefs.h. */
24410
24411
24412#ifdef HAVE_SIGNAL_H
24413#include <signal.h>
24414#endif
24415
24416int main (void)
24417{
24418
24419 static volatile sig_atomic_t dummy = 0;
24420
24421 ;
24422 return 0;
24423}
24424
24425_ACEOF
24426if ac_fn_c_try_link "$LINENO"; then :
24427
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24429$as_echo "no" >&6; }
24430 ac_cv_sig_atomic_t_volatile="no"
24431
24432else
24433
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24435$as_echo "yes" >&6; }
24436 ac_cv_sig_atomic_t_volatile="yes"
24437
24438fi
24439rm -f core conftest.err conftest.$ac_objext \
24440 conftest$ac_exeext conftest.$ac_ext
24441 #
24442 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
24443
24444$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
24445
24446 fi
24447 ;;
24448 esac
24449
24450
24451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24452$as_echo_n "checking return type of signal handlers... " >&6; }
24453if ${ac_cv_type_signal+:} false; then :
24454 $as_echo_n "(cached) " >&6
24455else
24456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24457/* end confdefs.h. */
24458#include <sys/types.h>
24459#include <signal.h>
24460
24461int main (void)
24462{
24463return *(signal (0, 0)) (0) == 1;
24464 ;
24465 return 0;
24466}
24467_ACEOF
24468if ac_fn_c_try_compile "$LINENO"; then :
24469 ac_cv_type_signal=int
24470else
24471 ac_cv_type_signal=void
24472fi
24473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24474fi
24475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24476$as_echo "$ac_cv_type_signal" >&6; }
24477
24478cat >>confdefs.h <<_ACEOF
24479#define RETSIGTYPE $ac_cv_type_signal
24480_ACEOF
24481
24482
24483
24484
24485 for ac_header in sys/types.h sys/socket.h
24486do :
24487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24488ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24489if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24490 cat >>confdefs.h <<_ACEOF
24491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24492_ACEOF
24493
24494fi
24495
24496done
24497
24498 #
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
24500$as_echo_n "checking for recv... " >&6; }
24501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24502/* end confdefs.h. */
24503
24504
24505#undef inline
24506#ifdef HAVE_WINDOWS_H
24507#ifndef WIN32_LEAN_AND_MEAN
24508#define WIN32_LEAN_AND_MEAN
24509#endif
24510#include <windows.h>
24511#ifdef HAVE_WINSOCK2_H
24512#include <winsock2.h>
24513#else
24514#ifdef HAVE_WINSOCK_H
24515#include <winsock.h>
24516#endif
24517#endif
24518#else
24519#ifdef HAVE_SYS_TYPES_H
24520#include <sys/types.h>
24521#endif
24522#ifdef HAVE_SYS_SOCKET_H
24523#include <sys/socket.h>
24524#endif
24525#endif
24526
24527int main (void)
24528{
24529
24530 recv(0, 0, 0, 0);
24531
24532 ;
24533 return 0;
24534}
24535
24536_ACEOF
24537if ac_fn_c_try_link "$LINENO"; then :
24538
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24540$as_echo "yes" >&6; }
24541 curl_cv_recv="yes"
24542
24543else
24544
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24546$as_echo "no" >&6; }
24547 curl_cv_recv="no"
24548
24549fi
24550rm -f core conftest.err conftest.$ac_objext \
24551 conftest$ac_exeext conftest.$ac_ext
24552 #
24553 if test "$curl_cv_recv" = "yes"; then
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
24555$as_echo_n "checking types of args and return type for recv... " >&6; }
24556if ${curl_cv_func_recv_args+:} false; then :
24557 $as_echo_n "(cached) " >&6
24558else
24559
24560 curl_cv_func_recv_args="unknown"
24561 for recv_retv in 'int' 'ssize_t'; do
24562 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24563 for recv_arg2 in 'char *' 'void *'; do
24564 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24565 for recv_arg4 in 'int' 'unsigned int'; do
24566 if test "$curl_cv_func_recv_args" = "unknown"; then
24567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24568/* end confdefs.h. */
24569
24570
24571#undef inline
24572#ifdef HAVE_WINDOWS_H
24573#ifndef WIN32_LEAN_AND_MEAN
24574#define WIN32_LEAN_AND_MEAN
24575#endif
24576#include <windows.h>
24577#ifdef HAVE_WINSOCK2_H
24578#include <winsock2.h>
24579#else
24580#ifdef HAVE_WINSOCK_H
24581#include <winsock.h>
24582#endif
24583#endif
24584#define RECVCALLCONV PASCAL
24585#else
24586#ifdef HAVE_SYS_TYPES_H
24587#include <sys/types.h>
24588#endif
24589#ifdef HAVE_SYS_SOCKET_H
24590#include <sys/socket.h>
24591#endif
24592#define RECVCALLCONV
24593#endif
24594 extern $recv_retv RECVCALLCONV
24595 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
24596
24597int main (void)
24598{
24599
24600 $recv_arg1 s=0;
24601 $recv_arg2 buf=0;
24602 $recv_arg3 len=0;
24603 $recv_arg4 flags=0;
24604 $recv_retv res = recv(s, buf, len, flags);
24605
24606 ;
24607 return 0;
24608}
24609
24610_ACEOF
24611if ac_fn_c_try_compile "$LINENO"; then :
24612
24613 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
24614
24615fi
24616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24617 fi
24618 done
24619 done
24620 done
24621 done
24622 done
24623
24624fi
24625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
24626$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
24627 if test "$curl_cv_func_recv_args" = "unknown"; then
24628 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
24629 else
24630 recv_prev_IFS=$IFS; IFS=','
24631 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
24632 IFS=$recv_prev_IFS
24633 shift
24634 #
24635
24636cat >>confdefs.h <<_ACEOF
24637#define RECV_TYPE_ARG1 $1
24638_ACEOF
24639
24640
24641cat >>confdefs.h <<_ACEOF
24642#define RECV_TYPE_ARG2 $2
24643_ACEOF
24644
24645
24646cat >>confdefs.h <<_ACEOF
24647#define RECV_TYPE_ARG3 $3
24648_ACEOF
24649
24650
24651cat >>confdefs.h <<_ACEOF
24652#define RECV_TYPE_ARG4 $4
24653_ACEOF
24654
24655
24656cat >>confdefs.h <<_ACEOF
24657#define RECV_TYPE_RETV $5
24658_ACEOF
24659
24660 #
24661
24662cat >>confdefs.h <<_ACEOF
24663#define HAVE_RECV 1
24664_ACEOF
24665
24666 ac_cv_func_recv="yes"
24667 fi
24668 else
24669 as_fn_error $? "Unable to link function recv" "$LINENO" 5
24670 fi
24671
24672
24673 for ac_header in sys/types.h sys/socket.h
24674do :
24675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24676ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24677if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24678 cat >>confdefs.h <<_ACEOF
24679#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24680_ACEOF
24681
24682fi
24683
24684done
24685
24686 #
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
24688$as_echo_n "checking for recvfrom... " >&6; }
24689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24690/* end confdefs.h. */
24691
24692
24693#undef inline
24694#ifdef HAVE_WINDOWS_H
24695#ifndef WIN32_LEAN_AND_MEAN
24696#define WIN32_LEAN_AND_MEAN
24697#endif
24698#include <windows.h>
24699#ifdef HAVE_WINSOCK2_H
24700#include <winsock2.h>
24701#else
24702#ifdef HAVE_WINSOCK_H
24703#include <winsock.h>
24704#endif
24705#endif
24706#else
24707#ifdef HAVE_SYS_TYPES_H
24708#include <sys/types.h>
24709#endif
24710#ifdef HAVE_SYS_SOCKET_H
24711#include <sys/socket.h>
24712#endif
24713#endif
24714
24715int main (void)
24716{
24717
24718 recvfrom(0, 0, 0, 0, 0, 0);
24719
24720 ;
24721 return 0;
24722}
24723
24724_ACEOF
24725if ac_fn_c_try_link "$LINENO"; then :
24726
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24728$as_echo "yes" >&6; }
24729 curl_cv_recvfrom="yes"
24730
24731else
24732
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24734$as_echo "no" >&6; }
24735 curl_cv_recvfrom="no"
24736
24737fi
24738rm -f core conftest.err conftest.$ac_objext \
24739 conftest$ac_exeext conftest.$ac_ext
24740 #
24741 if test "$curl_cv_recvfrom" = "yes"; then
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
24743$as_echo_n "checking types of args and return type for recvfrom... " >&6; }
24744if ${curl_cv_func_recvfrom_args+:} false; then :
24745 $as_echo_n "(cached) " >&6
24746else
24747
24748 curl_cv_func_recvfrom_args="unknown"
24749 for recvfrom_retv in 'int' 'ssize_t'; do
24750 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
24751 for recvfrom_arg2 in 'char *' 'void *'; do
24752 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
24753 for recvfrom_arg4 in 'int' 'unsigned int'; do
24754 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do
24755 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
24756 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
24757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24758/* end confdefs.h. */
24759
24760
24761#undef inline
24762#ifdef HAVE_WINDOWS_H
24763#ifndef WIN32_LEAN_AND_MEAN
24764#define WIN32_LEAN_AND_MEAN
24765#endif
24766#include <windows.h>
24767#ifdef HAVE_WINSOCK2_H
24768#include <winsock2.h>
24769#else
24770#ifdef HAVE_WINSOCK_H
24771#include <winsock.h>
24772#endif
24773#endif
24774#define RECVFROMCALLCONV PASCAL
24775#else
24776#ifdef HAVE_SYS_TYPES_H
24777#include <sys/types.h>
24778#endif
24779#ifdef HAVE_SYS_SOCKET_H
24780#include <sys/socket.h>
24781#endif
24782#define RECVFROMCALLCONV
24783#endif
24784 extern $recvfrom_retv RECVFROMCALLCONV
24785 recvfrom($recvfrom_arg1, $recvfrom_arg2,
24786 $recvfrom_arg3, $recvfrom_arg4,
24787 $recvfrom_arg5, $recvfrom_arg6);
24788
24789int main (void)
24790{
24791
24792 $recvfrom_arg1 s=0;
24793 $recvfrom_arg2 buf=0;
24794 $recvfrom_arg3 len=0;
24795 $recvfrom_arg4 flags=0;
24796 $recvfrom_arg5 addr=0;
24797 $recvfrom_arg6 addrlen=0;
24798 $recvfrom_retv res=0;
24799 res = recvfrom(s, buf, len, flags, addr, addrlen);
24800
24801 ;
24802 return 0;
24803}
24804
24805_ACEOF
24806if ac_fn_c_try_compile "$LINENO"; then :
24807
24808 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
24809
24810fi
24811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24812 fi
24813 done
24814 done
24815 done
24816 done
24817 done
24818 done
24819 done
24820
24821fi
24822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
24823$as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
24824 # Nearly last minute change for this release starts here
24825
24826cat >>confdefs.h <<_ACEOF
24827#define HAVE_RECVFROM 1
24828_ACEOF
24829
24830 ac_cv_func_recvfrom="yes"
24831 # Nearly last minute change for this release ends here
24832 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
24834$as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
24835 else
24836 recvfrom_prev_IFS=$IFS; IFS=','
24837 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
24838 IFS=$recvfrom_prev_IFS
24839 shift
24840 #
24841 recvfrom_ptrt_arg2=$2
24842 recvfrom_qual_ptrt_arg5=$5
24843 recvfrom_ptrt_arg6=$6
24844 #
24845
24846cat >>confdefs.h <<_ACEOF
24847#define RECVFROM_TYPE_ARG1 $1
24848_ACEOF
24849
24850
24851cat >>confdefs.h <<_ACEOF
24852#define RECVFROM_TYPE_ARG3 $3
24853_ACEOF
24854
24855
24856cat >>confdefs.h <<_ACEOF
24857#define RECVFROM_TYPE_ARG4 $4
24858_ACEOF
24859
24860
24861cat >>confdefs.h <<_ACEOF
24862#define RECVFROM_TYPE_RETV $7
24863_ACEOF
24864
24865 #
24866 prev_sh_opts=$-
24867 #
24868 case $prev_sh_opts in
24869 *f*)
24870 ;;
24871 *)
24872 set -f
24873 ;;
24874 esac
24875 #
24876 case "$recvfrom_qual_ptrt_arg5" in
24877 const*)
24878 recvfrom_qual_arg5=const
24879 recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
24880 ;;
24881 *)
24882 recvfrom_qual_arg5=
24883 recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
24884 ;;
24885 esac
24886 #
24887 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
24888 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
24889 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
24890 #
24891
24892cat >>confdefs.h <<_ACEOF
24893#define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
24894_ACEOF
24895
24896
24897cat >>confdefs.h <<_ACEOF
24898#define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5
24899_ACEOF
24900
24901
24902cat >>confdefs.h <<_ACEOF
24903#define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
24904_ACEOF
24905
24906
24907cat >>confdefs.h <<_ACEOF
24908#define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
24909_ACEOF
24910
24911 #
24912 if test "$recvfrom_type_arg2" = "void"; then
24913
24914cat >>confdefs.h <<_ACEOF
24915#define RECVFROM_TYPE_ARG2_IS_VOID 1
24916_ACEOF
24917
24918 fi
24919 if test "$recvfrom_type_arg5" = "void"; then
24920
24921cat >>confdefs.h <<_ACEOF
24922#define RECVFROM_TYPE_ARG5_IS_VOID 1
24923_ACEOF
24924
24925 fi
24926 if test "$recvfrom_type_arg6" = "void"; then
24927
24928cat >>confdefs.h <<_ACEOF
24929#define RECVFROM_TYPE_ARG6_IS_VOID 1
24930_ACEOF
24931
24932 fi
24933 #
24934 case $prev_sh_opts in
24935 *f*)
24936 ;;
24937 *)
24938 set +f
24939 ;;
24940 esac
24941 #
24942
24943cat >>confdefs.h <<_ACEOF
24944#define HAVE_RECVFROM 1
24945_ACEOF
24946
24947 ac_cv_func_recvfrom="yes"
24948 fi
24949 else
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
24951$as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5
24953$as_echo "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;}
24954 fi
24955
24956
24957 for ac_header in sys/types.h sys/socket.h
24958do :
24959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24960ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24962 cat >>confdefs.h <<_ACEOF
24963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24964_ACEOF
24965
24966fi
24967
24968done
24969
24970 #
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
24972$as_echo_n "checking for send... " >&6; }
24973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24974/* end confdefs.h. */
24975
24976
24977#undef inline
24978#ifdef HAVE_WINDOWS_H
24979#ifndef WIN32_LEAN_AND_MEAN
24980#define WIN32_LEAN_AND_MEAN
24981#endif
24982#include <windows.h>
24983#ifdef HAVE_WINSOCK2_H
24984#include <winsock2.h>
24985#else
24986#ifdef HAVE_WINSOCK_H
24987#include <winsock.h>
24988#endif
24989#endif
24990#else
24991#ifdef HAVE_SYS_TYPES_H
24992#include <sys/types.h>
24993#endif
24994#ifdef HAVE_SYS_SOCKET_H
24995#include <sys/socket.h>
24996#endif
24997#endif
24998
24999int main (void)
25000{
25001
25002 send(0, 0, 0, 0);
25003
25004 ;
25005 return 0;
25006}
25007
25008_ACEOF
25009if ac_fn_c_try_link "$LINENO"; then :
25010
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25012$as_echo "yes" >&6; }
25013 curl_cv_send="yes"
25014
25015else
25016
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25018$as_echo "no" >&6; }
25019 curl_cv_send="no"
25020
25021fi
25022rm -f core conftest.err conftest.$ac_objext \
25023 conftest$ac_exeext conftest.$ac_ext
25024 #
25025 if test "$curl_cv_send" = "yes"; then
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
25027$as_echo_n "checking types of args and return type for send... " >&6; }
25028if ${curl_cv_func_send_args+:} false; then :
25029 $as_echo_n "(cached) " >&6
25030else
25031
25032 curl_cv_func_send_args="unknown"
25033 for send_retv in 'int' 'ssize_t'; do
25034 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
25035 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
25036 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
25037 for send_arg4 in 'int' 'unsigned int'; do
25038 if test "$curl_cv_func_send_args" = "unknown"; then
25039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25040/* end confdefs.h. */
25041
25042
25043#undef inline
25044#ifdef HAVE_WINDOWS_H
25045#ifndef WIN32_LEAN_AND_MEAN
25046#define WIN32_LEAN_AND_MEAN
25047#endif
25048#include <windows.h>
25049#ifdef HAVE_WINSOCK2_H
25050#include <winsock2.h>
25051#else
25052#ifdef HAVE_WINSOCK_H
25053#include <winsock.h>
25054#endif
25055#endif
25056#define SENDCALLCONV PASCAL
25057#else
25058#ifdef HAVE_SYS_TYPES_H
25059#include <sys/types.h>
25060#endif
25061#ifdef HAVE_SYS_SOCKET_H
25062#include <sys/socket.h>
25063#endif
25064#define SENDCALLCONV
25065#endif
25066 extern $send_retv SENDCALLCONV
25067 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
25068
25069int main (void)
25070{
25071
25072 $send_arg1 s=0;
25073 $send_arg3 len=0;
25074 $send_arg4 flags=0;
25075 $send_retv res = send(s, 0, len, flags);
25076
25077 ;
25078 return 0;
25079}
25080
25081_ACEOF
25082if ac_fn_c_try_compile "$LINENO"; then :
25083
25084 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
25085
25086fi
25087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25088 fi
25089 done
25090 done
25091 done
25092 done
25093 done
25094
25095fi
25096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
25097$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
25098 if test "$curl_cv_func_send_args" = "unknown"; then
25099 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
25100 else
25101 send_prev_IFS=$IFS; IFS=','
25102 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
25103 IFS=$send_prev_IFS
25104 shift
25105 #
25106 send_qual_type_arg2=$2
25107 #
25108
25109cat >>confdefs.h <<_ACEOF
25110#define SEND_TYPE_ARG1 $1
25111_ACEOF
25112
25113
25114cat >>confdefs.h <<_ACEOF
25115#define SEND_TYPE_ARG3 $3
25116_ACEOF
25117
25118
25119cat >>confdefs.h <<_ACEOF
25120#define SEND_TYPE_ARG4 $4
25121_ACEOF
25122
25123
25124cat >>confdefs.h <<_ACEOF
25125#define SEND_TYPE_RETV $5
25126_ACEOF
25127
25128 #
25129 prev_sh_opts=$-
25130 #
25131 case $prev_sh_opts in
25132 *f*)
25133 ;;
25134 *)
25135 set -f
25136 ;;
25137 esac
25138 #
25139 case "$send_qual_type_arg2" in
25140 const*)
25141 send_qual_arg2=const
25142 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
25143 ;;
25144 *)
25145 send_qual_arg2=
25146 send_type_arg2=$send_qual_type_arg2
25147 ;;
25148 esac
25149 #
25150
25151cat >>confdefs.h <<_ACEOF
25152#define SEND_QUAL_ARG2 $send_qual_arg2
25153_ACEOF
25154
25155
25156cat >>confdefs.h <<_ACEOF
25157#define SEND_TYPE_ARG2 $send_type_arg2
25158_ACEOF
25159
25160 #
25161 case $prev_sh_opts in
25162 *f*)
25163 ;;
25164 *)
25165 set +f
25166 ;;
25167 esac
25168 #
25169
25170cat >>confdefs.h <<_ACEOF
25171#define HAVE_SEND 1
25172_ACEOF
25173
25174 ac_cv_func_send="yes"
25175 fi
25176 else
25177 as_fn_error $? "Unable to link function send" "$LINENO" 5
25178 fi
25179
25180
25181 for ac_header in sys/types.h sys/socket.h
25182do :
25183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25184ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25185if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25186 cat >>confdefs.h <<_ACEOF
25187#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25188_ACEOF
25189
25190fi
25191
25192done
25193
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
25195$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
25196if ${ac_cv_msg_nosignal+:} false; then :
25197 $as_echo_n "(cached) " >&6
25198else
25199
25200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25201/* end confdefs.h. */
25202
25203
25204#undef inline
25205#ifdef HAVE_WINDOWS_H
25206#ifndef WIN32_LEAN_AND_MEAN
25207#define WIN32_LEAN_AND_MEAN
25208#endif
25209#include <windows.h>
25210#ifdef HAVE_WINSOCK2_H
25211#include <winsock2.h>
25212#else
25213#ifdef HAVE_WINSOCK_H
25214#include <winsock.h>
25215#endif
25216#endif
25217#else
25218#ifdef HAVE_SYS_TYPES_H
25219#include <sys/types.h>
25220#endif
25221#ifdef HAVE_SYS_SOCKET_H
25222#include <sys/socket.h>
25223#endif
25224#endif
25225
25226int main (void)
25227{
25228
25229 int flag=MSG_NOSIGNAL;
25230
25231 ;
25232 return 0;
25233}
25234
25235_ACEOF
25236if ac_fn_c_try_compile "$LINENO"; then :
25237
25238 ac_cv_msg_nosignal="yes"
25239
25240else
25241
25242 ac_cv_msg_nosignal="no"
25243
25244fi
25245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25246
25247fi
25248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
25249$as_echo "$ac_cv_msg_nosignal" >&6; }
25250 case "$ac_cv_msg_nosignal" in
25251 yes)
25252
25253cat >>confdefs.h <<_ACEOF
25254#define HAVE_MSG_NOSIGNAL 1
25255_ACEOF
25256
25257 ;;
25258 esac
25259
25260
25261
25262cares_includes_socket="\
25263/* includes start */
25264#ifdef HAVE_SYS_TYPES_H
25265# include <sys/types.h>
25266#endif
25267#ifdef HAVE_SOCKET_H
25268# include <socket.h>
25269#endif
25270/* includes end */"
25271 for ac_header in sys/types.h socket.h
25272do :
25273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25274ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_socket
25275"
25276if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25277 cat >>confdefs.h <<_ACEOF
25278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25279_ACEOF
25280
25281fi
25282
25283done
25284
25285
25286
25287 #
25288 tst_links_closesocket="unknown"
25289 tst_proto_closesocket="unknown"
25290 tst_compi_closesocket="unknown"
25291 tst_allow_closesocket="unknown"
25292 #
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
25294$as_echo_n "checking if closesocket can be linked... " >&6; }
25295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25296/* end confdefs.h. */
25297
25298
25299 $cares_includes_winsock2
25300 $cares_includes_socket
25301
25302int main (void)
25303{
25304
25305 if(0 != closesocket(0))
25306 return 1;
25307
25308 ;
25309 return 0;
25310}
25311
25312_ACEOF
25313if ac_fn_c_try_link "$LINENO"; then :
25314
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25316$as_echo "yes" >&6; }
25317 tst_links_closesocket="yes"
25318
25319else
25320
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25322$as_echo "no" >&6; }
25323 tst_links_closesocket="no"
25324
25325fi
25326rm -f core conftest.err conftest.$ac_objext \
25327 conftest$ac_exeext conftest.$ac_ext
25328 #
25329 if test "$tst_links_closesocket" = "yes"; then
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
25331$as_echo_n "checking if closesocket is prototyped... " >&6; }
25332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333/* end confdefs.h. */
25334
25335 $cares_includes_winsock2
25336 $cares_includes_socket
25337
25338_ACEOF
25339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25340 $EGREP "closesocket" >/dev/null 2>&1; then :
25341
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25343$as_echo "yes" >&6; }
25344 tst_proto_closesocket="yes"
25345
25346else
25347
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25349$as_echo "no" >&6; }
25350 tst_proto_closesocket="no"
25351
25352fi
25353rm -f conftest*
25354
25355 fi
25356 #
25357 if test "$tst_proto_closesocket" = "yes"; then
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
25359$as_echo_n "checking if closesocket is compilable... " >&6; }
25360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361/* end confdefs.h. */
25362
25363
25364 $cares_includes_winsock2
25365 $cares_includes_socket
25366
25367int main (void)
25368{
25369
25370 if(0 != closesocket(0))
25371 return 1;
25372
25373 ;
25374 return 0;
25375}
25376
25377_ACEOF
25378if ac_fn_c_try_compile "$LINENO"; then :
25379
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25381$as_echo "yes" >&6; }
25382 tst_compi_closesocket="yes"
25383
25384else
25385
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25387$as_echo "no" >&6; }
25388 tst_compi_closesocket="no"
25389
25390fi
25391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25392 fi
25393 #
25394 if test "$tst_compi_closesocket" = "yes"; then
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
25396$as_echo_n "checking if closesocket usage allowed... " >&6; }
25397 if test "x$cares_disallow_closesocket" != "xyes"; then
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25399$as_echo "yes" >&6; }
25400 tst_allow_closesocket="yes"
25401 else
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25403$as_echo "no" >&6; }
25404 tst_allow_closesocket="no"
25405 fi
25406 fi
25407 #
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
25409$as_echo_n "checking if closesocket might be used... " >&6; }
25410 if test "$tst_links_closesocket" = "yes" &&
25411 test "$tst_proto_closesocket" = "yes" &&
25412 test "$tst_compi_closesocket" = "yes" &&
25413 test "$tst_allow_closesocket" = "yes"; then
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25415$as_echo "yes" >&6; }
25416
25417cat >>confdefs.h <<_ACEOF
25418#define HAVE_CLOSESOCKET 1
25419_ACEOF
25420
25421 ac_cv_func_closesocket="yes"
25422 else
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25424$as_echo "no" >&6; }
25425 ac_cv_func_closesocket="no"
25426 fi
25427
25428
25429 #
25430 tst_links_closesocket_camel="unknown"
25431 tst_proto_closesocket_camel="unknown"
25432 tst_compi_closesocket_camel="unknown"
25433 tst_allow_closesocket_camel="unknown"
25434 #
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
25436$as_echo_n "checking if CloseSocket can be linked... " >&6; }
25437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25438/* end confdefs.h. */
25439
25440
25441 $cares_includes_sys_socket
25442
25443int main (void)
25444{
25445
25446 if(0 != CloseSocket(0))
25447 return 1;
25448
25449 ;
25450 return 0;
25451}
25452
25453_ACEOF
25454if ac_fn_c_try_link "$LINENO"; then :
25455
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25457$as_echo "yes" >&6; }
25458 tst_links_closesocket_camel="yes"
25459
25460else
25461
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25463$as_echo "no" >&6; }
25464 tst_links_closesocket_camel="no"
25465
25466fi
25467rm -f core conftest.err conftest.$ac_objext \
25468 conftest$ac_exeext conftest.$ac_ext
25469 #
25470 if test "$tst_links_closesocket_camel" = "yes"; then
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
25472$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474/* end confdefs.h. */
25475
25476 $cares_includes_sys_socket
25477
25478_ACEOF
25479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25480 $EGREP "CloseSocket" >/dev/null 2>&1; then :
25481
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25483$as_echo "yes" >&6; }
25484 tst_proto_closesocket_camel="yes"
25485
25486else
25487
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25489$as_echo "no" >&6; }
25490 tst_proto_closesocket_camel="no"
25491
25492fi
25493rm -f conftest*
25494
25495 fi
25496 #
25497 if test "$tst_proto_closesocket_camel" = "yes"; then
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
25499$as_echo_n "checking if CloseSocket is compilable... " >&6; }
25500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25501/* end confdefs.h. */
25502
25503
25504 $cares_includes_sys_socket
25505
25506int main (void)
25507{
25508
25509 if(0 != CloseSocket(0))
25510 return 1;
25511
25512 ;
25513 return 0;
25514}
25515
25516_ACEOF
25517if ac_fn_c_try_compile "$LINENO"; then :
25518
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25520$as_echo "yes" >&6; }
25521 tst_compi_closesocket_camel="yes"
25522
25523else
25524
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25526$as_echo "no" >&6; }
25527 tst_compi_closesocket_camel="no"
25528
25529fi
25530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 fi
25532 #
25533 if test "$tst_compi_closesocket_camel" = "yes"; then
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
25535$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
25536 if test "x$cares_disallow_closesocket_camel" != "xyes"; then
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25538$as_echo "yes" >&6; }
25539 tst_allow_closesocket_camel="yes"
25540 else
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25542$as_echo "no" >&6; }
25543 tst_allow_closesocket_camel="no"
25544 fi
25545 fi
25546 #
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
25548$as_echo_n "checking if CloseSocket might be used... " >&6; }
25549 if test "$tst_links_closesocket_camel" = "yes" &&
25550 test "$tst_proto_closesocket_camel" = "yes" &&
25551 test "$tst_compi_closesocket_camel" = "yes" &&
25552 test "$tst_allow_closesocket_camel" = "yes"; then
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25554$as_echo "yes" >&6; }
25555
25556cat >>confdefs.h <<_ACEOF
25557#define HAVE_CLOSESOCKET_CAMEL 1
25558_ACEOF
25559
25560 ac_cv_func_closesocket_camel="yes"
25561 else
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25563$as_echo "no" >&6; }
25564 ac_cv_func_closesocket_camel="no"
25565 fi
25566
25567
25568 #
25569 tst_links_connect="unknown"
25570 tst_proto_connect="unknown"
25571 tst_compi_connect="unknown"
25572 tst_allow_connect="unknown"
25573 #
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
25575$as_echo_n "checking if connect can be linked... " >&6; }
25576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25577/* end confdefs.h. */
25578
25579
25580 $cares_includes_winsock2
25581 $cares_includes_sys_socket
25582 $cares_includes_socket
25583
25584int main (void)
25585{
25586
25587 if(0 != connect(0, 0, 0))
25588 return 1;
25589
25590 ;
25591 return 0;
25592}
25593
25594_ACEOF
25595if ac_fn_c_try_link "$LINENO"; then :
25596
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25598$as_echo "yes" >&6; }
25599 tst_links_connect="yes"
25600
25601else
25602
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25604$as_echo "no" >&6; }
25605 tst_links_connect="no"
25606
25607fi
25608rm -f core conftest.err conftest.$ac_objext \
25609 conftest$ac_exeext conftest.$ac_ext
25610 #
25611 if test "$tst_links_connect" = "yes"; then
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
25613$as_echo_n "checking if connect is prototyped... " >&6; }
25614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25615/* end confdefs.h. */
25616
25617 $cares_includes_winsock2
25618 $cares_includes_sys_socket
25619 $cares_includes_socket
25620
25621_ACEOF
25622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25623 $EGREP "connect" >/dev/null 2>&1; then :
25624
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25626$as_echo "yes" >&6; }
25627 tst_proto_connect="yes"
25628
25629else
25630
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25632$as_echo "no" >&6; }
25633 tst_proto_connect="no"
25634
25635fi
25636rm -f conftest*
25637
25638 fi
25639 #
25640 if test "$tst_proto_connect" = "yes"; then
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
25642$as_echo_n "checking if connect is compilable... " >&6; }
25643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25644/* end confdefs.h. */
25645
25646
25647 $cares_includes_winsock2
25648 $cares_includes_sys_socket
25649 $cares_includes_socket
25650
25651int main (void)
25652{
25653
25654 if(0 != connect(0, 0, 0))
25655 return 1;
25656
25657 ;
25658 return 0;
25659}
25660
25661_ACEOF
25662if ac_fn_c_try_compile "$LINENO"; then :
25663
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25665$as_echo "yes" >&6; }
25666 tst_compi_connect="yes"
25667
25668else
25669
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25671$as_echo "no" >&6; }
25672 tst_compi_connect="no"
25673
25674fi
25675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25676 fi
25677 #
25678 if test "$tst_compi_connect" = "yes"; then
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
25680$as_echo_n "checking if connect usage allowed... " >&6; }
25681 if test "x$cares_disallow_connect" != "xyes"; then
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25683$as_echo "yes" >&6; }
25684 tst_allow_connect="yes"
25685 else
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25687$as_echo "no" >&6; }
25688 tst_allow_connect="no"
25689 fi
25690 fi
25691 #
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
25693$as_echo_n "checking if connect might be used... " >&6; }
25694 if test "$tst_links_connect" = "yes" &&
25695 test "$tst_proto_connect" = "yes" &&
25696 test "$tst_compi_connect" = "yes" &&
25697 test "$tst_allow_connect" = "yes"; then
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25699$as_echo "yes" >&6; }
25700
25701cat >>confdefs.h <<_ACEOF
25702#define HAVE_CONNECT 1
25703_ACEOF
25704
25705 ac_cv_func_connect="yes"
25706 else
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25708$as_echo "no" >&6; }
25709 ac_cv_func_connect="no"
25710 fi
25711
25712
25713cares_includes_fcntl="\
25714/* includes start */
25715#ifdef HAVE_SYS_TYPES_H
25716# include <sys/types.h>
25717#endif
25718#ifdef HAVE_UNISTD_H
25719# include <unistd.h>
25720#endif
25721#ifdef HAVE_FCNTL_H
25722# include <fcntl.h>
25723#endif
25724/* includes end */"
25725 for ac_header in sys/types.h unistd.h fcntl.h
25726do :
25727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25728ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_fcntl
25729"
25730if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25731 cat >>confdefs.h <<_ACEOF
25732#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25733_ACEOF
25734
25735fi
25736
25737done
25738
25739
25740
25741 #
25742 tst_links_fcntl="unknown"
25743 tst_proto_fcntl="unknown"
25744 tst_compi_fcntl="unknown"
25745 tst_allow_fcntl="unknown"
25746 #
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
25748$as_echo_n "checking if fcntl can be linked... " >&6; }
25749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25750/* end confdefs.h. */
25751
25752
25753#define fcntl innocuous_fcntl
25754#ifdef __STDC__
25755# include <limits.h>
25756#else
25757# include <assert.h>
25758#endif
25759#undef fcntl
25760#ifdef __cplusplus
25761extern "C"
25762#endif
25763char fcntl ();
25764#if defined __stub_fcntl || defined __stub___fcntl
25765choke me
25766#endif
25767
25768int main (void)
25769{
25770return fcntl ();
25771 ;
25772 return 0;
25773}
25774
25775_ACEOF
25776if ac_fn_c_try_link "$LINENO"; then :
25777
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25779$as_echo "yes" >&6; }
25780 tst_links_fcntl="yes"
25781
25782else
25783
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25785$as_echo "no" >&6; }
25786 tst_links_fcntl="no"
25787
25788fi
25789rm -f core conftest.err conftest.$ac_objext \
25790 conftest$ac_exeext conftest.$ac_ext
25791 #
25792 if test "$tst_links_fcntl" = "yes"; then
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
25794$as_echo_n "checking if fcntl is prototyped... " >&6; }
25795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25796/* end confdefs.h. */
25797
25798 $cares_includes_fcntl
25799
25800_ACEOF
25801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25802 $EGREP "fcntl" >/dev/null 2>&1; then :
25803
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25805$as_echo "yes" >&6; }
25806 tst_proto_fcntl="yes"
25807
25808else
25809
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25811$as_echo "no" >&6; }
25812 tst_proto_fcntl="no"
25813
25814fi
25815rm -f conftest*
25816
25817 fi
25818 #
25819 if test "$tst_proto_fcntl" = "yes"; then
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
25821$as_echo_n "checking if fcntl is compilable... " >&6; }
25822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25823/* end confdefs.h. */
25824
25825
25826 $cares_includes_fcntl
25827
25828int main (void)
25829{
25830
25831 if(0 != fcntl(0, 0, 0))
25832 return 1;
25833
25834 ;
25835 return 0;
25836}
25837
25838_ACEOF
25839if ac_fn_c_try_compile "$LINENO"; then :
25840
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25842$as_echo "yes" >&6; }
25843 tst_compi_fcntl="yes"
25844
25845else
25846
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25848$as_echo "no" >&6; }
25849 tst_compi_fcntl="no"
25850
25851fi
25852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25853 fi
25854 #
25855 if test "$tst_compi_fcntl" = "yes"; then
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
25857$as_echo_n "checking if fcntl usage allowed... " >&6; }
25858 if test "x$cares_disallow_fcntl" != "xyes"; then
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25860$as_echo "yes" >&6; }
25861 tst_allow_fcntl="yes"
25862 else
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25864$as_echo "no" >&6; }
25865 tst_allow_fcntl="no"
25866 fi
25867 fi
25868 #
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
25870$as_echo_n "checking if fcntl might be used... " >&6; }
25871 if test "$tst_links_fcntl" = "yes" &&
25872 test "$tst_proto_fcntl" = "yes" &&
25873 test "$tst_compi_fcntl" = "yes" &&
25874 test "$tst_allow_fcntl" = "yes"; then
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25876$as_echo "yes" >&6; }
25877
25878cat >>confdefs.h <<_ACEOF
25879#define HAVE_FCNTL 1
25880_ACEOF
25881
25882 ac_cv_func_fcntl="yes"
25883
25884 #
25885 tst_compi_fcntl_o_nonblock="unknown"
25886 tst_allow_fcntl_o_nonblock="unknown"
25887 #
25888 case $host_os in
25889 sunos4* | aix3* | beos*)
25890 cares_disallow_fcntl_o_nonblock="yes"
25891 ;;
25892 esac
25893 #
25894 if test "$ac_cv_func_fcntl" = "yes"; then
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
25896$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
25897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25898/* end confdefs.h. */
25899
25900
25901 $cares_includes_fcntl
25902
25903int main (void)
25904{
25905
25906 int flags = 0;
25907 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
25908 return 1;
25909
25910 ;
25911 return 0;
25912}
25913
25914_ACEOF
25915if ac_fn_c_try_compile "$LINENO"; then :
25916
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25918$as_echo "yes" >&6; }
25919 tst_compi_fcntl_o_nonblock="yes"
25920
25921else
25922
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25924$as_echo "no" >&6; }
25925 tst_compi_fcntl_o_nonblock="no"
25926
25927fi
25928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25929 fi
25930 #
25931 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
25933$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
25934 if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25936$as_echo "yes" >&6; }
25937 tst_allow_fcntl_o_nonblock="yes"
25938 else
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25940$as_echo "no" >&6; }
25941 tst_allow_fcntl_o_nonblock="no"
25942 fi
25943 fi
25944 #
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
25946$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
25947 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
25948 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25950$as_echo "yes" >&6; }
25951
25952cat >>confdefs.h <<_ACEOF
25953#define HAVE_FCNTL_O_NONBLOCK 1
25954_ACEOF
25955
25956 ac_cv_func_fcntl_o_nonblock="yes"
25957 else
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25959$as_echo "no" >&6; }
25960 ac_cv_func_fcntl_o_nonblock="no"
25961 fi
25962
25963 else
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25965$as_echo "no" >&6; }
25966 ac_cv_func_fcntl="no"
25967 fi
25968
25969
25970cares_includes_netdb="\
25971/* includes start */
25972#ifdef HAVE_SYS_TYPES_H
25973# include <sys/types.h>
25974#endif
25975#ifdef HAVE_NETDB_H
25976# include <netdb.h>
25977#endif
25978/* includes end */"
25979 for ac_header in sys/types.h netdb.h
25980do :
25981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25982ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_netdb
25983"
25984if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25985 cat >>confdefs.h <<_ACEOF
25986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25987_ACEOF
25988
25989fi
25990
25991done
25992
25993
25994
25995 #
25996 tst_links_freeaddrinfo="unknown"
25997 tst_proto_freeaddrinfo="unknown"
25998 tst_compi_freeaddrinfo="unknown"
25999 tst_allow_freeaddrinfo="unknown"
26000 #
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
26002$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
26003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26004/* end confdefs.h. */
26005
26006
26007 $cares_includes_ws2tcpip
26008 $cares_includes_sys_socket
26009 $cares_includes_netdb
26010
26011int main (void)
26012{
26013
26014 freeaddrinfo(0);
26015
26016 ;
26017 return 0;
26018}
26019
26020_ACEOF
26021if ac_fn_c_try_link "$LINENO"; then :
26022
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26024$as_echo "yes" >&6; }
26025 tst_links_freeaddrinfo="yes"
26026
26027else
26028
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26030$as_echo "no" >&6; }
26031 tst_links_freeaddrinfo="no"
26032
26033fi
26034rm -f core conftest.err conftest.$ac_objext \
26035 conftest$ac_exeext conftest.$ac_ext
26036 #
26037 if test "$tst_links_freeaddrinfo" = "yes"; then
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
26039$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
26040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041/* end confdefs.h. */
26042
26043 $cares_includes_ws2tcpip
26044 $cares_includes_sys_socket
26045 $cares_includes_netdb
26046
26047_ACEOF
26048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26049 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
26050
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26052$as_echo "yes" >&6; }
26053 tst_proto_freeaddrinfo="yes"
26054
26055else
26056
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26058$as_echo "no" >&6; }
26059 tst_proto_freeaddrinfo="no"
26060
26061fi
26062rm -f conftest*
26063
26064 fi
26065 #
26066 if test "$tst_proto_freeaddrinfo" = "yes"; then
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
26068$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
26069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26070/* end confdefs.h. */
26071
26072
26073 $cares_includes_ws2tcpip
26074 $cares_includes_sys_socket
26075 $cares_includes_netdb
26076
26077int main (void)
26078{
26079
26080 freeaddrinfo(0);
26081
26082 ;
26083 return 0;
26084}
26085
26086_ACEOF
26087if ac_fn_c_try_compile "$LINENO"; then :
26088
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26090$as_echo "yes" >&6; }
26091 tst_compi_freeaddrinfo="yes"
26092
26093else
26094
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26096$as_echo "no" >&6; }
26097 tst_compi_freeaddrinfo="no"
26098
26099fi
26100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26101 fi
26102 #
26103 if test "$tst_compi_freeaddrinfo" = "yes"; then
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
26105$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
26106 if test "x$cares_disallow_freeaddrinfo" != "xyes"; then
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26108$as_echo "yes" >&6; }
26109 tst_allow_freeaddrinfo="yes"
26110 else
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26112$as_echo "no" >&6; }
26113 tst_allow_freeaddrinfo="no"
26114 fi
26115 fi
26116 #
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
26118$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
26119 if test "$tst_links_freeaddrinfo" = "yes" &&
26120 test "$tst_proto_freeaddrinfo" = "yes" &&
26121 test "$tst_compi_freeaddrinfo" = "yes" &&
26122 test "$tst_allow_freeaddrinfo" = "yes"; then
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26124$as_echo "yes" >&6; }
26125
26126cat >>confdefs.h <<_ACEOF
26127#define HAVE_FREEADDRINFO 1
26128_ACEOF
26129
26130 ac_cv_func_freeaddrinfo="yes"
26131 else
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26133$as_echo "no" >&6; }
26134 ac_cv_func_freeaddrinfo="no"
26135 fi
26136
26137
26138cares_includes_stdlib="\
26139/* includes start */
26140#ifdef HAVE_SYS_TYPES_H
26141# include <sys/types.h>
26142#endif
26143#ifdef HAVE_STDLIB_H
26144# include <stdlib.h>
26145#endif
26146/* includes end */"
26147 for ac_header in sys/types.h stdlib.h
26148do :
26149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26150ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stdlib
26151"
26152if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26153 cat >>confdefs.h <<_ACEOF
26154#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26155_ACEOF
26156
26157fi
26158
26159done
26160
26161
26162
26163cares_includes_string="\
26164/* includes start */
26165#ifdef HAVE_SYS_TYPES_H
26166# include <sys/types.h>
26167#endif
26168#ifdef HAVE_STRING_H
26169# include <string.h>
26170#endif
26171#ifdef HAVE_STRINGS_H
26172# include <strings.h>
26173#endif
26174/* includes end */"
26175 for ac_header in sys/types.h string.h strings.h
26176do :
26177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26178ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_string
26179"
26180if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26181 cat >>confdefs.h <<_ACEOF
26182#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26183_ACEOF
26184
26185fi
26186
26187done
26188
26189
26190
26191 #
26192 tst_links_getaddrinfo="unknown"
26193 tst_proto_getaddrinfo="unknown"
26194 tst_compi_getaddrinfo="unknown"
26195 tst_works_getaddrinfo="unknown"
26196 tst_allow_getaddrinfo="unknown"
26197 tst_tsafe_getaddrinfo="unknown"
26198 #
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
26200$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
26201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26202/* end confdefs.h. */
26203
26204
26205 $cares_includes_ws2tcpip
26206 $cares_includes_sys_socket
26207 $cares_includes_netdb
26208
26209int main (void)
26210{
26211
26212 if(0 != getaddrinfo(0, 0, 0, 0))
26213 return 1;
26214
26215 ;
26216 return 0;
26217}
26218
26219_ACEOF
26220if ac_fn_c_try_link "$LINENO"; then :
26221
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26223$as_echo "yes" >&6; }
26224 tst_links_getaddrinfo="yes"
26225
26226else
26227
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26229$as_echo "no" >&6; }
26230 tst_links_getaddrinfo="no"
26231
26232fi
26233rm -f core conftest.err conftest.$ac_objext \
26234 conftest$ac_exeext conftest.$ac_ext
26235 #
26236 if test "$tst_links_getaddrinfo" = "yes"; then
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
26238$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240/* end confdefs.h. */
26241
26242 $cares_includes_ws2tcpip
26243 $cares_includes_sys_socket
26244 $cares_includes_netdb
26245
26246_ACEOF
26247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26248 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
26249
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26251$as_echo "yes" >&6; }
26252 tst_proto_getaddrinfo="yes"
26253
26254else
26255
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26257$as_echo "no" >&6; }
26258 tst_proto_getaddrinfo="no"
26259
26260fi
26261rm -f conftest*
26262
26263 fi
26264 #
26265 if test "$tst_proto_getaddrinfo" = "yes"; then
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
26267$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
26268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26269/* end confdefs.h. */
26270
26271
26272 $cares_includes_ws2tcpip
26273 $cares_includes_sys_socket
26274 $cares_includes_netdb
26275
26276int main (void)
26277{
26278
26279 if(0 != getaddrinfo(0, 0, 0, 0))
26280 return 1;
26281
26282 ;
26283 return 0;
26284}
26285
26286_ACEOF
26287if ac_fn_c_try_compile "$LINENO"; then :
26288
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26290$as_echo "yes" >&6; }
26291 tst_compi_getaddrinfo="yes"
26292
26293else
26294
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26296$as_echo "no" >&6; }
26297 tst_compi_getaddrinfo="no"
26298
26299fi
26300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26301 fi
26302 #
26303 if test "x$cross_compiling" != "xyes" &&
26304 test "$tst_compi_getaddrinfo" = "yes"; then
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
26306$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
26307 if test "$cross_compiling" = yes; then :
26308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26310as_fn_error $? "cannot run test program while cross compiling
26311See \`config.log' for more details" "$LINENO" 5; }
26312else
26313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26314/* end confdefs.h. */
26315
26316
26317 $cares_includes_ws2tcpip
26318 $cares_includes_stdlib
26319 $cares_includes_string
26320 $cares_includes_sys_socket
26321 $cares_includes_netdb
26322
26323int main (void)
26324{
26325
26326 struct addrinfo hints;
26327 struct addrinfo *ai = 0;
26328 int error;
26329
26330 memset(&hints, 0, sizeof(hints));
26331 hints.ai_flags = AI_NUMERICHOST;
26332 hints.ai_family = AF_UNSPEC;
26333 hints.ai_socktype = SOCK_STREAM;
26334 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
26335 if(error || !ai)
26336 exit(1); /* fail */
26337 else
26338 exit(0);
26339
26340 ;
26341 return 0;
26342}
26343
26344_ACEOF
26345if ac_fn_c_try_run "$LINENO"; then :
26346
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26348$as_echo "yes" >&6; }
26349 tst_works_getaddrinfo="yes"
26350
26351else
26352
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26354$as_echo "no" >&6; }
26355 tst_works_getaddrinfo="no"
26356
26357fi
26358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26359 conftest.$ac_objext conftest.beam conftest.$ac_ext
26360fi
26361
26362 fi
26363 #
26364 if test "$tst_compi_getaddrinfo" = "yes" &&
26365 test "$tst_works_getaddrinfo" != "no"; then
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
26367$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
26368 if test "x$cares_disallow_getaddrinfo" != "xyes"; then
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26370$as_echo "yes" >&6; }
26371 tst_allow_getaddrinfo="yes"
26372 else
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26374$as_echo "no" >&6; }
26375 tst_allow_getaddrinfo="no"
26376 fi
26377 fi
26378 #
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
26380$as_echo_n "checking if getaddrinfo might be used... " >&6; }
26381 if test "$tst_links_getaddrinfo" = "yes" &&
26382 test "$tst_proto_getaddrinfo" = "yes" &&
26383 test "$tst_compi_getaddrinfo" = "yes" &&
26384 test "$tst_allow_getaddrinfo" = "yes" &&
26385 test "$tst_works_getaddrinfo" != "no"; then
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26387$as_echo "yes" >&6; }
26388
26389cat >>confdefs.h <<_ACEOF
26390#define HAVE_GETADDRINFO 1
26391_ACEOF
26392
26393 ac_cv_func_getaddrinfo="yes"
26394 else
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26396$as_echo "no" >&6; }
26397 ac_cv_func_getaddrinfo="no"
26398 ac_cv_func_getaddrinfo_threadsafe="no"
26399 fi
26400 #
26401 if test "$ac_cv_func_getaddrinfo" = "yes"; then
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
26403$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
26404 case $host_os in
26405 aix[1234].* | aix5.[01].*)
26406 tst_tsafe_getaddrinfo="no"
26407 ;;
26408 aix*)
26409 tst_tsafe_getaddrinfo="yes"
26410 ;;
26411 darwin[12345].*)
26412 tst_tsafe_getaddrinfo="no"
26413 ;;
26414 darwin*)
26415 tst_tsafe_getaddrinfo="yes"
26416 ;;
26417 freebsd[1234].* | freebsd5.[1234]*)
26418 tst_tsafe_getaddrinfo="no"
26419 ;;
26420 freebsd*)
26421 tst_tsafe_getaddrinfo="yes"
26422 ;;
26423 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
26424 tst_tsafe_getaddrinfo="no"
26425 ;;
26426 hpux*)
26427 tst_tsafe_getaddrinfo="yes"
26428 ;;
26429 netbsd[123].*)
26430 tst_tsafe_getaddrinfo="no"
26431 ;;
26432 netbsd*)
26433 tst_tsafe_getaddrinfo="yes"
26434 ;;
26435 *bsd*)
26436 tst_tsafe_getaddrinfo="no"
26437 ;;
26438 solaris2*)
26439 tst_tsafe_getaddrinfo="yes"
26440 ;;
26441 esac
26442 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
26443 test "$ac_cv_native_windows" = "yes"; then
26444 tst_tsafe_getaddrinfo="yes"
26445 fi
26446 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26447
26448
26449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26450/* end confdefs.h. */
26451
26452
26453 $cares_includes_sys_socket
26454 $cares_includes_netdb
26455
26456int main (void)
26457{
26458#ifdef h_errno
26459 return 0;
26460#else
26461 force compilation error
26462#endif
26463}
26464
26465
26466_ACEOF
26467if ac_fn_c_try_compile "$LINENO"; then :
26468
26469 tst_symbol_defined="yes"
26470
26471else
26472
26473 tst_symbol_defined="no"
26474
26475fi
26476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26477 if test "$tst_symbol_defined" = "yes"; then
26478 curl_cv_have_def_h_errno=yes
26479
26480 else
26481 curl_cv_have_def_h_errno=no
26482
26483 fi
26484
26485 if test "$curl_cv_have_def_h_errno" = "yes"; then
26486 tst_h_errno_macro="yes"
26487 else
26488 tst_h_errno_macro="no"
26489 fi
26490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26491/* end confdefs.h. */
26492
26493
26494 $cares_includes_sys_socket
26495 $cares_includes_netdb
26496
26497int main (void)
26498{
26499
26500 h_errno = 2;
26501 if(0 != h_errno)
26502 return 1;
26503
26504 ;
26505 return 0;
26506}
26507
26508_ACEOF
26509if ac_fn_c_try_compile "$LINENO"; then :
26510
26511 tst_h_errno_modifiable_lvalue="yes"
26512
26513else
26514
26515 tst_h_errno_modifiable_lvalue="no"
26516
26517fi
26518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26520/* end confdefs.h. */
26521
26522
26523
26524int main (void)
26525{
26526
26527#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
26528 return 0;
26529#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
26530 return 0;
26531#else
26532 force compilation error
26533#endif
26534
26535 ;
26536 return 0;
26537}
26538
26539_ACEOF
26540if ac_fn_c_try_compile "$LINENO"; then :
26541
26542 tst_h_errno_sbs_issue_7="yes"
26543
26544else
26545
26546 tst_h_errno_sbs_issue_7="no"
26547
26548fi
26549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26550 if test "$tst_h_errno_macro" = "no" &&
26551 test "$tst_h_errno_modifiable_lvalue" = "no" &&
26552 test "$tst_h_errno_sbs_issue_7" = "no"; then
26553 tst_tsafe_getaddrinfo="no"
26554 else
26555 tst_tsafe_getaddrinfo="yes"
26556 fi
26557 fi
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
26559$as_echo "$tst_tsafe_getaddrinfo" >&6; }
26560 if test "$tst_tsafe_getaddrinfo" = "yes"; then
26561
26562cat >>confdefs.h <<_ACEOF
26563#define HAVE_GETADDRINFO_THREADSAFE 1
26564_ACEOF
26565
26566 ac_cv_func_getaddrinfo_threadsafe="yes"
26567 else
26568 ac_cv_func_getaddrinfo_threadsafe="no"
26569 fi
26570 fi
26571
26572
26573 #
26574 tst_links_getenv="unknown"
26575 tst_proto_getenv="unknown"
26576 tst_compi_getenv="unknown"
26577 tst_allow_getenv="unknown"
26578 #
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5
26580$as_echo_n "checking if getenv can be linked... " >&6; }
26581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26582/* end confdefs.h. */
26583
26584
26585#define getenv innocuous_getenv
26586#ifdef __STDC__
26587# include <limits.h>
26588#else
26589# include <assert.h>
26590#endif
26591#undef getenv
26592#ifdef __cplusplus
26593extern "C"
26594#endif
26595char getenv ();
26596#if defined __stub_getenv || defined __stub___getenv
26597choke me
26598#endif
26599
26600int main (void)
26601{
26602return getenv ();
26603 ;
26604 return 0;
26605}
26606
26607_ACEOF
26608if ac_fn_c_try_link "$LINENO"; then :
26609
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26611$as_echo "yes" >&6; }
26612 tst_links_getenv="yes"
26613
26614else
26615
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26617$as_echo "no" >&6; }
26618 tst_links_getenv="no"
26619
26620fi
26621rm -f core conftest.err conftest.$ac_objext \
26622 conftest$ac_exeext conftest.$ac_ext
26623 #
26624 if test "$tst_links_getenv" = "yes"; then
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5
26626$as_echo_n "checking if getenv is prototyped... " >&6; }
26627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26628/* end confdefs.h. */
26629
26630 $cares_includes_stdlib
26631
26632_ACEOF
26633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26634 $EGREP "getenv" >/dev/null 2>&1; then :
26635
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26637$as_echo "yes" >&6; }
26638 tst_proto_getenv="yes"
26639
26640else
26641
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26643$as_echo "no" >&6; }
26644 tst_proto_getenv="no"
26645
26646fi
26647rm -f conftest*
26648
26649 fi
26650 #
26651 if test "$tst_proto_getenv" = "yes"; then
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5
26653$as_echo_n "checking if getenv is compilable... " >&6; }
26654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26655/* end confdefs.h. */
26656
26657
26658 $cares_includes_stdlib
26659
26660int main (void)
26661{
26662
26663 if(0 != getenv(0))
26664 return 1;
26665
26666 ;
26667 return 0;
26668}
26669
26670_ACEOF
26671if ac_fn_c_try_compile "$LINENO"; then :
26672
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26674$as_echo "yes" >&6; }
26675 tst_compi_getenv="yes"
26676
26677else
26678
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26680$as_echo "no" >&6; }
26681 tst_compi_getenv="no"
26682
26683fi
26684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26685 fi
26686 #
26687 if test "$tst_compi_getenv" = "yes"; then
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5
26689$as_echo_n "checking if getenv usage allowed... " >&6; }
26690 if test "x$cares_disallow_getenv" != "xyes"; then
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26692$as_echo "yes" >&6; }
26693 tst_allow_getenv="yes"
26694 else
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26696$as_echo "no" >&6; }
26697 tst_allow_getenv="no"
26698 fi
26699 fi
26700 #
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5
26702$as_echo_n "checking if getenv might be used... " >&6; }
26703 if test "$tst_links_getenv" = "yes" &&
26704 test "$tst_proto_getenv" = "yes" &&
26705 test "$tst_compi_getenv" = "yes" &&
26706 test "$tst_allow_getenv" = "yes"; then
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26708$as_echo "yes" >&6; }
26709
26710cat >>confdefs.h <<_ACEOF
26711#define HAVE_GETENV 1
26712_ACEOF
26713
26714 ac_cv_func_getenv="yes"
26715 else
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26717$as_echo "no" >&6; }
26718 ac_cv_func_getenv="no"
26719 fi
26720
26721
26722 #
26723 tst_links_gethostbyaddr="unknown"
26724 tst_proto_gethostbyaddr="unknown"
26725 tst_compi_gethostbyaddr="unknown"
26726 tst_allow_gethostbyaddr="unknown"
26727 #
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
26729$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
26730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26731/* end confdefs.h. */
26732
26733
26734 $cares_includes_winsock2
26735 $cares_includes_netdb
26736
26737int main (void)
26738{
26739
26740 if(0 != gethostbyaddr(0, 0, 0))
26741 return 1;
26742
26743 ;
26744 return 0;
26745}
26746
26747_ACEOF
26748if ac_fn_c_try_link "$LINENO"; then :
26749
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26751$as_echo "yes" >&6; }
26752 tst_links_gethostbyaddr="yes"
26753
26754else
26755
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26757$as_echo "no" >&6; }
26758 tst_links_gethostbyaddr="no"
26759
26760fi
26761rm -f core conftest.err conftest.$ac_objext \
26762 conftest$ac_exeext conftest.$ac_ext
26763 #
26764 if test "$tst_links_gethostbyaddr" = "yes"; then
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
26766$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
26767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768/* end confdefs.h. */
26769
26770 $cares_includes_winsock2
26771 $cares_includes_netdb
26772
26773_ACEOF
26774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26775 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
26776
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26778$as_echo "yes" >&6; }
26779 tst_proto_gethostbyaddr="yes"
26780
26781else
26782
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26784$as_echo "no" >&6; }
26785 tst_proto_gethostbyaddr="no"
26786
26787fi
26788rm -f conftest*
26789
26790 fi
26791 #
26792 if test "$tst_proto_gethostbyaddr" = "yes"; then
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
26794$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
26795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26796/* end confdefs.h. */
26797
26798
26799 $cares_includes_winsock2
26800 $cares_includes_netdb
26801
26802int main (void)
26803{
26804
26805 if(0 != gethostbyaddr(0, 0, 0))
26806 return 1;
26807
26808 ;
26809 return 0;
26810}
26811
26812_ACEOF
26813if ac_fn_c_try_compile "$LINENO"; then :
26814
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26816$as_echo "yes" >&6; }
26817 tst_compi_gethostbyaddr="yes"
26818
26819else
26820
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26822$as_echo "no" >&6; }
26823 tst_compi_gethostbyaddr="no"
26824
26825fi
26826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26827 fi
26828 #
26829 if test "$tst_compi_gethostbyaddr" = "yes"; then
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
26831$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
26832 if test "x$cares_disallow_gethostbyaddr" != "xyes"; then
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26834$as_echo "yes" >&6; }
26835 tst_allow_gethostbyaddr="yes"
26836 else
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26838$as_echo "no" >&6; }
26839 tst_allow_gethostbyaddr="no"
26840 fi
26841 fi
26842 #
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
26844$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
26845 if test "$tst_links_gethostbyaddr" = "yes" &&
26846 test "$tst_proto_gethostbyaddr" = "yes" &&
26847 test "$tst_compi_gethostbyaddr" = "yes" &&
26848 test "$tst_allow_gethostbyaddr" = "yes"; then
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26850$as_echo "yes" >&6; }
26851
26852cat >>confdefs.h <<_ACEOF
26853#define HAVE_GETHOSTBYADDR 1
26854_ACEOF
26855
26856 ac_cv_func_gethostbyaddr="yes"
26857 else
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26859$as_echo "no" >&6; }
26860 ac_cv_func_gethostbyaddr="no"
26861 fi
26862
26863
26864 #
26865 tst_links_gethostbyname="unknown"
26866 tst_proto_gethostbyname="unknown"
26867 tst_compi_gethostbyname="unknown"
26868 tst_allow_gethostbyname="unknown"
26869 #
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
26871$as_echo_n "checking if gethostbyname can be linked... " >&6; }
26872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26873/* end confdefs.h. */
26874
26875
26876 $cares_includes_winsock2
26877 $cares_includes_netdb
26878
26879int main (void)
26880{
26881
26882 if(0 != gethostbyname(0))
26883 return 1;
26884
26885 ;
26886 return 0;
26887}
26888
26889_ACEOF
26890if ac_fn_c_try_link "$LINENO"; then :
26891
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26893$as_echo "yes" >&6; }
26894 tst_links_gethostbyname="yes"
26895
26896else
26897
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26899$as_echo "no" >&6; }
26900 tst_links_gethostbyname="no"
26901
26902fi
26903rm -f core conftest.err conftest.$ac_objext \
26904 conftest$ac_exeext conftest.$ac_ext
26905 #
26906 if test "$tst_links_gethostbyname" = "yes"; then
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
26908$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
26909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26910/* end confdefs.h. */
26911
26912 $cares_includes_winsock2
26913 $cares_includes_netdb
26914
26915_ACEOF
26916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26917 $EGREP "gethostbyname" >/dev/null 2>&1; then :
26918
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26920$as_echo "yes" >&6; }
26921 tst_proto_gethostbyname="yes"
26922
26923else
26924
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26926$as_echo "no" >&6; }
26927 tst_proto_gethostbyname="no"
26928
26929fi
26930rm -f conftest*
26931
26932 fi
26933 #
26934 if test "$tst_proto_gethostbyname" = "yes"; then
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
26936$as_echo_n "checking if gethostbyname is compilable... " >&6; }
26937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26938/* end confdefs.h. */
26939
26940
26941 $cares_includes_winsock2
26942 $cares_includes_netdb
26943
26944int main (void)
26945{
26946
26947 if(0 != gethostbyname(0))
26948 return 1;
26949
26950 ;
26951 return 0;
26952}
26953
26954_ACEOF
26955if ac_fn_c_try_compile "$LINENO"; then :
26956
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26958$as_echo "yes" >&6; }
26959 tst_compi_gethostbyname="yes"
26960
26961else
26962
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26964$as_echo "no" >&6; }
26965 tst_compi_gethostbyname="no"
26966
26967fi
26968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26969 fi
26970 #
26971 if test "$tst_compi_gethostbyname" = "yes"; then
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
26973$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
26974 if test "x$cares_disallow_gethostbyname" != "xyes"; then
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26976$as_echo "yes" >&6; }
26977 tst_allow_gethostbyname="yes"
26978 else
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26980$as_echo "no" >&6; }
26981 tst_allow_gethostbyname="no"
26982 fi
26983 fi
26984 #
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
26986$as_echo_n "checking if gethostbyname might be used... " >&6; }
26987 if test "$tst_links_gethostbyname" = "yes" &&
26988 test "$tst_proto_gethostbyname" = "yes" &&
26989 test "$tst_compi_gethostbyname" = "yes" &&
26990 test "$tst_allow_gethostbyname" = "yes"; then
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26992$as_echo "yes" >&6; }
26993
26994cat >>confdefs.h <<_ACEOF
26995#define HAVE_GETHOSTBYNAME 1
26996_ACEOF
26997
26998 ac_cv_func_gethostbyname="yes"
26999 else
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27001$as_echo "no" >&6; }
27002 ac_cv_func_gethostbyname="no"
27003 fi
27004
27005
27006cares_includes_unistd="\
27007/* includes start */
27008#ifdef HAVE_SYS_TYPES_H
27009# include <sys/types.h>
27010#endif
27011#ifdef HAVE_UNISTD_H
27012# include <unistd.h>
27013#endif
27014/* includes end */"
27015 for ac_header in sys/types.h unistd.h
27016do :
27017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27018ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_unistd
27019"
27020if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27021 cat >>confdefs.h <<_ACEOF
27022#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27023_ACEOF
27024
27025fi
27026
27027done
27028
27029
27030
27031 #
27032 tst_links_gethostname="unknown"
27033 tst_proto_gethostname="unknown"
27034 tst_compi_gethostname="unknown"
27035 tst_allow_gethostname="unknown"
27036 #
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
27038$as_echo_n "checking if gethostname can be linked... " >&6; }
27039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27040/* end confdefs.h. */
27041
27042
27043 $cares_includes_winsock2
27044 $cares_includes_unistd
27045
27046int main (void)
27047{
27048
27049 if(0 != gethostname(0, 0))
27050 return 1;
27051
27052 ;
27053 return 0;
27054}
27055
27056_ACEOF
27057if ac_fn_c_try_link "$LINENO"; then :
27058
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27060$as_echo "yes" >&6; }
27061 tst_links_gethostname="yes"
27062
27063else
27064
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27066$as_echo "no" >&6; }
27067 tst_links_gethostname="no"
27068
27069fi
27070rm -f core conftest.err conftest.$ac_objext \
27071 conftest$ac_exeext conftest.$ac_ext
27072 #
27073 if test "$tst_links_gethostname" = "yes"; then
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
27075$as_echo_n "checking if gethostname is prototyped... " >&6; }
27076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27077/* end confdefs.h. */
27078
27079 $cares_includes_winsock2
27080 $cares_includes_unistd
27081
27082_ACEOF
27083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27084 $EGREP "gethostname" >/dev/null 2>&1; then :
27085
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27087$as_echo "yes" >&6; }
27088 tst_proto_gethostname="yes"
27089
27090else
27091
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27093$as_echo "no" >&6; }
27094 tst_proto_gethostname="no"
27095
27096fi
27097rm -f conftest*
27098
27099 fi
27100 #
27101 if test "$tst_proto_gethostname" = "yes"; then
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
27103$as_echo_n "checking if gethostname is compilable... " >&6; }
27104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27105/* end confdefs.h. */
27106
27107
27108 $cares_includes_winsock2
27109 $cares_includes_unistd
27110
27111int main (void)
27112{
27113
27114 if(0 != gethostname(0, 0))
27115 return 1;
27116
27117 ;
27118 return 0;
27119}
27120
27121_ACEOF
27122if ac_fn_c_try_compile "$LINENO"; then :
27123
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27125$as_echo "yes" >&6; }
27126 tst_compi_gethostname="yes"
27127
27128else
27129
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27131$as_echo "no" >&6; }
27132 tst_compi_gethostname="no"
27133
27134fi
27135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27136 fi
27137 #
27138 if test "$tst_compi_gethostname" = "yes"; then
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
27140$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
27141 tst_gethostname_type_arg2="unknown"
27142 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
27143 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
27144 if test "$tst_gethostname_type_arg2" = "unknown"; then
27145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27146/* end confdefs.h. */
27147
27148
27149 $cares_includes_winsock2
27150 $cares_includes_unistd
27151 $cares_preprocess_callconv
27152 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
27153
27154int main (void)
27155{
27156
27157 if(0 != gethostname(0, 0))
27158 return 1;
27159
27160 ;
27161 return 0;
27162}
27163
27164_ACEOF
27165if ac_fn_c_try_compile "$LINENO"; then :
27166
27167 tst_gethostname_type_arg2="$tst_arg2"
27168
27169fi
27170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27171 fi
27172 done
27173 done
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
27175$as_echo "$tst_gethostname_type_arg2" >&6; }
27176 if test "$tst_gethostname_type_arg2" != "unknown"; then
27177
27178cat >>confdefs.h <<_ACEOF
27179#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
27180_ACEOF
27181
27182 fi
27183 fi
27184 #
27185 if test "$tst_compi_gethostname" = "yes"; then
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
27187$as_echo_n "checking if gethostname usage allowed... " >&6; }
27188 if test "x$cares_disallow_gethostname" != "xyes"; then
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27190$as_echo "yes" >&6; }
27191 tst_allow_gethostname="yes"
27192 else
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27194$as_echo "no" >&6; }
27195 tst_allow_gethostname="no"
27196 fi
27197 fi
27198 #
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
27200$as_echo_n "checking if gethostname might be used... " >&6; }
27201 if test "$tst_links_gethostname" = "yes" &&
27202 test "$tst_proto_gethostname" = "yes" &&
27203 test "$tst_compi_gethostname" = "yes" &&
27204 test "$tst_allow_gethostname" = "yes"; then
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27206$as_echo "yes" >&6; }
27207
27208cat >>confdefs.h <<_ACEOF
27209#define HAVE_GETHOSTNAME 1
27210_ACEOF
27211
27212 ac_cv_func_gethostname="yes"
27213 else
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27215$as_echo "no" >&6; }
27216 ac_cv_func_gethostname="no"
27217 fi
27218
27219
27220 #
27221 tst_links_getservbyport_r="unknown"
27222 tst_proto_getservbyport_r="unknown"
27223 tst_compi_getservbyport_r="unknown"
27224 tst_allow_getservbyport_r="unknown"
27225 tst_nargs_getservbyport_r="unknown"
27226 #
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
27228$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
27229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27230/* end confdefs.h. */
27231
27232
27233#define getservbyport_r innocuous_getservbyport_r
27234#ifdef __STDC__
27235# include <limits.h>
27236#else
27237# include <assert.h>
27238#endif
27239#undef getservbyport_r
27240#ifdef __cplusplus
27241extern "C"
27242#endif
27243char getservbyport_r ();
27244#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
27245choke me
27246#endif
27247
27248int main (void)
27249{
27250return getservbyport_r ();
27251 ;
27252 return 0;
27253}
27254
27255_ACEOF
27256if ac_fn_c_try_link "$LINENO"; then :
27257
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27259$as_echo "yes" >&6; }
27260 tst_links_getservbyport_r="yes"
27261
27262else
27263
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27265$as_echo "no" >&6; }
27266 tst_links_getservbyport_r="no"
27267
27268fi
27269rm -f core conftest.err conftest.$ac_objext \
27270 conftest$ac_exeext conftest.$ac_ext
27271 #
27272 if test "$tst_links_getservbyport_r" = "yes"; then
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
27274$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
27275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27276/* end confdefs.h. */
27277
27278 $cares_includes_netdb
27279
27280_ACEOF
27281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27282 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
27283
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27285$as_echo "yes" >&6; }
27286 tst_proto_getservbyport_r="yes"
27287
27288else
27289
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27291$as_echo "no" >&6; }
27292 tst_proto_getservbyport_r="no"
27293
27294fi
27295rm -f conftest*
27296
27297 fi
27298 #
27299 if test "$tst_proto_getservbyport_r" = "yes"; then
27300 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
27302$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
27303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27304/* end confdefs.h. */
27305
27306
27307 $cares_includes_netdb
27308
27309int main (void)
27310{
27311
27312 if(0 != getservbyport_r(0, 0, 0, 0))
27313 return 1;
27314
27315 ;
27316 return 0;
27317}
27318
27319_ACEOF
27320if ac_fn_c_try_compile "$LINENO"; then :
27321
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27323$as_echo "yes" >&6; }
27324 tst_compi_getservbyport_r="yes"
27325 tst_nargs_getservbyport_r="4"
27326
27327else
27328
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27330$as_echo "no" >&6; }
27331 tst_compi_getservbyport_r="no"
27332
27333fi
27334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27335 fi
27336 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
27338$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
27339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27340/* end confdefs.h. */
27341
27342
27343 $cares_includes_netdb
27344
27345int main (void)
27346{
27347
27348 if(0 != getservbyport_r(0, 0, 0, 0, 0))
27349 return 1;
27350
27351 ;
27352 return 0;
27353}
27354
27355_ACEOF
27356if ac_fn_c_try_compile "$LINENO"; then :
27357
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27359$as_echo "yes" >&6; }
27360 tst_compi_getservbyport_r="yes"
27361 tst_nargs_getservbyport_r="5"
27362
27363else
27364
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27366$as_echo "no" >&6; }
27367 tst_compi_getservbyport_r="no"
27368
27369fi
27370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27371 fi
27372 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
27374$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
27375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27376/* end confdefs.h. */
27377
27378
27379 $cares_includes_netdb
27380
27381int main (void)
27382{
27383
27384 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
27385 return 1;
27386
27387 ;
27388 return 0;
27389}
27390
27391_ACEOF
27392if ac_fn_c_try_compile "$LINENO"; then :
27393
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27395$as_echo "yes" >&6; }
27396 tst_compi_getservbyport_r="yes"
27397 tst_nargs_getservbyport_r="6"
27398
27399else
27400
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27402$as_echo "no" >&6; }
27403 tst_compi_getservbyport_r="no"
27404
27405fi
27406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27407 fi
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
27409$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
27410 if test "$tst_compi_getservbyport_r" = "yes"; then
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27412$as_echo "yes" >&6; }
27413 else
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27415$as_echo "no" >&6; }
27416 fi
27417 fi
27418 #
27419 if test "$tst_compi_getservbyport_r" = "yes"; then
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
27421$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
27422 if test "x$cares_disallow_getservbyport_r" != "xyes"; then
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27424$as_echo "yes" >&6; }
27425 tst_allow_getservbyport_r="yes"
27426 else
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27428$as_echo "no" >&6; }
27429 tst_allow_getservbyport_r="no"
27430 fi
27431 fi
27432 #
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
27434$as_echo_n "checking if getservbyport_r might be used... " >&6; }
27435 if test "$tst_links_getservbyport_r" = "yes" &&
27436 test "$tst_proto_getservbyport_r" = "yes" &&
27437 test "$tst_compi_getservbyport_r" = "yes" &&
27438 test "$tst_allow_getservbyport_r" = "yes"; then
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27440$as_echo "yes" >&6; }
27441
27442cat >>confdefs.h <<_ACEOF
27443#define HAVE_GETSERVBYPORT_R 1
27444_ACEOF
27445
27446
27447cat >>confdefs.h <<_ACEOF
27448#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
27449_ACEOF
27450
27451 if test "$tst_nargs_getservbyport_r" -eq "4"; then
27452
27453$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
27454
27455 else
27456
27457$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
27458
27459 fi
27460 ac_cv_func_getservbyport_r="yes"
27461 else
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27463$as_echo "no" >&6; }
27464 ac_cv_func_getservbyport_r="no"
27465 fi
27466
27467
27468cares_includes_arpa_inet="\
27469/* includes start */
27470#ifdef HAVE_SYS_TYPES_H
27471# include <sys/types.h>
27472#endif
27473#ifdef HAVE_SYS_SOCKET_H
27474# include <sys/socket.h>
27475#endif
27476#ifdef HAVE_NETINET_IN_H
27477# include <netinet/in.h>
27478#endif
27479#ifdef HAVE_ARPA_INET_H
27480# include <arpa/inet.h>
27481#endif
27482/* includes end */"
27483 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
27484do :
27485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27486ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_arpa_inet
27487"
27488if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27489 cat >>confdefs.h <<_ACEOF
27490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27491_ACEOF
27492
27493fi
27494
27495done
27496
27497
27498
27499 #
27500 tst_links_inet_net_pton="unknown"
27501 tst_proto_inet_net_pton="unknown"
27502 tst_compi_inet_net_pton="unknown"
27503 tst_works_inet_net_pton="unknown"
27504 tst_allow_inet_net_pton="unknown"
27505 #
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5
27507$as_echo_n "checking if inet_net_pton can be linked... " >&6; }
27508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27509/* end confdefs.h. */
27510
27511
27512#define inet_net_pton innocuous_inet_net_pton
27513#ifdef __STDC__
27514# include <limits.h>
27515#else
27516# include <assert.h>
27517#endif
27518#undef inet_net_pton
27519#ifdef __cplusplus
27520extern "C"
27521#endif
27522char inet_net_pton ();
27523#if defined __stub_inet_net_pton || defined __stub___inet_net_pton
27524choke me
27525#endif
27526
27527int main (void)
27528{
27529return inet_net_pton ();
27530 ;
27531 return 0;
27532}
27533
27534_ACEOF
27535if ac_fn_c_try_link "$LINENO"; then :
27536
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27538$as_echo "yes" >&6; }
27539 tst_links_inet_net_pton="yes"
27540
27541else
27542
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27544$as_echo "no" >&6; }
27545 tst_links_inet_net_pton="no"
27546
27547fi
27548rm -f core conftest.err conftest.$ac_objext \
27549 conftest$ac_exeext conftest.$ac_ext
27550 #
27551 if test "$tst_links_inet_net_pton" = "yes"; then
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5
27553$as_echo_n "checking if inet_net_pton is prototyped... " >&6; }
27554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27555/* end confdefs.h. */
27556
27557 $cares_includes_arpa_inet
27558
27559_ACEOF
27560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27561 $EGREP "inet_net_pton" >/dev/null 2>&1; then :
27562
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27564$as_echo "yes" >&6; }
27565 tst_proto_inet_net_pton="yes"
27566
27567else
27568
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27570$as_echo "no" >&6; }
27571 tst_proto_inet_net_pton="no"
27572
27573fi
27574rm -f conftest*
27575
27576 fi
27577 #
27578 if test "$tst_proto_inet_net_pton" = "yes"; then
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5
27580$as_echo_n "checking if inet_net_pton is compilable... " >&6; }
27581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27582/* end confdefs.h. */
27583
27584
27585 $cares_includes_arpa_inet
27586
27587int main (void)
27588{
27589
27590 if(0 != inet_net_pton(0, 0, 0, 0))
27591 return 1;
27592
27593 ;
27594 return 0;
27595}
27596
27597_ACEOF
27598if ac_fn_c_try_compile "$LINENO"; then :
27599
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27601$as_echo "yes" >&6; }
27602 tst_compi_inet_net_pton="yes"
27603
27604else
27605
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27607$as_echo "no" >&6; }
27608 tst_compi_inet_net_pton="no"
27609
27610fi
27611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27612 fi
27613 #
27614 if test "x$cross_compiling" != "xyes" &&
27615 test "$tst_compi_inet_net_pton" = "yes"; then
27616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5
27617$as_echo_n "checking if inet_net_pton seems to work... " >&6; }
27618 if test "$cross_compiling" = yes; then :
27619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27621as_fn_error $? "cannot run test program while cross compiling
27622See \`config.log' for more details" "$LINENO" 5; }
27623else
27624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27625/* end confdefs.h. */
27626
27627
27628 $cares_includes_stdlib
27629 $cares_includes_arpa_inet
27630 $cares_includes_string
27631
27632int main (void)
27633{
27634
27635 unsigned char ipv6a[16+1];
27636 unsigned char ipv4a[4+1];
27637 const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8";
27638 const char *ipv6net2 = "::fffe:7f00:1";
27639 const char *ipv6net3 = "7f20:1::/64";
27640 const char *ipv6net4 = "7f20:1::/2147483649";
27641 const char *ipv4net1 = "192.168.100.1";
27642 const char *ipv4net2 = "192.168.100/32";
27643 const char *ipv4net3 = "192.168.100.1/2147483649";
27644 /* - */
27645 memset(ipv4a, 1, sizeof(ipv4a));
27646 if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4))
27647 exit(1); /* fail */
27648 /* - */
27649 if( (ipv4a[0x00] != 0xc0) ||
27650 (ipv4a[0x01] != 0xa8) ||
27651 (ipv4a[0x02] != 0x64) ||
27652 (ipv4a[0x03] != 0x01) ||
27653 (ipv4a[0x04] != 0x01) )
27654 exit(1); /* fail */
27655 /* - */
27656 memset(ipv4a, 1, sizeof(ipv4a));
27657 if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4))
27658 exit(1); /* fail */
27659 /* - */
27660 if( (ipv4a[0x00] != 0xc0) ||
27661 (ipv4a[0x01] != 0xa8) ||
27662 (ipv4a[0x02] != 0x64) ||
27663 (ipv4a[0x03] != 0x00) ||
27664 (ipv4a[0x04] != 0x01) )
27665 exit(1); /* fail */
27666 /* - */
27667 memset(ipv4a, 1, sizeof(ipv4a));
27668 if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4))
27669 exit(1); /* fail */
27670 /* - */
27671 memset(ipv6a, 1, sizeof(ipv6a));
27672 if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16))
27673 exit(1); /* fail */
27674 /* - */
27675 if( (ipv6a[0x00] != 0xfe) ||
27676 (ipv6a[0x01] != 0x80) ||
27677 (ipv6a[0x08] != 0x02) ||
27678 (ipv6a[0x09] != 0x14) ||
27679 (ipv6a[0x0a] != 0x4f) ||
27680 (ipv6a[0x0b] != 0xff) ||
27681 (ipv6a[0x0c] != 0xfe) ||
27682 (ipv6a[0x0d] != 0x0b) ||
27683 (ipv6a[0x0e] != 0x76) ||
27684 (ipv6a[0x0f] != 0xc8) ||
27685 (ipv6a[0x10] != 0x01) )
27686 exit(1); /* fail */
27687 /* - */
27688 if( (ipv6a[0x02] != 0x0) ||
27689 (ipv6a[0x03] != 0x0) ||
27690 (ipv6a[0x04] != 0x0) ||
27691 (ipv6a[0x05] != 0x0) ||
27692 (ipv6a[0x06] != 0x0) ||
27693 (ipv6a[0x07] != 0x0) )
27694 exit(1); /* fail */
27695 /* - */
27696 memset(ipv6a, 0, sizeof(ipv6a));
27697 ipv6a[0x10] = 0x01;
27698 if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16))
27699 exit(1); /* fail */
27700 /* - */
27701 if( (ipv6a[0x0a] != 0xff) ||
27702 (ipv6a[0x0b] != 0xfe) ||
27703 (ipv6a[0x0c] != 0x7f) ||
27704 (ipv6a[0x0f] != 0x01) ||
27705 (ipv6a[0x10] != 0x01) )
27706 exit(1); /* fail */
27707 /* - */
27708 if( (ipv6a[0x00] != 0x0) ||
27709 (ipv6a[0x01] != 0x0) ||
27710 (ipv6a[0x02] != 0x0) ||
27711 (ipv6a[0x03] != 0x0) ||
27712 (ipv6a[0x04] != 0x0) ||
27713 (ipv6a[0x05] != 0x0) ||
27714 (ipv6a[0x06] != 0x0) ||
27715 (ipv6a[0x07] != 0x0) ||
27716 (ipv6a[0x08] != 0x0) ||
27717 (ipv6a[0x09] != 0x0) ||
27718 (ipv6a[0x0d] != 0x0) ||
27719 (ipv6a[0x0e] != 0x0) )
27720 exit(1); /* fail */
27721 /* - */
27722 memset(ipv6a, 1, sizeof(ipv6a));
27723 if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16))
27724 exit(1); /* fail */
27725 if( (ipv6a[0x00] != 0x7f) ||
27726 (ipv6a[0x01] != 0x20) ||
27727 (ipv6a[0x03] != 0x01) ||
27728 (ipv6a[0x08] != 0x01) ||
27729 (ipv6a[0x09] != 0x01) ||
27730 (ipv6a[0x0a] != 0x01) ||
27731 (ipv6a[0x0b] != 0x01) ||
27732 (ipv6a[0x0c] != 0x01) ||
27733 (ipv6a[0x0d] != 0x01) ||
27734 (ipv6a[0x0e] != 0x01) ||
27735 (ipv6a[0x0f] != 0x01) ||
27736 (ipv6a[0x10] != 0x01) )
27737 exit(1); /* fail */
27738 if( (ipv6a[0x02] != 0x0) ||
27739 (ipv6a[0x04] != 0x0) ||
27740 (ipv6a[0x05] != 0x0) ||
27741 (ipv6a[0x06] != 0x0) ||
27742 (ipv6a[0x07] != 0x0) ||
27743 (ipv6a[0x07] != 0x0) )
27744 exit(1); /* fail */
27745 /* - */
27746 memset(ipv6a, 1, sizeof(ipv6a));
27747 if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16))
27748 exit(1); /* fail */
27749 /* - */
27750 exit(0);
27751
27752 ;
27753 return 0;
27754}
27755
27756_ACEOF
27757if ac_fn_c_try_run "$LINENO"; then :
27758
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27760$as_echo "yes" >&6; }
27761 tst_works_inet_net_pton="yes"
27762
27763else
27764
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27766$as_echo "no" >&6; }
27767 tst_works_inet_net_pton="no"
27768
27769fi
27770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27771 conftest.$ac_objext conftest.beam conftest.$ac_ext
27772fi
27773
27774 fi
27775 #
27776 if test "$tst_compi_inet_net_pton" = "yes" &&
27777 test "$tst_works_inet_net_pton" != "no"; then
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5
27779$as_echo_n "checking if inet_net_pton usage allowed... " >&6; }
27780 if test "x$cares_disallow_inet_net_pton" != "xyes"; then
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27782$as_echo "yes" >&6; }
27783 tst_allow_inet_net_pton="yes"
27784 else
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27786$as_echo "no" >&6; }
27787 tst_allow_inet_net_pton="no"
27788 fi
27789 fi
27790 #
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5
27792$as_echo_n "checking if inet_net_pton might be used... " >&6; }
27793 if test "$tst_links_inet_net_pton" = "yes" &&
27794 test "$tst_proto_inet_net_pton" = "yes" &&
27795 test "$tst_compi_inet_net_pton" = "yes" &&
27796 test "$tst_allow_inet_net_pton" = "yes" &&
27797 test "$tst_works_inet_net_pton" != "no"; then
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27799$as_echo "yes" >&6; }
27800
27801cat >>confdefs.h <<_ACEOF
27802#define HAVE_INET_NET_PTON 1
27803_ACEOF
27804
27805 ac_cv_func_inet_net_pton="yes"
27806 else
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27808$as_echo "no" >&6; }
27809 ac_cv_func_inet_net_pton="no"
27810 fi
27811
27812
27813 #
27814 tst_links_inet_ntop="unknown"
27815 tst_proto_inet_ntop="unknown"
27816 tst_compi_inet_ntop="unknown"
27817 tst_works_inet_ntop="unknown"
27818 tst_allow_inet_ntop="unknown"
27819 #
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
27821$as_echo_n "checking if inet_ntop can be linked... " >&6; }
27822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27823/* end confdefs.h. */
27824
27825
27826#define inet_ntop innocuous_inet_ntop
27827#ifdef __STDC__
27828# include <limits.h>
27829#else
27830# include <assert.h>
27831#endif
27832#undef inet_ntop
27833#ifdef __cplusplus
27834extern "C"
27835#endif
27836char inet_ntop ();
27837#if defined __stub_inet_ntop || defined __stub___inet_ntop
27838choke me
27839#endif
27840
27841int main (void)
27842{
27843return inet_ntop ();
27844 ;
27845 return 0;
27846}
27847
27848_ACEOF
27849if ac_fn_c_try_link "$LINENO"; then :
27850
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27852$as_echo "yes" >&6; }
27853 tst_links_inet_ntop="yes"
27854
27855else
27856
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27858$as_echo "no" >&6; }
27859 tst_links_inet_ntop="no"
27860
27861fi
27862rm -f core conftest.err conftest.$ac_objext \
27863 conftest$ac_exeext conftest.$ac_ext
27864 #
27865 if test "$tst_links_inet_ntop" = "yes"; then
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
27867$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
27868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27869/* end confdefs.h. */
27870
27871 $cares_includes_arpa_inet
27872
27873_ACEOF
27874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27875 $EGREP "inet_ntop" >/dev/null 2>&1; then :
27876
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27878$as_echo "yes" >&6; }
27879 tst_proto_inet_ntop="yes"
27880
27881else
27882
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27884$as_echo "no" >&6; }
27885 tst_proto_inet_ntop="no"
27886
27887fi
27888rm -f conftest*
27889
27890 fi
27891 #
27892 if test "$tst_proto_inet_ntop" = "yes"; then
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
27894$as_echo_n "checking if inet_ntop is compilable... " >&6; }
27895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896/* end confdefs.h. */
27897
27898
27899 $cares_includes_arpa_inet
27900
27901int main (void)
27902{
27903
27904 if(0 != inet_ntop(0, 0, 0, 0))
27905 return 1;
27906
27907 ;
27908 return 0;
27909}
27910
27911_ACEOF
27912if ac_fn_c_try_compile "$LINENO"; then :
27913
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27915$as_echo "yes" >&6; }
27916 tst_compi_inet_ntop="yes"
27917
27918else
27919
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27921$as_echo "no" >&6; }
27922 tst_compi_inet_ntop="no"
27923
27924fi
27925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27926 fi
27927 #
27928 if test "x$cross_compiling" != "xyes" &&
27929 test "$tst_compi_inet_ntop" = "yes"; then
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
27931$as_echo_n "checking if inet_ntop seems to work... " >&6; }
27932 if test "$cross_compiling" = yes; then :
27933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27935as_fn_error $? "cannot run test program while cross compiling
27936See \`config.log' for more details" "$LINENO" 5; }
27937else
27938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27939/* end confdefs.h. */
27940
27941
27942 $cares_includes_stdlib
27943 $cares_includes_arpa_inet
27944 $cares_includes_string
27945
27946int main (void)
27947{
27948
27949 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
27950 char ipv4res[sizeof "255.255.255.255"];
27951 unsigned char ipv6a[26];
27952 unsigned char ipv4a[5];
27953 char *ipv6ptr = 0;
27954 char *ipv4ptr = 0;
27955 /* - */
27956 ipv4res[0] = '\0';
27957 ipv4a[0] = 0xc0;
27958 ipv4a[1] = 0xa8;
27959 ipv4a[2] = 0x64;
27960 ipv4a[3] = 0x01;
27961 ipv4a[4] = 0x01;
27962 /* - */
27963 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
27964 if(!ipv4ptr)
27965 exit(1); /* fail */
27966 if(ipv4ptr != ipv4res)
27967 exit(1); /* fail */
27968 if(!ipv4ptr[0])
27969 exit(1); /* fail */
27970 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
27971 exit(1); /* fail */
27972 /* - */
27973 ipv6res[0] = '\0';
27974 memset(ipv6a, 0, sizeof(ipv6a));
27975 ipv6a[0] = 0xfe;
27976 ipv6a[1] = 0x80;
27977 ipv6a[8] = 0x02;
27978 ipv6a[9] = 0x14;
27979 ipv6a[10] = 0x4f;
27980 ipv6a[11] = 0xff;
27981 ipv6a[12] = 0xfe;
27982 ipv6a[13] = 0x0b;
27983 ipv6a[14] = 0x76;
27984 ipv6a[15] = 0xc8;
27985 ipv6a[25] = 0x01;
27986 /* - */
27987 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
27988 if(!ipv6ptr)
27989 exit(1); /* fail */
27990 if(ipv6ptr != ipv6res)
27991 exit(1); /* fail */
27992 if(!ipv6ptr[0])
27993 exit(1); /* fail */
27994 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
27995 exit(1); /* fail */
27996 /* - */
27997 exit(0);
27998
27999 ;
28000 return 0;
28001}
28002
28003_ACEOF
28004if ac_fn_c_try_run "$LINENO"; then :
28005
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28007$as_echo "yes" >&6; }
28008 tst_works_inet_ntop="yes"
28009
28010else
28011
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28013$as_echo "no" >&6; }
28014 tst_works_inet_ntop="no"
28015
28016fi
28017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28018 conftest.$ac_objext conftest.beam conftest.$ac_ext
28019fi
28020
28021 fi
28022 #
28023 if test "$tst_compi_inet_ntop" = "yes" &&
28024 test "$tst_works_inet_ntop" != "no"; then
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
28026$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
28027 if test "x$cares_disallow_inet_ntop" != "xyes"; then
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28029$as_echo "yes" >&6; }
28030 tst_allow_inet_ntop="yes"
28031 else
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28033$as_echo "no" >&6; }
28034 tst_allow_inet_ntop="no"
28035 fi
28036 fi
28037 #
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
28039$as_echo_n "checking if inet_ntop might be used... " >&6; }
28040 if test "$tst_links_inet_ntop" = "yes" &&
28041 test "$tst_proto_inet_ntop" = "yes" &&
28042 test "$tst_compi_inet_ntop" = "yes" &&
28043 test "$tst_allow_inet_ntop" = "yes" &&
28044 test "$tst_works_inet_ntop" != "no"; then
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28046$as_echo "yes" >&6; }
28047
28048cat >>confdefs.h <<_ACEOF
28049#define HAVE_INET_NTOP 1
28050_ACEOF
28051
28052 ac_cv_func_inet_ntop="yes"
28053 else
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28055$as_echo "no" >&6; }
28056 ac_cv_func_inet_ntop="no"
28057 fi
28058
28059
28060 #
28061 tst_links_inet_pton="unknown"
28062 tst_proto_inet_pton="unknown"
28063 tst_compi_inet_pton="unknown"
28064 tst_works_inet_pton="unknown"
28065 tst_allow_inet_pton="unknown"
28066 #
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
28068$as_echo_n "checking if inet_pton can be linked... " >&6; }
28069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28070/* end confdefs.h. */
28071
28072
28073#define inet_pton innocuous_inet_pton
28074#ifdef __STDC__
28075# include <limits.h>
28076#else
28077# include <assert.h>
28078#endif
28079#undef inet_pton
28080#ifdef __cplusplus
28081extern "C"
28082#endif
28083char inet_pton ();
28084#if defined __stub_inet_pton || defined __stub___inet_pton
28085choke me
28086#endif
28087
28088int main (void)
28089{
28090return inet_pton ();
28091 ;
28092 return 0;
28093}
28094
28095_ACEOF
28096if ac_fn_c_try_link "$LINENO"; then :
28097
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28099$as_echo "yes" >&6; }
28100 tst_links_inet_pton="yes"
28101
28102else
28103
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28105$as_echo "no" >&6; }
28106 tst_links_inet_pton="no"
28107
28108fi
28109rm -f core conftest.err conftest.$ac_objext \
28110 conftest$ac_exeext conftest.$ac_ext
28111 #
28112 if test "$tst_links_inet_pton" = "yes"; then
28113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
28114$as_echo_n "checking if inet_pton is prototyped... " >&6; }
28115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28116/* end confdefs.h. */
28117
28118 $cares_includes_arpa_inet
28119
28120_ACEOF
28121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28122 $EGREP "inet_pton" >/dev/null 2>&1; then :
28123
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28125$as_echo "yes" >&6; }
28126 tst_proto_inet_pton="yes"
28127
28128else
28129
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28131$as_echo "no" >&6; }
28132 tst_proto_inet_pton="no"
28133
28134fi
28135rm -f conftest*
28136
28137 fi
28138 #
28139 if test "$tst_proto_inet_pton" = "yes"; then
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
28141$as_echo_n "checking if inet_pton is compilable... " >&6; }
28142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28143/* end confdefs.h. */
28144
28145
28146 $cares_includes_arpa_inet
28147
28148int main (void)
28149{
28150
28151 if(0 != inet_pton(0, 0, 0))
28152 return 1;
28153
28154 ;
28155 return 0;
28156}
28157
28158_ACEOF
28159if ac_fn_c_try_compile "$LINENO"; then :
28160
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28162$as_echo "yes" >&6; }
28163 tst_compi_inet_pton="yes"
28164
28165else
28166
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28168$as_echo "no" >&6; }
28169 tst_compi_inet_pton="no"
28170
28171fi
28172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28173 fi
28174 #
28175 if test "x$cross_compiling" != "xyes" &&
28176 test "$tst_compi_inet_pton" = "yes"; then
28177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
28178$as_echo_n "checking if inet_pton seems to work... " >&6; }
28179 if test "$cross_compiling" = yes; then :
28180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28182as_fn_error $? "cannot run test program while cross compiling
28183See \`config.log' for more details" "$LINENO" 5; }
28184else
28185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28186/* end confdefs.h. */
28187
28188
28189 $cares_includes_stdlib
28190 $cares_includes_arpa_inet
28191 $cares_includes_string
28192
28193int main (void)
28194{
28195
28196 unsigned char ipv6a[16+1];
28197 unsigned char ipv4a[4+1];
28198 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
28199 const char *ipv4src = "192.168.100.1";
28200 /* - */
28201 memset(ipv4a, 1, sizeof(ipv4a));
28202 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
28203 exit(1); /* fail */
28204 /* - */
28205 if( (ipv4a[0] != 0xc0) ||
28206 (ipv4a[1] != 0xa8) ||
28207 (ipv4a[2] != 0x64) ||
28208 (ipv4a[3] != 0x01) ||
28209 (ipv4a[4] != 0x01) )
28210 exit(1); /* fail */
28211 /* - */
28212 memset(ipv6a, 1, sizeof(ipv6a));
28213 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
28214 exit(1); /* fail */
28215 /* - */
28216 if( (ipv6a[0] != 0xfe) ||
28217 (ipv6a[1] != 0x80) ||
28218 (ipv6a[8] != 0x02) ||
28219 (ipv6a[9] != 0x14) ||
28220 (ipv6a[10] != 0x4f) ||
28221 (ipv6a[11] != 0xff) ||
28222 (ipv6a[12] != 0xfe) ||
28223 (ipv6a[13] != 0x0b) ||
28224 (ipv6a[14] != 0x76) ||
28225 (ipv6a[15] != 0xc8) ||
28226 (ipv6a[16] != 0x01) )
28227 exit(1); /* fail */
28228 /* - */
28229 if( (ipv6a[2] != 0x0) ||
28230 (ipv6a[3] != 0x0) ||
28231 (ipv6a[4] != 0x0) ||
28232 (ipv6a[5] != 0x0) ||
28233 (ipv6a[6] != 0x0) ||
28234 (ipv6a[7] != 0x0) )
28235 exit(1); /* fail */
28236 /* - */
28237 exit(0);
28238
28239 ;
28240 return 0;
28241}
28242
28243_ACEOF
28244if ac_fn_c_try_run "$LINENO"; then :
28245
28246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28247$as_echo "yes" >&6; }
28248 tst_works_inet_pton="yes"
28249
28250else
28251
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28253$as_echo "no" >&6; }
28254 tst_works_inet_pton="no"
28255
28256fi
28257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28258 conftest.$ac_objext conftest.beam conftest.$ac_ext
28259fi
28260
28261 fi
28262 #
28263 if test "$tst_compi_inet_pton" = "yes" &&
28264 test "$tst_works_inet_pton" != "no"; then
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
28266$as_echo_n "checking if inet_pton usage allowed... " >&6; }
28267 if test "x$cares_disallow_inet_pton" != "xyes"; then
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28269$as_echo "yes" >&6; }
28270 tst_allow_inet_pton="yes"
28271 else
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28273$as_echo "no" >&6; }
28274 tst_allow_inet_pton="no"
28275 fi
28276 fi
28277 #
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
28279$as_echo_n "checking if inet_pton might be used... " >&6; }
28280 if test "$tst_links_inet_pton" = "yes" &&
28281 test "$tst_proto_inet_pton" = "yes" &&
28282 test "$tst_compi_inet_pton" = "yes" &&
28283 test "$tst_allow_inet_pton" = "yes" &&
28284 test "$tst_works_inet_pton" != "no"; then
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28286$as_echo "yes" >&6; }
28287
28288cat >>confdefs.h <<_ACEOF
28289#define HAVE_INET_PTON 1
28290_ACEOF
28291
28292 ac_cv_func_inet_pton="yes"
28293 else
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28295$as_echo "no" >&6; }
28296 ac_cv_func_inet_pton="no"
28297 fi
28298
28299
28300cares_includes_stropts="\
28301/* includes start */
28302#ifdef HAVE_SYS_TYPES_H
28303# include <sys/types.h>
28304#endif
28305#ifdef HAVE_UNISTD_H
28306# include <unistd.h>
28307#endif
28308#ifdef HAVE_SYS_SOCKET_H
28309# include <sys/socket.h>
28310#endif
28311#ifdef HAVE_SYS_IOCTL_H
28312# include <sys/ioctl.h>
28313#endif
28314#ifdef HAVE_STROPTS_H
28315# include <stropts.h>
28316#endif
28317/* includes end */"
28318 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
28319do :
28320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28321ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_stropts
28322"
28323if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28324 cat >>confdefs.h <<_ACEOF
28325#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28326_ACEOF
28327
28328fi
28329
28330done
28331
28332
28333
28334 #
28335 tst_links_ioctl="unknown"
28336 tst_proto_ioctl="unknown"
28337 tst_compi_ioctl="unknown"
28338 tst_allow_ioctl="unknown"
28339 #
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
28341$as_echo_n "checking if ioctl can be linked... " >&6; }
28342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28343/* end confdefs.h. */
28344
28345
28346#define ioctl innocuous_ioctl
28347#ifdef __STDC__
28348# include <limits.h>
28349#else
28350# include <assert.h>
28351#endif
28352#undef ioctl
28353#ifdef __cplusplus
28354extern "C"
28355#endif
28356char ioctl ();
28357#if defined __stub_ioctl || defined __stub___ioctl
28358choke me
28359#endif
28360
28361int main (void)
28362{
28363return ioctl ();
28364 ;
28365 return 0;
28366}
28367
28368_ACEOF
28369if ac_fn_c_try_link "$LINENO"; then :
28370
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28372$as_echo "yes" >&6; }
28373 tst_links_ioctl="yes"
28374
28375else
28376
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28378$as_echo "no" >&6; }
28379 tst_links_ioctl="no"
28380
28381fi
28382rm -f core conftest.err conftest.$ac_objext \
28383 conftest$ac_exeext conftest.$ac_ext
28384 #
28385 if test "$tst_links_ioctl" = "yes"; then
28386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
28387$as_echo_n "checking if ioctl is prototyped... " >&6; }
28388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28389/* end confdefs.h. */
28390
28391 $cares_includes_stropts
28392
28393_ACEOF
28394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28395 $EGREP "ioctl" >/dev/null 2>&1; then :
28396
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28398$as_echo "yes" >&6; }
28399 tst_proto_ioctl="yes"
28400
28401else
28402
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28404$as_echo "no" >&6; }
28405 tst_proto_ioctl="no"
28406
28407fi
28408rm -f conftest*
28409
28410 fi
28411 #
28412 if test "$tst_proto_ioctl" = "yes"; then
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
28414$as_echo_n "checking if ioctl is compilable... " >&6; }
28415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28416/* end confdefs.h. */
28417
28418
28419 $cares_includes_stropts
28420
28421int main (void)
28422{
28423
28424 if(0 != ioctl(0, 0, 0))
28425 return 1;
28426
28427 ;
28428 return 0;
28429}
28430
28431_ACEOF
28432if ac_fn_c_try_compile "$LINENO"; then :
28433
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28435$as_echo "yes" >&6; }
28436 tst_compi_ioctl="yes"
28437
28438else
28439
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28441$as_echo "no" >&6; }
28442 tst_compi_ioctl="no"
28443
28444fi
28445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28446 fi
28447 #
28448 if test "$tst_compi_ioctl" = "yes"; then
28449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
28450$as_echo_n "checking if ioctl usage allowed... " >&6; }
28451 if test "x$cares_disallow_ioctl" != "xyes"; then
28452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28453$as_echo "yes" >&6; }
28454 tst_allow_ioctl="yes"
28455 else
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28457$as_echo "no" >&6; }
28458 tst_allow_ioctl="no"
28459 fi
28460 fi
28461 #
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
28463$as_echo_n "checking if ioctl might be used... " >&6; }
28464 if test "$tst_links_ioctl" = "yes" &&
28465 test "$tst_proto_ioctl" = "yes" &&
28466 test "$tst_compi_ioctl" = "yes" &&
28467 test "$tst_allow_ioctl" = "yes"; then
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28469$as_echo "yes" >&6; }
28470
28471cat >>confdefs.h <<_ACEOF
28472#define HAVE_IOCTL 1
28473_ACEOF
28474
28475 ac_cv_func_ioctl="yes"
28476
28477 #
28478 tst_compi_ioctl_fionbio="unknown"
28479 tst_allow_ioctl_fionbio="unknown"
28480 #
28481 if test "$ac_cv_func_ioctl" = "yes"; then
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
28483$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
28484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28485/* end confdefs.h. */
28486
28487
28488 $cares_includes_stropts
28489
28490int main (void)
28491{
28492
28493 int flags = 0;
28494 if(0 != ioctl(0, FIONBIO, &flags))
28495 return 1;
28496
28497 ;
28498 return 0;
28499}
28500
28501_ACEOF
28502if ac_fn_c_try_compile "$LINENO"; then :
28503
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28505$as_echo "yes" >&6; }
28506 tst_compi_ioctl_fionbio="yes"
28507
28508else
28509
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28511$as_echo "no" >&6; }
28512 tst_compi_ioctl_fionbio="no"
28513
28514fi
28515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516 fi
28517 #
28518 if test "$tst_compi_ioctl_fionbio" = "yes"; then
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
28520$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
28521 if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28523$as_echo "yes" >&6; }
28524 tst_allow_ioctl_fionbio="yes"
28525 else
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28527$as_echo "no" >&6; }
28528 tst_allow_ioctl_fionbio="no"
28529 fi
28530 fi
28531 #
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
28533$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
28534 if test "$tst_compi_ioctl_fionbio" = "yes" &&
28535 test "$tst_allow_ioctl_fionbio" = "yes"; then
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28537$as_echo "yes" >&6; }
28538
28539cat >>confdefs.h <<_ACEOF
28540#define HAVE_IOCTL_FIONBIO 1
28541_ACEOF
28542
28543 ac_cv_func_ioctl_fionbio="yes"
28544 else
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28546$as_echo "no" >&6; }
28547 ac_cv_func_ioctl_fionbio="no"
28548 fi
28549
28550
28551 #
28552 tst_compi_ioctl_siocgifaddr="unknown"
28553 tst_allow_ioctl_siocgifaddr="unknown"
28554 #
28555 if test "$ac_cv_func_ioctl" = "yes"; then
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
28557$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
28558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28559/* end confdefs.h. */
28560
28561
28562 $cares_includes_stropts
28563 #include <net/if.h>
28564
28565int main (void)
28566{
28567
28568 struct ifreq ifr;
28569 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
28570 return 1;
28571
28572 ;
28573 return 0;
28574}
28575
28576_ACEOF
28577if ac_fn_c_try_compile "$LINENO"; then :
28578
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28580$as_echo "yes" >&6; }
28581 tst_compi_ioctl_siocgifaddr="yes"
28582
28583else
28584
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28586$as_echo "no" >&6; }
28587 tst_compi_ioctl_siocgifaddr="no"
28588
28589fi
28590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28591 fi
28592 #
28593 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
28595$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
28596 if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28598$as_echo "yes" >&6; }
28599 tst_allow_ioctl_siocgifaddr="yes"
28600 else
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28602$as_echo "no" >&6; }
28603 tst_allow_ioctl_siocgifaddr="no"
28604 fi
28605 fi
28606 #
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
28608$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
28609 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
28610 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28612$as_echo "yes" >&6; }
28613
28614cat >>confdefs.h <<_ACEOF
28615#define HAVE_IOCTL_SIOCGIFADDR 1
28616_ACEOF
28617
28618 ac_cv_func_ioctl_siocgifaddr="yes"
28619 else
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28621$as_echo "no" >&6; }
28622 ac_cv_func_ioctl_siocgifaddr="no"
28623 fi
28624
28625 else
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28627$as_echo "no" >&6; }
28628 ac_cv_func_ioctl="no"
28629 fi
28630
28631
28632 #
28633 tst_links_ioctlsocket="unknown"
28634 tst_proto_ioctlsocket="unknown"
28635 tst_compi_ioctlsocket="unknown"
28636 tst_allow_ioctlsocket="unknown"
28637 #
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
28639$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
28640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28641/* end confdefs.h. */
28642
28643
28644 $cares_includes_winsock2
28645
28646int main (void)
28647{
28648
28649 if(0 != ioctlsocket(0, 0, 0))
28650 return 1;
28651
28652 ;
28653 return 0;
28654}
28655
28656_ACEOF
28657if ac_fn_c_try_link "$LINENO"; then :
28658
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28660$as_echo "yes" >&6; }
28661 tst_links_ioctlsocket="yes"
28662
28663else
28664
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28666$as_echo "no" >&6; }
28667 tst_links_ioctlsocket="no"
28668
28669fi
28670rm -f core conftest.err conftest.$ac_objext \
28671 conftest$ac_exeext conftest.$ac_ext
28672 #
28673 if test "$tst_links_ioctlsocket" = "yes"; then
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
28675$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
28676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677/* end confdefs.h. */
28678
28679 $cares_includes_winsock2
28680
28681_ACEOF
28682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28683 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
28684
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28686$as_echo "yes" >&6; }
28687 tst_proto_ioctlsocket="yes"
28688
28689else
28690
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28692$as_echo "no" >&6; }
28693 tst_proto_ioctlsocket="no"
28694
28695fi
28696rm -f conftest*
28697
28698 fi
28699 #
28700 if test "$tst_proto_ioctlsocket" = "yes"; then
28701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
28702$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
28703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28704/* end confdefs.h. */
28705
28706
28707 $cares_includes_winsock2
28708
28709int main (void)
28710{
28711
28712 if(0 != ioctlsocket(0, 0, 0))
28713 return 1;
28714
28715 ;
28716 return 0;
28717}
28718
28719_ACEOF
28720if ac_fn_c_try_compile "$LINENO"; then :
28721
28722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28723$as_echo "yes" >&6; }
28724 tst_compi_ioctlsocket="yes"
28725
28726else
28727
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28729$as_echo "no" >&6; }
28730 tst_compi_ioctlsocket="no"
28731
28732fi
28733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28734 fi
28735 #
28736 if test "$tst_compi_ioctlsocket" = "yes"; then
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
28738$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
28739 if test "x$cares_disallow_ioctlsocket" != "xyes"; then
28740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28741$as_echo "yes" >&6; }
28742 tst_allow_ioctlsocket="yes"
28743 else
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28745$as_echo "no" >&6; }
28746 tst_allow_ioctlsocket="no"
28747 fi
28748 fi
28749 #
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
28751$as_echo_n "checking if ioctlsocket might be used... " >&6; }
28752 if test "$tst_links_ioctlsocket" = "yes" &&
28753 test "$tst_proto_ioctlsocket" = "yes" &&
28754 test "$tst_compi_ioctlsocket" = "yes" &&
28755 test "$tst_allow_ioctlsocket" = "yes"; then
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28757$as_echo "yes" >&6; }
28758
28759cat >>confdefs.h <<_ACEOF
28760#define HAVE_IOCTLSOCKET 1
28761_ACEOF
28762
28763 ac_cv_func_ioctlsocket="yes"
28764
28765 #
28766 tst_compi_ioctlsocket_fionbio="unknown"
28767 tst_allow_ioctlsocket_fionbio="unknown"
28768 #
28769 if test "$ac_cv_func_ioctlsocket" = "yes"; then
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
28771$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
28772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28773/* end confdefs.h. */
28774
28775
28776 $cares_includes_winsock2
28777
28778int main (void)
28779{
28780
28781 int flags = 0;
28782 if(0 != ioctlsocket(0, FIONBIO, &flags))
28783 return 1;
28784
28785 ;
28786 return 0;
28787}
28788
28789_ACEOF
28790if ac_fn_c_try_compile "$LINENO"; then :
28791
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28793$as_echo "yes" >&6; }
28794 tst_compi_ioctlsocket_fionbio="yes"
28795
28796else
28797
28798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28799$as_echo "no" >&6; }
28800 tst_compi_ioctlsocket_fionbio="no"
28801
28802fi
28803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28804 fi
28805 #
28806 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
28808$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
28809 if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28811$as_echo "yes" >&6; }
28812 tst_allow_ioctlsocket_fionbio="yes"
28813 else
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28815$as_echo "no" >&6; }
28816 tst_allow_ioctlsocket_fionbio="no"
28817 fi
28818 fi
28819 #
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
28821$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
28822 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
28823 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28825$as_echo "yes" >&6; }
28826
28827cat >>confdefs.h <<_ACEOF
28828#define HAVE_IOCTLSOCKET_FIONBIO 1
28829_ACEOF
28830
28831 ac_cv_func_ioctlsocket_fionbio="yes"
28832 else
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28834$as_echo "no" >&6; }
28835 ac_cv_func_ioctlsocket_fionbio="no"
28836 fi
28837
28838 else
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28840$as_echo "no" >&6; }
28841 ac_cv_func_ioctlsocket="no"
28842 fi
28843
28844
28845 #
28846 tst_links_ioctlsocket_camel="unknown"
28847 tst_proto_ioctlsocket_camel="unknown"
28848 tst_compi_ioctlsocket_camel="unknown"
28849 tst_allow_ioctlsocket_camel="unknown"
28850 #
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
28852$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854/* end confdefs.h. */
28855
28856
28857#define IoctlSocket innocuous_IoctlSocket
28858#ifdef __STDC__
28859# include <limits.h>
28860#else
28861# include <assert.h>
28862#endif
28863#undef IoctlSocket
28864#ifdef __cplusplus
28865extern "C"
28866#endif
28867char IoctlSocket ();
28868#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
28869choke me
28870#endif
28871
28872int main (void)
28873{
28874return IoctlSocket ();
28875 ;
28876 return 0;
28877}
28878
28879_ACEOF
28880if ac_fn_c_try_link "$LINENO"; then :
28881
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28883$as_echo "yes" >&6; }
28884 tst_links_ioctlsocket_camel="yes"
28885
28886else
28887
28888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28889$as_echo "no" >&6; }
28890 tst_links_ioctlsocket_camel="no"
28891
28892fi
28893rm -f core conftest.err conftest.$ac_objext \
28894 conftest$ac_exeext conftest.$ac_ext
28895 #
28896 if test "$tst_links_ioctlsocket_camel" = "yes"; then
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
28898$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
28899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28900/* end confdefs.h. */
28901
28902 $cares_includes_stropts
28903
28904_ACEOF
28905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28906 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
28907
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28909$as_echo "yes" >&6; }
28910 tst_proto_ioctlsocket_camel="yes"
28911
28912else
28913
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28915$as_echo "no" >&6; }
28916 tst_proto_ioctlsocket_camel="no"
28917
28918fi
28919rm -f conftest*
28920
28921 fi
28922 #
28923 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
28924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
28925$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
28926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28927/* end confdefs.h. */
28928
28929
28930 $cares_includes_stropts
28931
28932int main (void)
28933{
28934
28935 if(0 != IoctlSocket(0, 0, 0))
28936 return 1;
28937
28938 ;
28939 return 0;
28940}
28941
28942_ACEOF
28943if ac_fn_c_try_compile "$LINENO"; then :
28944
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28946$as_echo "yes" >&6; }
28947 tst_compi_ioctlsocket_camel="yes"
28948
28949else
28950
28951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28952$as_echo "no" >&6; }
28953 tst_compi_ioctlsocket_camel="no"
28954
28955fi
28956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28957 fi
28958 #
28959 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
28961$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
28962 if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28964$as_echo "yes" >&6; }
28965 tst_allow_ioctlsocket_camel="yes"
28966 else
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28968$as_echo "no" >&6; }
28969 tst_allow_ioctlsocket_camel="no"
28970 fi
28971 fi
28972 #
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
28974$as_echo_n "checking if IoctlSocket might be used... " >&6; }
28975 if test "$tst_links_ioctlsocket_camel" = "yes" &&
28976 test "$tst_proto_ioctlsocket_camel" = "yes" &&
28977 test "$tst_compi_ioctlsocket_camel" = "yes" &&
28978 test "$tst_allow_ioctlsocket_camel" = "yes"; then
28979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28980$as_echo "yes" >&6; }
28981
28982cat >>confdefs.h <<_ACEOF
28983#define HAVE_IOCTLSOCKET_CAMEL 1
28984_ACEOF
28985
28986 ac_cv_func_ioctlsocket_camel="yes"
28987
28988 #
28989 tst_compi_ioctlsocket_camel_fionbio="unknown"
28990 tst_allow_ioctlsocket_camel_fionbio="unknown"
28991 #
28992 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
28994$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
28995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28996/* end confdefs.h. */
28997
28998
28999 $cares_includes_stropts
29000
29001int main (void)
29002{
29003
29004 long flags = 0;
29005 if(0 != ioctlsocket(0, FIONBIO, &flags))
29006 return 1;
29007
29008 ;
29009 return 0;
29010}
29011
29012_ACEOF
29013if ac_fn_c_try_compile "$LINENO"; then :
29014
29015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29016$as_echo "yes" >&6; }
29017 tst_compi_ioctlsocket_camel_fionbio="yes"
29018
29019else
29020
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29022$as_echo "no" >&6; }
29023 tst_compi_ioctlsocket_camel_fionbio="no"
29024
29025fi
29026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29027 fi
29028 #
29029 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
29031$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
29032 if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
29033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29034$as_echo "yes" >&6; }
29035 tst_allow_ioctlsocket_camel_fionbio="yes"
29036 else
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29038$as_echo "no" >&6; }
29039 tst_allow_ioctlsocket_camel_fionbio="no"
29040 fi
29041 fi
29042 #
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
29044$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
29045 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
29046 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29048$as_echo "yes" >&6; }
29049
29050cat >>confdefs.h <<_ACEOF
29051#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
29052_ACEOF
29053
29054 ac_cv_func_ioctlsocket_camel_fionbio="yes"
29055 else
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29057$as_echo "no" >&6; }
29058 ac_cv_func_ioctlsocket_camel_fionbio="no"
29059 fi
29060
29061 else
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29063$as_echo "no" >&6; }
29064 ac_cv_func_ioctlsocket_camel="no"
29065 fi
29066
29067
29068 #
29069 tst_links_setsockopt="unknown"
29070 tst_proto_setsockopt="unknown"
29071 tst_compi_setsockopt="unknown"
29072 tst_allow_setsockopt="unknown"
29073 #
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
29075$as_echo_n "checking if setsockopt can be linked... " >&6; }
29076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29077/* end confdefs.h. */
29078
29079
29080 $cares_includes_winsock2
29081 $cares_includes_sys_socket
29082
29083int main (void)
29084{
29085
29086 if(0 != setsockopt(0, 0, 0, 0, 0))
29087 return 1;
29088
29089 ;
29090 return 0;
29091}
29092
29093_ACEOF
29094if ac_fn_c_try_link "$LINENO"; then :
29095
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29097$as_echo "yes" >&6; }
29098 tst_links_setsockopt="yes"
29099
29100else
29101
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29103$as_echo "no" >&6; }
29104 tst_links_setsockopt="no"
29105
29106fi
29107rm -f core conftest.err conftest.$ac_objext \
29108 conftest$ac_exeext conftest.$ac_ext
29109 #
29110 if test "$tst_links_setsockopt" = "yes"; then
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
29112$as_echo_n "checking if setsockopt is prototyped... " >&6; }
29113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29114/* end confdefs.h. */
29115
29116 $cares_includes_winsock2
29117 $cares_includes_sys_socket
29118
29119_ACEOF
29120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29121 $EGREP "setsockopt" >/dev/null 2>&1; then :
29122
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29124$as_echo "yes" >&6; }
29125 tst_proto_setsockopt="yes"
29126
29127else
29128
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29130$as_echo "no" >&6; }
29131 tst_proto_setsockopt="no"
29132
29133fi
29134rm -f conftest*
29135
29136 fi
29137 #
29138 if test "$tst_proto_setsockopt" = "yes"; then
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
29140$as_echo_n "checking if setsockopt is compilable... " >&6; }
29141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29142/* end confdefs.h. */
29143
29144
29145 $cares_includes_winsock2
29146 $cares_includes_sys_socket
29147
29148int main (void)
29149{
29150
29151 if(0 != setsockopt(0, 0, 0, 0, 0))
29152 return 1;
29153
29154 ;
29155 return 0;
29156}
29157
29158_ACEOF
29159if ac_fn_c_try_compile "$LINENO"; then :
29160
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29162$as_echo "yes" >&6; }
29163 tst_compi_setsockopt="yes"
29164
29165else
29166
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29168$as_echo "no" >&6; }
29169 tst_compi_setsockopt="no"
29170
29171fi
29172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173 fi
29174 #
29175 if test "$tst_compi_setsockopt" = "yes"; then
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
29177$as_echo_n "checking if setsockopt usage allowed... " >&6; }
29178 if test "x$cares_disallow_setsockopt" != "xyes"; then
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29180$as_echo "yes" >&6; }
29181 tst_allow_setsockopt="yes"
29182 else
29183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29184$as_echo "no" >&6; }
29185 tst_allow_setsockopt="no"
29186 fi
29187 fi
29188 #
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
29190$as_echo_n "checking if setsockopt might be used... " >&6; }
29191 if test "$tst_links_setsockopt" = "yes" &&
29192 test "$tst_proto_setsockopt" = "yes" &&
29193 test "$tst_compi_setsockopt" = "yes" &&
29194 test "$tst_allow_setsockopt" = "yes"; then
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29196$as_echo "yes" >&6; }
29197
29198cat >>confdefs.h <<_ACEOF
29199#define HAVE_SETSOCKOPT 1
29200_ACEOF
29201
29202 ac_cv_func_setsockopt="yes"
29203
29204 #
29205 tst_compi_setsockopt_so_nonblock="unknown"
29206 tst_allow_setsockopt_so_nonblock="unknown"
29207 #
29208 if test "$ac_cv_func_setsockopt" = "yes"; then
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
29210$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
29211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29212/* end confdefs.h. */
29213
29214
29215 $cares_includes_winsock2
29216 $cares_includes_sys_socket
29217
29218int main (void)
29219{
29220
29221 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
29222 return 1;
29223
29224 ;
29225 return 0;
29226}
29227
29228_ACEOF
29229if ac_fn_c_try_compile "$LINENO"; then :
29230
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29232$as_echo "yes" >&6; }
29233 tst_compi_setsockopt_so_nonblock="yes"
29234
29235else
29236
29237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29238$as_echo "no" >&6; }
29239 tst_compi_setsockopt_so_nonblock="no"
29240
29241fi
29242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29243 fi
29244 #
29245 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
29246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
29247$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
29248 if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29250$as_echo "yes" >&6; }
29251 tst_allow_setsockopt_so_nonblock="yes"
29252 else
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29254$as_echo "no" >&6; }
29255 tst_allow_setsockopt_so_nonblock="no"
29256 fi
29257 fi
29258 #
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
29260$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
29261 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
29262 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29264$as_echo "yes" >&6; }
29265
29266cat >>confdefs.h <<_ACEOF
29267#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
29268_ACEOF
29269
29270 ac_cv_func_setsockopt_so_nonblock="yes"
29271 else
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29273$as_echo "no" >&6; }
29274 ac_cv_func_setsockopt_so_nonblock="no"
29275 fi
29276
29277 else
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29279$as_echo "no" >&6; }
29280 ac_cv_func_setsockopt="no"
29281 fi
29282
29283
29284 #
29285 tst_links_socket="unknown"
29286 tst_proto_socket="unknown"
29287 tst_compi_socket="unknown"
29288 tst_allow_socket="unknown"
29289 #
29290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
29291$as_echo_n "checking if socket can be linked... " >&6; }
29292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29293/* end confdefs.h. */
29294
29295
29296 $cares_includes_winsock2
29297 $cares_includes_sys_socket
29298 $cares_includes_socket
29299
29300int main (void)
29301{
29302
29303 if(0 != socket(0, 0, 0))
29304 return 1;
29305
29306 ;
29307 return 0;
29308}
29309
29310_ACEOF
29311if ac_fn_c_try_link "$LINENO"; then :
29312
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29314$as_echo "yes" >&6; }
29315 tst_links_socket="yes"
29316
29317else
29318
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29320$as_echo "no" >&6; }
29321 tst_links_socket="no"
29322
29323fi
29324rm -f core conftest.err conftest.$ac_objext \
29325 conftest$ac_exeext conftest.$ac_ext
29326 #
29327 if test "$tst_links_socket" = "yes"; then
29328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
29329$as_echo_n "checking if socket is prototyped... " >&6; }
29330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29331/* end confdefs.h. */
29332
29333 $cares_includes_winsock2
29334 $cares_includes_sys_socket
29335 $cares_includes_socket
29336
29337_ACEOF
29338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29339 $EGREP "socket" >/dev/null 2>&1; then :
29340
29341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29342$as_echo "yes" >&6; }
29343 tst_proto_socket="yes"
29344
29345else
29346
29347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29348$as_echo "no" >&6; }
29349 tst_proto_socket="no"
29350
29351fi
29352rm -f conftest*
29353
29354 fi
29355 #
29356 if test "$tst_proto_socket" = "yes"; then
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
29358$as_echo_n "checking if socket is compilable... " >&6; }
29359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29360/* end confdefs.h. */
29361
29362
29363 $cares_includes_winsock2
29364 $cares_includes_sys_socket
29365 $cares_includes_socket
29366
29367int main (void)
29368{
29369
29370 if(0 != socket(0, 0, 0))
29371 return 1;
29372
29373 ;
29374 return 0;
29375}
29376
29377_ACEOF
29378if ac_fn_c_try_compile "$LINENO"; then :
29379
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29381$as_echo "yes" >&6; }
29382 tst_compi_socket="yes"
29383
29384else
29385
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29387$as_echo "no" >&6; }
29388 tst_compi_socket="no"
29389
29390fi
29391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29392 fi
29393 #
29394 if test "$tst_compi_socket" = "yes"; then
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
29396$as_echo_n "checking if socket usage allowed... " >&6; }
29397 if test "x$cares_disallow_socket" != "xyes"; then
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29399$as_echo "yes" >&6; }
29400 tst_allow_socket="yes"
29401 else
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29403$as_echo "no" >&6; }
29404 tst_allow_socket="no"
29405 fi
29406 fi
29407 #
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
29409$as_echo_n "checking if socket might be used... " >&6; }
29410 if test "$tst_links_socket" = "yes" &&
29411 test "$tst_proto_socket" = "yes" &&
29412 test "$tst_compi_socket" = "yes" &&
29413 test "$tst_allow_socket" = "yes"; then
29414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29415$as_echo "yes" >&6; }
29416
29417cat >>confdefs.h <<_ACEOF
29418#define HAVE_SOCKET 1
29419_ACEOF
29420
29421 ac_cv_func_socket="yes"
29422 else
29423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29424$as_echo "no" >&6; }
29425 ac_cv_func_socket="no"
29426 fi
29427
29428
29429 #
29430 tst_links_strcasecmp="unknown"
29431 tst_proto_strcasecmp="unknown"
29432 tst_compi_strcasecmp="unknown"
29433 tst_allow_strcasecmp="unknown"
29434 #
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
29436$as_echo_n "checking if strcasecmp can be linked... " >&6; }
29437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29438/* end confdefs.h. */
29439
29440
29441#define strcasecmp innocuous_strcasecmp
29442#ifdef __STDC__
29443# include <limits.h>
29444#else
29445# include <assert.h>
29446#endif
29447#undef strcasecmp
29448#ifdef __cplusplus
29449extern "C"
29450#endif
29451char strcasecmp ();
29452#if defined __stub_strcasecmp || defined __stub___strcasecmp
29453choke me
29454#endif
29455
29456int main (void)
29457{
29458return strcasecmp ();
29459 ;
29460 return 0;
29461}
29462
29463_ACEOF
29464if ac_fn_c_try_link "$LINENO"; then :
29465
29466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29467$as_echo "yes" >&6; }
29468 tst_links_strcasecmp="yes"
29469
29470else
29471
29472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29473$as_echo "no" >&6; }
29474 tst_links_strcasecmp="no"
29475
29476fi
29477rm -f core conftest.err conftest.$ac_objext \
29478 conftest$ac_exeext conftest.$ac_ext
29479 #
29480 if test "$tst_links_strcasecmp" = "yes"; then
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
29482$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
29483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29484/* end confdefs.h. */
29485
29486 $cares_includes_string
29487
29488_ACEOF
29489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29490 $EGREP "strcasecmp" >/dev/null 2>&1; then :
29491
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29493$as_echo "yes" >&6; }
29494 tst_proto_strcasecmp="yes"
29495
29496else
29497
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29499$as_echo "no" >&6; }
29500 tst_proto_strcasecmp="no"
29501
29502fi
29503rm -f conftest*
29504
29505 fi
29506 #
29507 if test "$tst_proto_strcasecmp" = "yes"; then
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
29509$as_echo_n "checking if strcasecmp is compilable... " >&6; }
29510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29511/* end confdefs.h. */
29512
29513
29514 $cares_includes_string
29515
29516int main (void)
29517{
29518
29519 if(0 != strcasecmp(0, 0))
29520 return 1;
29521
29522 ;
29523 return 0;
29524}
29525
29526_ACEOF
29527if ac_fn_c_try_compile "$LINENO"; then :
29528
29529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29530$as_echo "yes" >&6; }
29531 tst_compi_strcasecmp="yes"
29532
29533else
29534
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29536$as_echo "no" >&6; }
29537 tst_compi_strcasecmp="no"
29538
29539fi
29540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29541 fi
29542 #
29543 if test "$tst_compi_strcasecmp" = "yes"; then
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
29545$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
29546 if test "x$cares_disallow_strcasecmp" != "xyes"; then
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29548$as_echo "yes" >&6; }
29549 tst_allow_strcasecmp="yes"
29550 else
29551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29552$as_echo "no" >&6; }
29553 tst_allow_strcasecmp="no"
29554 fi
29555 fi
29556 #
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
29558$as_echo_n "checking if strcasecmp might be used... " >&6; }
29559 if test "$tst_links_strcasecmp" = "yes" &&
29560 test "$tst_proto_strcasecmp" = "yes" &&
29561 test "$tst_compi_strcasecmp" = "yes" &&
29562 test "$tst_allow_strcasecmp" = "yes"; then
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29564$as_echo "yes" >&6; }
29565
29566cat >>confdefs.h <<_ACEOF
29567#define HAVE_STRCASECMP 1
29568_ACEOF
29569
29570 ac_cv_func_strcasecmp="yes"
29571 else
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29573$as_echo "no" >&6; }
29574 ac_cv_func_strcasecmp="no"
29575 fi
29576
29577
29578 #
29579 tst_links_strcmpi="unknown"
29580 tst_proto_strcmpi="unknown"
29581 tst_compi_strcmpi="unknown"
29582 tst_allow_strcmpi="unknown"
29583 #
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
29585$as_echo_n "checking if strcmpi can be linked... " >&6; }
29586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29587/* end confdefs.h. */
29588
29589
29590#define strcmpi innocuous_strcmpi
29591#ifdef __STDC__
29592# include <limits.h>
29593#else
29594# include <assert.h>
29595#endif
29596#undef strcmpi
29597#ifdef __cplusplus
29598extern "C"
29599#endif
29600char strcmpi ();
29601#if defined __stub_strcmpi || defined __stub___strcmpi
29602choke me
29603#endif
29604
29605int main (void)
29606{
29607return strcmpi ();
29608 ;
29609 return 0;
29610}
29611
29612_ACEOF
29613if ac_fn_c_try_link "$LINENO"; then :
29614
29615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29616$as_echo "yes" >&6; }
29617 tst_links_strcmpi="yes"
29618
29619else
29620
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29622$as_echo "no" >&6; }
29623 tst_links_strcmpi="no"
29624
29625fi
29626rm -f core conftest.err conftest.$ac_objext \
29627 conftest$ac_exeext conftest.$ac_ext
29628 #
29629 if test "$tst_links_strcmpi" = "yes"; then
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
29631$as_echo_n "checking if strcmpi is prototyped... " >&6; }
29632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29633/* end confdefs.h. */
29634
29635 $cares_includes_string
29636
29637_ACEOF
29638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29639 $EGREP "strcmpi" >/dev/null 2>&1; then :
29640
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29642$as_echo "yes" >&6; }
29643 tst_proto_strcmpi="yes"
29644
29645else
29646
29647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29648$as_echo "no" >&6; }
29649 tst_proto_strcmpi="no"
29650
29651fi
29652rm -f conftest*
29653
29654 fi
29655 #
29656 if test "$tst_proto_strcmpi" = "yes"; then
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
29658$as_echo_n "checking if strcmpi is compilable... " >&6; }
29659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29660/* end confdefs.h. */
29661
29662
29663 $cares_includes_string
29664
29665int main (void)
29666{
29667
29668 if(0 != strcmpi(0, 0))
29669 return 1;
29670
29671 ;
29672 return 0;
29673}
29674
29675_ACEOF
29676if ac_fn_c_try_compile "$LINENO"; then :
29677
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29679$as_echo "yes" >&6; }
29680 tst_compi_strcmpi="yes"
29681
29682else
29683
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29685$as_echo "no" >&6; }
29686 tst_compi_strcmpi="no"
29687
29688fi
29689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29690 fi
29691 #
29692 if test "$tst_compi_strcmpi" = "yes"; then
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
29694$as_echo_n "checking if strcmpi usage allowed... " >&6; }
29695 if test "x$cares_disallow_strcmpi" != "xyes"; then
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29697$as_echo "yes" >&6; }
29698 tst_allow_strcmpi="yes"
29699 else
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29701$as_echo "no" >&6; }
29702 tst_allow_strcmpi="no"
29703 fi
29704 fi
29705 #
29706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
29707$as_echo_n "checking if strcmpi might be used... " >&6; }
29708 if test "$tst_links_strcmpi" = "yes" &&
29709 test "$tst_proto_strcmpi" = "yes" &&
29710 test "$tst_compi_strcmpi" = "yes" &&
29711 test "$tst_allow_strcmpi" = "yes"; then
29712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29713$as_echo "yes" >&6; }
29714
29715cat >>confdefs.h <<_ACEOF
29716#define HAVE_STRCMPI 1
29717_ACEOF
29718
29719 ac_cv_func_strcmpi="yes"
29720 else
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29722$as_echo "no" >&6; }
29723 ac_cv_func_strcmpi="no"
29724 fi
29725
29726
29727 #
29728 tst_links_strdup="unknown"
29729 tst_proto_strdup="unknown"
29730 tst_compi_strdup="unknown"
29731 tst_allow_strdup="unknown"
29732 #
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
29734$as_echo_n "checking if strdup can be linked... " >&6; }
29735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29736/* end confdefs.h. */
29737
29738
29739#define strdup innocuous_strdup
29740#ifdef __STDC__
29741# include <limits.h>
29742#else
29743# include <assert.h>
29744#endif
29745#undef strdup
29746#ifdef __cplusplus
29747extern "C"
29748#endif
29749char strdup ();
29750#if defined __stub_strdup || defined __stub___strdup
29751choke me
29752#endif
29753
29754int main (void)
29755{
29756return strdup ();
29757 ;
29758 return 0;
29759}
29760
29761_ACEOF
29762if ac_fn_c_try_link "$LINENO"; then :
29763
29764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29765$as_echo "yes" >&6; }
29766 tst_links_strdup="yes"
29767
29768else
29769
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29771$as_echo "no" >&6; }
29772 tst_links_strdup="no"
29773
29774fi
29775rm -f core conftest.err conftest.$ac_objext \
29776 conftest$ac_exeext conftest.$ac_ext
29777 #
29778 if test "$tst_links_strdup" = "yes"; then
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
29780$as_echo_n "checking if strdup is prototyped... " >&6; }
29781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29782/* end confdefs.h. */
29783
29784 $cares_includes_string
29785
29786_ACEOF
29787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29788 $EGREP "strdup" >/dev/null 2>&1; then :
29789
29790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29791$as_echo "yes" >&6; }
29792 tst_proto_strdup="yes"
29793
29794else
29795
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29797$as_echo "no" >&6; }
29798 tst_proto_strdup="no"
29799
29800fi
29801rm -f conftest*
29802
29803 fi
29804 #
29805 if test "$tst_proto_strdup" = "yes"; then
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
29807$as_echo_n "checking if strdup is compilable... " >&6; }
29808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29809/* end confdefs.h. */
29810
29811
29812 $cares_includes_string
29813
29814int main (void)
29815{
29816
29817 if(0 != strdup(0))
29818 return 1;
29819
29820 ;
29821 return 0;
29822}
29823
29824_ACEOF
29825if ac_fn_c_try_compile "$LINENO"; then :
29826
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29828$as_echo "yes" >&6; }
29829 tst_compi_strdup="yes"
29830
29831else
29832
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29834$as_echo "no" >&6; }
29835 tst_compi_strdup="no"
29836
29837fi
29838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29839 fi
29840 #
29841 if test "$tst_compi_strdup" = "yes"; then
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
29843$as_echo_n "checking if strdup usage allowed... " >&6; }
29844 if test "x$cares_disallow_strdup" != "xyes"; then
29845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29846$as_echo "yes" >&6; }
29847 tst_allow_strdup="yes"
29848 else
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29850$as_echo "no" >&6; }
29851 tst_allow_strdup="no"
29852 fi
29853 fi
29854 #
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
29856$as_echo_n "checking if strdup might be used... " >&6; }
29857 if test "$tst_links_strdup" = "yes" &&
29858 test "$tst_proto_strdup" = "yes" &&
29859 test "$tst_compi_strdup" = "yes" &&
29860 test "$tst_allow_strdup" = "yes"; then
29861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29862$as_echo "yes" >&6; }
29863
29864cat >>confdefs.h <<_ACEOF
29865#define HAVE_STRDUP 1
29866_ACEOF
29867
29868 ac_cv_func_strdup="yes"
29869 else
29870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29871$as_echo "no" >&6; }
29872 ac_cv_func_strdup="no"
29873 fi
29874
29875
29876 #
29877 tst_links_stricmp="unknown"
29878 tst_proto_stricmp="unknown"
29879 tst_compi_stricmp="unknown"
29880 tst_allow_stricmp="unknown"
29881 #
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
29883$as_echo_n "checking if stricmp can be linked... " >&6; }
29884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29885/* end confdefs.h. */
29886
29887
29888#define stricmp innocuous_stricmp
29889#ifdef __STDC__
29890# include <limits.h>
29891#else
29892# include <assert.h>
29893#endif
29894#undef stricmp
29895#ifdef __cplusplus
29896extern "C"
29897#endif
29898char stricmp ();
29899#if defined __stub_stricmp || defined __stub___stricmp
29900choke me
29901#endif
29902
29903int main (void)
29904{
29905return stricmp ();
29906 ;
29907 return 0;
29908}
29909
29910_ACEOF
29911if ac_fn_c_try_link "$LINENO"; then :
29912
29913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29914$as_echo "yes" >&6; }
29915 tst_links_stricmp="yes"
29916
29917else
29918
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29920$as_echo "no" >&6; }
29921 tst_links_stricmp="no"
29922
29923fi
29924rm -f core conftest.err conftest.$ac_objext \
29925 conftest$ac_exeext conftest.$ac_ext
29926 #
29927 if test "$tst_links_stricmp" = "yes"; then
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
29929$as_echo_n "checking if stricmp is prototyped... " >&6; }
29930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29931/* end confdefs.h. */
29932
29933 $cares_includes_string
29934
29935_ACEOF
29936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29937 $EGREP "stricmp" >/dev/null 2>&1; then :
29938
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29940$as_echo "yes" >&6; }
29941 tst_proto_stricmp="yes"
29942
29943else
29944
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29946$as_echo "no" >&6; }
29947 tst_proto_stricmp="no"
29948
29949fi
29950rm -f conftest*
29951
29952 fi
29953 #
29954 if test "$tst_proto_stricmp" = "yes"; then
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
29956$as_echo_n "checking if stricmp is compilable... " >&6; }
29957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29958/* end confdefs.h. */
29959
29960
29961 $cares_includes_string
29962
29963int main (void)
29964{
29965
29966 if(0 != stricmp(0, 0))
29967 return 1;
29968
29969 ;
29970 return 0;
29971}
29972
29973_ACEOF
29974if ac_fn_c_try_compile "$LINENO"; then :
29975
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29977$as_echo "yes" >&6; }
29978 tst_compi_stricmp="yes"
29979
29980else
29981
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29983$as_echo "no" >&6; }
29984 tst_compi_stricmp="no"
29985
29986fi
29987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29988 fi
29989 #
29990 if test "$tst_compi_stricmp" = "yes"; then
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
29992$as_echo_n "checking if stricmp usage allowed... " >&6; }
29993 if test "x$cares_disallow_stricmp" != "xyes"; then
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29995$as_echo "yes" >&6; }
29996 tst_allow_stricmp="yes"
29997 else
29998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29999$as_echo "no" >&6; }
30000 tst_allow_stricmp="no"
30001 fi
30002 fi
30003 #
30004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
30005$as_echo_n "checking if stricmp might be used... " >&6; }
30006 if test "$tst_links_stricmp" = "yes" &&
30007 test "$tst_proto_stricmp" = "yes" &&
30008 test "$tst_compi_stricmp" = "yes" &&
30009 test "$tst_allow_stricmp" = "yes"; then
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30011$as_echo "yes" >&6; }
30012
30013cat >>confdefs.h <<_ACEOF
30014#define HAVE_STRICMP 1
30015_ACEOF
30016
30017 ac_cv_func_stricmp="yes"
30018 else
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020$as_echo "no" >&6; }
30021 ac_cv_func_stricmp="no"
30022 fi
30023
30024
30025 #
30026 tst_links_strncasecmp="unknown"
30027 tst_proto_strncasecmp="unknown"
30028 tst_compi_strncasecmp="unknown"
30029 tst_allow_strncasecmp="unknown"
30030 #
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
30032$as_echo_n "checking if strncasecmp can be linked... " >&6; }
30033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30034/* end confdefs.h. */
30035
30036
30037#define strncasecmp innocuous_strncasecmp
30038#ifdef __STDC__
30039# include <limits.h>
30040#else
30041# include <assert.h>
30042#endif
30043#undef strncasecmp
30044#ifdef __cplusplus
30045extern "C"
30046#endif
30047char strncasecmp ();
30048#if defined __stub_strncasecmp || defined __stub___strncasecmp
30049choke me
30050#endif
30051
30052int main (void)
30053{
30054return strncasecmp ();
30055 ;
30056 return 0;
30057}
30058
30059_ACEOF
30060if ac_fn_c_try_link "$LINENO"; then :
30061
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30063$as_echo "yes" >&6; }
30064 tst_links_strncasecmp="yes"
30065
30066else
30067
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30069$as_echo "no" >&6; }
30070 tst_links_strncasecmp="no"
30071
30072fi
30073rm -f core conftest.err conftest.$ac_objext \
30074 conftest$ac_exeext conftest.$ac_ext
30075 #
30076 if test "$tst_links_strncasecmp" = "yes"; then
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
30078$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
30079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30080/* end confdefs.h. */
30081
30082 $cares_includes_string
30083
30084_ACEOF
30085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30086 $EGREP "strncasecmp" >/dev/null 2>&1; then :
30087
30088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30089$as_echo "yes" >&6; }
30090 tst_proto_strncasecmp="yes"
30091
30092else
30093
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30095$as_echo "no" >&6; }
30096 tst_proto_strncasecmp="no"
30097
30098fi
30099rm -f conftest*
30100
30101 fi
30102 #
30103 if test "$tst_proto_strncasecmp" = "yes"; then
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
30105$as_echo_n "checking if strncasecmp is compilable... " >&6; }
30106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30107/* end confdefs.h. */
30108
30109
30110 $cares_includes_string
30111
30112int main (void)
30113{
30114
30115 if(0 != strncasecmp(0, 0, 0))
30116 return 1;
30117
30118 ;
30119 return 0;
30120}
30121
30122_ACEOF
30123if ac_fn_c_try_compile "$LINENO"; then :
30124
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30126$as_echo "yes" >&6; }
30127 tst_compi_strncasecmp="yes"
30128
30129else
30130
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30132$as_echo "no" >&6; }
30133 tst_compi_strncasecmp="no"
30134
30135fi
30136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30137 fi
30138 #
30139 if test "$tst_compi_strncasecmp" = "yes"; then
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
30141$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
30142 if test "x$cares_disallow_strncasecmp" != "xyes"; then
30143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30144$as_echo "yes" >&6; }
30145 tst_allow_strncasecmp="yes"
30146 else
30147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30148$as_echo "no" >&6; }
30149 tst_allow_strncasecmp="no"
30150 fi
30151 fi
30152 #
30153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
30154$as_echo_n "checking if strncasecmp might be used... " >&6; }
30155 if test "$tst_links_strncasecmp" = "yes" &&
30156 test "$tst_proto_strncasecmp" = "yes" &&
30157 test "$tst_compi_strncasecmp" = "yes" &&
30158 test "$tst_allow_strncasecmp" = "yes"; then
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30160$as_echo "yes" >&6; }
30161
30162cat >>confdefs.h <<_ACEOF
30163#define HAVE_STRNCASECMP 1
30164_ACEOF
30165
30166 ac_cv_func_strncasecmp="yes"
30167 else
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30169$as_echo "no" >&6; }
30170 ac_cv_func_strncasecmp="no"
30171 fi
30172
30173
30174 #
30175 tst_links_strncmpi="unknown"
30176 tst_proto_strncmpi="unknown"
30177 tst_compi_strncmpi="unknown"
30178 tst_allow_strncmpi="unknown"
30179 #
30180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
30181$as_echo_n "checking if strncmpi can be linked... " >&6; }
30182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30183/* end confdefs.h. */
30184
30185
30186#define strncmpi innocuous_strncmpi
30187#ifdef __STDC__
30188# include <limits.h>
30189#else
30190# include <assert.h>
30191#endif
30192#undef strncmpi
30193#ifdef __cplusplus
30194extern "C"
30195#endif
30196char strncmpi ();
30197#if defined __stub_strncmpi || defined __stub___strncmpi
30198choke me
30199#endif
30200
30201int main (void)
30202{
30203return strncmpi ();
30204 ;
30205 return 0;
30206}
30207
30208_ACEOF
30209if ac_fn_c_try_link "$LINENO"; then :
30210
30211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30212$as_echo "yes" >&6; }
30213 tst_links_strncmpi="yes"
30214
30215else
30216
30217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30218$as_echo "no" >&6; }
30219 tst_links_strncmpi="no"
30220
30221fi
30222rm -f core conftest.err conftest.$ac_objext \
30223 conftest$ac_exeext conftest.$ac_ext
30224 #
30225 if test "$tst_links_strncmpi" = "yes"; then
30226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
30227$as_echo_n "checking if strncmpi is prototyped... " >&6; }
30228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30229/* end confdefs.h. */
30230
30231 $cares_includes_string
30232
30233_ACEOF
30234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30235 $EGREP "strncmpi" >/dev/null 2>&1; then :
30236
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30238$as_echo "yes" >&6; }
30239 tst_proto_strncmpi="yes"
30240
30241else
30242
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30244$as_echo "no" >&6; }
30245 tst_proto_strncmpi="no"
30246
30247fi
30248rm -f conftest*
30249
30250 fi
30251 #
30252 if test "$tst_proto_strncmpi" = "yes"; then
30253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
30254$as_echo_n "checking if strncmpi is compilable... " >&6; }
30255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30256/* end confdefs.h. */
30257
30258
30259 $cares_includes_string
30260
30261int main (void)
30262{
30263
30264 if(0 != strncmpi(0, 0))
30265 return 1;
30266
30267 ;
30268 return 0;
30269}
30270
30271_ACEOF
30272if ac_fn_c_try_compile "$LINENO"; then :
30273
30274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30275$as_echo "yes" >&6; }
30276 tst_compi_strncmpi="yes"
30277
30278else
30279
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30281$as_echo "no" >&6; }
30282 tst_compi_strncmpi="no"
30283
30284fi
30285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30286 fi
30287 #
30288 if test "$tst_compi_strncmpi" = "yes"; then
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
30290$as_echo_n "checking if strncmpi usage allowed... " >&6; }
30291 if test "x$cares_disallow_strncmpi" != "xyes"; then
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30293$as_echo "yes" >&6; }
30294 tst_allow_strncmpi="yes"
30295 else
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30297$as_echo "no" >&6; }
30298 tst_allow_strncmpi="no"
30299 fi
30300 fi
30301 #
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
30303$as_echo_n "checking if strncmpi might be used... " >&6; }
30304 if test "$tst_links_strncmpi" = "yes" &&
30305 test "$tst_proto_strncmpi" = "yes" &&
30306 test "$tst_compi_strncmpi" = "yes" &&
30307 test "$tst_allow_strncmpi" = "yes"; then
30308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30309$as_echo "yes" >&6; }
30310
30311cat >>confdefs.h <<_ACEOF
30312#define HAVE_STRNCMPI 1
30313_ACEOF
30314
30315 ac_cv_func_strncmpi="yes"
30316 else
30317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30318$as_echo "no" >&6; }
30319 ac_cv_func_strncmpi="no"
30320 fi
30321
30322
30323 #
30324 tst_links_strnicmp="unknown"
30325 tst_proto_strnicmp="unknown"
30326 tst_compi_strnicmp="unknown"
30327 tst_allow_strnicmp="unknown"
30328 #
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
30330$as_echo_n "checking if strnicmp can be linked... " >&6; }
30331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30332/* end confdefs.h. */
30333
30334
30335#define strnicmp innocuous_strnicmp
30336#ifdef __STDC__
30337# include <limits.h>
30338#else
30339# include <assert.h>
30340#endif
30341#undef strnicmp
30342#ifdef __cplusplus
30343extern "C"
30344#endif
30345char strnicmp ();
30346#if defined __stub_strnicmp || defined __stub___strnicmp
30347choke me
30348#endif
30349
30350int main (void)
30351{
30352return strnicmp ();
30353 ;
30354 return 0;
30355}
30356
30357_ACEOF
30358if ac_fn_c_try_link "$LINENO"; then :
30359
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30361$as_echo "yes" >&6; }
30362 tst_links_strnicmp="yes"
30363
30364else
30365
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30367$as_echo "no" >&6; }
30368 tst_links_strnicmp="no"
30369
30370fi
30371rm -f core conftest.err conftest.$ac_objext \
30372 conftest$ac_exeext conftest.$ac_ext
30373 #
30374 if test "$tst_links_strnicmp" = "yes"; then
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
30376$as_echo_n "checking if strnicmp is prototyped... " >&6; }
30377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30378/* end confdefs.h. */
30379
30380 $cares_includes_string
30381
30382_ACEOF
30383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30384 $EGREP "strnicmp" >/dev/null 2>&1; then :
30385
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30387$as_echo "yes" >&6; }
30388 tst_proto_strnicmp="yes"
30389
30390else
30391
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30393$as_echo "no" >&6; }
30394 tst_proto_strnicmp="no"
30395
30396fi
30397rm -f conftest*
30398
30399 fi
30400 #
30401 if test "$tst_proto_strnicmp" = "yes"; then
30402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
30403$as_echo_n "checking if strnicmp is compilable... " >&6; }
30404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30405/* end confdefs.h. */
30406
30407
30408 $cares_includes_string
30409
30410int main (void)
30411{
30412
30413 if(0 != strnicmp(0, 0))
30414 return 1;
30415
30416 ;
30417 return 0;
30418}
30419
30420_ACEOF
30421if ac_fn_c_try_compile "$LINENO"; then :
30422
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30424$as_echo "yes" >&6; }
30425 tst_compi_strnicmp="yes"
30426
30427else
30428
30429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30430$as_echo "no" >&6; }
30431 tst_compi_strnicmp="no"
30432
30433fi
30434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30435 fi
30436 #
30437 if test "$tst_compi_strnicmp" = "yes"; then
30438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
30439$as_echo_n "checking if strnicmp usage allowed... " >&6; }
30440 if test "x$cares_disallow_strnicmp" != "xyes"; then
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30442$as_echo "yes" >&6; }
30443 tst_allow_strnicmp="yes"
30444 else
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30446$as_echo "no" >&6; }
30447 tst_allow_strnicmp="no"
30448 fi
30449 fi
30450 #
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
30452$as_echo_n "checking if strnicmp might be used... " >&6; }
30453 if test "$tst_links_strnicmp" = "yes" &&
30454 test "$tst_proto_strnicmp" = "yes" &&
30455 test "$tst_compi_strnicmp" = "yes" &&
30456 test "$tst_allow_strnicmp" = "yes"; then
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30458$as_echo "yes" >&6; }
30459
30460cat >>confdefs.h <<_ACEOF
30461#define HAVE_STRNICMP 1
30462_ACEOF
30463
30464 ac_cv_func_strnicmp="yes"
30465 else
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30467$as_echo "no" >&6; }
30468 ac_cv_func_strnicmp="no"
30469 fi
30470
30471
30472cares_includes_sys_uio="\
30473/* includes start */
30474#ifdef HAVE_SYS_TYPES_H
30475# include <sys/types.h>
30476#endif
30477#ifdef HAVE_SYS_UIO_H
30478# include <sys/uio.h>
30479#endif
30480/* includes end */"
30481 for ac_header in sys/types.h sys/uio.h
30482do :
30483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30484ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$cares_includes_sys_uio
30485"
30486if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30487 cat >>confdefs.h <<_ACEOF
30488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30489_ACEOF
30490
30491fi
30492
30493done
30494
30495
30496
30497 #
30498 tst_links_writev="unknown"
30499 tst_proto_writev="unknown"
30500 tst_compi_writev="unknown"
30501 tst_allow_writev="unknown"
30502 #
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
30504$as_echo_n "checking if writev can be linked... " >&6; }
30505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30506/* end confdefs.h. */
30507
30508
30509#define writev innocuous_writev
30510#ifdef __STDC__
30511# include <limits.h>
30512#else
30513# include <assert.h>
30514#endif
30515#undef writev
30516#ifdef __cplusplus
30517extern "C"
30518#endif
30519char writev ();
30520#if defined __stub_writev || defined __stub___writev
30521choke me
30522#endif
30523
30524int main (void)
30525{
30526return writev ();
30527 ;
30528 return 0;
30529}
30530
30531_ACEOF
30532if ac_fn_c_try_link "$LINENO"; then :
30533
30534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30535$as_echo "yes" >&6; }
30536 tst_links_writev="yes"
30537
30538else
30539
30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30541$as_echo "no" >&6; }
30542 tst_links_writev="no"
30543
30544fi
30545rm -f core conftest.err conftest.$ac_objext \
30546 conftest$ac_exeext conftest.$ac_ext
30547 #
30548 if test "$tst_links_writev" = "yes"; then
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
30550$as_echo_n "checking if writev is prototyped... " >&6; }
30551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30552/* end confdefs.h. */
30553
30554 $cares_includes_sys_uio
30555
30556_ACEOF
30557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30558 $EGREP "writev" >/dev/null 2>&1; then :
30559
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30561$as_echo "yes" >&6; }
30562 tst_proto_writev="yes"
30563
30564else
30565
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30567$as_echo "no" >&6; }
30568 tst_proto_writev="no"
30569
30570fi
30571rm -f conftest*
30572
30573 fi
30574 #
30575 if test "$tst_proto_writev" = "yes"; then
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
30577$as_echo_n "checking if writev is compilable... " >&6; }
30578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30579/* end confdefs.h. */
30580
30581
30582 $cares_includes_sys_uio
30583
30584int main (void)
30585{
30586
30587 if(0 != writev(0, 0, 0))
30588 return 1;
30589
30590 ;
30591 return 0;
30592}
30593
30594_ACEOF
30595if ac_fn_c_try_compile "$LINENO"; then :
30596
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30598$as_echo "yes" >&6; }
30599 tst_compi_writev="yes"
30600
30601else
30602
30603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30604$as_echo "no" >&6; }
30605 tst_compi_writev="no"
30606
30607fi
30608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30609 fi
30610 #
30611 if test "$tst_compi_writev" = "yes"; then
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
30613$as_echo_n "checking if writev usage allowed... " >&6; }
30614 if test "x$cares_disallow_writev" != "xyes"; then
30615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30616$as_echo "yes" >&6; }
30617 tst_allow_writev="yes"
30618 else
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30620$as_echo "no" >&6; }
30621 tst_allow_writev="no"
30622 fi
30623 fi
30624 #
30625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
30626$as_echo_n "checking if writev might be used... " >&6; }
30627 if test "$tst_links_writev" = "yes" &&
30628 test "$tst_proto_writev" = "yes" &&
30629 test "$tst_compi_writev" = "yes" &&
30630 test "$tst_allow_writev" = "yes"; then
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30632$as_echo "yes" >&6; }
30633
30634cat >>confdefs.h <<_ACEOF
30635#define HAVE_WRITEV 1
30636_ACEOF
30637
30638 ac_cv_func_writev="yes"
30639 else
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30641$as_echo "no" >&6; }
30642 ac_cv_func_writev="no"
30643 fi
30644
30645
30646
30647
30648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5
30649$as_echo_n "checking for PF_INET6... " >&6; }
30650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30651/* end confdefs.h. */
30652
30653
30654#undef inline
30655#ifdef HAVE_WINDOWS_H
30656#ifndef WIN32_LEAN_AND_MEAN
30657#define WIN32_LEAN_AND_MEAN
30658#endif
30659#include <windows.h>
30660#ifdef HAVE_WINSOCK2_H
30661#include <winsock2.h>
30662#endif
30663#else
30664#ifdef HAVE_SYS_TYPES_H
30665#include <sys/types.h>
30666#endif
30667#ifdef HAVE_SYS_SOCKET_H
30668#include <sys/socket.h>
30669#endif
30670#endif
30671
30672
30673 #ifdef PF_INET6
30674 VARIABLEWASDEFINED
30675 #else
30676 NJET
30677 #endif
30678
30679_ACEOF
30680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30681 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
30682 ac_constant="yes"
30683else
30684 ac_constant="no"
30685
30686fi
30687rm -f conftest*
30688
30689 if test "$ac_constant" = "yes" ; then
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30691$as_echo "yes" >&6; }
30692
30693cat >>confdefs.h <<_ACEOF
30694#define HAVE_PF_INET6 1
30695_ACEOF
30696
30697
30698 else
30699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30700$as_echo "no" >&6; }
30701
30702 fi
30703
30704
30705
30706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
30707$as_echo_n "checking for AF_INET6... " >&6; }
30708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30709/* end confdefs.h. */
30710
30711
30712#undef inline
30713#ifdef HAVE_WINDOWS_H
30714#ifndef WIN32_LEAN_AND_MEAN
30715#define WIN32_LEAN_AND_MEAN
30716#endif
30717#include <windows.h>
30718#ifdef HAVE_WINSOCK2_H
30719#include <winsock2.h>
30720#endif
30721#else
30722#ifdef HAVE_SYS_TYPES_H
30723#include <sys/types.h>
30724#endif
30725#ifdef HAVE_SYS_SOCKET_H
30726#include <sys/socket.h>
30727#endif
30728#endif
30729
30730
30731 #ifdef AF_INET6
30732 VARIABLEWASDEFINED
30733 #else
30734 NJET
30735 #endif
30736
30737_ACEOF
30738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30739 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1; then :
30740 ac_constant="yes"
30741else
30742 ac_constant="no"
30743
30744fi
30745rm -f conftest*
30746
30747 if test "$ac_constant" = "yes" ; then
30748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30749$as_echo "yes" >&6; }
30750
30751cat >>confdefs.h <<_ACEOF
30752#define HAVE_AF_INET6 1
30753_ACEOF
30754
30755
30756 else
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30758$as_echo "no" >&6; }
30759
30760 fi
30761
30762
30763
30764
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
30766$as_echo_n "checking for struct in6_addr... " >&6; }
30767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30768/* end confdefs.h. */
30769
30770#undef inline
30771#ifdef HAVE_WINDOWS_H
30772#ifndef WIN32_LEAN_AND_MEAN
30773#define WIN32_LEAN_AND_MEAN
30774#endif
30775#include <windows.h>
30776#ifdef HAVE_WINSOCK2_H
30777#include <winsock2.h>
30778#ifdef HAVE_WS2TCPIP_H
30779#include <ws2tcpip.h>
30780#endif
30781#endif
30782#else
30783#ifdef HAVE_SYS_TYPES_H
30784#include <sys/types.h>
30785#endif
30786#ifdef HAVE_NETINET_IN_H
30787#include <netinet/in.h>
30788#endif
30789#endif
30790
30791int main (void)
30792{
30793
30794 struct in6_addr struct_instance;
30795
30796 ;
30797 return 0;
30798}
30799_ACEOF
30800if ac_fn_c_try_compile "$LINENO"; then :
30801 ac_struct="yes"
30802else
30803 ac_found="no"
30804fi
30805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30806 if test "$ac_struct" = "yes" ; then
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30808$as_echo "yes" >&6; }
30809
30810cat >>confdefs.h <<_ACEOF
30811#define HAVE_STRUCT_IN6_ADDR 1
30812_ACEOF
30813
30814
30815 else
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30817$as_echo "no" >&6; }
30818
30819 fi
30820
30821
30822
30823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
30824$as_echo_n "checking for struct sockaddr_in6... " >&6; }
30825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30826/* end confdefs.h. */
30827
30828#undef inline
30829#ifdef HAVE_WINDOWS_H
30830#ifndef WIN32_LEAN_AND_MEAN
30831#define WIN32_LEAN_AND_MEAN
30832#endif
30833#include <windows.h>
30834#ifdef HAVE_WINSOCK2_H
30835#include <winsock2.h>
30836#ifdef HAVE_WS2TCPIP_H
30837#include <ws2tcpip.h>
30838#endif
30839#endif
30840#else
30841#ifdef HAVE_SYS_TYPES_H
30842#include <sys/types.h>
30843#endif
30844#ifdef HAVE_NETINET_IN_H
30845#include <netinet/in.h>
30846#endif
30847#endif
30848
30849int main (void)
30850{
30851
30852 struct sockaddr_in6 struct_instance;
30853
30854 ;
30855 return 0;
30856}
30857_ACEOF
30858if ac_fn_c_try_compile "$LINENO"; then :
30859 ac_struct="yes"
30860else
30861 ac_found="no"
30862fi
30863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30864 if test "$ac_struct" = "yes" ; then
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30866$as_echo "yes" >&6; }
30867
30868cat >>confdefs.h <<_ACEOF
30869#define HAVE_STRUCT_SOCKADDR_IN6 1
30870_ACEOF
30871 ac_have_sockaddr_in6=yes
30872
30873 else
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30875$as_echo "no" >&6; }
30876
30877 fi
30878
30879
30880ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
30881#undef inline
30882#ifdef HAVE_WINDOWS_H
30883#ifndef WIN32_LEAN_AND_MEAN
30884#define WIN32_LEAN_AND_MEAN
30885#endif
30886#include <windows.h>
30887#ifdef HAVE_WINSOCK2_H
30888#include <winsock2.h>
30889#ifdef HAVE_WS2TCPIP_H
30890#include <ws2tcpip.h>
30891#endif
30892#endif
30893#else
30894#ifdef HAVE_SYS_TYPES_H
30895#include <sys/types.h>
30896#endif
30897#ifdef HAVE_NETINET_IN_H
30898#include <netinet/in.h>
30899#endif
30900#endif
30901
30902"
30903if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
30904
30905cat >>confdefs.h <<_ACEOF
30906#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
30907_ACEOF
30908
30909
30910fi
30911
30912
30913ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "
30914#undef inline
30915#ifdef HAVE_WINDOWS_H
30916#ifndef WIN32_LEAN_AND_MEAN
30917#define WIN32_LEAN_AND_MEAN
30918#endif
30919#include <windows.h>
30920#ifdef HAVE_WINSOCK2_H
30921#include <winsock2.h>
30922#ifdef HAVE_WS2TCPIP_H
30923#include <ws2tcpip.h>
30924#endif
30925#endif
30926#else
30927#ifdef HAVE_SYS_TYPES_H
30928#include <sys/types.h>
30929#endif
30930#ifdef HAVE_NETINET_IN_H
30931#include <netinet/in.h>
30932#endif
30933#ifdef HAVE_SYS_SOCKET_H
30934#include <sys/socket.h>
30935#endif
30936#ifdef HAVE_NETDB_H
30937#include <netdb.h>
30938#endif
30939#endif
30940
30941
30942"
30943if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes; then :
30944
30945cat >>confdefs.h <<_ACEOF
30946#define HAVE_STRUCT_ADDRINFO 1
30947_ACEOF
30948
30949fi
30950
30951
30952
30953for ac_func in bitncmp \
30954 gettimeofday \
30955 if_indextoname
30956
30957do :
30958 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30959ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30960if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30961 cat >>confdefs.h <<_ACEOF
30962#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30963_ACEOF
30964
30965
30966else
30967
30968 func="$ac_func"
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
30970$as_echo_n "checking deeper for $func... " >&6; }
30971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30972/* end confdefs.h. */
30973
30974
30975
30976int main (void)
30977{
30978
30979 $func ();
30980
30981 ;
30982 return 0;
30983}
30984
30985_ACEOF
30986if ac_fn_c_try_link "$LINENO"; then :
30987
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30989$as_echo "yes" >&6; }
30990 eval "ac_cv_func_$func=yes"
30991
30992cat >>confdefs.h <<_ACEOF
30993#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
30994_ACEOF
30995
30996
30997else
30998
30999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31000$as_echo "but still no" >&6; }
31001
31002fi
31003rm -f core conftest.err conftest.$ac_objext \
31004 conftest$ac_exeext conftest.$ac_ext
31005
31006fi
31007done
31008
31009
31010
31011
31012 for ac_header in sys/types.h sys/socket.h netdb.h
31013do :
31014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31015ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31016if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31017 cat >>confdefs.h <<_ACEOF
31018#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31019_ACEOF
31020
31021fi
31022
31023done
31024
31025 #
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
31027$as_echo_n "checking for getnameinfo... " >&6; }
31028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31029/* end confdefs.h. */
31030
31031
31032#define getnameinfo innocuous_getnameinfo
31033#ifdef __STDC__
31034# include <limits.h>
31035#else
31036# include <assert.h>
31037#endif
31038#undef getnameinfo
31039#ifdef __cplusplus
31040extern "C"
31041#endif
31042char getnameinfo ();
31043#if defined __stub_getnameinfo || defined __stub___getnameinfo
31044choke me
31045#endif
31046
31047int main (void)
31048{
31049return getnameinfo ();
31050 ;
31051 return 0;
31052}
31053
31054_ACEOF
31055if ac_fn_c_try_link "$LINENO"; then :
31056
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31058$as_echo "yes" >&6; }
31059 curl_cv_getnameinfo="yes"
31060
31061else
31062
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31064$as_echo "no" >&6; }
31065 curl_cv_getnameinfo="no"
31066
31067fi
31068rm -f core conftest.err conftest.$ac_objext \
31069 conftest$ac_exeext conftest.$ac_ext
31070 #
31071 if test "$curl_cv_getnameinfo" != "yes"; then
31072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
31073$as_echo_n "checking deeper for getnameinfo... " >&6; }
31074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31075/* end confdefs.h. */
31076
31077
31078
31079int main (void)
31080{
31081
31082 getnameinfo();
31083
31084 ;
31085 return 0;
31086}
31087
31088_ACEOF
31089if ac_fn_c_try_link "$LINENO"; then :
31090
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31092$as_echo "yes" >&6; }
31093 curl_cv_getnameinfo="yes"
31094
31095else
31096
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31098$as_echo "but still no" >&6; }
31099 curl_cv_getnameinfo="no"
31100
31101fi
31102rm -f core conftest.err conftest.$ac_objext \
31103 conftest$ac_exeext conftest.$ac_ext
31104 fi
31105 #
31106 if test "$curl_cv_getnameinfo" != "yes"; then
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
31108$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
31109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31110/* end confdefs.h. */
31111
31112
31113#undef inline
31114#ifdef HAVE_WINDOWS_H
31115#ifndef WIN32_LEAN_AND_MEAN
31116#define WIN32_LEAN_AND_MEAN
31117#endif
31118#include <windows.h>
31119#ifdef HAVE_WINSOCK2_H
31120#include <winsock2.h>
31121#ifdef HAVE_WS2TCPIP_H
31122#include <ws2tcpip.h>
31123#endif
31124#endif
31125#else
31126#ifdef HAVE_SYS_TYPES_H
31127#include <sys/types.h>
31128#endif
31129#ifdef HAVE_SYS_SOCKET_H
31130#include <sys/socket.h>
31131#endif
31132#ifdef HAVE_NETDB_H
31133#include <netdb.h>
31134#endif
31135#endif
31136
31137int main (void)
31138{
31139
31140 getnameinfo(0, 0, 0, 0, 0, 0, 0);
31141
31142 ;
31143 return 0;
31144}
31145
31146_ACEOF
31147if ac_fn_c_try_link "$LINENO"; then :
31148
31149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31150$as_echo "yes" >&6; }
31151 curl_cv_getnameinfo="yes"
31152
31153else
31154
31155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
31156$as_echo "but still no" >&6; }
31157 curl_cv_getnameinfo="no"
31158
31159fi
31160rm -f core conftest.err conftest.$ac_objext \
31161 conftest$ac_exeext conftest.$ac_ext
31162 fi
31163 #
31164 if test "$curl_cv_getnameinfo" = "yes"; then
31165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
31166$as_echo_n "checking types of arguments for getnameinfo... " >&6; }
31167if ${curl_cv_func_getnameinfo_args+:} false; then :
31168 $as_echo_n "(cached) " >&6
31169else
31170
31171 curl_cv_func_getnameinfo_args="unknown"
31172 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
31173 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
31174 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
31175 for gni_arg7 in 'int' 'unsigned int'; do
31176 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
31177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31178/* end confdefs.h. */
31179
31180
31181#undef inline
31182#ifdef HAVE_WINDOWS_H
31183#ifndef WIN32_LEAN_AND_MEAN
31184#define WIN32_LEAN_AND_MEAN
31185#endif
31186#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
31187#undef _WIN32_WINNT
31188#define _WIN32_WINNT 0x0501
31189#endif
31190#include <windows.h>
31191#ifdef HAVE_WINSOCK2_H
31192#include <winsock2.h>
31193#ifdef HAVE_WS2TCPIP_H
31194#include <ws2tcpip.h>
31195#endif
31196#endif
31197#define GNICALLCONV WSAAPI
31198#else
31199#ifdef HAVE_SYS_TYPES_H
31200#include <sys/types.h>
31201#endif
31202#ifdef HAVE_SYS_SOCKET_H
31203#include <sys/socket.h>
31204#endif
31205#ifdef HAVE_NETDB_H
31206#include <netdb.h>
31207#endif
31208#define GNICALLCONV
31209#endif
31210 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
31211 char *, $gni_arg46,
31212 char *, $gni_arg46,
31213 $gni_arg7);
31214
31215int main (void)
31216{
31217
31218 $gni_arg2 salen=0;
31219 $gni_arg46 hostlen=0;
31220 $gni_arg46 servlen=0;
31221 $gni_arg7 flags=0;
31222 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
31223
31224 ;
31225 return 0;
31226}
31227
31228_ACEOF
31229if ac_fn_c_try_compile "$LINENO"; then :
31230
31231 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
31232
31233fi
31234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31235 fi
31236 done
31237 done
31238 done
31239 done
31240
31241fi
31242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
31243$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
31244 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
31245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
31246$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
31248$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
31249 else
31250 gni_prev_IFS=$IFS; IFS=','
31251 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
31252 IFS=$gni_prev_IFS
31253 shift
31254 #
31255 gni_qual_type_arg1=$1
31256 #
31257
31258cat >>confdefs.h <<_ACEOF
31259#define GETNAMEINFO_TYPE_ARG2 $2
31260_ACEOF
31261
31262
31263cat >>confdefs.h <<_ACEOF
31264#define GETNAMEINFO_TYPE_ARG46 $3
31265_ACEOF
31266
31267
31268cat >>confdefs.h <<_ACEOF
31269#define GETNAMEINFO_TYPE_ARG7 $4
31270_ACEOF
31271
31272 #
31273 prev_sh_opts=$-
31274 #
31275 case $prev_sh_opts in
31276 *f*)
31277 ;;
31278 *)
31279 set -f
31280 ;;
31281 esac
31282 #
31283 case "$gni_qual_type_arg1" in
31284 const*)
31285 gni_qual_arg1=const
31286 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
31287 ;;
31288 *)
31289 gni_qual_arg1=
31290 gni_type_arg1=$gni_qual_type_arg1
31291 ;;
31292 esac
31293 #
31294
31295cat >>confdefs.h <<_ACEOF
31296#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
31297_ACEOF
31298
31299
31300cat >>confdefs.h <<_ACEOF
31301#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
31302_ACEOF
31303
31304 #
31305 case $prev_sh_opts in
31306 *f*)
31307 ;;
31308 *)
31309 set +f
31310 ;;
31311 esac
31312 #
31313
31314cat >>confdefs.h <<_ACEOF
31315#define HAVE_GETNAMEINFO 1
31316_ACEOF
31317
31318 ac_cv_func_getnameinfo="yes"
31319 fi
31320 fi
31321
31322
31323
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
31325$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
31326if ${ac_cv_c_bigendian+:} false; then :
31327 $as_echo_n "(cached) " >&6
31328else
31329 ac_cv_c_bigendian=unknown
31330 # See if we're dealing with a universal compiler.
31331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31332/* end confdefs.h. */
31333#ifndef __APPLE_CC__
31334 not a universal capable compiler
31335 #endif
31336 typedef int dummy;
31337
31338_ACEOF
31339if ac_fn_c_try_compile "$LINENO"; then :
31340
31341 # Check for potential -arch flags. It is not universal unless
31342 # there are at least two -arch flags with different values.
31343 ac_arch=
31344 ac_prev=
31345 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
31346 if test -n "$ac_prev"; then
31347 case $ac_word in
31348 i?86 | x86_64 | ppc | ppc64)
31349 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
31350 ac_arch=$ac_word
31351 else
31352 ac_cv_c_bigendian=universal
31353 break
31354 fi
31355 ;;
31356 esac
31357 ac_prev=
31358 elif test "x$ac_word" = "x-arch"; then
31359 ac_prev=arch
31360 fi
31361 done
31362fi
31363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31364 if test $ac_cv_c_bigendian = unknown; then
31365 # See if sys/param.h defines the BYTE_ORDER macro.
31366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31367/* end confdefs.h. */
31368#include <sys/types.h>
31369 #include <sys/param.h>
31370
31371int main (void)
31372{
31373#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
31374 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
31375 && LITTLE_ENDIAN)
31376 bogus endian macros
31377 #endif
31378
31379 ;
31380 return 0;
31381}
31382_ACEOF
31383if ac_fn_c_try_compile "$LINENO"; then :
31384 # It does; now see whether it defined to BIG_ENDIAN or not.
31385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31386/* end confdefs.h. */
31387#include <sys/types.h>
31388 #include <sys/param.h>
31389
31390int main (void)
31391{
31392#if BYTE_ORDER != BIG_ENDIAN
31393 not big endian
31394 #endif
31395
31396 ;
31397 return 0;
31398}
31399_ACEOF
31400if ac_fn_c_try_compile "$LINENO"; then :
31401 ac_cv_c_bigendian=yes
31402else
31403 ac_cv_c_bigendian=no
31404fi
31405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31406fi
31407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31408 fi
31409 if test $ac_cv_c_bigendian = unknown; then
31410 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
31411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31412/* end confdefs.h. */
31413#include <limits.h>
31414
31415int main (void)
31416{
31417#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
31418 bogus endian macros
31419 #endif
31420
31421 ;
31422 return 0;
31423}
31424_ACEOF
31425if ac_fn_c_try_compile "$LINENO"; then :
31426 # It does; now see whether it defined to _BIG_ENDIAN or not.
31427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31428/* end confdefs.h. */
31429#include <limits.h>
31430
31431int main (void)
31432{
31433#ifndef _BIG_ENDIAN
31434 not big endian
31435 #endif
31436
31437 ;
31438 return 0;
31439}
31440_ACEOF
31441if ac_fn_c_try_compile "$LINENO"; then :
31442 ac_cv_c_bigendian=yes
31443else
31444 ac_cv_c_bigendian=no
31445fi
31446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31447fi
31448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31449 fi
31450 if test $ac_cv_c_bigendian = unknown; then
31451 # Compile a test program.
31452 if test "$cross_compiling" = yes; then :
31453 # Try to guess by grepping values from an object file.
31454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31455/* end confdefs.h. */
31456short int ascii_mm[] =
31457 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
31458 short int ascii_ii[] =
31459 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
31460 int use_ascii (int i) {
31461 return ascii_mm[i] + ascii_ii[i];
31462 }
31463 short int ebcdic_ii[] =
31464 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
31465 short int ebcdic_mm[] =
31466 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
31467 int use_ebcdic (int i) {
31468 return ebcdic_mm[i] + ebcdic_ii[i];
31469 }
31470 extern int foo;
31471
31472int main (void)
31473{
31474return use_ascii (foo) == use_ebcdic (foo);
31475 ;
31476 return 0;
31477}
31478_ACEOF
31479if ac_fn_c_try_compile "$LINENO"; then :
31480 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
31481 ac_cv_c_bigendian=yes
31482 fi
31483 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31484 if test "$ac_cv_c_bigendian" = unknown; then
31485 ac_cv_c_bigendian=no
31486 else
31487 # finding both strings is unlikely to happen, but who knows?
31488 ac_cv_c_bigendian=unknown
31489 fi
31490 fi
31491fi
31492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31493else
31494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31495/* end confdefs.h. */
31496$ac_includes_default
31497int main (void)
31498{
31499
31500 /* Are we little or big endian? From Harbison&Steele. */
31501 union
31502 {
31503 long int l;
31504 char c[sizeof (long int)];
31505 } u;
31506 u.l = 1;
31507 return u.c[sizeof (long int) - 1] == 1;
31508
31509 ;
31510 return 0;
31511}
31512_ACEOF
31513if ac_fn_c_try_run "$LINENO"; then :
31514 ac_cv_c_bigendian=no
31515else
31516 ac_cv_c_bigendian=yes
31517fi
31518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31519 conftest.$ac_objext conftest.beam conftest.$ac_ext
31520fi
31521
31522 fi
31523fi
31524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
31525$as_echo "$ac_cv_c_bigendian" >&6; }
31526 case $ac_cv_c_bigendian in #(
31527 yes)
31528
31529$as_echo "#define ARES_BIG_ENDIAN 1" >>confdefs.h
31530;; #(
31531 no)
31532 ;; #(
31533 universal)
31534
31535$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
31536
31537 ;; #(
31538 *)
31539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5
31540$as_echo "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;}
31541 ;;
31542 esac
31543
31544
31545
31546# Check whether --with-random was given.
31547if test "${with_random+set}" = set; then :
31548 withval=$with_random; RANDOM_FILE="$withval"
31549else
31550
31551 if test "$cross_compiling" = "no"; then
31552 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
31553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
31554$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
31555if eval \${$as_ac_File+:} false; then :
31556 $as_echo_n "(cached) " >&6
31557else
31558 test "$cross_compiling" = yes &&
31559 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
31560if test -r ""/dev/urandom""; then
31561 eval "$as_ac_File=yes"
31562else
31563 eval "$as_ac_File=no"
31564fi
31565fi
31566eval ac_res=\$$as_ac_File
31567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31568$as_echo "$ac_res" >&6; }
31569if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
31570 RANDOM_FILE="/dev/urandom"
31571fi
31572
31573 else
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&5
31575$as_echo "$as_me: WARNING: cannot check for /dev/urandom while cross compiling; assuming none" >&2;}
31576 fi
31577
31578
31579
31580fi
31581
31582if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
31583
31584
31585cat >>confdefs.h <<_ACEOF
31586#define RANDOM_FILE "$RANDOM_FILE"
31587_ACEOF
31588
31589fi
31590
31591
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
31593$as_echo_n "checking whether to enable non-blocking communications... " >&6; }
31594 OPT_NONBLOCKING="default"
31595 # Check whether --enable-nonblocking was given.
31596if test "${enable_nonblocking+set}" = set; then :
31597 enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
31598fi
31599
31600 case "$OPT_NONBLOCKING" in
31601 no)
31602 want_nonblocking="no"
31603 ;;
31604 default)
31605 want_nonblocking="yes"
31606 ;;
31607 *)
31608 want_nonblocking="yes"
31609 ;;
31610 esac
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
31612$as_echo "$want_nonblocking" >&6; }
31613
31614
31615 #
31616 tst_method="unknown"
31617 if test "$want_nonblocking" = "yes"; then
31618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
31619$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
31620 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
31621 tst_method="fcntl O_NONBLOCK"
31622 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
31623 tst_method="ioctl FIONBIO"
31624 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
31625 tst_method="ioctlsocket FIONBIO"
31626 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
31627 tst_method="IoctlSocket FIONBIO"
31628 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
31629 tst_method="setsockopt SO_NONBLOCK"
31630 fi
31631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
31632$as_echo "$tst_method" >&6; }
31633 if test "$tst_method" = "unknown"; then
31634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
31635$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
31636 fi
31637 fi
31638 if test "$tst_method" = "unknown"; then
31639
31640cat >>confdefs.h <<_ACEOF
31641#define USE_BLOCKING_SOCKETS 1
31642_ACEOF
31643
31644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
31645$as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
31646 fi
31647
31648
31649
31650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
31651$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
31652 CFLAG_CARES_SYMBOL_HIDING=""
31653 doing_symbol_hiding="no"
31654 if test x"$ac_cv_native_windows" != "xyes" &&
31655 test "$want_symbol_hiding" = "yes" &&
31656 test "$supports_symbol_hiding" = "yes"; then
31657 doing_symbol_hiding="yes"
31658 CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
31659
31660cat >>confdefs.h <<_ACEOF
31661#define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN
31662_ACEOF
31663
31664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31665$as_echo "yes" >&6; }
31666 else
31667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31668$as_echo "no" >&6; }
31669 fi
31670 if test x$doing_symbol_hiding = xyes; then
31671 DOING_CARES_SYMBOL_HIDING_TRUE=
31672 DOING_CARES_SYMBOL_HIDING_FALSE='#'
31673else
31674 DOING_CARES_SYMBOL_HIDING_TRUE='#'
31675 DOING_CARES_SYMBOL_HIDING_FALSE=
31676fi
31677
31678
31679 if test "$doing_symbol_hiding" = "yes"; then
31680
31681cat >>confdefs.h <<_ACEOF
31682#define CARES_SYMBOL_HIDING 1
31683_ACEOF
31684
31685 fi
31686
31687
31688CARES_PRIVATE_LIBS="$LIBS"
31689
31690
31691CARES_CFLAG_EXTRAS=""
31692if test X"$want_werror" = Xyes; then
31693 CARES_CFLAG_EXTRAS="-Werror"
31694fi
31695
31696
31697
31698squeeze CFLAGS
31699squeeze CPPFLAGS
31700squeeze DEFS
31701squeeze LDFLAGS
31702squeeze LIBS
31703
31704squeeze CARES_PRIVATE_LIBS
31705
31706
31707
31708 xc_bad_var_libs=no
31709 for xc_word in $LIBS; do
31710 case "$xc_word" in
31711 -l* | --library=*)
31712 :
31713 ;;
31714 *)
31715 xc_bad_var_libs=yes
31716 ;;
31717 esac
31718 done
31719 if test $xc_bad_var_libs = yes; then
31720 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
31721$as_echo "$as_me: using LIBS: $LIBS" >&6;}
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5
31723$as_echo "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;}
31724 fi
31725
31726
31727 xc_bad_var_ldflags=no
31728 for xc_word in $LDFLAGS; do
31729 case "$xc_word" in
31730 -D*)
31731 xc_bad_var_ldflags=yes
31732 ;;
31733 -U*)
31734 xc_bad_var_ldflags=yes
31735 ;;
31736 -I*)
31737 xc_bad_var_ldflags=yes
31738 ;;
31739 -l* | --library=*)
31740 xc_bad_var_ldflags=yes
31741 ;;
31742 esac
31743 done
31744 if test $xc_bad_var_ldflags = yes; then
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
31746$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
31747 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not"
31748 for xc_word in $LDFLAGS; do
31749 case "$xc_word" in
31750 -D*)
31751 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
31752$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
31753 ;;
31754 -U*)
31755 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
31756$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
31757 ;;
31758 -I*)
31759 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
31760$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
31761 ;;
31762 -l* | --library=*)
31763 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31764$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31765 ;;
31766 esac
31767 done
31768 fi
31769
31770
31771 xc_bad_var_cppflags=no
31772 for xc_word in $CPPFLAGS; do
31773 case "$xc_word" in
31774 -rpath*)
31775 xc_bad_var_cppflags=yes
31776 ;;
31777 -L* | --library-path=*)
31778 xc_bad_var_cppflags=yes
31779 ;;
31780 -l* | --library=*)
31781 xc_bad_var_cppflags=yes
31782 ;;
31783 esac
31784 done
31785 if test $xc_bad_var_cppflags = yes; then
31786 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
31787$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
31788 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not"
31789 for xc_word in $CPPFLAGS; do
31790 case "$xc_word" in
31791 -rpath*)
31792 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
31793$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
31794 ;;
31795 -L* | --library-path=*)
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
31797$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
31798 ;;
31799 -l* | --library=*)
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31801$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31802 ;;
31803 esac
31804 done
31805 fi
31806
31807
31808 xc_bad_var_cflags=no
31809 for xc_word in $CFLAGS; do
31810 case "$xc_word" in
31811 -D*)
31812 xc_bad_var_cflags=yes
31813 ;;
31814 -U*)
31815 xc_bad_var_cflags=yes
31816 ;;
31817 -I*)
31818 xc_bad_var_cflags=yes
31819 ;;
31820 -rpath*)
31821 xc_bad_var_cflags=yes
31822 ;;
31823 -L* | --library-path=*)
31824 xc_bad_var_cflags=yes
31825 ;;
31826 -l* | --library=*)
31827 xc_bad_var_cflags=yes
31828 ;;
31829 esac
31830 done
31831 if test $xc_bad_var_cflags = yes; then
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
31833$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
31834 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not"
31835 for xc_word in $CFLAGS; do
31836 case "$xc_word" in
31837 -D*)
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
31839$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
31840 ;;
31841 -U*)
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
31843$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
31844 ;;
31845 -I*)
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
31847$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
31848 ;;
31849 -rpath*)
31850 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
31851$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
31852 ;;
31853 -L* | --library-path=*)
31854 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
31855$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
31856 ;;
31857 -l* | --library=*)
31858 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
31859$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
31860 ;;
31861 esac
31862 done
31863 fi
31864
31865 if test $xc_bad_var_libs = yes ||
31866 test $xc_bad_var_cflags = yes ||
31867 test $xc_bad_var_ldflags = yes ||
31868 test $xc_bad_var_cppflags = yes; then
31869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
31870$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
31871 fi
31872
31873
31874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5
31875$as_echo_n "checking whether to build tests... " >&6; }
31876# Check whether --enable-tests was given.
31877if test "${enable_tests+set}" = set; then :
31878 enableval=$enable_tests; build_tests="$enableval"
31879else
31880 if test "x$HAVE_CXX11" = "x1" && test "x$cross_compiling" = "xno" ; then
31881 build_tests="yes"
31882 else
31883 build_tests="no"
31884 fi
31885
31886
31887fi
31888
31889
31890if test "x$build_tests" = "xyes" ; then
31891 if test "x$HAVE_CXX11" = "0" ; then
31892 as_fn_error $? "*** Building tests requires a CXX11 compiler" "$LINENO" 5
31893 fi
31894 if test "x$cross_compiling" = "xyes" ; then
31895 as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5
31896 fi
31897fi
31898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5
31899$as_echo "$build_tests" >&6; }
31900
31901if test "x$build_tests" = "xyes" ; then
31902
31903
31904subdirs="$subdirs test"
31905
31906fi
31907
31908ac_config_files="$ac_config_files Makefile libcares.pc"
31909
31910cat >confcache <<\_ACEOF
31911# This file is a shell script that caches the results of configure
31912# tests run on this system so they can be shared between configure
31913# scripts and configure runs, see configure's option --config-cache.
31914# It is not useful on other systems. If it contains results you don't
31915# want to keep, you may remove or edit it.
31916#
31917# config.status only pays attention to the cache file if you give it
31918# the --recheck option to rerun configure.
31919#
31920# `ac_cv_env_foo' variables (set or unset) will be overridden when
31921# loading this file, other *unset* `ac_cv_foo' will be assigned the
31922# following values.
31923
31924_ACEOF
31925
31926# The following way of writing the cache mishandles newlines in values,
31927# but we know of no workaround that is simple, portable, and efficient.
31928# So, we kill variables containing newlines.
31929# Ultrix sh set writes to stderr and can't be redirected directly,
31930# and sets the high bit in the cache file unless we assign to the vars.
31931(
31932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31933 eval ac_val=\$$ac_var
31934 case $ac_val in #(
31935 *${as_nl}*)
31936 case $ac_var in #(
31937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31938$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31939 esac
31940 case $ac_var in #(
31941 _ | IFS | as_nl) ;; #(
31942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31943 *) { eval $ac_var=; unset $ac_var;} ;;
31944 esac ;;
31945 esac
31946 done
31947
31948 (set) 2>&1 |
31949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31950 *${as_nl}ac_space=\ *)
31951 # `set' does not quote correctly, so add quotes: double-quote
31952 # substitution turns \\\\ into \\, and sed turns \\ into \.
31953 sed -n \
31954 "s/'/'\\\\''/g;
31955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31956 ;; #(
31957 *)
31958 # `set' quotes correctly as required by POSIX, so do not add quotes.
31959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31960 ;;
31961 esac |
31962 sort
31963) |
31964 sed '
31965 /^ac_cv_env_/b end
31966 t clear
31967 :clear
31968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31969 t end
31970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31971 :end' >>confcache
31972if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31973 if test -w "$cache_file"; then
31974 if test "x$cache_file" != "x/dev/null"; then
31975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31976$as_echo "$as_me: updating cache $cache_file" >&6;}
31977 if test ! -f "$cache_file" || test -h "$cache_file"; then
31978 cat confcache >"$cache_file"
31979 else
31980 case $cache_file in #(
31981 */* | ?:*)
31982 mv -f confcache "$cache_file"$$ &&
31983 mv -f "$cache_file"$$ "$cache_file" ;; #(
31984 *)
31985 mv -f confcache "$cache_file" ;;
31986 esac
31987 fi
31988 fi
31989 else
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31991$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31992 fi
31993fi
31994rm -f confcache
31995
31996test "x$prefix" = xNONE && prefix=$ac_default_prefix
31997# Let make expand exec_prefix.
31998test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31999
32000DEFS=-DHAVE_CONFIG_H
32001
32002ac_libobjs=
32003ac_ltlibobjs=
32004U=
32005for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32006 # 1. Remove the extension, and $U if already installed.
32007 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32008 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32009 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32010 # will be set to the directory where LIBOBJS objects are built.
32011 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32012 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32013done
32014LIBOBJS=$ac_libobjs
32015
32016LTLIBOBJS=$ac_ltlibobjs
32017
32018
32019if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32020 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
32021Usually this means the macro was only invoked conditionally." "$LINENO" 5
32022fi
32023if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
32024 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
32025Usually this means the macro was only invoked conditionally." "$LINENO" 5
32026fi
32027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32028$as_echo_n "checking that generated files are newer than configure... " >&6; }
32029 if test -n "$am_sleep_pid"; then
32030 # Hide warnings about reused PIDs.
32031 wait $am_sleep_pid 2>/dev/null
32032 fi
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
32034$as_echo "done" >&6; }
32035if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32036 as_fn_error $? "conditional \"AMDEP\" was never defined.
32037Usually this means the macro was only invoked conditionally." "$LINENO" 5
32038fi
32039if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32040 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32041Usually this means the macro was only invoked conditionally." "$LINENO" 5
32042fi
32043if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32044 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32045Usually this means the macro was only invoked conditionally." "$LINENO" 5
32046fi
32047 if test -n "$EXEEXT"; then
32048 am__EXEEXT_TRUE=
32049 am__EXEEXT_FALSE='#'
32050else
32051 am__EXEEXT_TRUE='#'
32052 am__EXEEXT_FALSE=
32053fi
32054
32055if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
32056 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined.
32057Usually this means the macro was only invoked conditionally." "$LINENO" 5
32058fi
32059if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
32060 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
32061Usually this means the macro was only invoked conditionally." "$LINENO" 5
32062fi
32063if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
32064 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
32065Usually this means the macro was only invoked conditionally." "$LINENO" 5
32066fi
32067if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then
32068 as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined.
32069Usually this means the macro was only invoked conditionally." "$LINENO" 5
32070fi
32071if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
32072 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
32073Usually this means the macro was only invoked conditionally." "$LINENO" 5
32074fi
32075if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
32076 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
32077Usually this means the macro was only invoked conditionally." "$LINENO" 5
32078fi
32079
32080if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then
32081 as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined.
32082Usually this means the macro was only invoked conditionally." "$LINENO" 5
32083fi
32084
32085: "${CONFIG_STATUS=./config.status}"
32086ac_write_fail=0
32087ac_clean_files_save=$ac_clean_files
32088ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32089{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32090$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32091as_write_fail=0
32092cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32093#! $SHELL
32094# Generated by $as_me.
32095# Run this file to recreate the current configuration.
32096# Compiler output produced by configure, useful for debugging
32097# configure, is in config.log if it exists.
32098
32099debug=false
32100ac_cs_recheck=false
32101ac_cs_silent=false
32102
32103SHELL=\${CONFIG_SHELL-$SHELL}
32104export SHELL
32105_ASEOF
32106cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32107## -------------------- ##
32108## M4sh Initialization. ##
32109## -------------------- ##
32110
32111# Be more Bourne compatible
32112DUALCASE=1; export DUALCASE # for MKS sh
32113if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32114 emulate sh
32115 NULLCMD=:
32116 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32117 # is contrary to our usage. Disable this feature.
32118 alias -g '${1+"$@"}'='"$@"'
32119 setopt NO_GLOB_SUBST
32120else
32121 case `(set -o) 2>/dev/null` in #(
32122 *posix*) :
32123 set -o posix ;; #(
32124 *) :
32125 ;;
32126esac
32127fi
32128
32129
32130as_nl='
32131'
32132export as_nl
32133# Printing a long string crashes Solaris 7 /usr/bin/printf.
32134as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32135as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32136as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32137# Prefer a ksh shell builtin over an external printf program on Solaris,
32138# but without wasting forks for bash or zsh.
32139if test -z "$BASH_VERSION$ZSH_VERSION" \
32140 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32141 as_echo='print -r --'
32142 as_echo_n='print -rn --'
32143elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32144 as_echo='printf %s\n'
32145 as_echo_n='printf %s'
32146else
32147 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32148 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32149 as_echo_n='/usr/ucb/echo -n'
32150 else
32151 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32152 as_echo_n_body='eval
32153 arg=$1;
32154 case $arg in #(
32155 *"$as_nl"*)
32156 expr "X$arg" : "X\\(.*\\)$as_nl";
32157 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32158 esac;
32159 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32160 '
32161 export as_echo_n_body
32162 as_echo_n='sh -c $as_echo_n_body as_echo'
32163 fi
32164 export as_echo_body
32165 as_echo='sh -c $as_echo_body as_echo'
32166fi
32167
32168
32169
32170# IFS
32171# We need space, tab and new line, in precisely that order. Quoting is
32172# there to prevent editors from complaining about space-tab.
32173# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32174# splitting by setting IFS to empty value.)
32175IFS=" "" $as_nl"
32176
32177# Find who we are. Look in the path if we contain no directory separator.
32178as_myself=
32179case $0 in #((
32180 *[\\/]* ) as_myself=$0 ;;
32181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32182for as_dir in $PATH
32183do
32184 IFS=$as_save_IFS
32185 test -z "$as_dir" && as_dir=.
32186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32187 done
32188IFS=$as_save_IFS
32189
32190 ;;
32191esac
32192# We did not find ourselves, most probably we were run as `sh COMMAND'
32193# in which case we are not to be found in the path.
32194if test "x$as_myself" = x; then
32195 as_myself=$0
32196fi
32197if test ! -f "$as_myself"; then
32198 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32199 exit 1
32200fi
32201
32202# Unset variables that we do not need and which cause bugs (e.g. in
32203# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32204# suppresses any "Segmentation fault" message there. '((' could
32205# trigger a bug in pdksh 5.2.14.
32206for as_var in BASH_ENV ENV MAIL MAILPATH
32207do eval test x\${$as_var+set} = xset \
32208 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32209done
32210PS1='$ '
32211PS2='> '
32212PS4='+ '
32213
32214# NLS nuisances.
32215LC_ALL=C
32216export LC_ALL
32217LANGUAGE=C
32218export LANGUAGE
32219
32220# CDPATH.
32221(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32222
32223
32224# as_fn_error STATUS ERROR [LINENO LOG_FD]
32225# ----------------------------------------
32226# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32227# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32228# script with STATUS, using 1 if that was 0.
32229as_fn_error ()
32230{
32231 as_status=$1; test $as_status -eq 0 && as_status=1
32232 if test "$4"; then
32233 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32234 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32235 fi
32236 $as_echo "$as_me: error: $2" >&2
32237 as_fn_exit $as_status
32238} # as_fn_error
32239
32240
32241# as_fn_set_status STATUS
32242# -----------------------
32243# Set $? to STATUS, without forking.
32244as_fn_set_status ()
32245{
32246 return $1
32247} # as_fn_set_status
32248
32249# as_fn_exit STATUS
32250# -----------------
32251# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32252as_fn_exit ()
32253{
32254 set +e
32255 as_fn_set_status $1
32256 exit $1
32257} # as_fn_exit
32258
32259# as_fn_unset VAR
32260# ---------------
32261# Portably unset VAR.
32262as_fn_unset ()
32263{
32264 { eval $1=; unset $1;}
32265}
32266as_unset=as_fn_unset
32267# as_fn_append VAR VALUE
32268# ----------------------
32269# Append the text in VALUE to the end of the definition contained in VAR. Take
32270# advantage of any shell optimizations that allow amortized linear growth over
32271# repeated appends, instead of the typical quadratic growth present in naive
32272# implementations.
32273if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32274 eval 'as_fn_append ()
32275 {
32276 eval $1+=\$2
32277 }'
32278else
32279 as_fn_append ()
32280 {
32281 eval $1=\$$1\$2
32282 }
32283fi # as_fn_append
32284
32285# as_fn_arith ARG...
32286# ------------------
32287# Perform arithmetic evaluation on the ARGs, and store the result in the
32288# global $as_val. Take advantage of shells that can avoid forks. The arguments
32289# must be portable across $(()) and expr.
32290if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32291 eval 'as_fn_arith ()
32292 {
32293 as_val=$(( $* ))
32294 }'
32295else
32296 as_fn_arith ()
32297 {
32298 as_val=`expr "$@" || test $? -eq 1`
32299 }
32300fi # as_fn_arith
32301
32302
32303if expr a : '\(a\)' >/dev/null 2>&1 &&
32304 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32305 as_expr=expr
32306else
32307 as_expr=false
32308fi
32309
32310if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32311 as_basename=basename
32312else
32313 as_basename=false
32314fi
32315
32316if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32317 as_dirname=dirname
32318else
32319 as_dirname=false
32320fi
32321
32322as_me=`$as_basename -- "$0" ||
32323$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32324 X"$0" : 'X\(//\)$' \| \
32325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32326$as_echo X/"$0" |
32327 sed '/^.*\/\([^/][^/]*\)\/*$/{
32328 s//\1/
32329 q
32330 }
32331 /^X\/\(\/\/\)$/{
32332 s//\1/
32333 q
32334 }
32335 /^X\/\(\/\).*/{
32336 s//\1/
32337 q
32338 }
32339 s/.*/./; q'`
32340
32341# Avoid depending upon Character Ranges.
32342as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32343as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32344as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32345as_cr_digits='0123456789'
32346as_cr_alnum=$as_cr_Letters$as_cr_digits
32347
32348ECHO_C= ECHO_N= ECHO_T=
32349case `echo -n x` in #(((((
32350-n*)
32351 case `echo 'xy\c'` in
32352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32353 xy) ECHO_C='\c';;
32354 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32355 ECHO_T=' ';;
32356 esac;;
32357*)
32358 ECHO_N='-n';;
32359esac
32360
32361rm -f conf$$ conf$$.exe conf$$.file
32362if test -d conf$$.dir; then
32363 rm -f conf$$.dir/conf$$.file
32364else
32365 rm -f conf$$.dir
32366 mkdir conf$$.dir 2>/dev/null
32367fi
32368if (echo >conf$$.file) 2>/dev/null; then
32369 if ln -s conf$$.file conf$$ 2>/dev/null; then
32370 as_ln_s='ln -s'
32371 # ... but there are two gotchas:
32372 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32373 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32374 # In both cases, we have to default to `cp -pR'.
32375 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32376 as_ln_s='cp -pR'
32377 elif ln conf$$.file conf$$ 2>/dev/null; then
32378 as_ln_s=ln
32379 else
32380 as_ln_s='cp -pR'
32381 fi
32382else
32383 as_ln_s='cp -pR'
32384fi
32385rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32386rmdir conf$$.dir 2>/dev/null
32387
32388
32389# as_fn_mkdir_p
32390# -------------
32391# Create "$as_dir" as a directory, including parents if necessary.
32392as_fn_mkdir_p ()
32393{
32394
32395 case $as_dir in #(
32396 -*) as_dir=./$as_dir;;
32397 esac
32398 test -d "$as_dir" || eval $as_mkdir_p || {
32399 as_dirs=
32400 while :; do
32401 case $as_dir in #(
32402 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32403 *) as_qdir=$as_dir;;
32404 esac
32405 as_dirs="'$as_qdir' $as_dirs"
32406 as_dir=`$as_dirname -- "$as_dir" ||
32407$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32408 X"$as_dir" : 'X\(//\)[^/]' \| \
32409 X"$as_dir" : 'X\(//\)$' \| \
32410 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32411$as_echo X"$as_dir" |
32412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32413 s//\1/
32414 q
32415 }
32416 /^X\(\/\/\)[^/].*/{
32417 s//\1/
32418 q
32419 }
32420 /^X\(\/\/\)$/{
32421 s//\1/
32422 q
32423 }
32424 /^X\(\/\).*/{
32425 s//\1/
32426 q
32427 }
32428 s/.*/./; q'`
32429 test -d "$as_dir" && break
32430 done
32431 test -z "$as_dirs" || eval "mkdir $as_dirs"
32432 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32433
32434
32435} # as_fn_mkdir_p
32436if mkdir -p . 2>/dev/null; then
32437 as_mkdir_p='mkdir -p "$as_dir"'
32438else
32439 test -d ./-p && rmdir ./-p
32440 as_mkdir_p=false
32441fi
32442
32443
32444# as_fn_executable_p FILE
32445# -----------------------
32446# Test if FILE is an executable regular file.
32447as_fn_executable_p ()
32448{
32449 test -f "$1" && test -x "$1"
32450} # as_fn_executable_p
32451as_test_x='test -x'
32452as_executable_p=as_fn_executable_p
32453
32454# Sed expression to map a string onto a valid CPP name.
32455as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32456
32457# Sed expression to map a string onto a valid variable name.
32458as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32459
32460
32461exec 6>&1
32462## ----------------------------------- ##
32463## Main body of $CONFIG_STATUS script. ##
32464## ----------------------------------- ##
32465_ASEOF
32466test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32467
32468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32469# Save the log message, to keep $0 and so on meaningful, and to
32470# report actual input values of CONFIG_FILES etc. instead of their
32471# values after options handling.
32472ac_log="
32473This file was extended by c-ares $as_me 1.12.0, which was
32474generated by GNU Autoconf 2.69. Invocation command line was
32475
32476 CONFIG_FILES = $CONFIG_FILES
32477 CONFIG_HEADERS = $CONFIG_HEADERS
32478 CONFIG_LINKS = $CONFIG_LINKS
32479 CONFIG_COMMANDS = $CONFIG_COMMANDS
32480 $ $0 $@
32481
32482on `(hostname || uname -n) 2>/dev/null | sed 1q`
32483"
32484
32485_ACEOF
32486
32487case $ac_config_files in *"
32488"*) set x $ac_config_files; shift; ac_config_files=$*;;
32489esac
32490
32491case $ac_config_headers in *"
32492"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32493esac
32494
32495
32496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32497# Files that config.status was made for.
32498config_files="$ac_config_files"
32499config_headers="$ac_config_headers"
32500config_commands="$ac_config_commands"
32501
32502_ACEOF
32503
32504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32505ac_cs_usage="\
32506\`$as_me' instantiates files and other configuration actions
32507from templates according to the current configuration. Unless the files
32508and actions are specified as TAGs, all are instantiated by default.
32509
32510Usage: $0 [OPTION]... [TAG]...
32511
32512 -h, --help print this help, then exit
32513 -V, --version print version number and configuration settings, then exit
32514 --config print configuration, then exit
32515 -q, --quiet, --silent
32516 do not print progress messages
32517 -d, --debug don't remove temporary files
32518 --recheck update $as_me by reconfiguring in the same conditions
32519 --file=FILE[:TEMPLATE]
32520 instantiate the configuration file FILE
32521 --header=FILE[:TEMPLATE]
32522 instantiate the configuration header FILE
32523
32524Configuration files:
32525$config_files
32526
32527Configuration headers:
32528$config_headers
32529
32530Configuration commands:
32531$config_commands
32532
32533Report bugs to <c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares>."
32534
32535_ACEOF
32536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32537ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32538ac_cs_version="\\
32539c-ares config.status 1.12.0
32540configured by $0, generated by GNU Autoconf 2.69,
32541 with options \\"\$ac_cs_config\\"
32542
32543Copyright (C) 2012 Free Software Foundation, Inc.
32544This config.status script is free software; the Free Software Foundation
32545gives unlimited permission to copy, distribute and modify it."
32546
32547ac_pwd='$ac_pwd'
32548srcdir='$srcdir'
32549INSTALL='$INSTALL'
32550MKDIR_P='$MKDIR_P'
32551AWK='$AWK'
32552test -n "\$AWK" || AWK=awk
32553_ACEOF
32554
32555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32556# The default lists apply if the user does not specify any file.
32557ac_need_defaults=:
32558while test $# != 0
32559do
32560 case $1 in
32561 --*=?*)
32562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32564 ac_shift=:
32565 ;;
32566 --*=)
32567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32568 ac_optarg=
32569 ac_shift=:
32570 ;;
32571 *)
32572 ac_option=$1
32573 ac_optarg=$2
32574 ac_shift=shift
32575 ;;
32576 esac
32577
32578 case $ac_option in
32579 # Handling of the options.
32580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32581 ac_cs_recheck=: ;;
32582 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32583 $as_echo "$ac_cs_version"; exit ;;
32584 --config | --confi | --conf | --con | --co | --c )
32585 $as_echo "$ac_cs_config"; exit ;;
32586 --debug | --debu | --deb | --de | --d | -d )
32587 debug=: ;;
32588 --file | --fil | --fi | --f )
32589 $ac_shift
32590 case $ac_optarg in
32591 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32592 '') as_fn_error $? "missing file argument" ;;
32593 esac
32594 as_fn_append CONFIG_FILES " '$ac_optarg'"
32595 ac_need_defaults=false;;
32596 --header | --heade | --head | --hea )
32597 $ac_shift
32598 case $ac_optarg in
32599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32600 esac
32601 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32602 ac_need_defaults=false;;
32603 --he | --h)
32604 # Conflict between --help and --header
32605 as_fn_error $? "ambiguous option: \`$1'
32606Try \`$0 --help' for more information.";;
32607 --help | --hel | -h )
32608 $as_echo "$ac_cs_usage"; exit ;;
32609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32611 ac_cs_silent=: ;;
32612
32613 # This is an error.
32614 -*) as_fn_error $? "unrecognized option: \`$1'
32615Try \`$0 --help' for more information." ;;
32616
32617 *) as_fn_append ac_config_targets " $1"
32618 ac_need_defaults=false ;;
32619
32620 esac
32621 shift
32622done
32623
32624ac_configure_extra_args=
32625
32626if $ac_cs_silent; then
32627 exec 6>/dev/null
32628 ac_configure_extra_args="$ac_configure_extra_args --silent"
32629fi
32630
32631_ACEOF
32632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32633if \$ac_cs_recheck; then
32634 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32635 shift
32636 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32637 CONFIG_SHELL='$SHELL'
32638 export CONFIG_SHELL
32639 exec "\$@"
32640fi
32641
32642_ACEOF
32643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32644exec 5>>config.log
32645{
32646 echo
32647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32648## Running $as_me. ##
32649_ASBOX
32650 $as_echo "$ac_log"
32651} >&5
32652
32653_ACEOF
32654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32655#
32656# INIT-COMMANDS
32657#
32658AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32659
32660
32661# The HP-UX ksh and POSIX shell print the target directory to stdout
32662# if CDPATH is set.
32663(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32664
32665sed_quote_subst='$sed_quote_subst'
32666double_quote_subst='$double_quote_subst'
32667delay_variable_subst='$delay_variable_subst'
32668macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32669macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32670AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
32671DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
32672OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32673enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32674enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32675pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32676enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32677shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
32678SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32679ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32680PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
32681host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32682host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32683host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32684build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32685build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32686build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32687SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32688Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32689GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32690EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32691FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32692LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32693NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32694LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32695max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32696ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32697exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32698lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32699lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32700lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32701lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
32702lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
32703reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32704reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32705deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32706file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32707file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
32708want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
32709sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
32710AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32711AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32712archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
32713STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32714RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32715old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32716old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32717old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32718lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32719CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32720CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32721compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32722GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32723lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32724lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32725lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
32726lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32727lt_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"`'
32728lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
32729nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
32730lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
32731lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
32732objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32733MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32734lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32735lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32736lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32737lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32738lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32739need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32740MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
32741DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32742NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32743LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32744OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32745OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32746libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32747shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32748extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32749archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32750enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32751export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32752whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32753compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32754old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32755old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32756archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32757archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32758module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32759module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32760with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32761allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32762no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32763hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32764hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32765hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32766hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32767hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32768hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32769hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32770inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32771link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32772always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32773export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32774exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32775include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32776prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32777postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32778file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32779variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32780need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32781need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32782version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32783runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32784shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32785shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32786libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32787library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32788soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32789install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32790postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32791postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32792finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32793finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32794hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32795sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32796configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
32797configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
32798hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32799enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32800enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32801enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32802old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32803striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32804compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32805predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32806postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32807predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32808postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32809compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32810LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32811reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32812reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32813old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32814compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32815GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32816lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32817lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32818lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32819lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32820lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32821archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32822enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32823export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32824whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32825compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32826old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32827old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32828archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32829archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32830module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32831module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32832with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32833allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32834no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32835hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32836hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32837hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32838hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32839hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32840hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32841hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32842inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32843link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32844always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32845export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32846exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32847include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32848prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32849postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32850file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32851hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32852compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32853predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32854postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32855predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32856postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32857compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32858
32859LTCC='$LTCC'
32860LTCFLAGS='$LTCFLAGS'
32861compiler='$compiler_DEFAULT'
32862
32863# A function that is used when there is no print builtin or printf.
32864func_fallback_echo ()
32865{
32866 eval 'cat <<_LTECHO_EOF
32867\$1
32868_LTECHO_EOF'
32869}
32870
32871# Quote evaled strings.
32872for var in AS \
32873DLLTOOL \
32874OBJDUMP \
32875SHELL \
32876ECHO \
32877PATH_SEPARATOR \
32878SED \
32879GREP \
32880EGREP \
32881FGREP \
32882LD \
32883NM \
32884LN_S \
32885lt_SP2NL \
32886lt_NL2SP \
32887reload_flag \
32888deplibs_check_method \
32889file_magic_cmd \
32890file_magic_glob \
32891want_nocaseglob \
32892sharedlib_from_linklib_cmd \
32893AR \
32894AR_FLAGS \
32895archiver_list_spec \
32896STRIP \
32897RANLIB \
32898CC \
32899CFLAGS \
32900compiler \
32901lt_cv_sys_global_symbol_pipe \
32902lt_cv_sys_global_symbol_to_cdecl \
32903lt_cv_sys_global_symbol_to_import \
32904lt_cv_sys_global_symbol_to_c_name_address \
32905lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32906lt_cv_nm_interface \
32907nm_file_list_spec \
32908lt_cv_truncate_bin \
32909lt_prog_compiler_no_builtin_flag \
32910lt_prog_compiler_pic \
32911lt_prog_compiler_wl \
32912lt_prog_compiler_static \
32913lt_cv_prog_compiler_c_o \
32914need_locks \
32915MANIFEST_TOOL \
32916DSYMUTIL \
32917NMEDIT \
32918LIPO \
32919OTOOL \
32920OTOOL64 \
32921shrext_cmds \
32922export_dynamic_flag_spec \
32923whole_archive_flag_spec \
32924compiler_needs_object \
32925with_gnu_ld \
32926allow_undefined_flag \
32927no_undefined_flag \
32928hardcode_libdir_flag_spec \
32929hardcode_libdir_separator \
32930exclude_expsyms \
32931include_expsyms \
32932file_list_spec \
32933variables_saved_for_relink \
32934libname_spec \
32935library_names_spec \
32936soname_spec \
32937install_override_mode \
32938finish_eval \
32939old_striplib \
32940striplib \
32941compiler_lib_search_dirs \
32942predep_objects \
32943postdep_objects \
32944predeps \
32945postdeps \
32946compiler_lib_search_path \
32947LD_CXX \
32948reload_flag_CXX \
32949compiler_CXX \
32950lt_prog_compiler_no_builtin_flag_CXX \
32951lt_prog_compiler_pic_CXX \
32952lt_prog_compiler_wl_CXX \
32953lt_prog_compiler_static_CXX \
32954lt_cv_prog_compiler_c_o_CXX \
32955export_dynamic_flag_spec_CXX \
32956whole_archive_flag_spec_CXX \
32957compiler_needs_object_CXX \
32958with_gnu_ld_CXX \
32959allow_undefined_flag_CXX \
32960no_undefined_flag_CXX \
32961hardcode_libdir_flag_spec_CXX \
32962hardcode_libdir_separator_CXX \
32963exclude_expsyms_CXX \
32964include_expsyms_CXX \
32965file_list_spec_CXX \
32966compiler_lib_search_dirs_CXX \
32967predep_objects_CXX \
32968postdep_objects_CXX \
32969predeps_CXX \
32970postdeps_CXX \
32971compiler_lib_search_path_CXX; do
32972 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32973 *[\\\\\\\`\\"\\\$]*)
32974 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
32975 ;;
32976 *)
32977 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32978 ;;
32979 esac
32980done
32981
32982# Double-quote double-evaled strings.
32983for var in reload_cmds \
32984old_postinstall_cmds \
32985old_postuninstall_cmds \
32986old_archive_cmds \
32987extract_expsyms_cmds \
32988old_archive_from_new_cmds \
32989old_archive_from_expsyms_cmds \
32990archive_cmds \
32991archive_expsym_cmds \
32992module_cmds \
32993module_expsym_cmds \
32994export_symbols_cmds \
32995prelink_cmds \
32996postlink_cmds \
32997postinstall_cmds \
32998postuninstall_cmds \
32999finish_cmds \
33000sys_lib_search_path_spec \
33001configure_time_dlsearch_path \
33002configure_time_lt_sys_library_path \
33003reload_cmds_CXX \
33004old_archive_cmds_CXX \
33005old_archive_from_new_cmds_CXX \
33006old_archive_from_expsyms_cmds_CXX \
33007archive_cmds_CXX \
33008archive_expsym_cmds_CXX \
33009module_cmds_CXX \
33010module_expsym_cmds_CXX \
33011export_symbols_cmds_CXX \
33012prelink_cmds_CXX \
33013postlink_cmds_CXX; do
33014 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33015 *[\\\\\\\`\\"\\\$]*)
33016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33017 ;;
33018 *)
33019 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33020 ;;
33021 esac
33022done
33023
33024ac_aux_dir='$ac_aux_dir'
33025
33026# See if we are running on zsh, and set the options that allow our
33027# commands through without removal of \ escapes INIT.
33028if test -n "\${ZSH_VERSION+set}"; then
33029 setopt NO_GLOB_SUBST
33030fi
33031
33032
33033 PACKAGE='$PACKAGE'
33034 VERSION='$VERSION'
33035 RM='$RM'
33036 ofile='$ofile'
33037
33038
33039
33040
33041
33042
33043_ACEOF
33044
33045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33046
33047# Handling of arguments.
33048for ac_config_target in $ac_config_targets
33049do
33050 case $ac_config_target in
33051 "ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_config.h" ;;
33052 "ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS ares_build.h" ;;
33053 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33054 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33055 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33056 "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;;
33057
33058 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33059 esac
33060done
33061
33062
33063# If the user did not use the arguments to specify the items to instantiate,
33064# then the envvar interface is used. Set only those that are not.
33065# We use the long form for the default assignment because of an extremely
33066# bizarre bug on SunOS 4.1.3.
33067if $ac_need_defaults; then
33068 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33069 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33070 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33071fi
33072
33073# Have a temporary directory for convenience. Make it in the build tree
33074# simply because there is no reason against having it here, and in addition,
33075# creating and moving files from /tmp can sometimes cause problems.
33076# Hook for its removal unless debugging.
33077# Note that there is a small window in which the directory will not be cleaned:
33078# after its creation but before its name has been assigned to `$tmp'.
33079$debug ||
33080{
33081 tmp= ac_tmp=
33082 trap 'exit_status=$?
33083 : "${ac_tmp:=$tmp}"
33084 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33085' 0
33086 trap 'as_fn_exit 1' 1 2 13 15
33087}
33088# Create a (secure) tmp directory for tmp files.
33089
33090{
33091 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33092 test -d "$tmp"
33093} ||
33094{
33095 tmp=./conf$$-$RANDOM
33096 (umask 077 && mkdir "$tmp")
33097} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33098ac_tmp=$tmp
33099
33100# Set up the scripts for CONFIG_FILES section.
33101# No need to generate them if there are no CONFIG_FILES.
33102# This happens for instance with `./config.status config.h'.
33103if test -n "$CONFIG_FILES"; then
33104
33105
33106ac_cr=`echo X | tr X '\015'`
33107# On cygwin, bash can eat \r inside `` if the user requested igncr.
33108# But we know of no other shell where ac_cr would be empty at this
33109# point, so we can use a bashism as a fallback.
33110if test "x$ac_cr" = x; then
33111 eval ac_cr=\$\'\\r\'
33112fi
33113ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33114if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33115 ac_cs_awk_cr='\\r'
33116else
33117 ac_cs_awk_cr=$ac_cr
33118fi
33119
33120echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33121_ACEOF
33122
33123
33124{
33125 echo "cat >conf$$subs.awk <<_ACEOF" &&
33126 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33127 echo "_ACEOF"
33128} >conf$$subs.sh ||
33129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33130ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33131ac_delim='%!_!# '
33132for ac_last_try in false false false false false :; do
33133 . ./conf$$subs.sh ||
33134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33135
33136 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33137 if test $ac_delim_n = $ac_delim_num; then
33138 break
33139 elif $ac_last_try; then
33140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33141 else
33142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33143 fi
33144done
33145rm -f conf$$subs.sh
33146
33147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33148cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33149_ACEOF
33150sed -n '
33151h
33152s/^/S["/; s/!.*/"]=/
33153p
33154g
33155s/^[^!]*!//
33156:repl
33157t repl
33158s/'"$ac_delim"'$//
33159t delim
33160:nl
33161h
33162s/\(.\{148\}\)..*/\1/
33163t more1
33164s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33165p
33166n
33167b repl
33168:more1
33169s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33170p
33171g
33172s/.\{148\}//
33173t nl
33174:delim
33175h
33176s/\(.\{148\}\)..*/\1/
33177t more2
33178s/["\\]/\\&/g; s/^/"/; s/$/"/
33179p
33180b
33181:more2
33182s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33183p
33184g
33185s/.\{148\}//
33186t delim
33187' <conf$$subs.awk | sed '
33188/^[^""]/{
33189 N
33190 s/\n//
33191}
33192' >>$CONFIG_STATUS || ac_write_fail=1
33193rm -f conf$$subs.awk
33194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33195_ACAWK
33196cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33197 for (key in S) S_is_set[key] = 1
33198 FS = ""
33199
33200}
33201{
33202 line = $ 0
33203 nfields = split(line, field, "@")
33204 substed = 0
33205 len = length(field[1])
33206 for (i = 2; i < nfields; i++) {
33207 key = field[i]
33208 keylen = length(key)
33209 if (S_is_set[key]) {
33210 value = S[key]
33211 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33212 len += length(value) + length(field[++i])
33213 substed = 1
33214 } else
33215 len += 1 + keylen
33216 }
33217
33218 print line
33219}
33220
33221_ACAWK
33222_ACEOF
33223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33224if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33225 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33226else
33227 cat
33228fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33229 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33230_ACEOF
33231
33232# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33233# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33234# trailing colons and then remove the whole line if VPATH becomes empty
33235# (actually we leave an empty line to preserve line numbers).
33236if test "x$srcdir" = x.; then
33237 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33238h
33239s///
33240s/^/:/
33241s/[ ]*$/:/
33242s/:\$(srcdir):/:/g
33243s/:\${srcdir}:/:/g
33244s/:@srcdir@:/:/g
33245s/^:*//
33246s/:*$//
33247x
33248s/\(=[ ]*\).*/\1/
33249G
33250s/\n//
33251s/^[^=]*=[ ]*$//
33252}'
33253fi
33254
33255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33256fi # test -n "$CONFIG_FILES"
33257
33258# Set up the scripts for CONFIG_HEADERS section.
33259# No need to generate them if there are no CONFIG_HEADERS.
33260# This happens for instance with `./config.status Makefile'.
33261if test -n "$CONFIG_HEADERS"; then
33262cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33263BEGIN {
33264_ACEOF
33265
33266# Transform confdefs.h into an awk script `defines.awk', embedded as
33267# here-document in config.status, that substitutes the proper values into
33268# config.h.in to produce config.h.
33269
33270# Create a delimiter string that does not exist in confdefs.h, to ease
33271# handling of long lines.
33272ac_delim='%!_!# '
33273for ac_last_try in false false :; do
33274 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33275 if test -z "$ac_tt"; then
33276 break
33277 elif $ac_last_try; then
33278 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33279 else
33280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33281 fi
33282done
33283
33284# For the awk script, D is an array of macro values keyed by name,
33285# likewise P contains macro parameters if any. Preserve backslash
33286# newline sequences.
33287
33288ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33289sed -n '
33290s/.\{148\}/&'"$ac_delim"'/g
33291t rset
33292:rset
33293s/^[ ]*#[ ]*define[ ][ ]*/ /
33294t def
33295d
33296:def
33297s/\\$//
33298t bsnl
33299s/["\\]/\\&/g
33300s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33301D["\1"]=" \3"/p
33302s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33303d
33304:bsnl
33305s/["\\]/\\&/g
33306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33307D["\1"]=" \3\\\\\\n"\\/p
33308t cont
33309s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33310t cont
33311d
33312:cont
33313n
33314s/.\{148\}/&'"$ac_delim"'/g
33315t clear
33316:clear
33317s/\\$//
33318t bsnlc
33319s/["\\]/\\&/g; s/^/"/; s/$/"/p
33320d
33321:bsnlc
33322s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33323b cont
33324' <confdefs.h | sed '
33325s/'"$ac_delim"'/"\\\
33326"/g' >>$CONFIG_STATUS || ac_write_fail=1
33327
33328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33329 for (key in D) D_is_set[key] = 1
33330 FS = ""
33331}
33332/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33333 line = \$ 0
33334 split(line, arg, " ")
33335 if (arg[1] == "#") {
33336 defundef = arg[2]
33337 mac1 = arg[3]
33338 } else {
33339 defundef = substr(arg[1], 2)
33340 mac1 = arg[2]
33341 }
33342 split(mac1, mac2, "(") #)
33343 macro = mac2[1]
33344 prefix = substr(line, 1, index(line, defundef) - 1)
33345 if (D_is_set[macro]) {
33346 # Preserve the white space surrounding the "#".
33347 print prefix "define", macro P[macro] D[macro]
33348 next
33349 } else {
33350 # Replace #undef with comments. This is necessary, for example,
33351 # in the case of _POSIX_SOURCE, which is predefined and required
33352 # on some systems where configure will not decide to define it.
33353 if (defundef == "undef") {
33354 print "/*", prefix defundef, macro, "*/"
33355 next
33356 }
33357 }
33358}
33359{ print }
33360_ACAWK
33361_ACEOF
33362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33363 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33364fi # test -n "$CONFIG_HEADERS"
33365
33366
33367eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33368shift
33369for ac_tag
33370do
33371 case $ac_tag in
33372 :[FHLC]) ac_mode=$ac_tag; continue;;
33373 esac
33374 case $ac_mode$ac_tag in
33375 :[FHL]*:*);;
33376 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33377 :[FH]-) ac_tag=-:-;;
33378 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33379 esac
33380 ac_save_IFS=$IFS
33381 IFS=:
33382 set x $ac_tag
33383 IFS=$ac_save_IFS
33384 shift
33385 ac_file=$1
33386 shift
33387
33388 case $ac_mode in
33389 :L) ac_source=$1;;
33390 :[FH])
33391 ac_file_inputs=
33392 for ac_f
33393 do
33394 case $ac_f in
33395 -) ac_f="$ac_tmp/stdin";;
33396 *) # Look for the file first in the build tree, then in the source tree
33397 # (if the path is not absolute). The absolute path cannot be DOS-style,
33398 # because $ac_f cannot contain `:'.
33399 test -f "$ac_f" ||
33400 case $ac_f in
33401 [\\/$]*) false;;
33402 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33403 esac ||
33404 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33405 esac
33406 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33407 as_fn_append ac_file_inputs " '$ac_f'"
33408 done
33409
33410 # Let's still pretend it is `configure' which instantiates (i.e., don't
33411 # use $as_me), people would be surprised to read:
33412 # /* config.h. Generated by config.status. */
33413 configure_input='Generated from '`
33414 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33415 `' by configure.'
33416 if test x"$ac_file" != x-; then
33417 configure_input="$ac_file. $configure_input"
33418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33419$as_echo "$as_me: creating $ac_file" >&6;}
33420 fi
33421 # Neutralize special characters interpreted by sed in replacement strings.
33422 case $configure_input in #(
33423 *\&* | *\|* | *\\* )
33424 ac_sed_conf_input=`$as_echo "$configure_input" |
33425 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33426 *) ac_sed_conf_input=$configure_input;;
33427 esac
33428
33429 case $ac_tag in
33430 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33432 esac
33433 ;;
33434 esac
33435
33436 ac_dir=`$as_dirname -- "$ac_file" ||
33437$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33438 X"$ac_file" : 'X\(//\)[^/]' \| \
33439 X"$ac_file" : 'X\(//\)$' \| \
33440 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33441$as_echo X"$ac_file" |
33442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33443 s//\1/
33444 q
33445 }
33446 /^X\(\/\/\)[^/].*/{
33447 s//\1/
33448 q
33449 }
33450 /^X\(\/\/\)$/{
33451 s//\1/
33452 q
33453 }
33454 /^X\(\/\).*/{
33455 s//\1/
33456 q
33457 }
33458 s/.*/./; q'`
33459 as_dir="$ac_dir"; as_fn_mkdir_p
33460 ac_builddir=.
33461
33462case "$ac_dir" in
33463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33464*)
33465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33466 # A ".." for each directory in $ac_dir_suffix.
33467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33468 case $ac_top_builddir_sub in
33469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33471 esac ;;
33472esac
33473ac_abs_top_builddir=$ac_pwd
33474ac_abs_builddir=$ac_pwd$ac_dir_suffix
33475# for backward compatibility:
33476ac_top_builddir=$ac_top_build_prefix
33477
33478case $srcdir in
33479 .) # We are building in place.
33480 ac_srcdir=.
33481 ac_top_srcdir=$ac_top_builddir_sub
33482 ac_abs_top_srcdir=$ac_pwd ;;
33483 [\\/]* | ?:[\\/]* ) # Absolute name.
33484 ac_srcdir=$srcdir$ac_dir_suffix;
33485 ac_top_srcdir=$srcdir
33486 ac_abs_top_srcdir=$srcdir ;;
33487 *) # Relative name.
33488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33489 ac_top_srcdir=$ac_top_build_prefix$srcdir
33490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33491esac
33492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33493
33494
33495 case $ac_mode in
33496 :F)
33497 #
33498 # CONFIG_FILE
33499 #
33500
33501 case $INSTALL in
33502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33503 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33504 esac
33505 ac_MKDIR_P=$MKDIR_P
33506 case $MKDIR_P in
33507 [\\/$]* | ?:[\\/]* ) ;;
33508 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33509 esac
33510_ACEOF
33511
33512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33513# If the template does not know about datarootdir, expand it.
33514# FIXME: This hack should be removed a few years after 2.60.
33515ac_datarootdir_hack=; ac_datarootdir_seen=
33516ac_sed_dataroot='
33517/datarootdir/ {
33518 p
33519 q
33520}
33521/@datadir@/p
33522/@docdir@/p
33523/@infodir@/p
33524/@localedir@/p
33525/@mandir@/p'
33526case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33527*datarootdir*) ac_datarootdir_seen=yes;;
33528*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33530$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33531_ACEOF
33532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33533 ac_datarootdir_hack='
33534 s&@datadir@&$datadir&g
33535 s&@docdir@&$docdir&g
33536 s&@infodir@&$infodir&g
33537 s&@localedir@&$localedir&g
33538 s&@mandir@&$mandir&g
33539 s&\\\${datarootdir}&$datarootdir&g' ;;
33540esac
33541_ACEOF
33542
33543# Neutralize VPATH when `$srcdir' = `.'.
33544# Shell code in configure.ac might set extrasub.
33545# FIXME: do we really want to maintain this feature?
33546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33547ac_sed_extra="$ac_vpsub
33548$extrasub
33549_ACEOF
33550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33551:t
33552/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33553s|@configure_input@|$ac_sed_conf_input|;t t
33554s&@top_builddir@&$ac_top_builddir_sub&;t t
33555s&@top_build_prefix@&$ac_top_build_prefix&;t t
33556s&@srcdir@&$ac_srcdir&;t t
33557s&@abs_srcdir@&$ac_abs_srcdir&;t t
33558s&@top_srcdir@&$ac_top_srcdir&;t t
33559s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33560s&@builddir@&$ac_builddir&;t t
33561s&@abs_builddir@&$ac_abs_builddir&;t t
33562s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33563s&@INSTALL@&$ac_INSTALL&;t t
33564s&@MKDIR_P@&$ac_MKDIR_P&;t t
33565$ac_datarootdir_hack
33566"
33567eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33568 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33569
33570test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33571 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33573 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33575which seems to be undefined. Please make sure it is defined" >&5
33576$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33577which seems to be undefined. Please make sure it is defined" >&2;}
33578
33579 rm -f "$ac_tmp/stdin"
33580 case $ac_file in
33581 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33582 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33583 esac \
33584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33585 ;;
33586 :H)
33587 #
33588 # CONFIG_HEADER
33589 #
33590 if test x"$ac_file" != x-; then
33591 {
33592 $as_echo "/* $configure_input */" \
33593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33594 } >"$ac_tmp/config.h" \
33595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33596 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33597 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33598$as_echo "$as_me: $ac_file is unchanged" >&6;}
33599 else
33600 rm -f "$ac_file"
33601 mv "$ac_tmp/config.h" "$ac_file" \
33602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33603 fi
33604 else
33605 $as_echo "/* $configure_input */" \
33606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33607 || as_fn_error $? "could not create -" "$LINENO" 5
33608 fi
33609# Compute "$ac_file"'s index in $config_headers.
33610_am_arg="$ac_file"
33611_am_stamp_count=1
33612for _am_header in $config_headers :; do
33613 case $_am_header in
33614 $_am_arg | $_am_arg:* )
33615 break ;;
33616 * )
33617 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33618 esac
33619done
33620echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33621$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33622 X"$_am_arg" : 'X\(//\)[^/]' \| \
33623 X"$_am_arg" : 'X\(//\)$' \| \
33624 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33625$as_echo X"$_am_arg" |
33626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33627 s//\1/
33628 q
33629 }
33630 /^X\(\/\/\)[^/].*/{
33631 s//\1/
33632 q
33633 }
33634 /^X\(\/\/\)$/{
33635 s//\1/
33636 q
33637 }
33638 /^X\(\/\).*/{
33639 s//\1/
33640 q
33641 }
33642 s/.*/./; q'`/stamp-h$_am_stamp_count
33643 ;;
33644
33645 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33646$as_echo "$as_me: executing $ac_file commands" >&6;}
33647 ;;
33648 esac
33649
33650
33651 case $ac_file$ac_mode in
33652 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33653 # Older Autoconf quotes --file arguments for eval, but not when files
33654 # are listed without --file. Let's play safe and only enable the eval
33655 # if we detect the quoting.
33656 case $CONFIG_FILES in
33657 *\'*) eval set x "$CONFIG_FILES" ;;
33658 *) set x $CONFIG_FILES ;;
33659 esac
33660 shift
33661 for mf
33662 do
33663 # Strip MF so we end up with the name of the file.
33664 mf=`echo "$mf" | sed -e 's/:.*$//'`
33665 # Check whether this is an Automake generated Makefile or not.
33666 # We used to match only the files named 'Makefile.in', but
33667 # some people rename them; so instead we look at the file content.
33668 # Grep'ing the first line is not enough: some people post-process
33669 # each Makefile.in and add a new line on top of each file to say so.
33670 # Grep'ing the whole file is not good either: AIX grep has a line
33671 # limit of 2048, but all sed's we know have understand at least 4000.
33672 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33673 dirpart=`$as_dirname -- "$mf" ||
33674$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33675 X"$mf" : 'X\(//\)[^/]' \| \
33676 X"$mf" : 'X\(//\)$' \| \
33677 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33678$as_echo X"$mf" |
33679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33680 s//\1/
33681 q
33682 }
33683 /^X\(\/\/\)[^/].*/{
33684 s//\1/
33685 q
33686 }
33687 /^X\(\/\/\)$/{
33688 s//\1/
33689 q
33690 }
33691 /^X\(\/\).*/{
33692 s//\1/
33693 q
33694 }
33695 s/.*/./; q'`
33696 else
33697 continue
33698 fi
33699 # Extract the definition of DEPDIR, am__include, and am__quote
33700 # from the Makefile without running 'make'.
33701 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33702 test -z "$DEPDIR" && continue
33703 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33704 test -z "$am__include" && continue
33705 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33706 # Find all dependency output files, they are included files with
33707 # $(DEPDIR) in their names. We invoke sed twice because it is the
33708 # simplest approach to changing $(DEPDIR) to its actual value in the
33709 # expansion.
33710 for file in `sed -n "
33711 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33712 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
33713 # Make sure the directory exists.
33714 test -f "$dirpart/$file" && continue
33715 fdir=`$as_dirname -- "$file" ||
33716$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33717 X"$file" : 'X\(//\)[^/]' \| \
33718 X"$file" : 'X\(//\)$' \| \
33719 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33720$as_echo X"$file" |
33721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33722 s//\1/
33723 q
33724 }
33725 /^X\(\/\/\)[^/].*/{
33726 s//\1/
33727 q
33728 }
33729 /^X\(\/\/\)$/{
33730 s//\1/
33731 q
33732 }
33733 /^X\(\/\).*/{
33734 s//\1/
33735 q
33736 }
33737 s/.*/./; q'`
33738 as_dir=$dirpart/$fdir; as_fn_mkdir_p
33739 # echo "creating $dirpart/$file"
33740 echo '# dummy' > "$dirpart/$file"
33741 done
33742 done
33743}
33744 ;;
33745 "libtool":C)
33746
33747 # See if we are running on zsh, and set the options that allow our
33748 # commands through without removal of \ escapes.
33749 if test -n "${ZSH_VERSION+set}"; then
33750 setopt NO_GLOB_SUBST
33751 fi
33752
33753 cfgfile=${ofile}T
33754 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33755 $RM "$cfgfile"
33756
33757 cat <<_LT_EOF >> "$cfgfile"
33758#! $SHELL
33759# Generated automatically by $as_me ($PACKAGE) $VERSION
33760# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33761# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33762
33763# Provide generalized library-building support services.
33764# Written by Gordon Matzigkeit, 1996
33765
33766# Copyright (C) 2014 Free Software Foundation, Inc.
33767# This is free software; see the source for copying conditions. There is NO
33768# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
33769
33770# GNU Libtool is free software; you can redistribute it and/or modify
33771# it under the terms of the GNU General Public License as published by
33772# the Free Software Foundation; either version 2 of of the License, or
33773# (at your option) any later version.
33774#
33775# As a special exception to the GNU General Public License, if you
33776# distribute this file as part of a program or library that is built
33777# using GNU Libtool, you may include this file under the same
33778# distribution terms that you use for the rest of that program.
33779#
33780# GNU Libtool is distributed in the hope that it will be useful, but
33781# WITHOUT ANY WARRANTY; without even the implied warranty of
33782# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33783# GNU General Public License for more details.
33784#
33785# You should have received a copy of the GNU General Public License
33786# along with this program. If not, see <http://www.gnu.org/licenses/>.
33787
33788
33789# The names of the tagged configurations supported by this script.
33790available_tags='CXX '
33791
33792# Configured defaults for sys_lib_dlsearch_path munging.
33793: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
33794
33795# ### BEGIN LIBTOOL CONFIG
33796
33797# Which release of libtool.m4 was used?
33798macro_version=$macro_version
33799macro_revision=$macro_revision
33800
33801# Assembler program.
33802AS=$lt_AS
33803
33804# DLL creation program.
33805DLLTOOL=$lt_DLLTOOL
33806
33807# Object dumper program.
33808OBJDUMP=$lt_OBJDUMP
33809
33810# Whether or not to build shared libraries.
33811build_libtool_libs=$enable_shared
33812
33813# Whether or not to build static libraries.
33814build_old_libs=$enable_static
33815
33816# What type of objects to build.
33817pic_mode=$pic_mode
33818
33819# Whether or not to optimize for fast installation.
33820fast_install=$enable_fast_install
33821
33822# Shared archive member basename,for filename based shared library versioning on AIX.
33823shared_archive_member_spec=$shared_archive_member_spec
33824
33825# Shell to use when invoking shell scripts.
33826SHELL=$lt_SHELL
33827
33828# An echo program that protects backslashes.
33829ECHO=$lt_ECHO
33830
33831# The PATH separator for the build system.
33832PATH_SEPARATOR=$lt_PATH_SEPARATOR
33833
33834# The host system.
33835host_alias=$host_alias
33836host=$host
33837host_os=$host_os
33838
33839# The build system.
33840build_alias=$build_alias
33841build=$build
33842build_os=$build_os
33843
33844# A sed program that does not truncate output.
33845SED=$lt_SED
33846
33847# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33848Xsed="\$SED -e 1s/^X//"
33849
33850# A grep program that handles long lines.
33851GREP=$lt_GREP
33852
33853# An ERE matcher.
33854EGREP=$lt_EGREP
33855
33856# A literal string matcher.
33857FGREP=$lt_FGREP
33858
33859# A BSD- or MS-compatible name lister.
33860NM=$lt_NM
33861
33862# Whether we need soft or hard links.
33863LN_S=$lt_LN_S
33864
33865# What is the maximum length of a command?
33866max_cmd_len=$max_cmd_len
33867
33868# Object file suffix (normally "o").
33869objext=$ac_objext
33870
33871# Executable file suffix (normally "").
33872exeext=$exeext
33873
33874# whether the shell understands "unset".
33875lt_unset=$lt_unset
33876
33877# turn spaces into newlines.
33878SP2NL=$lt_lt_SP2NL
33879
33880# turn newlines into spaces.
33881NL2SP=$lt_lt_NL2SP
33882
33883# convert \$build file names to \$host format.
33884to_host_file_cmd=$lt_cv_to_host_file_cmd
33885
33886# convert \$build files to toolchain format.
33887to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33888
33889# Method to check whether dependent libraries are shared objects.
33890deplibs_check_method=$lt_deplibs_check_method
33891
33892# Command to use when deplibs_check_method = "file_magic".
33893file_magic_cmd=$lt_file_magic_cmd
33894
33895# How to find potential files when deplibs_check_method = "file_magic".
33896file_magic_glob=$lt_file_magic_glob
33897
33898# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33899want_nocaseglob=$lt_want_nocaseglob
33900
33901# Command to associate shared and link libraries.
33902sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33903
33904# The archiver.
33905AR=$lt_AR
33906
33907# Flags to create an archive.
33908AR_FLAGS=$lt_AR_FLAGS
33909
33910# How to feed a file listing to the archiver.
33911archiver_list_spec=$lt_archiver_list_spec
33912
33913# A symbol stripping program.
33914STRIP=$lt_STRIP
33915
33916# Commands used to install an old-style archive.
33917RANLIB=$lt_RANLIB
33918old_postinstall_cmds=$lt_old_postinstall_cmds
33919old_postuninstall_cmds=$lt_old_postuninstall_cmds
33920
33921# Whether to use a lock for old archive extraction.
33922lock_old_archive_extraction=$lock_old_archive_extraction
33923
33924# A C compiler.
33925LTCC=$lt_CC
33926
33927# LTCC compiler flags.
33928LTCFLAGS=$lt_CFLAGS
33929
33930# Take the output of nm and produce a listing of raw symbols and C names.
33931global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33932
33933# Transform the output of nm in a proper C declaration.
33934global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33935
33936# Transform the output of nm into a list of symbols to manually relocate.
33937global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
33938
33939# Transform the output of nm in a C name address pair.
33940global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33941
33942# Transform the output of nm in a C name address pair when lib prefix is needed.
33943global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33944
33945# The name lister interface.
33946nm_interface=$lt_lt_cv_nm_interface
33947
33948# Specify filename containing input files for \$NM.
33949nm_file_list_spec=$lt_nm_file_list_spec
33950
33951# The root where to search for dependent libraries,and where our libraries should be installed.
33952lt_sysroot=$lt_sysroot
33953
33954# Command to truncate a binary pipe.
33955lt_truncate_bin=$lt_lt_cv_truncate_bin
33956
33957# The name of the directory that contains temporary libtool files.
33958objdir=$objdir
33959
33960# Used to examine libraries when file_magic_cmd begins with "file".
33961MAGIC_CMD=$MAGIC_CMD
33962
33963# Must we lock files when doing compilation?
33964need_locks=$lt_need_locks
33965
33966# Manifest tool.
33967MANIFEST_TOOL=$lt_MANIFEST_TOOL
33968
33969# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33970DSYMUTIL=$lt_DSYMUTIL
33971
33972# Tool to change global to local symbols on Mac OS X.
33973NMEDIT=$lt_NMEDIT
33974
33975# Tool to manipulate fat objects and archives on Mac OS X.
33976LIPO=$lt_LIPO
33977
33978# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33979OTOOL=$lt_OTOOL
33980
33981# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33982OTOOL64=$lt_OTOOL64
33983
33984# Old archive suffix (normally "a").
33985libext=$libext
33986
33987# Shared library suffix (normally ".so").
33988shrext_cmds=$lt_shrext_cmds
33989
33990# The commands to extract the exported symbol list from a shared archive.
33991extract_expsyms_cmds=$lt_extract_expsyms_cmds
33992
33993# Variables whose values should be saved in libtool wrapper scripts and
33994# restored at link time.
33995variables_saved_for_relink=$lt_variables_saved_for_relink
33996
33997# Do we need the "lib" prefix for modules?
33998need_lib_prefix=$need_lib_prefix
33999
34000# Do we need a version for libraries?
34001need_version=$need_version
34002
34003# Library versioning type.
34004version_type=$version_type
34005
34006# Shared library runtime path variable.
34007runpath_var=$runpath_var
34008
34009# Shared library path variable.
34010shlibpath_var=$shlibpath_var
34011
34012# Is shlibpath searched before the hard-coded library search path?
34013shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34014
34015# Format of library name prefix.
34016libname_spec=$lt_libname_spec
34017
34018# List of archive names. First name is the real one, the rest are links.
34019# The last name is the one that the linker finds with -lNAME
34020library_names_spec=$lt_library_names_spec
34021
34022# The coded name of the library, if different from the real name.
34023soname_spec=$lt_soname_spec
34024
34025# Permission mode override for installation of shared libraries.
34026install_override_mode=$lt_install_override_mode
34027
34028# Command to use after installation of a shared archive.
34029postinstall_cmds=$lt_postinstall_cmds
34030
34031# Command to use after uninstallation of a shared archive.
34032postuninstall_cmds=$lt_postuninstall_cmds
34033
34034# Commands used to finish a libtool library installation in a directory.
34035finish_cmds=$lt_finish_cmds
34036
34037# As "finish_cmds", except a single script fragment to be evaled but
34038# not shown.
34039finish_eval=$lt_finish_eval
34040
34041# Whether we should hardcode library paths into libraries.
34042hardcode_into_libs=$hardcode_into_libs
34043
34044# Compile-time system search path for libraries.
34045sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34046
34047# Detected run-time system search path for libraries.
34048sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
34049
34050# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
34051configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
34052
34053# Whether dlopen is supported.
34054dlopen_support=$enable_dlopen
34055
34056# Whether dlopen of programs is supported.
34057dlopen_self=$enable_dlopen_self
34058
34059# Whether dlopen of statically linked programs is supported.
34060dlopen_self_static=$enable_dlopen_self_static
34061
34062# Commands to strip libraries.
34063old_striplib=$lt_old_striplib
34064striplib=$lt_striplib
34065
34066
34067# The linker used to build libraries.
34068LD=$lt_LD
34069
34070# How to create reloadable object files.
34071reload_flag=$lt_reload_flag
34072reload_cmds=$lt_reload_cmds
34073
34074# Commands used to build an old-style archive.
34075old_archive_cmds=$lt_old_archive_cmds
34076
34077# A language specific compiler.
34078CC=$lt_compiler
34079
34080# Is the compiler the GNU compiler?
34081with_gcc=$GCC
34082
34083# Compiler flag to turn off builtin functions.
34084no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34085
34086# Additional compiler flags for building library objects.
34087pic_flag=$lt_lt_prog_compiler_pic
34088
34089# How to pass a linker flag through the compiler.
34090wl=$lt_lt_prog_compiler_wl
34091
34092# Compiler flag to prevent dynamic linking.
34093link_static_flag=$lt_lt_prog_compiler_static
34094
34095# Does compiler simultaneously support -c and -o options?
34096compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34097
34098# Whether or not to add -lc for building shared libraries.
34099build_libtool_need_lc=$archive_cmds_need_lc
34100
34101# Whether or not to disallow shared libs when runtime libs are static.
34102allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34103
34104# Compiler flag to allow reflexive dlopens.
34105export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34106
34107# Compiler flag to generate shared objects directly from archives.
34108whole_archive_flag_spec=$lt_whole_archive_flag_spec
34109
34110# Whether the compiler copes with passing no objects directly.
34111compiler_needs_object=$lt_compiler_needs_object
34112
34113# Create an old-style archive from a shared archive.
34114old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34115
34116# Create a temporary old-style archive to link instead of a shared archive.
34117old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34118
34119# Commands used to build a shared archive.
34120archive_cmds=$lt_archive_cmds
34121archive_expsym_cmds=$lt_archive_expsym_cmds
34122
34123# Commands used to build a loadable module if different from building
34124# a shared archive.
34125module_cmds=$lt_module_cmds
34126module_expsym_cmds=$lt_module_expsym_cmds
34127
34128# Whether we are building with GNU ld or not.
34129with_gnu_ld=$lt_with_gnu_ld
34130
34131# Flag that allows shared libraries with undefined symbols to be built.
34132allow_undefined_flag=$lt_allow_undefined_flag
34133
34134# Flag that enforces no undefined symbols.
34135no_undefined_flag=$lt_no_undefined_flag
34136
34137# Flag to hardcode \$libdir into a binary during linking.
34138# This must work even if \$libdir does not exist
34139hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34140
34141# Whether we need a single "-rpath" flag with a separated argument.
34142hardcode_libdir_separator=$lt_hardcode_libdir_separator
34143
34144# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34145# DIR into the resulting binary.
34146hardcode_direct=$hardcode_direct
34147
34148# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34149# DIR into the resulting binary and the resulting library dependency is
34150# "absolute",i.e impossible to change by setting \$shlibpath_var if the
34151# library is relocated.
34152hardcode_direct_absolute=$hardcode_direct_absolute
34153
34154# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34155# into the resulting binary.
34156hardcode_minus_L=$hardcode_minus_L
34157
34158# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34159# into the resulting binary.
34160hardcode_shlibpath_var=$hardcode_shlibpath_var
34161
34162# Set to "yes" if building a shared library automatically hardcodes DIR
34163# into the library and all subsequent libraries and executables linked
34164# against it.
34165hardcode_automatic=$hardcode_automatic
34166
34167# Set to yes if linker adds runtime paths of dependent libraries
34168# to runtime path list.
34169inherit_rpath=$inherit_rpath
34170
34171# Whether libtool must link a program against all its dependency libraries.
34172link_all_deplibs=$link_all_deplibs
34173
34174# Set to "yes" if exported symbols are required.
34175always_export_symbols=$always_export_symbols
34176
34177# The commands to list exported symbols.
34178export_symbols_cmds=$lt_export_symbols_cmds
34179
34180# Symbols that should not be listed in the preloaded symbols.
34181exclude_expsyms=$lt_exclude_expsyms
34182
34183# Symbols that must always be exported.
34184include_expsyms=$lt_include_expsyms
34185
34186# Commands necessary for linking programs (against libraries) with templates.
34187prelink_cmds=$lt_prelink_cmds
34188
34189# Commands necessary for finishing linking programs.
34190postlink_cmds=$lt_postlink_cmds
34191
34192# Specify filename containing input files.
34193file_list_spec=$lt_file_list_spec
34194
34195# How to hardcode a shared library path into an executable.
34196hardcode_action=$hardcode_action
34197
34198# The directories searched by this compiler when creating a shared library.
34199compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34200
34201# Dependencies to place before and after the objects being linked to
34202# create a shared library.
34203predep_objects=$lt_predep_objects
34204postdep_objects=$lt_postdep_objects
34205predeps=$lt_predeps
34206postdeps=$lt_postdeps
34207
34208# The library search path used internally by the compiler when linking
34209# a shared library.
34210compiler_lib_search_path=$lt_compiler_lib_search_path
34211
34212# ### END LIBTOOL CONFIG
34213
34214_LT_EOF
34215
34216 cat <<'_LT_EOF' >> "$cfgfile"
34217
34218# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
34219
34220# func_munge_path_list VARIABLE PATH
34221# -----------------------------------
34222# VARIABLE is name of variable containing _space_ separated list of
34223# directories to be munged by the contents of PATH, which is string
34224# having a format:
34225# "DIR[:DIR]:"
34226# string "DIR[ DIR]" will be prepended to VARIABLE
34227# ":DIR[:DIR]"
34228# string "DIR[ DIR]" will be appended to VARIABLE
34229# "DIRP[:DIRP]::[DIRA:]DIRA"
34230# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
34231# "DIRA[ DIRA]" will be appended to VARIABLE
34232# "DIR[:DIR]"
34233# VARIABLE will be replaced by "DIR[ DIR]"
34234func_munge_path_list ()
34235{
34236 case x$2 in
34237 x)
34238 ;;
34239 *:)
34240 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
34241 ;;
34242 x:*)
34243 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
34244 ;;
34245 *::*)
34246 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
34247 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
34248 ;;
34249 *)
34250 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
34251 ;;
34252 esac
34253}
34254
34255
34256# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
34257func_cc_basename ()
34258{
34259 for cc_temp in $*""; do
34260 case $cc_temp in
34261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34263 \-*) ;;
34264 *) break;;
34265 esac
34266 done
34267 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
34268}
34269
34270
34271# ### END FUNCTIONS SHARED WITH CONFIGURE
34272
34273_LT_EOF
34274
34275 case $host_os in
34276 aix3*)
34277 cat <<\_LT_EOF >> "$cfgfile"
34278# AIX sometimes has problems with the GCC collect2 program. For some
34279# reason, if we set the COLLECT_NAMES environment variable, the problems
34280# vanish in a puff of smoke.
34281if test set != "${COLLECT_NAMES+set}"; then
34282 COLLECT_NAMES=
34283 export COLLECT_NAMES
34284fi
34285_LT_EOF
34286 ;;
34287 esac
34288
34289
34290ltmain=$ac_aux_dir/ltmain.sh
34291
34292
34293 # We use sed instead of cat because bash on DJGPP gets confused if
34294 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34295 # text mode, it properly converts lines to CR/LF. This bash problem
34296 # is reportedly fixed, but why not run on old versions too?
34297 sed '$q' "$ltmain" >> "$cfgfile" \
34298 || (rm -f "$cfgfile"; exit 1)
34299
34300 mv -f "$cfgfile" "$ofile" ||
34301 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34302 chmod +x "$ofile"
34303
34304
34305 cat <<_LT_EOF >> "$ofile"
34306
34307# ### BEGIN LIBTOOL TAG CONFIG: CXX
34308
34309# The linker used to build libraries.
34310LD=$lt_LD_CXX
34311
34312# How to create reloadable object files.
34313reload_flag=$lt_reload_flag_CXX
34314reload_cmds=$lt_reload_cmds_CXX
34315
34316# Commands used to build an old-style archive.
34317old_archive_cmds=$lt_old_archive_cmds_CXX
34318
34319# A language specific compiler.
34320CC=$lt_compiler_CXX
34321
34322# Is the compiler the GNU compiler?
34323with_gcc=$GCC_CXX
34324
34325# Compiler flag to turn off builtin functions.
34326no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34327
34328# Additional compiler flags for building library objects.
34329pic_flag=$lt_lt_prog_compiler_pic_CXX
34330
34331# How to pass a linker flag through the compiler.
34332wl=$lt_lt_prog_compiler_wl_CXX
34333
34334# Compiler flag to prevent dynamic linking.
34335link_static_flag=$lt_lt_prog_compiler_static_CXX
34336
34337# Does compiler simultaneously support -c and -o options?
34338compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34339
34340# Whether or not to add -lc for building shared libraries.
34341build_libtool_need_lc=$archive_cmds_need_lc_CXX
34342
34343# Whether or not to disallow shared libs when runtime libs are static.
34344allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34345
34346# Compiler flag to allow reflexive dlopens.
34347export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34348
34349# Compiler flag to generate shared objects directly from archives.
34350whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34351
34352# Whether the compiler copes with passing no objects directly.
34353compiler_needs_object=$lt_compiler_needs_object_CXX
34354
34355# Create an old-style archive from a shared archive.
34356old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34357
34358# Create a temporary old-style archive to link instead of a shared archive.
34359old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34360
34361# Commands used to build a shared archive.
34362archive_cmds=$lt_archive_cmds_CXX
34363archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34364
34365# Commands used to build a loadable module if different from building
34366# a shared archive.
34367module_cmds=$lt_module_cmds_CXX
34368module_expsym_cmds=$lt_module_expsym_cmds_CXX
34369
34370# Whether we are building with GNU ld or not.
34371with_gnu_ld=$lt_with_gnu_ld_CXX
34372
34373# Flag that allows shared libraries with undefined symbols to be built.
34374allow_undefined_flag=$lt_allow_undefined_flag_CXX
34375
34376# Flag that enforces no undefined symbols.
34377no_undefined_flag=$lt_no_undefined_flag_CXX
34378
34379# Flag to hardcode \$libdir into a binary during linking.
34380# This must work even if \$libdir does not exist
34381hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34382
34383# Whether we need a single "-rpath" flag with a separated argument.
34384hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34385
34386# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34387# DIR into the resulting binary.
34388hardcode_direct=$hardcode_direct_CXX
34389
34390# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34391# DIR into the resulting binary and the resulting library dependency is
34392# "absolute",i.e impossible to change by setting \$shlibpath_var if the
34393# library is relocated.
34394hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34395
34396# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34397# into the resulting binary.
34398hardcode_minus_L=$hardcode_minus_L_CXX
34399
34400# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34401# into the resulting binary.
34402hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34403
34404# Set to "yes" if building a shared library automatically hardcodes DIR
34405# into the library and all subsequent libraries and executables linked
34406# against it.
34407hardcode_automatic=$hardcode_automatic_CXX
34408
34409# Set to yes if linker adds runtime paths of dependent libraries
34410# to runtime path list.
34411inherit_rpath=$inherit_rpath_CXX
34412
34413# Whether libtool must link a program against all its dependency libraries.
34414link_all_deplibs=$link_all_deplibs_CXX
34415
34416# Set to "yes" if exported symbols are required.
34417always_export_symbols=$always_export_symbols_CXX
34418
34419# The commands to list exported symbols.
34420export_symbols_cmds=$lt_export_symbols_cmds_CXX
34421
34422# Symbols that should not be listed in the preloaded symbols.
34423exclude_expsyms=$lt_exclude_expsyms_CXX
34424
34425# Symbols that must always be exported.
34426include_expsyms=$lt_include_expsyms_CXX
34427
34428# Commands necessary for linking programs (against libraries) with templates.
34429prelink_cmds=$lt_prelink_cmds_CXX
34430
34431# Commands necessary for finishing linking programs.
34432postlink_cmds=$lt_postlink_cmds_CXX
34433
34434# Specify filename containing input files.
34435file_list_spec=$lt_file_list_spec_CXX
34436
34437# How to hardcode a shared library path into an executable.
34438hardcode_action=$hardcode_action_CXX
34439
34440# The directories searched by this compiler when creating a shared library.
34441compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34442
34443# Dependencies to place before and after the objects being linked to
34444# create a shared library.
34445predep_objects=$lt_predep_objects_CXX
34446postdep_objects=$lt_postdep_objects_CXX
34447predeps=$lt_predeps_CXX
34448postdeps=$lt_postdeps_CXX
34449
34450# The library search path used internally by the compiler when linking
34451# a shared library.
34452compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34453
34454# ### END LIBTOOL TAG CONFIG: CXX
34455_LT_EOF
34456
34457 ;;
34458
34459 esac
34460done # for ac_tag
34461
34462
34463as_fn_exit 0
34464_ACEOF
34465ac_clean_files=$ac_clean_files_save
34466
34467test $ac_write_fail = 0 ||
34468 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34469
34470
34471# configure is writing to config.log, and then calls config.status.
34472# config.status does its own redirection, appending to config.log.
34473# Unfortunately, on DOS this fails, as config.log is still kept open
34474# by configure, so config.status won't be able to write to it; its
34475# output is simply discarded. So we exec the FD to /dev/null,
34476# effectively closing config.log, so it can be properly (re)opened and
34477# appended to by config.status. When coming back to configure, we
34478# need to make the FD available again.
34479if test "$no_create" != yes; then
34480 ac_cs_success=:
34481 ac_config_status_args=
34482 test "$silent" = yes &&
34483 ac_config_status_args="$ac_config_status_args --quiet"
34484 exec 5>/dev/null
34485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34486 exec 5>>config.log
34487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34488 # would make configure fail if this is the last instruction.
34489 $ac_cs_success || as_fn_exit 1
34490fi
34491
34492#
34493# CONFIG_SUBDIRS section.
34494#
34495if test "$no_recursion" != yes; then
34496
34497 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
34498 # so they do not pile up.
34499 ac_sub_configure_args=
34500 ac_prev=
34501 eval "set x $ac_configure_args"
34502 shift
34503 for ac_arg
34504 do
34505 if test -n "$ac_prev"; then
34506 ac_prev=
34507 continue
34508 fi
34509 case $ac_arg in
34510 -cache-file | --cache-file | --cache-fil | --cache-fi \
34511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34512 ac_prev=cache_file ;;
34513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34515 | --c=*)
34516 ;;
34517 --config-cache | -C)
34518 ;;
34519 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34520 ac_prev=srcdir ;;
34521 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34522 ;;
34523 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34524 ac_prev=prefix ;;
34525 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34526 ;;
34527 --disable-option-checking)
34528 ;;
34529 *)
34530 case $ac_arg in
34531 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34532 esac
34533 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
34534 esac
34535 done
34536
34537 # Always prepend --prefix to ensure using the same prefix
34538 # in subdir configurations.
34539 ac_arg="--prefix=$prefix"
34540 case $ac_arg in
34541 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34542 esac
34543 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
34544
34545 # Pass --silent
34546 if test "$silent" = yes; then
34547 ac_sub_configure_args="--silent $ac_sub_configure_args"
34548 fi
34549
34550 # Always prepend --disable-option-checking to silence warnings, since
34551 # different subdirs can have different --enable and --with options.
34552 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
34553
34554 ac_popdir=`pwd`
34555 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34556
34557 # Do not complain, so a configure script can configure whichever
34558 # parts of a large source tree are present.
34559 test -d "$srcdir/$ac_dir" || continue
34560
34561 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34562 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
34563 $as_echo "$ac_msg" >&6
34564 as_dir="$ac_dir"; as_fn_mkdir_p
34565 ac_builddir=.
34566
34567case "$ac_dir" in
34568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34569*)
34570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34571 # A ".." for each directory in $ac_dir_suffix.
34572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34573 case $ac_top_builddir_sub in
34574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34576 esac ;;
34577esac
34578ac_abs_top_builddir=$ac_pwd
34579ac_abs_builddir=$ac_pwd$ac_dir_suffix
34580# for backward compatibility:
34581ac_top_builddir=$ac_top_build_prefix
34582
34583case $srcdir in
34584 .) # We are building in place.
34585 ac_srcdir=.
34586 ac_top_srcdir=$ac_top_builddir_sub
34587 ac_abs_top_srcdir=$ac_pwd ;;
34588 [\\/]* | ?:[\\/]* ) # Absolute name.
34589 ac_srcdir=$srcdir$ac_dir_suffix;
34590 ac_top_srcdir=$srcdir
34591 ac_abs_top_srcdir=$srcdir ;;
34592 *) # Relative name.
34593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34594 ac_top_srcdir=$ac_top_build_prefix$srcdir
34595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34596esac
34597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34598
34599
34600 cd "$ac_dir"
34601
34602 # Check for guested configure; otherwise get Cygnus style configure.
34603 if test -f "$ac_srcdir/configure.gnu"; then
34604 ac_sub_configure=$ac_srcdir/configure.gnu
34605 elif test -f "$ac_srcdir/configure"; then
34606 ac_sub_configure=$ac_srcdir/configure
34607 elif test -f "$ac_srcdir/configure.in"; then
34608 # This should be Cygnus configure.
34609 ac_sub_configure=$ac_aux_dir/configure
34610 else
34611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
34612$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34613 ac_sub_configure=
34614 fi
34615
34616 # The recursion is here.
34617 if test -n "$ac_sub_configure"; then
34618 # Make the cache file name correct relative to the subdirectory.
34619 case $cache_file in
34620 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34621 *) # Relative name.
34622 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34623 esac
34624
34625 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34626$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34627 # The eval makes quoting arguments work.
34628 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34629 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34630 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
34631 fi
34632
34633 cd "$ac_popdir"
34634 done
34635fi
34636if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34638$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34639fi
34640
34641
34642## ---------------------------------- ##
34643## Start of distclean amending code ##
34644## ---------------------------------- ##
34645
34646for xc_subdir in '.'
34647do
34648
34649if test ! -f "$xc_subdir/Makefile"; then
34650 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
34651 exit 1
34652fi
34653
34654# Fetch dependency tracking file list from Makefile include lines.
34655
34656xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
34657xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
34658
34659# --disable-dependency-tracking might have been used, consequently
34660# there is nothing to amend without a dependency tracking file list.
34661
34662if test $xc_cnt_words -gt 0; then
34663
34664{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
34665$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
34666
34667# Build Makefile specific patch hunk.
34668
34669xc_p="$xc_subdir/xc_patch.tmp"
34670
34671xc_rm_depfiles=`echo "$xc_inc_lines" \
34672 | $SED 's%include% -rm -f%' 2>/dev/null`
34673
34674xc_dep_subdirs=`echo "$xc_inc_lines" \
34675 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
34676 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
34677 | sort | uniq`
34678
34679echo "$xc_rm_depfiles" >$xc_p
34680
34681for xc_dep_dir in $xc_dep_subdirs; do
34682 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
34683 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
34684 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
34685 echo "${xc_tab}fi" >>$xc_p
34686done
34687
34688# Build Makefile patching sed scripts.
34689
34690xc_s1="$xc_subdir/xc_script_1.tmp"
34691xc_s2="$xc_subdir/xc_script_2.tmp"
34692xc_s3="$xc_subdir/xc_script_3.tmp"
34693
34694cat >$xc_s1 <<\_EOT
34695/^distclean[ ]*:/,/^[^ ][^ ]*:/{
34696 s/^.*(DEPDIR)/___xc_depdir_line___/
34697}
34698/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
34699 s/^.*(DEPDIR)/___xc_depdir_line___/
34700}
34701_EOT
34702
34703cat >$xc_s2 <<\_EOT
34704/___xc_depdir_line___$/{
34705 N
34706 /___xc_depdir_line___$/D
34707}
34708_EOT
34709
34710cat >$xc_s3 <<_EOT
34711/^___xc_depdir_line___/{
34712 r $xc_p
34713 d
34714}
34715_EOT
34716
34717# Apply patch to Makefile and cleanup.
34718
34719$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
34720$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
34721$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
34722
34723if test -f "$xc_subdir/Makefile.tmp3"; then
34724 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
34725fi
34726
34727test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
34728test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
34729test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
34730
34731test -f "$xc_p" && rm -f "$xc_p"
34732test -f "$xc_s1" && rm -f "$xc_s1"
34733test -f "$xc_s2" && rm -f "$xc_s2"
34734test -f "$xc_s3" && rm -f "$xc_s3"
34735
34736fi
34737
34738done
34739
34740## -------------------------------- ##
34741## End of distclean amending code ##
34742## -------------------------------- ##
34743
34744
34745