blob: a6c2aaee269935f70b6c4a250db3c9c06c241d79 [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-test -.
4#
5# Report bugs to <->.
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## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and - about your
278$0: system, including any error possibly output before this
279$0: message. Then install a modern shell, or manually run
280$0: the script under such a shell if you do have one."
281 fi
282 exit 1
283fi
284fi
285fi
286SHELL=${CONFIG_SHELL-/bin/sh}
287export SHELL
288# Unset more variables known to interfere with behavior of common tools.
289CLICOLOR_FORCE= GREP_OPTIONS=
290unset CLICOLOR_FORCE GREP_OPTIONS
291
292## --------------------- ##
293## M4sh Shell Functions. ##
294## --------------------- ##
295# as_fn_unset VAR
296# ---------------
297# Portably unset VAR.
298as_fn_unset ()
299{
300 { eval $1=; unset $1;}
301}
302as_unset=as_fn_unset
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309 return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317 set +e
318 as_fn_set_status $1
319 exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344$as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375 test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388else
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393fi # as_fn_append
394
395# as_fn_arith ARG...
396# ------------------
397# Perform arithmetic evaluation on the ARGs, and store the result in the
398# global $as_val. Take advantage of shells that can avoid forks. The arguments
399# must be portable across $(()) and expr.
400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410fi # as_fn_arith
411
412
413# as_fn_error STATUS ERROR [LINENO LOG_FD]
414# ----------------------------------------
415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417# script with STATUS, using 1 if that was 0.
418as_fn_error ()
419{
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427} # as_fn_error
428
429if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432else
433 as_expr=false
434fi
435
436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438else
439 as_basename=false
440fi
441
442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444else
445 as_dirname=false
446fi
447
448as_me=`$as_basename -- "$0" ||
449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452$as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467# Avoid depending upon Character Ranges.
468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471as_cr_digits='0123456789'
472as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
508}
509
510ECHO_C= ECHO_N= ECHO_T=
511case `echo -n x` in #(((((
512-n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
519*)
520 ECHO_N='-n';;
521esac
522
523rm -f conf$$ conf$$.exe conf$$.file
524if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
529fi
530if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
542 as_ln_s='cp -pR'
543 fi
544else
545 as_ln_s='cp -pR'
546fi
547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548rmdir conf$$.dir 2>/dev/null
549
550if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
555fi
556
557as_test_x='test -x'
558as_executable_p=as_fn_executable_p
559
560# Sed expression to map a string onto a valid CPP name.
561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563# Sed expression to map a string onto a valid variable name.
564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569test -n "$DJDIR" || exec 7<&0 </dev/null
570exec 6>&1
571
572# Name of the host.
573# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574# so uname gets run too.
575ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577#
578# Initializations.
579#
580ac_default_prefix=/usr/local
581ac_clean_files=
582ac_config_libobj_dir=.
583LIBOBJS=
584cross_compiling=no
585subdirs=
586MFLAGS=
587MAKEFLAGS=
588
589# Identity of this package.
590PACKAGE_NAME='c-ares-test'
591PACKAGE_TARNAME='c-ares-test'
592PACKAGE_VERSION='-'
593PACKAGE_STRING='c-ares-test -'
594PACKAGE_BUGREPORT='-'
595PACKAGE_URL=''
596
597ac_unique_file="ares-test.cc"
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612# include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617# include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638CODE_COVERAGE_RULES
639CODE_COVERAGE_LDFLAGS
640CODE_COVERAGE_CFLAGS
641GENHTML
642LCOV
643GCOV
644CODE_COVERAGE_ENABLED
645CODE_COVERAGE_ENABLED_FALSE
646CODE_COVERAGE_ENABLED_TRUE
647PTHREAD_CFLAGS
648PTHREAD_LIBS
649PTHREAD_CC
650ax_pthread_config
651LIBTOOL_DEPS
652CXXCPP
653CPP
654LT_SYS_LIBRARY_PATH
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660MANIFEST_TOOL
661RANLIB
662ac_ct_AR
663AR
664DLLTOOL
665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672EGREP
673GREP
674SED
675am__fastdepCC_FALSE
676am__fastdepCC_TRUE
677CCDEPMODE
678ac_ct_CC
679CFLAGS
680CC
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689LIBTOOL
690HAVE_CXX11
691am__fastdepCXX_FALSE
692am__fastdepCXX_TRUE
693CXXDEPMODE
694am__nodep
695AMDEPBACKSLASH
696AMDEP_FALSE
697AMDEP_TRUE
698am__quote
699am__include
700DEPDIR
701OBJEXT
702EXEEXT
703ac_ct_CXX
704CPPFLAGS
705LDFLAGS
706CXXFLAGS
707CXX
708AM_BACKSLASH
709AM_DEFAULT_VERBOSITY
710AM_DEFAULT_V
711AM_V
712am__untar
713am__tar
714AMTAR
715am__leading_dot
716SET_MAKE
717AWK
718mkdir_p
719MKDIR_P
720INSTALL_STRIP_PROGRAM
721STRIP
722install_sh
723MAKEINFO
724AUTOHEADER
725AUTOMAKE
726AUTOCONF
727ACLOCAL
728VERSION
729PACKAGE
730CYGPATH_W
731am__isrc
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754runstatedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
777enable_silent_rules
778enable_dependency_tracking
779enable_shared
780enable_static
781with_pic
782enable_fast_install
783with_aix_soname
784with_gnu_ld
785with_sysroot
786enable_libtool_lock
787with_gcov
788enable_code_coverage
789'
790 ac_precious_vars='build_alias
791host_alias
792target_alias
793CXX
794CXXFLAGS
795LDFLAGS
796LIBS
797CPPFLAGS
798CCC
799CC
800CFLAGS
801LT_SYS_LIBRARY_PATH
802CPP
803CXXCPP'
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842runstatedir='${localstatedir}/run'
843includedir='${prefix}/include'
844oldincludedir='/usr/include'
845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846infodir='${datarootdir}/info'
847htmldir='${docdir}'
848dvidir='${docdir}'
849pdfdir='${docdir}'
850psdir='${docdir}'
851libdir='${exec_prefix}/lib'
852localedir='${datarootdir}/locale'
853mandir='${datarootdir}/man'
854
855ac_prev=
856ac_dashdash=
857for ac_option
858do
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
864 fi
865
866 case $ac_option in
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *=) ac_optarg= ;;
869 *) ac_optarg=yes ;;
870 esac
871
872 # Accept the important Cygnus configure options, so we can diagnose typos.
873
874 case $ac_dashdash$ac_option in
875 --)
876 ac_dashdash=yes ;;
877
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
882
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
887
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
894
895 --config-cache | -C)
896 cache_file=config.cache ;;
897
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
902
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
909
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919"enable_$ac_useropt"
920"*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
925
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
930
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
935
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945"enable_$ac_useropt"
946"*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
951
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
960
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
964
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
971
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
976
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1006
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1023
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1031
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1035
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1044
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1080
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
1095 -runstatedir | --runstatedir | --runstatedi | --runstated \
1096 | --runstate | --runstat | --runsta | --runst | --runs \
1097 | --run | --ru | --r)
1098 ac_prev=runstatedir ;;
1099 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101 | --run=* | --ru=* | --r=*)
1102 runstatedir=$ac_optarg ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158"with_$ac_useropt"
1159"*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200Try \`$0 --help' for more information"
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 ;;
1220
1221 esac
1222done
1223
1224if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1227fi
1228
1229if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235fi
1236
1237# Check all directory arguments for consistency.
1238for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir runstatedir
1242do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256done
1257
1258# There might be people who depend on the old broken behavior: `$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272fi
1273
1274ac_tool_prefix=
1275test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277test "$silent" = yes && exec 6>/dev/null
1278
1279
1280ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281ac_ls_di=`ls -di .` &&
1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288# Find the source files, if location was not specified.
1289if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297$as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1318 fi
1319else
1320 ac_srcdir_defaulted=no
1321fi
1322if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325fi
1326ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 pwd)`
1330# When building in place, set srcdir=.
1331if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333fi
1334# Remove unnecessary trailing slashes from srcdir.
1335# Double slashes in file names in object file debugging info
1336# mess up M-x gdb in Emacs.
1337case $srcdir in
1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339esac
1340for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345done
1346
1347#
1348# Report the --help message.
1349#
1350if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354\`configure' configures c-ares-test - to adapt to many kinds of systems.
1355
1356Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359VAR=VALUE. See below for descriptions of some of the useful variables.
1360
1361Defaults for the options are specified in brackets.
1362
1363Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373
1374Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1379
1380By default, \`make install' will install all the files in
1381\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383for instance \`--prefix=\$HOME'.
1384
1385For better control, use the options below.
1386
1387Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares-test]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408_ACEOF
1409
1410 cat <<\_ACEOF
1411
1412Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416
1417System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420_ACEOF
1421fi
1422
1423if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of c-ares-test -:";;
1426 esac
1427 cat <<\_ACEOF
1428
1429Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-silent-rules less verbose build output (undo: "make V=1")
1434 --disable-silent-rules verbose build output (undo: "make V=0")
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-code-coverage Whether to enable code coverage support
1445
1446Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1450 both]
1451 --with-aix-soname=aix|svr4|both
1452 shared library versioning (aka "SONAME") variant to
1453 provide on AIX, [default=aix].
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1456 compiler's sysroot if not specified).
1457 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1458
1459Some influential environment variables:
1460 CXX C++ compiler command
1461 CXXFLAGS C++ compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LT_SYS_LIBRARY_PATH
1470 User-defined run-time library search path.
1471 CPP C preprocessor
1472 CXXCPP C++ preprocessor
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
1477Report bugs to <->.
1478_ACEOF
1479ac_status=$?
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
1505
1506case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519esac
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1535fi
1536
1537test -n "$ac_init_help" && exit $ac_status
1538if $ac_init_version; then
1539 cat <<\_ACEOF
1540c-ares-test configure -
1541generated by GNU Autoconf 2.69
1542
1543Copyright (C) 2012 Free Software Foundation, Inc.
1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546_ACEOF
1547 exit
1548fi
1549
1550## ------------------------ ##
1551## Autoconf initialization. ##
1552## ------------------------ ##
1553
1554# ac_fn_cxx_try_compile LINENO
1555# ----------------------------
1556# Try to compile conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_cxx_try_compile ()
1558{
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_cxx_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590} # ac_fn_cxx_try_compile
1591
1592# ac_fn_c_try_compile LINENO
1593# --------------------------
1594# Try to compile conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_compile ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619else
1620 $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628} # ac_fn_c_try_compile
1629
1630# ac_fn_c_try_link LINENO
1631# -----------------------
1632# Try to link conftest.$ac_ext, and return whether this succeeded.
1633ac_fn_c_try_link ()
1634{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext conftest$ac_exeext
1637 if { { ac_try="$ac_link"
1638case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest$ac_exeext && {
1656 test "$cross_compiling" = yes ||
1657 test -x conftest$ac_exeext
1658 }; then :
1659 ac_retval=0
1660else
1661 $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1
1665fi
1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668 # interfere with the next link command; also delete a directory that is
1669 # left behind by Apple's compiler. We do this before executing the actions.
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_link
1675
1676# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677# -------------------------------------------------------
1678# Tests whether HEADER exists and can be compiled using the include files in
1679# INCLUDES, setting the cache variable VAR accordingly.
1680ac_fn_c_check_header_compile ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
1685if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1687else
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694 eval "$3=yes"
1695else
1696 eval "$3=no"
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699fi
1700eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705} # ac_fn_c_check_header_compile
1706
1707# ac_fn_c_try_cpp LINENO
1708# ----------------------
1709# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_cpp ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } > conftest.i && {
1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738fi
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_cpp
1743
1744# ac_fn_c_try_run LINENO
1745# ----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747# that executables *can* be run.
1748ac_fn_c_try_run ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=$ac_status
1779fi
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1783
1784} # ac_fn_c_try_run
1785
1786# ac_fn_c_check_func LINENO FUNC VAR
1787# ----------------------------------
1788# Tests whether FUNC exists, setting the cache variable VAR accordingly
1789ac_fn_c_check_func ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1801#define $2 innocuous_$2
1802
1803/* System header to define __stub macros and hopefully few prototypes,
1804 which can conflict with char $2 (); below.
1805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806 <limits.h> exists even on freestanding compilers. */
1807
1808#ifdef __STDC__
1809# include <limits.h>
1810#else
1811# include <assert.h>
1812#endif
1813
1814#undef $2
1815
1816/* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1819#ifdef __cplusplus
1820extern "C"
1821#endif
1822char $2 ();
1823/* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826#if defined __stub_$2 || defined __stub___$2
1827choke me
1828#endif
1829
1830int
1831main ()
1832{
1833return $2 ();
1834 ;
1835 return 0;
1836}
1837_ACEOF
1838if ac_fn_c_try_link "$LINENO"; then :
1839 eval "$3=yes"
1840else
1841 eval "$3=no"
1842fi
1843rm -f core conftest.err conftest.$ac_objext \
1844 conftest$ac_exeext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851} # ac_fn_c_check_func
1852
1853# ac_fn_cxx_try_cpp LINENO
1854# ------------------------
1855# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1856ac_fn_cxx_try_cpp ()
1857{
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_cpp conftest.$ac_ext"
1860case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863esac
1864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865$as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1867 ac_status=$?
1868 if test -s conftest.err; then
1869 grep -v '^ *+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1872 fi
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } > conftest.i && {
1875 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1876 test ! -s conftest.err
1877 }; then :
1878 ac_retval=0
1879else
1880 $as_echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 ac_retval=1
1884fi
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1887
1888} # ac_fn_cxx_try_cpp
1889
1890# ac_fn_cxx_try_link LINENO
1891# -------------------------
1892# Try to link conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_cxx_try_link ()
1894{
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext conftest$ac_exeext
1897 if { { ac_try="$ac_link"
1898case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1910 fi
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest$ac_exeext && {
1916 test "$cross_compiling" = yes ||
1917 test -x conftest$ac_exeext
1918 }; then :
1919 ac_retval=0
1920else
1921 $as_echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1
1925fi
1926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928 # interfere with the next link command; also delete a directory that is
1929 # left behind by Apple's compiler. We do this before executing the actions.
1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1933
1934} # ac_fn_cxx_try_link
1935
1936# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937# -------------------------------------------------------
1938# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939# the include files in INCLUDES and setting the cache variable VAR
1940# accordingly.
1941ac_fn_c_check_header_mongrel ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if eval \${$3+:} false; then :
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949fi
1950eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953else
1954 # Is the header compilable?
1955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956$as_echo_n "checking $2 usability... " >&6; }
1957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h. */
1959$4
1960#include <$2>
1961_ACEOF
1962if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_header_compiler=yes
1964else
1965 ac_header_compiler=no
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969$as_echo "$ac_header_compiler" >&6; }
1970
1971# Is the header present?
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973$as_echo_n "checking $2 presence... " >&6; }
1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976#include <$2>
1977_ACEOF
1978if ac_fn_c_try_cpp "$LINENO"; then :
1979 ac_header_preproc=yes
1980else
1981 ac_header_preproc=no
1982fi
1983rm -f conftest.err conftest.i conftest.$ac_ext
1984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985$as_echo "$ac_header_preproc" >&6; }
1986
1987# So? What about this header?
1988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989 yes:no: )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 ;;
1995 no:yes:* )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1999$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2003$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006( $as_echo "## ---------------- ##
2007## Report this to - ##
2008## ---------------- ##"
2009 ) | sed "s/^/$as_me: WARNING: /" >&2
2010 ;;
2011esac
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013$as_echo_n "checking for $2... " >&6; }
2014if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016else
2017 eval "$3=\$ac_header_compiler"
2018fi
2019eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021$as_echo "$ac_res" >&6; }
2022fi
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025} # ac_fn_c_check_header_mongrel
2026cat >config.log <<_ACEOF
2027This file contains any messages produced by compilers while
2028running configure, to aid debugging if configure makes a mistake.
2029
2030It was created by c-ares-test $as_me -, which was
2031generated by GNU Autoconf 2.69. Invocation command line was
2032
2033 $ $0 $@
2034
2035_ACEOF
2036exec 5>>config.log
2037{
2038cat <<_ASUNAME
2039## --------- ##
2040## Platform. ##
2041## --------- ##
2042
2043hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048
2049/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2051
2052/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2053/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2054/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2056/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2057/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2058/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2059
2060_ASUNAME
2061
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 $as_echo "PATH: $as_dir"
2068 done
2069IFS=$as_save_IFS
2070
2071} >&5
2072
2073cat >&5 <<_ACEOF
2074
2075
2076## ----------- ##
2077## Core tests. ##
2078## ----------- ##
2079
2080_ACEOF
2081
2082
2083# Keep a trace of the command line.
2084# Strip out --no-create and --no-recursion so they do not pile up.
2085# Strip out --silent because we don't want to record it for future runs.
2086# Also quote any args containing shell meta-characters.
2087# Make two passes to allow for proper duplicate-argument suppression.
2088ac_configure_args=
2089ac_configure_args0=
2090ac_configure_args1=
2091ac_must_keep_next=false
2092for ac_pass in 1 2
2093do
2094 for ac_arg
2095 do
2096 case $ac_arg in
2097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099 | -silent | --silent | --silen | --sile | --sil)
2100 continue ;;
2101 *\'*)
2102 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2103 esac
2104 case $ac_pass in
2105 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2106 2)
2107 as_fn_append ac_configure_args1 " '$ac_arg'"
2108 if test $ac_must_keep_next = true; then
2109 ac_must_keep_next=false # Got value, back to normal.
2110 else
2111 case $ac_arg in
2112 *=* | --config-cache | -C | -disable-* | --disable-* \
2113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115 | -with-* | --with-* | -without-* | --without-* | --x)
2116 case "$ac_configure_args0 " in
2117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118 esac
2119 ;;
2120 -* ) ac_must_keep_next=true ;;
2121 esac
2122 fi
2123 as_fn_append ac_configure_args " '$ac_arg'"
2124 ;;
2125 esac
2126 done
2127done
2128{ ac_configure_args0=; unset ac_configure_args0;}
2129{ ac_configure_args1=; unset ac_configure_args1;}
2130
2131# When interrupted or exit'd, cleanup temporary files, and complete
2132# config.log. We remove comments because anyway the quotes in there
2133# would cause problems or look ugly.
2134# WARNING: Use '\'' to represent an apostrophe within the trap.
2135# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136trap 'exit_status=$?
2137 # Save into config.log some information that might help in debugging.
2138 {
2139 echo
2140
2141 $as_echo "## ---------------- ##
2142## Cache variables. ##
2143## ---------------- ##"
2144 echo
2145 # The following way of writing the cache mishandles newlines in values,
2146(
2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in #(
2150 *${as_nl}*)
2151 case $ac_var in #(
2152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154 esac
2155 case $ac_var in #(
2156 _ | IFS | as_nl) ;; #(
2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 *) { eval $ac_var=; unset $ac_var;} ;;
2159 esac ;;
2160 esac
2161 done
2162 (set) 2>&1 |
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
2165 sed -n \
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168 ;; #(
2169 *)
2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2171 ;;
2172 esac |
2173 sort
2174)
2175 echo
2176
2177 $as_echo "## ----------------- ##
2178## Output variables. ##
2179## ----------------- ##"
2180 echo
2181 for ac_var in $ac_subst_vars
2182 do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 esac
2187 $as_echo "$ac_var='\''$ac_val'\''"
2188 done | sort
2189 echo
2190
2191 if test -n "$ac_subst_files"; then
2192 $as_echo "## ------------------- ##
2193## File substitutions. ##
2194## ------------------- ##"
2195 echo
2196 for ac_var in $ac_subst_files
2197 do
2198 eval ac_val=\$$ac_var
2199 case $ac_val in
2200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201 esac
2202 $as_echo "$ac_var='\''$ac_val'\''"
2203 done | sort
2204 echo
2205 fi
2206
2207 if test -s confdefs.h; then
2208 $as_echo "## ----------- ##
2209## confdefs.h. ##
2210## ----------- ##"
2211 echo
2212 cat confdefs.h
2213 echo
2214 fi
2215 test "$ac_signal" != 0 &&
2216 $as_echo "$as_me: caught signal $ac_signal"
2217 $as_echo "$as_me: exit $exit_status"
2218 } >&5
2219 rm -f core *.core core.conftest.* &&
2220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221 exit $exit_status
2222' 0
2223for ac_signal in 1 2 13 15; do
2224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2225done
2226ac_signal=0
2227
2228# confdefs.h avoids OS command line length limits that DEFS can exceed.
2229rm -f -r conftest* confdefs.h
2230
2231$as_echo "/* confdefs.h */" > confdefs.h
2232
2233# Predefined preprocessor variables.
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_NAME "$PACKAGE_NAME"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_VERSION "$PACKAGE_VERSION"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_STRING "$PACKAGE_STRING"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2253_ACEOF
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_URL "$PACKAGE_URL"
2257_ACEOF
2258
2259
2260# Let the site file select an alternate cache file if it wants to.
2261# Prefer an explicitly selected file to automatically selected ones.
2262ac_site_file1=NONE
2263ac_site_file2=NONE
2264if test -n "$CONFIG_SITE"; then
2265 # We do not want a PATH search for config.site.
2266 case $CONFIG_SITE in #((
2267 -*) ac_site_file1=./$CONFIG_SITE;;
2268 */*) ac_site_file1=$CONFIG_SITE;;
2269 *) ac_site_file1=./$CONFIG_SITE;;
2270 esac
2271elif test "x$prefix" != xNONE; then
2272 ac_site_file1=$prefix/share/config.site
2273 ac_site_file2=$prefix/etc/config.site
2274else
2275 ac_site_file1=$ac_default_prefix/share/config.site
2276 ac_site_file2=$ac_default_prefix/etc/config.site
2277fi
2278for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2279do
2280 test "x$ac_site_file" = xNONE && continue
2281 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284 sed 's/^/| /' "$ac_site_file" >&5
2285 . "$ac_site_file" \
2286 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288as_fn_error $? "failed to load site script $ac_site_file
2289See \`config.log' for more details" "$LINENO" 5; }
2290 fi
2291done
2292
2293if test -r "$cache_file"; then
2294 # Some versions of bash will fail to source /dev/null (special files
2295 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2296 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298$as_echo "$as_me: loading cache $cache_file" >&6;}
2299 case $cache_file in
2300 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301 *) . "./$cache_file";;
2302 esac
2303 fi
2304else
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306$as_echo "$as_me: creating cache $cache_file" >&6;}
2307 >$cache_file
2308fi
2309
2310# Check that the precious variables saved in the cache have kept the same
2311# value.
2312ac_cache_corrupted=false
2313for ac_var in $ac_precious_vars; do
2314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2315 eval ac_new_set=\$ac_env_${ac_var}_set
2316 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2317 eval ac_new_val=\$ac_env_${ac_var}_value
2318 case $ac_old_set,$ac_new_set in
2319 set,)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,set)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2327 ,);;
2328 *)
2329 if test "x$ac_old_val" != "x$ac_new_val"; then
2330 # differences in whitespace do not lead to failure.
2331 ac_old_val_w=`echo x $ac_old_val`
2332 ac_new_val_w=`echo x $ac_new_val`
2333 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336 ac_cache_corrupted=:
2337 else
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340 eval $ac_var=\$ac_old_val
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2343$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2345$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2346 fi;;
2347 esac
2348 # Pass precious variables to config.status.
2349 if test "$ac_new_set" = set; then
2350 case $ac_new_val in
2351 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352 *) ac_arg=$ac_var=$ac_new_val ;;
2353 esac
2354 case " $ac_configure_args " in
2355 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2356 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2357 esac
2358 fi
2359done
2360if $ac_cache_corrupted; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2365 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2366fi
2367## -------------------- ##
2368## Main body of script. ##
2369## -------------------- ##
2370
2371ac_ext=c
2372ac_cpp='$CPP $CPPFLAGS'
2373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378
2379
2380
2381am__api_version='1.15'
2382
2383ac_aux_dir=
2384for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385 if test -f "$ac_dir/install-sh"; then
2386 ac_aux_dir=$ac_dir
2387 ac_install_sh="$ac_aux_dir/install-sh -c"
2388 break
2389 elif test -f "$ac_dir/install.sh"; then
2390 ac_aux_dir=$ac_dir
2391 ac_install_sh="$ac_aux_dir/install.sh -c"
2392 break
2393 elif test -f "$ac_dir/shtool"; then
2394 ac_aux_dir=$ac_dir
2395 ac_install_sh="$ac_aux_dir/shtool install -c"
2396 break
2397 fi
2398done
2399if test -z "$ac_aux_dir"; then
2400 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2401fi
2402
2403# These three variables are undocumented and unsupported,
2404# and are intended to be withdrawn in a future Autoconf release.
2405# They can cause serious problems if a builder's source tree is in a directory
2406# whose full name contains unusual characters.
2407ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2408ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2409ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2410
2411
2412# Find a good install program. We prefer a C program (faster),
2413# so one script is as good as another. But avoid the broken or
2414# incompatible versions:
2415# SysV /etc/install, /usr/sbin/install
2416# SunOS /usr/etc/install
2417# IRIX /sbin/install
2418# AIX /bin/install
2419# AmigaOS /C/install, which installs bootblocks on floppy discs
2420# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423# OS/2's system install, which has a completely different semantic
2424# ./install, which can be erroneously created by make from ./install.sh.
2425# Reject install programs that cannot install multiple files.
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2427$as_echo_n "checking for a BSD-compatible install... " >&6; }
2428if test -z "$INSTALL"; then
2429if ${ac_cv_path_install+:} false; then :
2430 $as_echo_n "(cached) " >&6
2431else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 # Account for people who put trailing slashes in PATH elements.
2438case $as_dir/ in #((
2439 ./ | .// | /[cC]/* | \
2440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2442 /usr/ucb/* ) ;;
2443 *)
2444 # OSF1 and SCO ODT 3.0 have their own names for install.
2445 # Don't use installbsd from OSF since it installs stuff as root
2446 # by default.
2447 for ac_prog in ginstall scoinst install; do
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2450 if test $ac_prog = install &&
2451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452 # AIX install. It has an incompatible calling convention.
2453 :
2454 elif test $ac_prog = install &&
2455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456 # program-specific install script used by HP pwplus--don't use.
2457 :
2458 else
2459 rm -rf conftest.one conftest.two conftest.dir
2460 echo one > conftest.one
2461 echo two > conftest.two
2462 mkdir conftest.dir
2463 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2464 test -s conftest.one && test -s conftest.two &&
2465 test -s conftest.dir/conftest.one &&
2466 test -s conftest.dir/conftest.two
2467 then
2468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2469 break 3
2470 fi
2471 fi
2472 fi
2473 done
2474 done
2475 ;;
2476esac
2477
2478 done
2479IFS=$as_save_IFS
2480
2481rm -rf conftest.one conftest.two conftest.dir
2482
2483fi
2484 if test "${ac_cv_path_install+set}" = set; then
2485 INSTALL=$ac_cv_path_install
2486 else
2487 # As a last resort, use the slow shell script. Don't cache a
2488 # value for INSTALL within a source directory, because that will
2489 # break other packages using the cache if that directory is
2490 # removed, or if the value is a relative name.
2491 INSTALL=$ac_install_sh
2492 fi
2493fi
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2495$as_echo "$INSTALL" >&6; }
2496
2497# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498# It thinks the first close brace ends the variable substitution.
2499test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2500
2501test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2502
2503test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2504
2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2506$as_echo_n "checking whether build environment is sane... " >&6; }
2507# Reject unsafe characters in $srcdir or the absolute working directory
2508# name. Accept space and tab only in the latter.
2509am_lf='
2510'
2511case `pwd` in
2512 *[\\\"\#\$\&\'\`$am_lf]*)
2513 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2514esac
2515case $srcdir in
2516 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2517 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2518esac
2519
2520# Do 'set' in a subshell so we don't clobber the current shell's
2521# arguments. Must try -L first in case configure is actually a
2522# symlink; some systems play weird games with the mod time of symlinks
2523# (eg FreeBSD returns the mod time of the symlink's containing
2524# directory).
2525if (
2526 am_has_slept=no
2527 for am_try in 1 2; do
2528 echo "timestamp, slept: $am_has_slept" > conftest.file
2529 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2530 if test "$*" = "X"; then
2531 # -L didn't work.
2532 set X `ls -t "$srcdir/configure" conftest.file`
2533 fi
2534 if test "$*" != "X $srcdir/configure conftest.file" \
2535 && test "$*" != "X conftest.file $srcdir/configure"; then
2536
2537 # If neither matched, then we have a broken ls. This can happen
2538 # if, for instance, CONFIG_SHELL is bash and it inherits a
2539 # broken ls alias from the environment. This has actually
2540 # happened. Such a system could not be considered "sane".
2541 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2542 alias in your environment" "$LINENO" 5
2543 fi
2544 if test "$2" = conftest.file || test $am_try -eq 2; then
2545 break
2546 fi
2547 # Just in case.
2548 sleep 1
2549 am_has_slept=yes
2550 done
2551 test "$2" = conftest.file
2552 )
2553then
2554 # Ok.
2555 :
2556else
2557 as_fn_error $? "newly created file is older than distributed files!
2558Check your system clock" "$LINENO" 5
2559fi
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561$as_echo "yes" >&6; }
2562# If we didn't sleep, we still need to ensure time stamps of config.status and
2563# generated files are strictly newer.
2564am_sleep_pid=
2565if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2566 ( sleep 1 ) &
2567 am_sleep_pid=$!
2568fi
2569
2570rm -f conftest.file
2571
2572test "$program_prefix" != NONE &&
2573 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2574# Use a double $ so make ignores it.
2575test "$program_suffix" != NONE &&
2576 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2577# Double any \ or $.
2578# By default was `s,x,x', remove it if useless.
2579ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2580program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2581
2582# Expand $ac_aux_dir to an absolute path.
2583am_aux_dir=`cd "$ac_aux_dir" && pwd`
2584
2585if test x"${MISSING+set}" != xset; then
2586 case $am_aux_dir in
2587 *\ * | *\ *)
2588 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2589 *)
2590 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2591 esac
2592fi
2593# Use eval to expand $SHELL
2594if eval "$MISSING --is-lightweight"; then
2595 am_missing_run="$MISSING "
2596else
2597 am_missing_run=
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2599$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2600fi
2601
2602if test x"${install_sh+set}" != xset; then
2603 case $am_aux_dir in
2604 *\ * | *\ *)
2605 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2606 *)
2607 install_sh="\${SHELL} $am_aux_dir/install-sh"
2608 esac
2609fi
2610
2611# Installed binaries are usually stripped using 'strip' when the user
2612# run "make install-strip". However 'strip' might not be the right
2613# tool to use in cross-compilation environments, therefore Automake
2614# will honor the 'STRIP' environment variable to overrule this program.
2615if test "$cross_compiling" != no; then
2616 if test -n "$ac_tool_prefix"; then
2617 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2618set dummy ${ac_tool_prefix}strip; ac_word=$2
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
2621if ${ac_cv_prog_STRIP+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623else
2624 if test -n "$STRIP"; then
2625 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638done
2639 done
2640IFS=$as_save_IFS
2641
2642fi
2643fi
2644STRIP=$ac_cv_prog_STRIP
2645if test -n "$STRIP"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2647$as_echo "$STRIP" >&6; }
2648else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
2651fi
2652
2653
2654fi
2655if test -z "$ac_cv_prog_STRIP"; then
2656 ac_ct_STRIP=$STRIP
2657 # Extract the first word of "strip", so it can be a program name with args.
2658set dummy strip; ac_word=$2
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660$as_echo_n "checking for $ac_word... " >&6; }
2661if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663else
2664 if test -n "$ac_ct_STRIP"; then
2665 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_ac_ct_STRIP="strip"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678done
2679 done
2680IFS=$as_save_IFS
2681
2682fi
2683fi
2684ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2685if test -n "$ac_ct_STRIP"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2687$as_echo "$ac_ct_STRIP" >&6; }
2688else
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690$as_echo "no" >&6; }
2691fi
2692
2693 if test "x$ac_ct_STRIP" = x; then
2694 STRIP=":"
2695 else
2696 case $cross_compiling:$ac_tool_warned in
2697yes:)
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2700ac_tool_warned=yes ;;
2701esac
2702 STRIP=$ac_ct_STRIP
2703 fi
2704else
2705 STRIP="$ac_cv_prog_STRIP"
2706fi
2707
2708fi
2709INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2712$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2713if test -z "$MKDIR_P"; then
2714 if ${ac_cv_path_mkdir+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_prog in mkdir gmkdir; do
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2725 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2726 'mkdir (GNU coreutils) '* | \
2727 'mkdir (coreutils) '* | \
2728 'mkdir (fileutils) '4.1*)
2729 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2730 break 3;;
2731 esac
2732 done
2733 done
2734 done
2735IFS=$as_save_IFS
2736
2737fi
2738
2739 test -d ./--version && rmdir ./--version
2740 if test "${ac_cv_path_mkdir+set}" = set; then
2741 MKDIR_P="$ac_cv_path_mkdir -p"
2742 else
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for MKDIR_P within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 MKDIR_P="$ac_install_sh -d"
2748 fi
2749fi
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2751$as_echo "$MKDIR_P" >&6; }
2752
2753for ac_prog in gawk mawk nawk awk
2754do
2755 # Extract the first word of "$ac_prog", so it can be a program name with args.
2756set dummy $ac_prog; ac_word=$2
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758$as_echo_n "checking for $ac_word... " >&6; }
2759if ${ac_cv_prog_AWK+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761else
2762 if test -n "$AWK"; then
2763 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2764else
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_AWK="$ac_prog"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776done
2777 done
2778IFS=$as_save_IFS
2779
2780fi
2781fi
2782AWK=$ac_cv_prog_AWK
2783if test -n "$AWK"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785$as_echo "$AWK" >&6; }
2786else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788$as_echo "no" >&6; }
2789fi
2790
2791
2792 test -n "$AWK" && break
2793done
2794
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2797set x ${MAKE-make}
2798ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801else
2802 cat >conftest.make <<\_ACEOF
2803SHELL = /bin/sh
2804all:
2805 @echo '@@@%%%=$(MAKE)=@@@%%%'
2806_ACEOF
2807# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2808case `${MAKE-make} -f conftest.make 2>/dev/null` in
2809 *@@@%%%=?*=@@@%%%*)
2810 eval ac_cv_prog_make_${ac_make}_set=yes;;
2811 *)
2812 eval ac_cv_prog_make_${ac_make}_set=no;;
2813esac
2814rm -f conftest.make
2815fi
2816if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818$as_echo "yes" >&6; }
2819 SET_MAKE=
2820else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
2823 SET_MAKE="MAKE=${MAKE-make}"
2824fi
2825
2826rm -rf .tst 2>/dev/null
2827mkdir .tst 2>/dev/null
2828if test -d .tst; then
2829 am__leading_dot=.
2830else
2831 am__leading_dot=_
2832fi
2833rmdir .tst 2>/dev/null
2834
2835# Check whether --enable-silent-rules was given.
2836if test "${enable_silent_rules+set}" = set; then :
2837 enableval=$enable_silent_rules;
2838fi
2839
2840case $enable_silent_rules in # (((
2841 yes) AM_DEFAULT_VERBOSITY=0;;
2842 no) AM_DEFAULT_VERBOSITY=1;;
2843 *) AM_DEFAULT_VERBOSITY=1;;
2844esac
2845am_make=${MAKE-make}
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2847$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2848if ${am_cv_make_support_nested_variables+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850else
2851 if $as_echo 'TRUE=$(BAR$(V))
2852BAR0=false
2853BAR1=true
2854V=1
2855am__doit:
2856 @$(TRUE)
2857.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2858 am_cv_make_support_nested_variables=yes
2859else
2860 am_cv_make_support_nested_variables=no
2861fi
2862fi
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2864$as_echo "$am_cv_make_support_nested_variables" >&6; }
2865if test $am_cv_make_support_nested_variables = yes; then
2866 AM_V='$(V)'
2867 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2868else
2869 AM_V=$AM_DEFAULT_VERBOSITY
2870 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2871fi
2872AM_BACKSLASH='\'
2873
2874if test "`cd $srcdir && pwd`" != "`pwd`"; then
2875 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2876 # is not polluted with repeated "-I."
2877 am__isrc=' -I$(srcdir)'
2878 # test to see if srcdir already configured
2879 if test -f $srcdir/config.status; then
2880 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2881 fi
2882fi
2883
2884# test whether we have cygpath
2885if test -z "$CYGPATH_W"; then
2886 if (cygpath --version) >/dev/null 2>/dev/null; then
2887 CYGPATH_W='cygpath -w'
2888 else
2889 CYGPATH_W=echo
2890 fi
2891fi
2892
2893
2894# Define the identity of the package.
2895 PACKAGE='c-ares-test'
2896 VERSION='-'
2897
2898
2899# Some tools Automake needs.
2900
2901ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2902
2903
2904AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2905
2906
2907AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2908
2909
2910AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2911
2912
2913MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2914
2915# For better backward compatibility. To be removed once Automake 1.9.x
2916# dies out for good. For more background, see:
2917# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2918# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2919mkdir_p='$(MKDIR_P)'
2920
2921# We need awk for the "check" target (and possibly the TAP driver). The
2922# system "awk" is bad on some platforms.
2923# Always define AMTAR for backward compatibility. Yes, it's still used
2924# in the wild :-( We should find a proper way to deprecate it ...
2925AMTAR='$${TAR-tar}'
2926
2927
2928# We'll loop over all known methods to create a tar archive until one works.
2929_am_tools='gnutar pax cpio none'
2930
2931am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2932
2933
2934
2935
2936
2937
2938# POSIX will say in a future version that running "rm -f" with no argument
2939# is OK; and we want to be able to make that assumption in our Makefile
2940# recipes. So use an aggressive probe to check that the usage we want is
2941# actually supported "in the wild" to an acceptable degree.
2942# See automake bug#10828.
2943# To make any issue more visible, cause the running configure to be aborted
2944# by default if the 'rm' program in use doesn't match our expectations; the
2945# user can still override this though.
2946if rm -f && rm -fr && rm -rf; then : OK; else
2947 cat >&2 <<'END'
2948Oops!
2949
2950Your 'rm' program seems unable to run without file operands specified
2951on the command line, even when the '-f' option is present. This is contrary
2952to the behaviour of most rm programs out there, and not conforming with
2953the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2954
2955Please tell bug-automake@gnu.org about your system, including the value
2956of your $PATH and any error possibly output before this message. This
2957can help us improve future automake versions.
2958
2959END
2960 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2961 echo 'Configuration will proceed anyway, since you have set the' >&2
2962 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2963 echo >&2
2964 else
2965 cat >&2 <<'END'
2966Aborting the configuration process, to ensure you take notice of the issue.
2967
2968You can download and install GNU coreutils to get an 'rm' implementation
2969that behaves properly: <http://www.gnu.org/software/coreutils/>.
2970
2971If you want to complete the configuration process using your problematic
2972'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2973to "yes", and re-run configure.
2974
2975END
2976 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2977 fi
2978fi
2979
2980# Check whether --enable-silent-rules was given.
2981if test "${enable_silent_rules+set}" = set; then :
2982 enableval=$enable_silent_rules;
2983fi
2984
2985case $enable_silent_rules in # (((
2986 yes) AM_DEFAULT_VERBOSITY=0;;
2987 no) AM_DEFAULT_VERBOSITY=1;;
2988 *) AM_DEFAULT_VERBOSITY=0;;
2989esac
2990am_make=${MAKE-make}
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2992$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2993if ${am_cv_make_support_nested_variables+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995else
2996 if $as_echo 'TRUE=$(BAR$(V))
2997BAR0=false
2998BAR1=true
2999V=1
3000am__doit:
3001 @$(TRUE)
3002.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3003 am_cv_make_support_nested_variables=yes
3004else
3005 am_cv_make_support_nested_variables=no
3006fi
3007fi
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3009$as_echo "$am_cv_make_support_nested_variables" >&6; }
3010if test $am_cv_make_support_nested_variables = yes; then
3011 AM_V='$(V)'
3012 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3013else
3014 AM_V=$AM_DEFAULT_VERBOSITY
3015 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3016fi
3017AM_BACKSLASH='\'
3018
3019
3020ac_ext=cpp
3021ac_cpp='$CXXCPP $CPPFLAGS'
3022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3025if test -z "$CXX"; then
3026 if test -n "$CCC"; then
3027 CXX=$CCC
3028 else
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3031 do
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if ${ac_cv_prog_CXX+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038else
3039 if test -n "$CXX"; then
3040 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053done
3054 done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059CXX=$ac_cv_prog_CXX
3060if test -n "$CXX"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3062$as_echo "$CXX" >&6; }
3063else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069 test -n "$CXX" && break
3070 done
3071fi
3072if test -z "$CXX"; then
3073 ac_ct_CXX=$CXX
3074 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3075do
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077set dummy $ac_prog; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082else
3083 if test -n "$ac_ct_CXX"; then
3084 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_ac_ct_CXX="$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097done
3098 done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3104if test -n "$ac_ct_CXX"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3106$as_echo "$ac_ct_CXX" >&6; }
3107else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113 test -n "$ac_ct_CXX" && break
3114done
3115
3116 if test "x$ac_ct_CXX" = x; then
3117 CXX="g++"
3118 else
3119 case $cross_compiling:$ac_tool_warned in
3120yes:)
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123ac_tool_warned=yes ;;
3124esac
3125 CXX=$ac_ct_CXX
3126 fi
3127fi
3128
3129 fi
3130fi
3131# Provide some information about the compiler.
3132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3133set X $ac_compile
3134ac_compiler=$2
3135for ac_option in --version -v -V -qversion; do
3136 { { ac_try="$ac_compiler $ac_option >&5"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142$as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3144 ac_status=$?
3145 if test -s conftest.err; then
3146 sed '10a\
3147... rest of stderr output deleted ...
3148 10q' conftest.err >conftest.er1
3149 cat conftest.er1 >&5
3150 fi
3151 rm -f conftest.er1 conftest.err
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }
3154done
3155
3156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157/* end confdefs.h. */
3158
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167ac_clean_files_save=$ac_clean_files
3168ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3169# Try to create an executable without -o first, disregard a.out.
3170# It will help us diagnose broken compilers, and finding out an intuition
3171# of exeext.
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3173$as_echo_n "checking whether the C++ compiler works... " >&6; }
3174ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3175
3176# The possible output files:
3177ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3178
3179ac_rmfiles=
3180for ac_file in $ac_files
3181do
3182 case $ac_file in
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3185 esac
3186done
3187rm -f $ac_rmfiles
3188
3189if { { ac_try="$ac_link_default"
3190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link_default") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202# in a Makefile. We should not override ac_cv_exeext if it was cached,
3203# so that the user can short-circuit this test for compilers unknown to
3204# Autoconf.
3205for ac_file in $ac_files ''
3206do
3207 test -f "$ac_file" || continue
3208 case $ac_file in
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3210 ;;
3211 [ab].out )
3212 # We found the default executable, but exeext='' is most
3213 # certainly right.
3214 break;;
3215 *.* )
3216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3217 then :; else
3218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 fi
3220 # We set ac_cv_exeext here because the later test for it is not
3221 # safe: cross compilers may not add the suffix if given an `-o'
3222 # argument, so we may need to know it at that point already.
3223 # Even if this section looks crufty: it has the advantage of
3224 # actually working.
3225 break;;
3226 * )
3227 break;;
3228 esac
3229done
3230test "$ac_cv_exeext" = no && ac_cv_exeext=
3231
3232else
3233 ac_file=''
3234fi
3235if test -z "$ac_file"; then :
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238$as_echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error 77 "C++ compiler cannot create executables
3244See \`config.log' for more details" "$LINENO" 5; }
3245else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247$as_echo "yes" >&6; }
3248fi
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3250$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252$as_echo "$ac_file" >&6; }
3253ac_exeext=$ac_cv_exeext
3254
3255rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3256ac_clean_files=$ac_clean_files_save
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3258$as_echo_n "checking for suffix of executables... " >&6; }
3259if { { ac_try="$ac_link"
3260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3272# work properly (i.e., refer to `conftest.exe'), while it won't with
3273# `rm'.
3274for ac_file in conftest.exe conftest conftest.*; do
3275 test -f "$ac_file" || continue
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 break;;
3280 * ) break;;
3281 esac
3282done
3283else
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287See \`config.log' for more details" "$LINENO" 5; }
3288fi
3289rm -f conftest conftest$ac_cv_exeext
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3291$as_echo "$ac_cv_exeext" >&6; }
3292
3293rm -f conftest.$ac_ext
3294EXEEXT=$ac_cv_exeext
3295ac_exeext=$EXEEXT
3296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297/* end confdefs.h. */
3298#include <stdio.h>
3299int
3300main ()
3301{
3302FILE *f = fopen ("conftest.out", "w");
3303 return ferror (f) || fclose (f) != 0;
3304
3305 ;
3306 return 0;
3307}
3308_ACEOF
3309ac_clean_files="$ac_clean_files conftest.out"
3310# Check that the compiler produces executables we can run. If not, either
3311# the compiler is broken, or we cross compile.
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313$as_echo_n "checking whether we are cross compiling... " >&6; }
3314if test "$cross_compiling" != yes; then
3315 { { ac_try="$ac_link"
3316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }
3326 if { ac_try='./conftest$ac_cv_exeext'
3327 { { case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332$as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_try") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; }; then
3337 cross_compiling=no
3338 else
3339 if test "$cross_compiling" = maybe; then
3340 cross_compiling=yes
3341 else
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344as_fn_error $? "cannot run C++ compiled programs.
3345If you meant to cross compile, use \`--host'.
3346See \`config.log' for more details" "$LINENO" 5; }
3347 fi
3348 fi
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351$as_echo "$cross_compiling" >&6; }
3352
3353rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354ac_clean_files=$ac_clean_files_save
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3356$as_echo_n "checking for suffix of object files... " >&6; }
3357if ${ac_cv_objext+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359else
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361/* end confdefs.h. */
3362
3363int
3364main ()
3365{
3366
3367 ;
3368 return 0;
3369}
3370_ACEOF
3371rm -f conftest.o conftest.obj
3372if { { ac_try="$ac_compile"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_compile") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
3385 case $ac_file in
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388 break;;
3389 esac
3390done
3391else
3392 $as_echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397as_fn_error $? "cannot compute suffix of object files: cannot compile
3398See \`config.log' for more details" "$LINENO" 5; }
3399fi
3400rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401fi
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3403$as_echo "$ac_cv_objext" >&6; }
3404OBJEXT=$ac_cv_objext
3405ac_objext=$OBJEXT
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3407$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3408if ${ac_cv_cxx_compiler_gnu+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410else
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h. */
3413
3414int
3415main ()
3416{
3417#ifndef __GNUC__
3418 choke me
3419#endif
3420
3421 ;
3422 return 0;
3423}
3424_ACEOF
3425if ac_fn_cxx_try_compile "$LINENO"; then :
3426 ac_compiler_gnu=yes
3427else
3428 ac_compiler_gnu=no
3429fi
3430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3432
3433fi
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3435$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3436if test $ac_compiler_gnu = yes; then
3437 GXX=yes
3438else
3439 GXX=
3440fi
3441ac_test_CXXFLAGS=${CXXFLAGS+set}
3442ac_save_CXXFLAGS=$CXXFLAGS
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3444$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3445if ${ac_cv_prog_cxx_g+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447else
3448 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3449 ac_cxx_werror_flag=yes
3450 ac_cv_prog_cxx_g=no
3451 CXXFLAGS="-g"
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453/* end confdefs.h. */
3454
3455int
3456main ()
3457{
3458
3459 ;
3460 return 0;
3461}
3462_ACEOF
3463if ac_fn_cxx_try_compile "$LINENO"; then :
3464 ac_cv_prog_cxx_g=yes
3465else
3466 CXXFLAGS=""
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h. */
3469
3470int
3471main ()
3472{
3473
3474 ;
3475 return 0;
3476}
3477_ACEOF
3478if ac_fn_cxx_try_compile "$LINENO"; then :
3479
3480else
3481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3482 CXXFLAGS="-g"
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484/* end confdefs.h. */
3485
3486int
3487main ()
3488{
3489
3490 ;
3491 return 0;
3492}
3493_ACEOF
3494if ac_fn_cxx_try_compile "$LINENO"; then :
3495 ac_cv_prog_cxx_g=yes
3496fi
3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498fi
3499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500fi
3501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3503fi
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3505$as_echo "$ac_cv_prog_cxx_g" >&6; }
3506if test "$ac_test_CXXFLAGS" = set; then
3507 CXXFLAGS=$ac_save_CXXFLAGS
3508elif test $ac_cv_prog_cxx_g = yes; then
3509 if test "$GXX" = yes; then
3510 CXXFLAGS="-g -O2"
3511 else
3512 CXXFLAGS="-g"
3513 fi
3514else
3515 if test "$GXX" = yes; then
3516 CXXFLAGS="-O2"
3517 else
3518 CXXFLAGS=
3519 fi
3520fi
3521ac_ext=c
3522ac_cpp='$CPP $CPPFLAGS'
3523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526DEPDIR="${am__leading_dot}deps"
3527
3528ac_config_commands="$ac_config_commands depfiles"
3529
3530
3531am_make=${MAKE-make}
3532cat > confinc << 'END'
3533am__doit:
3534 @echo this is the am__doit target
3535.PHONY: am__doit
3536END
3537# If we don't find an include directive, just comment out the code.
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3539$as_echo_n "checking for style of include used by $am_make... " >&6; }
3540am__include="#"
3541am__quote=
3542_am_result=none
3543# First try GNU make style include.
3544echo "include confinc" > confmf
3545# Ignore all kinds of additional output from 'make'.
3546case `$am_make -s -f confmf 2> /dev/null` in #(
3547*the\ am__doit\ target*)
3548 am__include=include
3549 am__quote=
3550 _am_result=GNU
3551 ;;
3552esac
3553# Now try BSD make style include.
3554if test "$am__include" = "#"; then
3555 echo '.include "confinc"' > confmf
3556 case `$am_make -s -f confmf 2> /dev/null` in #(
3557 *the\ am__doit\ target*)
3558 am__include=.include
3559 am__quote="\""
3560 _am_result=BSD
3561 ;;
3562 esac
3563fi
3564
3565
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3567$as_echo "$_am_result" >&6; }
3568rm -f confinc confmf
3569
3570# Check whether --enable-dependency-tracking was given.
3571if test "${enable_dependency_tracking+set}" = set; then :
3572 enableval=$enable_dependency_tracking;
3573fi
3574
3575if test "x$enable_dependency_tracking" != xno; then
3576 am_depcomp="$ac_aux_dir/depcomp"
3577 AMDEPBACKSLASH='\'
3578 am__nodep='_no'
3579fi
3580 if test "x$enable_dependency_tracking" != xno; then
3581 AMDEP_TRUE=
3582 AMDEP_FALSE='#'
3583else
3584 AMDEP_TRUE='#'
3585 AMDEP_FALSE=
3586fi
3587
3588
3589
3590depcc="$CXX" am_compiler_list=
3591
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3593$as_echo_n "checking dependency style of $depcc... " >&6; }
3594if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596else
3597 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3598 # We make a subdir and do the tests there. Otherwise we can end up
3599 # making bogus files that we don't know about and never remove. For
3600 # instance it was reported that on HP-UX the gcc test will end up
3601 # making a dummy file named 'D' -- because '-MD' means "put the output
3602 # in D".
3603 rm -rf conftest.dir
3604 mkdir conftest.dir
3605 # Copy depcomp to subdir because otherwise we won't find it if we're
3606 # using a relative directory.
3607 cp "$am_depcomp" conftest.dir
3608 cd conftest.dir
3609 # We will build objects and dependencies in a subdirectory because
3610 # it helps to detect inapplicable dependency modes. For instance
3611 # both Tru64's cc and ICC support -MD to output dependencies as a
3612 # side effect of compilation, but ICC will put the dependencies in
3613 # the current directory while Tru64 will put them in the object
3614 # directory.
3615 mkdir sub
3616
3617 am_cv_CXX_dependencies_compiler_type=none
3618 if test "$am_compiler_list" = ""; then
3619 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3620 fi
3621 am__universal=false
3622 case " $depcc " in #(
3623 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3624 esac
3625
3626 for depmode in $am_compiler_list; do
3627 # Setup a source with many dependencies, because some compilers
3628 # like to wrap large dependency lists on column 80 (with \), and
3629 # we should not choose a depcomp mode which is confused by this.
3630 #
3631 # We need to recreate these files for each test, as the compiler may
3632 # overwrite some of them when testing with obscure command lines.
3633 # This happens at least with the AIX C compiler.
3634 : > sub/conftest.c
3635 for i in 1 2 3 4 5 6; do
3636 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3637 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3638 # Solaris 10 /bin/sh.
3639 echo '/* dummy */' > sub/conftst$i.h
3640 done
3641 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3642
3643 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3644 # mode. It turns out that the SunPro C++ compiler does not properly
3645 # handle '-M -o', and we need to detect this. Also, some Intel
3646 # versions had trouble with output in subdirs.
3647 am__obj=sub/conftest.${OBJEXT-o}
3648 am__minus_obj="-o $am__obj"
3649 case $depmode in
3650 gcc)
3651 # This depmode causes a compiler race in universal mode.
3652 test "$am__universal" = false || continue
3653 ;;
3654 nosideeffect)
3655 # After this tag, mechanisms are not by side-effect, so they'll
3656 # only be used when explicitly requested.
3657 if test "x$enable_dependency_tracking" = xyes; then
3658 continue
3659 else
3660 break
3661 fi
3662 ;;
3663 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3664 # This compiler won't grok '-c -o', but also, the minuso test has
3665 # not run yet. These depmodes are late enough in the game, and
3666 # so weak that their functioning should not be impacted.
3667 am__obj=conftest.${OBJEXT-o}
3668 am__minus_obj=
3669 ;;
3670 none) break ;;
3671 esac
3672 if depmode=$depmode \
3673 source=sub/conftest.c object=$am__obj \
3674 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3675 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3676 >/dev/null 2>conftest.err &&
3677 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3678 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3679 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3680 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3681 # icc doesn't choke on unknown options, it will just issue warnings
3682 # or remarks (even with -Werror). So we grep stderr for any message
3683 # that says an option was ignored or not supported.
3684 # When given -MP, icc 7.0 and 7.1 complain thusly:
3685 # icc: Command line warning: ignoring option '-M'; no argument required
3686 # The diagnosis changed in icc 8.0:
3687 # icc: Command line remark: option '-MP' not supported
3688 if (grep 'ignoring option' conftest.err ||
3689 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3690 am_cv_CXX_dependencies_compiler_type=$depmode
3691 break
3692 fi
3693 fi
3694 done
3695
3696 cd ..
3697 rm -rf conftest.dir
3698else
3699 am_cv_CXX_dependencies_compiler_type=none
3700fi
3701
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3704$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3705CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3706
3707 if
3708 test "x$enable_dependency_tracking" != xno \
3709 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3710 am__fastdepCXX_TRUE=
3711 am__fastdepCXX_FALSE='#'
3712else
3713 am__fastdepCXX_TRUE='#'
3714 am__fastdepCXX_FALSE=
3715fi
3716
3717
3718
3719 ax_cxx_compile_cxx11_required=true
3720 ac_ext=cpp
3721ac_cpp='$CXXCPP $CPPFLAGS'
3722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3725 ac_success=no
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
3727$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
3728if ${ax_cv_cxx_compile_cxx11+:} false; then :
3729 $as_echo_n "(cached) " >&6
3730else
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732/* end confdefs.h. */
3733
3734 template <typename T>
3735 struct check
3736 {
3737 static_assert(sizeof(int) <= sizeof(T), "not big enough");
3738 };
3739
3740 struct Base {
3741 virtual void f() {}
3742 };
3743 struct Child : public Base {
3744 virtual void f() override {}
3745 };
3746
3747 typedef check<check<bool>> right_angle_brackets;
3748
3749 int a;
3750 decltype(a) b;
3751
3752 typedef check<int> check_type;
3753 check_type c;
3754 check_type&& cr = static_cast<check_type&&>(c);
3755
3756 auto d = a;
3757 auto l = [](){};
3758
3759 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
3760 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
3761 namespace test_template_alias_sfinae {
3762 struct foo {};
3763
3764 template<typename T>
3765 using member = typename T::member_type;
3766
3767 template<typename T>
3768 void func(...) {}
3769
3770 template<typename T>
3771 void func(member<T>*) {}
3772
3773 void test();
3774
3775 void test() {
3776 func<foo>(0);
3777 }
3778 }
3779
3780_ACEOF
3781if ac_fn_cxx_try_compile "$LINENO"; then :
3782 ax_cv_cxx_compile_cxx11=yes
3783else
3784 ax_cv_cxx_compile_cxx11=no
3785fi
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
3789$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
3790 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
3791 ac_success=yes
3792 fi
3793
3794
3795
3796 if test x$ac_success = xno; then
3797 for switch in -std=c++11 -std=c++0x; do
3798 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
3800$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
3801if eval \${$cachevar+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803else
3804 ac_save_CXXFLAGS="$CXXFLAGS"
3805 CXXFLAGS="$CXXFLAGS $switch"
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h. */
3808
3809 template <typename T>
3810 struct check
3811 {
3812 static_assert(sizeof(int) <= sizeof(T), "not big enough");
3813 };
3814
3815 struct Base {
3816 virtual void f() {}
3817 };
3818 struct Child : public Base {
3819 virtual void f() override {}
3820 };
3821
3822 typedef check<check<bool>> right_angle_brackets;
3823
3824 int a;
3825 decltype(a) b;
3826
3827 typedef check<int> check_type;
3828 check_type c;
3829 check_type&& cr = static_cast<check_type&&>(c);
3830
3831 auto d = a;
3832 auto l = [](){};
3833
3834 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
3835 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
3836 namespace test_template_alias_sfinae {
3837 struct foo {};
3838
3839 template<typename T>
3840 using member = typename T::member_type;
3841
3842 template<typename T>
3843 void func(...) {}
3844
3845 template<typename T>
3846 void func(member<T>*) {}
3847
3848 void test();
3849
3850 void test() {
3851 func<foo>(0);
3852 }
3853 }
3854
3855_ACEOF
3856if ac_fn_cxx_try_compile "$LINENO"; then :
3857 eval $cachevar=yes
3858else
3859 eval $cachevar=no
3860fi
3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 CXXFLAGS="$ac_save_CXXFLAGS"
3863fi
3864eval ac_res=\$$cachevar
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3866$as_echo "$ac_res" >&6; }
3867 if eval test x\$$cachevar = xyes; then
3868 CXXFLAGS="$CXXFLAGS $switch"
3869 ac_success=yes
3870 break
3871 fi
3872 done
3873 fi
3874 ac_ext=c
3875ac_cpp='$CPP $CPPFLAGS'
3876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879
3880 if test x$ax_cxx_compile_cxx11_required = xtrue; then
3881 if test x$ac_success = xno; then
3882 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
3883 fi
3884 else
3885 if test x$ac_success = xno; then
3886 HAVE_CXX11=0
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
3888$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
3889 else
3890 HAVE_CXX11=1
3891
3892$as_echo "#define HAVE_CXX11 1" >>confdefs.h
3893
3894 fi
3895
3896
3897 fi
3898
3899case `pwd` in
3900 *\ * | *\ *)
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3902$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3903esac
3904
3905
3906
3907macro_version='2.4.6'
3908macro_revision='2.4.6'
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922ltmain=$ac_aux_dir/ltmain.sh
3923
3924# Make sure we can run config.sub.
3925$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3926 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3927
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3929$as_echo_n "checking build system type... " >&6; }
3930if ${ac_cv_build+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932else
3933 ac_build_alias=$build_alias
3934test "x$ac_build_alias" = x &&
3935 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3936test "x$ac_build_alias" = x &&
3937 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3938ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3939 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3940
3941fi
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3943$as_echo "$ac_cv_build" >&6; }
3944case $ac_cv_build in
3945*-*-*) ;;
3946*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3947esac
3948build=$ac_cv_build
3949ac_save_IFS=$IFS; IFS='-'
3950set x $ac_cv_build
3951shift
3952build_cpu=$1
3953build_vendor=$2
3954shift; shift
3955# Remember, the first character of IFS is used to create $*,
3956# except with old shells:
3957build_os=$*
3958IFS=$ac_save_IFS
3959case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3960
3961
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3963$as_echo_n "checking host system type... " >&6; }
3964if ${ac_cv_host+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966else
3967 if test "x$host_alias" = x; then
3968 ac_cv_host=$ac_cv_build
3969else
3970 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3971 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3972fi
3973
3974fi
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3976$as_echo "$ac_cv_host" >&6; }
3977case $ac_cv_host in
3978*-*-*) ;;
3979*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3980esac
3981host=$ac_cv_host
3982ac_save_IFS=$IFS; IFS='-'
3983set x $ac_cv_host
3984shift
3985host_cpu=$1
3986host_vendor=$2
3987shift; shift
3988# Remember, the first character of IFS is used to create $*,
3989# except with old shells:
3990host_os=$*
3991IFS=$ac_save_IFS
3992case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3993
3994
3995# Backslashify metacharacters that are still active within
3996# double-quoted strings.
3997sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3998
3999# Same as above, but do not quote variable references.
4000double_quote_subst='s/\(["`\\]\)/\\\1/g'
4001
4002# Sed substitution to delay expansion of an escaped shell variable in a
4003# double_quote_subst'ed string.
4004delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4005
4006# Sed substitution to delay expansion of an escaped single quote.
4007delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4008
4009# Sed substitution to avoid accidental globbing in evaled expressions
4010no_glob_subst='s/\*/\\\*/g'
4011
4012ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4013ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4014ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4015
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4017$as_echo_n "checking how to print strings... " >&6; }
4018# Test print first, because it will be a builtin if present.
4019if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4020 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4021 ECHO='print -r --'
4022elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4023 ECHO='printf %s\n'
4024else
4025 # Use this function as a fallback that always works.
4026 func_fallback_echo ()
4027 {
4028 eval 'cat <<_LTECHO_EOF
4029$1
4030_LTECHO_EOF'
4031 }
4032 ECHO='func_fallback_echo'
4033fi
4034
4035# func_echo_all arg...
4036# Invoke $ECHO with all args, space-separated.
4037func_echo_all ()
4038{
4039 $ECHO ""
4040}
4041
4042case $ECHO in
4043 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4044$as_echo "printf" >&6; } ;;
4045 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4046$as_echo "print -r" >&6; } ;;
4047 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4048$as_echo "cat" >&6; } ;;
4049esac
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064ac_ext=c
4065ac_cpp='$CPP $CPPFLAGS'
4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069if test -n "$ac_tool_prefix"; then
4070 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4071set dummy ${ac_tool_prefix}gcc; ac_word=$2
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073$as_echo_n "checking for $ac_word... " >&6; }
4074if ${ac_cv_prog_CC+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076else
4077 if test -n "$CC"; then
4078 ac_cv_prog_CC="$CC" # Let the user override the test.
4079else
4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH
4082do
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 break 2
4090 fi
4091done
4092 done
4093IFS=$as_save_IFS
4094
4095fi
4096fi
4097CC=$ac_cv_prog_CC
4098if test -n "$CC"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100$as_echo "$CC" >&6; }
4101else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103$as_echo "no" >&6; }
4104fi
4105
4106
4107fi
4108if test -z "$ac_cv_prog_CC"; then
4109 ac_ct_CC=$CC
4110 # Extract the first word of "gcc", so it can be a program name with args.
4111set dummy gcc; ac_word=$2
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113$as_echo_n "checking for $ac_word... " >&6; }
4114if ${ac_cv_prog_ac_ct_CC+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116else
4117 if test -n "$ac_ct_CC"; then
4118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4119else
4120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH
4122do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_ac_ct_CC="gcc"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4130 fi
4131done
4132 done
4133IFS=$as_save_IFS
4134
4135fi
4136fi
4137ac_ct_CC=$ac_cv_prog_ac_ct_CC
4138if test -n "$ac_ct_CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4140$as_echo "$ac_ct_CC" >&6; }
4141else
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143$as_echo "no" >&6; }
4144fi
4145
4146 if test "x$ac_ct_CC" = x; then
4147 CC=""
4148 else
4149 case $cross_compiling:$ac_tool_warned in
4150yes:)
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153ac_tool_warned=yes ;;
4154esac
4155 CC=$ac_ct_CC
4156 fi
4157else
4158 CC="$ac_cv_prog_CC"
4159fi
4160
4161if test -z "$CC"; then
4162 if test -n "$ac_tool_prefix"; then
4163 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4164set dummy ${ac_tool_prefix}cc; ac_word=$2
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166$as_echo_n "checking for $ac_word... " >&6; }
4167if ${ac_cv_prog_CC+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169else
4170 if test -n "$CC"; then
4171 ac_cv_prog_CC="$CC" # Let the user override the test.
4172else
4173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174for as_dir in $PATH
4175do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_CC="${ac_tool_prefix}cc"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184done
4185 done
4186IFS=$as_save_IFS
4187
4188fi
4189fi
4190CC=$ac_cv_prog_CC
4191if test -n "$CC"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193$as_echo "$CC" >&6; }
4194else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196$as_echo "no" >&6; }
4197fi
4198
4199
4200 fi
4201fi
4202if test -z "$CC"; then
4203 # Extract the first word of "cc", so it can be a program name with args.
4204set dummy cc; ac_word=$2
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206$as_echo_n "checking for $ac_word... " >&6; }
4207if ${ac_cv_prog_CC+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209else
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4212else
4213 ac_prog_rejected=no
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4222 ac_prog_rejected=yes
4223 continue
4224 fi
4225 ac_cv_prog_CC="cc"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229done
4230 done
4231IFS=$as_save_IFS
4232
4233if test $ac_prog_rejected = yes; then
4234 # We found a bogon in the path, so make sure we never use it.
4235 set dummy $ac_cv_prog_CC
4236 shift
4237 if test $# != 0; then
4238 # We chose a different compiler from the bogus one.
4239 # However, it has the same basename, so the bogon will be chosen
4240 # first if we set CC to just the basename; use the full file name.
4241 shift
4242 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4243 fi
4244fi
4245fi
4246fi
4247CC=$ac_cv_prog_CC
4248if test -n "$CC"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250$as_echo "$CC" >&6; }
4251else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
4254fi
4255
4256
4257fi
4258if test -z "$CC"; then
4259 if test -n "$ac_tool_prefix"; then
4260 for ac_prog in cl.exe
4261 do
4262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if ${ac_cv_prog_CC+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268else
4269 if test -n "$CC"; then
4270 ac_cv_prog_CC="$CC" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283done
4284 done
4285IFS=$as_save_IFS
4286
4287fi
4288fi
4289CC=$ac_cv_prog_CC
4290if test -n "$CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292$as_echo "$CC" >&6; }
4293else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
4296fi
4297
4298
4299 test -n "$CC" && break
4300 done
4301fi
4302if test -z "$CC"; then
4303 ac_ct_CC=$CC
4304 for ac_prog in cl.exe
4305do
4306 # Extract the first word of "$ac_prog", so it can be a program name with args.
4307set dummy $ac_prog; ac_word=$2
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309$as_echo_n "checking for $ac_word... " >&6; }
4310if ${ac_cv_prog_ac_ct_CC+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312else
4313 if test -n "$ac_ct_CC"; then
4314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4315else
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_ac_ct_CC="$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327done
4328 done
4329IFS=$as_save_IFS
4330
4331fi
4332fi
4333ac_ct_CC=$ac_cv_prog_ac_ct_CC
4334if test -n "$ac_ct_CC"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4336$as_echo "$ac_ct_CC" >&6; }
4337else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339$as_echo "no" >&6; }
4340fi
4341
4342
4343 test -n "$ac_ct_CC" && break
4344done
4345
4346 if test "x$ac_ct_CC" = x; then
4347 CC=""
4348 else
4349 case $cross_compiling:$ac_tool_warned in
4350yes:)
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4353ac_tool_warned=yes ;;
4354esac
4355 CC=$ac_ct_CC
4356 fi
4357fi
4358
4359fi
4360
4361
4362test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364as_fn_error $? "no acceptable C compiler found in \$PATH
4365See \`config.log' for more details" "$LINENO" 5; }
4366
4367# Provide some information about the compiler.
4368$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4369set X $ac_compile
4370ac_compiler=$2
4371for ac_option in --version -v -V -qversion; do
4372 { { ac_try="$ac_compiler $ac_option >&5"
4373case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376esac
4377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378$as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4380 ac_status=$?
4381 if test -s conftest.err; then
4382 sed '10a\
4383... rest of stderr output deleted ...
4384 10q' conftest.err >conftest.er1
4385 cat conftest.er1 >&5
4386 fi
4387 rm -f conftest.er1 conftest.err
4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; }
4390done
4391
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4393$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4394if ${ac_cv_c_compiler_gnu+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396else
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h. */
4399
4400int
4401main ()
4402{
4403#ifndef __GNUC__
4404 choke me
4405#endif
4406
4407 ;
4408 return 0;
4409}
4410_ACEOF
4411if ac_fn_c_try_compile "$LINENO"; then :
4412 ac_compiler_gnu=yes
4413else
4414 ac_compiler_gnu=no
4415fi
4416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417ac_cv_c_compiler_gnu=$ac_compiler_gnu
4418
4419fi
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4421$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4422if test $ac_compiler_gnu = yes; then
4423 GCC=yes
4424else
4425 GCC=
4426fi
4427ac_test_CFLAGS=${CFLAGS+set}
4428ac_save_CFLAGS=$CFLAGS
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4430$as_echo_n "checking whether $CC accepts -g... " >&6; }
4431if ${ac_cv_prog_cc_g+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433else
4434 ac_save_c_werror_flag=$ac_c_werror_flag
4435 ac_c_werror_flag=yes
4436 ac_cv_prog_cc_g=no
4437 CFLAGS="-g"
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h. */
4440
4441int
4442main ()
4443{
4444
4445 ;
4446 return 0;
4447}
4448_ACEOF
4449if ac_fn_c_try_compile "$LINENO"; then :
4450 ac_cv_prog_cc_g=yes
4451else
4452 CFLAGS=""
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454/* end confdefs.h. */
4455
4456int
4457main ()
4458{
4459
4460 ;
4461 return 0;
4462}
4463_ACEOF
4464if ac_fn_c_try_compile "$LINENO"; then :
4465
4466else
4467 ac_c_werror_flag=$ac_save_c_werror_flag
4468 CFLAGS="-g"
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470/* end confdefs.h. */
4471
4472int
4473main ()
4474{
4475
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_prog_cc_g=yes
4482fi
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484fi
4485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486fi
4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 ac_c_werror_flag=$ac_save_c_werror_flag
4489fi
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4491$as_echo "$ac_cv_prog_cc_g" >&6; }
4492if test "$ac_test_CFLAGS" = set; then
4493 CFLAGS=$ac_save_CFLAGS
4494elif test $ac_cv_prog_cc_g = yes; then
4495 if test "$GCC" = yes; then
4496 CFLAGS="-g -O2"
4497 else
4498 CFLAGS="-g"
4499 fi
4500else
4501 if test "$GCC" = yes; then
4502 CFLAGS="-O2"
4503 else
4504 CFLAGS=
4505 fi
4506fi
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4508$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4509if ${ac_cv_prog_cc_c89+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511else
4512 ac_cv_prog_cc_c89=no
4513ac_save_CC=$CC
4514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h. */
4516#include <stdarg.h>
4517#include <stdio.h>
4518struct stat;
4519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4520struct buf { int x; };
4521FILE * (*rcsopen) (struct buf *, struct stat *, int);
4522static char *e (p, i)
4523 char **p;
4524 int i;
4525{
4526 return p[i];
4527}
4528static char *f (char * (*g) (char **, int), char **p, ...)
4529{
4530 char *s;
4531 va_list v;
4532 va_start (v,p);
4533 s = g (p, va_arg (v,int));
4534 va_end (v);
4535 return s;
4536}
4537
4538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4539 function prototypes and stuff, but not '\xHH' hex character constants.
4540 These don't provoke an error unfortunately, instead are silently treated
4541 as 'x'. The following induces an error, until -std is added to get
4542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4543 array size at least. It's necessary to write '\x00'==0 to get something
4544 that's true only with -std. */
4545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4546
4547/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4548 inside strings and character constants. */
4549#define FOO(x) 'x'
4550int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4551
4552int test (int i, double x);
4553struct s1 {int (*f) (int a);};
4554struct s2 {int (*f) (double a);};
4555int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4556int argc;
4557char **argv;
4558int
4559main ()
4560{
4561return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4562 ;
4563 return 0;
4564}
4565_ACEOF
4566for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4567 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4568do
4569 CC="$ac_save_CC $ac_arg"
4570 if ac_fn_c_try_compile "$LINENO"; then :
4571 ac_cv_prog_cc_c89=$ac_arg
4572fi
4573rm -f core conftest.err conftest.$ac_objext
4574 test "x$ac_cv_prog_cc_c89" != "xno" && break
4575done
4576rm -f conftest.$ac_ext
4577CC=$ac_save_CC
4578
4579fi
4580# AC_CACHE_VAL
4581case "x$ac_cv_prog_cc_c89" in
4582 x)
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4584$as_echo "none needed" >&6; } ;;
4585 xno)
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4587$as_echo "unsupported" >&6; } ;;
4588 *)
4589 CC="$CC $ac_cv_prog_cc_c89"
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4591$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4592esac
4593if test "x$ac_cv_prog_cc_c89" != xno; then :
4594
4595fi
4596
4597ac_ext=c
4598ac_cpp='$CPP $CPPFLAGS'
4599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603ac_ext=c
4604ac_cpp='$CPP $CPPFLAGS'
4605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4609$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4610if ${am_cv_prog_cc_c_o+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612else
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h. */
4615
4616int
4617main ()
4618{
4619
4620 ;
4621 return 0;
4622}
4623_ACEOF
4624 # Make sure it works both with $CC and with simple cc.
4625 # Following AC_PROG_CC_C_O, we do the test twice because some
4626 # compilers refuse to overwrite an existing .o file with -o,
4627 # though they will create one.
4628 am_cv_prog_cc_c_o=yes
4629 for am_i in 1 2; do
4630 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4631 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } \
4635 && test -f conftest2.$ac_objext; then
4636 : OK
4637 else
4638 am_cv_prog_cc_c_o=no
4639 break
4640 fi
4641 done
4642 rm -f core conftest*
4643 unset am_i
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4646$as_echo "$am_cv_prog_cc_c_o" >&6; }
4647if test "$am_cv_prog_cc_c_o" != yes; then
4648 # Losing compiler, so override with the script.
4649 # FIXME: It is wrong to rewrite CC.
4650 # But if we don't then we get into trouble of one sort or another.
4651 # A longer-term fix would be to have automake use am__CC in this case,
4652 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4653 CC="$am_aux_dir/compile $CC"
4654fi
4655ac_ext=c
4656ac_cpp='$CPP $CPPFLAGS'
4657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660
4661
4662depcc="$CC" am_compiler_list=
4663
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4665$as_echo_n "checking dependency style of $depcc... " >&6; }
4666if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668else
4669 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4670 # We make a subdir and do the tests there. Otherwise we can end up
4671 # making bogus files that we don't know about and never remove. For
4672 # instance it was reported that on HP-UX the gcc test will end up
4673 # making a dummy file named 'D' -- because '-MD' means "put the output
4674 # in D".
4675 rm -rf conftest.dir
4676 mkdir conftest.dir
4677 # Copy depcomp to subdir because otherwise we won't find it if we're
4678 # using a relative directory.
4679 cp "$am_depcomp" conftest.dir
4680 cd conftest.dir
4681 # We will build objects and dependencies in a subdirectory because
4682 # it helps to detect inapplicable dependency modes. For instance
4683 # both Tru64's cc and ICC support -MD to output dependencies as a
4684 # side effect of compilation, but ICC will put the dependencies in
4685 # the current directory while Tru64 will put them in the object
4686 # directory.
4687 mkdir sub
4688
4689 am_cv_CC_dependencies_compiler_type=none
4690 if test "$am_compiler_list" = ""; then
4691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4692 fi
4693 am__universal=false
4694 case " $depcc " in #(
4695 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4696 esac
4697
4698 for depmode in $am_compiler_list; do
4699 # Setup a source with many dependencies, because some compilers
4700 # like to wrap large dependency lists on column 80 (with \), and
4701 # we should not choose a depcomp mode which is confused by this.
4702 #
4703 # We need to recreate these files for each test, as the compiler may
4704 # overwrite some of them when testing with obscure command lines.
4705 # This happens at least with the AIX C compiler.
4706 : > sub/conftest.c
4707 for i in 1 2 3 4 5 6; do
4708 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4709 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4710 # Solaris 10 /bin/sh.
4711 echo '/* dummy */' > sub/conftst$i.h
4712 done
4713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4714
4715 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4716 # mode. It turns out that the SunPro C++ compiler does not properly
4717 # handle '-M -o', and we need to detect this. Also, some Intel
4718 # versions had trouble with output in subdirs.
4719 am__obj=sub/conftest.${OBJEXT-o}
4720 am__minus_obj="-o $am__obj"
4721 case $depmode in
4722 gcc)
4723 # This depmode causes a compiler race in universal mode.
4724 test "$am__universal" = false || continue
4725 ;;
4726 nosideeffect)
4727 # After this tag, mechanisms are not by side-effect, so they'll
4728 # only be used when explicitly requested.
4729 if test "x$enable_dependency_tracking" = xyes; then
4730 continue
4731 else
4732 break
4733 fi
4734 ;;
4735 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4736 # This compiler won't grok '-c -o', but also, the minuso test has
4737 # not run yet. These depmodes are late enough in the game, and
4738 # so weak that their functioning should not be impacted.
4739 am__obj=conftest.${OBJEXT-o}
4740 am__minus_obj=
4741 ;;
4742 none) break ;;
4743 esac
4744 if depmode=$depmode \
4745 source=sub/conftest.c object=$am__obj \
4746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4747 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4748 >/dev/null 2>conftest.err &&
4749 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4750 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4751 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4753 # icc doesn't choke on unknown options, it will just issue warnings
4754 # or remarks (even with -Werror). So we grep stderr for any message
4755 # that says an option was ignored or not supported.
4756 # When given -MP, icc 7.0 and 7.1 complain thusly:
4757 # icc: Command line warning: ignoring option '-M'; no argument required
4758 # The diagnosis changed in icc 8.0:
4759 # icc: Command line remark: option '-MP' not supported
4760 if (grep 'ignoring option' conftest.err ||
4761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4762 am_cv_CC_dependencies_compiler_type=$depmode
4763 break
4764 fi
4765 fi
4766 done
4767
4768 cd ..
4769 rm -rf conftest.dir
4770else
4771 am_cv_CC_dependencies_compiler_type=none
4772fi
4773
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4776$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4777CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4778
4779 if
4780 test "x$enable_dependency_tracking" != xno \
4781 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4782 am__fastdepCC_TRUE=
4783 am__fastdepCC_FALSE='#'
4784else
4785 am__fastdepCC_TRUE='#'
4786 am__fastdepCC_FALSE=
4787fi
4788
4789
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4792if ${ac_cv_path_SED+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794else
4795 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4796 for ac_i in 1 2 3 4 5 6 7; do
4797 ac_script="$ac_script$as_nl$ac_script"
4798 done
4799 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4800 { ac_script=; unset ac_script;}
4801 if test -z "$SED"; then
4802 ac_path_SED_found=false
4803 # Loop through the user's path and test for each of PROGNAME-LIST
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_prog in sed gsed; do
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4812 as_fn_executable_p "$ac_path_SED" || continue
4813# Check for GNU ac_path_SED and select it if it is found.
4814 # Check for GNU $ac_path_SED
4815case `"$ac_path_SED" --version 2>&1` in
4816*GNU*)
4817 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4818*)
4819 ac_count=0
4820 $as_echo_n 0123456789 >"conftest.in"
4821 while :
4822 do
4823 cat "conftest.in" "conftest.in" >"conftest.tmp"
4824 mv "conftest.tmp" "conftest.in"
4825 cp "conftest.in" "conftest.nl"
4826 $as_echo '' >> "conftest.nl"
4827 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829 as_fn_arith $ac_count + 1 && ac_count=$as_val
4830 if test $ac_count -gt ${ac_path_SED_max-0}; then
4831 # Best one so far, save it but keep looking for a better one
4832 ac_cv_path_SED="$ac_path_SED"
4833 ac_path_SED_max=$ac_count
4834 fi
4835 # 10*(2^10) chars as input seems more than enough
4836 test $ac_count -gt 10 && break
4837 done
4838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839esac
4840
4841 $ac_path_SED_found && break 3
4842 done
4843 done
4844 done
4845IFS=$as_save_IFS
4846 if test -z "$ac_cv_path_SED"; then
4847 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4848 fi
4849else
4850 ac_cv_path_SED=$SED
4851fi
4852
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4855$as_echo "$ac_cv_path_SED" >&6; }
4856 SED="$ac_cv_path_SED"
4857 rm -f conftest.sed
4858
4859test -z "$SED" && SED=sed
4860Xsed="$SED -e 1s/^X//"
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4873$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4874if ${ac_cv_path_GREP+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876else
4877 if test -z "$GREP"; then
4878 ac_path_GREP_found=false
4879 # Loop through the user's path and test for each of PROGNAME-LIST
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_prog in grep ggrep; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4888 as_fn_executable_p "$ac_path_GREP" || continue
4889# Check for GNU ac_path_GREP and select it if it is found.
4890 # Check for GNU $ac_path_GREP
4891case `"$ac_path_GREP" --version 2>&1` in
4892*GNU*)
4893 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4894*)
4895 ac_count=0
4896 $as_echo_n 0123456789 >"conftest.in"
4897 while :
4898 do
4899 cat "conftest.in" "conftest.in" >"conftest.tmp"
4900 mv "conftest.tmp" "conftest.in"
4901 cp "conftest.in" "conftest.nl"
4902 $as_echo 'GREP' >> "conftest.nl"
4903 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905 as_fn_arith $ac_count + 1 && ac_count=$as_val
4906 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4907 # Best one so far, save it but keep looking for a better one
4908 ac_cv_path_GREP="$ac_path_GREP"
4909 ac_path_GREP_max=$ac_count
4910 fi
4911 # 10*(2^10) chars as input seems more than enough
4912 test $ac_count -gt 10 && break
4913 done
4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915esac
4916
4917 $ac_path_GREP_found && break 3
4918 done
4919 done
4920 done
4921IFS=$as_save_IFS
4922 if test -z "$ac_cv_path_GREP"; then
4923 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4924 fi
4925else
4926 ac_cv_path_GREP=$GREP
4927fi
4928
4929fi
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4931$as_echo "$ac_cv_path_GREP" >&6; }
4932 GREP="$ac_cv_path_GREP"
4933
4934
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4936$as_echo_n "checking for egrep... " >&6; }
4937if ${ac_cv_path_EGREP+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939else
4940 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4941 then ac_cv_path_EGREP="$GREP -E"
4942 else
4943 if test -z "$EGREP"; then
4944 ac_path_EGREP_found=false
4945 # Loop through the user's path and test for each of PROGNAME-LIST
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4948do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_prog in egrep; do
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4954 as_fn_executable_p "$ac_path_EGREP" || continue
4955# Check for GNU ac_path_EGREP and select it if it is found.
4956 # Check for GNU $ac_path_EGREP
4957case `"$ac_path_EGREP" --version 2>&1` in
4958*GNU*)
4959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4960*)
4961 ac_count=0
4962 $as_echo_n 0123456789 >"conftest.in"
4963 while :
4964 do
4965 cat "conftest.in" "conftest.in" >"conftest.tmp"
4966 mv "conftest.tmp" "conftest.in"
4967 cp "conftest.in" "conftest.nl"
4968 $as_echo 'EGREP' >> "conftest.nl"
4969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971 as_fn_arith $ac_count + 1 && ac_count=$as_val
4972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4973 # Best one so far, save it but keep looking for a better one
4974 ac_cv_path_EGREP="$ac_path_EGREP"
4975 ac_path_EGREP_max=$ac_count
4976 fi
4977 # 10*(2^10) chars as input seems more than enough
4978 test $ac_count -gt 10 && break
4979 done
4980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981esac
4982
4983 $ac_path_EGREP_found && break 3
4984 done
4985 done
4986 done
4987IFS=$as_save_IFS
4988 if test -z "$ac_cv_path_EGREP"; then
4989 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4990 fi
4991else
4992 ac_cv_path_EGREP=$EGREP
4993fi
4994
4995 fi
4996fi
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4998$as_echo "$ac_cv_path_EGREP" >&6; }
4999 EGREP="$ac_cv_path_EGREP"
5000
5001
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5003$as_echo_n "checking for fgrep... " >&6; }
5004if ${ac_cv_path_FGREP+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006else
5007 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5008 then ac_cv_path_FGREP="$GREP -F"
5009 else
5010 if test -z "$FGREP"; then
5011 ac_path_FGREP_found=false
5012 # Loop through the user's path and test for each of PROGNAME-LIST
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5015do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_prog in fgrep; do
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5021 as_fn_executable_p "$ac_path_FGREP" || continue
5022# Check for GNU ac_path_FGREP and select it if it is found.
5023 # Check for GNU $ac_path_FGREP
5024case `"$ac_path_FGREP" --version 2>&1` in
5025*GNU*)
5026 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5027*)
5028 ac_count=0
5029 $as_echo_n 0123456789 >"conftest.in"
5030 while :
5031 do
5032 cat "conftest.in" "conftest.in" >"conftest.tmp"
5033 mv "conftest.tmp" "conftest.in"
5034 cp "conftest.in" "conftest.nl"
5035 $as_echo 'FGREP' >> "conftest.nl"
5036 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5038 as_fn_arith $ac_count + 1 && ac_count=$as_val
5039 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5040 # Best one so far, save it but keep looking for a better one
5041 ac_cv_path_FGREP="$ac_path_FGREP"
5042 ac_path_FGREP_max=$ac_count
5043 fi
5044 # 10*(2^10) chars as input seems more than enough
5045 test $ac_count -gt 10 && break
5046 done
5047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5048esac
5049
5050 $ac_path_FGREP_found && break 3
5051 done
5052 done
5053 done
5054IFS=$as_save_IFS
5055 if test -z "$ac_cv_path_FGREP"; then
5056 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5057 fi
5058else
5059 ac_cv_path_FGREP=$FGREP
5060fi
5061
5062 fi
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5065$as_echo "$ac_cv_path_FGREP" >&6; }
5066 FGREP="$ac_cv_path_FGREP"
5067
5068
5069test -z "$GREP" && GREP=grep
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089# Check whether --with-gnu-ld was given.
5090if test "${with_gnu_ld+set}" = set; then :
5091 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5092else
5093 with_gnu_ld=no
5094fi
5095
5096ac_prog=ld
5097if test yes = "$GCC"; then
5098 # Check if gcc -print-prog-name=ld gives a path.
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5100$as_echo_n "checking for ld used by $CC... " >&6; }
5101 case $host in
5102 *-*-mingw*)
5103 # gcc leaves a trailing carriage return, which upsets mingw
5104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5105 *)
5106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5107 esac
5108 case $ac_prog in
5109 # Accept absolute paths.
5110 [\\/]* | ?:[\\/]*)
5111 re_direlt='/[^/][^/]*/\.\./'
5112 # Canonicalize the pathname of ld
5113 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5114 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5115 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5116 done
5117 test -z "$LD" && LD=$ac_prog
5118 ;;
5119 "")
5120 # If it fails, then pretend we aren't using GCC.
5121 ac_prog=ld
5122 ;;
5123 *)
5124 # If it is relative, then search for the first ld in PATH.
5125 with_gnu_ld=unknown
5126 ;;
5127 esac
5128elif test yes = "$with_gnu_ld"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5130$as_echo_n "checking for GNU ld... " >&6; }
5131else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5133$as_echo_n "checking for non-GNU ld... " >&6; }
5134fi
5135if ${lt_cv_path_LD+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137else
5138 if test -z "$LD"; then
5139 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5140 for ac_dir in $PATH; do
5141 IFS=$lt_save_ifs
5142 test -z "$ac_dir" && ac_dir=.
5143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5144 lt_cv_path_LD=$ac_dir/$ac_prog
5145 # Check to see if the program is GNU ld. I'd rather use --version,
5146 # but apparently some variants of GNU ld only accept -v.
5147 # Break only if it was the GNU/non-GNU ld that we prefer.
5148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5149 *GNU* | *'with BFD'*)
5150 test no != "$with_gnu_ld" && break
5151 ;;
5152 *)
5153 test yes != "$with_gnu_ld" && break
5154 ;;
5155 esac
5156 fi
5157 done
5158 IFS=$lt_save_ifs
5159else
5160 lt_cv_path_LD=$LD # Let the user override the test with a path.
5161fi
5162fi
5163
5164LD=$lt_cv_path_LD
5165if test -n "$LD"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5167$as_echo "$LD" >&6; }
5168else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
5171fi
5172test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5174$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5175if ${lt_cv_prog_gnu_ld+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177else
5178 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5179case `$LD -v 2>&1 </dev/null` in
5180*GNU* | *'with BFD'*)
5181 lt_cv_prog_gnu_ld=yes
5182 ;;
5183*)
5184 lt_cv_prog_gnu_ld=no
5185 ;;
5186esac
5187fi
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5189$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5190with_gnu_ld=$lt_cv_prog_gnu_ld
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5201$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5202if ${lt_cv_path_NM+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204else
5205 if test -n "$NM"; then
5206 # Let the user override the test.
5207 lt_cv_path_NM=$NM
5208else
5209 lt_nm_to_check=${ac_tool_prefix}nm
5210 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5211 lt_nm_to_check="$lt_nm_to_check nm"
5212 fi
5213 for lt_tmp_nm in $lt_nm_to_check; do
5214 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5215 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5216 IFS=$lt_save_ifs
5217 test -z "$ac_dir" && ac_dir=.
5218 tmp_nm=$ac_dir/$lt_tmp_nm
5219 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5220 # Check to see if the nm accepts a BSD-compat flag.
5221 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5222 # nm: unknown option "B" ignored
5223 # Tru64's nm complains that /dev/null is an invalid object file
5224 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5225 case $build_os in
5226 mingw*) lt_bad_file=conftest.nm/nofile ;;
5227 *) lt_bad_file=/dev/null ;;
5228 esac
5229 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5230 *$lt_bad_file* | *'Invalid file or object type'*)
5231 lt_cv_path_NM="$tmp_nm -B"
5232 break 2
5233 ;;
5234 *)
5235 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5236 */dev/null*)
5237 lt_cv_path_NM="$tmp_nm -p"
5238 break 2
5239 ;;
5240 *)
5241 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5242 continue # so that we can try to find one that supports BSD flags
5243 ;;
5244 esac
5245 ;;
5246 esac
5247 fi
5248 done
5249 IFS=$lt_save_ifs
5250 done
5251 : ${lt_cv_path_NM=no}
5252fi
5253fi
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5255$as_echo "$lt_cv_path_NM" >&6; }
5256if test no != "$lt_cv_path_NM"; then
5257 NM=$lt_cv_path_NM
5258else
5259 # Didn't find any BSD compatible name lister, look for dumpbin.
5260 if test -n "$DUMPBIN"; then :
5261 # Let the user override the test.
5262 else
5263 if test -n "$ac_tool_prefix"; then
5264 for ac_prog in dumpbin "link -dump"
5265 do
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
5270if ${ac_cv_prog_DUMPBIN+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272else
5273 if test -n "$DUMPBIN"; then
5274 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5275else
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5286 fi
5287done
5288 done
5289IFS=$as_save_IFS
5290
5291fi
5292fi
5293DUMPBIN=$ac_cv_prog_DUMPBIN
5294if test -n "$DUMPBIN"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5296$as_echo "$DUMPBIN" >&6; }
5297else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299$as_echo "no" >&6; }
5300fi
5301
5302
5303 test -n "$DUMPBIN" && break
5304 done
5305fi
5306if test -z "$DUMPBIN"; then
5307 ac_ct_DUMPBIN=$DUMPBIN
5308 for ac_prog in dumpbin "link -dump"
5309do
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311set dummy $ac_prog; ac_word=$2
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316else
5317 if test -n "$ac_ct_DUMPBIN"; then
5318 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331done
5332 done
5333IFS=$as_save_IFS
5334
5335fi
5336fi
5337ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5338if test -n "$ac_ct_DUMPBIN"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5340$as_echo "$ac_ct_DUMPBIN" >&6; }
5341else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344fi
5345
5346
5347 test -n "$ac_ct_DUMPBIN" && break
5348done
5349
5350 if test "x$ac_ct_DUMPBIN" = x; then
5351 DUMPBIN=":"
5352 else
5353 case $cross_compiling:$ac_tool_warned in
5354yes:)
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357ac_tool_warned=yes ;;
5358esac
5359 DUMPBIN=$ac_ct_DUMPBIN
5360 fi
5361fi
5362
5363 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5364 *COFF*)
5365 DUMPBIN="$DUMPBIN -symbols -headers"
5366 ;;
5367 *)
5368 DUMPBIN=:
5369 ;;
5370 esac
5371 fi
5372
5373 if test : != "$DUMPBIN"; then
5374 NM=$DUMPBIN
5375 fi
5376fi
5377test -z "$NM" && NM=nm
5378
5379
5380
5381
5382
5383
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5385$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5386if ${lt_cv_nm_interface+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388else
5389 lt_cv_nm_interface="BSD nm"
5390 echo "int some_variable = 0;" > conftest.$ac_ext
5391 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5392 (eval "$ac_compile" 2>conftest.err)
5393 cat conftest.err >&5
5394 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5395 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5396 cat conftest.err >&5
5397 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5398 cat conftest.out >&5
5399 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5400 lt_cv_nm_interface="MS dumpbin"
5401 fi
5402 rm -f conftest*
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5405$as_echo "$lt_cv_nm_interface" >&6; }
5406
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5408$as_echo_n "checking whether ln -s works... " >&6; }
5409LN_S=$as_ln_s
5410if test "$LN_S" = "ln -s"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412$as_echo "yes" >&6; }
5413else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5415$as_echo "no, using $LN_S" >&6; }
5416fi
5417
5418# find the maximum length of command line arguments
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5420$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5421if ${lt_cv_sys_max_cmd_len+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423else
5424 i=0
5425 teststring=ABCD
5426
5427 case $build_os in
5428 msdosdjgpp*)
5429 # On DJGPP, this test can blow up pretty badly due to problems in libc
5430 # (any single argument exceeding 2000 bytes causes a buffer overrun
5431 # during glob expansion). Even if it were fixed, the result of this
5432 # check would be larger than it should be.
5433 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5434 ;;
5435
5436 gnu*)
5437 # Under GNU Hurd, this test is not required because there is
5438 # no limit to the length of command line arguments.
5439 # Libtool will interpret -1 as no limit whatsoever
5440 lt_cv_sys_max_cmd_len=-1;
5441 ;;
5442
5443 cygwin* | mingw* | cegcc*)
5444 # On Win9x/ME, this test blows up -- it succeeds, but takes
5445 # about 5 minutes as the teststring grows exponentially.
5446 # Worse, since 9x/ME are not pre-emptively multitasking,
5447 # you end up with a "frozen" computer, even though with patience
5448 # the test eventually succeeds (with a max line length of 256k).
5449 # Instead, let's just punt: use the minimum linelength reported by
5450 # all of the supported platforms: 8192 (on NT/2K/XP).
5451 lt_cv_sys_max_cmd_len=8192;
5452 ;;
5453
5454 mint*)
5455 # On MiNT this can take a long time and run out of memory.
5456 lt_cv_sys_max_cmd_len=8192;
5457 ;;
5458
5459 amigaos*)
5460 # On AmigaOS with pdksh, this test takes hours, literally.
5461 # So we just punt and use a minimum line length of 8192.
5462 lt_cv_sys_max_cmd_len=8192;
5463 ;;
5464
5465 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5466 # This has been around since 386BSD, at least. Likely further.
5467 if test -x /sbin/sysctl; then
5468 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5469 elif test -x /usr/sbin/sysctl; then
5470 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5471 else
5472 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5473 fi
5474 # And add a safety zone
5475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5477 ;;
5478
5479 interix*)
5480 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5481 lt_cv_sys_max_cmd_len=196608
5482 ;;
5483
5484 os2*)
5485 # The test takes a long time on OS/2.
5486 lt_cv_sys_max_cmd_len=8192
5487 ;;
5488
5489 osf*)
5490 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5491 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5492 # nice to cause kernel panics so lets avoid the loop below.
5493 # First set a reasonable default.
5494 lt_cv_sys_max_cmd_len=16384
5495 #
5496 if test -x /sbin/sysconfig; then
5497 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5498 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5499 esac
5500 fi
5501 ;;
5502 sco3.2v5*)
5503 lt_cv_sys_max_cmd_len=102400
5504 ;;
5505 sysv5* | sco5v6* | sysv4.2uw2*)
5506 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5507 if test -n "$kargmax"; then
5508 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5509 else
5510 lt_cv_sys_max_cmd_len=32768
5511 fi
5512 ;;
5513 *)
5514 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5515 if test -n "$lt_cv_sys_max_cmd_len" && \
5516 test undefined != "$lt_cv_sys_max_cmd_len"; then
5517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5519 else
5520 # Make teststring a little bigger before we do anything with it.
5521 # a 1K string should be a reasonable start.
5522 for i in 1 2 3 4 5 6 7 8; do
5523 teststring=$teststring$teststring
5524 done
5525 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5526 # If test is not a shell built-in, we'll probably end up computing a
5527 # maximum length that is only half of the actual maximum length, but
5528 # we can't tell.
5529 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5530 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5531 test 17 != "$i" # 1/2 MB should be enough
5532 do
5533 i=`expr $i + 1`
5534 teststring=$teststring$teststring
5535 done
5536 # Only check the string length outside the loop.
5537 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5538 teststring=
5539 # Add a significant safety factor because C++ compilers can tack on
5540 # massive amounts of additional arguments before passing them to the
5541 # linker. It appears as though 1/2 is a usable value.
5542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5543 fi
5544 ;;
5545 esac
5546
5547fi
5548
5549if test -n "$lt_cv_sys_max_cmd_len"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5551$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5552else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5554$as_echo "none" >&6; }
5555fi
5556max_cmd_len=$lt_cv_sys_max_cmd_len
5557
5558
5559
5560
5561
5562
5563: ${CP="cp -f"}
5564: ${MV="mv -f"}
5565: ${RM="rm -f"}
5566
5567if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5568 lt_unset=unset
5569else
5570 lt_unset=false
5571fi
5572
5573
5574
5575
5576
5577# test EBCDIC or ASCII
5578case `echo X|tr X '\101'` in
5579 A) # ASCII based system
5580 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5581 lt_SP2NL='tr \040 \012'
5582 lt_NL2SP='tr \015\012 \040\040'
5583 ;;
5584 *) # EBCDIC based system
5585 lt_SP2NL='tr \100 \n'
5586 lt_NL2SP='tr \r\n \100\100'
5587 ;;
5588esac
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5599$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5600if ${lt_cv_to_host_file_cmd+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602else
5603 case $host in
5604 *-*-mingw* )
5605 case $build in
5606 *-*-mingw* ) # actually msys
5607 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5608 ;;
5609 *-*-cygwin* )
5610 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5611 ;;
5612 * ) # otherwise, assume *nix
5613 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5614 ;;
5615 esac
5616 ;;
5617 *-*-cygwin* )
5618 case $build in
5619 *-*-mingw* ) # actually msys
5620 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5621 ;;
5622 *-*-cygwin* )
5623 lt_cv_to_host_file_cmd=func_convert_file_noop
5624 ;;
5625 * ) # otherwise, assume *nix
5626 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5627 ;;
5628 esac
5629 ;;
5630 * ) # unhandled hosts (and "normal" native builds)
5631 lt_cv_to_host_file_cmd=func_convert_file_noop
5632 ;;
5633esac
5634
5635fi
5636
5637to_host_file_cmd=$lt_cv_to_host_file_cmd
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5639$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5640
5641
5642
5643
5644
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5646$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5647if ${lt_cv_to_tool_file_cmd+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649else
5650 #assume ordinary cross tools, or native build.
5651lt_cv_to_tool_file_cmd=func_convert_file_noop
5652case $host in
5653 *-*-mingw* )
5654 case $build in
5655 *-*-mingw* ) # actually msys
5656 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5657 ;;
5658 esac
5659 ;;
5660esac
5661
5662fi
5663
5664to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5666$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5667
5668
5669
5670
5671
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5673$as_echo_n "checking for $LD option to reload object files... " >&6; }
5674if ${lt_cv_ld_reload_flag+:} false; then :
5675 $as_echo_n "(cached) " >&6
5676else
5677 lt_cv_ld_reload_flag='-r'
5678fi
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5680$as_echo "$lt_cv_ld_reload_flag" >&6; }
5681reload_flag=$lt_cv_ld_reload_flag
5682case $reload_flag in
5683"" | " "*) ;;
5684*) reload_flag=" $reload_flag" ;;
5685esac
5686reload_cmds='$LD$reload_flag -o $output$reload_objs'
5687case $host_os in
5688 cygwin* | mingw* | pw32* | cegcc*)
5689 if test yes != "$GCC"; then
5690 reload_cmds=false
5691 fi
5692 ;;
5693 darwin*)
5694 if test yes = "$GCC"; then
5695 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5696 else
5697 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5698 fi
5699 ;;
5700esac
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710if test -n "$ac_tool_prefix"; then
5711 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5712set dummy ${ac_tool_prefix}objdump; ac_word=$2
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714$as_echo_n "checking for $ac_word... " >&6; }
5715if ${ac_cv_prog_OBJDUMP+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717else
5718 if test -n "$OBJDUMP"; then
5719 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5720else
5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH
5723do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732done
5733 done
5734IFS=$as_save_IFS
5735
5736fi
5737fi
5738OBJDUMP=$ac_cv_prog_OBJDUMP
5739if test -n "$OBJDUMP"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5741$as_echo "$OBJDUMP" >&6; }
5742else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745fi
5746
5747
5748fi
5749if test -z "$ac_cv_prog_OBJDUMP"; then
5750 ac_ct_OBJDUMP=$OBJDUMP
5751 # Extract the first word of "objdump", so it can be a program name with args.
5752set dummy objdump; ac_word=$2
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754$as_echo_n "checking for $ac_word... " >&6; }
5755if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757else
5758 if test -n "$ac_ct_OBJDUMP"; then
5759 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5760else
5761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH
5763do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772done
5773 done
5774IFS=$as_save_IFS
5775
5776fi
5777fi
5778ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5779if test -n "$ac_ct_OBJDUMP"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5781$as_echo "$ac_ct_OBJDUMP" >&6; }
5782else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784$as_echo "no" >&6; }
5785fi
5786
5787 if test "x$ac_ct_OBJDUMP" = x; then
5788 OBJDUMP="false"
5789 else
5790 case $cross_compiling:$ac_tool_warned in
5791yes:)
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794ac_tool_warned=yes ;;
5795esac
5796 OBJDUMP=$ac_ct_OBJDUMP
5797 fi
5798else
5799 OBJDUMP="$ac_cv_prog_OBJDUMP"
5800fi
5801
5802test -z "$OBJDUMP" && OBJDUMP=objdump
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5813$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5814if ${lt_cv_deplibs_check_method+:} false; then :
5815 $as_echo_n "(cached) " >&6
5816else
5817 lt_cv_file_magic_cmd='$MAGIC_CMD'
5818lt_cv_file_magic_test_file=
5819lt_cv_deplibs_check_method='unknown'
5820# Need to set the preceding variable on all platforms that support
5821# interlibrary dependencies.
5822# 'none' -- dependencies not supported.
5823# 'unknown' -- same as none, but documents that we really don't know.
5824# 'pass_all' -- all dependencies passed with no checks.
5825# 'test_compile' -- check by making test program.
5826# 'file_magic [[regex]]' -- check by looking for files in library path
5827# that responds to the $file_magic_cmd with a given extended regex.
5828# If you have 'file' or equivalent on your system and you're not sure
5829# whether 'pass_all' will *always* work, you probably want this one.
5830
5831case $host_os in
5832aix[4-9]*)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835
5836beos*)
5837 lt_cv_deplibs_check_method=pass_all
5838 ;;
5839
5840bsdi[45]*)
5841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5842 lt_cv_file_magic_cmd='/usr/bin/file -L'
5843 lt_cv_file_magic_test_file=/shlib/libc.so
5844 ;;
5845
5846cygwin*)
5847 # func_win32_libid is a shell function defined in ltmain.sh
5848 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5849 lt_cv_file_magic_cmd='func_win32_libid'
5850 ;;
5851
5852mingw* | pw32*)
5853 # Base MSYS/MinGW do not provide the 'file' command needed by
5854 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5855 # unless we find 'file', for example because we are cross-compiling.
5856 if ( file / ) >/dev/null 2>&1; then
5857 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5858 lt_cv_file_magic_cmd='func_win32_libid'
5859 else
5860 # Keep this pattern in sync with the one in func_win32_libid.
5861 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5862 lt_cv_file_magic_cmd='$OBJDUMP -f'
5863 fi
5864 ;;
5865
5866cegcc*)
5867 # use the weaker test based on 'objdump'. See mingw*.
5868 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5869 lt_cv_file_magic_cmd='$OBJDUMP -f'
5870 ;;
5871
5872darwin* | rhapsody*)
5873 lt_cv_deplibs_check_method=pass_all
5874 ;;
5875
5876freebsd* | dragonfly*)
5877 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5878 case $host_cpu in
5879 i*86 )
5880 # Not sure whether the presence of OpenBSD here was a mistake.
5881 # Let's accept both of them until this is cleared up.
5882 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5883 lt_cv_file_magic_cmd=/usr/bin/file
5884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5885 ;;
5886 esac
5887 else
5888 lt_cv_deplibs_check_method=pass_all
5889 fi
5890 ;;
5891
5892haiku*)
5893 lt_cv_deplibs_check_method=pass_all
5894 ;;
5895
5896hpux10.20* | hpux11*)
5897 lt_cv_file_magic_cmd=/usr/bin/file
5898 case $host_cpu in
5899 ia64*)
5900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5901 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5902 ;;
5903 hppa*64*)
5904 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]'
5905 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5906 ;;
5907 *)
5908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5909 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5910 ;;
5911 esac
5912 ;;
5913
5914interix[3-9]*)
5915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5917 ;;
5918
5919irix5* | irix6* | nonstopux*)
5920 case $LD in
5921 *-32|*"-32 ") libmagic=32-bit;;
5922 *-n32|*"-n32 ") libmagic=N32;;
5923 *-64|*"-64 ") libmagic=64-bit;;
5924 *) libmagic=never-match;;
5925 esac
5926 lt_cv_deplibs_check_method=pass_all
5927 ;;
5928
5929# This must be glibc/ELF.
5930linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5931 lt_cv_deplibs_check_method=pass_all
5932 ;;
5933
5934netbsd* | netbsdelf*-gnu)
5935 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5937 else
5938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5939 fi
5940 ;;
5941
5942newos6*)
5943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5944 lt_cv_file_magic_cmd=/usr/bin/file
5945 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5946 ;;
5947
5948*nto* | *qnx*)
5949 lt_cv_deplibs_check_method=pass_all
5950 ;;
5951
5952openbsd* | bitrig*)
5953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5955 else
5956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5957 fi
5958 ;;
5959
5960osf3* | osf4* | osf5*)
5961 lt_cv_deplibs_check_method=pass_all
5962 ;;
5963
5964rdos*)
5965 lt_cv_deplibs_check_method=pass_all
5966 ;;
5967
5968solaris*)
5969 lt_cv_deplibs_check_method=pass_all
5970 ;;
5971
5972sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975
5976sysv4 | sysv4.3*)
5977 case $host_vendor in
5978 motorola)
5979 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]'
5980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5981 ;;
5982 ncr)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985 sequent)
5986 lt_cv_file_magic_cmd='/bin/file'
5987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5988 ;;
5989 sni)
5990 lt_cv_file_magic_cmd='/bin/file'
5991 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5992 lt_cv_file_magic_test_file=/lib/libc.so
5993 ;;
5994 siemens)
5995 lt_cv_deplibs_check_method=pass_all
5996 ;;
5997 pc)
5998 lt_cv_deplibs_check_method=pass_all
5999 ;;
6000 esac
6001 ;;
6002
6003tpf*)
6004 lt_cv_deplibs_check_method=pass_all
6005 ;;
6006os2*)
6007 lt_cv_deplibs_check_method=pass_all
6008 ;;
6009esac
6010
6011fi
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6013$as_echo "$lt_cv_deplibs_check_method" >&6; }
6014
6015file_magic_glob=
6016want_nocaseglob=no
6017if test "$build" = "$host"; then
6018 case $host_os in
6019 mingw* | pw32*)
6020 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6021 want_nocaseglob=yes
6022 else
6023 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6024 fi
6025 ;;
6026 esac
6027fi
6028
6029file_magic_cmd=$lt_cv_file_magic_cmd
6030deplibs_check_method=$lt_cv_deplibs_check_method
6031test -z "$deplibs_check_method" && deplibs_check_method=unknown
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054if test -n "$ac_tool_prefix"; then
6055 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6056set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058$as_echo_n "checking for $ac_word... " >&6; }
6059if ${ac_cv_prog_DLLTOOL+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061else
6062 if test -n "$DLLTOOL"; then
6063 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076done
6077 done
6078IFS=$as_save_IFS
6079
6080fi
6081fi
6082DLLTOOL=$ac_cv_prog_DLLTOOL
6083if test -n "$DLLTOOL"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6085$as_echo "$DLLTOOL" >&6; }
6086else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088$as_echo "no" >&6; }
6089fi
6090
6091
6092fi
6093if test -z "$ac_cv_prog_DLLTOOL"; then
6094 ac_ct_DLLTOOL=$DLLTOOL
6095 # Extract the first word of "dlltool", so it can be a program name with args.
6096set dummy dlltool; ac_word=$2
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098$as_echo_n "checking for $ac_word... " >&6; }
6099if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101else
6102 if test -n "$ac_ct_DLLTOOL"; then
6103 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6104else
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6115 fi
6116done
6117 done
6118IFS=$as_save_IFS
6119
6120fi
6121fi
6122ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6123if test -n "$ac_ct_DLLTOOL"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6125$as_echo "$ac_ct_DLLTOOL" >&6; }
6126else
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128$as_echo "no" >&6; }
6129fi
6130
6131 if test "x$ac_ct_DLLTOOL" = x; then
6132 DLLTOOL="false"
6133 else
6134 case $cross_compiling:$ac_tool_warned in
6135yes:)
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138ac_tool_warned=yes ;;
6139esac
6140 DLLTOOL=$ac_ct_DLLTOOL
6141 fi
6142else
6143 DLLTOOL="$ac_cv_prog_DLLTOOL"
6144fi
6145
6146test -z "$DLLTOOL" && DLLTOOL=dlltool
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6158$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6159if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161else
6162 lt_cv_sharedlib_from_linklib_cmd='unknown'
6163
6164case $host_os in
6165cygwin* | mingw* | pw32* | cegcc*)
6166 # two different shell functions defined in ltmain.sh;
6167 # decide which one to use based on capabilities of $DLLTOOL
6168 case `$DLLTOOL --help 2>&1` in
6169 *--identify-strict*)
6170 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6171 ;;
6172 *)
6173 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6174 ;;
6175 esac
6176 ;;
6177*)
6178 # fallback: assume linklib IS sharedlib
6179 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6180 ;;
6181esac
6182
6183fi
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6185$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6186sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6187test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6188
6189
6190
6191
6192
6193
6194
6195
6196if test -n "$ac_tool_prefix"; then
6197 for ac_prog in ar
6198 do
6199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if ${ac_cv_prog_AR+:} false; then :
6204 $as_echo_n "(cached) " >&6
6205else
6206 if test -n "$AR"; then
6207 ac_cv_prog_AR="$AR" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 break 2
6219 fi
6220done
6221 done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226AR=$ac_cv_prog_AR
6227if test -n "$AR"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6229$as_echo "$AR" >&6; }
6230else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235
6236 test -n "$AR" && break
6237 done
6238fi
6239if test -z "$AR"; then
6240 ac_ct_AR=$AR
6241 for ac_prog in ar
6242do
6243 # Extract the first word of "$ac_prog", so it can be a program name with args.
6244set dummy $ac_prog; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if ${ac_cv_prog_ac_ct_AR+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249else
6250 if test -n "$ac_ct_AR"; then
6251 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_ac_ct_AR="$ac_prog"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264done
6265 done
6266IFS=$as_save_IFS
6267
6268fi
6269fi
6270ac_ct_AR=$ac_cv_prog_ac_ct_AR
6271if test -n "$ac_ct_AR"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6273$as_echo "$ac_ct_AR" >&6; }
6274else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
6277fi
6278
6279
6280 test -n "$ac_ct_AR" && break
6281done
6282
6283 if test "x$ac_ct_AR" = x; then
6284 AR="false"
6285 else
6286 case $cross_compiling:$ac_tool_warned in
6287yes:)
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290ac_tool_warned=yes ;;
6291esac
6292 AR=$ac_ct_AR
6293 fi
6294fi
6295
6296: ${AR=ar}
6297: ${AR_FLAGS=cru}
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6310$as_echo_n "checking for archiver @FILE support... " >&6; }
6311if ${lt_cv_ar_at_file+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313else
6314 lt_cv_ar_at_file=no
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h. */
6317
6318int
6319main ()
6320{
6321
6322 ;
6323 return 0;
6324}
6325_ACEOF
6326if ac_fn_c_try_compile "$LINENO"; then :
6327 echo conftest.$ac_objext > conftest.lst
6328 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6330 (eval $lt_ar_try) 2>&5
6331 ac_status=$?
6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333 test $ac_status = 0; }
6334 if test 0 -eq "$ac_status"; then
6335 # Ensure the archiver fails upon bogus file names.
6336 rm -f conftest.$ac_objext libconftest.a
6337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6338 (eval $lt_ar_try) 2>&5
6339 ac_status=$?
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; }
6342 if test 0 -ne "$ac_status"; then
6343 lt_cv_ar_at_file=@
6344 fi
6345 fi
6346 rm -f conftest.* libconftest.a
6347
6348fi
6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350
6351fi
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6353$as_echo "$lt_cv_ar_at_file" >&6; }
6354
6355if test no = "$lt_cv_ar_at_file"; then
6356 archiver_list_spec=
6357else
6358 archiver_list_spec=$lt_cv_ar_at_file
6359fi
6360
6361
6362
6363
6364
6365
6366
6367if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6369set dummy ${ac_tool_prefix}strip; ac_word=$2
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371$as_echo_n "checking for $ac_word... " >&6; }
6372if ${ac_cv_prog_STRIP+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374else
6375 if test -n "$STRIP"; then
6376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6377else
6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379for as_dir in $PATH
6380do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6388 fi
6389done
6390 done
6391IFS=$as_save_IFS
6392
6393fi
6394fi
6395STRIP=$ac_cv_prog_STRIP
6396if test -n "$STRIP"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6398$as_echo "$STRIP" >&6; }
6399else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401$as_echo "no" >&6; }
6402fi
6403
6404
6405fi
6406if test -z "$ac_cv_prog_STRIP"; then
6407 ac_ct_STRIP=$STRIP
6408 # Extract the first word of "strip", so it can be a program name with args.
6409set dummy strip; ac_word=$2
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411$as_echo_n "checking for $ac_word... " >&6; }
6412if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414else
6415 if test -n "$ac_ct_STRIP"; then
6416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6417else
6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_ac_ct_STRIP="strip"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6428 fi
6429done
6430 done
6431IFS=$as_save_IFS
6432
6433fi
6434fi
6435ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6436if test -n "$ac_ct_STRIP"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6438$as_echo "$ac_ct_STRIP" >&6; }
6439else
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441$as_echo "no" >&6; }
6442fi
6443
6444 if test "x$ac_ct_STRIP" = x; then
6445 STRIP=":"
6446 else
6447 case $cross_compiling:$ac_tool_warned in
6448yes:)
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451ac_tool_warned=yes ;;
6452esac
6453 STRIP=$ac_ct_STRIP
6454 fi
6455else
6456 STRIP="$ac_cv_prog_STRIP"
6457fi
6458
6459test -z "$STRIP" && STRIP=:
6460
6461
6462
6463
6464
6465
6466if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
6471if ${ac_cv_prog_RANLIB+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473else
6474 if test -n "$RANLIB"; then
6475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488done
6489 done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494RANLIB=$ac_cv_prog_RANLIB
6495if test -n "$RANLIB"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6497$as_echo "$RANLIB" >&6; }
6498else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503
6504fi
6505if test -z "$ac_cv_prog_RANLIB"; then
6506 ac_ct_RANLIB=$RANLIB
6507 # Extract the first word of "ranlib", so it can be a program name with args.
6508set dummy ranlib; ac_word=$2
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513else
6514 if test -n "$ac_ct_RANLIB"; then
6515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_ac_ct_RANLIB="ranlib"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528done
6529 done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535if test -n "$ac_ct_RANLIB"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6537$as_echo "$ac_ct_RANLIB" >&6; }
6538else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
6541fi
6542
6543 if test "x$ac_ct_RANLIB" = x; then
6544 RANLIB=":"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550ac_tool_warned=yes ;;
6551esac
6552 RANLIB=$ac_ct_RANLIB
6553 fi
6554else
6555 RANLIB="$ac_cv_prog_RANLIB"
6556fi
6557
6558test -z "$RANLIB" && RANLIB=:
6559
6560
6561
6562
6563
6564
6565# Determine commands to create old-style static archives.
6566old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6567old_postinstall_cmds='chmod 644 $oldlib'
6568old_postuninstall_cmds=
6569
6570if test -n "$RANLIB"; then
6571 case $host_os in
6572 bitrig* | openbsd*)
6573 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6574 ;;
6575 *)
6576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6577 ;;
6578 esac
6579 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6580fi
6581
6582case $host_os in
6583 darwin*)
6584 lock_old_archive_extraction=yes ;;
6585 *)
6586 lock_old_archive_extraction=no ;;
6587esac
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627# If no C compiler was specified, use CC.
6628LTCC=${LTCC-"$CC"}
6629
6630# If no C compiler flags were specified, use CFLAGS.
6631LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6632
6633# Allow CC to be a program name with arguments.
6634compiler=$CC
6635
6636
6637# Check for command to grab the raw symbol name followed by C symbol from nm.
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6639$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6640if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642else
6643
6644# These are sane defaults that work on at least a few old systems.
6645# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6646
6647# Character class describing NM global symbol codes.
6648symcode='[BCDEGRST]'
6649
6650# Regexp to match symbols that can be accessed directly from C.
6651sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6652
6653# Define system-specific variables.
6654case $host_os in
6655aix*)
6656 symcode='[BCDT]'
6657 ;;
6658cygwin* | mingw* | pw32* | cegcc*)
6659 symcode='[ABCDGISTW]'
6660 ;;
6661hpux*)
6662 if test ia64 = "$host_cpu"; then
6663 symcode='[ABCDEGRST]'
6664 fi
6665 ;;
6666irix* | nonstopux*)
6667 symcode='[BCDEGRST]'
6668 ;;
6669osf*)
6670 symcode='[BCDEGQRST]'
6671 ;;
6672solaris*)
6673 symcode='[BDRT]'
6674 ;;
6675sco3.2v5*)
6676 symcode='[DT]'
6677 ;;
6678sysv4.2uw2*)
6679 symcode='[DT]'
6680 ;;
6681sysv5* | sco5v6* | unixware* | OpenUNIX*)
6682 symcode='[ABDT]'
6683 ;;
6684sysv4)
6685 symcode='[DFNSTU]'
6686 ;;
6687esac
6688
6689# If we're using GNU nm, then use its standard symbol codes.
6690case `$NM -V 2>&1` in
6691*GNU* | *'with BFD'*)
6692 symcode='[ABCDGIRSTW]' ;;
6693esac
6694
6695if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6696 # Gets list of data symbols to import.
6697 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6698 # Adjust the below global symbol transforms to fixup imported variables.
6699 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6700 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6701 lt_c_name_lib_hook="\
6702 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6703 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6704else
6705 # Disable hooks by default.
6706 lt_cv_sys_global_symbol_to_import=
6707 lt_cdecl_hook=
6708 lt_c_name_hook=
6709 lt_c_name_lib_hook=
6710fi
6711
6712# Transform an extracted symbol line into a proper C declaration.
6713# Some systems (esp. on ia64) link data and code symbols differently,
6714# so use this general approach.
6715lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6716$lt_cdecl_hook\
6717" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6718" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6719
6720# Transform an extracted symbol line into symbol name and symbol address
6721lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6722$lt_c_name_hook\
6723" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6724" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6725
6726# Transform an extracted symbol line into symbol name with lib prefix and
6727# symbol address.
6728lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6729$lt_c_name_lib_hook\
6730" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6731" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6732" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6733
6734# Handle CRLF in mingw tool chain
6735opt_cr=
6736case $build_os in
6737mingw*)
6738 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6739 ;;
6740esac
6741
6742# Try without a prefix underscore, then with it.
6743for ac_symprfx in "" "_"; do
6744
6745 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6746 symxfrm="\\1 $ac_symprfx\\2 \\2"
6747
6748 # Write the raw and C identifiers.
6749 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750 # Fake it for dumpbin and say T for any non-static function,
6751 # D for any global variable and I for any imported variable.
6752 # Also find C++ and __fastcall symbols from MSVC++,
6753 # which start with @ or ?.
6754 lt_cv_sys_global_symbol_pipe="$AWK '"\
6755" {last_section=section; section=\$ 3};"\
6756" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6757" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6758" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6759" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6760" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6761" \$ 0!~/External *\|/{next};"\
6762" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6763" {if(hide[section]) next};"\
6764" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6765" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6766" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6767" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6768" ' prfx=^$ac_symprfx"
6769 else
6770 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6771 fi
6772 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6773
6774 # Check to see that the pipe works correctly.
6775 pipe_works=no
6776
6777 rm -f conftest*
6778 cat > conftest.$ac_ext <<_LT_EOF
6779#ifdef __cplusplus
6780extern "C" {
6781#endif
6782char nm_test_var;
6783void nm_test_func(void);
6784void nm_test_func(void){}
6785#ifdef __cplusplus
6786}
6787#endif
6788int main(){nm_test_var='a';nm_test_func();return(0);}
6789_LT_EOF
6790
6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6792 (eval $ac_compile) 2>&5
6793 ac_status=$?
6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795 test $ac_status = 0; }; then
6796 # Now try to grab the symbols.
6797 nlist=conftest.nm
6798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6799 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6800 ac_status=$?
6801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802 test $ac_status = 0; } && test -s "$nlist"; then
6803 # Try sorting and uniquifying the output.
6804 if sort "$nlist" | uniq > "$nlist"T; then
6805 mv -f "$nlist"T "$nlist"
6806 else
6807 rm -f "$nlist"T
6808 fi
6809
6810 # Make sure that we snagged all the symbols we need.
6811 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6812 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6813 cat <<_LT_EOF > conftest.$ac_ext
6814/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6815#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6816/* DATA imports from DLLs on WIN32 can't be const, because runtime
6817 relocations are performed -- see ld's documentation on pseudo-relocs. */
6818# define LT_DLSYM_CONST
6819#elif defined __osf__
6820/* This system does not cope well with relocations in const data. */
6821# define LT_DLSYM_CONST
6822#else
6823# define LT_DLSYM_CONST const
6824#endif
6825
6826#ifdef __cplusplus
6827extern "C" {
6828#endif
6829
6830_LT_EOF
6831 # Now generate the symbol file.
6832 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6833
6834 cat <<_LT_EOF >> conftest.$ac_ext
6835
6836/* The mapping between symbol names and symbols. */
6837LT_DLSYM_CONST struct {
6838 const char *name;
6839 void *address;
6840}
6841lt__PROGRAM__LTX_preloaded_symbols[] =
6842{
6843 { "@PROGRAM@", (void *) 0 },
6844_LT_EOF
6845 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6846 cat <<\_LT_EOF >> conftest.$ac_ext
6847 {0, (void *) 0}
6848};
6849
6850/* This works around a problem in FreeBSD linker */
6851#ifdef FREEBSD_WORKAROUND
6852static const void *lt_preloaded_setup() {
6853 return lt__PROGRAM__LTX_preloaded_symbols;
6854}
6855#endif
6856
6857#ifdef __cplusplus
6858}
6859#endif
6860_LT_EOF
6861 # Now try linking the two files.
6862 mv -f conftest.$ac_objext conftstm.$ac_objext
6863 lt_globsym_save_LIBS=$LIBS
6864 lt_globsym_save_CFLAGS=$CFLAGS
6865 LIBS=conftstm.$ac_objext
6866 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6868 (eval $ac_link) 2>&5
6869 ac_status=$?
6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6872 pipe_works=yes
6873 fi
6874 LIBS=$lt_globsym_save_LIBS
6875 CFLAGS=$lt_globsym_save_CFLAGS
6876 else
6877 echo "cannot find nm_test_func in $nlist" >&5
6878 fi
6879 else
6880 echo "cannot find nm_test_var in $nlist" >&5
6881 fi
6882 else
6883 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6884 fi
6885 else
6886 echo "$progname: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6888 fi
6889 rm -rf conftest* conftst*
6890
6891 # Do not use the global_symbol_pipe unless it works.
6892 if test yes = "$pipe_works"; then
6893 break
6894 else
6895 lt_cv_sys_global_symbol_pipe=
6896 fi
6897done
6898
6899fi
6900
6901if test -z "$lt_cv_sys_global_symbol_pipe"; then
6902 lt_cv_sys_global_symbol_to_cdecl=
6903fi
6904if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6906$as_echo "failed" >&6; }
6907else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6909$as_echo "ok" >&6; }
6910fi
6911
6912# Response file support.
6913if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6914 nm_file_list_spec='@'
6915elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6916 nm_file_list_spec='@'
6917fi
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6956$as_echo_n "checking for sysroot... " >&6; }
6957
6958# Check whether --with-sysroot was given.
6959if test "${with_sysroot+set}" = set; then :
6960 withval=$with_sysroot;
6961else
6962 with_sysroot=no
6963fi
6964
6965
6966lt_sysroot=
6967case $with_sysroot in #(
6968 yes)
6969 if test yes = "$GCC"; then
6970 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6971 fi
6972 ;; #(
6973 /*)
6974 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6975 ;; #(
6976 no|'')
6977 ;; #(
6978 *)
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6980$as_echo "$with_sysroot" >&6; }
6981 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6982 ;;
6983esac
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6986$as_echo "${lt_sysroot:-no}" >&6; }
6987
6988
6989
6990
6991
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6993$as_echo_n "checking for a working dd... " >&6; }
6994if ${ac_cv_path_lt_DD+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996else
6997 printf 0123456789abcdef0123456789abcdef >conftest.i
6998cat conftest.i conftest.i >conftest2.i
6999: ${lt_DD:=$DD}
7000if test -z "$lt_DD"; then
7001 ac_path_lt_DD_found=false
7002 # Loop through the user's path and test for each of PROGNAME-LIST
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004for as_dir in $PATH
7005do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_prog in dd; do
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7011 as_fn_executable_p "$ac_path_lt_DD" || continue
7012if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7013 cmp -s conftest.i conftest.out \
7014 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7015fi
7016 $ac_path_lt_DD_found && break 3
7017 done
7018 done
7019 done
7020IFS=$as_save_IFS
7021 if test -z "$ac_cv_path_lt_DD"; then
7022 :
7023 fi
7024else
7025 ac_cv_path_lt_DD=$lt_DD
7026fi
7027
7028rm -f conftest.i conftest2.i conftest.out
7029fi
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7031$as_echo "$ac_cv_path_lt_DD" >&6; }
7032
7033
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7035$as_echo_n "checking how to truncate binary pipes... " >&6; }
7036if ${lt_cv_truncate_bin+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038else
7039 printf 0123456789abcdef0123456789abcdef >conftest.i
7040cat conftest.i conftest.i >conftest2.i
7041lt_cv_truncate_bin=
7042if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7043 cmp -s conftest.i conftest.out \
7044 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7045fi
7046rm -f conftest.i conftest2.i conftest.out
7047test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7050$as_echo "$lt_cv_truncate_bin" >&6; }
7051
7052
7053
7054
7055
7056
7057
7058# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7059func_cc_basename ()
7060{
7061 for cc_temp in $*""; do
7062 case $cc_temp in
7063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7065 \-*) ;;
7066 *) break;;
7067 esac
7068 done
7069 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7070}
7071
7072# Check whether --enable-libtool-lock was given.
7073if test "${enable_libtool_lock+set}" = set; then :
7074 enableval=$enable_libtool_lock;
7075fi
7076
7077test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7078
7079# Some flags need to be propagated to the compiler or linker for good
7080# libtool support.
7081case $host in
7082ia64-*-hpux*)
7083 # Find out what ABI is being produced by ac_compile, and set mode
7084 # options accordingly.
7085 echo 'int i;' > conftest.$ac_ext
7086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7087 (eval $ac_compile) 2>&5
7088 ac_status=$?
7089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090 test $ac_status = 0; }; then
7091 case `/usr/bin/file conftest.$ac_objext` in
7092 *ELF-32*)
7093 HPUX_IA64_MODE=32
7094 ;;
7095 *ELF-64*)
7096 HPUX_IA64_MODE=64
7097 ;;
7098 esac
7099 fi
7100 rm -rf conftest*
7101 ;;
7102*-*-irix6*)
7103 # Find out what ABI is being produced by ac_compile, and set linker
7104 # options accordingly.
7105 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107 (eval $ac_compile) 2>&5
7108 ac_status=$?
7109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110 test $ac_status = 0; }; then
7111 if test yes = "$lt_cv_prog_gnu_ld"; then
7112 case `/usr/bin/file conftest.$ac_objext` in
7113 *32-bit*)
7114 LD="${LD-ld} -melf32bsmip"
7115 ;;
7116 *N32*)
7117 LD="${LD-ld} -melf32bmipn32"
7118 ;;
7119 *64-bit*)
7120 LD="${LD-ld} -melf64bmip"
7121 ;;
7122 esac
7123 else
7124 case `/usr/bin/file conftest.$ac_objext` in
7125 *32-bit*)
7126 LD="${LD-ld} -32"
7127 ;;
7128 *N32*)
7129 LD="${LD-ld} -n32"
7130 ;;
7131 *64-bit*)
7132 LD="${LD-ld} -64"
7133 ;;
7134 esac
7135 fi
7136 fi
7137 rm -rf conftest*
7138 ;;
7139
7140mips64*-*linux*)
7141 # Find out what ABI is being produced by ac_compile, and set linker
7142 # options accordingly.
7143 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145 (eval $ac_compile) 2>&5
7146 ac_status=$?
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; }; then
7149 emul=elf
7150 case `/usr/bin/file conftest.$ac_objext` in
7151 *32-bit*)
7152 emul="${emul}32"
7153 ;;
7154 *64-bit*)
7155 emul="${emul}64"
7156 ;;
7157 esac
7158 case `/usr/bin/file conftest.$ac_objext` in
7159 *MSB*)
7160 emul="${emul}btsmip"
7161 ;;
7162 *LSB*)
7163 emul="${emul}ltsmip"
7164 ;;
7165 esac
7166 case `/usr/bin/file conftest.$ac_objext` in
7167 *N32*)
7168 emul="${emul}n32"
7169 ;;
7170 esac
7171 LD="${LD-ld} -m $emul"
7172 fi
7173 rm -rf conftest*
7174 ;;
7175
7176x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7177s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7178 # Find out what ABI is being produced by ac_compile, and set linker
7179 # options accordingly. Note that the listed cases only cover the
7180 # situations where additional linker options are needed (such as when
7181 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7182 # vice versa); the common cases where no linker options are needed do
7183 # not appear in the list.
7184 echo 'int i;' > conftest.$ac_ext
7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186 (eval $ac_compile) 2>&5
7187 ac_status=$?
7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189 test $ac_status = 0; }; then
7190 case `/usr/bin/file conftest.o` in
7191 *32-bit*)
7192 case $host in
7193 x86_64-*kfreebsd*-gnu)
7194 LD="${LD-ld} -m elf_i386_fbsd"
7195 ;;
7196 x86_64-*linux*)
7197 case `/usr/bin/file conftest.o` in
7198 *x86-64*)
7199 LD="${LD-ld} -m elf32_x86_64"
7200 ;;
7201 *)
7202 LD="${LD-ld} -m elf_i386"
7203 ;;
7204 esac
7205 ;;
7206 powerpc64le-*linux*)
7207 LD="${LD-ld} -m elf32lppclinux"
7208 ;;
7209 powerpc64-*linux*)
7210 LD="${LD-ld} -m elf32ppclinux"
7211 ;;
7212 s390x-*linux*)
7213 LD="${LD-ld} -m elf_s390"
7214 ;;
7215 sparc64-*linux*)
7216 LD="${LD-ld} -m elf32_sparc"
7217 ;;
7218 esac
7219 ;;
7220 *64-bit*)
7221 case $host in
7222 x86_64-*kfreebsd*-gnu)
7223 LD="${LD-ld} -m elf_x86_64_fbsd"
7224 ;;
7225 x86_64-*linux*)
7226 LD="${LD-ld} -m elf_x86_64"
7227 ;;
7228 powerpcle-*linux*)
7229 LD="${LD-ld} -m elf64lppc"
7230 ;;
7231 powerpc-*linux*)
7232 LD="${LD-ld} -m elf64ppc"
7233 ;;
7234 s390*-*linux*|s390*-*tpf*)
7235 LD="${LD-ld} -m elf64_s390"
7236 ;;
7237 sparc*-*linux*)
7238 LD="${LD-ld} -m elf64_sparc"
7239 ;;
7240 esac
7241 ;;
7242 esac
7243 fi
7244 rm -rf conftest*
7245 ;;
7246
7247*-*-sco3.2v5*)
7248 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7249 SAVE_CFLAGS=$CFLAGS
7250 CFLAGS="$CFLAGS -belf"
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7252$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7253if ${lt_cv_cc_needs_belf+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255else
7256 ac_ext=c
7257ac_cpp='$CPP $CPPFLAGS'
7258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h. */
7264
7265int
7266main ()
7267{
7268
7269 ;
7270 return 0;
7271}
7272_ACEOF
7273if ac_fn_c_try_link "$LINENO"; then :
7274 lt_cv_cc_needs_belf=yes
7275else
7276 lt_cv_cc_needs_belf=no
7277fi
7278rm -f core conftest.err conftest.$ac_objext \
7279 conftest$ac_exeext conftest.$ac_ext
7280 ac_ext=c
7281ac_cpp='$CPP $CPPFLAGS'
7282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
7286fi
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7288$as_echo "$lt_cv_cc_needs_belf" >&6; }
7289 if test yes != "$lt_cv_cc_needs_belf"; then
7290 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7291 CFLAGS=$SAVE_CFLAGS
7292 fi
7293 ;;
7294*-*solaris*)
7295 # Find out what ABI is being produced by ac_compile, and set linker
7296 # options accordingly.
7297 echo 'int i;' > conftest.$ac_ext
7298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7299 (eval $ac_compile) 2>&5
7300 ac_status=$?
7301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302 test $ac_status = 0; }; then
7303 case `/usr/bin/file conftest.o` in
7304 *64-bit*)
7305 case $lt_cv_prog_gnu_ld in
7306 yes*)
7307 case $host in
7308 i?86-*-solaris*|x86_64-*-solaris*)
7309 LD="${LD-ld} -m elf_x86_64"
7310 ;;
7311 sparc*-*-solaris*)
7312 LD="${LD-ld} -m elf64_sparc"
7313 ;;
7314 esac
7315 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7316 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7317 LD=${LD-ld}_sol2
7318 fi
7319 ;;
7320 *)
7321 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7322 LD="${LD-ld} -64"
7323 fi
7324 ;;
7325 esac
7326 ;;
7327 esac
7328 fi
7329 rm -rf conftest*
7330 ;;
7331esac
7332
7333need_locks=$enable_libtool_lock
7334
7335if test -n "$ac_tool_prefix"; then
7336 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7337set dummy ${ac_tool_prefix}mt; ac_word=$2
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339$as_echo_n "checking for $ac_word... " >&6; }
7340if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7341 $as_echo_n "(cached) " >&6
7342else
7343 if test -n "$MANIFEST_TOOL"; then
7344 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7345else
7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7356 fi
7357done
7358 done
7359IFS=$as_save_IFS
7360
7361fi
7362fi
7363MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7364if test -n "$MANIFEST_TOOL"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7366$as_echo "$MANIFEST_TOOL" >&6; }
7367else
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369$as_echo "no" >&6; }
7370fi
7371
7372
7373fi
7374if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7375 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7376 # Extract the first word of "mt", so it can be a program name with args.
7377set dummy mt; ac_word=$2
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379$as_echo_n "checking for $ac_word... " >&6; }
7380if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7381 $as_echo_n "(cached) " >&6
7382else
7383 if test -n "$ac_ct_MANIFEST_TOOL"; then
7384 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7385else
7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397done
7398 done
7399IFS=$as_save_IFS
7400
7401fi
7402fi
7403ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7404if test -n "$ac_ct_MANIFEST_TOOL"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7406$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7407else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409$as_echo "no" >&6; }
7410fi
7411
7412 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7413 MANIFEST_TOOL=":"
7414 else
7415 case $cross_compiling:$ac_tool_warned in
7416yes:)
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419ac_tool_warned=yes ;;
7420esac
7421 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7422 fi
7423else
7424 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7425fi
7426
7427test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7429$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7430if ${lt_cv_path_mainfest_tool+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432else
7433 lt_cv_path_mainfest_tool=no
7434 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7435 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7436 cat conftest.err >&5
7437 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7438 lt_cv_path_mainfest_tool=yes
7439 fi
7440 rm -f conftest*
7441fi
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7443$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7444if test yes != "$lt_cv_path_mainfest_tool"; then
7445 MANIFEST_TOOL=:
7446fi
7447
7448
7449
7450
7451
7452
7453 case $host_os in
7454 rhapsody* | darwin*)
7455 if test -n "$ac_tool_prefix"; then
7456 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7457set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459$as_echo_n "checking for $ac_word... " >&6; }
7460if ${ac_cv_prog_DSYMUTIL+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462else
7463 if test -n "$DSYMUTIL"; then
7464 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7465else
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477done
7478 done
7479IFS=$as_save_IFS
7480
7481fi
7482fi
7483DSYMUTIL=$ac_cv_prog_DSYMUTIL
7484if test -n "$DSYMUTIL"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7486$as_echo "$DSYMUTIL" >&6; }
7487else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489$as_echo "no" >&6; }
7490fi
7491
7492
7493fi
7494if test -z "$ac_cv_prog_DSYMUTIL"; then
7495 ac_ct_DSYMUTIL=$DSYMUTIL
7496 # Extract the first word of "dsymutil", so it can be a program name with args.
7497set dummy dsymutil; ac_word=$2
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502else
7503 if test -n "$ac_ct_DSYMUTIL"; then
7504 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517done
7518 done
7519IFS=$as_save_IFS
7520
7521fi
7522fi
7523ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7524if test -n "$ac_ct_DSYMUTIL"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7526$as_echo "$ac_ct_DSYMUTIL" >&6; }
7527else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
7530fi
7531
7532 if test "x$ac_ct_DSYMUTIL" = x; then
7533 DSYMUTIL=":"
7534 else
7535 case $cross_compiling:$ac_tool_warned in
7536yes:)
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539ac_tool_warned=yes ;;
7540esac
7541 DSYMUTIL=$ac_ct_DSYMUTIL
7542 fi
7543else
7544 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7545fi
7546
7547 if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7549set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551$as_echo_n "checking for $ac_word... " >&6; }
7552if ${ac_cv_prog_NMEDIT+:} false; then :
7553 $as_echo_n "(cached) " >&6
7554else
7555 if test -n "$NMEDIT"; then
7556 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7557else
7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559for as_dir in $PATH
7560do
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 break 2
7568 fi
7569done
7570 done
7571IFS=$as_save_IFS
7572
7573fi
7574fi
7575NMEDIT=$ac_cv_prog_NMEDIT
7576if test -n "$NMEDIT"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7578$as_echo "$NMEDIT" >&6; }
7579else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581$as_echo "no" >&6; }
7582fi
7583
7584
7585fi
7586if test -z "$ac_cv_prog_NMEDIT"; then
7587 ac_ct_NMEDIT=$NMEDIT
7588 # Extract the first word of "nmedit", so it can be a program name with args.
7589set dummy nmedit; ac_word=$2
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591$as_echo_n "checking for $ac_word... " >&6; }
7592if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594else
7595 if test -n "$ac_ct_NMEDIT"; then
7596 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7597else
7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609done
7610 done
7611IFS=$as_save_IFS
7612
7613fi
7614fi
7615ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7616if test -n "$ac_ct_NMEDIT"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7618$as_echo "$ac_ct_NMEDIT" >&6; }
7619else
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624 if test "x$ac_ct_NMEDIT" = x; then
7625 NMEDIT=":"
7626 else
7627 case $cross_compiling:$ac_tool_warned in
7628yes:)
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631ac_tool_warned=yes ;;
7632esac
7633 NMEDIT=$ac_ct_NMEDIT
7634 fi
7635else
7636 NMEDIT="$ac_cv_prog_NMEDIT"
7637fi
7638
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7641set dummy ${ac_tool_prefix}lipo; ac_word=$2
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643$as_echo_n "checking for $ac_word... " >&6; }
7644if ${ac_cv_prog_LIPO+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646else
7647 if test -n "$LIPO"; then
7648 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661done
7662 done
7663IFS=$as_save_IFS
7664
7665fi
7666fi
7667LIPO=$ac_cv_prog_LIPO
7668if test -n "$LIPO"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7670$as_echo "$LIPO" >&6; }
7671else
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
7674fi
7675
7676
7677fi
7678if test -z "$ac_cv_prog_LIPO"; then
7679 ac_ct_LIPO=$LIPO
7680 # Extract the first word of "lipo", so it can be a program name with args.
7681set dummy lipo; ac_word=$2
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683$as_echo_n "checking for $ac_word... " >&6; }
7684if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686else
7687 if test -n "$ac_ct_LIPO"; then
7688 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_prog_ac_ct_LIPO="lipo"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701done
7702 done
7703IFS=$as_save_IFS
7704
7705fi
7706fi
7707ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7708if test -n "$ac_ct_LIPO"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7710$as_echo "$ac_ct_LIPO" >&6; }
7711else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
7714fi
7715
7716 if test "x$ac_ct_LIPO" = x; then
7717 LIPO=":"
7718 else
7719 case $cross_compiling:$ac_tool_warned in
7720yes:)
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7723ac_tool_warned=yes ;;
7724esac
7725 LIPO=$ac_ct_LIPO
7726 fi
7727else
7728 LIPO="$ac_cv_prog_LIPO"
7729fi
7730
7731 if test -n "$ac_tool_prefix"; then
7732 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7733set dummy ${ac_tool_prefix}otool; ac_word=$2
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735$as_echo_n "checking for $ac_word... " >&6; }
7736if ${ac_cv_prog_OTOOL+:} false; then :
7737 $as_echo_n "(cached) " >&6
7738else
7739 if test -n "$OTOOL"; then
7740 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7741else
7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743for as_dir in $PATH
7744do
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 break 2
7752 fi
7753done
7754 done
7755IFS=$as_save_IFS
7756
7757fi
7758fi
7759OTOOL=$ac_cv_prog_OTOOL
7760if test -n "$OTOOL"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7762$as_echo "$OTOOL" >&6; }
7763else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765$as_echo "no" >&6; }
7766fi
7767
7768
7769fi
7770if test -z "$ac_cv_prog_OTOOL"; then
7771 ac_ct_OTOOL=$OTOOL
7772 # Extract the first word of "otool", so it can be a program name with args.
7773set dummy otool; ac_word=$2
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775$as_echo_n "checking for $ac_word... " >&6; }
7776if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7777 $as_echo_n "(cached) " >&6
7778else
7779 if test -n "$ac_ct_OTOOL"; then
7780 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7781else
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789 ac_cv_prog_ac_ct_OTOOL="otool"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7792 fi
7793done
7794 done
7795IFS=$as_save_IFS
7796
7797fi
7798fi
7799ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7800if test -n "$ac_ct_OTOOL"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7802$as_echo "$ac_ct_OTOOL" >&6; }
7803else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
7806fi
7807
7808 if test "x$ac_ct_OTOOL" = x; then
7809 OTOOL=":"
7810 else
7811 case $cross_compiling:$ac_tool_warned in
7812yes:)
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815ac_tool_warned=yes ;;
7816esac
7817 OTOOL=$ac_ct_OTOOL
7818 fi
7819else
7820 OTOOL="$ac_cv_prog_OTOOL"
7821fi
7822
7823 if test -n "$ac_tool_prefix"; then
7824 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7825set dummy ${ac_tool_prefix}otool64; ac_word=$2
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827$as_echo_n "checking for $ac_word... " >&6; }
7828if ${ac_cv_prog_OTOOL64+:} false; then :
7829 $as_echo_n "(cached) " >&6
7830else
7831 if test -n "$OTOOL64"; then
7832 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7833else
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845done
7846 done
7847IFS=$as_save_IFS
7848
7849fi
7850fi
7851OTOOL64=$ac_cv_prog_OTOOL64
7852if test -n "$OTOOL64"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7854$as_echo "$OTOOL64" >&6; }
7855else
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
7858fi
7859
7860
7861fi
7862if test -z "$ac_cv_prog_OTOOL64"; then
7863 ac_ct_OTOOL64=$OTOOL64
7864 # Extract the first word of "otool64", so it can be a program name with args.
7865set dummy otool64; ac_word=$2
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867$as_echo_n "checking for $ac_word... " >&6; }
7868if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7869 $as_echo_n "(cached) " >&6
7870else
7871 if test -n "$ac_ct_OTOOL64"; then
7872 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7873else
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881 ac_cv_prog_ac_ct_OTOOL64="otool64"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7884 fi
7885done
7886 done
7887IFS=$as_save_IFS
7888
7889fi
7890fi
7891ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7892if test -n "$ac_ct_OTOOL64"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7894$as_echo "$ac_ct_OTOOL64" >&6; }
7895else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
7898fi
7899
7900 if test "x$ac_ct_OTOOL64" = x; then
7901 OTOOL64=":"
7902 else
7903 case $cross_compiling:$ac_tool_warned in
7904yes:)
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907ac_tool_warned=yes ;;
7908esac
7909 OTOOL64=$ac_ct_OTOOL64
7910 fi
7911else
7912 OTOOL64="$ac_cv_prog_OTOOL64"
7913fi
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7942$as_echo_n "checking for -single_module linker flag... " >&6; }
7943if ${lt_cv_apple_cc_single_mod+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945else
7946 lt_cv_apple_cc_single_mod=no
7947 if test -z "$LT_MULTI_MODULE"; then
7948 # By default we will add the -single_module flag. You can override
7949 # by either setting the environment variable LT_MULTI_MODULE
7950 # non-empty at configure time, or by adding -multi_module to the
7951 # link flags.
7952 rm -rf libconftest.dylib*
7953 echo "int foo(void){return 1;}" > conftest.c
7954 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7955-dynamiclib -Wl,-single_module conftest.c" >&5
7956 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7957 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7958 _lt_result=$?
7959 # If there is a non-empty error log, and "single_module"
7960 # appears in it, assume the flag caused a linker warning
7961 if test -s conftest.err && $GREP single_module conftest.err; then
7962 cat conftest.err >&5
7963 # Otherwise, if the output was created with a 0 exit code from
7964 # the compiler, it worked.
7965 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7966 lt_cv_apple_cc_single_mod=yes
7967 else
7968 cat conftest.err >&5
7969 fi
7970 rm -rf libconftest.dylib*
7971 rm -f conftest.*
7972 fi
7973fi
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7975$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7976
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7978$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7979if ${lt_cv_ld_exported_symbols_list+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981else
7982 lt_cv_ld_exported_symbols_list=no
7983 save_LDFLAGS=$LDFLAGS
7984 echo "_main" > conftest.sym
7985 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h. */
7988
7989int
7990main ()
7991{
7992
7993 ;
7994 return 0;
7995}
7996_ACEOF
7997if ac_fn_c_try_link "$LINENO"; then :
7998 lt_cv_ld_exported_symbols_list=yes
7999else
8000 lt_cv_ld_exported_symbols_list=no
8001fi
8002rm -f core conftest.err conftest.$ac_objext \
8003 conftest$ac_exeext conftest.$ac_ext
8004 LDFLAGS=$save_LDFLAGS
8005
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8008$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8011$as_echo_n "checking for -force_load linker flag... " >&6; }
8012if ${lt_cv_ld_force_load+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014else
8015 lt_cv_ld_force_load=no
8016 cat > conftest.c << _LT_EOF
8017int forced_loaded() { return 2;}
8018_LT_EOF
8019 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8020 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8021 echo "$AR cru libconftest.a conftest.o" >&5
8022 $AR cru libconftest.a conftest.o 2>&5
8023 echo "$RANLIB libconftest.a" >&5
8024 $RANLIB libconftest.a 2>&5
8025 cat > conftest.c << _LT_EOF
8026int main() { return 0;}
8027_LT_EOF
8028 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8029 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8030 _lt_result=$?
8031 if test -s conftest.err && $GREP force_load conftest.err; then
8032 cat conftest.err >&5
8033 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8034 lt_cv_ld_force_load=yes
8035 else
8036 cat conftest.err >&5
8037 fi
8038 rm -f conftest.err libconftest.a conftest conftest.c
8039 rm -rf conftest.dSYM
8040
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8043$as_echo "$lt_cv_ld_force_load" >&6; }
8044 case $host_os in
8045 rhapsody* | darwin1.[012])
8046 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8047 darwin1.*)
8048 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8049 darwin*) # darwin 5.x on
8050 # if running on 10.5 or later, the deployment target defaults
8051 # to the OS version, if on x86, and 10.4, the deployment
8052 # target defaults to 10.4. Don't you love it?
8053 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8054 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8055 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8056 10.[012][,.]*)
8057 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8058 10.*)
8059 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8060 esac
8061 ;;
8062 esac
8063 if test yes = "$lt_cv_apple_cc_single_mod"; then
8064 _lt_dar_single_mod='$single_module'
8065 fi
8066 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8067 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8068 else
8069 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8070 fi
8071 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8072 _lt_dsymutil='~$DSYMUTIL $lib || :'
8073 else
8074 _lt_dsymutil=
8075 fi
8076 ;;
8077 esac
8078
8079# func_munge_path_list VARIABLE PATH
8080# -----------------------------------
8081# VARIABLE is name of variable containing _space_ separated list of
8082# directories to be munged by the contents of PATH, which is string
8083# having a format:
8084# "DIR[:DIR]:"
8085# string "DIR[ DIR]" will be prepended to VARIABLE
8086# ":DIR[:DIR]"
8087# string "DIR[ DIR]" will be appended to VARIABLE
8088# "DIRP[:DIRP]::[DIRA:]DIRA"
8089# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8090# "DIRA[ DIRA]" will be appended to VARIABLE
8091# "DIR[:DIR]"
8092# VARIABLE will be replaced by "DIR[ DIR]"
8093func_munge_path_list ()
8094{
8095 case x$2 in
8096 x)
8097 ;;
8098 *:)
8099 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8100 ;;
8101 x:*)
8102 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8103 ;;
8104 *::*)
8105 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8106 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8107 ;;
8108 *)
8109 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8110 ;;
8111 esac
8112}
8113
8114ac_ext=c
8115ac_cpp='$CPP $CPPFLAGS'
8116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8118ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8120$as_echo_n "checking how to run the C preprocessor... " >&6; }
8121# On Suns, sometimes $CPP names a directory.
8122if test -n "$CPP" && test -d "$CPP"; then
8123 CPP=
8124fi
8125if test -z "$CPP"; then
8126 if ${ac_cv_prog_CPP+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128else
8129 # Double quotes because CPP needs to be expanded
8130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8131 do
8132 ac_preproc_ok=false
8133for ac_c_preproc_warn_flag in '' yes
8134do
8135 # Use a header file that comes with gcc, so configuring glibc
8136 # with a fresh cross-compiler works.
8137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8138 # <limits.h> exists even on freestanding compilers.
8139 # On the NeXT, cc -E runs the code through the compiler's parser,
8140 # not just through cpp. "Syntax error" is here to catch this case.
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142/* end confdefs.h. */
8143#ifdef __STDC__
8144# include <limits.h>
8145#else
8146# include <assert.h>
8147#endif
8148 Syntax error
8149_ACEOF
8150if ac_fn_c_try_cpp "$LINENO"; then :
8151
8152else
8153 # Broken: fails on valid input.
8154continue
8155fi
8156rm -f conftest.err conftest.i conftest.$ac_ext
8157
8158 # OK, works on sane cases. Now check whether nonexistent headers
8159 # can be detected and how.
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161/* end confdefs.h. */
8162#include <ac_nonexistent.h>
8163_ACEOF
8164if ac_fn_c_try_cpp "$LINENO"; then :
8165 # Broken: success on invalid input.
8166continue
8167else
8168 # Passes both tests.
8169ac_preproc_ok=:
8170break
8171fi
8172rm -f conftest.err conftest.i conftest.$ac_ext
8173
8174done
8175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8176rm -f conftest.i conftest.err conftest.$ac_ext
8177if $ac_preproc_ok; then :
8178 break
8179fi
8180
8181 done
8182 ac_cv_prog_CPP=$CPP
8183
8184fi
8185 CPP=$ac_cv_prog_CPP
8186else
8187 ac_cv_prog_CPP=$CPP
8188fi
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8190$as_echo "$CPP" >&6; }
8191ac_preproc_ok=false
8192for ac_c_preproc_warn_flag in '' yes
8193do
8194 # Use a header file that comes with gcc, so configuring glibc
8195 # with a fresh cross-compiler works.
8196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8197 # <limits.h> exists even on freestanding compilers.
8198 # On the NeXT, cc -E runs the code through the compiler's parser,
8199 # not just through cpp. "Syntax error" is here to catch this case.
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201/* end confdefs.h. */
8202#ifdef __STDC__
8203# include <limits.h>
8204#else
8205# include <assert.h>
8206#endif
8207 Syntax error
8208_ACEOF
8209if ac_fn_c_try_cpp "$LINENO"; then :
8210
8211else
8212 # Broken: fails on valid input.
8213continue
8214fi
8215rm -f conftest.err conftest.i conftest.$ac_ext
8216
8217 # OK, works on sane cases. Now check whether nonexistent headers
8218 # can be detected and how.
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220/* end confdefs.h. */
8221#include <ac_nonexistent.h>
8222_ACEOF
8223if ac_fn_c_try_cpp "$LINENO"; then :
8224 # Broken: success on invalid input.
8225continue
8226else
8227 # Passes both tests.
8228ac_preproc_ok=:
8229break
8230fi
8231rm -f conftest.err conftest.i conftest.$ac_ext
8232
8233done
8234# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8235rm -f conftest.i conftest.err conftest.$ac_ext
8236if $ac_preproc_ok; then :
8237
8238else
8239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8241as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8242See \`config.log' for more details" "$LINENO" 5; }
8243fi
8244
8245ac_ext=c
8246ac_cpp='$CPP $CPPFLAGS'
8247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249ac_compiler_gnu=$ac_cv_c_compiler_gnu
8250
8251
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8253$as_echo_n "checking for ANSI C header files... " >&6; }
8254if ${ac_cv_header_stdc+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256else
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258/* end confdefs.h. */
8259#include <stdlib.h>
8260#include <stdarg.h>
8261#include <string.h>
8262#include <float.h>
8263
8264int
8265main ()
8266{
8267
8268 ;
8269 return 0;
8270}
8271_ACEOF
8272if ac_fn_c_try_compile "$LINENO"; then :
8273 ac_cv_header_stdc=yes
8274else
8275 ac_cv_header_stdc=no
8276fi
8277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278
8279if test $ac_cv_header_stdc = yes; then
8280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282/* end confdefs.h. */
8283#include <string.h>
8284
8285_ACEOF
8286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8287 $EGREP "memchr" >/dev/null 2>&1; then :
8288
8289else
8290 ac_cv_header_stdc=no
8291fi
8292rm -f conftest*
8293
8294fi
8295
8296if test $ac_cv_header_stdc = yes; then
8297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h. */
8300#include <stdlib.h>
8301
8302_ACEOF
8303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8304 $EGREP "free" >/dev/null 2>&1; then :
8305
8306else
8307 ac_cv_header_stdc=no
8308fi
8309rm -f conftest*
8310
8311fi
8312
8313if test $ac_cv_header_stdc = yes; then
8314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8315 if test "$cross_compiling" = yes; then :
8316 :
8317else
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319/* end confdefs.h. */
8320#include <ctype.h>
8321#include <stdlib.h>
8322#if ((' ' & 0x0FF) == 0x020)
8323# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8324# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8325#else
8326# define ISLOWER(c) \
8327 (('a' <= (c) && (c) <= 'i') \
8328 || ('j' <= (c) && (c) <= 'r') \
8329 || ('s' <= (c) && (c) <= 'z'))
8330# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8331#endif
8332
8333#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8334int
8335main ()
8336{
8337 int i;
8338 for (i = 0; i < 256; i++)
8339 if (XOR (islower (i), ISLOWER (i))
8340 || toupper (i) != TOUPPER (i))
8341 return 2;
8342 return 0;
8343}
8344_ACEOF
8345if ac_fn_c_try_run "$LINENO"; then :
8346
8347else
8348 ac_cv_header_stdc=no
8349fi
8350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8351 conftest.$ac_objext conftest.beam conftest.$ac_ext
8352fi
8353
8354fi
8355fi
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8357$as_echo "$ac_cv_header_stdc" >&6; }
8358if test $ac_cv_header_stdc = yes; then
8359
8360$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8361
8362fi
8363
8364# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8365for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8366 inttypes.h stdint.h unistd.h
8367do :
8368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8369ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8370"
8371if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8372 cat >>confdefs.h <<_ACEOF
8373#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8374_ACEOF
8375
8376fi
8377
8378done
8379
8380
8381for ac_header in dlfcn.h
8382do :
8383 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8384"
8385if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8386 cat >>confdefs.h <<_ACEOF
8387#define HAVE_DLFCN_H 1
8388_ACEOF
8389
8390fi
8391
8392done
8393
8394
8395
8396func_stripname_cnf ()
8397{
8398 case $2 in
8399 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8400 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8401 esac
8402} # func_stripname_cnf
8403
8404
8405
8406
8407
8408# Set options
8409
8410
8411
8412 enable_dlopen=no
8413
8414
8415 enable_win32_dll=no
8416
8417
8418 # Check whether --enable-shared was given.
8419if test "${enable_shared+set}" = set; then :
8420 enableval=$enable_shared; p=${PACKAGE-default}
8421 case $enableval in
8422 yes) enable_shared=yes ;;
8423 no) enable_shared=no ;;
8424 *)
8425 enable_shared=no
8426 # Look at the argument we got. We use all the common list separators.
8427 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8428 for pkg in $enableval; do
8429 IFS=$lt_save_ifs
8430 if test "X$pkg" = "X$p"; then
8431 enable_shared=yes
8432 fi
8433 done
8434 IFS=$lt_save_ifs
8435 ;;
8436 esac
8437else
8438 enable_shared=yes
8439fi
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449 # Check whether --enable-static was given.
8450if test "${enable_static+set}" = set; then :
8451 enableval=$enable_static; p=${PACKAGE-default}
8452 case $enableval in
8453 yes) enable_static=yes ;;
8454 no) enable_static=no ;;
8455 *)
8456 enable_static=no
8457 # Look at the argument we got. We use all the common list separators.
8458 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8459 for pkg in $enableval; do
8460 IFS=$lt_save_ifs
8461 if test "X$pkg" = "X$p"; then
8462 enable_static=yes
8463 fi
8464 done
8465 IFS=$lt_save_ifs
8466 ;;
8467 esac
8468else
8469 enable_static=yes
8470fi
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481# Check whether --with-pic was given.
8482if test "${with_pic+set}" = set; then :
8483 withval=$with_pic; lt_p=${PACKAGE-default}
8484 case $withval in
8485 yes|no) pic_mode=$withval ;;
8486 *)
8487 pic_mode=default
8488 # Look at the argument we got. We use all the common list separators.
8489 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8490 for lt_pkg in $withval; do
8491 IFS=$lt_save_ifs
8492 if test "X$lt_pkg" = "X$lt_p"; then
8493 pic_mode=yes
8494 fi
8495 done
8496 IFS=$lt_save_ifs
8497 ;;
8498 esac
8499else
8500 pic_mode=default
8501fi
8502
8503
8504
8505
8506
8507
8508
8509
8510 # Check whether --enable-fast-install was given.
8511if test "${enable_fast_install+set}" = set; then :
8512 enableval=$enable_fast_install; p=${PACKAGE-default}
8513 case $enableval in
8514 yes) enable_fast_install=yes ;;
8515 no) enable_fast_install=no ;;
8516 *)
8517 enable_fast_install=no
8518 # Look at the argument we got. We use all the common list separators.
8519 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8520 for pkg in $enableval; do
8521 IFS=$lt_save_ifs
8522 if test "X$pkg" = "X$p"; then
8523 enable_fast_install=yes
8524 fi
8525 done
8526 IFS=$lt_save_ifs
8527 ;;
8528 esac
8529else
8530 enable_fast_install=yes
8531fi
8532
8533
8534
8535
8536
8537
8538
8539
8540 shared_archive_member_spec=
8541case $host,$enable_shared in
8542power*-*-aix[5-9]*,yes)
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8544$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8545
8546# Check whether --with-aix-soname was given.
8547if test "${with_aix_soname+set}" = set; then :
8548 withval=$with_aix_soname; case $withval in
8549 aix|svr4|both)
8550 ;;
8551 *)
8552 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8553 ;;
8554 esac
8555 lt_cv_with_aix_soname=$with_aix_soname
8556else
8557 if ${lt_cv_with_aix_soname+:} false; then :
8558 $as_echo_n "(cached) " >&6
8559else
8560 lt_cv_with_aix_soname=aix
8561fi
8562
8563 with_aix_soname=$lt_cv_with_aix_soname
8564fi
8565
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8567$as_echo "$with_aix_soname" >&6; }
8568 if test aix != "$with_aix_soname"; then
8569 # For the AIX way of multilib, we name the shared archive member
8570 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8571 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8572 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8573 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8574 if test 64 = "${OBJECT_MODE-32}"; then
8575 shared_archive_member_spec=shr_64
8576 else
8577 shared_archive_member_spec=shr
8578 fi
8579 fi
8580 ;;
8581*)
8582 with_aix_soname=aix
8583 ;;
8584esac
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595# This can be used to rebuild libtool when needed
8596LIBTOOL_DEPS=$ltmain
8597
8598# Always use our own libtool.
8599LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630test -z "$LN_S" && LN_S="ln -s"
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645if test -n "${ZSH_VERSION+set}"; then
8646 setopt NO_GLOB_SUBST
8647fi
8648
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8650$as_echo_n "checking for objdir... " >&6; }
8651if ${lt_cv_objdir+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653else
8654 rm -f .libs 2>/dev/null
8655mkdir .libs 2>/dev/null
8656if test -d .libs; then
8657 lt_cv_objdir=.libs
8658else
8659 # MS-DOS does not allow filenames that begin with a dot.
8660 lt_cv_objdir=_libs
8661fi
8662rmdir .libs 2>/dev/null
8663fi
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8665$as_echo "$lt_cv_objdir" >&6; }
8666objdir=$lt_cv_objdir
8667
8668
8669
8670
8671
8672cat >>confdefs.h <<_ACEOF
8673#define LT_OBJDIR "$lt_cv_objdir/"
8674_ACEOF
8675
8676
8677
8678
8679case $host_os in
8680aix3*)
8681 # AIX sometimes has problems with the GCC collect2 program. For some
8682 # reason, if we set the COLLECT_NAMES environment variable, the problems
8683 # vanish in a puff of smoke.
8684 if test set != "${COLLECT_NAMES+set}"; then
8685 COLLECT_NAMES=
8686 export COLLECT_NAMES
8687 fi
8688 ;;
8689esac
8690
8691# Global variables:
8692ofile=libtool
8693can_build_shared=yes
8694
8695# All known linkers require a '.a' archive for static linking (except MSVC,
8696# which needs '.lib').
8697libext=a
8698
8699with_gnu_ld=$lt_cv_prog_gnu_ld
8700
8701old_CC=$CC
8702old_CFLAGS=$CFLAGS
8703
8704# Set sane defaults for various variables
8705test -z "$CC" && CC=cc
8706test -z "$LTCC" && LTCC=$CC
8707test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8708test -z "$LD" && LD=ld
8709test -z "$ac_objext" && ac_objext=o
8710
8711func_cc_basename $compiler
8712cc_basename=$func_cc_basename_result
8713
8714
8715# Only perform the check for file, if the check method requires it
8716test -z "$MAGIC_CMD" && MAGIC_CMD=file
8717case $deplibs_check_method in
8718file_magic*)
8719 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8721$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8722if ${lt_cv_path_MAGIC_CMD+:} false; then :
8723 $as_echo_n "(cached) " >&6
8724else
8725 case $MAGIC_CMD in
8726[\\/*] | ?:[\\/]*)
8727 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8728 ;;
8729*)
8730 lt_save_MAGIC_CMD=$MAGIC_CMD
8731 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8733 for ac_dir in $ac_dummy; do
8734 IFS=$lt_save_ifs
8735 test -z "$ac_dir" && ac_dir=.
8736 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8737 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8738 if test -n "$file_magic_test_file"; then
8739 case $deplibs_check_method in
8740 "file_magic "*)
8741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8742 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8744 $EGREP "$file_magic_regex" > /dev/null; then
8745 :
8746 else
8747 cat <<_LT_EOF 1>&2
8748
8749*** Warning: the command libtool uses to detect shared libraries,
8750*** $file_magic_cmd, produces output that libtool cannot recognize.
8751*** The result is that libtool may fail to recognize shared libraries
8752*** as such. This will affect the creation of libtool libraries that
8753*** depend on shared libraries, but programs linked with such libtool
8754*** libraries will work regardless of this problem. Nevertheless, you
8755*** may want to report the problem to your system manager and/or to
8756*** bug-libtool@gnu.org
8757
8758_LT_EOF
8759 fi ;;
8760 esac
8761 fi
8762 break
8763 fi
8764 done
8765 IFS=$lt_save_ifs
8766 MAGIC_CMD=$lt_save_MAGIC_CMD
8767 ;;
8768esac
8769fi
8770
8771MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8772if test -n "$MAGIC_CMD"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8774$as_echo "$MAGIC_CMD" >&6; }
8775else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777$as_echo "no" >&6; }
8778fi
8779
8780
8781
8782
8783
8784if test -z "$lt_cv_path_MAGIC_CMD"; then
8785 if test -n "$ac_tool_prefix"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8787$as_echo_n "checking for file... " >&6; }
8788if ${lt_cv_path_MAGIC_CMD+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790else
8791 case $MAGIC_CMD in
8792[\\/*] | ?:[\\/]*)
8793 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8794 ;;
8795*)
8796 lt_save_MAGIC_CMD=$MAGIC_CMD
8797 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8799 for ac_dir in $ac_dummy; do
8800 IFS=$lt_save_ifs
8801 test -z "$ac_dir" && ac_dir=.
8802 if test -f "$ac_dir/file"; then
8803 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8804 if test -n "$file_magic_test_file"; then
8805 case $deplibs_check_method in
8806 "file_magic "*)
8807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8808 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8810 $EGREP "$file_magic_regex" > /dev/null; then
8811 :
8812 else
8813 cat <<_LT_EOF 1>&2
8814
8815*** Warning: the command libtool uses to detect shared libraries,
8816*** $file_magic_cmd, produces output that libtool cannot recognize.
8817*** The result is that libtool may fail to recognize shared libraries
8818*** as such. This will affect the creation of libtool libraries that
8819*** depend on shared libraries, but programs linked with such libtool
8820*** libraries will work regardless of this problem. Nevertheless, you
8821*** may want to report the problem to your system manager and/or to
8822*** bug-libtool@gnu.org
8823
8824_LT_EOF
8825 fi ;;
8826 esac
8827 fi
8828 break
8829 fi
8830 done
8831 IFS=$lt_save_ifs
8832 MAGIC_CMD=$lt_save_MAGIC_CMD
8833 ;;
8834esac
8835fi
8836
8837MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8838if test -n "$MAGIC_CMD"; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8840$as_echo "$MAGIC_CMD" >&6; }
8841else
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843$as_echo "no" >&6; }
8844fi
8845
8846
8847 else
8848 MAGIC_CMD=:
8849 fi
8850fi
8851
8852 fi
8853 ;;
8854esac
8855
8856# Use C for the default configuration in the libtool script
8857
8858lt_save_CC=$CC
8859ac_ext=c
8860ac_cpp='$CPP $CPPFLAGS'
8861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863ac_compiler_gnu=$ac_cv_c_compiler_gnu
8864
8865
8866# Source file extension for C test sources.
8867ac_ext=c
8868
8869# Object file extension for compiled C test sources.
8870objext=o
8871objext=$objext
8872
8873# Code to be used in simple compile tests
8874lt_simple_compile_test_code="int some_variable = 0;"
8875
8876# Code to be used in simple link tests
8877lt_simple_link_test_code='int main(){return(0);}'
8878
8879
8880
8881
8882
8883
8884
8885# If no C compiler was specified, use CC.
8886LTCC=${LTCC-"$CC"}
8887
8888# If no C compiler flags were specified, use CFLAGS.
8889LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8890
8891# Allow CC to be a program name with arguments.
8892compiler=$CC
8893
8894# Save the default compiler, since it gets overwritten when the other
8895# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8896compiler_DEFAULT=$CC
8897
8898# save warnings/boilerplate of simple test code
8899ac_outfile=conftest.$ac_objext
8900echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8901eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8902_lt_compiler_boilerplate=`cat conftest.err`
8903$RM conftest*
8904
8905ac_outfile=conftest.$ac_objext
8906echo "$lt_simple_link_test_code" >conftest.$ac_ext
8907eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8908_lt_linker_boilerplate=`cat conftest.err`
8909$RM -r conftest*
8910
8911
8912## CAVEAT EMPTOR:
8913## There is no encapsulation within the following macros, do not change
8914## the running order or otherwise move them around unless you know exactly
8915## what you are doing...
8916if test -n "$compiler"; then
8917
8918lt_prog_compiler_no_builtin_flag=
8919
8920if test yes = "$GCC"; then
8921 case $cc_basename in
8922 nvcc*)
8923 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8924 *)
8925 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8926 esac
8927
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8929$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8930if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932else
8933 lt_cv_prog_compiler_rtti_exceptions=no
8934 ac_outfile=conftest.$ac_objext
8935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8936 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8937 # Insert the option either (1) after the last *FLAGS variable, or
8938 # (2) before a word containing "conftest.", or (3) at the end.
8939 # Note that $ac_compile itself does not contain backslashes and begins
8940 # with a dollar sign (not a hyphen), so the echo should work correctly.
8941 # The option is referenced via a variable to avoid confusing sed.
8942 lt_compile=`echo "$ac_compile" | $SED \
8943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945 -e 's:$: $lt_compiler_flag:'`
8946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8947 (eval "$lt_compile" 2>conftest.err)
8948 ac_status=$?
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 if (exit $ac_status) && test -s "$ac_outfile"; then
8952 # The compiler can only warn and ignore the option if not recognized
8953 # So say no if there are warnings other than the usual output.
8954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8956 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8957 lt_cv_prog_compiler_rtti_exceptions=yes
8958 fi
8959 fi
8960 $RM conftest*
8961
8962fi
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8964$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8965
8966if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8967 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8968else
8969 :
8970fi
8971
8972fi
8973
8974
8975
8976
8977
8978
8979 lt_prog_compiler_wl=
8980lt_prog_compiler_pic=
8981lt_prog_compiler_static=
8982
8983
8984 if test yes = "$GCC"; then
8985 lt_prog_compiler_wl='-Wl,'
8986 lt_prog_compiler_static='-static'
8987
8988 case $host_os in
8989 aix*)
8990 # All AIX code is PIC.
8991 if test ia64 = "$host_cpu"; then
8992 # AIX 5 now supports IA64 processor
8993 lt_prog_compiler_static='-Bstatic'
8994 fi
8995 lt_prog_compiler_pic='-fPIC'
8996 ;;
8997
8998 amigaos*)
8999 case $host_cpu in
9000 powerpc)
9001 # see comment about AmigaOS4 .so support
9002 lt_prog_compiler_pic='-fPIC'
9003 ;;
9004 m68k)
9005 # FIXME: we need at least 68020 code to build shared libraries, but
9006 # adding the '-m68020' flag to GCC prevents building anything better,
9007 # like '-m68040'.
9008 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9009 ;;
9010 esac
9011 ;;
9012
9013 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9014 # PIC is the default for these OSes.
9015 ;;
9016
9017 mingw* | cygwin* | pw32* | os2* | cegcc*)
9018 # This hack is so that the source file can tell whether it is being
9019 # built for inclusion in a dll (and should export symbols for example).
9020 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9021 # (--disable-auto-import) libraries
9022 lt_prog_compiler_pic='-DDLL_EXPORT'
9023 case $host_os in
9024 os2*)
9025 lt_prog_compiler_static='$wl-static'
9026 ;;
9027 esac
9028 ;;
9029
9030 darwin* | rhapsody*)
9031 # PIC is the default on this platform
9032 # Common symbols not allowed in MH_DYLIB files
9033 lt_prog_compiler_pic='-fno-common'
9034 ;;
9035
9036 haiku*)
9037 # PIC is the default for Haiku.
9038 # The "-static" flag exists, but is broken.
9039 lt_prog_compiler_static=
9040 ;;
9041
9042 hpux*)
9043 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9044 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9045 # sets the default TLS model and affects inlining.
9046 case $host_cpu in
9047 hppa*64*)
9048 # +Z the default
9049 ;;
9050 *)
9051 lt_prog_compiler_pic='-fPIC'
9052 ;;
9053 esac
9054 ;;
9055
9056 interix[3-9]*)
9057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9058 # Instead, we relocate shared libraries at runtime.
9059 ;;
9060
9061 msdosdjgpp*)
9062 # Just because we use GCC doesn't mean we suddenly get shared libraries
9063 # on systems that don't support them.
9064 lt_prog_compiler_can_build_shared=no
9065 enable_shared=no
9066 ;;
9067
9068 *nto* | *qnx*)
9069 # QNX uses GNU C++, but need to define -shared option too, otherwise
9070 # it will coredump.
9071 lt_prog_compiler_pic='-fPIC -shared'
9072 ;;
9073
9074 sysv4*MP*)
9075 if test -d /usr/nec; then
9076 lt_prog_compiler_pic=-Kconform_pic
9077 fi
9078 ;;
9079
9080 *)
9081 lt_prog_compiler_pic='-fPIC'
9082 ;;
9083 esac
9084
9085 case $cc_basename in
9086 nvcc*) # Cuda Compiler Driver 2.2
9087 lt_prog_compiler_wl='-Xlinker '
9088 if test -n "$lt_prog_compiler_pic"; then
9089 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9090 fi
9091 ;;
9092 esac
9093 else
9094 # PORTME Check for flag to pass linker flags through the system compiler.
9095 case $host_os in
9096 aix*)
9097 lt_prog_compiler_wl='-Wl,'
9098 if test ia64 = "$host_cpu"; then
9099 # AIX 5 now supports IA64 processor
9100 lt_prog_compiler_static='-Bstatic'
9101 else
9102 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9103 fi
9104 ;;
9105
9106 darwin* | rhapsody*)
9107 # PIC is the default on this platform
9108 # Common symbols not allowed in MH_DYLIB files
9109 lt_prog_compiler_pic='-fno-common'
9110 case $cc_basename in
9111 nagfor*)
9112 # NAG Fortran compiler
9113 lt_prog_compiler_wl='-Wl,-Wl,,'
9114 lt_prog_compiler_pic='-PIC'
9115 lt_prog_compiler_static='-Bstatic'
9116 ;;
9117 esac
9118 ;;
9119
9120 mingw* | cygwin* | pw32* | os2* | cegcc*)
9121 # This hack is so that the source file can tell whether it is being
9122 # built for inclusion in a dll (and should export symbols for example).
9123 lt_prog_compiler_pic='-DDLL_EXPORT'
9124 case $host_os in
9125 os2*)
9126 lt_prog_compiler_static='$wl-static'
9127 ;;
9128 esac
9129 ;;
9130
9131 hpux9* | hpux10* | hpux11*)
9132 lt_prog_compiler_wl='-Wl,'
9133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9134 # not for PA HP-UX.
9135 case $host_cpu in
9136 hppa*64*|ia64*)
9137 # +Z the default
9138 ;;
9139 *)
9140 lt_prog_compiler_pic='+Z'
9141 ;;
9142 esac
9143 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9144 lt_prog_compiler_static='$wl-a ${wl}archive'
9145 ;;
9146
9147 irix5* | irix6* | nonstopux*)
9148 lt_prog_compiler_wl='-Wl,'
9149 # PIC (with -KPIC) is the default.
9150 lt_prog_compiler_static='-non_shared'
9151 ;;
9152
9153 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9154 case $cc_basename in
9155 # old Intel for x86_64, which still supported -KPIC.
9156 ecc*)
9157 lt_prog_compiler_wl='-Wl,'
9158 lt_prog_compiler_pic='-KPIC'
9159 lt_prog_compiler_static='-static'
9160 ;;
9161 # icc used to be incompatible with GCC.
9162 # ICC 10 doesn't accept -KPIC any more.
9163 icc* | ifort*)
9164 lt_prog_compiler_wl='-Wl,'
9165 lt_prog_compiler_pic='-fPIC'
9166 lt_prog_compiler_static='-static'
9167 ;;
9168 # Lahey Fortran 8.1.
9169 lf95*)
9170 lt_prog_compiler_wl='-Wl,'
9171 lt_prog_compiler_pic='--shared'
9172 lt_prog_compiler_static='--static'
9173 ;;
9174 nagfor*)
9175 # NAG Fortran compiler
9176 lt_prog_compiler_wl='-Wl,-Wl,,'
9177 lt_prog_compiler_pic='-PIC'
9178 lt_prog_compiler_static='-Bstatic'
9179 ;;
9180 tcc*)
9181 # Fabrice Bellard et al's Tiny C Compiler
9182 lt_prog_compiler_wl='-Wl,'
9183 lt_prog_compiler_pic='-fPIC'
9184 lt_prog_compiler_static='-static'
9185 ;;
9186 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9187 # Portland Group compilers (*not* the Pentium gcc compiler,
9188 # which looks to be a dead project)
9189 lt_prog_compiler_wl='-Wl,'
9190 lt_prog_compiler_pic='-fpic'
9191 lt_prog_compiler_static='-Bstatic'
9192 ;;
9193 ccc*)
9194 lt_prog_compiler_wl='-Wl,'
9195 # All Alpha code is PIC.
9196 lt_prog_compiler_static='-non_shared'
9197 ;;
9198 xl* | bgxl* | bgf* | mpixl*)
9199 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-qpic'
9202 lt_prog_compiler_static='-qstaticlink'
9203 ;;
9204 *)
9205 case `$CC -V 2>&1 | sed 5q` in
9206 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9207 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9208 lt_prog_compiler_pic='-KPIC'
9209 lt_prog_compiler_static='-Bstatic'
9210 lt_prog_compiler_wl=''
9211 ;;
9212 *Sun\ F* | *Sun*Fortran*)
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-Bstatic'
9215 lt_prog_compiler_wl='-Qoption ld '
9216 ;;
9217 *Sun\ C*)
9218 # Sun C 5.9
9219 lt_prog_compiler_pic='-KPIC'
9220 lt_prog_compiler_static='-Bstatic'
9221 lt_prog_compiler_wl='-Wl,'
9222 ;;
9223 *Intel*\ [CF]*Compiler*)
9224 lt_prog_compiler_wl='-Wl,'
9225 lt_prog_compiler_pic='-fPIC'
9226 lt_prog_compiler_static='-static'
9227 ;;
9228 *Portland\ Group*)
9229 lt_prog_compiler_wl='-Wl,'
9230 lt_prog_compiler_pic='-fpic'
9231 lt_prog_compiler_static='-Bstatic'
9232 ;;
9233 esac
9234 ;;
9235 esac
9236 ;;
9237
9238 newsos6)
9239 lt_prog_compiler_pic='-KPIC'
9240 lt_prog_compiler_static='-Bstatic'
9241 ;;
9242
9243 *nto* | *qnx*)
9244 # QNX uses GNU C++, but need to define -shared option too, otherwise
9245 # it will coredump.
9246 lt_prog_compiler_pic='-fPIC -shared'
9247 ;;
9248
9249 osf3* | osf4* | osf5*)
9250 lt_prog_compiler_wl='-Wl,'
9251 # All OSF/1 code is PIC.
9252 lt_prog_compiler_static='-non_shared'
9253 ;;
9254
9255 rdos*)
9256 lt_prog_compiler_static='-non_shared'
9257 ;;
9258
9259 solaris*)
9260 lt_prog_compiler_pic='-KPIC'
9261 lt_prog_compiler_static='-Bstatic'
9262 case $cc_basename in
9263 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9264 lt_prog_compiler_wl='-Qoption ld ';;
9265 *)
9266 lt_prog_compiler_wl='-Wl,';;
9267 esac
9268 ;;
9269
9270 sunos4*)
9271 lt_prog_compiler_wl='-Qoption ld '
9272 lt_prog_compiler_pic='-PIC'
9273 lt_prog_compiler_static='-Bstatic'
9274 ;;
9275
9276 sysv4 | sysv4.2uw2* | sysv4.3*)
9277 lt_prog_compiler_wl='-Wl,'
9278 lt_prog_compiler_pic='-KPIC'
9279 lt_prog_compiler_static='-Bstatic'
9280 ;;
9281
9282 sysv4*MP*)
9283 if test -d /usr/nec; then
9284 lt_prog_compiler_pic='-Kconform_pic'
9285 lt_prog_compiler_static='-Bstatic'
9286 fi
9287 ;;
9288
9289 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9290 lt_prog_compiler_wl='-Wl,'
9291 lt_prog_compiler_pic='-KPIC'
9292 lt_prog_compiler_static='-Bstatic'
9293 ;;
9294
9295 unicos*)
9296 lt_prog_compiler_wl='-Wl,'
9297 lt_prog_compiler_can_build_shared=no
9298 ;;
9299
9300 uts4*)
9301 lt_prog_compiler_pic='-pic'
9302 lt_prog_compiler_static='-Bstatic'
9303 ;;
9304
9305 *)
9306 lt_prog_compiler_can_build_shared=no
9307 ;;
9308 esac
9309 fi
9310
9311case $host_os in
9312 # For platforms that do not support PIC, -DPIC is meaningless:
9313 *djgpp*)
9314 lt_prog_compiler_pic=
9315 ;;
9316 *)
9317 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9318 ;;
9319esac
9320
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9322$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9323if ${lt_cv_prog_compiler_pic+:} false; then :
9324 $as_echo_n "(cached) " >&6
9325else
9326 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9327fi
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9329$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9330lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9331
9332#
9333# Check to make sure the PIC flag actually works.
9334#
9335if test -n "$lt_prog_compiler_pic"; then
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9337$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9338if ${lt_cv_prog_compiler_pic_works+:} false; then :
9339 $as_echo_n "(cached) " >&6
9340else
9341 lt_cv_prog_compiler_pic_works=no
9342 ac_outfile=conftest.$ac_objext
9343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9344 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9345 # Insert the option either (1) after the last *FLAGS variable, or
9346 # (2) before a word containing "conftest.", or (3) at the end.
9347 # Note that $ac_compile itself does not contain backslashes and begins
9348 # with a dollar sign (not a hyphen), so the echo should work correctly.
9349 # The option is referenced via a variable to avoid confusing sed.
9350 lt_compile=`echo "$ac_compile" | $SED \
9351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9353 -e 's:$: $lt_compiler_flag:'`
9354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9355 (eval "$lt_compile" 2>conftest.err)
9356 ac_status=$?
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 if (exit $ac_status) && test -s "$ac_outfile"; then
9360 # The compiler can only warn and ignore the option if not recognized
9361 # So say no if there are warnings other than the usual output.
9362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9365 lt_cv_prog_compiler_pic_works=yes
9366 fi
9367 fi
9368 $RM conftest*
9369
9370fi
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9372$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9373
9374if test yes = "$lt_cv_prog_compiler_pic_works"; then
9375 case $lt_prog_compiler_pic in
9376 "" | " "*) ;;
9377 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9378 esac
9379else
9380 lt_prog_compiler_pic=
9381 lt_prog_compiler_can_build_shared=no
9382fi
9383
9384fi
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396#
9397# Check to make sure the static flag actually works.
9398#
9399wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9401$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9402if ${lt_cv_prog_compiler_static_works+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404else
9405 lt_cv_prog_compiler_static_works=no
9406 save_LDFLAGS=$LDFLAGS
9407 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9408 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9410 # The linker can only warn and ignore the option if not recognized
9411 # So say no if there are warnings
9412 if test -s conftest.err; then
9413 # Append any errors to the config.log.
9414 cat conftest.err 1>&5
9415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9417 if diff conftest.exp conftest.er2 >/dev/null; then
9418 lt_cv_prog_compiler_static_works=yes
9419 fi
9420 else
9421 lt_cv_prog_compiler_static_works=yes
9422 fi
9423 fi
9424 $RM -r conftest*
9425 LDFLAGS=$save_LDFLAGS
9426
9427fi
9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9429$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9430
9431if test yes = "$lt_cv_prog_compiler_static_works"; then
9432 :
9433else
9434 lt_prog_compiler_static=
9435fi
9436
9437
9438
9439
9440
9441
9442
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9444$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9445if ${lt_cv_prog_compiler_c_o+:} false; then :
9446 $as_echo_n "(cached) " >&6
9447else
9448 lt_cv_prog_compiler_c_o=no
9449 $RM -r conftest 2>/dev/null
9450 mkdir conftest
9451 cd conftest
9452 mkdir out
9453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9454
9455 lt_compiler_flag="-o out/conftest2.$ac_objext"
9456 # Insert the option either (1) after the last *FLAGS variable, or
9457 # (2) before a word containing "conftest.", or (3) at the end.
9458 # Note that $ac_compile itself does not contain backslashes and begins
9459 # with a dollar sign (not a hyphen), so the echo should work correctly.
9460 lt_compile=`echo "$ac_compile" | $SED \
9461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9463 -e 's:$: $lt_compiler_flag:'`
9464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9465 (eval "$lt_compile" 2>out/conftest.err)
9466 ac_status=$?
9467 cat out/conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9470 then
9471 # The compiler can only warn and ignore the option if not recognized
9472 # So say no if there are warnings
9473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9474 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9475 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler_c_o=yes
9477 fi
9478 fi
9479 chmod u+w . 2>&5
9480 $RM conftest*
9481 # SGI C++ compiler will create directory out/ii_files/ for
9482 # template instantiation
9483 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9484 $RM out/* && rmdir out
9485 cd ..
9486 $RM -r conftest
9487 $RM conftest*
9488
9489fi
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9491$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9492
9493
9494
9495
9496
9497
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9499$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9500if ${lt_cv_prog_compiler_c_o+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502else
9503 lt_cv_prog_compiler_c_o=no
9504 $RM -r conftest 2>/dev/null
9505 mkdir conftest
9506 cd conftest
9507 mkdir out
9508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9509
9510 lt_compiler_flag="-o out/conftest2.$ac_objext"
9511 # Insert the option either (1) after the last *FLAGS variable, or
9512 # (2) before a word containing "conftest.", or (3) at the end.
9513 # Note that $ac_compile itself does not contain backslashes and begins
9514 # with a dollar sign (not a hyphen), so the echo should work correctly.
9515 lt_compile=`echo "$ac_compile" | $SED \
9516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9518 -e 's:$: $lt_compiler_flag:'`
9519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9520 (eval "$lt_compile" 2>out/conftest.err)
9521 ac_status=$?
9522 cat out/conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9525 then
9526 # The compiler can only warn and ignore the option if not recognized
9527 # So say no if there are warnings
9528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9531 lt_cv_prog_compiler_c_o=yes
9532 fi
9533 fi
9534 chmod u+w . 2>&5
9535 $RM conftest*
9536 # SGI C++ compiler will create directory out/ii_files/ for
9537 # template instantiation
9538 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9539 $RM out/* && rmdir out
9540 cd ..
9541 $RM -r conftest
9542 $RM conftest*
9543
9544fi
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9546$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9547
9548
9549
9550
9551hard_links=nottested
9552if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9553 # do not overwrite the value of need_locks provided by the user
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9555$as_echo_n "checking if we can lock with hard links... " >&6; }
9556 hard_links=yes
9557 $RM conftest*
9558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9559 touch conftest.a
9560 ln conftest.a conftest.b 2>&5 || hard_links=no
9561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9563$as_echo "$hard_links" >&6; }
9564 if test no = "$hard_links"; then
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9566$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9567 need_locks=warn
9568 fi
9569else
9570 need_locks=no
9571fi
9572
9573
9574
9575
9576
9577
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9579$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9580
9581 runpath_var=
9582 allow_undefined_flag=
9583 always_export_symbols=no
9584 archive_cmds=
9585 archive_expsym_cmds=
9586 compiler_needs_object=no
9587 enable_shared_with_static_runtimes=no
9588 export_dynamic_flag_spec=
9589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9590 hardcode_automatic=no
9591 hardcode_direct=no
9592 hardcode_direct_absolute=no
9593 hardcode_libdir_flag_spec=
9594 hardcode_libdir_separator=
9595 hardcode_minus_L=no
9596 hardcode_shlibpath_var=unsupported
9597 inherit_rpath=no
9598 link_all_deplibs=unknown
9599 module_cmds=
9600 module_expsym_cmds=
9601 old_archive_from_new_cmds=
9602 old_archive_from_expsyms_cmds=
9603 thread_safe_flag_spec=
9604 whole_archive_flag_spec=
9605 # include_expsyms should be a list of space-separated symbols to be *always*
9606 # included in the symbol list
9607 include_expsyms=
9608 # exclude_expsyms can be an extended regexp of symbols to exclude
9609 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9610 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9611 # as well as any symbol that contains 'd'.
9612 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9613 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9614 # platforms (ab)use it in PIC code, but their linkers get confused if
9615 # the symbol is explicitly referenced. Since portable code cannot
9616 # rely on this symbol name, it's probably fine to never include it in
9617 # preloaded symbol tables.
9618 # Exclude shared library initialization/finalization symbols.
9619 extract_expsyms_cmds=
9620
9621 case $host_os in
9622 cygwin* | mingw* | pw32* | cegcc*)
9623 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9624 # When not using gcc, we currently assume that we are using
9625 # Microsoft Visual C++.
9626 if test yes != "$GCC"; then
9627 with_gnu_ld=no
9628 fi
9629 ;;
9630 interix*)
9631 # we just hope/assume this is gcc and not c89 (= MSVC++)
9632 with_gnu_ld=yes
9633 ;;
9634 openbsd* | bitrig*)
9635 with_gnu_ld=no
9636 ;;
9637 linux* | k*bsd*-gnu | gnu*)
9638 link_all_deplibs=no
9639 ;;
9640 esac
9641
9642 ld_shlibs=yes
9643
9644 # On some targets, GNU ld is compatible enough with the native linker
9645 # that we're better off using the native interface for both.
9646 lt_use_gnu_ld_interface=no
9647 if test yes = "$with_gnu_ld"; then
9648 case $host_os in
9649 aix*)
9650 # The AIX port of GNU ld has always aspired to compatibility
9651 # with the native linker. However, as the warning in the GNU ld
9652 # block says, versions before 2.19.5* couldn't really create working
9653 # shared libraries, regardless of the interface used.
9654 case `$LD -v 2>&1` in
9655 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9656 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9657 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9658 *)
9659 lt_use_gnu_ld_interface=yes
9660 ;;
9661 esac
9662 ;;
9663 *)
9664 lt_use_gnu_ld_interface=yes
9665 ;;
9666 esac
9667 fi
9668
9669 if test yes = "$lt_use_gnu_ld_interface"; then
9670 # If archive_cmds runs LD, not CC, wlarc should be empty
9671 wlarc='$wl'
9672
9673 # Set some defaults for GNU ld with shared library support. These
9674 # are reset later if shared libraries are not supported. Putting them
9675 # here allows them to be overridden if necessary.
9676 runpath_var=LD_RUN_PATH
9677 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9678 export_dynamic_flag_spec='$wl--export-dynamic'
9679 # ancient GNU ld didn't support --whole-archive et. al.
9680 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9681 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9682 else
9683 whole_archive_flag_spec=
9684 fi
9685 supports_anon_versioning=no
9686 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9687 *GNU\ gold*) supports_anon_versioning=yes ;;
9688 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9689 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9690 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9691 *\ 2.11.*) ;; # other 2.11 versions
9692 *) supports_anon_versioning=yes ;;
9693 esac
9694
9695 # See if GNU ld supports shared libraries.
9696 case $host_os in
9697 aix[3-9]*)
9698 # On AIX/PPC, the GNU linker is very broken
9699 if test ia64 != "$host_cpu"; then
9700 ld_shlibs=no
9701 cat <<_LT_EOF 1>&2
9702
9703*** Warning: the GNU linker, at least up to release 2.19, is reported
9704*** to be unable to reliably create shared libraries on AIX.
9705*** Therefore, libtool is disabling shared libraries support. If you
9706*** really care for shared libraries, you may want to install binutils
9707*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9708*** You will then need to restart the configuration process.
9709
9710_LT_EOF
9711 fi
9712 ;;
9713
9714 amigaos*)
9715 case $host_cpu in
9716 powerpc)
9717 # see comment about AmigaOS4 .so support
9718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9719 archive_expsym_cmds=''
9720 ;;
9721 m68k)
9722 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)'
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_minus_L=yes
9725 ;;
9726 esac
9727 ;;
9728
9729 beos*)
9730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731 allow_undefined_flag=unsupported
9732 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9733 # support --undefined. This deserves some investigation. FIXME
9734 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9735 else
9736 ld_shlibs=no
9737 fi
9738 ;;
9739
9740 cygwin* | mingw* | pw32* | cegcc*)
9741 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9742 # as there is no search path for DLLs.
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 export_dynamic_flag_spec='$wl--export-all-symbols'
9745 allow_undefined_flag=unsupported
9746 always_export_symbols=no
9747 enable_shared_with_static_runtimes=yes
9748 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'
9749 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9750
9751 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9753 # If the export-symbols file already is a .def file, use it as
9754 # is; otherwise, prepend EXPORTS...
9755 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9756 cp $export_symbols $output_objdir/$soname.def;
9757 else
9758 echo EXPORTS > $output_objdir/$soname.def;
9759 cat $export_symbols >> $output_objdir/$soname.def;
9760 fi~
9761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9762 else
9763 ld_shlibs=no
9764 fi
9765 ;;
9766
9767 haiku*)
9768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9769 link_all_deplibs=yes
9770 ;;
9771
9772 os2*)
9773 hardcode_libdir_flag_spec='-L$libdir'
9774 hardcode_minus_L=yes
9775 allow_undefined_flag=unsupported
9776 shrext_cmds=.dll
9777 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9778 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9779 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9780 $ECHO EXPORTS >> $output_objdir/$libname.def~
9781 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9782 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9783 emximp -o $lib $output_objdir/$libname.def'
9784 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9785 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9786 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9787 $ECHO EXPORTS >> $output_objdir/$libname.def~
9788 prefix_cmds="$SED"~
9789 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9790 prefix_cmds="$prefix_cmds -e 1d";
9791 fi~
9792 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9793 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9794 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9795 emximp -o $lib $output_objdir/$libname.def'
9796 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9797 enable_shared_with_static_runtimes=yes
9798 ;;
9799
9800 interix[3-9]*)
9801 hardcode_direct=no
9802 hardcode_shlibpath_var=no
9803 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9804 export_dynamic_flag_spec='$wl-E'
9805 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9806 # Instead, shared libraries are loaded at an image base (0x10000000 by
9807 # default) and relocated if they conflict, which is a slow very memory
9808 # consuming and fragmenting process. To avoid this, we pick a random,
9809 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9810 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9812 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'
9813 ;;
9814
9815 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9816 tmp_diet=no
9817 if test linux-dietlibc = "$host_os"; then
9818 case $cc_basename in
9819 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9820 esac
9821 fi
9822 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9823 && test no = "$tmp_diet"
9824 then
9825 tmp_addflag=' $pic_flag'
9826 tmp_sharedflag='-shared'
9827 case $cc_basename,$host_cpu in
9828 pgcc*) # Portland Group C compiler
9829 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'
9830 tmp_addflag=' $pic_flag'
9831 ;;
9832 pgf77* | pgf90* | pgf95* | pgfortran*)
9833 # Portland Group f77 and f90 compilers
9834 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'
9835 tmp_addflag=' $pic_flag -Mnomain' ;;
9836 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9837 tmp_addflag=' -i_dynamic' ;;
9838 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9839 tmp_addflag=' -i_dynamic -nofor_main' ;;
9840 ifc* | ifort*) # Intel Fortran compiler
9841 tmp_addflag=' -nofor_main' ;;
9842 lf95*) # Lahey Fortran 8.1
9843 whole_archive_flag_spec=
9844 tmp_sharedflag='--shared' ;;
9845 nagfor*) # NAGFOR 5.3
9846 tmp_sharedflag='-Wl,-shared' ;;
9847 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9848 tmp_sharedflag='-qmkshrobj'
9849 tmp_addflag= ;;
9850 nvcc*) # Cuda Compiler Driver 2.2
9851 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'
9852 compiler_needs_object=yes
9853 ;;
9854 esac
9855 case `$CC -V 2>&1 | sed 5q` in
9856 *Sun\ C*) # Sun C 5.9
9857 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'
9858 compiler_needs_object=yes
9859 tmp_sharedflag='-G' ;;
9860 *Sun\ F*) # Sun Fortran 8.3
9861 tmp_sharedflag='-G' ;;
9862 esac
9863 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9864
9865 if test yes = "$supports_anon_versioning"; then
9866 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9867 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9868 echo "local: *; };" >> $output_objdir/$libname.ver~
9869 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9870 fi
9871
9872 case $cc_basename in
9873 tcc*)
9874 export_dynamic_flag_spec='-rdynamic'
9875 ;;
9876 xlf* | bgf* | bgxlf* | mpixlf*)
9877 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9878 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9879 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9880 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9881 if test yes = "$supports_anon_versioning"; then
9882 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9883 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9884 echo "local: *; };" >> $output_objdir/$libname.ver~
9885 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9886 fi
9887 ;;
9888 esac
9889 else
9890 ld_shlibs=no
9891 fi
9892 ;;
9893
9894 netbsd* | netbsdelf*-gnu)
9895 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9896 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9897 wlarc=
9898 else
9899 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9900 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9901 fi
9902 ;;
9903
9904 solaris*)
9905 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9906 ld_shlibs=no
9907 cat <<_LT_EOF 1>&2
9908
9909*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9910*** create shared libraries on Solaris systems. Therefore, libtool
9911*** is disabling shared libraries support. We urge you to upgrade GNU
9912*** binutils to release 2.9.1 or newer. Another option is to modify
9913*** your PATH or compiler configuration so that the native linker is
9914*** used, and then restart.
9915
9916_LT_EOF
9917 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9919 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9920 else
9921 ld_shlibs=no
9922 fi
9923 ;;
9924
9925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9926 case `$LD -v 2>&1` in
9927 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9928 ld_shlibs=no
9929 cat <<_LT_EOF 1>&2
9930
9931*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9932*** reliably create shared libraries on SCO systems. Therefore, libtool
9933*** is disabling shared libraries support. We urge you to upgrade GNU
9934*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9935*** your PATH or compiler configuration so that the native linker is
9936*** used, and then restart.
9937
9938_LT_EOF
9939 ;;
9940 *)
9941 # For security reasons, it is highly recommended that you always
9942 # use absolute paths for naming shared libraries, and exclude the
9943 # DT_RUNPATH tag from executables and libraries. But doing so
9944 # requires that you compile everything twice, which is a pain.
9945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9946 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9948 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9949 else
9950 ld_shlibs=no
9951 fi
9952 ;;
9953 esac
9954 ;;
9955
9956 sunos4*)
9957 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9958 wlarc=
9959 hardcode_direct=yes
9960 hardcode_shlibpath_var=no
9961 ;;
9962
9963 *)
9964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9965 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9966 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9967 else
9968 ld_shlibs=no
9969 fi
9970 ;;
9971 esac
9972
9973 if test no = "$ld_shlibs"; then
9974 runpath_var=
9975 hardcode_libdir_flag_spec=
9976 export_dynamic_flag_spec=
9977 whole_archive_flag_spec=
9978 fi
9979 else
9980 # PORTME fill in a description of your system's linker (not GNU ld)
9981 case $host_os in
9982 aix3*)
9983 allow_undefined_flag=unsupported
9984 always_export_symbols=yes
9985 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'
9986 # Note: this linker hardcodes the directories in LIBPATH if there
9987 # are no directories specified by -L.
9988 hardcode_minus_L=yes
9989 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9990 # Neither direct hardcoding nor static linking is supported with a
9991 # broken collect2.
9992 hardcode_direct=unsupported
9993 fi
9994 ;;
9995
9996 aix[4-9]*)
9997 if test ia64 = "$host_cpu"; then
9998 # On IA64, the linker does run time linking by default, so we don't
9999 # have to do anything special.
10000 aix_use_runtimelinking=no
10001 exp_sym_flag='-Bexport'
10002 no_entry_flag=
10003 else
10004 # If we're using GNU nm, then we don't want the "-C" option.
10005 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10006 # Without the "-l" option, or with the "-B" option, AIX nm treats
10007 # weak defined symbols like other global defined symbols, whereas
10008 # GNU nm marks them as "W".
10009 # While the 'weak' keyword is ignored in the Export File, we need
10010 # it in the Import File for the 'aix-soname' feature, so we have
10011 # to replace the "-B" option with "-P" for AIX nm.
10012 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10013 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'
10014 else
10015 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'
10016 fi
10017 aix_use_runtimelinking=no
10018
10019 # Test if we are trying to use run time linking or normal
10020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10021 # have runtime linking enabled, and use it for executables.
10022 # For shared libraries, we enable/disable runtime linking
10023 # depending on the kind of the shared library created -
10024 # when "with_aix_soname,aix_use_runtimelinking" is:
10025 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10026 # "aix,yes" lib.so shared, rtl:yes, for executables
10027 # lib.a static archive
10028 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10029 # lib.a(lib.so.V) shared, rtl:no, for executables
10030 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10031 # lib.a(lib.so.V) shared, rtl:no
10032 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10033 # lib.a static archive
10034 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10035 for ld_flag in $LDFLAGS; do
10036 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10037 aix_use_runtimelinking=yes
10038 break
10039 fi
10040 done
10041 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10042 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10043 # so we don't have lib.a shared libs to link our executables.
10044 # We have to force runtime linking in this case.
10045 aix_use_runtimelinking=yes
10046 LDFLAGS="$LDFLAGS -Wl,-brtl"
10047 fi
10048 ;;
10049 esac
10050
10051 exp_sym_flag='-bexport'
10052 no_entry_flag='-bnoentry'
10053 fi
10054
10055 # When large executables or shared objects are built, AIX ld can
10056 # have problems creating the table of contents. If linking a library
10057 # or program results in "error TOC overflow" add -mminimal-toc to
10058 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10059 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10060
10061 archive_cmds=''
10062 hardcode_direct=yes
10063 hardcode_direct_absolute=yes
10064 hardcode_libdir_separator=':'
10065 link_all_deplibs=yes
10066 file_list_spec='$wl-f,'
10067 case $with_aix_soname,$aix_use_runtimelinking in
10068 aix,*) ;; # traditional, no import file
10069 svr4,* | *,yes) # use import file
10070 # The Import File defines what to hardcode.
10071 hardcode_direct=no
10072 hardcode_direct_absolute=no
10073 ;;
10074 esac
10075
10076 if test yes = "$GCC"; then
10077 case $host_os in aix4.[012]|aix4.[012].*)
10078 # We only want to do this on AIX 4.2 and lower, the check
10079 # below for broken collect2 doesn't work under 4.3+
10080 collect2name=`$CC -print-prog-name=collect2`
10081 if test -f "$collect2name" &&
10082 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10083 then
10084 # We have reworked collect2
10085 :
10086 else
10087 # We have old collect2
10088 hardcode_direct=unsupported
10089 # It fails to find uninstalled libraries when the uninstalled
10090 # path is not listed in the libpath. Setting hardcode_minus_L
10091 # to unsupported forces relinking
10092 hardcode_minus_L=yes
10093 hardcode_libdir_flag_spec='-L$libdir'
10094 hardcode_libdir_separator=
10095 fi
10096 ;;
10097 esac
10098 shared_flag='-shared'
10099 if test yes = "$aix_use_runtimelinking"; then
10100 shared_flag="$shared_flag "'$wl-G'
10101 fi
10102 # Need to ensure runtime linking is disabled for the traditional
10103 # shared library, or the linker may eventually find shared libraries
10104 # /with/ Import File - we do not want to mix them.
10105 shared_flag_aix='-shared'
10106 shared_flag_svr4='-shared $wl-G'
10107 else
10108 # not using gcc
10109 if test ia64 = "$host_cpu"; then
10110 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10111 # chokes on -Wl,-G. The following line is correct:
10112 shared_flag='-G'
10113 else
10114 if test yes = "$aix_use_runtimelinking"; then
10115 shared_flag='$wl-G'
10116 else
10117 shared_flag='$wl-bM:SRE'
10118 fi
10119 shared_flag_aix='$wl-bM:SRE'
10120 shared_flag_svr4='$wl-G'
10121 fi
10122 fi
10123
10124 export_dynamic_flag_spec='$wl-bexpall'
10125 # It seems that -bexpall does not export symbols beginning with
10126 # underscore (_), so it is better to generate a list of symbols to export.
10127 always_export_symbols=yes
10128 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10129 # Warning - without using the other runtime loading flags (-brtl),
10130 # -berok will link without error, but may produce a broken library.
10131 allow_undefined_flag='-berok'
10132 # Determine the default libpath from the value encoded in an
10133 # empty executable.
10134 if test set = "${lt_cv_aix_libpath+set}"; then
10135 aix_libpath=$lt_cv_aix_libpath
10136else
10137 if ${lt_cv_aix_libpath_+:} false; then :
10138 $as_echo_n "(cached) " >&6
10139else
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141/* end confdefs.h. */
10142
10143int
10144main ()
10145{
10146
10147 ;
10148 return 0;
10149}
10150_ACEOF
10151if ac_fn_c_try_link "$LINENO"; then :
10152
10153 lt_aix_libpath_sed='
10154 /Import File Strings/,/^$/ {
10155 /^0/ {
10156 s/^0 *\([^ ]*\) *$/\1/
10157 p
10158 }
10159 }'
10160 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10161 # Check for a 64-bit object if we didn't find anything.
10162 if test -z "$lt_cv_aix_libpath_"; then
10163 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10164 fi
10165fi
10166rm -f core conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168 if test -z "$lt_cv_aix_libpath_"; then
10169 lt_cv_aix_libpath_=/usr/lib:/lib
10170 fi
10171
10172fi
10173
10174 aix_libpath=$lt_cv_aix_libpath_
10175fi
10176
10177 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10178 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
10179 else
10180 if test ia64 = "$host_cpu"; then
10181 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10182 allow_undefined_flag="-z nodefs"
10183 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"
10184 else
10185 # Determine the default libpath from the value encoded in an
10186 # empty executable.
10187 if test set = "${lt_cv_aix_libpath+set}"; then
10188 aix_libpath=$lt_cv_aix_libpath
10189else
10190 if ${lt_cv_aix_libpath_+:} false; then :
10191 $as_echo_n "(cached) " >&6
10192else
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194/* end confdefs.h. */
10195
10196int
10197main ()
10198{
10199
10200 ;
10201 return 0;
10202}
10203_ACEOF
10204if ac_fn_c_try_link "$LINENO"; then :
10205
10206 lt_aix_libpath_sed='
10207 /Import File Strings/,/^$/ {
10208 /^0/ {
10209 s/^0 *\([^ ]*\) *$/\1/
10210 p
10211 }
10212 }'
10213 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10214 # Check for a 64-bit object if we didn't find anything.
10215 if test -z "$lt_cv_aix_libpath_"; then
10216 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10217 fi
10218fi
10219rm -f core conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10221 if test -z "$lt_cv_aix_libpath_"; then
10222 lt_cv_aix_libpath_=/usr/lib:/lib
10223 fi
10224
10225fi
10226
10227 aix_libpath=$lt_cv_aix_libpath_
10228fi
10229
10230 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10231 # Warning - without using the other run time loading flags,
10232 # -berok will link without error, but may produce a broken library.
10233 no_undefined_flag=' $wl-bernotok'
10234 allow_undefined_flag=' $wl-berok'
10235 if test yes = "$with_gnu_ld"; then
10236 # We only use this code for GNU lds that support --whole-archive.
10237 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10238 else
10239 # Exported symbols can be pulled into shared objects from archives
10240 whole_archive_flag_spec='$convenience'
10241 fi
10242 archive_cmds_need_lc=yes
10243 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10244 # -brtl affects multiple linker settings, -berok does not and is overridden later
10245 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10246 if test svr4 != "$with_aix_soname"; then
10247 # This is similar to how AIX traditionally builds its shared libraries.
10248 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'
10249 fi
10250 if test aix != "$with_aix_soname"; then
10251 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'
10252 else
10253 # used by -dlpreopen to get the symbols
10254 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10255 fi
10256 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10257 fi
10258 fi
10259 ;;
10260
10261 amigaos*)
10262 case $host_cpu in
10263 powerpc)
10264 # see comment about AmigaOS4 .so support
10265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10266 archive_expsym_cmds=''
10267 ;;
10268 m68k)
10269 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)'
10270 hardcode_libdir_flag_spec='-L$libdir'
10271 hardcode_minus_L=yes
10272 ;;
10273 esac
10274 ;;
10275
10276 bsdi[45]*)
10277 export_dynamic_flag_spec=-rdynamic
10278 ;;
10279
10280 cygwin* | mingw* | pw32* | cegcc*)
10281 # When not using gcc, we currently assume that we are using
10282 # Microsoft Visual C++.
10283 # hardcode_libdir_flag_spec is actually meaningless, as there is
10284 # no search path for DLLs.
10285 case $cc_basename in
10286 cl*)
10287 # Native MSVC
10288 hardcode_libdir_flag_spec=' '
10289 allow_undefined_flag=unsupported
10290 always_export_symbols=yes
10291 file_list_spec='@'
10292 # Tell ltmain to make .lib files, not .a files.
10293 libext=lib
10294 # Tell ltmain to make .dll files, not .so files.
10295 shrext_cmds=.dll
10296 # FIXME: Setting linknames here is a bad hack.
10297 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10298 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10299 cp "$export_symbols" "$output_objdir/$soname.def";
10300 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10301 else
10302 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10303 fi~
10304 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10305 linknames='
10306 # The linker will not automatically build a static lib if we build a DLL.
10307 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10308 enable_shared_with_static_runtimes=yes
10309 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10310 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10311 # Don't use ranlib
10312 old_postinstall_cmds='chmod 644 $oldlib'
10313 postlink_cmds='lt_outputfile="@OUTPUT@"~
10314 lt_tool_outputfile="@TOOL_OUTPUT@"~
10315 case $lt_outputfile in
10316 *.exe|*.EXE) ;;
10317 *)
10318 lt_outputfile=$lt_outputfile.exe
10319 lt_tool_outputfile=$lt_tool_outputfile.exe
10320 ;;
10321 esac~
10322 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10323 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10324 $RM "$lt_outputfile.manifest";
10325 fi'
10326 ;;
10327 *)
10328 # Assume MSVC wrapper
10329 hardcode_libdir_flag_spec=' '
10330 allow_undefined_flag=unsupported
10331 # Tell ltmain to make .lib files, not .a files.
10332 libext=lib
10333 # Tell ltmain to make .dll files, not .so files.
10334 shrext_cmds=.dll
10335 # FIXME: Setting linknames here is a bad hack.
10336 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10337 # The linker will automatically build a .lib file if we build a DLL.
10338 old_archive_from_new_cmds='true'
10339 # FIXME: Should let the user specify the lib program.
10340 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10341 enable_shared_with_static_runtimes=yes
10342 ;;
10343 esac
10344 ;;
10345
10346 darwin* | rhapsody*)
10347
10348
10349 archive_cmds_need_lc=no
10350 hardcode_direct=no
10351 hardcode_automatic=yes
10352 hardcode_shlibpath_var=unsupported
10353 if test yes = "$lt_cv_ld_force_load"; then
10354 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\"`'
10355
10356 else
10357 whole_archive_flag_spec=''
10358 fi
10359 link_all_deplibs=yes
10360 allow_undefined_flag=$_lt_dar_allow_undefined
10361 case $cc_basename in
10362 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10363 *) _lt_dar_can_shared=$GCC ;;
10364 esac
10365 if test yes = "$_lt_dar_can_shared"; then
10366 output_verbose_link_cmd=func_echo_all
10367 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10368 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10369 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"
10370 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"
10371
10372 else
10373 ld_shlibs=no
10374 fi
10375
10376 ;;
10377
10378 dgux*)
10379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380 hardcode_libdir_flag_spec='-L$libdir'
10381 hardcode_shlibpath_var=no
10382 ;;
10383
10384 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10385 # support. Future versions do this automatically, but an explicit c++rt0.o
10386 # does not break anything, and helps significantly (at the cost of a little
10387 # extra space).
10388 freebsd2.2*)
10389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10390 hardcode_libdir_flag_spec='-R$libdir'
10391 hardcode_direct=yes
10392 hardcode_shlibpath_var=no
10393 ;;
10394
10395 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10396 freebsd2.*)
10397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398 hardcode_direct=yes
10399 hardcode_minus_L=yes
10400 hardcode_shlibpath_var=no
10401 ;;
10402
10403 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10404 freebsd* | dragonfly*)
10405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406 hardcode_libdir_flag_spec='-R$libdir'
10407 hardcode_direct=yes
10408 hardcode_shlibpath_var=no
10409 ;;
10410
10411 hpux9*)
10412 if test yes = "$GCC"; then
10413 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'
10414 else
10415 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'
10416 fi
10417 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10418 hardcode_libdir_separator=:
10419 hardcode_direct=yes
10420
10421 # hardcode_minus_L: Not really in the search PATH,
10422 # but as the default location of the library.
10423 hardcode_minus_L=yes
10424 export_dynamic_flag_spec='$wl-E'
10425 ;;
10426
10427 hpux10*)
10428 if test yes,no = "$GCC,$with_gnu_ld"; then
10429 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10430 else
10431 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10432 fi
10433 if test no = "$with_gnu_ld"; then
10434 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10435 hardcode_libdir_separator=:
10436 hardcode_direct=yes
10437 hardcode_direct_absolute=yes
10438 export_dynamic_flag_spec='$wl-E'
10439 # hardcode_minus_L: Not really in the search PATH,
10440 # but as the default location of the library.
10441 hardcode_minus_L=yes
10442 fi
10443 ;;
10444
10445 hpux11*)
10446 if test yes,no = "$GCC,$with_gnu_ld"; then
10447 case $host_cpu in
10448 hppa*64*)
10449 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 ;;
10451 ia64*)
10452 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10453 ;;
10454 *)
10455 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10456 ;;
10457 esac
10458 else
10459 case $host_cpu in
10460 hppa*64*)
10461 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 ;;
10463 ia64*)
10464 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10465 ;;
10466 *)
10467
10468 # Older versions of the 11.00 compiler do not understand -b yet
10469 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10471$as_echo_n "checking if $CC understands -b... " >&6; }
10472if ${lt_cv_prog_compiler__b+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474else
10475 lt_cv_prog_compiler__b=no
10476 save_LDFLAGS=$LDFLAGS
10477 LDFLAGS="$LDFLAGS -b"
10478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10480 # The linker can only warn and ignore the option if not recognized
10481 # So say no if there are warnings
10482 if test -s conftest.err; then
10483 # Append any errors to the config.log.
10484 cat conftest.err 1>&5
10485 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10487 if diff conftest.exp conftest.er2 >/dev/null; then
10488 lt_cv_prog_compiler__b=yes
10489 fi
10490 else
10491 lt_cv_prog_compiler__b=yes
10492 fi
10493 fi
10494 $RM -r conftest*
10495 LDFLAGS=$save_LDFLAGS
10496
10497fi
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10499$as_echo "$lt_cv_prog_compiler__b" >&6; }
10500
10501if test yes = "$lt_cv_prog_compiler__b"; then
10502 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10503else
10504 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10505fi
10506
10507 ;;
10508 esac
10509 fi
10510 if test no = "$with_gnu_ld"; then
10511 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10512 hardcode_libdir_separator=:
10513
10514 case $host_cpu in
10515 hppa*64*|ia64*)
10516 hardcode_direct=no
10517 hardcode_shlibpath_var=no
10518 ;;
10519 *)
10520 hardcode_direct=yes
10521 hardcode_direct_absolute=yes
10522 export_dynamic_flag_spec='$wl-E'
10523
10524 # hardcode_minus_L: Not really in the search PATH,
10525 # but as the default location of the library.
10526 hardcode_minus_L=yes
10527 ;;
10528 esac
10529 fi
10530 ;;
10531
10532 irix5* | irix6* | nonstopux*)
10533 if test yes = "$GCC"; then
10534 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'
10535 # Try to use the -exported_symbol ld option, if it does not
10536 # work, assume that -exports_file does not work either and
10537 # implicitly export all symbols.
10538 # This should be the same for all languages, so no per-tag cache variable.
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10540$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10541if ${lt_cv_irix_exported_symbol+:} false; then :
10542 $as_echo_n "(cached) " >&6
10543else
10544 save_LDFLAGS=$LDFLAGS
10545 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547/* end confdefs.h. */
10548int foo (void) { return 0; }
10549_ACEOF
10550if ac_fn_c_try_link "$LINENO"; then :
10551 lt_cv_irix_exported_symbol=yes
10552else
10553 lt_cv_irix_exported_symbol=no
10554fi
10555rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 LDFLAGS=$save_LDFLAGS
10558fi
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10560$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10561 if test yes = "$lt_cv_irix_exported_symbol"; then
10562 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'
10563 fi
10564 link_all_deplibs=no
10565 else
10566 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'
10567 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'
10568 fi
10569 archive_cmds_need_lc='no'
10570 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10571 hardcode_libdir_separator=:
10572 inherit_rpath=yes
10573 link_all_deplibs=yes
10574 ;;
10575
10576 linux*)
10577 case $cc_basename in
10578 tcc*)
10579 # Fabrice Bellard et al's Tiny C Compiler
10580 ld_shlibs=yes
10581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10582 ;;
10583 esac
10584 ;;
10585
10586 netbsd* | netbsdelf*-gnu)
10587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10589 else
10590 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10591 fi
10592 hardcode_libdir_flag_spec='-R$libdir'
10593 hardcode_direct=yes
10594 hardcode_shlibpath_var=no
10595 ;;
10596
10597 newsos6)
10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_direct=yes
10600 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10601 hardcode_libdir_separator=:
10602 hardcode_shlibpath_var=no
10603 ;;
10604
10605 *nto* | *qnx*)
10606 ;;
10607
10608 openbsd* | bitrig*)
10609 if test -f /usr/libexec/ld.so; then
10610 hardcode_direct=yes
10611 hardcode_shlibpath_var=no
10612 hardcode_direct_absolute=yes
10613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10615 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10616 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10617 export_dynamic_flag_spec='$wl-E'
10618 else
10619 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10620 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10621 fi
10622 else
10623 ld_shlibs=no
10624 fi
10625 ;;
10626
10627 os2*)
10628 hardcode_libdir_flag_spec='-L$libdir'
10629 hardcode_minus_L=yes
10630 allow_undefined_flag=unsupported
10631 shrext_cmds=.dll
10632 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10633 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10634 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10635 $ECHO EXPORTS >> $output_objdir/$libname.def~
10636 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10637 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10638 emximp -o $lib $output_objdir/$libname.def'
10639 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10640 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10641 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10642 $ECHO EXPORTS >> $output_objdir/$libname.def~
10643 prefix_cmds="$SED"~
10644 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10645 prefix_cmds="$prefix_cmds -e 1d";
10646 fi~
10647 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10648 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10649 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10650 emximp -o $lib $output_objdir/$libname.def'
10651 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10652 enable_shared_with_static_runtimes=yes
10653 ;;
10654
10655 osf3*)
10656 if test yes = "$GCC"; then
10657 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10658 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'
10659 else
10660 allow_undefined_flag=' -expect_unresolved \*'
10661 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'
10662 fi
10663 archive_cmds_need_lc='no'
10664 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10665 hardcode_libdir_separator=:
10666 ;;
10667
10668 osf4* | osf5*) # as osf3* with the addition of -msym flag
10669 if test yes = "$GCC"; then
10670 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10671 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'
10672 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10673 else
10674 allow_undefined_flag=' -expect_unresolved \*'
10675 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'
10676 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~
10677 $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'
10678
10679 # Both c and cxx compiler support -rpath directly
10680 hardcode_libdir_flag_spec='-rpath $libdir'
10681 fi
10682 archive_cmds_need_lc='no'
10683 hardcode_libdir_separator=:
10684 ;;
10685
10686 solaris*)
10687 no_undefined_flag=' -z defs'
10688 if test yes = "$GCC"; then
10689 wlarc='$wl'
10690 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10692 $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'
10693 else
10694 case `$CC -V 2>&1` in
10695 *"Compilers 5.0"*)
10696 wlarc=''
10697 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10699 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10700 ;;
10701 *)
10702 wlarc='$wl'
10703 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10705 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10706 ;;
10707 esac
10708 fi
10709 hardcode_libdir_flag_spec='-R$libdir'
10710 hardcode_shlibpath_var=no
10711 case $host_os in
10712 solaris2.[0-5] | solaris2.[0-5].*) ;;
10713 *)
10714 # The compiler driver will combine and reorder linker options,
10715 # but understands '-z linker_flag'. GCC discards it without '$wl',
10716 # but is careful enough not to reorder.
10717 # Supported since Solaris 2.6 (maybe 2.5.1?)
10718 if test yes = "$GCC"; then
10719 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10720 else
10721 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10722 fi
10723 ;;
10724 esac
10725 link_all_deplibs=yes
10726 ;;
10727
10728 sunos4*)
10729 if test sequent = "$host_vendor"; then
10730 # Use $CC to link under sequent, because it throws in some extra .o
10731 # files that make .init and .fini sections work.
10732 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10733 else
10734 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10735 fi
10736 hardcode_libdir_flag_spec='-L$libdir'
10737 hardcode_direct=yes
10738 hardcode_minus_L=yes
10739 hardcode_shlibpath_var=no
10740 ;;
10741
10742 sysv4)
10743 case $host_vendor in
10744 sni)
10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746 hardcode_direct=yes # is this really true???
10747 ;;
10748 siemens)
10749 ## LD is ld it makes a PLAMLIB
10750 ## CC just makes a GrossModule.
10751 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10752 reload_cmds='$CC -r -o $output$reload_objs'
10753 hardcode_direct=no
10754 ;;
10755 motorola)
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10758 ;;
10759 esac
10760 runpath_var='LD_RUN_PATH'
10761 hardcode_shlibpath_var=no
10762 ;;
10763
10764 sysv4.3*)
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_shlibpath_var=no
10767 export_dynamic_flag_spec='-Bexport'
10768 ;;
10769
10770 sysv4*MP*)
10771 if test -d /usr/nec; then
10772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 hardcode_shlibpath_var=no
10774 runpath_var=LD_RUN_PATH
10775 hardcode_runpath_var=yes
10776 ld_shlibs=yes
10777 fi
10778 ;;
10779
10780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10781 no_undefined_flag='$wl-z,text'
10782 archive_cmds_need_lc=no
10783 hardcode_shlibpath_var=no
10784 runpath_var='LD_RUN_PATH'
10785
10786 if test yes = "$GCC"; then
10787 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 else
10790 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792 fi
10793 ;;
10794
10795 sysv5* | sco3.2v5* | sco5v6*)
10796 # Note: We CANNOT use -z defs as we might desire, because we do not
10797 # link with -lc, and that would cause any symbols used from libc to
10798 # always be unresolved, which means just about no library would
10799 # ever link correctly. If we're not using GNU ld we use -z text
10800 # though, which does catch some bad symbols but isn't as heavy-handed
10801 # as -z defs.
10802 no_undefined_flag='$wl-z,text'
10803 allow_undefined_flag='$wl-z,nodefs'
10804 archive_cmds_need_lc=no
10805 hardcode_shlibpath_var=no
10806 hardcode_libdir_flag_spec='$wl-R,$libdir'
10807 hardcode_libdir_separator=':'
10808 link_all_deplibs=yes
10809 export_dynamic_flag_spec='$wl-Bexport'
10810 runpath_var='LD_RUN_PATH'
10811
10812 if test yes = "$GCC"; then
10813 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815 else
10816 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818 fi
10819 ;;
10820
10821 uts4*)
10822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823 hardcode_libdir_flag_spec='-L$libdir'
10824 hardcode_shlibpath_var=no
10825 ;;
10826
10827 *)
10828 ld_shlibs=no
10829 ;;
10830 esac
10831
10832 if test sni = "$host_vendor"; then
10833 case $host in
10834 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10835 export_dynamic_flag_spec='$wl-Blargedynsym'
10836 ;;
10837 esac
10838 fi
10839 fi
10840
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10842$as_echo "$ld_shlibs" >&6; }
10843test no = "$ld_shlibs" && can_build_shared=no
10844
10845with_gnu_ld=$with_gnu_ld
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861#
10862# Do we need to explicitly link libc?
10863#
10864case "x$archive_cmds_need_lc" in
10865x|xyes)
10866 # Assume -lc should be added
10867 archive_cmds_need_lc=yes
10868
10869 if test yes,yes = "$GCC,$enable_shared"; then
10870 case $archive_cmds in
10871 *'~'*)
10872 # FIXME: we may have to deal with multi-command sequences.
10873 ;;
10874 '$CC '*)
10875 # Test whether the compiler implicitly links with -lc since on some
10876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10877 # to ld, don't add -lc before -lgcc.
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10879$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10880if ${lt_cv_archive_cmds_need_lc+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882else
10883 $RM conftest*
10884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10885
10886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10887 (eval $ac_compile) 2>&5
10888 ac_status=$?
10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890 test $ac_status = 0; } 2>conftest.err; then
10891 soname=conftest
10892 lib=conftest
10893 libobjs=conftest.$ac_objext
10894 deplibs=
10895 wl=$lt_prog_compiler_wl
10896 pic_flag=$lt_prog_compiler_pic
10897 compiler_flags=-v
10898 linker_flags=-v
10899 verstring=
10900 output_objdir=.
10901 libname=conftest
10902 lt_save_allow_undefined_flag=$allow_undefined_flag
10903 allow_undefined_flag=
10904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10905 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10906 ac_status=$?
10907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10908 test $ac_status = 0; }
10909 then
10910 lt_cv_archive_cmds_need_lc=no
10911 else
10912 lt_cv_archive_cmds_need_lc=yes
10913 fi
10914 allow_undefined_flag=$lt_save_allow_undefined_flag
10915 else
10916 cat conftest.err 1>&5
10917 fi
10918 $RM conftest*
10919
10920fi
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10922$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10923 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10924 ;;
10925 esac
10926 fi
10927 ;;
10928esac
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11082$as_echo_n "checking dynamic linker characteristics... " >&6; }
11083
11084if test yes = "$GCC"; then
11085 case $host_os in
11086 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11087 *) lt_awk_arg='/^libraries:/' ;;
11088 esac
11089 case $host_os in
11090 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11091 *) lt_sed_strip_eq='s|=/|/|g' ;;
11092 esac
11093 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11094 case $lt_search_path_spec in
11095 *\;*)
11096 # if the path contains ";" then we assume it to be the separator
11097 # otherwise default to the standard path separator (i.e. ":") - it is
11098 # assumed that no part of a normal pathname contains ";" but that should
11099 # okay in the real world where ";" in dirpaths is itself problematic.
11100 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11101 ;;
11102 *)
11103 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11104 ;;
11105 esac
11106 # Ok, now we have the path, separated by spaces, we can step through it
11107 # and add multilib dir if necessary...
11108 lt_tmp_lt_search_path_spec=
11109 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11110 # ...but if some path component already ends with the multilib dir we assume
11111 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11112 case "$lt_multi_os_dir; $lt_search_path_spec " in
11113 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11114 lt_multi_os_dir=
11115 ;;
11116 esac
11117 for lt_sys_path in $lt_search_path_spec; do
11118 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11119 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11120 elif test -n "$lt_multi_os_dir"; then
11121 test -d "$lt_sys_path" && \
11122 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11123 fi
11124 done
11125 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11126BEGIN {RS = " "; FS = "/|\n";} {
11127 lt_foo = "";
11128 lt_count = 0;
11129 for (lt_i = NF; lt_i > 0; lt_i--) {
11130 if ($lt_i != "" && $lt_i != ".") {
11131 if ($lt_i == "..") {
11132 lt_count++;
11133 } else {
11134 if (lt_count == 0) {
11135 lt_foo = "/" $lt_i lt_foo;
11136 } else {
11137 lt_count--;
11138 }
11139 }
11140 }
11141 }
11142 if (lt_foo != "") { lt_freq[lt_foo]++; }
11143 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11144}'`
11145 # AWK program above erroneously prepends '/' to C:/dos/paths
11146 # for these hosts.
11147 case $host_os in
11148 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11149 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11150 esac
11151 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11152else
11153 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11154fi
11155library_names_spec=
11156libname_spec='lib$name'
11157soname_spec=
11158shrext_cmds=.so
11159postinstall_cmds=
11160postuninstall_cmds=
11161finish_cmds=
11162finish_eval=
11163shlibpath_var=
11164shlibpath_overrides_runpath=unknown
11165version_type=none
11166dynamic_linker="$host_os ld.so"
11167sys_lib_dlsearch_path_spec="/lib /usr/lib"
11168need_lib_prefix=unknown
11169hardcode_into_libs=no
11170
11171# when you set need_version to no, make sure it does not cause -set_version
11172# flags to be left without arguments
11173need_version=unknown
11174
11175
11176
11177case $host_os in
11178aix3*)
11179 version_type=linux # correct to gnu/linux during the next big refactor
11180 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11181 shlibpath_var=LIBPATH
11182
11183 # AIX 3 has no versioning support, so we append a major version to the name.
11184 soname_spec='$libname$release$shared_ext$major'
11185 ;;
11186
11187aix[4-9]*)
11188 version_type=linux # correct to gnu/linux during the next big refactor
11189 need_lib_prefix=no
11190 need_version=no
11191 hardcode_into_libs=yes
11192 if test ia64 = "$host_cpu"; then
11193 # AIX 5 supports IA64
11194 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 else
11197 # With GCC up to 2.95.x, collect2 would create an import file
11198 # for dependence libraries. The import file would start with
11199 # the line '#! .'. This would cause the generated library to
11200 # depend on '.', always an invalid library. This was fixed in
11201 # development snapshots of GCC prior to 3.0.
11202 case $host_os in
11203 aix4 | aix4.[01] | aix4.[01].*)
11204 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11205 echo ' yes '
11206 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11207 :
11208 else
11209 can_build_shared=no
11210 fi
11211 ;;
11212 esac
11213 # Using Import Files as archive members, it is possible to support
11214 # filename-based versioning of shared library archives on AIX. While
11215 # this would work for both with and without runtime linking, it will
11216 # prevent static linking of such archives. So we do filename-based
11217 # shared library versioning with .so extension only, which is used
11218 # when both runtime linking and shared linking is enabled.
11219 # Unfortunately, runtime linking may impact performance, so we do
11220 # not want this to be the default eventually. Also, we use the
11221 # versioned .so libs for executables only if there is the -brtl
11222 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11223 # To allow for filename-based versioning support, we need to create
11224 # libNAME.so.V as an archive file, containing:
11225 # *) an Import File, referring to the versioned filename of the
11226 # archive as well as the shared archive member, telling the
11227 # bitwidth (32 or 64) of that shared object, and providing the
11228 # list of exported symbols of that shared object, eventually
11229 # decorated with the 'weak' keyword
11230 # *) the shared object with the F_LOADONLY flag set, to really avoid
11231 # it being seen by the linker.
11232 # At run time we better use the real file rather than another symlink,
11233 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11234
11235 case $with_aix_soname,$aix_use_runtimelinking in
11236 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11237 # soname into executable. Probably we can add versioning support to
11238 # collect2, so additional links can be useful in future.
11239 aix,yes) # traditional libtool
11240 dynamic_linker='AIX unversionable lib.so'
11241 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11242 # instead of lib<name>.a to let people know that these are not
11243 # typical AIX shared libraries.
11244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245 ;;
11246 aix,no) # traditional AIX only
11247 dynamic_linker='AIX lib.a(lib.so.V)'
11248 # We preserve .a as extension for shared libraries through AIX4.2
11249 # and later when we are not doing run time linking.
11250 library_names_spec='$libname$release.a $libname.a'
11251 soname_spec='$libname$release$shared_ext$major'
11252 ;;
11253 svr4,*) # full svr4 only
11254 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11255 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11256 # We do not specify a path in Import Files, so LIBPATH fires.
11257 shlibpath_overrides_runpath=yes
11258 ;;
11259 *,yes) # both, prefer svr4
11260 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11261 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11262 # unpreferred sharedlib libNAME.a needs extra handling
11263 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"'
11264 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"'
11265 # We do not specify a path in Import Files, so LIBPATH fires.
11266 shlibpath_overrides_runpath=yes
11267 ;;
11268 *,no) # both, prefer aix
11269 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11270 library_names_spec='$libname$release.a $libname.a'
11271 soname_spec='$libname$release$shared_ext$major'
11272 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11273 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)'
11274 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"'
11275 ;;
11276 esac
11277 shlibpath_var=LIBPATH
11278 fi
11279 ;;
11280
11281amigaos*)
11282 case $host_cpu in
11283 powerpc)
11284 # Since July 2007 AmigaOS4 officially supports .so libraries.
11285 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11287 ;;
11288 m68k)
11289 library_names_spec='$libname.ixlibrary $libname.a'
11290 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11291 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'
11292 ;;
11293 esac
11294 ;;
11295
11296beos*)
11297 library_names_spec='$libname$shared_ext'
11298 dynamic_linker="$host_os ld.so"
11299 shlibpath_var=LIBRARY_PATH
11300 ;;
11301
11302bsdi[45]*)
11303 version_type=linux # correct to gnu/linux during the next big refactor
11304 need_version=no
11305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11306 soname_spec='$libname$release$shared_ext$major'
11307 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11308 shlibpath_var=LD_LIBRARY_PATH
11309 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11310 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11311 # the default ld.so.conf also contains /usr/contrib/lib and
11312 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11313 # libtool to hard-code these into programs
11314 ;;
11315
11316cygwin* | mingw* | pw32* | cegcc*)
11317 version_type=windows
11318 shrext_cmds=.dll
11319 need_version=no
11320 need_lib_prefix=no
11321
11322 case $GCC,$cc_basename in
11323 yes,*)
11324 # gcc
11325 library_names_spec='$libname.dll.a'
11326 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11327 postinstall_cmds='base_file=`basename \$file`~
11328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11329 dldir=$destdir/`dirname \$dlpath`~
11330 test -d \$dldir || mkdir -p \$dldir~
11331 $install_prog $dir/$dlname \$dldir/$dlname~
11332 chmod a+x \$dldir/$dlname~
11333 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11334 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11335 fi'
11336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11337 dlpath=$dir/\$dldll~
11338 $RM \$dlpath'
11339 shlibpath_overrides_runpath=yes
11340
11341 case $host_os in
11342 cygwin*)
11343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11344 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11345
11346 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11347 ;;
11348 mingw* | cegcc*)
11349 # MinGW DLLs use traditional 'lib' prefix
11350 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11351 ;;
11352 pw32*)
11353 # pw32 DLLs use 'pw' prefix rather than 'lib'
11354 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11355 ;;
11356 esac
11357 dynamic_linker='Win32 ld.exe'
11358 ;;
11359
11360 *,cl*)
11361 # Native MSVC
11362 libname_spec='$name'
11363 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11364 library_names_spec='$libname.dll.lib'
11365
11366 case $build_os in
11367 mingw*)
11368 sys_lib_search_path_spec=
11369 lt_save_ifs=$IFS
11370 IFS=';'
11371 for lt_path in $LIB
11372 do
11373 IFS=$lt_save_ifs
11374 # Let DOS variable expansion print the short 8.3 style file name.
11375 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11376 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11377 done
11378 IFS=$lt_save_ifs
11379 # Convert to MSYS style.
11380 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11381 ;;
11382 cygwin*)
11383 # Convert to unix form, then to dos form, then back to unix form
11384 # but this time dos style (no spaces!) so that the unix form looks
11385 # like /cygdrive/c/PROGRA~1:/cygdr...
11386 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11387 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11388 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11389 ;;
11390 *)
11391 sys_lib_search_path_spec=$LIB
11392 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11393 # It is most probably a Windows format PATH.
11394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11395 else
11396 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11397 fi
11398 # FIXME: find the short name or the path components, as spaces are
11399 # common. (e.g. "Program Files" -> "PROGRA~1")
11400 ;;
11401 esac
11402
11403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11404 postinstall_cmds='base_file=`basename \$file`~
11405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11406 dldir=$destdir/`dirname \$dlpath`~
11407 test -d \$dldir || mkdir -p \$dldir~
11408 $install_prog $dir/$dlname \$dldir/$dlname'
11409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11410 dlpath=$dir/\$dldll~
11411 $RM \$dlpath'
11412 shlibpath_overrides_runpath=yes
11413 dynamic_linker='Win32 link.exe'
11414 ;;
11415
11416 *)
11417 # Assume MSVC wrapper
11418 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11419 dynamic_linker='Win32 ld.exe'
11420 ;;
11421 esac
11422 # FIXME: first we should search . and the directory the executable is in
11423 shlibpath_var=PATH
11424 ;;
11425
11426darwin* | rhapsody*)
11427 dynamic_linker="$host_os dyld"
11428 version_type=darwin
11429 need_lib_prefix=no
11430 need_version=no
11431 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11432 soname_spec='$libname$release$major$shared_ext'
11433 shlibpath_overrides_runpath=yes
11434 shlibpath_var=DYLD_LIBRARY_PATH
11435 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11436
11437 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11439 ;;
11440
11441dgux*)
11442 version_type=linux # correct to gnu/linux during the next big refactor
11443 need_lib_prefix=no
11444 need_version=no
11445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11446 soname_spec='$libname$release$shared_ext$major'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 ;;
11449
11450freebsd* | dragonfly*)
11451 # DragonFly does not have aout. When/if they implement a new
11452 # versioning mechanism, adjust this.
11453 if test -x /usr/bin/objformat; then
11454 objformat=`/usr/bin/objformat`
11455 else
11456 case $host_os in
11457 freebsd[23].*) objformat=aout ;;
11458 *) objformat=elf ;;
11459 esac
11460 fi
11461 version_type=freebsd-$objformat
11462 case $version_type in
11463 freebsd-elf*)
11464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465 soname_spec='$libname$release$shared_ext$major'
11466 need_version=no
11467 need_lib_prefix=no
11468 ;;
11469 freebsd-*)
11470 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11471 need_version=yes
11472 ;;
11473 esac
11474 shlibpath_var=LD_LIBRARY_PATH
11475 case $host_os in
11476 freebsd2.*)
11477 shlibpath_overrides_runpath=yes
11478 ;;
11479 freebsd3.[01]* | freebsdelf3.[01]*)
11480 shlibpath_overrides_runpath=yes
11481 hardcode_into_libs=yes
11482 ;;
11483 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11484 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11485 shlibpath_overrides_runpath=no
11486 hardcode_into_libs=yes
11487 ;;
11488 *) # from 4.6 on, and DragonFly
11489 shlibpath_overrides_runpath=yes
11490 hardcode_into_libs=yes
11491 ;;
11492 esac
11493 ;;
11494
11495haiku*)
11496 version_type=linux # correct to gnu/linux during the next big refactor
11497 need_lib_prefix=no
11498 need_version=no
11499 dynamic_linker="$host_os runtime_loader"
11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11501 soname_spec='$libname$release$shared_ext$major'
11502 shlibpath_var=LIBRARY_PATH
11503 shlibpath_overrides_runpath=no
11504 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11505 hardcode_into_libs=yes
11506 ;;
11507
11508hpux9* | hpux10* | hpux11*)
11509 # Give a soname corresponding to the major version so that dld.sl refuses to
11510 # link against other versions.
11511 version_type=sunos
11512 need_lib_prefix=no
11513 need_version=no
11514 case $host_cpu in
11515 ia64*)
11516 shrext_cmds='.so'
11517 hardcode_into_libs=yes
11518 dynamic_linker="$host_os dld.so"
11519 shlibpath_var=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11522 soname_spec='$libname$release$shared_ext$major'
11523 if test 32 = "$HPUX_IA64_MODE"; then
11524 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11525 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11526 else
11527 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11528 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11529 fi
11530 ;;
11531 hppa*64*)
11532 shrext_cmds='.sl'
11533 hardcode_into_libs=yes
11534 dynamic_linker="$host_os dld.sl"
11535 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11538 soname_spec='$libname$release$shared_ext$major'
11539 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11541 ;;
11542 *)
11543 shrext_cmds='.sl'
11544 dynamic_linker="$host_os dld.sl"
11545 shlibpath_var=SHLIB_PATH
11546 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11548 soname_spec='$libname$release$shared_ext$major'
11549 ;;
11550 esac
11551 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11552 postinstall_cmds='chmod 555 $lib'
11553 # or fails outright, so override atomically:
11554 install_override_mode=555
11555 ;;
11556
11557interix[3-9]*)
11558 version_type=linux # correct to gnu/linux during the next big refactor
11559 need_lib_prefix=no
11560 need_version=no
11561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11562 soname_spec='$libname$release$shared_ext$major'
11563 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=no
11566 hardcode_into_libs=yes
11567 ;;
11568
11569irix5* | irix6* | nonstopux*)
11570 case $host_os in
11571 nonstopux*) version_type=nonstopux ;;
11572 *)
11573 if test yes = "$lt_cv_prog_gnu_ld"; then
11574 version_type=linux # correct to gnu/linux during the next big refactor
11575 else
11576 version_type=irix
11577 fi ;;
11578 esac
11579 need_lib_prefix=no
11580 need_version=no
11581 soname_spec='$libname$release$shared_ext$major'
11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11583 case $host_os in
11584 irix5* | nonstopux*)
11585 libsuff= shlibsuff=
11586 ;;
11587 *)
11588 case $LD in # libtool.m4 will add one of these switches to LD
11589 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11590 libsuff= shlibsuff= libmagic=32-bit;;
11591 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11592 libsuff=32 shlibsuff=N32 libmagic=N32;;
11593 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11594 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11595 *) libsuff= shlibsuff= libmagic=never-match;;
11596 esac
11597 ;;
11598 esac
11599 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11600 shlibpath_overrides_runpath=no
11601 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11602 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11603 hardcode_into_libs=yes
11604 ;;
11605
11606# No shared lib support for Linux oldld, aout, or coff.
11607linux*oldld* | linux*aout* | linux*coff*)
11608 dynamic_linker=no
11609 ;;
11610
11611linux*android*)
11612 version_type=none # Android doesn't support versioned libraries.
11613 need_lib_prefix=no
11614 need_version=no
11615 library_names_spec='$libname$release$shared_ext'
11616 soname_spec='$libname$release$shared_ext'
11617 finish_cmds=
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=yes
11620
11621 # This implies no fast_install, which is unacceptable.
11622 # Some rework will be needed to allow for fast_install
11623 # before this can be enabled.
11624 hardcode_into_libs=yes
11625
11626 dynamic_linker='Android linker'
11627 # Don't embed -rpath directories since the linker doesn't support them.
11628 hardcode_libdir_flag_spec='-L$libdir'
11629 ;;
11630
11631# This must be glibc/ELF.
11632linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11633 version_type=linux # correct to gnu/linux during the next big refactor
11634 need_lib_prefix=no
11635 need_version=no
11636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637 soname_spec='$libname$release$shared_ext$major'
11638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=no
11641
11642 # Some binutils ld are patched to set DT_RUNPATH
11643 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645else
11646 lt_cv_shlibpath_overrides_runpath=no
11647 save_LDFLAGS=$LDFLAGS
11648 save_libdir=$libdir
11649 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11650 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652/* end confdefs.h. */
11653
11654int
11655main ()
11656{
11657
11658 ;
11659 return 0;
11660}
11661_ACEOF
11662if ac_fn_c_try_link "$LINENO"; then :
11663 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11664 lt_cv_shlibpath_overrides_runpath=yes
11665fi
11666fi
11667rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LDFLAGS=$save_LDFLAGS
11670 libdir=$save_libdir
11671
11672fi
11673
11674 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11675
11676 # This implies no fast_install, which is unacceptable.
11677 # Some rework will be needed to allow for fast_install
11678 # before this can be enabled.
11679 hardcode_into_libs=yes
11680
11681 # Ideally, we could use ldconfig to report *all* directores which are
11682 # searched for libraries, however this is still not possible. Aside from not
11683 # being certain /sbin/ldconfig is available, command
11684 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11685 # even though it is searched at run-time. Try to do the best guess by
11686 # appending ld.so.conf contents (and includes) to the search path.
11687 if test -f /etc/ld.so.conf; then
11688 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' ' '`
11689 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11690 fi
11691
11692 # We used to test for /lib/ld.so.1 and disable shared libraries on
11693 # powerpc, because MkLinux only supported shared libraries with the
11694 # GNU dynamic linker. Since this was broken with cross compilers,
11695 # most powerpc-linux boxes support dynamic linking these days and
11696 # people can always --disable-shared, the test was removed, and we
11697 # assume the GNU/Linux dynamic linker is in use.
11698 dynamic_linker='GNU/Linux ld.so'
11699 ;;
11700
11701netbsdelf*-gnu)
11702 version_type=linux
11703 need_lib_prefix=no
11704 need_version=no
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11706 soname_spec='${libname}${release}${shared_ext}$major'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=no
11709 hardcode_into_libs=yes
11710 dynamic_linker='NetBSD ld.elf_so'
11711 ;;
11712
11713netbsd*)
11714 version_type=sunos
11715 need_lib_prefix=no
11716 need_version=no
11717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11718 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11720 dynamic_linker='NetBSD (a.out) ld.so'
11721 else
11722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11723 soname_spec='$libname$release$shared_ext$major'
11724 dynamic_linker='NetBSD ld.elf_so'
11725 fi
11726 shlibpath_var=LD_LIBRARY_PATH
11727 shlibpath_overrides_runpath=yes
11728 hardcode_into_libs=yes
11729 ;;
11730
11731newsos6)
11732 version_type=linux # correct to gnu/linux during the next big refactor
11733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11734 shlibpath_var=LD_LIBRARY_PATH
11735 shlibpath_overrides_runpath=yes
11736 ;;
11737
11738*nto* | *qnx*)
11739 version_type=qnx
11740 need_lib_prefix=no
11741 need_version=no
11742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11743 soname_spec='$libname$release$shared_ext$major'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 shlibpath_overrides_runpath=no
11746 hardcode_into_libs=yes
11747 dynamic_linker='ldqnx.so'
11748 ;;
11749
11750openbsd* | bitrig*)
11751 version_type=sunos
11752 sys_lib_dlsearch_path_spec=/usr/lib
11753 need_lib_prefix=no
11754 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11755 need_version=no
11756 else
11757 need_version=yes
11758 fi
11759 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=yes
11763 ;;
11764
11765os2*)
11766 libname_spec='$name'
11767 version_type=windows
11768 shrext_cmds=.dll
11769 need_version=no
11770 need_lib_prefix=no
11771 # OS/2 can only load a DLL with a base name of 8 characters or less.
11772 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11773 v=$($ECHO $release$versuffix | tr -d .-);
11774 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11775 $ECHO $n$v`$shared_ext'
11776 library_names_spec='${libname}_dll.$libext'
11777 dynamic_linker='OS/2 ld.exe'
11778 shlibpath_var=BEGINLIBPATH
11779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11781 postinstall_cmds='base_file=`basename \$file`~
11782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11783 dldir=$destdir/`dirname \$dlpath`~
11784 test -d \$dldir || mkdir -p \$dldir~
11785 $install_prog $dir/$dlname \$dldir/$dlname~
11786 chmod a+x \$dldir/$dlname~
11787 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11788 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11789 fi'
11790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11791 dlpath=$dir/\$dldll~
11792 $RM \$dlpath'
11793 ;;
11794
11795osf3* | osf4* | osf5*)
11796 version_type=osf
11797 need_lib_prefix=no
11798 need_version=no
11799 soname_spec='$libname$release$shared_ext$major'
11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11804 ;;
11805
11806rdos*)
11807 dynamic_linker=no
11808 ;;
11809
11810solaris*)
11811 version_type=linux # correct to gnu/linux during the next big refactor
11812 need_lib_prefix=no
11813 need_version=no
11814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11815 soname_spec='$libname$release$shared_ext$major'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 shlibpath_overrides_runpath=yes
11818 hardcode_into_libs=yes
11819 # ldd complains unless libraries are executable
11820 postinstall_cmds='chmod +x $lib'
11821 ;;
11822
11823sunos4*)
11824 version_type=sunos
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=yes
11829 if test yes = "$with_gnu_ld"; then
11830 need_lib_prefix=no
11831 fi
11832 need_version=yes
11833 ;;
11834
11835sysv4 | sysv4.3*)
11836 version_type=linux # correct to gnu/linux during the next big refactor
11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11838 soname_spec='$libname$release$shared_ext$major'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 case $host_vendor in
11841 sni)
11842 shlibpath_overrides_runpath=no
11843 need_lib_prefix=no
11844 runpath_var=LD_RUN_PATH
11845 ;;
11846 siemens)
11847 need_lib_prefix=no
11848 ;;
11849 motorola)
11850 need_lib_prefix=no
11851 need_version=no
11852 shlibpath_overrides_runpath=no
11853 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11854 ;;
11855 esac
11856 ;;
11857
11858sysv4*MP*)
11859 if test -d /usr/nec; then
11860 version_type=linux # correct to gnu/linux during the next big refactor
11861 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11862 soname_spec='$libname$shared_ext.$major'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 fi
11865 ;;
11866
11867sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11868 version_type=sco
11869 need_lib_prefix=no
11870 need_version=no
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath=yes
11875 hardcode_into_libs=yes
11876 if test yes = "$with_gnu_ld"; then
11877 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11878 else
11879 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11880 case $host_os in
11881 sco3.2v5*)
11882 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11883 ;;
11884 esac
11885 fi
11886 sys_lib_dlsearch_path_spec='/usr/lib'
11887 ;;
11888
11889tpf*)
11890 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11891 version_type=linux # correct to gnu/linux during the next big refactor
11892 need_lib_prefix=no
11893 need_version=no
11894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11895 shlibpath_var=LD_LIBRARY_PATH
11896 shlibpath_overrides_runpath=no
11897 hardcode_into_libs=yes
11898 ;;
11899
11900uts4*)
11901 version_type=linux # correct to gnu/linux during the next big refactor
11902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11903 soname_spec='$libname$release$shared_ext$major'
11904 shlibpath_var=LD_LIBRARY_PATH
11905 ;;
11906
11907*)
11908 dynamic_linker=no
11909 ;;
11910esac
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11912$as_echo "$dynamic_linker" >&6; }
11913test no = "$dynamic_linker" && can_build_shared=no
11914
11915variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11916if test yes = "$GCC"; then
11917 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11918fi
11919
11920if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11921 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11922fi
11923
11924if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11925 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11926fi
11927
11928# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11929configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11930
11931# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11932func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11933
11934# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11935configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12034$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12035hardcode_action=
12036if test -n "$hardcode_libdir_flag_spec" ||
12037 test -n "$runpath_var" ||
12038 test yes = "$hardcode_automatic"; then
12039
12040 # We can hardcode non-existent directories.
12041 if test no != "$hardcode_direct" &&
12042 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12043 # have to relink, otherwise we might link with an installed library
12044 # when we should be linking with a yet-to-be-installed one
12045 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12046 test no != "$hardcode_minus_L"; then
12047 # Linking always hardcodes the temporary library directory.
12048 hardcode_action=relink
12049 else
12050 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12051 hardcode_action=immediate
12052 fi
12053else
12054 # We cannot hardcode anything, or else we can only hardcode existing
12055 # directories.
12056 hardcode_action=unsupported
12057fi
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12059$as_echo "$hardcode_action" >&6; }
12060
12061if test relink = "$hardcode_action" ||
12062 test yes = "$inherit_rpath"; then
12063 # Fast installation is not supported
12064 enable_fast_install=no
12065elif test yes = "$shlibpath_overrides_runpath" ||
12066 test no = "$enable_shared"; then
12067 # Fast installation is not necessary
12068 enable_fast_install=needless
12069fi
12070
12071
12072
12073
12074
12075
12076 if test yes != "$enable_dlopen"; then
12077 enable_dlopen=unknown
12078 enable_dlopen_self=unknown
12079 enable_dlopen_self_static=unknown
12080else
12081 lt_cv_dlopen=no
12082 lt_cv_dlopen_libs=
12083
12084 case $host_os in
12085 beos*)
12086 lt_cv_dlopen=load_add_on
12087 lt_cv_dlopen_libs=
12088 lt_cv_dlopen_self=yes
12089 ;;
12090
12091 mingw* | pw32* | cegcc*)
12092 lt_cv_dlopen=LoadLibrary
12093 lt_cv_dlopen_libs=
12094 ;;
12095
12096 cygwin*)
12097 lt_cv_dlopen=dlopen
12098 lt_cv_dlopen_libs=
12099 ;;
12100
12101 darwin*)
12102 # if libdl is installed we need to link against it
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12104$as_echo_n "checking for dlopen in -ldl... " >&6; }
12105if ${ac_cv_lib_dl_dlopen+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107else
12108 ac_check_lib_save_LIBS=$LIBS
12109LIBS="-ldl $LIBS"
12110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111/* end confdefs.h. */
12112
12113/* Override any GCC internal prototype to avoid an error.
12114 Use char because int might match the return type of a GCC
12115 builtin and then its argument prototype would still apply. */
12116#ifdef __cplusplus
12117extern "C"
12118#endif
12119char dlopen ();
12120int
12121main ()
12122{
12123return dlopen ();
12124 ;
12125 return 0;
12126}
12127_ACEOF
12128if ac_fn_c_try_link "$LINENO"; then :
12129 ac_cv_lib_dl_dlopen=yes
12130else
12131 ac_cv_lib_dl_dlopen=no
12132fi
12133rm -f core conftest.err conftest.$ac_objext \
12134 conftest$ac_exeext conftest.$ac_ext
12135LIBS=$ac_check_lib_save_LIBS
12136fi
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12138$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12139if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12140 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12141else
12142
12143 lt_cv_dlopen=dyld
12144 lt_cv_dlopen_libs=
12145 lt_cv_dlopen_self=yes
12146
12147fi
12148
12149 ;;
12150
12151 tpf*)
12152 # Don't try to run any link tests for TPF. We know it's impossible
12153 # because TPF is a cross-compiler, and we know how we open DSOs.
12154 lt_cv_dlopen=dlopen
12155 lt_cv_dlopen_libs=
12156 lt_cv_dlopen_self=no
12157 ;;
12158
12159 *)
12160 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12161if test "x$ac_cv_func_shl_load" = xyes; then :
12162 lt_cv_dlopen=shl_load
12163else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12165$as_echo_n "checking for shl_load in -ldld... " >&6; }
12166if ${ac_cv_lib_dld_shl_load+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168else
12169 ac_check_lib_save_LIBS=$LIBS
12170LIBS="-ldld $LIBS"
12171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172/* end confdefs.h. */
12173
12174/* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12177#ifdef __cplusplus
12178extern "C"
12179#endif
12180char shl_load ();
12181int
12182main ()
12183{
12184return shl_load ();
12185 ;
12186 return 0;
12187}
12188_ACEOF
12189if ac_fn_c_try_link "$LINENO"; then :
12190 ac_cv_lib_dld_shl_load=yes
12191else
12192 ac_cv_lib_dld_shl_load=no
12193fi
12194rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196LIBS=$ac_check_lib_save_LIBS
12197fi
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12199$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12200if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12201 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12202else
12203 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12204if test "x$ac_cv_func_dlopen" = xyes; then :
12205 lt_cv_dlopen=dlopen
12206else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12208$as_echo_n "checking for dlopen in -ldl... " >&6; }
12209if ${ac_cv_lib_dl_dlopen+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211else
12212 ac_check_lib_save_LIBS=$LIBS
12213LIBS="-ldl $LIBS"
12214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215/* end confdefs.h. */
12216
12217/* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12220#ifdef __cplusplus
12221extern "C"
12222#endif
12223char dlopen ();
12224int
12225main ()
12226{
12227return dlopen ();
12228 ;
12229 return 0;
12230}
12231_ACEOF
12232if ac_fn_c_try_link "$LINENO"; then :
12233 ac_cv_lib_dl_dlopen=yes
12234else
12235 ac_cv_lib_dl_dlopen=no
12236fi
12237rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239LIBS=$ac_check_lib_save_LIBS
12240fi
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12242$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12243if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12245else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12247$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12248if ${ac_cv_lib_svld_dlopen+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250else
12251 ac_check_lib_save_LIBS=$LIBS
12252LIBS="-lsvld $LIBS"
12253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254/* end confdefs.h. */
12255
12256/* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12259#ifdef __cplusplus
12260extern "C"
12261#endif
12262char dlopen ();
12263int
12264main ()
12265{
12266return dlopen ();
12267 ;
12268 return 0;
12269}
12270_ACEOF
12271if ac_fn_c_try_link "$LINENO"; then :
12272 ac_cv_lib_svld_dlopen=yes
12273else
12274 ac_cv_lib_svld_dlopen=no
12275fi
12276rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278LIBS=$ac_check_lib_save_LIBS
12279fi
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12281$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12282if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12283 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12284else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12286$as_echo_n "checking for dld_link in -ldld... " >&6; }
12287if ${ac_cv_lib_dld_dld_link+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289else
12290 ac_check_lib_save_LIBS=$LIBS
12291LIBS="-ldld $LIBS"
12292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293/* end confdefs.h. */
12294
12295/* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12298#ifdef __cplusplus
12299extern "C"
12300#endif
12301char dld_link ();
12302int
12303main ()
12304{
12305return dld_link ();
12306 ;
12307 return 0;
12308}
12309_ACEOF
12310if ac_fn_c_try_link "$LINENO"; then :
12311 ac_cv_lib_dld_dld_link=yes
12312else
12313 ac_cv_lib_dld_dld_link=no
12314fi
12315rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317LIBS=$ac_check_lib_save_LIBS
12318fi
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12320$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12321if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12322 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12323fi
12324
12325
12326fi
12327
12328
12329fi
12330
12331
12332fi
12333
12334
12335fi
12336
12337
12338fi
12339
12340 ;;
12341 esac
12342
12343 if test no = "$lt_cv_dlopen"; then
12344 enable_dlopen=no
12345 else
12346 enable_dlopen=yes
12347 fi
12348
12349 case $lt_cv_dlopen in
12350 dlopen)
12351 save_CPPFLAGS=$CPPFLAGS
12352 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12353
12354 save_LDFLAGS=$LDFLAGS
12355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12356
12357 save_LIBS=$LIBS
12358 LIBS="$lt_cv_dlopen_libs $LIBS"
12359
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12361$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12362if ${lt_cv_dlopen_self+:} false; then :
12363 $as_echo_n "(cached) " >&6
12364else
12365 if test yes = "$cross_compiling"; then :
12366 lt_cv_dlopen_self=cross
12367else
12368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12369 lt_status=$lt_dlunknown
12370 cat > conftest.$ac_ext <<_LT_EOF
12371#line $LINENO "configure"
12372#include "confdefs.h"
12373
12374#if HAVE_DLFCN_H
12375#include <dlfcn.h>
12376#endif
12377
12378#include <stdio.h>
12379
12380#ifdef RTLD_GLOBAL
12381# define LT_DLGLOBAL RTLD_GLOBAL
12382#else
12383# ifdef DL_GLOBAL
12384# define LT_DLGLOBAL DL_GLOBAL
12385# else
12386# define LT_DLGLOBAL 0
12387# endif
12388#endif
12389
12390/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12391 find out it does not work in some platform. */
12392#ifndef LT_DLLAZY_OR_NOW
12393# ifdef RTLD_LAZY
12394# define LT_DLLAZY_OR_NOW RTLD_LAZY
12395# else
12396# ifdef DL_LAZY
12397# define LT_DLLAZY_OR_NOW DL_LAZY
12398# else
12399# ifdef RTLD_NOW
12400# define LT_DLLAZY_OR_NOW RTLD_NOW
12401# else
12402# ifdef DL_NOW
12403# define LT_DLLAZY_OR_NOW DL_NOW
12404# else
12405# define LT_DLLAZY_OR_NOW 0
12406# endif
12407# endif
12408# endif
12409# endif
12410#endif
12411
12412/* When -fvisibility=hidden is used, assume the code has been annotated
12413 correspondingly for the symbols needed. */
12414#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12415int fnord () __attribute__((visibility("default")));
12416#endif
12417
12418int fnord () { return 42; }
12419int main ()
12420{
12421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12422 int status = $lt_dlunknown;
12423
12424 if (self)
12425 {
12426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12427 else
12428 {
12429 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12430 else puts (dlerror ());
12431 }
12432 /* dlclose (self); */
12433 }
12434 else
12435 puts (dlerror ());
12436
12437 return status;
12438}
12439_LT_EOF
12440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12441 (eval $ac_link) 2>&5
12442 ac_status=$?
12443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12445 (./conftest; exit; ) >&5 2>/dev/null
12446 lt_status=$?
12447 case x$lt_status in
12448 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12449 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12450 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12451 esac
12452 else :
12453 # compilation failed
12454 lt_cv_dlopen_self=no
12455 fi
12456fi
12457rm -fr conftest*
12458
12459
12460fi
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12462$as_echo "$lt_cv_dlopen_self" >&6; }
12463
12464 if test yes = "$lt_cv_dlopen_self"; then
12465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12467$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12468if ${lt_cv_dlopen_self_static+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470else
12471 if test yes = "$cross_compiling"; then :
12472 lt_cv_dlopen_self_static=cross
12473else
12474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12475 lt_status=$lt_dlunknown
12476 cat > conftest.$ac_ext <<_LT_EOF
12477#line $LINENO "configure"
12478#include "confdefs.h"
12479
12480#if HAVE_DLFCN_H
12481#include <dlfcn.h>
12482#endif
12483
12484#include <stdio.h>
12485
12486#ifdef RTLD_GLOBAL
12487# define LT_DLGLOBAL RTLD_GLOBAL
12488#else
12489# ifdef DL_GLOBAL
12490# define LT_DLGLOBAL DL_GLOBAL
12491# else
12492# define LT_DLGLOBAL 0
12493# endif
12494#endif
12495
12496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12497 find out it does not work in some platform. */
12498#ifndef LT_DLLAZY_OR_NOW
12499# ifdef RTLD_LAZY
12500# define LT_DLLAZY_OR_NOW RTLD_LAZY
12501# else
12502# ifdef DL_LAZY
12503# define LT_DLLAZY_OR_NOW DL_LAZY
12504# else
12505# ifdef RTLD_NOW
12506# define LT_DLLAZY_OR_NOW RTLD_NOW
12507# else
12508# ifdef DL_NOW
12509# define LT_DLLAZY_OR_NOW DL_NOW
12510# else
12511# define LT_DLLAZY_OR_NOW 0
12512# endif
12513# endif
12514# endif
12515# endif
12516#endif
12517
12518/* When -fvisibility=hidden is used, assume the code has been annotated
12519 correspondingly for the symbols needed. */
12520#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12521int fnord () __attribute__((visibility("default")));
12522#endif
12523
12524int fnord () { return 42; }
12525int main ()
12526{
12527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12528 int status = $lt_dlunknown;
12529
12530 if (self)
12531 {
12532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12533 else
12534 {
12535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12536 else puts (dlerror ());
12537 }
12538 /* dlclose (self); */
12539 }
12540 else
12541 puts (dlerror ());
12542
12543 return status;
12544}
12545_LT_EOF
12546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12547 (eval $ac_link) 2>&5
12548 ac_status=$?
12549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12550 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12551 (./conftest; exit; ) >&5 2>/dev/null
12552 lt_status=$?
12553 case x$lt_status in
12554 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12555 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12556 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12557 esac
12558 else :
12559 # compilation failed
12560 lt_cv_dlopen_self_static=no
12561 fi
12562fi
12563rm -fr conftest*
12564
12565
12566fi
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12568$as_echo "$lt_cv_dlopen_self_static" >&6; }
12569 fi
12570
12571 CPPFLAGS=$save_CPPFLAGS
12572 LDFLAGS=$save_LDFLAGS
12573 LIBS=$save_LIBS
12574 ;;
12575 esac
12576
12577 case $lt_cv_dlopen_self in
12578 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12579 *) enable_dlopen_self=unknown ;;
12580 esac
12581
12582 case $lt_cv_dlopen_self_static in
12583 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12584 *) enable_dlopen_self_static=unknown ;;
12585 esac
12586fi
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604striplib=
12605old_striplib=
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12607$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12608if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12609 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12610 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12612$as_echo "yes" >&6; }
12613else
12614# FIXME - insert some real tests, host_os isn't really good enough
12615 case $host_os in
12616 darwin*)
12617 if test -n "$STRIP"; then
12618 striplib="$STRIP -x"
12619 old_striplib="$STRIP -S"
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12621$as_echo "yes" >&6; }
12622 else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624$as_echo "no" >&6; }
12625 fi
12626 ;;
12627 *)
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629$as_echo "no" >&6; }
12630 ;;
12631 esac
12632fi
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645 # Report what library types will actually be built
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12647$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12649$as_echo "$can_build_shared" >&6; }
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12652$as_echo_n "checking whether to build shared libraries... " >&6; }
12653 test no = "$can_build_shared" && enable_shared=no
12654
12655 # On AIX, shared libraries and static libraries use the same namespace, and
12656 # are all built from PIC.
12657 case $host_os in
12658 aix3*)
12659 test yes = "$enable_shared" && enable_static=no
12660 if test -n "$RANLIB"; then
12661 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12662 postinstall_cmds='$RANLIB $lib'
12663 fi
12664 ;;
12665
12666 aix[4-9]*)
12667 if test ia64 != "$host_cpu"; then
12668 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12669 yes,aix,yes) ;; # shared object as lib.so file only
12670 yes,svr4,*) ;; # shared object as lib.so archive member only
12671 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12672 esac
12673 fi
12674 ;;
12675 esac
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12677$as_echo "$enable_shared" >&6; }
12678
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12680$as_echo_n "checking whether to build static libraries... " >&6; }
12681 # Make sure either enable_shared or enable_static is yes.
12682 test yes = "$enable_shared" || enable_static=yes
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12684$as_echo "$enable_static" >&6; }
12685
12686
12687
12688
12689fi
12690ac_ext=c
12691ac_cpp='$CPP $CPPFLAGS'
12692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12694ac_compiler_gnu=$ac_cv_c_compiler_gnu
12695
12696CC=$lt_save_CC
12697
12698 if test -n "$CXX" && ( test no != "$CXX" &&
12699 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12700 (test g++ != "$CXX"))); then
12701 ac_ext=cpp
12702ac_cpp='$CXXCPP $CPPFLAGS'
12703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12707$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12708if test -z "$CXXCPP"; then
12709 if ${ac_cv_prog_CXXCPP+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711else
12712 # Double quotes because CXXCPP needs to be expanded
12713 for CXXCPP in "$CXX -E" "/lib/cpp"
12714 do
12715 ac_preproc_ok=false
12716for ac_cxx_preproc_warn_flag in '' yes
12717do
12718 # Use a header file that comes with gcc, so configuring glibc
12719 # with a fresh cross-compiler works.
12720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12721 # <limits.h> exists even on freestanding compilers.
12722 # On the NeXT, cc -E runs the code through the compiler's parser,
12723 # not just through cpp. "Syntax error" is here to catch this case.
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725/* end confdefs.h. */
12726#ifdef __STDC__
12727# include <limits.h>
12728#else
12729# include <assert.h>
12730#endif
12731 Syntax error
12732_ACEOF
12733if ac_fn_cxx_try_cpp "$LINENO"; then :
12734
12735else
12736 # Broken: fails on valid input.
12737continue
12738fi
12739rm -f conftest.err conftest.i conftest.$ac_ext
12740
12741 # OK, works on sane cases. Now check whether nonexistent headers
12742 # can be detected and how.
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744/* end confdefs.h. */
12745#include <ac_nonexistent.h>
12746_ACEOF
12747if ac_fn_cxx_try_cpp "$LINENO"; then :
12748 # Broken: success on invalid input.
12749continue
12750else
12751 # Passes both tests.
12752ac_preproc_ok=:
12753break
12754fi
12755rm -f conftest.err conftest.i conftest.$ac_ext
12756
12757done
12758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12759rm -f conftest.i conftest.err conftest.$ac_ext
12760if $ac_preproc_ok; then :
12761 break
12762fi
12763
12764 done
12765 ac_cv_prog_CXXCPP=$CXXCPP
12766
12767fi
12768 CXXCPP=$ac_cv_prog_CXXCPP
12769else
12770 ac_cv_prog_CXXCPP=$CXXCPP
12771fi
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12773$as_echo "$CXXCPP" >&6; }
12774ac_preproc_ok=false
12775for ac_cxx_preproc_warn_flag in '' yes
12776do
12777 # Use a header file that comes with gcc, so configuring glibc
12778 # with a fresh cross-compiler works.
12779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12780 # <limits.h> exists even on freestanding compilers.
12781 # On the NeXT, cc -E runs the code through the compiler's parser,
12782 # not just through cpp. "Syntax error" is here to catch this case.
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784/* end confdefs.h. */
12785#ifdef __STDC__
12786# include <limits.h>
12787#else
12788# include <assert.h>
12789#endif
12790 Syntax error
12791_ACEOF
12792if ac_fn_cxx_try_cpp "$LINENO"; then :
12793
12794else
12795 # Broken: fails on valid input.
12796continue
12797fi
12798rm -f conftest.err conftest.i conftest.$ac_ext
12799
12800 # OK, works on sane cases. Now check whether nonexistent headers
12801 # can be detected and how.
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803/* end confdefs.h. */
12804#include <ac_nonexistent.h>
12805_ACEOF
12806if ac_fn_cxx_try_cpp "$LINENO"; then :
12807 # Broken: success on invalid input.
12808continue
12809else
12810 # Passes both tests.
12811ac_preproc_ok=:
12812break
12813fi
12814rm -f conftest.err conftest.i conftest.$ac_ext
12815
12816done
12817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12818rm -f conftest.i conftest.err conftest.$ac_ext
12819if $ac_preproc_ok; then :
12820
12821else
12822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12824as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12825See \`config.log' for more details" "$LINENO" 5; }
12826fi
12827
12828ac_ext=c
12829ac_cpp='$CPP $CPPFLAGS'
12830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12832ac_compiler_gnu=$ac_cv_c_compiler_gnu
12833
12834else
12835 _lt_caught_CXX_error=yes
12836fi
12837
12838ac_ext=cpp
12839ac_cpp='$CXXCPP $CPPFLAGS'
12840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12843
12844archive_cmds_need_lc_CXX=no
12845allow_undefined_flag_CXX=
12846always_export_symbols_CXX=no
12847archive_expsym_cmds_CXX=
12848compiler_needs_object_CXX=no
12849export_dynamic_flag_spec_CXX=
12850hardcode_direct_CXX=no
12851hardcode_direct_absolute_CXX=no
12852hardcode_libdir_flag_spec_CXX=
12853hardcode_libdir_separator_CXX=
12854hardcode_minus_L_CXX=no
12855hardcode_shlibpath_var_CXX=unsupported
12856hardcode_automatic_CXX=no
12857inherit_rpath_CXX=no
12858module_cmds_CXX=
12859module_expsym_cmds_CXX=
12860link_all_deplibs_CXX=unknown
12861old_archive_cmds_CXX=$old_archive_cmds
12862reload_flag_CXX=$reload_flag
12863reload_cmds_CXX=$reload_cmds
12864no_undefined_flag_CXX=
12865whole_archive_flag_spec_CXX=
12866enable_shared_with_static_runtimes_CXX=no
12867
12868# Source file extension for C++ test sources.
12869ac_ext=cpp
12870
12871# Object file extension for compiled C++ test sources.
12872objext=o
12873objext_CXX=$objext
12874
12875# No sense in running all these tests if we already determined that
12876# the CXX compiler isn't working. Some variables (like enable_shared)
12877# are currently assumed to apply to all compilers on this platform,
12878# and will be corrupted by setting them based on a non-working compiler.
12879if test yes != "$_lt_caught_CXX_error"; then
12880 # Code to be used in simple compile tests
12881 lt_simple_compile_test_code="int some_variable = 0;"
12882
12883 # Code to be used in simple link tests
12884 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12885
12886 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12887
12888
12889
12890
12891
12892
12893# If no C compiler was specified, use CC.
12894LTCC=${LTCC-"$CC"}
12895
12896# If no C compiler flags were specified, use CFLAGS.
12897LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12898
12899# Allow CC to be a program name with arguments.
12900compiler=$CC
12901
12902
12903 # save warnings/boilerplate of simple test code
12904 ac_outfile=conftest.$ac_objext
12905echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12906eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12907_lt_compiler_boilerplate=`cat conftest.err`
12908$RM conftest*
12909
12910 ac_outfile=conftest.$ac_objext
12911echo "$lt_simple_link_test_code" >conftest.$ac_ext
12912eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12913_lt_linker_boilerplate=`cat conftest.err`
12914$RM -r conftest*
12915
12916
12917 # Allow CC to be a program name with arguments.
12918 lt_save_CC=$CC
12919 lt_save_CFLAGS=$CFLAGS
12920 lt_save_LD=$LD
12921 lt_save_GCC=$GCC
12922 GCC=$GXX
12923 lt_save_with_gnu_ld=$with_gnu_ld
12924 lt_save_path_LD=$lt_cv_path_LD
12925 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12926 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12927 else
12928 $as_unset lt_cv_prog_gnu_ld
12929 fi
12930 if test -n "${lt_cv_path_LDCXX+set}"; then
12931 lt_cv_path_LD=$lt_cv_path_LDCXX
12932 else
12933 $as_unset lt_cv_path_LD
12934 fi
12935 test -z "${LDCXX+set}" || LD=$LDCXX
12936 CC=${CXX-"c++"}
12937 CFLAGS=$CXXFLAGS
12938 compiler=$CC
12939 compiler_CXX=$CC
12940 func_cc_basename $compiler
12941cc_basename=$func_cc_basename_result
12942
12943
12944 if test -n "$compiler"; then
12945 # We don't want -fno-exception when compiling C++ code, so set the
12946 # no_builtin_flag separately
12947 if test yes = "$GXX"; then
12948 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12949 else
12950 lt_prog_compiler_no_builtin_flag_CXX=
12951 fi
12952
12953 if test yes = "$GXX"; then
12954 # Set up default GNU C++ configuration
12955
12956
12957
12958# Check whether --with-gnu-ld was given.
12959if test "${with_gnu_ld+set}" = set; then :
12960 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12961else
12962 with_gnu_ld=no
12963fi
12964
12965ac_prog=ld
12966if test yes = "$GCC"; then
12967 # Check if gcc -print-prog-name=ld gives a path.
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12969$as_echo_n "checking for ld used by $CC... " >&6; }
12970 case $host in
12971 *-*-mingw*)
12972 # gcc leaves a trailing carriage return, which upsets mingw
12973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12974 *)
12975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12976 esac
12977 case $ac_prog in
12978 # Accept absolute paths.
12979 [\\/]* | ?:[\\/]*)
12980 re_direlt='/[^/][^/]*/\.\./'
12981 # Canonicalize the pathname of ld
12982 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12983 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12984 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12985 done
12986 test -z "$LD" && LD=$ac_prog
12987 ;;
12988 "")
12989 # If it fails, then pretend we aren't using GCC.
12990 ac_prog=ld
12991 ;;
12992 *)
12993 # If it is relative, then search for the first ld in PATH.
12994 with_gnu_ld=unknown
12995 ;;
12996 esac
12997elif test yes = "$with_gnu_ld"; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12999$as_echo_n "checking for GNU ld... " >&6; }
13000else
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13002$as_echo_n "checking for non-GNU ld... " >&6; }
13003fi
13004if ${lt_cv_path_LD+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006else
13007 if test -z "$LD"; then
13008 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13009 for ac_dir in $PATH; do
13010 IFS=$lt_save_ifs
13011 test -z "$ac_dir" && ac_dir=.
13012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13013 lt_cv_path_LD=$ac_dir/$ac_prog
13014 # Check to see if the program is GNU ld. I'd rather use --version,
13015 # but apparently some variants of GNU ld only accept -v.
13016 # Break only if it was the GNU/non-GNU ld that we prefer.
13017 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13018 *GNU* | *'with BFD'*)
13019 test no != "$with_gnu_ld" && break
13020 ;;
13021 *)
13022 test yes != "$with_gnu_ld" && break
13023 ;;
13024 esac
13025 fi
13026 done
13027 IFS=$lt_save_ifs
13028else
13029 lt_cv_path_LD=$LD # Let the user override the test with a path.
13030fi
13031fi
13032
13033LD=$lt_cv_path_LD
13034if test -n "$LD"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13036$as_echo "$LD" >&6; }
13037else
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039$as_echo "no" >&6; }
13040fi
13041test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13043$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13044if ${lt_cv_prog_gnu_ld+:} false; then :
13045 $as_echo_n "(cached) " >&6
13046else
13047 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13048case `$LD -v 2>&1 </dev/null` in
13049*GNU* | *'with BFD'*)
13050 lt_cv_prog_gnu_ld=yes
13051 ;;
13052*)
13053 lt_cv_prog_gnu_ld=no
13054 ;;
13055esac
13056fi
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13058$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13059with_gnu_ld=$lt_cv_prog_gnu_ld
13060
13061
13062
13063
13064
13065
13066
13067 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13068 # archiving commands below assume that GNU ld is being used.
13069 if test yes = "$with_gnu_ld"; then
13070 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13071 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'
13072
13073 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13074 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13075
13076 # If archive_cmds runs LD, not CC, wlarc should be empty
13077 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13078 # investigate it a little bit more. (MM)
13079 wlarc='$wl'
13080
13081 # ancient GNU ld didn't support --whole-archive et. al.
13082 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13083 $GREP 'no-whole-archive' > /dev/null; then
13084 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13085 else
13086 whole_archive_flag_spec_CXX=
13087 fi
13088 else
13089 with_gnu_ld=no
13090 wlarc=
13091
13092 # A generic and very simple default shared library creation
13093 # command for GNU C++ for the case where it uses the native
13094 # linker, instead of GNU ld. If possible, this setting should
13095 # overridden to take advantage of the native linker features on
13096 # the platform it is being used on.
13097 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13098 fi
13099
13100 # Commands to make compiler produce verbose output that lists
13101 # what "hidden" libraries, object files and flags are used when
13102 # linking a shared library.
13103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13104
13105 else
13106 GXX=no
13107 with_gnu_ld=no
13108 wlarc=
13109 fi
13110
13111 # PORTME: fill in a description of your system's C++ link characteristics
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13113$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13114 ld_shlibs_CXX=yes
13115 case $host_os in
13116 aix3*)
13117 # FIXME: insert proper C++ library support
13118 ld_shlibs_CXX=no
13119 ;;
13120 aix[4-9]*)
13121 if test ia64 = "$host_cpu"; then
13122 # On IA64, the linker does run time linking by default, so we don't
13123 # have to do anything special.
13124 aix_use_runtimelinking=no
13125 exp_sym_flag='-Bexport'
13126 no_entry_flag=
13127 else
13128 aix_use_runtimelinking=no
13129
13130 # Test if we are trying to use run time linking or normal
13131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13132 # have runtime linking enabled, and use it for executables.
13133 # For shared libraries, we enable/disable runtime linking
13134 # depending on the kind of the shared library created -
13135 # when "with_aix_soname,aix_use_runtimelinking" is:
13136 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13137 # "aix,yes" lib.so shared, rtl:yes, for executables
13138 # lib.a static archive
13139 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13140 # lib.a(lib.so.V) shared, rtl:no, for executables
13141 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13142 # lib.a(lib.so.V) shared, rtl:no
13143 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13144 # lib.a static archive
13145 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13146 for ld_flag in $LDFLAGS; do
13147 case $ld_flag in
13148 *-brtl*)
13149 aix_use_runtimelinking=yes
13150 break
13151 ;;
13152 esac
13153 done
13154 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13155 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13156 # so we don't have lib.a shared libs to link our executables.
13157 # We have to force runtime linking in this case.
13158 aix_use_runtimelinking=yes
13159 LDFLAGS="$LDFLAGS -Wl,-brtl"
13160 fi
13161 ;;
13162 esac
13163
13164 exp_sym_flag='-bexport'
13165 no_entry_flag='-bnoentry'
13166 fi
13167
13168 # When large executables or shared objects are built, AIX ld can
13169 # have problems creating the table of contents. If linking a library
13170 # or program results in "error TOC overflow" add -mminimal-toc to
13171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13173
13174 archive_cmds_CXX=''
13175 hardcode_direct_CXX=yes
13176 hardcode_direct_absolute_CXX=yes
13177 hardcode_libdir_separator_CXX=':'
13178 link_all_deplibs_CXX=yes
13179 file_list_spec_CXX='$wl-f,'
13180 case $with_aix_soname,$aix_use_runtimelinking in
13181 aix,*) ;; # no import file
13182 svr4,* | *,yes) # use import file
13183 # The Import File defines what to hardcode.
13184 hardcode_direct_CXX=no
13185 hardcode_direct_absolute_CXX=no
13186 ;;
13187 esac
13188
13189 if test yes = "$GXX"; then
13190 case $host_os in aix4.[012]|aix4.[012].*)
13191 # We only want to do this on AIX 4.2 and lower, the check
13192 # below for broken collect2 doesn't work under 4.3+
13193 collect2name=`$CC -print-prog-name=collect2`
13194 if test -f "$collect2name" &&
13195 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13196 then
13197 # We have reworked collect2
13198 :
13199 else
13200 # We have old collect2
13201 hardcode_direct_CXX=unsupported
13202 # It fails to find uninstalled libraries when the uninstalled
13203 # path is not listed in the libpath. Setting hardcode_minus_L
13204 # to unsupported forces relinking
13205 hardcode_minus_L_CXX=yes
13206 hardcode_libdir_flag_spec_CXX='-L$libdir'
13207 hardcode_libdir_separator_CXX=
13208 fi
13209 esac
13210 shared_flag='-shared'
13211 if test yes = "$aix_use_runtimelinking"; then
13212 shared_flag=$shared_flag' $wl-G'
13213 fi
13214 # Need to ensure runtime linking is disabled for the traditional
13215 # shared library, or the linker may eventually find shared libraries
13216 # /with/ Import File - we do not want to mix them.
13217 shared_flag_aix='-shared'
13218 shared_flag_svr4='-shared $wl-G'
13219 else
13220 # not using gcc
13221 if test ia64 = "$host_cpu"; then
13222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13223 # chokes on -Wl,-G. The following line is correct:
13224 shared_flag='-G'
13225 else
13226 if test yes = "$aix_use_runtimelinking"; then
13227 shared_flag='$wl-G'
13228 else
13229 shared_flag='$wl-bM:SRE'
13230 fi
13231 shared_flag_aix='$wl-bM:SRE'
13232 shared_flag_svr4='$wl-G'
13233 fi
13234 fi
13235
13236 export_dynamic_flag_spec_CXX='$wl-bexpall'
13237 # It seems that -bexpall does not export symbols beginning with
13238 # underscore (_), so it is better to generate a list of symbols to
13239 # export.
13240 always_export_symbols_CXX=yes
13241 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13242 # Warning - without using the other runtime loading flags (-brtl),
13243 # -berok will link without error, but may produce a broken library.
13244 # The "-G" linker flag allows undefined symbols.
13245 no_undefined_flag_CXX='-bernotok'
13246 # Determine the default libpath from the value encoded in an empty
13247 # executable.
13248 if test set = "${lt_cv_aix_libpath+set}"; then
13249 aix_libpath=$lt_cv_aix_libpath
13250else
13251 if ${lt_cv_aix_libpath__CXX+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253else
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255/* end confdefs.h. */
13256
13257int
13258main ()
13259{
13260
13261 ;
13262 return 0;
13263}
13264_ACEOF
13265if ac_fn_cxx_try_link "$LINENO"; then :
13266
13267 lt_aix_libpath_sed='
13268 /Import File Strings/,/^$/ {
13269 /^0/ {
13270 s/^0 *\([^ ]*\) *$/\1/
13271 p
13272 }
13273 }'
13274 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13275 # Check for a 64-bit object if we didn't find anything.
13276 if test -z "$lt_cv_aix_libpath__CXX"; then
13277 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13278 fi
13279fi
13280rm -f core conftest.err conftest.$ac_objext \
13281 conftest$ac_exeext conftest.$ac_ext
13282 if test -z "$lt_cv_aix_libpath__CXX"; then
13283 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13284 fi
13285
13286fi
13287
13288 aix_libpath=$lt_cv_aix_libpath__CXX
13289fi
13290
13291 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13292
13293 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
13294 else
13295 if test ia64 = "$host_cpu"; then
13296 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13297 allow_undefined_flag_CXX="-z nodefs"
13298 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"
13299 else
13300 # Determine the default libpath from the value encoded in an
13301 # empty executable.
13302 if test set = "${lt_cv_aix_libpath+set}"; then
13303 aix_libpath=$lt_cv_aix_libpath
13304else
13305 if ${lt_cv_aix_libpath__CXX+:} false; then :
13306 $as_echo_n "(cached) " >&6
13307else
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309/* end confdefs.h. */
13310
13311int
13312main ()
13313{
13314
13315 ;
13316 return 0;
13317}
13318_ACEOF
13319if ac_fn_cxx_try_link "$LINENO"; then :
13320
13321 lt_aix_libpath_sed='
13322 /Import File Strings/,/^$/ {
13323 /^0/ {
13324 s/^0 *\([^ ]*\) *$/\1/
13325 p
13326 }
13327 }'
13328 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13329 # Check for a 64-bit object if we didn't find anything.
13330 if test -z "$lt_cv_aix_libpath__CXX"; then
13331 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13332 fi
13333fi
13334rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336 if test -z "$lt_cv_aix_libpath__CXX"; then
13337 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13338 fi
13339
13340fi
13341
13342 aix_libpath=$lt_cv_aix_libpath__CXX
13343fi
13344
13345 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13346 # Warning - without using the other run time loading flags,
13347 # -berok will link without error, but may produce a broken library.
13348 no_undefined_flag_CXX=' $wl-bernotok'
13349 allow_undefined_flag_CXX=' $wl-berok'
13350 if test yes = "$with_gnu_ld"; then
13351 # We only use this code for GNU lds that support --whole-archive.
13352 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13353 else
13354 # Exported symbols can be pulled into shared objects from archives
13355 whole_archive_flag_spec_CXX='$convenience'
13356 fi
13357 archive_cmds_need_lc_CXX=yes
13358 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13359 # -brtl affects multiple linker settings, -berok does not and is overridden later
13360 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13361 if test svr4 != "$with_aix_soname"; then
13362 # This is similar to how AIX traditionally builds its shared
13363 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13364 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'
13365 fi
13366 if test aix != "$with_aix_soname"; then
13367 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'
13368 else
13369 # used by -dlpreopen to get the symbols
13370 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13371 fi
13372 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13373 fi
13374 fi
13375 ;;
13376
13377 beos*)
13378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13379 allow_undefined_flag_CXX=unsupported
13380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13381 # support --undefined. This deserves some investigation. FIXME
13382 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13383 else
13384 ld_shlibs_CXX=no
13385 fi
13386 ;;
13387
13388 chorus*)
13389 case $cc_basename in
13390 *)
13391 # FIXME: insert proper C++ library support
13392 ld_shlibs_CXX=no
13393 ;;
13394 esac
13395 ;;
13396
13397 cygwin* | mingw* | pw32* | cegcc*)
13398 case $GXX,$cc_basename in
13399 ,cl* | no,cl*)
13400 # Native MSVC
13401 # hardcode_libdir_flag_spec is actually meaningless, as there is
13402 # no search path for DLLs.
13403 hardcode_libdir_flag_spec_CXX=' '
13404 allow_undefined_flag_CXX=unsupported
13405 always_export_symbols_CXX=yes
13406 file_list_spec_CXX='@'
13407 # Tell ltmain to make .lib files, not .a files.
13408 libext=lib
13409 # Tell ltmain to make .dll files, not .so files.
13410 shrext_cmds=.dll
13411 # FIXME: Setting linknames here is a bad hack.
13412 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13413 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13414 cp "$export_symbols" "$output_objdir/$soname.def";
13415 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13416 else
13417 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13418 fi~
13419 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13420 linknames='
13421 # The linker will not automatically build a static lib if we build a DLL.
13422 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13423 enable_shared_with_static_runtimes_CXX=yes
13424 # Don't use ranlib
13425 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13426 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13427 lt_tool_outputfile="@TOOL_OUTPUT@"~
13428 case $lt_outputfile in
13429 *.exe|*.EXE) ;;
13430 *)
13431 lt_outputfile=$lt_outputfile.exe
13432 lt_tool_outputfile=$lt_tool_outputfile.exe
13433 ;;
13434 esac~
13435 func_to_tool_file "$lt_outputfile"~
13436 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13437 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13438 $RM "$lt_outputfile.manifest";
13439 fi'
13440 ;;
13441 *)
13442 # g++
13443 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13444 # as there is no search path for DLLs.
13445 hardcode_libdir_flag_spec_CXX='-L$libdir'
13446 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13447 allow_undefined_flag_CXX=unsupported
13448 always_export_symbols_CXX=no
13449 enable_shared_with_static_runtimes_CXX=yes
13450
13451 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13452 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'
13453 # If the export-symbols file already is a .def file, use it as
13454 # is; otherwise, prepend EXPORTS...
13455 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13456 cp $export_symbols $output_objdir/$soname.def;
13457 else
13458 echo EXPORTS > $output_objdir/$soname.def;
13459 cat $export_symbols >> $output_objdir/$soname.def;
13460 fi~
13461 $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'
13462 else
13463 ld_shlibs_CXX=no
13464 fi
13465 ;;
13466 esac
13467 ;;
13468 darwin* | rhapsody*)
13469
13470
13471 archive_cmds_need_lc_CXX=no
13472 hardcode_direct_CXX=no
13473 hardcode_automatic_CXX=yes
13474 hardcode_shlibpath_var_CXX=unsupported
13475 if test yes = "$lt_cv_ld_force_load"; then
13476 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\"`'
13477
13478 else
13479 whole_archive_flag_spec_CXX=''
13480 fi
13481 link_all_deplibs_CXX=yes
13482 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13483 case $cc_basename in
13484 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13485 *) _lt_dar_can_shared=$GCC ;;
13486 esac
13487 if test yes = "$_lt_dar_can_shared"; then
13488 output_verbose_link_cmd=func_echo_all
13489 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"
13490 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13491 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"
13492 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"
13493 if test yes != "$lt_cv_apple_cc_single_mod"; then
13494 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"
13495 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"
13496 fi
13497
13498 else
13499 ld_shlibs_CXX=no
13500 fi
13501
13502 ;;
13503
13504 os2*)
13505 hardcode_libdir_flag_spec_CXX='-L$libdir'
13506 hardcode_minus_L_CXX=yes
13507 allow_undefined_flag_CXX=unsupported
13508 shrext_cmds=.dll
13509 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13510 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13511 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13512 $ECHO EXPORTS >> $output_objdir/$libname.def~
13513 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13514 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13515 emximp -o $lib $output_objdir/$libname.def'
13516 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13517 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13518 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13519 $ECHO EXPORTS >> $output_objdir/$libname.def~
13520 prefix_cmds="$SED"~
13521 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13522 prefix_cmds="$prefix_cmds -e 1d";
13523 fi~
13524 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13525 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13526 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13527 emximp -o $lib $output_objdir/$libname.def'
13528 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13529 enable_shared_with_static_runtimes_CXX=yes
13530 ;;
13531
13532 dgux*)
13533 case $cc_basename in
13534 ec++*)
13535 # FIXME: insert proper C++ library support
13536 ld_shlibs_CXX=no
13537 ;;
13538 ghcx*)
13539 # Green Hills C++ Compiler
13540 # FIXME: insert proper C++ library support
13541 ld_shlibs_CXX=no
13542 ;;
13543 *)
13544 # FIXME: insert proper C++ library support
13545 ld_shlibs_CXX=no
13546 ;;
13547 esac
13548 ;;
13549
13550 freebsd2.*)
13551 # C++ shared libraries reported to be fairly broken before
13552 # switch to ELF
13553 ld_shlibs_CXX=no
13554 ;;
13555
13556 freebsd-elf*)
13557 archive_cmds_need_lc_CXX=no
13558 ;;
13559
13560 freebsd* | dragonfly*)
13561 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13562 # conventions
13563 ld_shlibs_CXX=yes
13564 ;;
13565
13566 haiku*)
13567 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13568 link_all_deplibs_CXX=yes
13569 ;;
13570
13571 hpux9*)
13572 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13573 hardcode_libdir_separator_CXX=:
13574 export_dynamic_flag_spec_CXX='$wl-E'
13575 hardcode_direct_CXX=yes
13576 hardcode_minus_L_CXX=yes # Not in the search PATH,
13577 # but as the default
13578 # location of the library.
13579
13580 case $cc_basename in
13581 CC*)
13582 # FIXME: insert proper C++ library support
13583 ld_shlibs_CXX=no
13584 ;;
13585 aCC*)
13586 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'
13587 # Commands to make compiler produce verbose output that lists
13588 # what "hidden" libraries, object files and flags are used when
13589 # linking a shared library.
13590 #
13591 # There doesn't appear to be a way to prevent this compiler from
13592 # explicitly linking system object files so we need to strip them
13593 # from the output so that they don't get included in the library
13594 # dependencies.
13595 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"'
13596 ;;
13597 *)
13598 if test yes = "$GXX"; then
13599 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'
13600 else
13601 # FIXME: insert proper C++ library support
13602 ld_shlibs_CXX=no
13603 fi
13604 ;;
13605 esac
13606 ;;
13607
13608 hpux10*|hpux11*)
13609 if test no = "$with_gnu_ld"; then
13610 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13611 hardcode_libdir_separator_CXX=:
13612
13613 case $host_cpu in
13614 hppa*64*|ia64*)
13615 ;;
13616 *)
13617 export_dynamic_flag_spec_CXX='$wl-E'
13618 ;;
13619 esac
13620 fi
13621 case $host_cpu in
13622 hppa*64*|ia64*)
13623 hardcode_direct_CXX=no
13624 hardcode_shlibpath_var_CXX=no
13625 ;;
13626 *)
13627 hardcode_direct_CXX=yes
13628 hardcode_direct_absolute_CXX=yes
13629 hardcode_minus_L_CXX=yes # Not in the search PATH,
13630 # but as the default
13631 # location of the library.
13632 ;;
13633 esac
13634
13635 case $cc_basename in
13636 CC*)
13637 # FIXME: insert proper C++ library support
13638 ld_shlibs_CXX=no
13639 ;;
13640 aCC*)
13641 case $host_cpu in
13642 hppa*64*)
13643 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13644 ;;
13645 ia64*)
13646 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647 ;;
13648 *)
13649 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650 ;;
13651 esac
13652 # Commands to make compiler produce verbose output that lists
13653 # what "hidden" libraries, object files and flags are used when
13654 # linking a shared library.
13655 #
13656 # There doesn't appear to be a way to prevent this compiler from
13657 # explicitly linking system object files so we need to strip them
13658 # from the output so that they don't get included in the library
13659 # dependencies.
13660 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"'
13661 ;;
13662 *)
13663 if test yes = "$GXX"; then
13664 if test no = "$with_gnu_ld"; then
13665 case $host_cpu in
13666 hppa*64*)
13667 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668 ;;
13669 ia64*)
13670 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671 ;;
13672 *)
13673 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'
13674 ;;
13675 esac
13676 fi
13677 else
13678 # FIXME: insert proper C++ library support
13679 ld_shlibs_CXX=no
13680 fi
13681 ;;
13682 esac
13683 ;;
13684
13685 interix[3-9]*)
13686 hardcode_direct_CXX=no
13687 hardcode_shlibpath_var_CXX=no
13688 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13689 export_dynamic_flag_spec_CXX='$wl-E'
13690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13691 # Instead, shared libraries are loaded at an image base (0x10000000 by
13692 # default) and relocated if they conflict, which is a slow very memory
13693 # consuming and fragmenting process. To avoid this, we pick a random,
13694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13696 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'
13697 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'
13698 ;;
13699 irix5* | irix6*)
13700 case $cc_basename in
13701 CC*)
13702 # SGI C++
13703 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'
13704
13705 # Archives containing C++ object files must be created using
13706 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13707 # necessary to make sure instantiated templates are included
13708 # in the archive.
13709 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13710 ;;
13711 *)
13712 if test yes = "$GXX"; then
13713 if test no = "$with_gnu_ld"; then
13714 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'
13715 else
13716 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'
13717 fi
13718 fi
13719 link_all_deplibs_CXX=yes
13720 ;;
13721 esac
13722 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13723 hardcode_libdir_separator_CXX=:
13724 inherit_rpath_CXX=yes
13725 ;;
13726
13727 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13728 case $cc_basename in
13729 KCC*)
13730 # Kuck and Associates, Inc. (KAI) C++ Compiler
13731
13732 # KCC will only create a shared library if the output file
13733 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13734 # to its proper name (with version) after linking.
13735 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'
13736 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'
13737 # Commands to make compiler produce verbose output that lists
13738 # what "hidden" libraries, object files and flags are used when
13739 # linking a shared library.
13740 #
13741 # There doesn't appear to be a way to prevent this compiler from
13742 # explicitly linking system object files so we need to strip them
13743 # from the output so that they don't get included in the library
13744 # dependencies.
13745 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"'
13746
13747 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13748 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13749
13750 # Archives containing C++ object files must be created using
13751 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13752 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13753 ;;
13754 icpc* | ecpc* )
13755 # Intel C++
13756 with_gnu_ld=yes
13757 # version 8.0 and above of icpc choke on multiply defined symbols
13758 # if we add $predep_objects and $postdep_objects, however 7.1 and
13759 # earlier do not add the objects themselves.
13760 case `$CC -V 2>&1` in
13761 *"Version 7."*)
13762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13763 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'
13764 ;;
13765 *) # Version 8.0 or newer
13766 tmp_idyn=
13767 case $host_cpu in
13768 ia64*) tmp_idyn=' -i_dynamic';;
13769 esac
13770 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13771 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'
13772 ;;
13773 esac
13774 archive_cmds_need_lc_CXX=no
13775 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13776 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13777 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13778 ;;
13779 pgCC* | pgcpp*)
13780 # Portland Group C++ compiler
13781 case `$CC -V` in
13782 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13783 prelink_cmds_CXX='tpldir=Template.dir~
13784 rm -rf $tpldir~
13785 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13786 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13787 old_archive_cmds_CXX='tpldir=Template.dir~
13788 rm -rf $tpldir~
13789 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13790 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13791 $RANLIB $oldlib'
13792 archive_cmds_CXX='tpldir=Template.dir~
13793 rm -rf $tpldir~
13794 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13795 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13796 archive_expsym_cmds_CXX='tpldir=Template.dir~
13797 rm -rf $tpldir~
13798 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13799 $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'
13800 ;;
13801 *) # Version 6 and above use weak symbols
13802 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13803 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'
13804 ;;
13805 esac
13806
13807 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13808 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13809 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'
13810 ;;
13811 cxx*)
13812 # Compaq C++
13813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13814 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'
13815
13816 runpath_var=LD_RUN_PATH
13817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13818 hardcode_libdir_separator_CXX=:
13819
13820 # Commands to make compiler produce verbose output that lists
13821 # what "hidden" libraries, object files and flags are used when
13822 # linking a shared library.
13823 #
13824 # There doesn't appear to be a way to prevent this compiler from
13825 # explicitly linking system object files so we need to strip them
13826 # from the output so that they don't get included in the library
13827 # dependencies.
13828 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'
13829 ;;
13830 xl* | mpixl* | bgxl*)
13831 # IBM XL 8.0 on PPC, with GNU ld
13832 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13833 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13834 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13835 if test yes = "$supports_anon_versioning"; then
13836 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13838 echo "local: *; };" >> $output_objdir/$libname.ver~
13839 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13840 fi
13841 ;;
13842 *)
13843 case `$CC -V 2>&1 | sed 5q` in
13844 *Sun\ C*)
13845 # Sun C++ 5.9
13846 no_undefined_flag_CXX=' -zdefs'
13847 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13848 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'
13849 hardcode_libdir_flag_spec_CXX='-R$libdir'
13850 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'
13851 compiler_needs_object_CXX=yes
13852
13853 # Not sure whether something based on
13854 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13855 # would be better.
13856 output_verbose_link_cmd='func_echo_all'
13857
13858 # Archives containing C++ object files must be created using
13859 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13860 # necessary to make sure instantiated templates are included
13861 # in the archive.
13862 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13863 ;;
13864 esac
13865 ;;
13866 esac
13867 ;;
13868
13869 lynxos*)
13870 # FIXME: insert proper C++ library support
13871 ld_shlibs_CXX=no
13872 ;;
13873
13874 m88k*)
13875 # FIXME: insert proper C++ library support
13876 ld_shlibs_CXX=no
13877 ;;
13878
13879 mvs*)
13880 case $cc_basename in
13881 cxx*)
13882 # FIXME: insert proper C++ library support
13883 ld_shlibs_CXX=no
13884 ;;
13885 *)
13886 # FIXME: insert proper C++ library support
13887 ld_shlibs_CXX=no
13888 ;;
13889 esac
13890 ;;
13891
13892 netbsd*)
13893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13894 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13895 wlarc=
13896 hardcode_libdir_flag_spec_CXX='-R$libdir'
13897 hardcode_direct_CXX=yes
13898 hardcode_shlibpath_var_CXX=no
13899 fi
13900 # Workaround some broken pre-1.5 toolchains
13901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13902 ;;
13903
13904 *nto* | *qnx*)
13905 ld_shlibs_CXX=yes
13906 ;;
13907
13908 openbsd* | bitrig*)
13909 if test -f /usr/libexec/ld.so; then
13910 hardcode_direct_CXX=yes
13911 hardcode_shlibpath_var_CXX=no
13912 hardcode_direct_absolute_CXX=yes
13913 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13914 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13915 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13916 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13917 export_dynamic_flag_spec_CXX='$wl-E'
13918 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13919 fi
13920 output_verbose_link_cmd=func_echo_all
13921 else
13922 ld_shlibs_CXX=no
13923 fi
13924 ;;
13925
13926 osf3* | osf4* | osf5*)
13927 case $cc_basename in
13928 KCC*)
13929 # Kuck and Associates, Inc. (KAI) C++ Compiler
13930
13931 # KCC will only create a shared library if the output file
13932 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13933 # to its proper name (with version) after linking.
13934 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'
13935
13936 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13937 hardcode_libdir_separator_CXX=:
13938
13939 # Archives containing C++ object files must be created using
13940 # the KAI C++ compiler.
13941 case $host in
13942 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13943 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13944 esac
13945 ;;
13946 RCC*)
13947 # Rational C++ 2.4.1
13948 # FIXME: insert proper C++ library support
13949 ld_shlibs_CXX=no
13950 ;;
13951 cxx*)
13952 case $host in
13953 osf3*)
13954 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13955 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'
13956 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13957 ;;
13958 *)
13959 allow_undefined_flag_CXX=' -expect_unresolved \*'
13960 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'
13961 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13962 echo "-hidden">> $lib.exp~
13963 $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~
13964 $RM $lib.exp'
13965 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13966 ;;
13967 esac
13968
13969 hardcode_libdir_separator_CXX=:
13970
13971 # Commands to make compiler produce verbose output that lists
13972 # what "hidden" libraries, object files and flags are used when
13973 # linking a shared library.
13974 #
13975 # There doesn't appear to be a way to prevent this compiler from
13976 # explicitly linking system object files so we need to strip them
13977 # from the output so that they don't get included in the library
13978 # dependencies.
13979 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"'
13980 ;;
13981 *)
13982 if test yes,no = "$GXX,$with_gnu_ld"; then
13983 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13984 case $host in
13985 osf3*)
13986 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'
13987 ;;
13988 *)
13989 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'
13990 ;;
13991 esac
13992
13993 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13994 hardcode_libdir_separator_CXX=:
13995
13996 # Commands to make compiler produce verbose output that lists
13997 # what "hidden" libraries, object files and flags are used when
13998 # linking a shared library.
13999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14000
14001 else
14002 # FIXME: insert proper C++ library support
14003 ld_shlibs_CXX=no
14004 fi
14005 ;;
14006 esac
14007 ;;
14008
14009 psos*)
14010 # FIXME: insert proper C++ library support
14011 ld_shlibs_CXX=no
14012 ;;
14013
14014 sunos4*)
14015 case $cc_basename in
14016 CC*)
14017 # Sun C++ 4.x
14018 # FIXME: insert proper C++ library support
14019 ld_shlibs_CXX=no
14020 ;;
14021 lcc*)
14022 # Lucid
14023 # FIXME: insert proper C++ library support
14024 ld_shlibs_CXX=no
14025 ;;
14026 *)
14027 # FIXME: insert proper C++ library support
14028 ld_shlibs_CXX=no
14029 ;;
14030 esac
14031 ;;
14032
14033 solaris*)
14034 case $cc_basename in
14035 CC* | sunCC*)
14036 # Sun C++ 4.2, 5.x and Centerline C++
14037 archive_cmds_need_lc_CXX=yes
14038 no_undefined_flag_CXX=' -zdefs'
14039 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14040 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14041 $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'
14042
14043 hardcode_libdir_flag_spec_CXX='-R$libdir'
14044 hardcode_shlibpath_var_CXX=no
14045 case $host_os in
14046 solaris2.[0-5] | solaris2.[0-5].*) ;;
14047 *)
14048 # The compiler driver will combine and reorder linker options,
14049 # but understands '-z linker_flag'.
14050 # Supported since Solaris 2.6 (maybe 2.5.1?)
14051 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14052 ;;
14053 esac
14054 link_all_deplibs_CXX=yes
14055
14056 output_verbose_link_cmd='func_echo_all'
14057
14058 # Archives containing C++ object files must be created using
14059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14060 # necessary to make sure instantiated templates are included
14061 # in the archive.
14062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14063 ;;
14064 gcx*)
14065 # Green Hills C++ Compiler
14066 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14067
14068 # The C++ compiler must be used to create the archive.
14069 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14070 ;;
14071 *)
14072 # GNU C++ compiler with Solaris linker
14073 if test yes,no = "$GXX,$with_gnu_ld"; then
14074 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14075 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14076 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14077 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14078 $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'
14079
14080 # Commands to make compiler produce verbose output that lists
14081 # what "hidden" libraries, object files and flags are used when
14082 # linking a shared library.
14083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14084 else
14085 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14086 # platform.
14087 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14088 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14089 $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'
14090
14091 # Commands to make compiler produce verbose output that lists
14092 # what "hidden" libraries, object files and flags are used when
14093 # linking a shared library.
14094 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14095 fi
14096
14097 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14098 case $host_os in
14099 solaris2.[0-5] | solaris2.[0-5].*) ;;
14100 *)
14101 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14102 ;;
14103 esac
14104 fi
14105 ;;
14106 esac
14107 ;;
14108
14109 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14110 no_undefined_flag_CXX='$wl-z,text'
14111 archive_cmds_need_lc_CXX=no
14112 hardcode_shlibpath_var_CXX=no
14113 runpath_var='LD_RUN_PATH'
14114
14115 case $cc_basename in
14116 CC*)
14117 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14118 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119 ;;
14120 *)
14121 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14122 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123 ;;
14124 esac
14125 ;;
14126
14127 sysv5* | sco3.2v5* | sco5v6*)
14128 # Note: We CANNOT use -z defs as we might desire, because we do not
14129 # link with -lc, and that would cause any symbols used from libc to
14130 # always be unresolved, which means just about no library would
14131 # ever link correctly. If we're not using GNU ld we use -z text
14132 # though, which does catch some bad symbols but isn't as heavy-handed
14133 # as -z defs.
14134 no_undefined_flag_CXX='$wl-z,text'
14135 allow_undefined_flag_CXX='$wl-z,nodefs'
14136 archive_cmds_need_lc_CXX=no
14137 hardcode_shlibpath_var_CXX=no
14138 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14139 hardcode_libdir_separator_CXX=':'
14140 link_all_deplibs_CXX=yes
14141 export_dynamic_flag_spec_CXX='$wl-Bexport'
14142 runpath_var='LD_RUN_PATH'
14143
14144 case $cc_basename in
14145 CC*)
14146 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14147 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14149 '"$old_archive_cmds_CXX"
14150 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14151 '"$reload_cmds_CXX"
14152 ;;
14153 *)
14154 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14155 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156 ;;
14157 esac
14158 ;;
14159
14160 tandem*)
14161 case $cc_basename in
14162 NCC*)
14163 # NonStop-UX NCC 3.20
14164 # FIXME: insert proper C++ library support
14165 ld_shlibs_CXX=no
14166 ;;
14167 *)
14168 # FIXME: insert proper C++ library support
14169 ld_shlibs_CXX=no
14170 ;;
14171 esac
14172 ;;
14173
14174 vxworks*)
14175 # FIXME: insert proper C++ library support
14176 ld_shlibs_CXX=no
14177 ;;
14178
14179 *)
14180 # FIXME: insert proper C++ library support
14181 ld_shlibs_CXX=no
14182 ;;
14183 esac
14184
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14186$as_echo "$ld_shlibs_CXX" >&6; }
14187 test no = "$ld_shlibs_CXX" && can_build_shared=no
14188
14189 GCC_CXX=$GXX
14190 LD_CXX=$LD
14191
14192 ## CAVEAT EMPTOR:
14193 ## There is no encapsulation within the following macros, do not change
14194 ## the running order or otherwise move them around unless you know exactly
14195 ## what you are doing...
14196 # Dependencies to place before and after the object being linked:
14197predep_objects_CXX=
14198postdep_objects_CXX=
14199predeps_CXX=
14200postdeps_CXX=
14201compiler_lib_search_path_CXX=
14202
14203cat > conftest.$ac_ext <<_LT_EOF
14204class Foo
14205{
14206public:
14207 Foo (void) { a = 0; }
14208private:
14209 int a;
14210};
14211_LT_EOF
14212
14213
14214_lt_libdeps_save_CFLAGS=$CFLAGS
14215case "$CC $CFLAGS " in #(
14216*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14217*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14218*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14219esac
14220
14221if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14222 (eval $ac_compile) 2>&5
14223 ac_status=$?
14224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }; then
14226 # Parse the compiler output and extract the necessary
14227 # objects, libraries and library flags.
14228
14229 # Sentinel used to keep track of whether or not we are before
14230 # the conftest object file.
14231 pre_test_object_deps_done=no
14232
14233 for p in `eval "$output_verbose_link_cmd"`; do
14234 case $prev$p in
14235
14236 -L* | -R* | -l*)
14237 # Some compilers place space between "-{L,R}" and the path.
14238 # Remove the space.
14239 if test x-L = "$p" ||
14240 test x-R = "$p"; then
14241 prev=$p
14242 continue
14243 fi
14244
14245 # Expand the sysroot to ease extracting the directories later.
14246 if test -z "$prev"; then
14247 case $p in
14248 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14249 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14250 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14251 esac
14252 fi
14253 case $p in
14254 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14255 esac
14256 if test no = "$pre_test_object_deps_done"; then
14257 case $prev in
14258 -L | -R)
14259 # Internal compiler library paths should come after those
14260 # provided the user. The postdeps already come after the
14261 # user supplied libs so there is no need to process them.
14262 if test -z "$compiler_lib_search_path_CXX"; then
14263 compiler_lib_search_path_CXX=$prev$p
14264 else
14265 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14266 fi
14267 ;;
14268 # The "-l" case would never come before the object being
14269 # linked, so don't bother handling this case.
14270 esac
14271 else
14272 if test -z "$postdeps_CXX"; then
14273 postdeps_CXX=$prev$p
14274 else
14275 postdeps_CXX="${postdeps_CXX} $prev$p"
14276 fi
14277 fi
14278 prev=
14279 ;;
14280
14281 *.lto.$objext) ;; # Ignore GCC LTO objects
14282 *.$objext)
14283 # This assumes that the test object file only shows up
14284 # once in the compiler output.
14285 if test "$p" = "conftest.$objext"; then
14286 pre_test_object_deps_done=yes
14287 continue
14288 fi
14289
14290 if test no = "$pre_test_object_deps_done"; then
14291 if test -z "$predep_objects_CXX"; then
14292 predep_objects_CXX=$p
14293 else
14294 predep_objects_CXX="$predep_objects_CXX $p"
14295 fi
14296 else
14297 if test -z "$postdep_objects_CXX"; then
14298 postdep_objects_CXX=$p
14299 else
14300 postdep_objects_CXX="$postdep_objects_CXX $p"
14301 fi
14302 fi
14303 ;;
14304
14305 *) ;; # Ignore the rest.
14306
14307 esac
14308 done
14309
14310 # Clean up.
14311 rm -f a.out a.exe
14312else
14313 echo "libtool.m4: error: problem compiling CXX test program"
14314fi
14315
14316$RM -f confest.$objext
14317CFLAGS=$_lt_libdeps_save_CFLAGS
14318
14319# PORTME: override above test on systems where it is broken
14320case $host_os in
14321interix[3-9]*)
14322 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14323 # hack all around it, let's just trust "g++" to DTRT.
14324 predep_objects_CXX=
14325 postdep_objects_CXX=
14326 postdeps_CXX=
14327 ;;
14328esac
14329
14330
14331case " $postdeps_CXX " in
14332*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14333esac
14334 compiler_lib_search_dirs_CXX=
14335if test -n "${compiler_lib_search_path_CXX}"; then
14336 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14337fi
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369 lt_prog_compiler_wl_CXX=
14370lt_prog_compiler_pic_CXX=
14371lt_prog_compiler_static_CXX=
14372
14373
14374 # C++ specific cases for pic, static, wl, etc.
14375 if test yes = "$GXX"; then
14376 lt_prog_compiler_wl_CXX='-Wl,'
14377 lt_prog_compiler_static_CXX='-static'
14378
14379 case $host_os in
14380 aix*)
14381 # All AIX code is PIC.
14382 if test ia64 = "$host_cpu"; then
14383 # AIX 5 now supports IA64 processor
14384 lt_prog_compiler_static_CXX='-Bstatic'
14385 fi
14386 lt_prog_compiler_pic_CXX='-fPIC'
14387 ;;
14388
14389 amigaos*)
14390 case $host_cpu in
14391 powerpc)
14392 # see comment about AmigaOS4 .so support
14393 lt_prog_compiler_pic_CXX='-fPIC'
14394 ;;
14395 m68k)
14396 # FIXME: we need at least 68020 code to build shared libraries, but
14397 # adding the '-m68020' flag to GCC prevents building anything better,
14398 # like '-m68040'.
14399 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14400 ;;
14401 esac
14402 ;;
14403
14404 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14405 # PIC is the default for these OSes.
14406 ;;
14407 mingw* | cygwin* | os2* | pw32* | cegcc*)
14408 # This hack is so that the source file can tell whether it is being
14409 # built for inclusion in a dll (and should export symbols for example).
14410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14411 # (--disable-auto-import) libraries
14412 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14413 case $host_os in
14414 os2*)
14415 lt_prog_compiler_static_CXX='$wl-static'
14416 ;;
14417 esac
14418 ;;
14419 darwin* | rhapsody*)
14420 # PIC is the default on this platform
14421 # Common symbols not allowed in MH_DYLIB files
14422 lt_prog_compiler_pic_CXX='-fno-common'
14423 ;;
14424 *djgpp*)
14425 # DJGPP does not support shared libraries at all
14426 lt_prog_compiler_pic_CXX=
14427 ;;
14428 haiku*)
14429 # PIC is the default for Haiku.
14430 # The "-static" flag exists, but is broken.
14431 lt_prog_compiler_static_CXX=
14432 ;;
14433 interix[3-9]*)
14434 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14435 # Instead, we relocate shared libraries at runtime.
14436 ;;
14437 sysv4*MP*)
14438 if test -d /usr/nec; then
14439 lt_prog_compiler_pic_CXX=-Kconform_pic
14440 fi
14441 ;;
14442 hpux*)
14443 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14444 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14445 # sets the default TLS model and affects inlining.
14446 case $host_cpu in
14447 hppa*64*)
14448 ;;
14449 *)
14450 lt_prog_compiler_pic_CXX='-fPIC'
14451 ;;
14452 esac
14453 ;;
14454 *qnx* | *nto*)
14455 # QNX uses GNU C++, but need to define -shared option too, otherwise
14456 # it will coredump.
14457 lt_prog_compiler_pic_CXX='-fPIC -shared'
14458 ;;
14459 *)
14460 lt_prog_compiler_pic_CXX='-fPIC'
14461 ;;
14462 esac
14463 else
14464 case $host_os in
14465 aix[4-9]*)
14466 # All AIX code is PIC.
14467 if test ia64 = "$host_cpu"; then
14468 # AIX 5 now supports IA64 processor
14469 lt_prog_compiler_static_CXX='-Bstatic'
14470 else
14471 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14472 fi
14473 ;;
14474 chorus*)
14475 case $cc_basename in
14476 cxch68*)
14477 # Green Hills C++ Compiler
14478 # _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"
14479 ;;
14480 esac
14481 ;;
14482 mingw* | cygwin* | os2* | pw32* | cegcc*)
14483 # This hack is so that the source file can tell whether it is being
14484 # built for inclusion in a dll (and should export symbols for example).
14485 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14486 ;;
14487 dgux*)
14488 case $cc_basename in
14489 ec++*)
14490 lt_prog_compiler_pic_CXX='-KPIC'
14491 ;;
14492 ghcx*)
14493 # Green Hills C++ Compiler
14494 lt_prog_compiler_pic_CXX='-pic'
14495 ;;
14496 *)
14497 ;;
14498 esac
14499 ;;
14500 freebsd* | dragonfly*)
14501 # FreeBSD uses GNU C++
14502 ;;
14503 hpux9* | hpux10* | hpux11*)
14504 case $cc_basename in
14505 CC*)
14506 lt_prog_compiler_wl_CXX='-Wl,'
14507 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14508 if test ia64 != "$host_cpu"; then
14509 lt_prog_compiler_pic_CXX='+Z'
14510 fi
14511 ;;
14512 aCC*)
14513 lt_prog_compiler_wl_CXX='-Wl,'
14514 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14515 case $host_cpu in
14516 hppa*64*|ia64*)
14517 # +Z the default
14518 ;;
14519 *)
14520 lt_prog_compiler_pic_CXX='+Z'
14521 ;;
14522 esac
14523 ;;
14524 *)
14525 ;;
14526 esac
14527 ;;
14528 interix*)
14529 # This is c89, which is MS Visual C++ (no shared libs)
14530 # Anyone wants to do a port?
14531 ;;
14532 irix5* | irix6* | nonstopux*)
14533 case $cc_basename in
14534 CC*)
14535 lt_prog_compiler_wl_CXX='-Wl,'
14536 lt_prog_compiler_static_CXX='-non_shared'
14537 # CC pic flag -KPIC is the default.
14538 ;;
14539 *)
14540 ;;
14541 esac
14542 ;;
14543 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14544 case $cc_basename in
14545 KCC*)
14546 # KAI C++ Compiler
14547 lt_prog_compiler_wl_CXX='--backend -Wl,'
14548 lt_prog_compiler_pic_CXX='-fPIC'
14549 ;;
14550 ecpc* )
14551 # old Intel C++ for x86_64, which still supported -KPIC.
14552 lt_prog_compiler_wl_CXX='-Wl,'
14553 lt_prog_compiler_pic_CXX='-KPIC'
14554 lt_prog_compiler_static_CXX='-static'
14555 ;;
14556 icpc* )
14557 # Intel C++, used to be incompatible with GCC.
14558 # ICC 10 doesn't accept -KPIC any more.
14559 lt_prog_compiler_wl_CXX='-Wl,'
14560 lt_prog_compiler_pic_CXX='-fPIC'
14561 lt_prog_compiler_static_CXX='-static'
14562 ;;
14563 pgCC* | pgcpp*)
14564 # Portland Group C++ compiler
14565 lt_prog_compiler_wl_CXX='-Wl,'
14566 lt_prog_compiler_pic_CXX='-fpic'
14567 lt_prog_compiler_static_CXX='-Bstatic'
14568 ;;
14569 cxx*)
14570 # Compaq C++
14571 # Make sure the PIC flag is empty. It appears that all Alpha
14572 # Linux and Compaq Tru64 Unix objects are PIC.
14573 lt_prog_compiler_pic_CXX=
14574 lt_prog_compiler_static_CXX='-non_shared'
14575 ;;
14576 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14577 # IBM XL 8.0, 9.0 on PPC and BlueGene
14578 lt_prog_compiler_wl_CXX='-Wl,'
14579 lt_prog_compiler_pic_CXX='-qpic'
14580 lt_prog_compiler_static_CXX='-qstaticlink'
14581 ;;
14582 *)
14583 case `$CC -V 2>&1 | sed 5q` in
14584 *Sun\ C*)
14585 # Sun C++ 5.9
14586 lt_prog_compiler_pic_CXX='-KPIC'
14587 lt_prog_compiler_static_CXX='-Bstatic'
14588 lt_prog_compiler_wl_CXX='-Qoption ld '
14589 ;;
14590 esac
14591 ;;
14592 esac
14593 ;;
14594 lynxos*)
14595 ;;
14596 m88k*)
14597 ;;
14598 mvs*)
14599 case $cc_basename in
14600 cxx*)
14601 lt_prog_compiler_pic_CXX='-W c,exportall'
14602 ;;
14603 *)
14604 ;;
14605 esac
14606 ;;
14607 netbsd* | netbsdelf*-gnu)
14608 ;;
14609 *qnx* | *nto*)
14610 # QNX uses GNU C++, but need to define -shared option too, otherwise
14611 # it will coredump.
14612 lt_prog_compiler_pic_CXX='-fPIC -shared'
14613 ;;
14614 osf3* | osf4* | osf5*)
14615 case $cc_basename in
14616 KCC*)
14617 lt_prog_compiler_wl_CXX='--backend -Wl,'
14618 ;;
14619 RCC*)
14620 # Rational C++ 2.4.1
14621 lt_prog_compiler_pic_CXX='-pic'
14622 ;;
14623 cxx*)
14624 # Digital/Compaq C++
14625 lt_prog_compiler_wl_CXX='-Wl,'
14626 # Make sure the PIC flag is empty. It appears that all Alpha
14627 # Linux and Compaq Tru64 Unix objects are PIC.
14628 lt_prog_compiler_pic_CXX=
14629 lt_prog_compiler_static_CXX='-non_shared'
14630 ;;
14631 *)
14632 ;;
14633 esac
14634 ;;
14635 psos*)
14636 ;;
14637 solaris*)
14638 case $cc_basename in
14639 CC* | sunCC*)
14640 # Sun C++ 4.2, 5.x and Centerline C++
14641 lt_prog_compiler_pic_CXX='-KPIC'
14642 lt_prog_compiler_static_CXX='-Bstatic'
14643 lt_prog_compiler_wl_CXX='-Qoption ld '
14644 ;;
14645 gcx*)
14646 # Green Hills C++ Compiler
14647 lt_prog_compiler_pic_CXX='-PIC'
14648 ;;
14649 *)
14650 ;;
14651 esac
14652 ;;
14653 sunos4*)
14654 case $cc_basename in
14655 CC*)
14656 # Sun C++ 4.x
14657 lt_prog_compiler_pic_CXX='-pic'
14658 lt_prog_compiler_static_CXX='-Bstatic'
14659 ;;
14660 lcc*)
14661 # Lucid
14662 lt_prog_compiler_pic_CXX='-pic'
14663 ;;
14664 *)
14665 ;;
14666 esac
14667 ;;
14668 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14669 case $cc_basename in
14670 CC*)
14671 lt_prog_compiler_wl_CXX='-Wl,'
14672 lt_prog_compiler_pic_CXX='-KPIC'
14673 lt_prog_compiler_static_CXX='-Bstatic'
14674 ;;
14675 esac
14676 ;;
14677 tandem*)
14678 case $cc_basename in
14679 NCC*)
14680 # NonStop-UX NCC 3.20
14681 lt_prog_compiler_pic_CXX='-KPIC'
14682 ;;
14683 *)
14684 ;;
14685 esac
14686 ;;
14687 vxworks*)
14688 ;;
14689 *)
14690 lt_prog_compiler_can_build_shared_CXX=no
14691 ;;
14692 esac
14693 fi
14694
14695case $host_os in
14696 # For platforms that do not support PIC, -DPIC is meaningless:
14697 *djgpp*)
14698 lt_prog_compiler_pic_CXX=
14699 ;;
14700 *)
14701 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14702 ;;
14703esac
14704
14705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14706$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14707if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14708 $as_echo_n "(cached) " >&6
14709else
14710 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14711fi
14712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14713$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14714lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14715
14716#
14717# Check to make sure the PIC flag actually works.
14718#
14719if test -n "$lt_prog_compiler_pic_CXX"; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14721$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14722if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14723 $as_echo_n "(cached) " >&6
14724else
14725 lt_cv_prog_compiler_pic_works_CXX=no
14726 ac_outfile=conftest.$ac_objext
14727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14728 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14729 # Insert the option either (1) after the last *FLAGS variable, or
14730 # (2) before a word containing "conftest.", or (3) at the end.
14731 # Note that $ac_compile itself does not contain backslashes and begins
14732 # with a dollar sign (not a hyphen), so the echo should work correctly.
14733 # The option is referenced via a variable to avoid confusing sed.
14734 lt_compile=`echo "$ac_compile" | $SED \
14735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14737 -e 's:$: $lt_compiler_flag:'`
14738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14739 (eval "$lt_compile" 2>conftest.err)
14740 ac_status=$?
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 if (exit $ac_status) && test -s "$ac_outfile"; then
14744 # The compiler can only warn and ignore the option if not recognized
14745 # So say no if there are warnings other than the usual output.
14746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14749 lt_cv_prog_compiler_pic_works_CXX=yes
14750 fi
14751 fi
14752 $RM conftest*
14753
14754fi
14755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14756$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14757
14758if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14759 case $lt_prog_compiler_pic_CXX in
14760 "" | " "*) ;;
14761 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14762 esac
14763else
14764 lt_prog_compiler_pic_CXX=
14765 lt_prog_compiler_can_build_shared_CXX=no
14766fi
14767
14768fi
14769
14770
14771
14772
14773
14774#
14775# Check to make sure the static flag actually works.
14776#
14777wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14779$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14780if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782else
14783 lt_cv_prog_compiler_static_works_CXX=no
14784 save_LDFLAGS=$LDFLAGS
14785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14786 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14788 # The linker can only warn and ignore the option if not recognized
14789 # So say no if there are warnings
14790 if test -s conftest.err; then
14791 # Append any errors to the config.log.
14792 cat conftest.err 1>&5
14793 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14795 if diff conftest.exp conftest.er2 >/dev/null; then
14796 lt_cv_prog_compiler_static_works_CXX=yes
14797 fi
14798 else
14799 lt_cv_prog_compiler_static_works_CXX=yes
14800 fi
14801 fi
14802 $RM -r conftest*
14803 LDFLAGS=$save_LDFLAGS
14804
14805fi
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14807$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14808
14809if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14810 :
14811else
14812 lt_prog_compiler_static_CXX=
14813fi
14814
14815
14816
14817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14819$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14820if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14821 $as_echo_n "(cached) " >&6
14822else
14823 lt_cv_prog_compiler_c_o_CXX=no
14824 $RM -r conftest 2>/dev/null
14825 mkdir conftest
14826 cd conftest
14827 mkdir out
14828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14829
14830 lt_compiler_flag="-o out/conftest2.$ac_objext"
14831 # Insert the option either (1) after the last *FLAGS variable, or
14832 # (2) before a word containing "conftest.", or (3) at the end.
14833 # Note that $ac_compile itself does not contain backslashes and begins
14834 # with a dollar sign (not a hyphen), so the echo should work correctly.
14835 lt_compile=`echo "$ac_compile" | $SED \
14836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14838 -e 's:$: $lt_compiler_flag:'`
14839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14840 (eval "$lt_compile" 2>out/conftest.err)
14841 ac_status=$?
14842 cat out/conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14845 then
14846 # The compiler can only warn and ignore the option if not recognized
14847 # So say no if there are warnings
14848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14851 lt_cv_prog_compiler_c_o_CXX=yes
14852 fi
14853 fi
14854 chmod u+w . 2>&5
14855 $RM conftest*
14856 # SGI C++ compiler will create directory out/ii_files/ for
14857 # template instantiation
14858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14859 $RM out/* && rmdir out
14860 cd ..
14861 $RM -r conftest
14862 $RM conftest*
14863
14864fi
14865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14866$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14867
14868
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14871$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14872if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874else
14875 lt_cv_prog_compiler_c_o_CXX=no
14876 $RM -r conftest 2>/dev/null
14877 mkdir conftest
14878 cd conftest
14879 mkdir out
14880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14881
14882 lt_compiler_flag="-o out/conftest2.$ac_objext"
14883 # Insert the option either (1) after the last *FLAGS variable, or
14884 # (2) before a word containing "conftest.", or (3) at the end.
14885 # Note that $ac_compile itself does not contain backslashes and begins
14886 # with a dollar sign (not a hyphen), so the echo should work correctly.
14887 lt_compile=`echo "$ac_compile" | $SED \
14888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14890 -e 's:$: $lt_compiler_flag:'`
14891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14892 (eval "$lt_compile" 2>out/conftest.err)
14893 ac_status=$?
14894 cat out/conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14897 then
14898 # The compiler can only warn and ignore the option if not recognized
14899 # So say no if there are warnings
14900 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14903 lt_cv_prog_compiler_c_o_CXX=yes
14904 fi
14905 fi
14906 chmod u+w . 2>&5
14907 $RM conftest*
14908 # SGI C++ compiler will create directory out/ii_files/ for
14909 # template instantiation
14910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14911 $RM out/* && rmdir out
14912 cd ..
14913 $RM -r conftest
14914 $RM conftest*
14915
14916fi
14917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14918$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14919
14920
14921
14922
14923hard_links=nottested
14924if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14925 # do not overwrite the value of need_locks provided by the user
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14927$as_echo_n "checking if we can lock with hard links... " >&6; }
14928 hard_links=yes
14929 $RM conftest*
14930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14931 touch conftest.a
14932 ln conftest.a conftest.b 2>&5 || hard_links=no
14933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14935$as_echo "$hard_links" >&6; }
14936 if test no = "$hard_links"; then
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14938$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14939 need_locks=warn
14940 fi
14941else
14942 need_locks=no
14943fi
14944
14945
14946
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14948$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14949
14950 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14951 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14952 case $host_os in
14953 aix[4-9]*)
14954 # If we're using GNU nm, then we don't want the "-C" option.
14955 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14956 # Without the "-l" option, or with the "-B" option, AIX nm treats
14957 # weak defined symbols like other global defined symbols, whereas
14958 # GNU nm marks them as "W".
14959 # While the 'weak' keyword is ignored in the Export File, we need
14960 # it in the Import File for the 'aix-soname' feature, so we have
14961 # to replace the "-B" option with "-P" for AIX nm.
14962 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14963 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'
14964 else
14965 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'
14966 fi
14967 ;;
14968 pw32*)
14969 export_symbols_cmds_CXX=$ltdll_cmds
14970 ;;
14971 cygwin* | mingw* | cegcc*)
14972 case $cc_basename in
14973 cl*)
14974 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14975 ;;
14976 *)
14977 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'
14978 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14979 ;;
14980 esac
14981 ;;
14982 linux* | k*bsd*-gnu | gnu*)
14983 link_all_deplibs_CXX=no
14984 ;;
14985 *)
14986 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14987 ;;
14988 esac
14989
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14991$as_echo "$ld_shlibs_CXX" >&6; }
14992test no = "$ld_shlibs_CXX" && can_build_shared=no
14993
14994with_gnu_ld_CXX=$with_gnu_ld
14995
14996
14997
14998
14999
15000
15001#
15002# Do we need to explicitly link libc?
15003#
15004case "x$archive_cmds_need_lc_CXX" in
15005x|xyes)
15006 # Assume -lc should be added
15007 archive_cmds_need_lc_CXX=yes
15008
15009 if test yes,yes = "$GCC,$enable_shared"; then
15010 case $archive_cmds_CXX in
15011 *'~'*)
15012 # FIXME: we may have to deal with multi-command sequences.
15013 ;;
15014 '$CC '*)
15015 # Test whether the compiler implicitly links with -lc since on some
15016 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15017 # to ld, don't add -lc before -lgcc.
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15019$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15020if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15021 $as_echo_n "(cached) " >&6
15022else
15023 $RM conftest*
15024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15025
15026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15027 (eval $ac_compile) 2>&5
15028 ac_status=$?
15029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030 test $ac_status = 0; } 2>conftest.err; then
15031 soname=conftest
15032 lib=conftest
15033 libobjs=conftest.$ac_objext
15034 deplibs=
15035 wl=$lt_prog_compiler_wl_CXX
15036 pic_flag=$lt_prog_compiler_pic_CXX
15037 compiler_flags=-v
15038 linker_flags=-v
15039 verstring=
15040 output_objdir=.
15041 libname=conftest
15042 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15043 allow_undefined_flag_CXX=
15044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15045 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15046 ac_status=$?
15047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15048 test $ac_status = 0; }
15049 then
15050 lt_cv_archive_cmds_need_lc_CXX=no
15051 else
15052 lt_cv_archive_cmds_need_lc_CXX=yes
15053 fi
15054 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15055 else
15056 cat conftest.err 1>&5
15057 fi
15058 $RM conftest*
15059
15060fi
15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15062$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15063 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15064 ;;
15065 esac
15066 fi
15067 ;;
15068esac
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15132$as_echo_n "checking dynamic linker characteristics... " >&6; }
15133
15134library_names_spec=
15135libname_spec='lib$name'
15136soname_spec=
15137shrext_cmds=.so
15138postinstall_cmds=
15139postuninstall_cmds=
15140finish_cmds=
15141finish_eval=
15142shlibpath_var=
15143shlibpath_overrides_runpath=unknown
15144version_type=none
15145dynamic_linker="$host_os ld.so"
15146sys_lib_dlsearch_path_spec="/lib /usr/lib"
15147need_lib_prefix=unknown
15148hardcode_into_libs=no
15149
15150# when you set need_version to no, make sure it does not cause -set_version
15151# flags to be left without arguments
15152need_version=unknown
15153
15154
15155
15156case $host_os in
15157aix3*)
15158 version_type=linux # correct to gnu/linux during the next big refactor
15159 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15160 shlibpath_var=LIBPATH
15161
15162 # AIX 3 has no versioning support, so we append a major version to the name.
15163 soname_spec='$libname$release$shared_ext$major'
15164 ;;
15165
15166aix[4-9]*)
15167 version_type=linux # correct to gnu/linux during the next big refactor
15168 need_lib_prefix=no
15169 need_version=no
15170 hardcode_into_libs=yes
15171 if test ia64 = "$host_cpu"; then
15172 # AIX 5 supports IA64
15173 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 else
15176 # With GCC up to 2.95.x, collect2 would create an import file
15177 # for dependence libraries. The import file would start with
15178 # the line '#! .'. This would cause the generated library to
15179 # depend on '.', always an invalid library. This was fixed in
15180 # development snapshots of GCC prior to 3.0.
15181 case $host_os in
15182 aix4 | aix4.[01] | aix4.[01].*)
15183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15184 echo ' yes '
15185 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15186 :
15187 else
15188 can_build_shared=no
15189 fi
15190 ;;
15191 esac
15192 # Using Import Files as archive members, it is possible to support
15193 # filename-based versioning of shared library archives on AIX. While
15194 # this would work for both with and without runtime linking, it will
15195 # prevent static linking of such archives. So we do filename-based
15196 # shared library versioning with .so extension only, which is used
15197 # when both runtime linking and shared linking is enabled.
15198 # Unfortunately, runtime linking may impact performance, so we do
15199 # not want this to be the default eventually. Also, we use the
15200 # versioned .so libs for executables only if there is the -brtl
15201 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15202 # To allow for filename-based versioning support, we need to create
15203 # libNAME.so.V as an archive file, containing:
15204 # *) an Import File, referring to the versioned filename of the
15205 # archive as well as the shared archive member, telling the
15206 # bitwidth (32 or 64) of that shared object, and providing the
15207 # list of exported symbols of that shared object, eventually
15208 # decorated with the 'weak' keyword
15209 # *) the shared object with the F_LOADONLY flag set, to really avoid
15210 # it being seen by the linker.
15211 # At run time we better use the real file rather than another symlink,
15212 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15213
15214 case $with_aix_soname,$aix_use_runtimelinking in
15215 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15216 # soname into executable. Probably we can add versioning support to
15217 # collect2, so additional links can be useful in future.
15218 aix,yes) # traditional libtool
15219 dynamic_linker='AIX unversionable lib.so'
15220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15221 # instead of lib<name>.a to let people know that these are not
15222 # typical AIX shared libraries.
15223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15224 ;;
15225 aix,no) # traditional AIX only
15226 dynamic_linker='AIX lib.a(lib.so.V)'
15227 # We preserve .a as extension for shared libraries through AIX4.2
15228 # and later when we are not doing run time linking.
15229 library_names_spec='$libname$release.a $libname.a'
15230 soname_spec='$libname$release$shared_ext$major'
15231 ;;
15232 svr4,*) # full svr4 only
15233 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15234 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15235 # We do not specify a path in Import Files, so LIBPATH fires.
15236 shlibpath_overrides_runpath=yes
15237 ;;
15238 *,yes) # both, prefer svr4
15239 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15240 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15241 # unpreferred sharedlib libNAME.a needs extra handling
15242 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"'
15243 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"'
15244 # We do not specify a path in Import Files, so LIBPATH fires.
15245 shlibpath_overrides_runpath=yes
15246 ;;
15247 *,no) # both, prefer aix
15248 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15249 library_names_spec='$libname$release.a $libname.a'
15250 soname_spec='$libname$release$shared_ext$major'
15251 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15252 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)'
15253 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"'
15254 ;;
15255 esac
15256 shlibpath_var=LIBPATH
15257 fi
15258 ;;
15259
15260amigaos*)
15261 case $host_cpu in
15262 powerpc)
15263 # Since July 2007 AmigaOS4 officially supports .so libraries.
15264 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15266 ;;
15267 m68k)
15268 library_names_spec='$libname.ixlibrary $libname.a'
15269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15270 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'
15271 ;;
15272 esac
15273 ;;
15274
15275beos*)
15276 library_names_spec='$libname$shared_ext'
15277 dynamic_linker="$host_os ld.so"
15278 shlibpath_var=LIBRARY_PATH
15279 ;;
15280
15281bsdi[45]*)
15282 version_type=linux # correct to gnu/linux during the next big refactor
15283 need_version=no
15284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15285 soname_spec='$libname$release$shared_ext$major'
15286 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15289 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15290 # the default ld.so.conf also contains /usr/contrib/lib and
15291 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15292 # libtool to hard-code these into programs
15293 ;;
15294
15295cygwin* | mingw* | pw32* | cegcc*)
15296 version_type=windows
15297 shrext_cmds=.dll
15298 need_version=no
15299 need_lib_prefix=no
15300
15301 case $GCC,$cc_basename in
15302 yes,*)
15303 # gcc
15304 library_names_spec='$libname.dll.a'
15305 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15306 postinstall_cmds='base_file=`basename \$file`~
15307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15308 dldir=$destdir/`dirname \$dlpath`~
15309 test -d \$dldir || mkdir -p \$dldir~
15310 $install_prog $dir/$dlname \$dldir/$dlname~
15311 chmod a+x \$dldir/$dlname~
15312 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15313 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15314 fi'
15315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15316 dlpath=$dir/\$dldll~
15317 $RM \$dlpath'
15318 shlibpath_overrides_runpath=yes
15319
15320 case $host_os in
15321 cygwin*)
15322 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15323 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15324
15325 ;;
15326 mingw* | cegcc*)
15327 # MinGW DLLs use traditional 'lib' prefix
15328 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15329 ;;
15330 pw32*)
15331 # pw32 DLLs use 'pw' prefix rather than 'lib'
15332 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15333 ;;
15334 esac
15335 dynamic_linker='Win32 ld.exe'
15336 ;;
15337
15338 *,cl*)
15339 # Native MSVC
15340 libname_spec='$name'
15341 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15342 library_names_spec='$libname.dll.lib'
15343
15344 case $build_os in
15345 mingw*)
15346 sys_lib_search_path_spec=
15347 lt_save_ifs=$IFS
15348 IFS=';'
15349 for lt_path in $LIB
15350 do
15351 IFS=$lt_save_ifs
15352 # Let DOS variable expansion print the short 8.3 style file name.
15353 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15354 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15355 done
15356 IFS=$lt_save_ifs
15357 # Convert to MSYS style.
15358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15359 ;;
15360 cygwin*)
15361 # Convert to unix form, then to dos form, then back to unix form
15362 # but this time dos style (no spaces!) so that the unix form looks
15363 # like /cygdrive/c/PROGRA~1:/cygdr...
15364 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15365 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15366 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15367 ;;
15368 *)
15369 sys_lib_search_path_spec=$LIB
15370 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15371 # It is most probably a Windows format PATH.
15372 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15373 else
15374 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15375 fi
15376 # FIXME: find the short name or the path components, as spaces are
15377 # common. (e.g. "Program Files" -> "PROGRA~1")
15378 ;;
15379 esac
15380
15381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15382 postinstall_cmds='base_file=`basename \$file`~
15383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15384 dldir=$destdir/`dirname \$dlpath`~
15385 test -d \$dldir || mkdir -p \$dldir~
15386 $install_prog $dir/$dlname \$dldir/$dlname'
15387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15388 dlpath=$dir/\$dldll~
15389 $RM \$dlpath'
15390 shlibpath_overrides_runpath=yes
15391 dynamic_linker='Win32 link.exe'
15392 ;;
15393
15394 *)
15395 # Assume MSVC wrapper
15396 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15397 dynamic_linker='Win32 ld.exe'
15398 ;;
15399 esac
15400 # FIXME: first we should search . and the directory the executable is in
15401 shlibpath_var=PATH
15402 ;;
15403
15404darwin* | rhapsody*)
15405 dynamic_linker="$host_os dyld"
15406 version_type=darwin
15407 need_lib_prefix=no
15408 need_version=no
15409 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15410 soname_spec='$libname$release$major$shared_ext'
15411 shlibpath_overrides_runpath=yes
15412 shlibpath_var=DYLD_LIBRARY_PATH
15413 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15414
15415 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15416 ;;
15417
15418dgux*)
15419 version_type=linux # correct to gnu/linux during the next big refactor
15420 need_lib_prefix=no
15421 need_version=no
15422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15423 soname_spec='$libname$release$shared_ext$major'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 ;;
15426
15427freebsd* | dragonfly*)
15428 # DragonFly does not have aout. When/if they implement a new
15429 # versioning mechanism, adjust this.
15430 if test -x /usr/bin/objformat; then
15431 objformat=`/usr/bin/objformat`
15432 else
15433 case $host_os in
15434 freebsd[23].*) objformat=aout ;;
15435 *) objformat=elf ;;
15436 esac
15437 fi
15438 version_type=freebsd-$objformat
15439 case $version_type in
15440 freebsd-elf*)
15441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15442 soname_spec='$libname$release$shared_ext$major'
15443 need_version=no
15444 need_lib_prefix=no
15445 ;;
15446 freebsd-*)
15447 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15448 need_version=yes
15449 ;;
15450 esac
15451 shlibpath_var=LD_LIBRARY_PATH
15452 case $host_os in
15453 freebsd2.*)
15454 shlibpath_overrides_runpath=yes
15455 ;;
15456 freebsd3.[01]* | freebsdelf3.[01]*)
15457 shlibpath_overrides_runpath=yes
15458 hardcode_into_libs=yes
15459 ;;
15460 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15461 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15462 shlibpath_overrides_runpath=no
15463 hardcode_into_libs=yes
15464 ;;
15465 *) # from 4.6 on, and DragonFly
15466 shlibpath_overrides_runpath=yes
15467 hardcode_into_libs=yes
15468 ;;
15469 esac
15470 ;;
15471
15472haiku*)
15473 version_type=linux # correct to gnu/linux during the next big refactor
15474 need_lib_prefix=no
15475 need_version=no
15476 dynamic_linker="$host_os runtime_loader"
15477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15478 soname_spec='$libname$release$shared_ext$major'
15479 shlibpath_var=LIBRARY_PATH
15480 shlibpath_overrides_runpath=no
15481 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15482 hardcode_into_libs=yes
15483 ;;
15484
15485hpux9* | hpux10* | hpux11*)
15486 # Give a soname corresponding to the major version so that dld.sl refuses to
15487 # link against other versions.
15488 version_type=sunos
15489 need_lib_prefix=no
15490 need_version=no
15491 case $host_cpu in
15492 ia64*)
15493 shrext_cmds='.so'
15494 hardcode_into_libs=yes
15495 dynamic_linker="$host_os dld.so"
15496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15499 soname_spec='$libname$release$shared_ext$major'
15500 if test 32 = "$HPUX_IA64_MODE"; then
15501 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15502 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15503 else
15504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15505 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15506 fi
15507 ;;
15508 hppa*64*)
15509 shrext_cmds='.sl'
15510 hardcode_into_libs=yes
15511 dynamic_linker="$host_os dld.sl"
15512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15515 soname_spec='$libname$release$shared_ext$major'
15516 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15518 ;;
15519 *)
15520 shrext_cmds='.sl'
15521 dynamic_linker="$host_os dld.sl"
15522 shlibpath_var=SHLIB_PATH
15523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15525 soname_spec='$libname$release$shared_ext$major'
15526 ;;
15527 esac
15528 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15529 postinstall_cmds='chmod 555 $lib'
15530 # or fails outright, so override atomically:
15531 install_override_mode=555
15532 ;;
15533
15534interix[3-9]*)
15535 version_type=linux # correct to gnu/linux during the next big refactor
15536 need_lib_prefix=no
15537 need_version=no
15538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15539 soname_spec='$libname$release$shared_ext$major'
15540 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15541 shlibpath_var=LD_LIBRARY_PATH
15542 shlibpath_overrides_runpath=no
15543 hardcode_into_libs=yes
15544 ;;
15545
15546irix5* | irix6* | nonstopux*)
15547 case $host_os in
15548 nonstopux*) version_type=nonstopux ;;
15549 *)
15550 if test yes = "$lt_cv_prog_gnu_ld"; then
15551 version_type=linux # correct to gnu/linux during the next big refactor
15552 else
15553 version_type=irix
15554 fi ;;
15555 esac
15556 need_lib_prefix=no
15557 need_version=no
15558 soname_spec='$libname$release$shared_ext$major'
15559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15560 case $host_os in
15561 irix5* | nonstopux*)
15562 libsuff= shlibsuff=
15563 ;;
15564 *)
15565 case $LD in # libtool.m4 will add one of these switches to LD
15566 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15567 libsuff= shlibsuff= libmagic=32-bit;;
15568 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15569 libsuff=32 shlibsuff=N32 libmagic=N32;;
15570 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15571 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15572 *) libsuff= shlibsuff= libmagic=never-match;;
15573 esac
15574 ;;
15575 esac
15576 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15577 shlibpath_overrides_runpath=no
15578 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15579 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15580 hardcode_into_libs=yes
15581 ;;
15582
15583# No shared lib support for Linux oldld, aout, or coff.
15584linux*oldld* | linux*aout* | linux*coff*)
15585 dynamic_linker=no
15586 ;;
15587
15588linux*android*)
15589 version_type=none # Android doesn't support versioned libraries.
15590 need_lib_prefix=no
15591 need_version=no
15592 library_names_spec='$libname$release$shared_ext'
15593 soname_spec='$libname$release$shared_ext'
15594 finish_cmds=
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15597
15598 # This implies no fast_install, which is unacceptable.
15599 # Some rework will be needed to allow for fast_install
15600 # before this can be enabled.
15601 hardcode_into_libs=yes
15602
15603 dynamic_linker='Android linker'
15604 # Don't embed -rpath directories since the linker doesn't support them.
15605 hardcode_libdir_flag_spec_CXX='-L$libdir'
15606 ;;
15607
15608# This must be glibc/ELF.
15609linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15610 version_type=linux # correct to gnu/linux during the next big refactor
15611 need_lib_prefix=no
15612 need_version=no
15613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15614 soname_spec='$libname$release$shared_ext$major'
15615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15616 shlibpath_var=LD_LIBRARY_PATH
15617 shlibpath_overrides_runpath=no
15618
15619 # Some binutils ld are patched to set DT_RUNPATH
15620 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15621 $as_echo_n "(cached) " >&6
15622else
15623 lt_cv_shlibpath_overrides_runpath=no
15624 save_LDFLAGS=$LDFLAGS
15625 save_libdir=$libdir
15626 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15627 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h. */
15630
15631int
15632main ()
15633{
15634
15635 ;
15636 return 0;
15637}
15638_ACEOF
15639if ac_fn_cxx_try_link "$LINENO"; then :
15640 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15641 lt_cv_shlibpath_overrides_runpath=yes
15642fi
15643fi
15644rm -f core conftest.err conftest.$ac_objext \
15645 conftest$ac_exeext conftest.$ac_ext
15646 LDFLAGS=$save_LDFLAGS
15647 libdir=$save_libdir
15648
15649fi
15650
15651 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15652
15653 # This implies no fast_install, which is unacceptable.
15654 # Some rework will be needed to allow for fast_install
15655 # before this can be enabled.
15656 hardcode_into_libs=yes
15657
15658 # Ideally, we could use ldconfig to report *all* directores which are
15659 # searched for libraries, however this is still not possible. Aside from not
15660 # being certain /sbin/ldconfig is available, command
15661 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15662 # even though it is searched at run-time. Try to do the best guess by
15663 # appending ld.so.conf contents (and includes) to the search path.
15664 if test -f /etc/ld.so.conf; then
15665 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' ' '`
15666 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15667 fi
15668
15669 # We used to test for /lib/ld.so.1 and disable shared libraries on
15670 # powerpc, because MkLinux only supported shared libraries with the
15671 # GNU dynamic linker. Since this was broken with cross compilers,
15672 # most powerpc-linux boxes support dynamic linking these days and
15673 # people can always --disable-shared, the test was removed, and we
15674 # assume the GNU/Linux dynamic linker is in use.
15675 dynamic_linker='GNU/Linux ld.so'
15676 ;;
15677
15678netbsdelf*-gnu)
15679 version_type=linux
15680 need_lib_prefix=no
15681 need_version=no
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=no
15686 hardcode_into_libs=yes
15687 dynamic_linker='NetBSD ld.elf_so'
15688 ;;
15689
15690netbsd*)
15691 version_type=sunos
15692 need_lib_prefix=no
15693 need_version=no
15694 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15697 dynamic_linker='NetBSD (a.out) ld.so'
15698 else
15699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15700 soname_spec='$libname$release$shared_ext$major'
15701 dynamic_linker='NetBSD ld.elf_so'
15702 fi
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes
15705 hardcode_into_libs=yes
15706 ;;
15707
15708newsos6)
15709 version_type=linux # correct to gnu/linux during the next big refactor
15710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15711 shlibpath_var=LD_LIBRARY_PATH
15712 shlibpath_overrides_runpath=yes
15713 ;;
15714
15715*nto* | *qnx*)
15716 version_type=qnx
15717 need_lib_prefix=no
15718 need_version=no
15719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15720 soname_spec='$libname$release$shared_ext$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath=no
15723 hardcode_into_libs=yes
15724 dynamic_linker='ldqnx.so'
15725 ;;
15726
15727openbsd* | bitrig*)
15728 version_type=sunos
15729 sys_lib_dlsearch_path_spec=/usr/lib
15730 need_lib_prefix=no
15731 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15732 need_version=no
15733 else
15734 need_version=yes
15735 fi
15736 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 shlibpath_overrides_runpath=yes
15740 ;;
15741
15742os2*)
15743 libname_spec='$name'
15744 version_type=windows
15745 shrext_cmds=.dll
15746 need_version=no
15747 need_lib_prefix=no
15748 # OS/2 can only load a DLL with a base name of 8 characters or less.
15749 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15750 v=$($ECHO $release$versuffix | tr -d .-);
15751 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15752 $ECHO $n$v`$shared_ext'
15753 library_names_spec='${libname}_dll.$libext'
15754 dynamic_linker='OS/2 ld.exe'
15755 shlibpath_var=BEGINLIBPATH
15756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15758 postinstall_cmds='base_file=`basename \$file`~
15759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15760 dldir=$destdir/`dirname \$dlpath`~
15761 test -d \$dldir || mkdir -p \$dldir~
15762 $install_prog $dir/$dlname \$dldir/$dlname~
15763 chmod a+x \$dldir/$dlname~
15764 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15765 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15766 fi'
15767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15768 dlpath=$dir/\$dldll~
15769 $RM \$dlpath'
15770 ;;
15771
15772osf3* | osf4* | osf5*)
15773 version_type=osf
15774 need_lib_prefix=no
15775 need_version=no
15776 soname_spec='$libname$release$shared_ext$major'
15777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15781 ;;
15782
15783rdos*)
15784 dynamic_linker=no
15785 ;;
15786
15787solaris*)
15788 version_type=linux # correct to gnu/linux during the next big refactor
15789 need_lib_prefix=no
15790 need_version=no
15791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15792 soname_spec='$libname$release$shared_ext$major'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 shlibpath_overrides_runpath=yes
15795 hardcode_into_libs=yes
15796 # ldd complains unless libraries are executable
15797 postinstall_cmds='chmod +x $lib'
15798 ;;
15799
15800sunos4*)
15801 version_type=sunos
15802 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15803 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15804 shlibpath_var=LD_LIBRARY_PATH
15805 shlibpath_overrides_runpath=yes
15806 if test yes = "$with_gnu_ld"; then
15807 need_lib_prefix=no
15808 fi
15809 need_version=yes
15810 ;;
15811
15812sysv4 | sysv4.3*)
15813 version_type=linux # correct to gnu/linux during the next big refactor
15814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15815 soname_spec='$libname$release$shared_ext$major'
15816 shlibpath_var=LD_LIBRARY_PATH
15817 case $host_vendor in
15818 sni)
15819 shlibpath_overrides_runpath=no
15820 need_lib_prefix=no
15821 runpath_var=LD_RUN_PATH
15822 ;;
15823 siemens)
15824 need_lib_prefix=no
15825 ;;
15826 motorola)
15827 need_lib_prefix=no
15828 need_version=no
15829 shlibpath_overrides_runpath=no
15830 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15831 ;;
15832 esac
15833 ;;
15834
15835sysv4*MP*)
15836 if test -d /usr/nec; then
15837 version_type=linux # correct to gnu/linux during the next big refactor
15838 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15839 soname_spec='$libname$shared_ext.$major'
15840 shlibpath_var=LD_LIBRARY_PATH
15841 fi
15842 ;;
15843
15844sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15845 version_type=sco
15846 need_lib_prefix=no
15847 need_version=no
15848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15849 soname_spec='$libname$release$shared_ext$major'
15850 shlibpath_var=LD_LIBRARY_PATH
15851 shlibpath_overrides_runpath=yes
15852 hardcode_into_libs=yes
15853 if test yes = "$with_gnu_ld"; then
15854 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15855 else
15856 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15857 case $host_os in
15858 sco3.2v5*)
15859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15860 ;;
15861 esac
15862 fi
15863 sys_lib_dlsearch_path_spec='/usr/lib'
15864 ;;
15865
15866tpf*)
15867 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15868 version_type=linux # correct to gnu/linux during the next big refactor
15869 need_lib_prefix=no
15870 need_version=no
15871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15872 shlibpath_var=LD_LIBRARY_PATH
15873 shlibpath_overrides_runpath=no
15874 hardcode_into_libs=yes
15875 ;;
15876
15877uts4*)
15878 version_type=linux # correct to gnu/linux during the next big refactor
15879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15880 soname_spec='$libname$release$shared_ext$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 ;;
15883
15884*)
15885 dynamic_linker=no
15886 ;;
15887esac
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15889$as_echo "$dynamic_linker" >&6; }
15890test no = "$dynamic_linker" && can_build_shared=no
15891
15892variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15893if test yes = "$GCC"; then
15894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15895fi
15896
15897if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15898 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15899fi
15900
15901if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15902 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15903fi
15904
15905# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15906configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15907
15908# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15909func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15910
15911# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15912configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15954$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15955hardcode_action_CXX=
15956if test -n "$hardcode_libdir_flag_spec_CXX" ||
15957 test -n "$runpath_var_CXX" ||
15958 test yes = "$hardcode_automatic_CXX"; then
15959
15960 # We can hardcode non-existent directories.
15961 if test no != "$hardcode_direct_CXX" &&
15962 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15963 # have to relink, otherwise we might link with an installed library
15964 # when we should be linking with a yet-to-be-installed one
15965 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15966 test no != "$hardcode_minus_L_CXX"; then
15967 # Linking always hardcodes the temporary library directory.
15968 hardcode_action_CXX=relink
15969 else
15970 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15971 hardcode_action_CXX=immediate
15972 fi
15973else
15974 # We cannot hardcode anything, or else we can only hardcode existing
15975 # directories.
15976 hardcode_action_CXX=unsupported
15977fi
15978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15979$as_echo "$hardcode_action_CXX" >&6; }
15980
15981if test relink = "$hardcode_action_CXX" ||
15982 test yes = "$inherit_rpath_CXX"; then
15983 # Fast installation is not supported
15984 enable_fast_install=no
15985elif test yes = "$shlibpath_overrides_runpath" ||
15986 test no = "$enable_shared"; then
15987 # Fast installation is not necessary
15988 enable_fast_install=needless
15989fi
15990
15991
15992
15993
15994
15995
15996
15997 fi # test -n "$compiler"
15998
15999 CC=$lt_save_CC
16000 CFLAGS=$lt_save_CFLAGS
16001 LDCXX=$LD
16002 LD=$lt_save_LD
16003 GCC=$lt_save_GCC
16004 with_gnu_ld=$lt_save_with_gnu_ld
16005 lt_cv_path_LDCXX=$lt_cv_path_LD
16006 lt_cv_path_LD=$lt_save_path_LD
16007 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16008 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16009fi # test yes != "$_lt_caught_CXX_error"
16010
16011ac_ext=c
16012ac_cpp='$CPP $CPPFLAGS'
16013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16015ac_compiler_gnu=$ac_cv_c_compiler_gnu
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031 ac_config_commands="$ac_config_commands libtool"
16032
16033
16034
16035
16036# Only expand once:
16037
16038
16039
16040
16041
16042ac_ext=c
16043ac_cpp='$CPP $CPPFLAGS'
16044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16046ac_compiler_gnu=$ac_cv_c_compiler_gnu
16047
16048ax_pthread_ok=no
16049
16050# We used to check for pthread.h first, but this fails if pthread.h
16051# requires special compiler flags (e.g. on True64 or Sequent).
16052# It gets checked for in the link test anyway.
16053
16054# First of all, check if the user has set any of the PTHREAD_LIBS,
16055# etcetera environment variables, and if threads linking works using
16056# them:
16057if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16058 save_CFLAGS="$CFLAGS"
16059 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16060 save_LIBS="$LIBS"
16061 LIBS="$PTHREAD_LIBS $LIBS"
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16063$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065/* end confdefs.h. */
16066
16067/* Override any GCC internal prototype to avoid an error.
16068 Use char because int might match the return type of a GCC
16069 builtin and then its argument prototype would still apply. */
16070#ifdef __cplusplus
16071extern "C"
16072#endif
16073char pthread_join ();
16074int
16075main ()
16076{
16077return pthread_join ();
16078 ;
16079 return 0;
16080}
16081_ACEOF
16082if ac_fn_c_try_link "$LINENO"; then :
16083 ax_pthread_ok=yes
16084fi
16085rm -f core conftest.err conftest.$ac_objext \
16086 conftest$ac_exeext conftest.$ac_ext
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16088$as_echo "$ax_pthread_ok" >&6; }
16089 if test x"$ax_pthread_ok" = xno; then
16090 PTHREAD_LIBS=""
16091 PTHREAD_CFLAGS=""
16092 fi
16093 LIBS="$save_LIBS"
16094 CFLAGS="$save_CFLAGS"
16095fi
16096
16097# We must check for the threads library under a number of different
16098# names; the ordering is very important because some systems
16099# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16100# libraries is broken (non-POSIX).
16101
16102# Create a list of thread flags to try. Items starting with a "-" are
16103# C compiler flags, and other items are library names, except for "none"
16104# which indicates that we try without any flags at all, and "pthread-config"
16105# which is a program returning the flags for the Pth emulation library.
16106
16107ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16108
16109# The ordering *is* (sometimes) important. Some notes on the
16110# individual items follow:
16111
16112# pthreads: AIX (must check this before -lpthread)
16113# none: in case threads are in libc; should be tried before -Kthread and
16114# other compiler flags to prevent continual compiler warnings
16115# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16116# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16117# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16118# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16119# -pthreads: Solaris/gcc
16120# -mthreads: Mingw32/gcc, Lynx/gcc
16121# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16122# doesn't hurt to check since this sometimes defines pthreads too;
16123# also defines -D_REENTRANT)
16124# ... -mt is also the pthreads flag for HP/aCC
16125# pthread: Linux, etcetera
16126# --thread-safe: KAI C++
16127# pthread-config: use pthread-config program (for GNU Pth library)
16128
16129case ${host_os} in
16130 solaris*)
16131
16132 # On Solaris (at least, for some versions), libc contains stubbed
16133 # (non-functional) versions of the pthreads routines, so link-based
16134 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16135 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16136 # a function called by this macro, so we could check for that, but
16137 # who knows whether they'll stub that too in a future libc.) So,
16138 # we'll just look for -pthreads and -lpthread first:
16139
16140 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16141 ;;
16142
16143 darwin*)
16144 ax_pthread_flags="-pthread $ax_pthread_flags"
16145 ;;
16146esac
16147
16148# Clang doesn't consider unrecognized options an error unless we specify
16149# -Werror. We throw in some extra Clang-specific options to ensure that
16150# this doesn't happen for GCC, which also accepts -Werror.
16151
16152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16153$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16154save_CFLAGS="$CFLAGS"
16155ax_pthread_extra_flags="-Werror"
16156CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158/* end confdefs.h. */
16159int foo(void);
16160int
16161main ()
16162{
16163foo()
16164 ;
16165 return 0;
16166}
16167_ACEOF
16168if ac_fn_c_try_compile "$LINENO"; then :
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16170$as_echo "yes" >&6; }
16171else
16172 ax_pthread_extra_flags=
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16174$as_echo "no" >&6; }
16175fi
16176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177CFLAGS="$save_CFLAGS"
16178
16179if test x"$ax_pthread_ok" = xno; then
16180for flag in $ax_pthread_flags; do
16181
16182 case $flag in
16183 none)
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16185$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16186 ;;
16187
16188 -*)
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16190$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16191 PTHREAD_CFLAGS="$flag"
16192 ;;
16193
16194 pthread-config)
16195 # Extract the first word of "pthread-config", so it can be a program name with args.
16196set dummy pthread-config; ac_word=$2
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16198$as_echo_n "checking for $ac_word... " >&6; }
16199if ${ac_cv_prog_ax_pthread_config+:} false; then :
16200 $as_echo_n "(cached) " >&6
16201else
16202 if test -n "$ax_pthread_config"; then
16203 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16204else
16205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16206for as_dir in $PATH
16207do
16208 IFS=$as_save_IFS
16209 test -z "$as_dir" && as_dir=.
16210 for ac_exec_ext in '' $ac_executable_extensions; do
16211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16212 ac_cv_prog_ax_pthread_config="yes"
16213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16214 break 2
16215 fi
16216done
16217 done
16218IFS=$as_save_IFS
16219
16220 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16221fi
16222fi
16223ax_pthread_config=$ac_cv_prog_ax_pthread_config
16224if test -n "$ax_pthread_config"; then
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16226$as_echo "$ax_pthread_config" >&6; }
16227else
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229$as_echo "no" >&6; }
16230fi
16231
16232
16233 if test x"$ax_pthread_config" = xno; then continue; fi
16234 PTHREAD_CFLAGS="`pthread-config --cflags`"
16235 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16236 ;;
16237
16238 *)
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16240$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16241 PTHREAD_LIBS="-l$flag"
16242 ;;
16243 esac
16244
16245 save_LIBS="$LIBS"
16246 save_CFLAGS="$CFLAGS"
16247 LIBS="$PTHREAD_LIBS $LIBS"
16248 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16249
16250 # Check for various functions. We must include pthread.h,
16251 # since some functions may be macros. (On the Sequent, we
16252 # need a special flag -Kthread to make this header compile.)
16253 # We check for pthread_join because it is in -lpthread on IRIX
16254 # while pthread_create is in libc. We check for pthread_attr_init
16255 # due to DEC craziness with -lpthreads. We check for
16256 # pthread_cleanup_push because it is one of the few pthread
16257 # functions on Solaris that doesn't have a non-functional libc stub.
16258 # We try pthread_create on general principles.
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260/* end confdefs.h. */
16261#include <pthread.h>
16262 static void routine(void *a) { a = 0; }
16263 static void *start_routine(void *a) { return a; }
16264int
16265main ()
16266{
16267pthread_t th; pthread_attr_t attr;
16268 pthread_create(&th, 0, start_routine, 0);
16269 pthread_join(th, 0);
16270 pthread_attr_init(&attr);
16271 pthread_cleanup_push(routine, 0);
16272 pthread_cleanup_pop(0) /* ; */
16273 ;
16274 return 0;
16275}
16276_ACEOF
16277if ac_fn_c_try_link "$LINENO"; then :
16278 ax_pthread_ok=yes
16279fi
16280rm -f core conftest.err conftest.$ac_objext \
16281 conftest$ac_exeext conftest.$ac_ext
16282
16283 LIBS="$save_LIBS"
16284 CFLAGS="$save_CFLAGS"
16285
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16287$as_echo "$ax_pthread_ok" >&6; }
16288 if test "x$ax_pthread_ok" = xyes; then
16289 break;
16290 fi
16291
16292 PTHREAD_LIBS=""
16293 PTHREAD_CFLAGS=""
16294done
16295fi
16296
16297# Various other checks:
16298if test "x$ax_pthread_ok" = xyes; then
16299 save_LIBS="$LIBS"
16300 LIBS="$PTHREAD_LIBS $LIBS"
16301 save_CFLAGS="$CFLAGS"
16302 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16303
16304 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16306$as_echo_n "checking for joinable pthread attribute... " >&6; }
16307 attr_name=unknown
16308 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310/* end confdefs.h. */
16311#include <pthread.h>
16312int
16313main ()
16314{
16315int attr = $attr; return attr /* ; */
16316 ;
16317 return 0;
16318}
16319_ACEOF
16320if ac_fn_c_try_link "$LINENO"; then :
16321 attr_name=$attr; break
16322fi
16323rm -f core conftest.err conftest.$ac_objext \
16324 conftest$ac_exeext conftest.$ac_ext
16325 done
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16327$as_echo "$attr_name" >&6; }
16328 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16329
16330cat >>confdefs.h <<_ACEOF
16331#define PTHREAD_CREATE_JOINABLE $attr_name
16332_ACEOF
16333
16334 fi
16335
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16337$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16338 flag=no
16339 case ${host_os} in
16340 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16341 osf* | hpux*) flag="-D_REENTRANT";;
16342 solaris*)
16343 if test "$GCC" = "yes"; then
16344 flag="-D_REENTRANT"
16345 else
16346 # TODO: What about Clang on Solaris?
16347 flag="-mt -D_REENTRANT"
16348 fi
16349 ;;
16350 esac
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16352$as_echo "$flag" >&6; }
16353 if test "x$flag" != xno; then
16354 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16355 fi
16356
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16358$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16359if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16360 $as_echo_n "(cached) " >&6
16361else
16362
16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364/* end confdefs.h. */
16365#include <pthread.h>
16366int
16367main ()
16368{
16369int i = PTHREAD_PRIO_INHERIT;
16370 ;
16371 return 0;
16372}
16373_ACEOF
16374if ac_fn_c_try_link "$LINENO"; then :
16375 ax_cv_PTHREAD_PRIO_INHERIT=yes
16376else
16377 ax_cv_PTHREAD_PRIO_INHERIT=no
16378fi
16379rm -f core conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
16381
16382fi
16383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16384$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16385 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16386
16387$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16388
16389fi
16390
16391 LIBS="$save_LIBS"
16392 CFLAGS="$save_CFLAGS"
16393
16394 # More AIX lossage: compile with *_r variant
16395 if test "x$GCC" != xyes; then
16396 case $host_os in
16397 aix*)
16398 case "x/$CC" in #(
16399 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16400 #handle absolute path differently from PATH based program lookup
16401 case "x$CC" in #(
16402 x/*) :
16403 if as_fn_executable_p ${CC}_r; then :
16404 PTHREAD_CC="${CC}_r"
16405fi ;; #(
16406 *) :
16407 for ac_prog in ${CC}_r
16408do
16409 # Extract the first word of "$ac_prog", so it can be a program name with args.
16410set dummy $ac_prog; ac_word=$2
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16412$as_echo_n "checking for $ac_word... " >&6; }
16413if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16414 $as_echo_n "(cached) " >&6
16415else
16416 if test -n "$PTHREAD_CC"; then
16417 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16418else
16419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16420for as_dir in $PATH
16421do
16422 IFS=$as_save_IFS
16423 test -z "$as_dir" && as_dir=.
16424 for ac_exec_ext in '' $ac_executable_extensions; do
16425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16426 ac_cv_prog_PTHREAD_CC="$ac_prog"
16427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16428 break 2
16429 fi
16430done
16431 done
16432IFS=$as_save_IFS
16433
16434fi
16435fi
16436PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16437if test -n "$PTHREAD_CC"; then
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16439$as_echo "$PTHREAD_CC" >&6; }
16440else
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442$as_echo "no" >&6; }
16443fi
16444
16445
16446 test -n "$PTHREAD_CC" && break
16447done
16448test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16449 ;;
16450esac ;; #(
16451 *) :
16452 ;;
16453esac
16454 ;;
16455 esac
16456 fi
16457fi
16458
16459test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16460
16461
16462
16463
16464
16465# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16466if test x"$ax_pthread_ok" = xyes; then
16467
16468$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16469
16470 :
16471else
16472 ax_pthread_ok=no
16473
16474fi
16475ac_ext=c
16476ac_cpp='$CPP $CPPFLAGS'
16477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16479ac_compiler_gnu=$ac_cv_c_compiler_gnu
16480
16481
16482
16483
16484
16485 # allow to override gcov location
16486
16487# Check whether --with-gcov was given.
16488if test "${with_gcov+set}" = set; then :
16489 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
16490else
16491 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
16492fi
16493
16494
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
16496$as_echo_n "checking whether to build with code coverage support... " >&6; }
16497 # Check whether --enable-code-coverage was given.
16498if test "${enable_code_coverage+set}" = set; then :
16499 enableval=$enable_code_coverage;
16500else
16501 enable_code_coverage=no
16502fi
16503
16504
16505 if test x$enable_code_coverage = xyes; then
16506 CODE_COVERAGE_ENABLED_TRUE=
16507 CODE_COVERAGE_ENABLED_FALSE='#'
16508else
16509 CODE_COVERAGE_ENABLED_TRUE='#'
16510 CODE_COVERAGE_ENABLED_FALSE=
16511fi
16512
16513 CODE_COVERAGE_ENABLED=$enable_code_coverage
16514
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
16516$as_echo "$enable_code_coverage" >&6; }
16517
16518 if test "$enable_code_coverage" = "yes" ; then :
16519
16520 # check for gcov
16521 if test -n "$ac_tool_prefix"; then
16522 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16523set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16525$as_echo_n "checking for $ac_word... " >&6; }
16526if ${ac_cv_prog_GCOV+:} false; then :
16527 $as_echo_n "(cached) " >&6
16528else
16529 if test -n "$GCOV"; then
16530 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
16531else
16532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16533for as_dir in $PATH
16534do
16535 IFS=$as_save_IFS
16536 test -z "$as_dir" && as_dir=.
16537 for ac_exec_ext in '' $ac_executable_extensions; do
16538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16539 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16541 break 2
16542 fi
16543done
16544 done
16545IFS=$as_save_IFS
16546
16547fi
16548fi
16549GCOV=$ac_cv_prog_GCOV
16550if test -n "$GCOV"; then
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
16552$as_echo "$GCOV" >&6; }
16553else
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16555$as_echo "no" >&6; }
16556fi
16557
16558
16559fi
16560if test -z "$ac_cv_prog_GCOV"; then
16561 ac_ct_GCOV=$GCOV
16562 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16563set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16565$as_echo_n "checking for $ac_word... " >&6; }
16566if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
16567 $as_echo_n "(cached) " >&6
16568else
16569 if test -n "$ac_ct_GCOV"; then
16570 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
16571else
16572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16573for as_dir in $PATH
16574do
16575 IFS=$as_save_IFS
16576 test -z "$as_dir" && as_dir=.
16577 for ac_exec_ext in '' $ac_executable_extensions; do
16578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16579 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16581 break 2
16582 fi
16583done
16584 done
16585IFS=$as_save_IFS
16586
16587fi
16588fi
16589ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
16590if test -n "$ac_ct_GCOV"; then
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
16592$as_echo "$ac_ct_GCOV" >&6; }
16593else
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595$as_echo "no" >&6; }
16596fi
16597
16598 if test "x$ac_ct_GCOV" = x; then
16599 GCOV=":"
16600 else
16601 case $cross_compiling:$ac_tool_warned in
16602yes:)
16603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16605ac_tool_warned=yes ;;
16606esac
16607 GCOV=$ac_ct_GCOV
16608 fi
16609else
16610 GCOV="$ac_cv_prog_GCOV"
16611fi
16612
16613 if test "X$GCOV" = "X:"; then :
16614 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
16615fi
16616
16617
16618 if test "$GCC" = "no" ; then :
16619
16620 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
16621
16622fi
16623
16624 # List of supported lcov versions.
16625 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
16626
16627 # Extract the first word of "lcov", so it can be a program name with args.
16628set dummy lcov; ac_word=$2
16629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16630$as_echo_n "checking for $ac_word... " >&6; }
16631if ${ac_cv_prog_LCOV+:} false; then :
16632 $as_echo_n "(cached) " >&6
16633else
16634 if test -n "$LCOV"; then
16635 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
16636else
16637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16638for as_dir in $PATH
16639do
16640 IFS=$as_save_IFS
16641 test -z "$as_dir" && as_dir=.
16642 for ac_exec_ext in '' $ac_executable_extensions; do
16643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16644 ac_cv_prog_LCOV="lcov"
16645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16646 break 2
16647 fi
16648done
16649 done
16650IFS=$as_save_IFS
16651
16652fi
16653fi
16654LCOV=$ac_cv_prog_LCOV
16655if test -n "$LCOV"; then
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
16657$as_echo "$LCOV" >&6; }
16658else
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16660$as_echo "no" >&6; }
16661fi
16662
16663
16664 # Extract the first word of "genhtml", so it can be a program name with args.
16665set dummy genhtml; ac_word=$2
16666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16667$as_echo_n "checking for $ac_word... " >&6; }
16668if ${ac_cv_prog_GENHTML+:} false; then :
16669 $as_echo_n "(cached) " >&6
16670else
16671 if test -n "$GENHTML"; then
16672 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
16673else
16674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16675for as_dir in $PATH
16676do
16677 IFS=$as_save_IFS
16678 test -z "$as_dir" && as_dir=.
16679 for ac_exec_ext in '' $ac_executable_extensions; do
16680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16681 ac_cv_prog_GENHTML="genhtml"
16682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16683 break 2
16684 fi
16685done
16686 done
16687IFS=$as_save_IFS
16688
16689fi
16690fi
16691GENHTML=$ac_cv_prog_GENHTML
16692if test -n "$GENHTML"; then
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
16694$as_echo "$GENHTML" >&6; }
16695else
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697$as_echo "no" >&6; }
16698fi
16699
16700
16701
16702 if test "$LCOV" ; then :
16703
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
16705$as_echo_n "checking for lcov version... " >&6; }
16706if ${ax_cv_lcov_version+:} false; then :
16707 $as_echo_n "(cached) " >&6
16708else
16709
16710 ax_cv_lcov_version=invalid
16711 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
16712 for lcov_check_version in $lcov_version_list; do
16713 if test "$lcov_version" = "$lcov_check_version"; then
16714 ax_cv_lcov_version="$lcov_check_version (ok)"
16715 fi
16716 done
16717
16718fi
16719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
16720$as_echo "$ax_cv_lcov_version" >&6; }
16721
16722else
16723
16724 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
16725 as_fn_error $? "$lcov_msg" "$LINENO" 5
16726
16727fi
16728
16729 case $ax_cv_lcov_version in
16730 ""|invalid)
16731 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
16732 as_fn_error $? "$lcov_msg" "$LINENO" 5
16733 LCOV="exit 0;"
16734 ;;
16735 esac
16736
16737 if test -z "$GENHTML" ; then :
16738
16739 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
16740
16741fi
16742
16743 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
16744 CODE_COVERAGE_LDFLAGS="-lgcov"
16745
16746
16747
16748
16749CODE_COVERAGE_RULES='
16750# Code coverage
16751#
16752# Optional:
16753# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
16754# (Default: $(top_builddir))
16755# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
16756# by lcov for code coverage. (Default:
16757# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
16758# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
16759# reports to be created. (Default:
16760# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
16761# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
16762# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
16763# (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16764# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
16765# (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16766# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
16767# instance. (Default: empty)
16768# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
16769#
16770# The generated report will be titled using the $(PACKAGE_NAME) and
16771# $(PACKAGE_VERSION). In order to add the current git hash to the title,
16772# use the git-version-gen script, available online.
16773
16774# Optional variables
16775CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
16776CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
16777CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
16778CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
16779CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16780CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16781CODE_COVERAGE_GENHTML_OPTIONS ?=
16782CODE_COVERAGE_IGNORE_PATTERN ?=
16783
16784code_coverage_quiet = $(code_coverage_quiet_$(V))
16785code_coverage_quiet_ =
16786code_coverage_quiet_0 = --quiet
16787
16788# Use recursive makes in order to ignore errors during check
16789check-code-coverage:
16790 -$(MAKE) $(AM_MAKEFLAGS) -k check
16791 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
16792
16793# Capture code coverage data
16794code-coverage-capture: code-coverage-capture-hook
16795 $(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)
16796 $(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)"
16797 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
16798 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)
16799 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
16800
16801# Hook rule executed before code-coverage-capture, overridable by the user
16802code-coverage-capture-hook:
16803
16804clean: code-coverage-clean
16805code-coverage-clean:
16806 -$(LCOV) --directory $(top_builddir) -z
16807 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16808 -find . -name "*.gcda" -o -name "*.gcov" -delete
16809
16810GITIGNOREFILES ?=
16811GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16812
16813DISTCHECK_CONFIGURE_FLAGS ?=
16814DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
16815
16816.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
16817'
16818
16819
16820fi
16821
16822
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user namespaces are supported" >&5
16825$as_echo_n "checking whether user namespaces are supported... " >&6; }
16826if ${ax_cv_user_namespace+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828else
16829
16830 ac_ext=c
16831ac_cpp='$CPP $CPPFLAGS'
16832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16834ac_compiler_gnu=$ac_cv_c_compiler_gnu
16835
16836 if test "$cross_compiling" = yes; then :
16837 ax_cv_user_namespace=no
16838else
16839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840/* end confdefs.h. */
16841
16842#define _GNU_SOURCE
16843#include <fcntl.h>
16844#include <sched.h>
16845#include <signal.h>
16846#include <stdio.h>
16847#include <string.h>
16848#include <sys/types.h>
16849#include <sys/wait.h>
16850
16851int userfn(void *d) {
16852 usleep(100000); /* synchronize by sleep */
16853 return (getuid() != 0);
16854}
16855char userst[1024*1024];
16856int main() {
16857 char buffer[1024];
16858 int rc, status, fd;
16859 pid_t child = clone(userfn, userst + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
16860 if (child < 0) return 1;
16861
16862 sprintf(buffer, "/proc/%d/uid_map", child);
16863 fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
16864 sprintf(buffer, "0 %d 1\n", getuid());
16865 write(fd, buffer, strlen(buffer));
16866 close(fd);
16867
16868 rc = waitpid(child, &status, 0);
16869 if (rc <= 0) return 1;
16870 if (!WIFEXITED(status)) return 1;
16871 return WEXITSTATUS(status);
16872}
16873
16874_ACEOF
16875if ac_fn_c_try_run "$LINENO"; then :
16876 ax_cv_user_namespace=yes
16877else
16878 ax_cv_user_namespace=no
16879fi
16880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16881 conftest.$ac_objext conftest.beam conftest.$ac_ext
16882fi
16883
16884 ac_ext=c
16885ac_cpp='$CPP $CPPFLAGS'
16886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16888ac_compiler_gnu=$ac_cv_c_compiler_gnu
16889
16890
16891fi
16892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_user_namespace" >&5
16893$as_echo "$ax_cv_user_namespace" >&6; }
16894 if test "$ax_cv_user_namespace" = yes; then
16895
16896$as_echo "#define HAVE_USER_NAMESPACE 1" >>confdefs.h
16897
16898 fi
16899
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UTS namespaces are supported" >&5
16901$as_echo_n "checking whether UTS namespaces are supported... " >&6; }
16902if ${ax_cv_uts_namespace+:} false; then :
16903 $as_echo_n "(cached) " >&6
16904else
16905
16906 ac_ext=c
16907ac_cpp='$CPP $CPPFLAGS'
16908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16910ac_compiler_gnu=$ac_cv_c_compiler_gnu
16911
16912 if test "$cross_compiling" = yes; then :
16913 ax_cv_uts_namespace=no
16914else
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916/* end confdefs.h. */
16917
16918#define _GNU_SOURCE
16919#include <sched.h>
16920#include <signal.h>
16921#include <stdio.h>
16922#include <string.h>
16923#include <fcntl.h>
16924#include <unistd.h>
16925#include <sys/types.h>
16926#include <sys/wait.h>
16927
16928int utsfn(void *d) {
16929 char buffer[1024];
16930 const char *name = "autoconftest";
16931 int rc = sethostname(name, strlen(name));
16932 if (rc != 0) return 1;
16933 gethostname(buffer, 1024);
16934 return (strcmp(buffer, name) != 0);
16935}
16936
16937char st2[1024*1024];
16938int fn(void *d) {
16939 pid_t child;
16940 int rc, status;
16941 usleep(100000); /* synchronize by sleep */
16942 if (getuid() != 0) return 1;
16943 child = clone(utsfn, st2 + 1024*1024, CLONE_NEWUTS|SIGCHLD, 0);
16944 if (child < 0) return 1;
16945 rc = waitpid(child, &status, 0);
16946 if (rc <= 0) return 1;
16947 if (!WIFEXITED(status)) return 1;
16948 return WEXITSTATUS(status);
16949}
16950char st[1024*1024];
16951int main() {
16952 char buffer[1024];
16953 int rc, status, fd;
16954 pid_t child = clone(fn, st + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
16955 if (child < 0) return 1;
16956
16957 sprintf(buffer, "/proc/%d/uid_map", child);
16958 fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
16959 sprintf(buffer, "0 %d 1\n", getuid());
16960 write(fd, buffer, strlen(buffer));
16961 close(fd);
16962
16963 rc = waitpid(child, &status, 0);
16964 if (rc <= 0) return 1;
16965 if (!WIFEXITED(status)) return 1;
16966 return WEXITSTATUS(status);
16967}
16968
16969
16970_ACEOF
16971if ac_fn_c_try_run "$LINENO"; then :
16972 ax_cv_uts_namespace=yes
16973else
16974 ax_cv_uts_namespace=no
16975fi
16976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16977 conftest.$ac_objext conftest.beam conftest.$ac_ext
16978fi
16979
16980 ac_ext=c
16981ac_cpp='$CPP $CPPFLAGS'
16982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16984ac_compiler_gnu=$ac_cv_c_compiler_gnu
16985
16986
16987fi
16988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uts_namespace" >&5
16989$as_echo "$ax_cv_uts_namespace" >&6; }
16990 if test "$ax_cv_uts_namespace" = yes; then
16991
16992$as_echo "#define HAVE_UTS_NAMESPACE 1" >>confdefs.h
16993
16994 fi
16995
16996
16997for ac_header in netdb.h netinet/tcp.h
16998do :
16999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17000ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17001if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17002 cat >>confdefs.h <<_ACEOF
17003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17004_ACEOF
17005
17006fi
17007
17008done
17009
17010ac_config_headers="$ac_config_headers config.h"
17011
17012ac_config_files="$ac_config_files Makefile"
17013
17014cat >confcache <<\_ACEOF
17015# This file is a shell script that caches the results of configure
17016# tests run on this system so they can be shared between configure
17017# scripts and configure runs, see configure's option --config-cache.
17018# It is not useful on other systems. If it contains results you don't
17019# want to keep, you may remove or edit it.
17020#
17021# config.status only pays attention to the cache file if you give it
17022# the --recheck option to rerun configure.
17023#
17024# `ac_cv_env_foo' variables (set or unset) will be overridden when
17025# loading this file, other *unset* `ac_cv_foo' will be assigned the
17026# following values.
17027
17028_ACEOF
17029
17030# The following way of writing the cache mishandles newlines in values,
17031# but we know of no workaround that is simple, portable, and efficient.
17032# So, we kill variables containing newlines.
17033# Ultrix sh set writes to stderr and can't be redirected directly,
17034# and sets the high bit in the cache file unless we assign to the vars.
17035(
17036 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17037 eval ac_val=\$$ac_var
17038 case $ac_val in #(
17039 *${as_nl}*)
17040 case $ac_var in #(
17041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17042$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17043 esac
17044 case $ac_var in #(
17045 _ | IFS | as_nl) ;; #(
17046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17047 *) { eval $ac_var=; unset $ac_var;} ;;
17048 esac ;;
17049 esac
17050 done
17051
17052 (set) 2>&1 |
17053 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17054 *${as_nl}ac_space=\ *)
17055 # `set' does not quote correctly, so add quotes: double-quote
17056 # substitution turns \\\\ into \\, and sed turns \\ into \.
17057 sed -n \
17058 "s/'/'\\\\''/g;
17059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17060 ;; #(
17061 *)
17062 # `set' quotes correctly as required by POSIX, so do not add quotes.
17063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17064 ;;
17065 esac |
17066 sort
17067) |
17068 sed '
17069 /^ac_cv_env_/b end
17070 t clear
17071 :clear
17072 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17073 t end
17074 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17075 :end' >>confcache
17076if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17077 if test -w "$cache_file"; then
17078 if test "x$cache_file" != "x/dev/null"; then
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17080$as_echo "$as_me: updating cache $cache_file" >&6;}
17081 if test ! -f "$cache_file" || test -h "$cache_file"; then
17082 cat confcache >"$cache_file"
17083 else
17084 case $cache_file in #(
17085 */* | ?:*)
17086 mv -f confcache "$cache_file"$$ &&
17087 mv -f "$cache_file"$$ "$cache_file" ;; #(
17088 *)
17089 mv -f confcache "$cache_file" ;;
17090 esac
17091 fi
17092 fi
17093 else
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17095$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17096 fi
17097fi
17098rm -f confcache
17099
17100test "x$prefix" = xNONE && prefix=$ac_default_prefix
17101# Let make expand exec_prefix.
17102test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17103
17104DEFS=-DHAVE_CONFIG_H
17105
17106ac_libobjs=
17107ac_ltlibobjs=
17108U=
17109for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17110 # 1. Remove the extension, and $U if already installed.
17111 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17112 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17113 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17114 # will be set to the directory where LIBOBJS objects are built.
17115 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17116 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17117done
17118LIBOBJS=$ac_libobjs
17119
17120LTLIBOBJS=$ac_ltlibobjs
17121
17122
17123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17124$as_echo_n "checking that generated files are newer than configure... " >&6; }
17125 if test -n "$am_sleep_pid"; then
17126 # Hide warnings about reused PIDs.
17127 wait $am_sleep_pid 2>/dev/null
17128 fi
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17130$as_echo "done" >&6; }
17131 if test -n "$EXEEXT"; then
17132 am__EXEEXT_TRUE=
17133 am__EXEEXT_FALSE='#'
17134else
17135 am__EXEEXT_TRUE='#'
17136 am__EXEEXT_FALSE=
17137fi
17138
17139if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17140 as_fn_error $? "conditional \"AMDEP\" was never defined.
17141Usually this means the macro was only invoked conditionally." "$LINENO" 5
17142fi
17143if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17144 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17145Usually this means the macro was only invoked conditionally." "$LINENO" 5
17146fi
17147if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17148 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17149Usually this means the macro was only invoked conditionally." "$LINENO" 5
17150fi
17151if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
17152 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
17153Usually this means the macro was only invoked conditionally." "$LINENO" 5
17154fi
17155
17156: "${CONFIG_STATUS=./config.status}"
17157ac_write_fail=0
17158ac_clean_files_save=$ac_clean_files
17159ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17160{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17161$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17162as_write_fail=0
17163cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17164#! $SHELL
17165# Generated by $as_me.
17166# Run this file to recreate the current configuration.
17167# Compiler output produced by configure, useful for debugging
17168# configure, is in config.log if it exists.
17169
17170debug=false
17171ac_cs_recheck=false
17172ac_cs_silent=false
17173
17174SHELL=\${CONFIG_SHELL-$SHELL}
17175export SHELL
17176_ASEOF
17177cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17178## -------------------- ##
17179## M4sh Initialization. ##
17180## -------------------- ##
17181
17182# Be more Bourne compatible
17183DUALCASE=1; export DUALCASE # for MKS sh
17184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17185 emulate sh
17186 NULLCMD=:
17187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17188 # is contrary to our usage. Disable this feature.
17189 alias -g '${1+"$@"}'='"$@"'
17190 setopt NO_GLOB_SUBST
17191else
17192 case `(set -o) 2>/dev/null` in #(
17193 *posix*) :
17194 set -o posix ;; #(
17195 *) :
17196 ;;
17197esac
17198fi
17199
17200
17201as_nl='
17202'
17203export as_nl
17204# Printing a long string crashes Solaris 7 /usr/bin/printf.
17205as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17206as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17207as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17208# Prefer a ksh shell builtin over an external printf program on Solaris,
17209# but without wasting forks for bash or zsh.
17210if test -z "$BASH_VERSION$ZSH_VERSION" \
17211 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17212 as_echo='print -r --'
17213 as_echo_n='print -rn --'
17214elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17215 as_echo='printf %s\n'
17216 as_echo_n='printf %s'
17217else
17218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17219 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17220 as_echo_n='/usr/ucb/echo -n'
17221 else
17222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17223 as_echo_n_body='eval
17224 arg=$1;
17225 case $arg in #(
17226 *"$as_nl"*)
17227 expr "X$arg" : "X\\(.*\\)$as_nl";
17228 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17229 esac;
17230 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17231 '
17232 export as_echo_n_body
17233 as_echo_n='sh -c $as_echo_n_body as_echo'
17234 fi
17235 export as_echo_body
17236 as_echo='sh -c $as_echo_body as_echo'
17237fi
17238
17239# The user is always right.
17240if test "${PATH_SEPARATOR+set}" != set; then
17241 PATH_SEPARATOR=:
17242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17244 PATH_SEPARATOR=';'
17245 }
17246fi
17247
17248
17249# IFS
17250# We need space, tab and new line, in precisely that order. Quoting is
17251# there to prevent editors from complaining about space-tab.
17252# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17253# splitting by setting IFS to empty value.)
17254IFS=" "" $as_nl"
17255
17256# Find who we are. Look in the path if we contain no directory separator.
17257as_myself=
17258case $0 in #((
17259 *[\\/]* ) as_myself=$0 ;;
17260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261for as_dir in $PATH
17262do
17263 IFS=$as_save_IFS
17264 test -z "$as_dir" && as_dir=.
17265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17266 done
17267IFS=$as_save_IFS
17268
17269 ;;
17270esac
17271# We did not find ourselves, most probably we were run as `sh COMMAND'
17272# in which case we are not to be found in the path.
17273if test "x$as_myself" = x; then
17274 as_myself=$0
17275fi
17276if test ! -f "$as_myself"; then
17277 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17278 exit 1
17279fi
17280
17281# Unset variables that we do not need and which cause bugs (e.g. in
17282# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17283# suppresses any "Segmentation fault" message there. '((' could
17284# trigger a bug in pdksh 5.2.14.
17285for as_var in BASH_ENV ENV MAIL MAILPATH
17286do eval test x\${$as_var+set} = xset \
17287 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17288done
17289PS1='$ '
17290PS2='> '
17291PS4='+ '
17292
17293# NLS nuisances.
17294LC_ALL=C
17295export LC_ALL
17296LANGUAGE=C
17297export LANGUAGE
17298
17299# CDPATH.
17300(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17301
17302
17303# as_fn_error STATUS ERROR [LINENO LOG_FD]
17304# ----------------------------------------
17305# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17306# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17307# script with STATUS, using 1 if that was 0.
17308as_fn_error ()
17309{
17310 as_status=$1; test $as_status -eq 0 && as_status=1
17311 if test "$4"; then
17312 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17313 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17314 fi
17315 $as_echo "$as_me: error: $2" >&2
17316 as_fn_exit $as_status
17317} # as_fn_error
17318
17319
17320# as_fn_set_status STATUS
17321# -----------------------
17322# Set $? to STATUS, without forking.
17323as_fn_set_status ()
17324{
17325 return $1
17326} # as_fn_set_status
17327
17328# as_fn_exit STATUS
17329# -----------------
17330# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17331as_fn_exit ()
17332{
17333 set +e
17334 as_fn_set_status $1
17335 exit $1
17336} # as_fn_exit
17337
17338# as_fn_unset VAR
17339# ---------------
17340# Portably unset VAR.
17341as_fn_unset ()
17342{
17343 { eval $1=; unset $1;}
17344}
17345as_unset=as_fn_unset
17346# as_fn_append VAR VALUE
17347# ----------------------
17348# Append the text in VALUE to the end of the definition contained in VAR. Take
17349# advantage of any shell optimizations that allow amortized linear growth over
17350# repeated appends, instead of the typical quadratic growth present in naive
17351# implementations.
17352if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17353 eval 'as_fn_append ()
17354 {
17355 eval $1+=\$2
17356 }'
17357else
17358 as_fn_append ()
17359 {
17360 eval $1=\$$1\$2
17361 }
17362fi # as_fn_append
17363
17364# as_fn_arith ARG...
17365# ------------------
17366# Perform arithmetic evaluation on the ARGs, and store the result in the
17367# global $as_val. Take advantage of shells that can avoid forks. The arguments
17368# must be portable across $(()) and expr.
17369if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17370 eval 'as_fn_arith ()
17371 {
17372 as_val=$(( $* ))
17373 }'
17374else
17375 as_fn_arith ()
17376 {
17377 as_val=`expr "$@" || test $? -eq 1`
17378 }
17379fi # as_fn_arith
17380
17381
17382if expr a : '\(a\)' >/dev/null 2>&1 &&
17383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17384 as_expr=expr
17385else
17386 as_expr=false
17387fi
17388
17389if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17390 as_basename=basename
17391else
17392 as_basename=false
17393fi
17394
17395if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17396 as_dirname=dirname
17397else
17398 as_dirname=false
17399fi
17400
17401as_me=`$as_basename -- "$0" ||
17402$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17403 X"$0" : 'X\(//\)$' \| \
17404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17405$as_echo X/"$0" |
17406 sed '/^.*\/\([^/][^/]*\)\/*$/{
17407 s//\1/
17408 q
17409 }
17410 /^X\/\(\/\/\)$/{
17411 s//\1/
17412 q
17413 }
17414 /^X\/\(\/\).*/{
17415 s//\1/
17416 q
17417 }
17418 s/.*/./; q'`
17419
17420# Avoid depending upon Character Ranges.
17421as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17422as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17423as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17424as_cr_digits='0123456789'
17425as_cr_alnum=$as_cr_Letters$as_cr_digits
17426
17427ECHO_C= ECHO_N= ECHO_T=
17428case `echo -n x` in #(((((
17429-n*)
17430 case `echo 'xy\c'` in
17431 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17432 xy) ECHO_C='\c';;
17433 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17434 ECHO_T=' ';;
17435 esac;;
17436*)
17437 ECHO_N='-n';;
17438esac
17439
17440rm -f conf$$ conf$$.exe conf$$.file
17441if test -d conf$$.dir; then
17442 rm -f conf$$.dir/conf$$.file
17443else
17444 rm -f conf$$.dir
17445 mkdir conf$$.dir 2>/dev/null
17446fi
17447if (echo >conf$$.file) 2>/dev/null; then
17448 if ln -s conf$$.file conf$$ 2>/dev/null; then
17449 as_ln_s='ln -s'
17450 # ... but there are two gotchas:
17451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17453 # In both cases, we have to default to `cp -pR'.
17454 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17455 as_ln_s='cp -pR'
17456 elif ln conf$$.file conf$$ 2>/dev/null; then
17457 as_ln_s=ln
17458 else
17459 as_ln_s='cp -pR'
17460 fi
17461else
17462 as_ln_s='cp -pR'
17463fi
17464rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17465rmdir conf$$.dir 2>/dev/null
17466
17467
17468# as_fn_mkdir_p
17469# -------------
17470# Create "$as_dir" as a directory, including parents if necessary.
17471as_fn_mkdir_p ()
17472{
17473
17474 case $as_dir in #(
17475 -*) as_dir=./$as_dir;;
17476 esac
17477 test -d "$as_dir" || eval $as_mkdir_p || {
17478 as_dirs=
17479 while :; do
17480 case $as_dir in #(
17481 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17482 *) as_qdir=$as_dir;;
17483 esac
17484 as_dirs="'$as_qdir' $as_dirs"
17485 as_dir=`$as_dirname -- "$as_dir" ||
17486$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17487 X"$as_dir" : 'X\(//\)[^/]' \| \
17488 X"$as_dir" : 'X\(//\)$' \| \
17489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17490$as_echo X"$as_dir" |
17491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17492 s//\1/
17493 q
17494 }
17495 /^X\(\/\/\)[^/].*/{
17496 s//\1/
17497 q
17498 }
17499 /^X\(\/\/\)$/{
17500 s//\1/
17501 q
17502 }
17503 /^X\(\/\).*/{
17504 s//\1/
17505 q
17506 }
17507 s/.*/./; q'`
17508 test -d "$as_dir" && break
17509 done
17510 test -z "$as_dirs" || eval "mkdir $as_dirs"
17511 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17512
17513
17514} # as_fn_mkdir_p
17515if mkdir -p . 2>/dev/null; then
17516 as_mkdir_p='mkdir -p "$as_dir"'
17517else
17518 test -d ./-p && rmdir ./-p
17519 as_mkdir_p=false
17520fi
17521
17522
17523# as_fn_executable_p FILE
17524# -----------------------
17525# Test if FILE is an executable regular file.
17526as_fn_executable_p ()
17527{
17528 test -f "$1" && test -x "$1"
17529} # as_fn_executable_p
17530as_test_x='test -x'
17531as_executable_p=as_fn_executable_p
17532
17533# Sed expression to map a string onto a valid CPP name.
17534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17535
17536# Sed expression to map a string onto a valid variable name.
17537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17538
17539
17540exec 6>&1
17541## ----------------------------------- ##
17542## Main body of $CONFIG_STATUS script. ##
17543## ----------------------------------- ##
17544_ASEOF
17545test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17546
17547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17548# Save the log message, to keep $0 and so on meaningful, and to
17549# report actual input values of CONFIG_FILES etc. instead of their
17550# values after options handling.
17551ac_log="
17552This file was extended by c-ares-test $as_me -, which was
17553generated by GNU Autoconf 2.69. Invocation command line was
17554
17555 CONFIG_FILES = $CONFIG_FILES
17556 CONFIG_HEADERS = $CONFIG_HEADERS
17557 CONFIG_LINKS = $CONFIG_LINKS
17558 CONFIG_COMMANDS = $CONFIG_COMMANDS
17559 $ $0 $@
17560
17561on `(hostname || uname -n) 2>/dev/null | sed 1q`
17562"
17563
17564_ACEOF
17565
17566case $ac_config_files in *"
17567"*) set x $ac_config_files; shift; ac_config_files=$*;;
17568esac
17569
17570case $ac_config_headers in *"
17571"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17572esac
17573
17574
17575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17576# Files that config.status was made for.
17577config_files="$ac_config_files"
17578config_headers="$ac_config_headers"
17579config_commands="$ac_config_commands"
17580
17581_ACEOF
17582
17583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17584ac_cs_usage="\
17585\`$as_me' instantiates files and other configuration actions
17586from templates according to the current configuration. Unless the files
17587and actions are specified as TAGs, all are instantiated by default.
17588
17589Usage: $0 [OPTION]... [TAG]...
17590
17591 -h, --help print this help, then exit
17592 -V, --version print version number and configuration settings, then exit
17593 --config print configuration, then exit
17594 -q, --quiet, --silent
17595 do not print progress messages
17596 -d, --debug don't remove temporary files
17597 --recheck update $as_me by reconfiguring in the same conditions
17598 --file=FILE[:TEMPLATE]
17599 instantiate the configuration file FILE
17600 --header=FILE[:TEMPLATE]
17601 instantiate the configuration header FILE
17602
17603Configuration files:
17604$config_files
17605
17606Configuration headers:
17607$config_headers
17608
17609Configuration commands:
17610$config_commands
17611
17612Report bugs to <->."
17613
17614_ACEOF
17615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17616ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17617ac_cs_version="\\
17618c-ares-test config.status -
17619configured by $0, generated by GNU Autoconf 2.69,
17620 with options \\"\$ac_cs_config\\"
17621
17622Copyright (C) 2012 Free Software Foundation, Inc.
17623This config.status script is free software; the Free Software Foundation
17624gives unlimited permission to copy, distribute and modify it."
17625
17626ac_pwd='$ac_pwd'
17627srcdir='$srcdir'
17628INSTALL='$INSTALL'
17629MKDIR_P='$MKDIR_P'
17630AWK='$AWK'
17631test -n "\$AWK" || AWK=awk
17632_ACEOF
17633
17634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17635# The default lists apply if the user does not specify any file.
17636ac_need_defaults=:
17637while test $# != 0
17638do
17639 case $1 in
17640 --*=?*)
17641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17643 ac_shift=:
17644 ;;
17645 --*=)
17646 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17647 ac_optarg=
17648 ac_shift=:
17649 ;;
17650 *)
17651 ac_option=$1
17652 ac_optarg=$2
17653 ac_shift=shift
17654 ;;
17655 esac
17656
17657 case $ac_option in
17658 # Handling of the options.
17659 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17660 ac_cs_recheck=: ;;
17661 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17662 $as_echo "$ac_cs_version"; exit ;;
17663 --config | --confi | --conf | --con | --co | --c )
17664 $as_echo "$ac_cs_config"; exit ;;
17665 --debug | --debu | --deb | --de | --d | -d )
17666 debug=: ;;
17667 --file | --fil | --fi | --f )
17668 $ac_shift
17669 case $ac_optarg in
17670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17671 '') as_fn_error $? "missing file argument" ;;
17672 esac
17673 as_fn_append CONFIG_FILES " '$ac_optarg'"
17674 ac_need_defaults=false;;
17675 --header | --heade | --head | --hea )
17676 $ac_shift
17677 case $ac_optarg in
17678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17679 esac
17680 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17681 ac_need_defaults=false;;
17682 --he | --h)
17683 # Conflict between --help and --header
17684 as_fn_error $? "ambiguous option: \`$1'
17685Try \`$0 --help' for more information.";;
17686 --help | --hel | -h )
17687 $as_echo "$ac_cs_usage"; exit ;;
17688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17690 ac_cs_silent=: ;;
17691
17692 # This is an error.
17693 -*) as_fn_error $? "unrecognized option: \`$1'
17694Try \`$0 --help' for more information." ;;
17695
17696 *) as_fn_append ac_config_targets " $1"
17697 ac_need_defaults=false ;;
17698
17699 esac
17700 shift
17701done
17702
17703ac_configure_extra_args=
17704
17705if $ac_cs_silent; then
17706 exec 6>/dev/null
17707 ac_configure_extra_args="$ac_configure_extra_args --silent"
17708fi
17709
17710_ACEOF
17711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17712if \$ac_cs_recheck; then
17713 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17714 shift
17715 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17716 CONFIG_SHELL='$SHELL'
17717 export CONFIG_SHELL
17718 exec "\$@"
17719fi
17720
17721_ACEOF
17722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17723exec 5>>config.log
17724{
17725 echo
17726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17727## Running $as_me. ##
17728_ASBOX
17729 $as_echo "$ac_log"
17730} >&5
17731
17732_ACEOF
17733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17734#
17735# INIT-COMMANDS
17736#
17737AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17738
17739
17740# The HP-UX ksh and POSIX shell print the target directory to stdout
17741# if CDPATH is set.
17742(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17743
17744sed_quote_subst='$sed_quote_subst'
17745double_quote_subst='$double_quote_subst'
17746delay_variable_subst='$delay_variable_subst'
17747macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17748macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17749enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17750enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17751pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17752enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17753shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17754SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17755ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17756PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17757host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17758host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17759host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17760build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17761build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17762build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17763SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17764Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17765GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17766EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17767FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17768LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17769NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17770LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17771max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17772ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17773exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17774lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17775lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17776lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17777lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17778lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17779reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17780reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17781OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17782deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17783file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17784file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17785want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17786DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17787sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17788AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17789AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17790archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17791STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17792RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17793old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17794old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17795old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17796lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17797CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17798CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17799compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17800GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17801lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17802lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17803lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17804lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17805lt_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"`'
17806lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17807nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17808lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17809lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17810objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17811MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17812lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17813lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17814lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17815lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17816lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17817need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17818MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17819DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17820NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17821LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17822OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17823OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17824libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17825shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17826extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17827archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17828enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17829export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17830whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17831compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17832old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17833old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17834archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17835archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17836module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17837module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17838with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17839allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17840no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17841hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17842hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17843hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17844hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17845hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17846hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17847hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17848inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17849link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17850always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17851export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17852exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17853include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17854prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17855postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17856file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17857variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17858need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17859need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17860version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17861runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17862shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17863shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17864libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17865library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17866soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17867install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17868postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17869postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17870finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17871finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17872hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17873sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17874configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17875configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17876hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17877enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17878enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17879enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17880old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17881striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17882compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17883predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17884postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17885predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17886postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17887compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17888LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17889reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17890reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17891old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17892compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17893GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17894lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17895lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17896lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17897lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17898lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17899archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17900enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17901export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17902whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17903compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17904old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17905old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17906archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17907archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17908module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17909module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17910with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17911allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17912no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17913hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17914hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17915hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17916hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17917hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17918hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17919hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17920inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17921link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17922always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17923export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17924exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17925include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17926prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17927postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17928file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17929hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17930compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17931predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17932postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17933predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17934postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17935compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17936
17937LTCC='$LTCC'
17938LTCFLAGS='$LTCFLAGS'
17939compiler='$compiler_DEFAULT'
17940
17941# A function that is used when there is no print builtin or printf.
17942func_fallback_echo ()
17943{
17944 eval 'cat <<_LTECHO_EOF
17945\$1
17946_LTECHO_EOF'
17947}
17948
17949# Quote evaled strings.
17950for var in SHELL \
17951ECHO \
17952PATH_SEPARATOR \
17953SED \
17954GREP \
17955EGREP \
17956FGREP \
17957LD \
17958NM \
17959LN_S \
17960lt_SP2NL \
17961lt_NL2SP \
17962reload_flag \
17963OBJDUMP \
17964deplibs_check_method \
17965file_magic_cmd \
17966file_magic_glob \
17967want_nocaseglob \
17968DLLTOOL \
17969sharedlib_from_linklib_cmd \
17970AR \
17971AR_FLAGS \
17972archiver_list_spec \
17973STRIP \
17974RANLIB \
17975CC \
17976CFLAGS \
17977compiler \
17978lt_cv_sys_global_symbol_pipe \
17979lt_cv_sys_global_symbol_to_cdecl \
17980lt_cv_sys_global_symbol_to_import \
17981lt_cv_sys_global_symbol_to_c_name_address \
17982lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17983lt_cv_nm_interface \
17984nm_file_list_spec \
17985lt_cv_truncate_bin \
17986lt_prog_compiler_no_builtin_flag \
17987lt_prog_compiler_pic \
17988lt_prog_compiler_wl \
17989lt_prog_compiler_static \
17990lt_cv_prog_compiler_c_o \
17991need_locks \
17992MANIFEST_TOOL \
17993DSYMUTIL \
17994NMEDIT \
17995LIPO \
17996OTOOL \
17997OTOOL64 \
17998shrext_cmds \
17999export_dynamic_flag_spec \
18000whole_archive_flag_spec \
18001compiler_needs_object \
18002with_gnu_ld \
18003allow_undefined_flag \
18004no_undefined_flag \
18005hardcode_libdir_flag_spec \
18006hardcode_libdir_separator \
18007exclude_expsyms \
18008include_expsyms \
18009file_list_spec \
18010variables_saved_for_relink \
18011libname_spec \
18012library_names_spec \
18013soname_spec \
18014install_override_mode \
18015finish_eval \
18016old_striplib \
18017striplib \
18018compiler_lib_search_dirs \
18019predep_objects \
18020postdep_objects \
18021predeps \
18022postdeps \
18023compiler_lib_search_path \
18024LD_CXX \
18025reload_flag_CXX \
18026compiler_CXX \
18027lt_prog_compiler_no_builtin_flag_CXX \
18028lt_prog_compiler_pic_CXX \
18029lt_prog_compiler_wl_CXX \
18030lt_prog_compiler_static_CXX \
18031lt_cv_prog_compiler_c_o_CXX \
18032export_dynamic_flag_spec_CXX \
18033whole_archive_flag_spec_CXX \
18034compiler_needs_object_CXX \
18035with_gnu_ld_CXX \
18036allow_undefined_flag_CXX \
18037no_undefined_flag_CXX \
18038hardcode_libdir_flag_spec_CXX \
18039hardcode_libdir_separator_CXX \
18040exclude_expsyms_CXX \
18041include_expsyms_CXX \
18042file_list_spec_CXX \
18043compiler_lib_search_dirs_CXX \
18044predep_objects_CXX \
18045postdep_objects_CXX \
18046predeps_CXX \
18047postdeps_CXX \
18048compiler_lib_search_path_CXX; do
18049 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18050 *[\\\\\\\`\\"\\\$]*)
18051 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18052 ;;
18053 *)
18054 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18055 ;;
18056 esac
18057done
18058
18059# Double-quote double-evaled strings.
18060for var in reload_cmds \
18061old_postinstall_cmds \
18062old_postuninstall_cmds \
18063old_archive_cmds \
18064extract_expsyms_cmds \
18065old_archive_from_new_cmds \
18066old_archive_from_expsyms_cmds \
18067archive_cmds \
18068archive_expsym_cmds \
18069module_cmds \
18070module_expsym_cmds \
18071export_symbols_cmds \
18072prelink_cmds \
18073postlink_cmds \
18074postinstall_cmds \
18075postuninstall_cmds \
18076finish_cmds \
18077sys_lib_search_path_spec \
18078configure_time_dlsearch_path \
18079configure_time_lt_sys_library_path \
18080reload_cmds_CXX \
18081old_archive_cmds_CXX \
18082old_archive_from_new_cmds_CXX \
18083old_archive_from_expsyms_cmds_CXX \
18084archive_cmds_CXX \
18085archive_expsym_cmds_CXX \
18086module_cmds_CXX \
18087module_expsym_cmds_CXX \
18088export_symbols_cmds_CXX \
18089prelink_cmds_CXX \
18090postlink_cmds_CXX; do
18091 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18092 *[\\\\\\\`\\"\\\$]*)
18093 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18094 ;;
18095 *)
18096 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18097 ;;
18098 esac
18099done
18100
18101ac_aux_dir='$ac_aux_dir'
18102
18103# See if we are running on zsh, and set the options that allow our
18104# commands through without removal of \ escapes INIT.
18105if test -n "\${ZSH_VERSION+set}"; then
18106 setopt NO_GLOB_SUBST
18107fi
18108
18109
18110 PACKAGE='$PACKAGE'
18111 VERSION='$VERSION'
18112 RM='$RM'
18113 ofile='$ofile'
18114
18115
18116
18117
18118
18119
18120_ACEOF
18121
18122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18123
18124# Handling of arguments.
18125for ac_config_target in $ac_config_targets
18126do
18127 case $ac_config_target in
18128 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18129 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18130 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18131 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18132
18133 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18134 esac
18135done
18136
18137
18138# If the user did not use the arguments to specify the items to instantiate,
18139# then the envvar interface is used. Set only those that are not.
18140# We use the long form for the default assignment because of an extremely
18141# bizarre bug on SunOS 4.1.3.
18142if $ac_need_defaults; then
18143 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18144 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18145 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18146fi
18147
18148# Have a temporary directory for convenience. Make it in the build tree
18149# simply because there is no reason against having it here, and in addition,
18150# creating and moving files from /tmp can sometimes cause problems.
18151# Hook for its removal unless debugging.
18152# Note that there is a small window in which the directory will not be cleaned:
18153# after its creation but before its name has been assigned to `$tmp'.
18154$debug ||
18155{
18156 tmp= ac_tmp=
18157 trap 'exit_status=$?
18158 : "${ac_tmp:=$tmp}"
18159 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18160' 0
18161 trap 'as_fn_exit 1' 1 2 13 15
18162}
18163# Create a (secure) tmp directory for tmp files.
18164
18165{
18166 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18167 test -d "$tmp"
18168} ||
18169{
18170 tmp=./conf$$-$RANDOM
18171 (umask 077 && mkdir "$tmp")
18172} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18173ac_tmp=$tmp
18174
18175# Set up the scripts for CONFIG_FILES section.
18176# No need to generate them if there are no CONFIG_FILES.
18177# This happens for instance with `./config.status config.h'.
18178if test -n "$CONFIG_FILES"; then
18179
18180
18181ac_cr=`echo X | tr X '\015'`
18182# On cygwin, bash can eat \r inside `` if the user requested igncr.
18183# But we know of no other shell where ac_cr would be empty at this
18184# point, so we can use a bashism as a fallback.
18185if test "x$ac_cr" = x; then
18186 eval ac_cr=\$\'\\r\'
18187fi
18188ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18189if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18190 ac_cs_awk_cr='\\r'
18191else
18192 ac_cs_awk_cr=$ac_cr
18193fi
18194
18195echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18196_ACEOF
18197
18198
18199{
18200 echo "cat >conf$$subs.awk <<_ACEOF" &&
18201 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18202 echo "_ACEOF"
18203} >conf$$subs.sh ||
18204 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18205ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18206ac_delim='%!_!# '
18207for ac_last_try in false false false false false :; do
18208 . ./conf$$subs.sh ||
18209 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18210
18211 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18212 if test $ac_delim_n = $ac_delim_num; then
18213 break
18214 elif $ac_last_try; then
18215 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18216 else
18217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18218 fi
18219done
18220rm -f conf$$subs.sh
18221
18222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18223cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18224_ACEOF
18225sed -n '
18226h
18227s/^/S["/; s/!.*/"]=/
18228p
18229g
18230s/^[^!]*!//
18231:repl
18232t repl
18233s/'"$ac_delim"'$//
18234t delim
18235:nl
18236h
18237s/\(.\{148\}\)..*/\1/
18238t more1
18239s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18240p
18241n
18242b repl
18243:more1
18244s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18245p
18246g
18247s/.\{148\}//
18248t nl
18249:delim
18250h
18251s/\(.\{148\}\)..*/\1/
18252t more2
18253s/["\\]/\\&/g; s/^/"/; s/$/"/
18254p
18255b
18256:more2
18257s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18258p
18259g
18260s/.\{148\}//
18261t delim
18262' <conf$$subs.awk | sed '
18263/^[^""]/{
18264 N
18265 s/\n//
18266}
18267' >>$CONFIG_STATUS || ac_write_fail=1
18268rm -f conf$$subs.awk
18269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18270_ACAWK
18271cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18272 for (key in S) S_is_set[key] = 1
18273 FS = ""
18274
18275}
18276{
18277 line = $ 0
18278 nfields = split(line, field, "@")
18279 substed = 0
18280 len = length(field[1])
18281 for (i = 2; i < nfields; i++) {
18282 key = field[i]
18283 keylen = length(key)
18284 if (S_is_set[key]) {
18285 value = S[key]
18286 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18287 len += length(value) + length(field[++i])
18288 substed = 1
18289 } else
18290 len += 1 + keylen
18291 }
18292
18293 print line
18294}
18295
18296_ACAWK
18297_ACEOF
18298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18299if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18300 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18301else
18302 cat
18303fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18304 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18305_ACEOF
18306
18307# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18308# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18309# trailing colons and then remove the whole line if VPATH becomes empty
18310# (actually we leave an empty line to preserve line numbers).
18311if test "x$srcdir" = x.; then
18312 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18313h
18314s///
18315s/^/:/
18316s/[ ]*$/:/
18317s/:\$(srcdir):/:/g
18318s/:\${srcdir}:/:/g
18319s/:@srcdir@:/:/g
18320s/^:*//
18321s/:*$//
18322x
18323s/\(=[ ]*\).*/\1/
18324G
18325s/\n//
18326s/^[^=]*=[ ]*$//
18327}'
18328fi
18329
18330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18331fi # test -n "$CONFIG_FILES"
18332
18333# Set up the scripts for CONFIG_HEADERS section.
18334# No need to generate them if there are no CONFIG_HEADERS.
18335# This happens for instance with `./config.status Makefile'.
18336if test -n "$CONFIG_HEADERS"; then
18337cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18338BEGIN {
18339_ACEOF
18340
18341# Transform confdefs.h into an awk script `defines.awk', embedded as
18342# here-document in config.status, that substitutes the proper values into
18343# config.h.in to produce config.h.
18344
18345# Create a delimiter string that does not exist in confdefs.h, to ease
18346# handling of long lines.
18347ac_delim='%!_!# '
18348for ac_last_try in false false :; do
18349 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18350 if test -z "$ac_tt"; then
18351 break
18352 elif $ac_last_try; then
18353 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18354 else
18355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18356 fi
18357done
18358
18359# For the awk script, D is an array of macro values keyed by name,
18360# likewise P contains macro parameters if any. Preserve backslash
18361# newline sequences.
18362
18363ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18364sed -n '
18365s/.\{148\}/&'"$ac_delim"'/g
18366t rset
18367:rset
18368s/^[ ]*#[ ]*define[ ][ ]*/ /
18369t def
18370d
18371:def
18372s/\\$//
18373t bsnl
18374s/["\\]/\\&/g
18375s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18376D["\1"]=" \3"/p
18377s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18378d
18379:bsnl
18380s/["\\]/\\&/g
18381s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18382D["\1"]=" \3\\\\\\n"\\/p
18383t cont
18384s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18385t cont
18386d
18387:cont
18388n
18389s/.\{148\}/&'"$ac_delim"'/g
18390t clear
18391:clear
18392s/\\$//
18393t bsnlc
18394s/["\\]/\\&/g; s/^/"/; s/$/"/p
18395d
18396:bsnlc
18397s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18398b cont
18399' <confdefs.h | sed '
18400s/'"$ac_delim"'/"\\\
18401"/g' >>$CONFIG_STATUS || ac_write_fail=1
18402
18403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18404 for (key in D) D_is_set[key] = 1
18405 FS = ""
18406}
18407/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18408 line = \$ 0
18409 split(line, arg, " ")
18410 if (arg[1] == "#") {
18411 defundef = arg[2]
18412 mac1 = arg[3]
18413 } else {
18414 defundef = substr(arg[1], 2)
18415 mac1 = arg[2]
18416 }
18417 split(mac1, mac2, "(") #)
18418 macro = mac2[1]
18419 prefix = substr(line, 1, index(line, defundef) - 1)
18420 if (D_is_set[macro]) {
18421 # Preserve the white space surrounding the "#".
18422 print prefix "define", macro P[macro] D[macro]
18423 next
18424 } else {
18425 # Replace #undef with comments. This is necessary, for example,
18426 # in the case of _POSIX_SOURCE, which is predefined and required
18427 # on some systems where configure will not decide to define it.
18428 if (defundef == "undef") {
18429 print "/*", prefix defundef, macro, "*/"
18430 next
18431 }
18432 }
18433}
18434{ print }
18435_ACAWK
18436_ACEOF
18437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18438 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18439fi # test -n "$CONFIG_HEADERS"
18440
18441
18442eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18443shift
18444for ac_tag
18445do
18446 case $ac_tag in
18447 :[FHLC]) ac_mode=$ac_tag; continue;;
18448 esac
18449 case $ac_mode$ac_tag in
18450 :[FHL]*:*);;
18451 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18452 :[FH]-) ac_tag=-:-;;
18453 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18454 esac
18455 ac_save_IFS=$IFS
18456 IFS=:
18457 set x $ac_tag
18458 IFS=$ac_save_IFS
18459 shift
18460 ac_file=$1
18461 shift
18462
18463 case $ac_mode in
18464 :L) ac_source=$1;;
18465 :[FH])
18466 ac_file_inputs=
18467 for ac_f
18468 do
18469 case $ac_f in
18470 -) ac_f="$ac_tmp/stdin";;
18471 *) # Look for the file first in the build tree, then in the source tree
18472 # (if the path is not absolute). The absolute path cannot be DOS-style,
18473 # because $ac_f cannot contain `:'.
18474 test -f "$ac_f" ||
18475 case $ac_f in
18476 [\\/$]*) false;;
18477 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18478 esac ||
18479 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18480 esac
18481 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18482 as_fn_append ac_file_inputs " '$ac_f'"
18483 done
18484
18485 # Let's still pretend it is `configure' which instantiates (i.e., don't
18486 # use $as_me), people would be surprised to read:
18487 # /* config.h. Generated by config.status. */
18488 configure_input='Generated from '`
18489 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18490 `' by configure.'
18491 if test x"$ac_file" != x-; then
18492 configure_input="$ac_file. $configure_input"
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18494$as_echo "$as_me: creating $ac_file" >&6;}
18495 fi
18496 # Neutralize special characters interpreted by sed in replacement strings.
18497 case $configure_input in #(
18498 *\&* | *\|* | *\\* )
18499 ac_sed_conf_input=`$as_echo "$configure_input" |
18500 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18501 *) ac_sed_conf_input=$configure_input;;
18502 esac
18503
18504 case $ac_tag in
18505 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18507 esac
18508 ;;
18509 esac
18510
18511 ac_dir=`$as_dirname -- "$ac_file" ||
18512$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18513 X"$ac_file" : 'X\(//\)[^/]' \| \
18514 X"$ac_file" : 'X\(//\)$' \| \
18515 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18516$as_echo X"$ac_file" |
18517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18518 s//\1/
18519 q
18520 }
18521 /^X\(\/\/\)[^/].*/{
18522 s//\1/
18523 q
18524 }
18525 /^X\(\/\/\)$/{
18526 s//\1/
18527 q
18528 }
18529 /^X\(\/\).*/{
18530 s//\1/
18531 q
18532 }
18533 s/.*/./; q'`
18534 as_dir="$ac_dir"; as_fn_mkdir_p
18535 ac_builddir=.
18536
18537case "$ac_dir" in
18538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18539*)
18540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18541 # A ".." for each directory in $ac_dir_suffix.
18542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18543 case $ac_top_builddir_sub in
18544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18546 esac ;;
18547esac
18548ac_abs_top_builddir=$ac_pwd
18549ac_abs_builddir=$ac_pwd$ac_dir_suffix
18550# for backward compatibility:
18551ac_top_builddir=$ac_top_build_prefix
18552
18553case $srcdir in
18554 .) # We are building in place.
18555 ac_srcdir=.
18556 ac_top_srcdir=$ac_top_builddir_sub
18557 ac_abs_top_srcdir=$ac_pwd ;;
18558 [\\/]* | ?:[\\/]* ) # Absolute name.
18559 ac_srcdir=$srcdir$ac_dir_suffix;
18560 ac_top_srcdir=$srcdir
18561 ac_abs_top_srcdir=$srcdir ;;
18562 *) # Relative name.
18563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18564 ac_top_srcdir=$ac_top_build_prefix$srcdir
18565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18566esac
18567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18568
18569
18570 case $ac_mode in
18571 :F)
18572 #
18573 # CONFIG_FILE
18574 #
18575
18576 case $INSTALL in
18577 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18578 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18579 esac
18580 ac_MKDIR_P=$MKDIR_P
18581 case $MKDIR_P in
18582 [\\/$]* | ?:[\\/]* ) ;;
18583 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18584 esac
18585_ACEOF
18586
18587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18588# If the template does not know about datarootdir, expand it.
18589# FIXME: This hack should be removed a few years after 2.60.
18590ac_datarootdir_hack=; ac_datarootdir_seen=
18591ac_sed_dataroot='
18592/datarootdir/ {
18593 p
18594 q
18595}
18596/@datadir@/p
18597/@docdir@/p
18598/@infodir@/p
18599/@localedir@/p
18600/@mandir@/p'
18601case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18602*datarootdir*) ac_datarootdir_seen=yes;;
18603*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18605$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18606_ACEOF
18607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18608 ac_datarootdir_hack='
18609 s&@datadir@&$datadir&g
18610 s&@docdir@&$docdir&g
18611 s&@infodir@&$infodir&g
18612 s&@localedir@&$localedir&g
18613 s&@mandir@&$mandir&g
18614 s&\\\${datarootdir}&$datarootdir&g' ;;
18615esac
18616_ACEOF
18617
18618# Neutralize VPATH when `$srcdir' = `.'.
18619# Shell code in configure.ac might set extrasub.
18620# FIXME: do we really want to maintain this feature?
18621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18622ac_sed_extra="$ac_vpsub
18623$extrasub
18624_ACEOF
18625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18626:t
18627/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18628s|@configure_input@|$ac_sed_conf_input|;t t
18629s&@top_builddir@&$ac_top_builddir_sub&;t t
18630s&@top_build_prefix@&$ac_top_build_prefix&;t t
18631s&@srcdir@&$ac_srcdir&;t t
18632s&@abs_srcdir@&$ac_abs_srcdir&;t t
18633s&@top_srcdir@&$ac_top_srcdir&;t t
18634s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18635s&@builddir@&$ac_builddir&;t t
18636s&@abs_builddir@&$ac_abs_builddir&;t t
18637s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18638s&@INSTALL@&$ac_INSTALL&;t t
18639s&@MKDIR_P@&$ac_MKDIR_P&;t t
18640$ac_datarootdir_hack
18641"
18642eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18643 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18644
18645test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18646 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18647 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18648 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18650which seems to be undefined. Please make sure it is defined" >&5
18651$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18652which seems to be undefined. Please make sure it is defined" >&2;}
18653
18654 rm -f "$ac_tmp/stdin"
18655 case $ac_file in
18656 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18657 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18658 esac \
18659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18660 ;;
18661 :H)
18662 #
18663 # CONFIG_HEADER
18664 #
18665 if test x"$ac_file" != x-; then
18666 {
18667 $as_echo "/* $configure_input */" \
18668 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18669 } >"$ac_tmp/config.h" \
18670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18671 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18673$as_echo "$as_me: $ac_file is unchanged" >&6;}
18674 else
18675 rm -f "$ac_file"
18676 mv "$ac_tmp/config.h" "$ac_file" \
18677 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18678 fi
18679 else
18680 $as_echo "/* $configure_input */" \
18681 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18682 || as_fn_error $? "could not create -" "$LINENO" 5
18683 fi
18684# Compute "$ac_file"'s index in $config_headers.
18685_am_arg="$ac_file"
18686_am_stamp_count=1
18687for _am_header in $config_headers :; do
18688 case $_am_header in
18689 $_am_arg | $_am_arg:* )
18690 break ;;
18691 * )
18692 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18693 esac
18694done
18695echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18696$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18697 X"$_am_arg" : 'X\(//\)[^/]' \| \
18698 X"$_am_arg" : 'X\(//\)$' \| \
18699 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18700$as_echo X"$_am_arg" |
18701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18702 s//\1/
18703 q
18704 }
18705 /^X\(\/\/\)[^/].*/{
18706 s//\1/
18707 q
18708 }
18709 /^X\(\/\/\)$/{
18710 s//\1/
18711 q
18712 }
18713 /^X\(\/\).*/{
18714 s//\1/
18715 q
18716 }
18717 s/.*/./; q'`/stamp-h$_am_stamp_count
18718 ;;
18719
18720 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18721$as_echo "$as_me: executing $ac_file commands" >&6;}
18722 ;;
18723 esac
18724
18725
18726 case $ac_file$ac_mode in
18727 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18728 # Older Autoconf quotes --file arguments for eval, but not when files
18729 # are listed without --file. Let's play safe and only enable the eval
18730 # if we detect the quoting.
18731 case $CONFIG_FILES in
18732 *\'*) eval set x "$CONFIG_FILES" ;;
18733 *) set x $CONFIG_FILES ;;
18734 esac
18735 shift
18736 for mf
18737 do
18738 # Strip MF so we end up with the name of the file.
18739 mf=`echo "$mf" | sed -e 's/:.*$//'`
18740 # Check whether this is an Automake generated Makefile or not.
18741 # We used to match only the files named 'Makefile.in', but
18742 # some people rename them; so instead we look at the file content.
18743 # Grep'ing the first line is not enough: some people post-process
18744 # each Makefile.in and add a new line on top of each file to say so.
18745 # Grep'ing the whole file is not good either: AIX grep has a line
18746 # limit of 2048, but all sed's we know have understand at least 4000.
18747 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18748 dirpart=`$as_dirname -- "$mf" ||
18749$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18750 X"$mf" : 'X\(//\)[^/]' \| \
18751 X"$mf" : 'X\(//\)$' \| \
18752 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18753$as_echo X"$mf" |
18754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18755 s//\1/
18756 q
18757 }
18758 /^X\(\/\/\)[^/].*/{
18759 s//\1/
18760 q
18761 }
18762 /^X\(\/\/\)$/{
18763 s//\1/
18764 q
18765 }
18766 /^X\(\/\).*/{
18767 s//\1/
18768 q
18769 }
18770 s/.*/./; q'`
18771 else
18772 continue
18773 fi
18774 # Extract the definition of DEPDIR, am__include, and am__quote
18775 # from the Makefile without running 'make'.
18776 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18777 test -z "$DEPDIR" && continue
18778 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18779 test -z "$am__include" && continue
18780 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18781 # Find all dependency output files, they are included files with
18782 # $(DEPDIR) in their names. We invoke sed twice because it is the
18783 # simplest approach to changing $(DEPDIR) to its actual value in the
18784 # expansion.
18785 for file in `sed -n "
18786 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18787 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18788 # Make sure the directory exists.
18789 test -f "$dirpart/$file" && continue
18790 fdir=`$as_dirname -- "$file" ||
18791$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18792 X"$file" : 'X\(//\)[^/]' \| \
18793 X"$file" : 'X\(//\)$' \| \
18794 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18795$as_echo X"$file" |
18796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18797 s//\1/
18798 q
18799 }
18800 /^X\(\/\/\)[^/].*/{
18801 s//\1/
18802 q
18803 }
18804 /^X\(\/\/\)$/{
18805 s//\1/
18806 q
18807 }
18808 /^X\(\/\).*/{
18809 s//\1/
18810 q
18811 }
18812 s/.*/./; q'`
18813 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18814 # echo "creating $dirpart/$file"
18815 echo '# dummy' > "$dirpart/$file"
18816 done
18817 done
18818}
18819 ;;
18820 "libtool":C)
18821
18822 # See if we are running on zsh, and set the options that allow our
18823 # commands through without removal of \ escapes.
18824 if test -n "${ZSH_VERSION+set}"; then
18825 setopt NO_GLOB_SUBST
18826 fi
18827
18828 cfgfile=${ofile}T
18829 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18830 $RM "$cfgfile"
18831
18832 cat <<_LT_EOF >> "$cfgfile"
18833#! $SHELL
18834# Generated automatically by $as_me ($PACKAGE) $VERSION
18835# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18836# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18837
18838# Provide generalized library-building support services.
18839# Written by Gordon Matzigkeit, 1996
18840
18841# Copyright (C) 2014 Free Software Foundation, Inc.
18842# This is free software; see the source for copying conditions. There is NO
18843# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18844
18845# GNU Libtool is free software; you can redistribute it and/or modify
18846# it under the terms of the GNU General Public License as published by
18847# the Free Software Foundation; either version 2 of of the License, or
18848# (at your option) any later version.
18849#
18850# As a special exception to the GNU General Public License, if you
18851# distribute this file as part of a program or library that is built
18852# using GNU Libtool, you may include this file under the same
18853# distribution terms that you use for the rest of that program.
18854#
18855# GNU Libtool is distributed in the hope that it will be useful, but
18856# WITHOUT ANY WARRANTY; without even the implied warranty of
18857# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18858# GNU General Public License for more details.
18859#
18860# You should have received a copy of the GNU General Public License
18861# along with this program. If not, see <http://www.gnu.org/licenses/>.
18862
18863
18864# The names of the tagged configurations supported by this script.
18865available_tags='CXX '
18866
18867# Configured defaults for sys_lib_dlsearch_path munging.
18868: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18869
18870# ### BEGIN LIBTOOL CONFIG
18871
18872# Which release of libtool.m4 was used?
18873macro_version=$macro_version
18874macro_revision=$macro_revision
18875
18876# Whether or not to build shared libraries.
18877build_libtool_libs=$enable_shared
18878
18879# Whether or not to build static libraries.
18880build_old_libs=$enable_static
18881
18882# What type of objects to build.
18883pic_mode=$pic_mode
18884
18885# Whether or not to optimize for fast installation.
18886fast_install=$enable_fast_install
18887
18888# Shared archive member basename,for filename based shared library versioning on AIX.
18889shared_archive_member_spec=$shared_archive_member_spec
18890
18891# Shell to use when invoking shell scripts.
18892SHELL=$lt_SHELL
18893
18894# An echo program that protects backslashes.
18895ECHO=$lt_ECHO
18896
18897# The PATH separator for the build system.
18898PATH_SEPARATOR=$lt_PATH_SEPARATOR
18899
18900# The host system.
18901host_alias=$host_alias
18902host=$host
18903host_os=$host_os
18904
18905# The build system.
18906build_alias=$build_alias
18907build=$build
18908build_os=$build_os
18909
18910# A sed program that does not truncate output.
18911SED=$lt_SED
18912
18913# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18914Xsed="\$SED -e 1s/^X//"
18915
18916# A grep program that handles long lines.
18917GREP=$lt_GREP
18918
18919# An ERE matcher.
18920EGREP=$lt_EGREP
18921
18922# A literal string matcher.
18923FGREP=$lt_FGREP
18924
18925# A BSD- or MS-compatible name lister.
18926NM=$lt_NM
18927
18928# Whether we need soft or hard links.
18929LN_S=$lt_LN_S
18930
18931# What is the maximum length of a command?
18932max_cmd_len=$max_cmd_len
18933
18934# Object file suffix (normally "o").
18935objext=$ac_objext
18936
18937# Executable file suffix (normally "").
18938exeext=$exeext
18939
18940# whether the shell understands "unset".
18941lt_unset=$lt_unset
18942
18943# turn spaces into newlines.
18944SP2NL=$lt_lt_SP2NL
18945
18946# turn newlines into spaces.
18947NL2SP=$lt_lt_NL2SP
18948
18949# convert \$build file names to \$host format.
18950to_host_file_cmd=$lt_cv_to_host_file_cmd
18951
18952# convert \$build files to toolchain format.
18953to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18954
18955# An object symbol dumper.
18956OBJDUMP=$lt_OBJDUMP
18957
18958# Method to check whether dependent libraries are shared objects.
18959deplibs_check_method=$lt_deplibs_check_method
18960
18961# Command to use when deplibs_check_method = "file_magic".
18962file_magic_cmd=$lt_file_magic_cmd
18963
18964# How to find potential files when deplibs_check_method = "file_magic".
18965file_magic_glob=$lt_file_magic_glob
18966
18967# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18968want_nocaseglob=$lt_want_nocaseglob
18969
18970# DLL creation program.
18971DLLTOOL=$lt_DLLTOOL
18972
18973# Command to associate shared and link libraries.
18974sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18975
18976# The archiver.
18977AR=$lt_AR
18978
18979# Flags to create an archive.
18980AR_FLAGS=$lt_AR_FLAGS
18981
18982# How to feed a file listing to the archiver.
18983archiver_list_spec=$lt_archiver_list_spec
18984
18985# A symbol stripping program.
18986STRIP=$lt_STRIP
18987
18988# Commands used to install an old-style archive.
18989RANLIB=$lt_RANLIB
18990old_postinstall_cmds=$lt_old_postinstall_cmds
18991old_postuninstall_cmds=$lt_old_postuninstall_cmds
18992
18993# Whether to use a lock for old archive extraction.
18994lock_old_archive_extraction=$lock_old_archive_extraction
18995
18996# A C compiler.
18997LTCC=$lt_CC
18998
18999# LTCC compiler flags.
19000LTCFLAGS=$lt_CFLAGS
19001
19002# Take the output of nm and produce a listing of raw symbols and C names.
19003global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19004
19005# Transform the output of nm in a proper C declaration.
19006global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19007
19008# Transform the output of nm into a list of symbols to manually relocate.
19009global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19010
19011# Transform the output of nm in a C name address pair.
19012global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19013
19014# Transform the output of nm in a C name address pair when lib prefix is needed.
19015global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19016
19017# The name lister interface.
19018nm_interface=$lt_lt_cv_nm_interface
19019
19020# Specify filename containing input files for \$NM.
19021nm_file_list_spec=$lt_nm_file_list_spec
19022
19023# The root where to search for dependent libraries,and where our libraries should be installed.
19024lt_sysroot=$lt_sysroot
19025
19026# Command to truncate a binary pipe.
19027lt_truncate_bin=$lt_lt_cv_truncate_bin
19028
19029# The name of the directory that contains temporary libtool files.
19030objdir=$objdir
19031
19032# Used to examine libraries when file_magic_cmd begins with "file".
19033MAGIC_CMD=$MAGIC_CMD
19034
19035# Must we lock files when doing compilation?
19036need_locks=$lt_need_locks
19037
19038# Manifest tool.
19039MANIFEST_TOOL=$lt_MANIFEST_TOOL
19040
19041# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19042DSYMUTIL=$lt_DSYMUTIL
19043
19044# Tool to change global to local symbols on Mac OS X.
19045NMEDIT=$lt_NMEDIT
19046
19047# Tool to manipulate fat objects and archives on Mac OS X.
19048LIPO=$lt_LIPO
19049
19050# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19051OTOOL=$lt_OTOOL
19052
19053# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19054OTOOL64=$lt_OTOOL64
19055
19056# Old archive suffix (normally "a").
19057libext=$libext
19058
19059# Shared library suffix (normally ".so").
19060shrext_cmds=$lt_shrext_cmds
19061
19062# The commands to extract the exported symbol list from a shared archive.
19063extract_expsyms_cmds=$lt_extract_expsyms_cmds
19064
19065# Variables whose values should be saved in libtool wrapper scripts and
19066# restored at link time.
19067variables_saved_for_relink=$lt_variables_saved_for_relink
19068
19069# Do we need the "lib" prefix for modules?
19070need_lib_prefix=$need_lib_prefix
19071
19072# Do we need a version for libraries?
19073need_version=$need_version
19074
19075# Library versioning type.
19076version_type=$version_type
19077
19078# Shared library runtime path variable.
19079runpath_var=$runpath_var
19080
19081# Shared library path variable.
19082shlibpath_var=$shlibpath_var
19083
19084# Is shlibpath searched before the hard-coded library search path?
19085shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19086
19087# Format of library name prefix.
19088libname_spec=$lt_libname_spec
19089
19090# List of archive names. First name is the real one, the rest are links.
19091# The last name is the one that the linker finds with -lNAME
19092library_names_spec=$lt_library_names_spec
19093
19094# The coded name of the library, if different from the real name.
19095soname_spec=$lt_soname_spec
19096
19097# Permission mode override for installation of shared libraries.
19098install_override_mode=$lt_install_override_mode
19099
19100# Command to use after installation of a shared archive.
19101postinstall_cmds=$lt_postinstall_cmds
19102
19103# Command to use after uninstallation of a shared archive.
19104postuninstall_cmds=$lt_postuninstall_cmds
19105
19106# Commands used to finish a libtool library installation in a directory.
19107finish_cmds=$lt_finish_cmds
19108
19109# As "finish_cmds", except a single script fragment to be evaled but
19110# not shown.
19111finish_eval=$lt_finish_eval
19112
19113# Whether we should hardcode library paths into libraries.
19114hardcode_into_libs=$hardcode_into_libs
19115
19116# Compile-time system search path for libraries.
19117sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19118
19119# Detected run-time system search path for libraries.
19120sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19121
19122# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19123configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19124
19125# Whether dlopen is supported.
19126dlopen_support=$enable_dlopen
19127
19128# Whether dlopen of programs is supported.
19129dlopen_self=$enable_dlopen_self
19130
19131# Whether dlopen of statically linked programs is supported.
19132dlopen_self_static=$enable_dlopen_self_static
19133
19134# Commands to strip libraries.
19135old_striplib=$lt_old_striplib
19136striplib=$lt_striplib
19137
19138
19139# The linker used to build libraries.
19140LD=$lt_LD
19141
19142# How to create reloadable object files.
19143reload_flag=$lt_reload_flag
19144reload_cmds=$lt_reload_cmds
19145
19146# Commands used to build an old-style archive.
19147old_archive_cmds=$lt_old_archive_cmds
19148
19149# A language specific compiler.
19150CC=$lt_compiler
19151
19152# Is the compiler the GNU compiler?
19153with_gcc=$GCC
19154
19155# Compiler flag to turn off builtin functions.
19156no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19157
19158# Additional compiler flags for building library objects.
19159pic_flag=$lt_lt_prog_compiler_pic
19160
19161# How to pass a linker flag through the compiler.
19162wl=$lt_lt_prog_compiler_wl
19163
19164# Compiler flag to prevent dynamic linking.
19165link_static_flag=$lt_lt_prog_compiler_static
19166
19167# Does compiler simultaneously support -c and -o options?
19168compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19169
19170# Whether or not to add -lc for building shared libraries.
19171build_libtool_need_lc=$archive_cmds_need_lc
19172
19173# Whether or not to disallow shared libs when runtime libs are static.
19174allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19175
19176# Compiler flag to allow reflexive dlopens.
19177export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19178
19179# Compiler flag to generate shared objects directly from archives.
19180whole_archive_flag_spec=$lt_whole_archive_flag_spec
19181
19182# Whether the compiler copes with passing no objects directly.
19183compiler_needs_object=$lt_compiler_needs_object
19184
19185# Create an old-style archive from a shared archive.
19186old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19187
19188# Create a temporary old-style archive to link instead of a shared archive.
19189old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19190
19191# Commands used to build a shared archive.
19192archive_cmds=$lt_archive_cmds
19193archive_expsym_cmds=$lt_archive_expsym_cmds
19194
19195# Commands used to build a loadable module if different from building
19196# a shared archive.
19197module_cmds=$lt_module_cmds
19198module_expsym_cmds=$lt_module_expsym_cmds
19199
19200# Whether we are building with GNU ld or not.
19201with_gnu_ld=$lt_with_gnu_ld
19202
19203# Flag that allows shared libraries with undefined symbols to be built.
19204allow_undefined_flag=$lt_allow_undefined_flag
19205
19206# Flag that enforces no undefined symbols.
19207no_undefined_flag=$lt_no_undefined_flag
19208
19209# Flag to hardcode \$libdir into a binary during linking.
19210# This must work even if \$libdir does not exist
19211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19212
19213# Whether we need a single "-rpath" flag with a separated argument.
19214hardcode_libdir_separator=$lt_hardcode_libdir_separator
19215
19216# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19217# DIR into the resulting binary.
19218hardcode_direct=$hardcode_direct
19219
19220# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19221# DIR into the resulting binary and the resulting library dependency is
19222# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19223# library is relocated.
19224hardcode_direct_absolute=$hardcode_direct_absolute
19225
19226# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19227# into the resulting binary.
19228hardcode_minus_L=$hardcode_minus_L
19229
19230# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19231# into the resulting binary.
19232hardcode_shlibpath_var=$hardcode_shlibpath_var
19233
19234# Set to "yes" if building a shared library automatically hardcodes DIR
19235# into the library and all subsequent libraries and executables linked
19236# against it.
19237hardcode_automatic=$hardcode_automatic
19238
19239# Set to yes if linker adds runtime paths of dependent libraries
19240# to runtime path list.
19241inherit_rpath=$inherit_rpath
19242
19243# Whether libtool must link a program against all its dependency libraries.
19244link_all_deplibs=$link_all_deplibs
19245
19246# Set to "yes" if exported symbols are required.
19247always_export_symbols=$always_export_symbols
19248
19249# The commands to list exported symbols.
19250export_symbols_cmds=$lt_export_symbols_cmds
19251
19252# Symbols that should not be listed in the preloaded symbols.
19253exclude_expsyms=$lt_exclude_expsyms
19254
19255# Symbols that must always be exported.
19256include_expsyms=$lt_include_expsyms
19257
19258# Commands necessary for linking programs (against libraries) with templates.
19259prelink_cmds=$lt_prelink_cmds
19260
19261# Commands necessary for finishing linking programs.
19262postlink_cmds=$lt_postlink_cmds
19263
19264# Specify filename containing input files.
19265file_list_spec=$lt_file_list_spec
19266
19267# How to hardcode a shared library path into an executable.
19268hardcode_action=$hardcode_action
19269
19270# The directories searched by this compiler when creating a shared library.
19271compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19272
19273# Dependencies to place before and after the objects being linked to
19274# create a shared library.
19275predep_objects=$lt_predep_objects
19276postdep_objects=$lt_postdep_objects
19277predeps=$lt_predeps
19278postdeps=$lt_postdeps
19279
19280# The library search path used internally by the compiler when linking
19281# a shared library.
19282compiler_lib_search_path=$lt_compiler_lib_search_path
19283
19284# ### END LIBTOOL CONFIG
19285
19286_LT_EOF
19287
19288 cat <<'_LT_EOF' >> "$cfgfile"
19289
19290# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19291
19292# func_munge_path_list VARIABLE PATH
19293# -----------------------------------
19294# VARIABLE is name of variable containing _space_ separated list of
19295# directories to be munged by the contents of PATH, which is string
19296# having a format:
19297# "DIR[:DIR]:"
19298# string "DIR[ DIR]" will be prepended to VARIABLE
19299# ":DIR[:DIR]"
19300# string "DIR[ DIR]" will be appended to VARIABLE
19301# "DIRP[:DIRP]::[DIRA:]DIRA"
19302# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19303# "DIRA[ DIRA]" will be appended to VARIABLE
19304# "DIR[:DIR]"
19305# VARIABLE will be replaced by "DIR[ DIR]"
19306func_munge_path_list ()
19307{
19308 case x$2 in
19309 x)
19310 ;;
19311 *:)
19312 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19313 ;;
19314 x:*)
19315 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19316 ;;
19317 *::*)
19318 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19319 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19320 ;;
19321 *)
19322 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19323 ;;
19324 esac
19325}
19326
19327
19328# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19329func_cc_basename ()
19330{
19331 for cc_temp in $*""; do
19332 case $cc_temp in
19333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19335 \-*) ;;
19336 *) break;;
19337 esac
19338 done
19339 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19340}
19341
19342
19343# ### END FUNCTIONS SHARED WITH CONFIGURE
19344
19345_LT_EOF
19346
19347 case $host_os in
19348 aix3*)
19349 cat <<\_LT_EOF >> "$cfgfile"
19350# AIX sometimes has problems with the GCC collect2 program. For some
19351# reason, if we set the COLLECT_NAMES environment variable, the problems
19352# vanish in a puff of smoke.
19353if test set != "${COLLECT_NAMES+set}"; then
19354 COLLECT_NAMES=
19355 export COLLECT_NAMES
19356fi
19357_LT_EOF
19358 ;;
19359 esac
19360
19361
19362ltmain=$ac_aux_dir/ltmain.sh
19363
19364
19365 # We use sed instead of cat because bash on DJGPP gets confused if
19366 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19367 # text mode, it properly converts lines to CR/LF. This bash problem
19368 # is reportedly fixed, but why not run on old versions too?
19369 sed '$q' "$ltmain" >> "$cfgfile" \
19370 || (rm -f "$cfgfile"; exit 1)
19371
19372 mv -f "$cfgfile" "$ofile" ||
19373 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19374 chmod +x "$ofile"
19375
19376
19377 cat <<_LT_EOF >> "$ofile"
19378
19379# ### BEGIN LIBTOOL TAG CONFIG: CXX
19380
19381# The linker used to build libraries.
19382LD=$lt_LD_CXX
19383
19384# How to create reloadable object files.
19385reload_flag=$lt_reload_flag_CXX
19386reload_cmds=$lt_reload_cmds_CXX
19387
19388# Commands used to build an old-style archive.
19389old_archive_cmds=$lt_old_archive_cmds_CXX
19390
19391# A language specific compiler.
19392CC=$lt_compiler_CXX
19393
19394# Is the compiler the GNU compiler?
19395with_gcc=$GCC_CXX
19396
19397# Compiler flag to turn off builtin functions.
19398no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19399
19400# Additional compiler flags for building library objects.
19401pic_flag=$lt_lt_prog_compiler_pic_CXX
19402
19403# How to pass a linker flag through the compiler.
19404wl=$lt_lt_prog_compiler_wl_CXX
19405
19406# Compiler flag to prevent dynamic linking.
19407link_static_flag=$lt_lt_prog_compiler_static_CXX
19408
19409# Does compiler simultaneously support -c and -o options?
19410compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19411
19412# Whether or not to add -lc for building shared libraries.
19413build_libtool_need_lc=$archive_cmds_need_lc_CXX
19414
19415# Whether or not to disallow shared libs when runtime libs are static.
19416allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19417
19418# Compiler flag to allow reflexive dlopens.
19419export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19420
19421# Compiler flag to generate shared objects directly from archives.
19422whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19423
19424# Whether the compiler copes with passing no objects directly.
19425compiler_needs_object=$lt_compiler_needs_object_CXX
19426
19427# Create an old-style archive from a shared archive.
19428old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19429
19430# Create a temporary old-style archive to link instead of a shared archive.
19431old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19432
19433# Commands used to build a shared archive.
19434archive_cmds=$lt_archive_cmds_CXX
19435archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19436
19437# Commands used to build a loadable module if different from building
19438# a shared archive.
19439module_cmds=$lt_module_cmds_CXX
19440module_expsym_cmds=$lt_module_expsym_cmds_CXX
19441
19442# Whether we are building with GNU ld or not.
19443with_gnu_ld=$lt_with_gnu_ld_CXX
19444
19445# Flag that allows shared libraries with undefined symbols to be built.
19446allow_undefined_flag=$lt_allow_undefined_flag_CXX
19447
19448# Flag that enforces no undefined symbols.
19449no_undefined_flag=$lt_no_undefined_flag_CXX
19450
19451# Flag to hardcode \$libdir into a binary during linking.
19452# This must work even if \$libdir does not exist
19453hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19454
19455# Whether we need a single "-rpath" flag with a separated argument.
19456hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19457
19458# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19459# DIR into the resulting binary.
19460hardcode_direct=$hardcode_direct_CXX
19461
19462# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19463# DIR into the resulting binary and the resulting library dependency is
19464# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19465# library is relocated.
19466hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19467
19468# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19469# into the resulting binary.
19470hardcode_minus_L=$hardcode_minus_L_CXX
19471
19472# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19473# into the resulting binary.
19474hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19475
19476# Set to "yes" if building a shared library automatically hardcodes DIR
19477# into the library and all subsequent libraries and executables linked
19478# against it.
19479hardcode_automatic=$hardcode_automatic_CXX
19480
19481# Set to yes if linker adds runtime paths of dependent libraries
19482# to runtime path list.
19483inherit_rpath=$inherit_rpath_CXX
19484
19485# Whether libtool must link a program against all its dependency libraries.
19486link_all_deplibs=$link_all_deplibs_CXX
19487
19488# Set to "yes" if exported symbols are required.
19489always_export_symbols=$always_export_symbols_CXX
19490
19491# The commands to list exported symbols.
19492export_symbols_cmds=$lt_export_symbols_cmds_CXX
19493
19494# Symbols that should not be listed in the preloaded symbols.
19495exclude_expsyms=$lt_exclude_expsyms_CXX
19496
19497# Symbols that must always be exported.
19498include_expsyms=$lt_include_expsyms_CXX
19499
19500# Commands necessary for linking programs (against libraries) with templates.
19501prelink_cmds=$lt_prelink_cmds_CXX
19502
19503# Commands necessary for finishing linking programs.
19504postlink_cmds=$lt_postlink_cmds_CXX
19505
19506# Specify filename containing input files.
19507file_list_spec=$lt_file_list_spec_CXX
19508
19509# How to hardcode a shared library path into an executable.
19510hardcode_action=$hardcode_action_CXX
19511
19512# The directories searched by this compiler when creating a shared library.
19513compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19514
19515# Dependencies to place before and after the objects being linked to
19516# create a shared library.
19517predep_objects=$lt_predep_objects_CXX
19518postdep_objects=$lt_postdep_objects_CXX
19519predeps=$lt_predeps_CXX
19520postdeps=$lt_postdeps_CXX
19521
19522# The library search path used internally by the compiler when linking
19523# a shared library.
19524compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19525
19526# ### END LIBTOOL TAG CONFIG: CXX
19527_LT_EOF
19528
19529 ;;
19530
19531 esac
19532done # for ac_tag
19533
19534
19535as_fn_exit 0
19536_ACEOF
19537ac_clean_files=$ac_clean_files_save
19538
19539test $ac_write_fail = 0 ||
19540 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19541
19542
19543# configure is writing to config.log, and then calls config.status.
19544# config.status does its own redirection, appending to config.log.
19545# Unfortunately, on DOS this fails, as config.log is still kept open
19546# by configure, so config.status won't be able to write to it; its
19547# output is simply discarded. So we exec the FD to /dev/null,
19548# effectively closing config.log, so it can be properly (re)opened and
19549# appended to by config.status. When coming back to configure, we
19550# need to make the FD available again.
19551if test "$no_create" != yes; then
19552 ac_cs_success=:
19553 ac_config_status_args=
19554 test "$silent" = yes &&
19555 ac_config_status_args="$ac_config_status_args --quiet"
19556 exec 5>/dev/null
19557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19558 exec 5>>config.log
19559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19560 # would make configure fail if this is the last instruction.
19561 $ac_cs_success || as_fn_exit 1
19562fi
19563if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19565$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19566fi
19567