2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for expat 2.2.0.
5 # Report bugs to <expat-bugs@libexpat.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $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
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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
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
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
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 :
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
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $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
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."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: expat-bugs@libexpat.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='expat'
593 PACKAGE_VERSION='2.2.0'
594 PACKAGE_STRING='expat 2.2.0'
595 PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
598 ac_unique_file="Makefile.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='LTLIBOBJS
717 program_transform_name
730 enable_option_checking
740 ac_precious_vars='build_alias
756 # Initialize some variables set by options.
758 ac_init_version=false
759 ac_unrecognized_opts=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
770 program_transform_name=s,x,x,
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir='${exec_prefix}/bin'
785 sbindir='${exec_prefix}/sbin'
786 libexecdir='${exec_prefix}/libexec'
787 datarootdir='${prefix}/share'
788 datadir='${datarootdir}'
789 sysconfdir='${prefix}/etc'
790 sharedstatedir='${prefix}/com'
791 localstatedir='${prefix}/var'
792 includedir='${prefix}/include'
793 oldincludedir='/usr/include'
794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir='${datarootdir}/info'
800 libdir='${exec_prefix}/lib'
801 localedir='${datarootdir}/locale'
802 mandir='${datarootdir}/man'
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\$ac_option
816 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
845 cache_file=config.cache ;;
847 -datadir | --datadir | --datadi | --datad)
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
859 -disable-* | --disable-*)
860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 as_fn_error $? "invalid feature name: $ac_useropt"
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
873 eval enable_$ac_useropt=no ;;
875 -docdir | --docdir | --docdi | --doc | --do)
877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885 -enable-* | --enable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
899 eval enable_$ac_useropt=\$ac_optarg ;;
901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903 | --exec | --exe | --ex)
904 ac_prev=exec_prefix ;;
905 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907 | --exec=* | --exe=* | --ex=*)
908 exec_prefix=$ac_optarg ;;
910 -gas | --gas | --ga | --g)
911 # Obsolete; use --with-gas.
914 -help | --help | --hel | --he | -h)
916 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917 ac_init_help=recursive ;;
918 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919 ac_init_help=short ;;
921 -host | --host | --hos | --ho)
922 ac_prev=host_alias ;;
923 -host=* | --host=* | --hos=* | --ho=*)
924 host_alias=$ac_optarg ;;
926 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 htmldir=$ac_optarg ;;
932 -includedir | --includedir | --includedi | --included | --include \
933 | --includ | --inclu | --incl | --inc)
934 ac_prev=includedir ;;
935 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936 | --includ=* | --inclu=* | --incl=* | --inc=*)
937 includedir=$ac_optarg ;;
939 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942 infodir=$ac_optarg ;;
944 -libdir | --libdir | --libdi | --libd)
946 -libdir=* | --libdir=* | --libdi=* | --libd=*)
949 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950 | --libexe | --libex | --libe)
951 ac_prev=libexecdir ;;
952 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953 | --libexe=* | --libex=* | --libe=*)
954 libexecdir=$ac_optarg ;;
956 -localedir | --localedir | --localedi | --localed | --locale)
958 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959 localedir=$ac_optarg ;;
961 -localstatedir | --localstatedir | --localstatedi | --localstated \
962 | --localstate | --localstat | --localsta | --localst | --locals)
963 ac_prev=localstatedir ;;
964 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966 localstatedir=$ac_optarg ;;
968 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 # Obsolete; use --without-fp.
977 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978 | --no-cr | --no-c | -n)
981 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987 | --oldin | --oldi | --old | --ol | --o)
988 ac_prev=oldincludedir ;;
989 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992 oldincludedir=$ac_optarg ;;
994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000 | --program-pre | --program-pr | --program-p)
1001 ac_prev=program_prefix ;;
1002 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004 program_prefix=$ac_optarg ;;
1006 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007 | --program-suf | --program-su | --program-s)
1008 ac_prev=program_suffix ;;
1009 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011 program_suffix=$ac_optarg ;;
1013 -program-transform-name | --program-transform-name \
1014 | --program-transform-nam | --program-transform-na \
1015 | --program-transform-n | --program-transform- \
1016 | --program-transform | --program-transfor \
1017 | --program-transfo | --program-transf \
1018 | --program-trans | --program-tran \
1019 | --progr-tra | --program-tr | --program-t)
1020 ac_prev=program_transform_name ;;
1021 -program-transform-name=* | --program-transform-name=* \
1022 | --program-transform-nam=* | --program-transform-na=* \
1023 | --program-transform-n=* | --program-transform-=* \
1024 | --program-transform=* | --program-transfor=* \
1025 | --program-transfo=* | --program-transf=* \
1026 | --program-trans=* | --program-tran=* \
1027 | --progr-tra=* | --program-tr=* | --program-t=*)
1028 program_transform_name=$ac_optarg ;;
1030 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033 pdfdir=$ac_optarg ;;
1035 -psdir | --psdir | --psdi | --psd | --ps)
1037 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 sbindir=$ac_optarg ;;
1050 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052 | --sharedst | --shareds | --shared | --share | --shar \
1054 ac_prev=sharedstatedir ;;
1055 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059 sharedstatedir=$ac_optarg ;;
1061 -site | --site | --sit)
1063 -site=* | --site=* | --sit=*)
1066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069 srcdir=$ac_optarg ;;
1071 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072 | --syscon | --sysco | --sysc | --sys | --sy)
1073 ac_prev=sysconfdir ;;
1074 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076 sysconfdir=$ac_optarg ;;
1078 -target | --target | --targe | --targ | --tar | --ta | --t)
1079 ac_prev=target_alias ;;
1080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081 target_alias=$ac_optarg ;;
1083 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086 -version | --version | --versio | --versi | --vers | -V)
1087 ac_init_version=: ;;
1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error $? "invalid package name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1103 eval with_$ac_useropt=\$ac_optarg ;;
1105 -without-* | --without-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval with_$ac_useropt=no ;;
1122 # Obsolete; use --with-x.
1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126 | --x-incl | --x-inc | --x-in | --x-i)
1127 ac_prev=x_includes ;;
1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130 x_includes=$ac_optarg ;;
1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134 ac_prev=x_libraries ;;
1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137 x_libraries=$ac_optarg ;;
1139 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1140 Try \`$0 --help' for more information"
1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145 # Reject names that are not valid shell variable names.
1146 case $ac_envvar in #(
1147 '' | [0-9]* | *[!_$as_cr_alnum]* )
1148 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150 eval $ac_envvar=\$ac_optarg
1151 export $ac_envvar ;;
1154 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164 if test -n "$ac_prev"; then
1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166 as_fn_error $? "missing argument to $ac_option"
1169 if test -n "$ac_unrecognized_opts"; then
1170 case $enable_option_checking in
1172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 # Check all directory arguments for consistency.
1178 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
1183 eval ac_val=\$$ac_var
1184 # Remove trailing slashes.
1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188 eval $ac_var=\$ac_val;;
1190 # Be sure to have absolute directory names.
1192 [\\/$]* | ?:[\\/]* ) continue;;
1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1203 target=$target_alias
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207 if test "x$build_alias" = x; then
1208 cross_compiling=maybe
1209 elif test "x$build_alias" != "x$host_alias"; then
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217 test "$silent" = yes && exec 6>/dev/null
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223 as_fn_error $? "working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 as_fn_error $? "pwd does not report name of working directory"
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$as_myself" : 'X\(//\)[^/]' \| \
1235 X"$as_myself" : 'X\(//\)$' \| \
1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1260 ac_srcdir_defaulted=no
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 for ac_var in $ac_precious_vars; do
1281 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_${ac_var}_value=\$${ac_var}
1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 # Report the --help message.
1290 if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1294 \`configure' configures expat 2.2.0 to adapt to many kinds of systems.
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE. See below for descriptions of some of the useful variables.
1301 Defaults for the options are specified in brackets.
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking ...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314 Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1325 For better control, use the options below.
1327 Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1352 --build=BUILD configure for building on BUILD [guessed]
1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357 if test -n "$ac_init_help"; then
1358 case $ac_init_help in
1359 short | recursive ) echo "Configuration of expat 2.2.0:";;
1364 --disable-option-checking ignore unrecognized --enable/--with options
1365 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1366 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1367 --enable-shared[=PKGS] build shared libraries [default=yes]
1368 --enable-static[=PKGS] build static libraries [default=yes]
1369 --enable-fast-install[=PKGS]
1370 optimize for fast installation [default=yes]
1371 --disable-libtool-lock avoid locking (might break parallel builds)
1374 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1375 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1376 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1378 --with-aix-soname=aix|svr4|both
1379 shared library versioning (aka "SONAME") variant to
1380 provide on AIX, [default=aix].
1381 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1382 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1383 compiler's sysroot if not specified).
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1394 User-defined run-time library search path.
1396 CXX C++ compiler command
1397 CXXFLAGS C++ compiler flags
1398 CXXCPP C++ preprocessor
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1403 Report bugs to <expat-bugs@libexpat.org>.
1408 if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411 test -d "$ac_dir" ||
1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420 # A ".." for each directory in $ac_dir_suffix.
1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422 case $ac_top_builddir_sub in
1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427 ac_abs_top_builddir=$ac_pwd
1428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429 # for backward compatibility:
1430 ac_top_builddir=$ac_top_build_prefix
1433 .) # We are building in place.
1435 ac_top_srcdir=$ac_top_builddir_sub
1436 ac_abs_top_srcdir=$ac_pwd ;;
1437 [\\/]* | ?:[\\/]* ) # Absolute name.
1438 ac_srcdir=$srcdir$ac_dir_suffix;
1439 ac_top_srcdir=$srcdir
1440 ac_abs_top_srcdir=$srcdir ;;
1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443 ac_top_srcdir=$ac_top_build_prefix$srcdir
1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448 cd "$ac_dir" || { ac_status=$?; continue; }
1449 # Check for guested configure.
1450 if test -f "$ac_srcdir/configure.gnu"; then
1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453 elif test -f "$ac_srcdir/configure"; then
1455 $SHELL "$ac_srcdir/configure" --help=recursive
1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459 cd "$ac_pwd" || { ac_status=$?; break; }
1463 test -n "$ac_init_help" && exit $ac_status
1464 if $ac_init_version; then
1466 expat configure 2.2.0
1467 generated by GNU Autoconf 2.69
1469 Copyright (C) 2012 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile ()
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1514 as_fn_set_status $ac_retval
1516 } # ac_fn_c_try_compile
1518 # ac_fn_c_try_link LINENO
1519 # -----------------------
1520 # Try to link conftest.$ac_ext, and return whether this succeeded.
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext conftest$ac_exeext
1525 if { { ac_try="$ac_link"
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_link") 2>conftest.err
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest$ac_exeext && {
1544 test "$cross_compiling" = yes ||
1545 test -x conftest$ac_exeext
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1554 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1555 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1556 # interfere with the next link command; also delete a directory that is
1557 # left behind by Apple's compiler. We do this before executing the actions.
1558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1562 } # ac_fn_c_try_link
1564 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists and can be compiled using the include files in
1567 # INCLUDES, setting the cache variable VAR accordingly.
1568 ac_fn_c_check_header_compile ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572 $as_echo_n "checking for $2... " >&6; }
1573 if eval \${$3+:} false; then :
1574 $as_echo_n "(cached) " >&6
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1581 if ac_fn_c_try_compile "$LINENO"; then :
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 } # ac_fn_c_check_header_compile
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1632 # ac_fn_c_try_run LINENO
1633 # ----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1635 # that executables *can* be run.
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_link"
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>&5
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1650 { { case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_try") 2>&5
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; }; }; then :
1662 $as_echo "$as_me: program exited with status $ac_status" >&5
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=$ac_status
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1674 # ac_fn_c_check_func LINENO FUNC VAR
1675 # ----------------------------------
1676 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1677 ac_fn_c_check_func ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1689 #define $2 innocuous_$2
1691 /* System header to define __stub macros and hopefully few prototypes,
1692 which can conflict with char $2 (); below.
1693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1694 <limits.h> exists even on freestanding compilers. */
1697 # include <limits.h>
1699 # include <assert.h>
1704 /* Override any GCC internal prototype to avoid an error.
1705 Use char because int might match the return type of a GCC
1706 builtin and then its argument prototype would still apply. */
1711 /* The GNU C library defines this for functions which it implements
1712 to always fail with ENOSYS. Some functions are actually named
1713 something starting with __ and the normal name is an alias. */
1714 #if defined __stub_$2 || defined __stub___$2
1726 if ac_fn_c_try_link "$LINENO"; then :
1731 rm -f core conftest.err conftest.$ac_objext \
1732 conftest$ac_exeext conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 } # ac_fn_c_check_func
1741 # ac_fn_cxx_try_compile LINENO
1742 # ----------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_cxx_try_compile ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext
1748 if { { ac_try="$ac_compile"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_compile") 2>conftest.err
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_cxx_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest.$ac_objext; then :
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1777 } # ac_fn_cxx_try_compile
1779 # ac_fn_cxx_try_cpp LINENO
1780 # ------------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_cxx_try_cpp ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_cpp conftest.$ac_ext"
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } > conftest.i && {
1801 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1802 test ! -s conftest.err
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_cxx_try_cpp
1816 # ac_fn_cxx_try_link LINENO
1817 # -------------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_cxx_try_link ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_cxx_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_cxx_try_link
1862 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1863 # -------------------------------------------
1864 # Tests whether TYPE exists after having included INCLUDES, setting cache
1865 # variable VAR accordingly.
1866 ac_fn_c_check_type ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1900 if ac_fn_c_try_compile "$LINENO"; then :
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 } # ac_fn_c_check_type
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1921 ac_fn_c_check_header_mongrel ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if eval \${$3+:} false; then :
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1934 # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_header_compiler=yes
1945 ac_header_compiler=no
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959 ac_header_preproc=yes
1961 ac_header_preproc=no
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1967 # So? What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 ( $as_echo "## -------------------------------------- ##
1987 ## Report this to expat-bugs@libexpat.org ##
1988 ## -------------------------------------- ##"
1989 ) | sed "s/^/$as_me: WARNING: /" >&2
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1997 eval "$3=\$ac_header_compiler"
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_header_mongrel
2006 cat >config.log <<_ACEOF
2007 This file contains any messages produced by compilers while
2008 running configure, to aid debugging if configure makes a mistake.
2010 It was created by expat $as_me 2.2.0, which was
2011 generated by GNU Autoconf 2.69. Invocation command line was
2023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2032 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2033 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2035 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2036 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2037 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2038 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 $as_echo "PATH: $as_dir"
2063 # Keep a trace of the command line.
2064 # Strip out --no-create and --no-recursion so they do not pile up.
2065 # Strip out --silent because we don't want to record it for future runs.
2066 # Also quote any args containing shell meta-characters.
2067 # Make two passes to allow for proper duplicate-argument suppression.
2071 ac_must_keep_next=false
2077 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079 | -silent | --silent | --silen | --sile | --sil)
2082 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2085 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2087 as_fn_append ac_configure_args1 " '$ac_arg'"
2088 if test $ac_must_keep_next = true; then
2089 ac_must_keep_next=false # Got value, back to normal.
2092 *=* | --config-cache | -C | -disable-* | --disable-* \
2093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095 | -with-* | --with-* | -without-* | --without-* | --x)
2096 case "$ac_configure_args0 " in
2097 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2100 -* ) ac_must_keep_next=true ;;
2103 as_fn_append ac_configure_args " '$ac_arg'"
2108 { ac_configure_args0=; unset ac_configure_args0;}
2109 { ac_configure_args1=; unset ac_configure_args1;}
2111 # When interrupted or exit'd, cleanup temporary files, and complete
2112 # config.log. We remove comments because anyway the quotes in there
2113 # would cause problems or look ugly.
2114 # WARNING: Use '\'' to represent an apostrophe within the trap.
2115 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2116 trap 'exit_status=$?
2117 # Save into config.log some information that might help in debugging.
2121 $as_echo "## ---------------- ##
2122 ## Cache variables. ##
2123 ## ---------------- ##"
2125 # The following way of writing the cache mishandles newlines in values,
2127 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2128 eval ac_val=\$$ac_var
2132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2133 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2136 _ | IFS | as_nl) ;; #(
2137 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2138 *) { eval $ac_var=; unset $ac_var;} ;;
2143 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2144 *${as_nl}ac_space=\ *)
2146 "s/'\''/'\''\\\\'\'''\''/g;
2147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2150 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2157 $as_echo "## ----------------- ##
2158 ## Output variables. ##
2159 ## ----------------- ##"
2161 for ac_var in $ac_subst_vars
2163 eval ac_val=\$$ac_var
2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2167 $as_echo "$ac_var='\''$ac_val'\''"
2171 if test -n "$ac_subst_files"; then
2172 $as_echo "## ------------------- ##
2173 ## File substitutions. ##
2174 ## ------------------- ##"
2176 for ac_var in $ac_subst_files
2178 eval ac_val=\$$ac_var
2180 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 $as_echo "$ac_var='\''$ac_val'\''"
2187 if test -s confdefs.h; then
2188 $as_echo "## ----------- ##
2195 test "$ac_signal" != 0 &&
2196 $as_echo "$as_me: caught signal $ac_signal"
2197 $as_echo "$as_me: exit $exit_status"
2199 rm -f core *.core core.conftest.* &&
2200 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2203 for ac_signal in 1 2 13 15; do
2204 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2209 rm -f -r conftest* confdefs.h
2211 $as_echo "/* confdefs.h */" > confdefs.h
2213 # Predefined preprocessor variables.
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_NAME "$PACKAGE_NAME"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_STRING "$PACKAGE_STRING"
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_URL "$PACKAGE_URL"
2240 # Let the site file select an alternate cache file if it wants to.
2241 # Prefer an explicitly selected file to automatically selected ones.
2244 if test -n "$CONFIG_SITE"; then
2245 # We do not want a PATH search for config.site.
2246 case $CONFIG_SITE in #((
2247 -*) ac_site_file1=./$CONFIG_SITE;;
2248 */*) ac_site_file1=$CONFIG_SITE;;
2249 *) ac_site_file1=./$CONFIG_SITE;;
2251 elif test "x$prefix" != xNONE; then
2252 ac_site_file1=$prefix/share/config.site
2253 ac_site_file2=$prefix/etc/config.site
2255 ac_site_file1=$ac_default_prefix/share/config.site
2256 ac_site_file2=$ac_default_prefix/etc/config.site
2258 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2260 test "x$ac_site_file" = xNONE && continue
2261 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2263 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2264 sed 's/^/| /' "$ac_site_file" >&5
2266 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2268 as_fn_error $? "failed to load site script $ac_site_file
2269 See \`config.log' for more details" "$LINENO" 5; }
2273 if test -r "$cache_file"; then
2274 # Some versions of bash will fail to source /dev/null (special files
2275 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2276 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2278 $as_echo "$as_me: loading cache $cache_file" >&6;}
2280 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2281 *) . "./$cache_file";;
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2286 $as_echo "$as_me: creating cache $cache_file" >&6;}
2290 as_fn_append ac_header_list " stdlib.h"
2291 as_fn_append ac_header_list " unistd.h"
2292 as_fn_append ac_header_list " sys/param.h"
2293 # Check that the precious variables saved in the cache have kept the same
2295 ac_cache_corrupted=false
2296 for ac_var in $ac_precious_vars; do
2297 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2298 eval ac_new_set=\$ac_env_${ac_var}_set
2299 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2300 eval ac_new_val=\$ac_env_${ac_var}_value
2301 case $ac_old_set,$ac_new_set in
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2304 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2305 ac_cache_corrupted=: ;;
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2309 ac_cache_corrupted=: ;;
2312 if test "x$ac_old_val" != "x$ac_new_val"; then
2313 # differences in whitespace do not lead to failure.
2314 ac_old_val_w=`echo x $ac_old_val`
2315 ac_new_val_w=`echo x $ac_new_val`
2316 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2318 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2319 ac_cache_corrupted=:
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2322 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2323 eval $ac_var=\$ac_old_val
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2326 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2328 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2331 # Pass precious variables to config.status.
2332 if test "$ac_new_set" = set; then
2334 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 *) ac_arg=$ac_var=$ac_new_val ;;
2337 case " $ac_configure_args " in
2338 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2339 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2343 if $ac_cache_corrupted; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2347 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2348 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2350 ## -------------------- ##
2351 ## Main body of script. ##
2352 ## -------------------- ##
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365 for ac_dir in conftools "$srcdir"/conftools; do
2366 if test -f "$ac_dir/install-sh"; then
2368 ac_install_sh="$ac_aux_dir/install-sh -c"
2370 elif test -f "$ac_dir/install.sh"; then
2372 ac_install_sh="$ac_aux_dir/install.sh -c"
2374 elif test -f "$ac_dir/shtool"; then
2376 ac_install_sh="$ac_aux_dir/shtool install -c"
2380 if test -z "$ac_aux_dir"; then
2381 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2384 # These three variables are undocumented and unsupported,
2385 # and are intended to be withdrawn in a future Autoconf release.
2386 # They can cause serious problems if a builder's source tree is in a directory
2387 # whose full name contains unusual characters.
2388 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2389 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2390 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2398 LIBREVISION=2 # with
2399 LIBAGE=6 # CMakeLists.txt!
2401 ac_config_headers="$ac_config_headers expat_config.h"
2407 # Make sure we can run config.sub.
2408 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2409 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2412 $as_echo_n "checking build system type... " >&6; }
2413 if ${ac_cv_build+:} false; then :
2414 $as_echo_n "(cached) " >&6
2416 ac_build_alias=$build_alias
2417 test "x$ac_build_alias" = x &&
2418 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2419 test "x$ac_build_alias" = x &&
2420 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2421 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2426 $as_echo "$ac_cv_build" >&6; }
2427 case $ac_cv_build in
2429 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2432 ac_save_IFS=$IFS; IFS='-'
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2442 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2446 $as_echo_n "checking host system type... " >&6; }
2447 if ${ac_cv_host+:} false; then :
2448 $as_echo_n "(cached) " >&6
2450 if test "x$host_alias" = x; then
2451 ac_cv_host=$ac_cv_build
2453 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2454 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2459 $as_echo "$ac_cv_host" >&6; }
2462 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2465 ac_save_IFS=$IFS; IFS='-'
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2475 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2478 enable_win32_dll=yes
2481 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
2482 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}as; ac_word=$2
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486 $as_echo_n "checking for $ac_word... " >&6; }
2487 if ${ac_cv_prog_AS+:} false; then :
2488 $as_echo_n "(cached) " >&6
2490 if test -n "$AS"; then
2491 ac_cv_prog_AS="$AS" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500 ac_cv_prog_AS="${ac_tool_prefix}as"
2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 if test -n "$AS"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2513 $as_echo "$AS" >&6; }
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2521 if test -z "$ac_cv_prog_AS"; then
2523 # Extract the first word of "as", so it can be a program name with args.
2524 set dummy as; ac_word=$2
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526 $as_echo_n "checking for $ac_word... " >&6; }
2527 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2528 $as_echo_n "(cached) " >&6
2530 if test -n "$ac_ct_AS"; then
2531 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540 ac_cv_prog_ac_ct_AS="as"
2541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2551 if test -n "$ac_ct_AS"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
2553 $as_echo "$ac_ct_AS" >&6; }
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556 $as_echo "no" >&6; }
2559 if test "x$ac_ct_AS" = x; then
2562 case $cross_compiling:$ac_tool_warned in
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2566 ac_tool_warned=yes ;;
2574 if test -n "$ac_tool_prefix"; then
2575 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_DLLTOOL+:} false; then :
2580 $as_echo_n "(cached) " >&6
2582 if test -n "$DLLTOOL"; then
2583 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 DLLTOOL=$ac_cv_prog_DLLTOOL
2603 if test -n "$DLLTOOL"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2605 $as_echo "$DLLTOOL" >&6; }
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2613 if test -z "$ac_cv_prog_DLLTOOL"; then
2614 ac_ct_DLLTOOL=$DLLTOOL
2615 # Extract the first word of "dlltool", so it can be a program name with args.
2616 set dummy dlltool; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2620 $as_echo_n "(cached) " >&6
2622 if test -n "$ac_ct_DLLTOOL"; then
2623 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2643 if test -n "$ac_ct_DLLTOOL"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2645 $as_echo "$ac_ct_DLLTOOL" >&6; }
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2651 if test "x$ac_ct_DLLTOOL" = x; then
2654 case $cross_compiling:$ac_tool_warned in
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2658 ac_tool_warned=yes ;;
2660 DLLTOOL=$ac_ct_DLLTOOL
2663 DLLTOOL="$ac_cv_prog_DLLTOOL"
2666 if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_OBJDUMP+:} false; then :
2672 $as_echo_n "(cached) " >&6
2674 if test -n "$OBJDUMP"; then
2675 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 OBJDUMP=$ac_cv_prog_OBJDUMP
2695 if test -n "$OBJDUMP"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
2697 $as_echo "$OBJDUMP" >&6; }
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2705 if test -z "$ac_cv_prog_OBJDUMP"; then
2706 ac_ct_OBJDUMP=$OBJDUMP
2707 # Extract the first word of "objdump", so it can be a program name with args.
2708 set dummy objdump; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2712 $as_echo_n "(cached) " >&6
2714 if test -n "$ac_ct_OBJDUMP"; then
2715 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724 ac_cv_prog_ac_ct_OBJDUMP="objdump"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2735 if test -n "$ac_ct_OBJDUMP"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
2737 $as_echo "$ac_ct_OBJDUMP" >&6; }
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2743 if test "x$ac_ct_OBJDUMP" = x; then
2746 case $cross_compiling:$ac_tool_warned in
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750 ac_tool_warned=yes ;;
2752 OBJDUMP=$ac_ct_OBJDUMP
2755 OBJDUMP="$ac_cv_prog_OBJDUMP"
2761 test -z "$AS" && AS=as
2767 test -z "$DLLTOOL" && DLLTOOL=dlltool
2773 test -z "$OBJDUMP" && OBJDUMP=objdump
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2784 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2789 macro_version='2.4.6'
2790 macro_revision='2.4.6'
2804 ltmain=$ac_aux_dir/ltmain.sh
2806 # Backslashify metacharacters that are still active within
2807 # double-quoted strings.
2808 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2810 # Same as above, but do not quote variable references.
2811 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2813 # Sed substitution to delay expansion of an escaped shell variable in a
2814 # double_quote_subst'ed string.
2815 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2817 # Sed substitution to delay expansion of an escaped single quote.
2818 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2820 # Sed substitution to avoid accidental globbing in evaled expressions
2821 no_glob_subst='s/\*/\\\*/g'
2823 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2824 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2825 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2828 $as_echo_n "checking how to print strings... " >&6; }
2829 # Test print first, because it will be a builtin if present.
2830 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2831 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2833 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2836 # Use this function as a fallback that always works.
2837 func_fallback_echo ()
2839 eval 'cat <<_LTECHO_EOF
2843 ECHO='func_fallback_echo'
2846 # func_echo_all arg...
2847 # Invoke $ECHO with all args, space-separated.
2854 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2855 $as_echo "printf" >&6; } ;;
2856 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2857 $as_echo "print -r" >&6; } ;;
2858 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2859 $as_echo "cat" >&6; } ;;
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2919 if test -z "$ac_cv_prog_CC"; then
2921 # Extract the first word of "gcc", so it can be a program name with args.
2922 set dummy gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$ac_ct_CC"; then
2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_ac_ct_CC="gcc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2949 if test -n "$ac_ct_CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2951 $as_echo "$ac_ct_CC" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2957 if test "x$ac_ct_CC" = x; then
2960 case $cross_compiling:$ac_tool_warned in
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2964 ac_tool_warned=yes ;;
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2975 set dummy ${ac_tool_prefix}cc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_CC+:} false; then :
2979 $as_echo_n "(cached) " >&6
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_CC="${ac_tool_prefix}cc"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3013 if test -z "$CC"; then
3014 # Extract the first word of "cc", so it can be a program name with args.
3015 set dummy cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3033 ac_prog_rejected=yes
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 if test $ac_prog_rejected = yes; then
3045 # We found a bogon in the path, so make sure we never use it.
3046 set dummy $ac_cv_prog_CC
3048 if test $# != 0; then
3049 # We chose a different compiler from the bogus one.
3050 # However, it has the same basename, so the bogon will be chosen
3051 # first if we set CC to just the basename; use the full file name.
3053 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3069 if test -z "$CC"; then
3070 if test -n "$ac_tool_prefix"; then
3071 for ac_prog in cl.exe
3073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3110 test -n "$CC" && break
3113 if test -z "$CC"; then
3115 for ac_prog in cl.exe
3117 # Extract the first word of "$ac_prog", so it can be a program name with args.
3118 set dummy $ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3122 $as_echo_n "(cached) " >&6
3124 if test -n "$ac_ct_CC"; then
3125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_CC="$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145 if test -n "$ac_ct_CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3147 $as_echo "$ac_ct_CC" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3154 test -n "$ac_ct_CC" && break
3157 if test "x$ac_ct_CC" = x; then
3160 case $cross_compiling:$ac_tool_warned in
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3173 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error $? "no acceptable C compiler found in \$PATH
3176 See \`config.log' for more details" "$LINENO" 5; }
3178 # Provide some information about the compiler.
3179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3182 for ac_option in --version -v -V -qversion; do
3183 { { ac_try="$ac_compiler $ac_option >&5"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3192 if test -s conftest.err; then
3194 ... rest of stderr output deleted ...
3195 10q' conftest.err >conftest.er1
3196 cat conftest.er1 >&5
3198 rm -f conftest.er1 conftest.err
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3214 ac_clean_files_save=$ac_clean_files
3215 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3216 # Try to create an executable without -o first, disregard a.out.
3217 # It will help us diagnose broken compilers, and finding out an intuition
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3220 $as_echo_n "checking whether the C compiler works... " >&6; }
3221 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3223 # The possible output files:
3224 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3227 for ac_file in $ac_files
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236 if { { ac_try="$ac_link_default"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_link_default") 2>&5
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; then :
3247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3250 # so that the user can short-circuit this test for compilers unknown to
3252 for ac_file in $ac_files ''
3254 test -f "$ac_file" || continue
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3259 # We found the default executable, but exeext='' is most
3263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3265 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267 # We set ac_cv_exeext here because the later test for it is not
3268 # safe: cross compilers may not add the suffix if given an `-o'
3269 # argument, so we may need to know it at that point already.
3270 # Even if this section looks crufty: it has the advantage of
3277 test "$ac_cv_exeext" = no && ac_cv_exeext=
3282 if test -z "$ac_file"; then :
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error 77 "C compiler cannot create executables
3291 See \`config.log' for more details" "$LINENO" 5; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3299 $as_echo "$ac_file" >&6; }
3300 ac_exeext=$ac_cv_exeext
3302 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3305 $as_echo_n "checking for suffix of executables... " >&6; }
3306 if { { ac_try="$ac_link"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_link") 2>&5
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3318 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3319 # work properly (i.e., refer to `conftest.exe'), while it won't with
3321 for ac_file in conftest.exe conftest conftest.*; do
3322 test -f "$ac_file" || continue
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3334 See \`config.log' for more details" "$LINENO" 5; }
3336 rm -f conftest conftest$ac_cv_exeext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3338 $as_echo "$ac_cv_exeext" >&6; }
3340 rm -f conftest.$ac_ext
3341 EXEEXT=$ac_cv_exeext
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3349 FILE *f = fopen ("conftest.out", "w");
3350 return ferror (f) || fclose (f) != 0;
3356 ac_clean_files="$ac_clean_files conftest.out"
3357 # Check that the compiler produces executables we can run. If not, either
3358 # the compiler is broken, or we cross compile.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3360 $as_echo_n "checking whether we are cross compiling... " >&6; }
3361 if test "$cross_compiling" != yes; then
3362 { { ac_try="$ac_link"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link") 2>&5
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }
3373 if { ac_try='./conftest$ac_cv_exeext'
3374 { { case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_try") 2>&5
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; }; then
3386 if test "$cross_compiling" = maybe; then
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "cannot run C compiled programs.
3392 If you meant to cross compile, use \`--host'.
3393 See \`config.log' for more details" "$LINENO" 5; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3398 $as_echo "$cross_compiling" >&6; }
3400 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3401 ac_clean_files=$ac_clean_files_save
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3403 $as_echo_n "checking for suffix of object files... " >&6; }
3404 if ${ac_cv_objext+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3418 rm -f conftest.o conftest.obj
3419 if { { ac_try="$ac_compile"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_compile") 2>&5
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 for ac_file in conftest.o conftest.obj conftest.*; do
3431 test -f "$ac_file" || continue;
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3439 $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error $? "cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details" "$LINENO" 5; }
3447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3450 $as_echo "$ac_cv_objext" >&6; }
3451 OBJEXT=$ac_cv_objext
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3454 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3455 if ${ac_cv_c_compiler_gnu+:} false; then :
3456 $as_echo_n "(cached) " >&6
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3472 if ac_fn_c_try_compile "$LINENO"; then :
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3482 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3483 if test $ac_compiler_gnu = yes; then
3488 ac_test_CFLAGS=${CFLAGS+set}
3489 ac_save_CFLAGS=$CFLAGS
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3491 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3492 if ${ac_cv_prog_cc_g+:} false; then :
3493 $as_echo_n "(cached) " >&6
3495 ac_save_c_werror_flag=$ac_c_werror_flag
3496 ac_c_werror_flag=yes
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3510 if ac_fn_c_try_compile "$LINENO"; then :
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3525 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 if ac_fn_c_try_compile "$LINENO"; then :
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_c_werror_flag=$ac_save_c_werror_flag
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3552 $as_echo "$ac_cv_prog_cc_g" >&6; }
3553 if test "$ac_test_CFLAGS" = set; then
3554 CFLAGS=$ac_save_CFLAGS
3555 elif test $ac_cv_prog_cc_g = yes; then
3556 if test "$GCC" = yes; then
3562 if test "$GCC" = yes; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3569 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3570 if ${ac_cv_prog_cc_c89+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 ac_cv_prog_cc_c89=no
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3581 struct buf { int x; };
3582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3583 static char *e (p, i)
3589 static char *f (char * (*g) (char **, int), char **p, ...)
3594 s = g (p, va_arg (v,int));
3599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3600 function prototypes and stuff, but not '\xHH' hex character constants.
3601 These don't provoke an error unfortunately, instead are silently treated
3602 as 'x'. The following induces an error, until -std is added to get
3603 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3604 array size at least. It's necessary to write '\x00'==0 to get something
3605 that's true only with -std. */
3606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3608 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3609 inside strings and character constants. */
3611 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3613 int test (int i, double x);
3614 struct s1 {int (*f) (int a);};
3615 struct s2 {int (*f) (double a);};
3616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3622 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3627 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3628 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3630 CC="$ac_save_CC $ac_arg"
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_cv_prog_cc_c89=$ac_arg
3634 rm -f core conftest.err conftest.$ac_objext
3635 test "x$ac_cv_prog_cc_c89" != "xno" && break
3637 rm -f conftest.$ac_ext
3642 case "x$ac_cv_prog_cc_c89" in
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645 $as_echo "none needed" >&6; } ;;
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3648 $as_echo "unsupported" >&6; } ;;
3650 CC="$CC $ac_cv_prog_cc_c89"
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3652 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3654 if test "x$ac_cv_prog_cc_c89" != xno; then :
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3666 if ${ac_cv_path_SED+:} false; then :
3667 $as_echo_n "(cached) " >&6
3669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3670 for ac_i in 1 2 3 4 5 6 7; do
3671 ac_script="$ac_script$as_nl$ac_script"
3673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3674 { ac_script=; unset ac_script;}
3675 if test -z "$SED"; then
3676 ac_path_SED_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir=.
3683 for ac_prog in sed gsed; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3686 as_fn_executable_p "$ac_path_SED" || continue
3687 # Check for GNU ac_path_SED and select it if it is found.
3688 # Check for GNU $ac_path_SED
3689 case `"$ac_path_SED" --version 2>&1` in
3691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3694 $as_echo_n 0123456789 >"conftest.in"
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 $as_echo '' >> "conftest.nl"
3701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 as_fn_arith $ac_count + 1 && ac_count=$as_val
3704 if test $ac_count -gt ${ac_path_SED_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_SED="$ac_path_SED"
3707 ac_path_SED_max=$ac_count
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715 $ac_path_SED_found && break 3
3720 if test -z "$ac_cv_path_SED"; then
3721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3729 $as_echo "$ac_cv_path_SED" >&6; }
3730 SED="$ac_cv_path_SED"
3733 test -z "$SED" && SED=sed
3734 Xsed="$SED -e 1s/^X//"
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3747 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3748 if ${ac_cv_path_GREP+:} false; then :
3749 $as_echo_n "(cached) " >&6
3751 if test -z "$GREP"; then
3752 ac_path_GREP_found=false
3753 # Loop through the user's path and test for each of PROGNAME-LIST
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3758 test -z "$as_dir" && as_dir=.
3759 for ac_prog in grep ggrep; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3762 as_fn_executable_p "$ac_path_GREP" || continue
3763 # Check for GNU ac_path_GREP and select it if it is found.
3764 # Check for GNU $ac_path_GREP
3765 case `"$ac_path_GREP" --version 2>&1` in
3767 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3770 $as_echo_n 0123456789 >"conftest.in"
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 $as_echo 'GREP' >> "conftest.nl"
3777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779 as_fn_arith $ac_count + 1 && ac_count=$as_val
3780 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_GREP="$ac_path_GREP"
3783 ac_path_GREP_max=$ac_count
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3791 $ac_path_GREP_found && break 3
3796 if test -z "$ac_cv_path_GREP"; then
3797 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3800 ac_cv_path_GREP=$GREP
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3805 $as_echo "$ac_cv_path_GREP" >&6; }
3806 GREP="$ac_cv_path_GREP"
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3810 $as_echo_n "checking for egrep... " >&6; }
3811 if ${ac_cv_path_EGREP+:} false; then :
3812 $as_echo_n "(cached) " >&6
3814 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3815 then ac_cv_path_EGREP="$GREP -E"
3817 if test -z "$EGREP"; then
3818 ac_path_EGREP_found=false
3819 # Loop through the user's path and test for each of PROGNAME-LIST
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3824 test -z "$as_dir" && as_dir=.
3825 for ac_prog in egrep; do
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3828 as_fn_executable_p "$ac_path_EGREP" || continue
3829 # Check for GNU ac_path_EGREP and select it if it is found.
3830 # Check for GNU $ac_path_EGREP
3831 case `"$ac_path_EGREP" --version 2>&1` in
3833 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3836 $as_echo_n 0123456789 >"conftest.in"
3839 cat "conftest.in" "conftest.in" >"conftest.tmp"
3840 mv "conftest.tmp" "conftest.in"
3841 cp "conftest.in" "conftest.nl"
3842 $as_echo 'EGREP' >> "conftest.nl"
3843 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3845 as_fn_arith $ac_count + 1 && ac_count=$as_val
3846 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3847 # Best one so far, save it but keep looking for a better one
3848 ac_cv_path_EGREP="$ac_path_EGREP"
3849 ac_path_EGREP_max=$ac_count
3851 # 10*(2^10) chars as input seems more than enough
3852 test $ac_count -gt 10 && break
3854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3857 $ac_path_EGREP_found && break 3
3862 if test -z "$ac_cv_path_EGREP"; then
3863 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3866 ac_cv_path_EGREP=$EGREP
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3872 $as_echo "$ac_cv_path_EGREP" >&6; }
3873 EGREP="$ac_cv_path_EGREP"
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3877 $as_echo_n "checking for fgrep... " >&6; }
3878 if ${ac_cv_path_FGREP+:} false; then :
3879 $as_echo_n "(cached) " >&6
3881 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3882 then ac_cv_path_FGREP="$GREP -F"
3884 if test -z "$FGREP"; then
3885 ac_path_FGREP_found=false
3886 # Loop through the user's path and test for each of PROGNAME-LIST
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3891 test -z "$as_dir" && as_dir=.
3892 for ac_prog in fgrep; do
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3895 as_fn_executable_p "$ac_path_FGREP" || continue
3896 # Check for GNU ac_path_FGREP and select it if it is found.
3897 # Check for GNU $ac_path_FGREP
3898 case `"$ac_path_FGREP" --version 2>&1` in
3900 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3903 $as_echo_n 0123456789 >"conftest.in"
3906 cat "conftest.in" "conftest.in" >"conftest.tmp"
3907 mv "conftest.tmp" "conftest.in"
3908 cp "conftest.in" "conftest.nl"
3909 $as_echo 'FGREP' >> "conftest.nl"
3910 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912 as_fn_arith $ac_count + 1 && ac_count=$as_val
3913 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3914 # Best one so far, save it but keep looking for a better one
3915 ac_cv_path_FGREP="$ac_path_FGREP"
3916 ac_path_FGREP_max=$ac_count
3918 # 10*(2^10) chars as input seems more than enough
3919 test $ac_count -gt 10 && break
3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3924 $ac_path_FGREP_found && break 3
3929 if test -z "$ac_cv_path_FGREP"; then
3930 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3933 ac_cv_path_FGREP=$FGREP
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3939 $as_echo "$ac_cv_path_FGREP" >&6; }
3940 FGREP="$ac_cv_path_FGREP"
3943 test -z "$GREP" && GREP=grep
3963 # Check whether --with-gnu-ld was given.
3964 if test "${with_gnu_ld+set}" = set; then :
3965 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3971 if test yes = "$GCC"; then
3972 # Check if gcc -print-prog-name=ld gives a path.
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3974 $as_echo_n "checking for ld used by $CC... " >&6; }
3977 # gcc leaves a trailing carriage return, which upsets mingw
3978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3983 # Accept absolute paths.
3985 re_direlt='/[^/][^/]*/\.\./'
3986 # Canonicalize the pathname of ld
3987 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3988 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3989 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3991 test -z "$LD" && LD=$ac_prog
3994 # If it fails, then pretend we aren't using GCC.
3998 # If it is relative, then search for the first ld in PATH.
4002 elif test yes = "$with_gnu_ld"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4004 $as_echo_n "checking for GNU ld... " >&6; }
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4007 $as_echo_n "checking for non-GNU ld... " >&6; }
4009 if ${lt_cv_path_LD+:} false; then :
4010 $as_echo_n "(cached) " >&6
4012 if test -z "$LD"; then
4013 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4014 for ac_dir in $PATH; do
4016 test -z "$ac_dir" && ac_dir=.
4017 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4018 lt_cv_path_LD=$ac_dir/$ac_prog
4019 # Check to see if the program is GNU ld. I'd rather use --version,
4020 # but apparently some variants of GNU ld only accept -v.
4021 # Break only if it was the GNU/non-GNU ld that we prefer.
4022 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4023 *GNU* | *'with BFD'*)
4024 test no != "$with_gnu_ld" && break
4027 test yes != "$with_gnu_ld" && break
4034 lt_cv_path_LD=$LD # Let the user override the test with a path.
4039 if test -n "$LD"; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4041 $as_echo "$LD" >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4046 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4048 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4049 if ${lt_cv_prog_gnu_ld+:} false; then :
4050 $as_echo_n "(cached) " >&6
4052 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4053 case `$LD -v 2>&1 </dev/null` in
4054 *GNU* | *'with BFD'*)
4055 lt_cv_prog_gnu_ld=yes
4058 lt_cv_prog_gnu_ld=no
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4063 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4064 with_gnu_ld=$lt_cv_prog_gnu_ld
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4075 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4076 if ${lt_cv_path_NM+:} false; then :
4077 $as_echo_n "(cached) " >&6
4079 if test -n "$NM"; then
4080 # Let the user override the test.
4083 lt_nm_to_check=${ac_tool_prefix}nm
4084 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4085 lt_nm_to_check="$lt_nm_to_check nm"
4087 for lt_tmp_nm in $lt_nm_to_check; do
4088 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4089 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4091 test -z "$ac_dir" && ac_dir=.
4092 tmp_nm=$ac_dir/$lt_tmp_nm
4093 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4094 # Check to see if the nm accepts a BSD-compat flag.
4095 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4096 # nm: unknown option "B" ignored
4097 # Tru64's nm complains that /dev/null is an invalid object file
4098 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4100 mingw*) lt_bad_file=conftest.nm/nofile ;;
4101 *) lt_bad_file=/dev/null ;;
4103 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4104 *$lt_bad_file* | *'Invalid file or object type'*)
4105 lt_cv_path_NM="$tmp_nm -B"
4109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4111 lt_cv_path_NM="$tmp_nm -p"
4115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4116 continue # so that we can try to find one that supports BSD flags
4125 : ${lt_cv_path_NM=no}
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4129 $as_echo "$lt_cv_path_NM" >&6; }
4130 if test no != "$lt_cv_path_NM"; then
4133 # Didn't find any BSD compatible name lister, look for dumpbin.
4134 if test -n "$DUMPBIN"; then :
4135 # Let the user override the test.
4137 if test -n "$ac_tool_prefix"; then
4138 for ac_prog in dumpbin "link -dump"
4140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_DUMPBIN+:} false; then :
4145 $as_echo_n "(cached) " >&6
4147 if test -n "$DUMPBIN"; then
4148 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 DUMPBIN=$ac_cv_prog_DUMPBIN
4168 if test -n "$DUMPBIN"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4170 $as_echo "$DUMPBIN" >&6; }
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4177 test -n "$DUMPBIN" && break
4180 if test -z "$DUMPBIN"; then
4181 ac_ct_DUMPBIN=$DUMPBIN
4182 for ac_prog in dumpbin "link -dump"
4184 # Extract the first word of "$ac_prog", so it can be a program name with args.
4185 set dummy $ac_prog; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4189 $as_echo_n "(cached) " >&6
4191 if test -n "$ac_ct_DUMPBIN"; then
4192 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4212 if test -n "$ac_ct_DUMPBIN"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4214 $as_echo "$ac_ct_DUMPBIN" >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4221 test -n "$ac_ct_DUMPBIN" && break
4224 if test "x$ac_ct_DUMPBIN" = x; then
4227 case $cross_compiling:$ac_tool_warned in
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4231 ac_tool_warned=yes ;;
4233 DUMPBIN=$ac_ct_DUMPBIN
4237 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4239 DUMPBIN="$DUMPBIN -symbols -headers"
4247 if test : != "$DUMPBIN"; then
4251 test -z "$NM" && NM=nm
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4259 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4260 if ${lt_cv_nm_interface+:} false; then :
4261 $as_echo_n "(cached) " >&6
4263 lt_cv_nm_interface="BSD nm"
4264 echo "int some_variable = 0;" > conftest.$ac_ext
4265 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4266 (eval "$ac_compile" 2>conftest.err)
4267 cat conftest.err >&5
4268 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4269 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4270 cat conftest.err >&5
4271 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4272 cat conftest.out >&5
4273 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4274 lt_cv_nm_interface="MS dumpbin"
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4279 $as_echo "$lt_cv_nm_interface" >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4282 $as_echo_n "checking whether ln -s works... " >&6; }
4284 if test "$LN_S" = "ln -s"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4286 $as_echo "yes" >&6; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4289 $as_echo "no, using $LN_S" >&6; }
4292 # find the maximum length of command line arguments
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4294 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4295 if ${lt_cv_sys_max_cmd_len+:} false; then :
4296 $as_echo_n "(cached) " >&6
4303 # On DJGPP, this test can blow up pretty badly due to problems in libc
4304 # (any single argument exceeding 2000 bytes causes a buffer overrun
4305 # during glob expansion). Even if it were fixed, the result of this
4306 # check would be larger than it should be.
4307 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4311 # Under GNU Hurd, this test is not required because there is
4312 # no limit to the length of command line arguments.
4313 # Libtool will interpret -1 as no limit whatsoever
4314 lt_cv_sys_max_cmd_len=-1;
4317 cygwin* | mingw* | cegcc*)
4318 # On Win9x/ME, this test blows up -- it succeeds, but takes
4319 # about 5 minutes as the teststring grows exponentially.
4320 # Worse, since 9x/ME are not pre-emptively multitasking,
4321 # you end up with a "frozen" computer, even though with patience
4322 # the test eventually succeeds (with a max line length of 256k).
4323 # Instead, let's just punt: use the minimum linelength reported by
4324 # all of the supported platforms: 8192 (on NT/2K/XP).
4325 lt_cv_sys_max_cmd_len=8192;
4329 # On MiNT this can take a long time and run out of memory.
4330 lt_cv_sys_max_cmd_len=8192;
4334 # On AmigaOS with pdksh, this test takes hours, literally.
4335 # So we just punt and use a minimum line length of 8192.
4336 lt_cv_sys_max_cmd_len=8192;
4339 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4340 # This has been around since 386BSD, at least. Likely further.
4341 if test -x /sbin/sysctl; then
4342 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4343 elif test -x /usr/sbin/sysctl; then
4344 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4346 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4348 # And add a safety zone
4349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4354 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4355 lt_cv_sys_max_cmd_len=196608
4359 # The test takes a long time on OS/2.
4360 lt_cv_sys_max_cmd_len=8192
4364 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4365 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4366 # nice to cause kernel panics so lets avoid the loop below.
4367 # First set a reasonable default.
4368 lt_cv_sys_max_cmd_len=16384
4370 if test -x /sbin/sysconfig; then
4371 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4372 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4377 lt_cv_sys_max_cmd_len=102400
4379 sysv5* | sco5v6* | sysv4.2uw2*)
4380 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4381 if test -n "$kargmax"; then
4382 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4384 lt_cv_sys_max_cmd_len=32768
4388 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4389 if test -n "$lt_cv_sys_max_cmd_len" && \
4390 test undefined != "$lt_cv_sys_max_cmd_len"; then
4391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4394 # Make teststring a little bigger before we do anything with it.
4395 # a 1K string should be a reasonable start.
4396 for i in 1 2 3 4 5 6 7 8; do
4397 teststring=$teststring$teststring
4399 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4400 # If test is not a shell built-in, we'll probably end up computing a
4401 # maximum length that is only half of the actual maximum length, but
4403 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4404 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4405 test 17 != "$i" # 1/2 MB should be enough
4408 teststring=$teststring$teststring
4410 # Only check the string length outside the loop.
4411 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4413 # Add a significant safety factor because C++ compilers can tack on
4414 # massive amounts of additional arguments before passing them to the
4415 # linker. It appears as though 1/2 is a usable value.
4416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4423 if test -n "$lt_cv_sys_max_cmd_len"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4425 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4428 $as_echo "none" >&6; }
4430 max_cmd_len=$lt_cv_sys_max_cmd_len
4441 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4451 # test EBCDIC or ASCII
4452 case `echo X|tr X '\101'` in
4453 A) # ASCII based system
4454 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4455 lt_SP2NL='tr \040 \012'
4456 lt_NL2SP='tr \015\012 \040\040'
4458 *) # EBCDIC based system
4459 lt_SP2NL='tr \100 \n'
4460 lt_NL2SP='tr \r\n \100\100'
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4473 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4474 if ${lt_cv_to_host_file_cmd+:} false; then :
4475 $as_echo_n "(cached) " >&6
4480 *-*-mingw* ) # actually msys
4481 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4484 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4486 * ) # otherwise, assume *nix
4487 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4493 *-*-mingw* ) # actually msys
4494 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4497 lt_cv_to_host_file_cmd=func_convert_file_noop
4499 * ) # otherwise, assume *nix
4500 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4504 * ) # unhandled hosts (and "normal" native builds)
4505 lt_cv_to_host_file_cmd=func_convert_file_noop
4511 to_host_file_cmd=$lt_cv_to_host_file_cmd
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4513 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4520 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4521 if ${lt_cv_to_tool_file_cmd+:} false; then :
4522 $as_echo_n "(cached) " >&6
4524 #assume ordinary cross tools, or native build.
4525 lt_cv_to_tool_file_cmd=func_convert_file_noop
4529 *-*-mingw* ) # actually msys
4530 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4538 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4540 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4547 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4548 if ${lt_cv_ld_reload_flag+:} false; then :
4549 $as_echo_n "(cached) " >&6
4551 lt_cv_ld_reload_flag='-r'
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4554 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4555 reload_flag=$lt_cv_ld_reload_flag
4556 case $reload_flag in
4558 *) reload_flag=" $reload_flag" ;;
4560 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4562 cygwin* | mingw* | pw32* | cegcc*)
4563 if test yes != "$GCC"; then
4568 if test yes = "$GCC"; then
4569 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4584 if test -n "$ac_tool_prefix"; then
4585 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4586 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if ${ac_cv_prog_OBJDUMP+:} false; then :
4590 $as_echo_n "(cached) " >&6
4592 if test -n "$OBJDUMP"; then
4593 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 OBJDUMP=$ac_cv_prog_OBJDUMP
4613 if test -n "$OBJDUMP"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4615 $as_echo "$OBJDUMP" >&6; }
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4623 if test -z "$ac_cv_prog_OBJDUMP"; then
4624 ac_ct_OBJDUMP=$OBJDUMP
4625 # Extract the first word of "objdump", so it can be a program name with args.
4626 set dummy objdump; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4630 $as_echo_n "(cached) " >&6
4632 if test -n "$ac_ct_OBJDUMP"; then
4633 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4653 if test -n "$ac_ct_OBJDUMP"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4655 $as_echo "$ac_ct_OBJDUMP" >&6; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4661 if test "x$ac_ct_OBJDUMP" = x; then
4664 case $cross_compiling:$ac_tool_warned in
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4668 ac_tool_warned=yes ;;
4670 OBJDUMP=$ac_ct_OBJDUMP
4673 OBJDUMP="$ac_cv_prog_OBJDUMP"
4676 test -z "$OBJDUMP" && OBJDUMP=objdump
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4684 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4685 if ${lt_cv_deplibs_check_method+:} false; then :
4686 $as_echo_n "(cached) " >&6
4688 lt_cv_file_magic_cmd='$MAGIC_CMD'
4689 lt_cv_file_magic_test_file=
4690 lt_cv_deplibs_check_method='unknown'
4691 # Need to set the preceding variable on all platforms that support
4692 # interlibrary dependencies.
4693 # 'none' -- dependencies not supported.
4694 # 'unknown' -- same as none, but documents that we really don't know.
4695 # 'pass_all' -- all dependencies passed with no checks.
4696 # 'test_compile' -- check by making test program.
4697 # 'file_magic [[regex]]' -- check by looking for files in library path
4698 # that responds to the $file_magic_cmd with a given extended regex.
4699 # If you have 'file' or equivalent on your system and you're not sure
4700 # whether 'pass_all' will *always* work, you probably want this one.
4704 lt_cv_deplibs_check_method=pass_all
4708 lt_cv_deplibs_check_method=pass_all
4712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4713 lt_cv_file_magic_cmd='/usr/bin/file -L'
4714 lt_cv_file_magic_test_file=/shlib/libc.so
4718 # func_win32_libid is a shell function defined in ltmain.sh
4719 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4720 lt_cv_file_magic_cmd='func_win32_libid'
4724 # Base MSYS/MinGW do not provide the 'file' command needed by
4725 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4726 # unless we find 'file', for example because we are cross-compiling.
4727 if ( file / ) >/dev/null 2>&1; then
4728 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4729 lt_cv_file_magic_cmd='func_win32_libid'
4731 # Keep this pattern in sync with the one in func_win32_libid.
4732 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4733 lt_cv_file_magic_cmd='$OBJDUMP -f'
4738 # use the weaker test based on 'objdump'. See mingw*.
4739 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4740 lt_cv_file_magic_cmd='$OBJDUMP -f'
4743 darwin* | rhapsody*)
4744 lt_cv_deplibs_check_method=pass_all
4747 freebsd* | dragonfly*)
4748 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4751 # Not sure whether the presence of OpenBSD here was a mistake.
4752 # Let's accept both of them until this is cleared up.
4753 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4754 lt_cv_file_magic_cmd=/usr/bin/file
4755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4759 lt_cv_deplibs_check_method=pass_all
4764 lt_cv_deplibs_check_method=pass_all
4767 hpux10.20* | hpux11*)
4768 lt_cv_file_magic_cmd=/usr/bin/file
4771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4772 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4775 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]'
4776 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4780 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4786 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4790 irix5* | irix6* | nonstopux*)
4792 *-32|*"-32 ") libmagic=32-bit;;
4793 *-n32|*"-n32 ") libmagic=N32;;
4794 *-64|*"-64 ") libmagic=64-bit;;
4795 *) libmagic=never-match;;
4797 lt_cv_deplibs_check_method=pass_all
4800 # This must be glibc/ELF.
4801 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4802 lt_cv_deplibs_check_method=pass_all
4806 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4815 lt_cv_file_magic_cmd=/usr/bin/file
4816 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4820 lt_cv_deplibs_check_method=pass_all
4824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4831 osf3* | osf4* | osf5*)
4832 lt_cv_deplibs_check_method=pass_all
4836 lt_cv_deplibs_check_method=pass_all
4840 lt_cv_deplibs_check_method=pass_all
4843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4844 lt_cv_deplibs_check_method=pass_all
4848 case $host_vendor in
4850 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]'
4851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4854 lt_cv_deplibs_check_method=pass_all
4857 lt_cv_file_magic_cmd='/bin/file'
4858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4861 lt_cv_file_magic_cmd='/bin/file'
4862 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4863 lt_cv_file_magic_test_file=/lib/libc.so
4866 lt_cv_deplibs_check_method=pass_all
4869 lt_cv_deplibs_check_method=pass_all
4875 lt_cv_deplibs_check_method=pass_all
4878 lt_cv_deplibs_check_method=pass_all
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4884 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4888 if test "$build" = "$host"; then
4891 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4894 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4900 file_magic_cmd=$lt_cv_file_magic_cmd
4901 deplibs_check_method=$lt_cv_deplibs_check_method
4902 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4925 if test -n "$ac_tool_prefix"; then
4926 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_DLLTOOL+:} false; then :
4931 $as_echo_n "(cached) " >&6
4933 if test -n "$DLLTOOL"; then
4934 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 DLLTOOL=$ac_cv_prog_DLLTOOL
4954 if test -n "$DLLTOOL"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4956 $as_echo "$DLLTOOL" >&6; }
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4964 if test -z "$ac_cv_prog_DLLTOOL"; then
4965 ac_ct_DLLTOOL=$DLLTOOL
4966 # Extract the first word of "dlltool", so it can be a program name with args.
4967 set dummy dlltool; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4971 $as_echo_n "(cached) " >&6
4973 if test -n "$ac_ct_DLLTOOL"; then
4974 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4994 if test -n "$ac_ct_DLLTOOL"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4996 $as_echo "$ac_ct_DLLTOOL" >&6; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5002 if test "x$ac_ct_DLLTOOL" = x; then
5005 case $cross_compiling:$ac_tool_warned in
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5009 ac_tool_warned=yes ;;
5011 DLLTOOL=$ac_ct_DLLTOOL
5014 DLLTOOL="$ac_cv_prog_DLLTOOL"
5017 test -z "$DLLTOOL" && DLLTOOL=dlltool
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5026 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5027 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5028 $as_echo_n "(cached) " >&6
5030 lt_cv_sharedlib_from_linklib_cmd='unknown'
5033 cygwin* | mingw* | pw32* | cegcc*)
5034 # two different shell functions defined in ltmain.sh;
5035 # decide which one to use based on capabilities of $DLLTOOL
5036 case `$DLLTOOL --help 2>&1` in
5037 *--identify-strict*)
5038 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5041 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5046 # fallback: assume linklib IS sharedlib
5047 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5053 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5054 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5055 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5064 if test -n "$ac_tool_prefix"; then
5067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_prog_AR+:} false; then :
5072 $as_echo_n "(cached) " >&6
5074 if test -n "$AR"; then
5075 ac_cv_prog_AR="$AR" # Let the user override the test.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 if test -n "$AR"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5097 $as_echo "$AR" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5104 test -n "$AR" && break
5107 if test -z "$AR"; then
5111 # Extract the first word of "$ac_prog", so it can be a program name with args.
5112 set dummy $ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5116 $as_echo_n "(cached) " >&6
5118 if test -n "$ac_ct_AR"; then
5119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_ac_ct_AR="$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5139 if test -n "$ac_ct_AR"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5141 $as_echo "$ac_ct_AR" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 test -n "$ac_ct_AR" && break
5151 if test "x$ac_ct_AR" = x; then
5154 case $cross_compiling:$ac_tool_warned in
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158 ac_tool_warned=yes ;;
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5178 $as_echo_n "checking for archiver @FILE support... " >&6; }
5179 if ${lt_cv_ar_at_file+:} false; then :
5180 $as_echo_n "(cached) " >&6
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195 echo conftest.$ac_objext > conftest.lst
5196 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5198 (eval $lt_ar_try) 2>&5
5200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5201 test $ac_status = 0; }
5202 if test 0 -eq "$ac_status"; then
5203 # Ensure the archiver fails upon bogus file names.
5204 rm -f conftest.$ac_objext libconftest.a
5205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5206 (eval $lt_ar_try) 2>&5
5208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5209 test $ac_status = 0; }
5210 if test 0 -ne "$ac_status"; then
5214 rm -f conftest.* libconftest.a
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5221 $as_echo "$lt_cv_ar_at_file" >&6; }
5223 if test no = "$lt_cv_ar_at_file"; then
5226 archiver_list_spec=$lt_cv_ar_at_file
5235 if test -n "$ac_tool_prefix"; then
5236 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5237 set dummy ${ac_tool_prefix}strip; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_prog_STRIP+:} false; then :
5241 $as_echo_n "(cached) " >&6
5243 if test -n "$STRIP"; then
5244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 STRIP=$ac_cv_prog_STRIP
5264 if test -n "$STRIP"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5266 $as_echo "$STRIP" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5274 if test -z "$ac_cv_prog_STRIP"; then
5276 # Extract the first word of "strip", so it can be a program name with args.
5277 set dummy strip; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5281 $as_echo_n "(cached) " >&6
5283 if test -n "$ac_ct_STRIP"; then
5284 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_ac_ct_STRIP="strip"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5304 if test -n "$ac_ct_STRIP"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5306 $as_echo "$ac_ct_STRIP" >&6; }
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5312 if test "x$ac_ct_STRIP" = x; then
5315 case $cross_compiling:$ac_tool_warned in
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5319 ac_tool_warned=yes ;;
5324 STRIP="$ac_cv_prog_STRIP"
5327 test -z "$STRIP" && STRIP=:
5334 if test -n "$ac_tool_prefix"; then
5335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_RANLIB+:} false; then :
5340 $as_echo_n "(cached) " >&6
5342 if test -n "$RANLIB"; then
5343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 RANLIB=$ac_cv_prog_RANLIB
5363 if test -n "$RANLIB"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5365 $as_echo "$RANLIB" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5373 if test -z "$ac_cv_prog_RANLIB"; then
5374 ac_ct_RANLIB=$RANLIB
5375 # Extract the first word of "ranlib", so it can be a program name with args.
5376 set dummy ranlib; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5380 $as_echo_n "(cached) " >&6
5382 if test -n "$ac_ct_RANLIB"; then
5383 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_ac_ct_RANLIB="ranlib"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5403 if test -n "$ac_ct_RANLIB"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5405 $as_echo "$ac_ct_RANLIB" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5411 if test "x$ac_ct_RANLIB" = x; then
5414 case $cross_compiling:$ac_tool_warned in
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5418 ac_tool_warned=yes ;;
5420 RANLIB=$ac_ct_RANLIB
5423 RANLIB="$ac_cv_prog_RANLIB"
5426 test -z "$RANLIB" && RANLIB=:
5433 # Determine commands to create old-style static archives.
5434 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5435 old_postinstall_cmds='chmod 644 $oldlib'
5436 old_postuninstall_cmds=
5438 if test -n "$RANLIB"; then
5441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5444 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5447 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5452 lock_old_archive_extraction=yes ;;
5454 lock_old_archive_extraction=no ;;
5477 for ac_prog in gawk mawk nawk awk
5479 # Extract the first word of "$ac_prog", so it can be a program name with args.
5480 set dummy $ac_prog; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_AWK+:} false; then :
5484 $as_echo_n "(cached) " >&6
5486 if test -n "$AWK"; then
5487 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_AWK="$ac_prog"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 if test -n "$AWK"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5509 $as_echo "$AWK" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5516 test -n "$AWK" && break
5537 # If no C compiler was specified, use CC.
5540 # If no C compiler flags were specified, use CFLAGS.
5541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5543 # Allow CC to be a program name with arguments.
5547 # Check for command to grab the raw symbol name followed by C symbol from nm.
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5549 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5550 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5551 $as_echo_n "(cached) " >&6
5554 # These are sane defaults that work on at least a few old systems.
5555 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5557 # Character class describing NM global symbol codes.
5558 symcode='[BCDEGRST]'
5560 # Regexp to match symbols that can be accessed directly from C.
5561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5563 # Define system-specific variables.
5568 cygwin* | mingw* | pw32* | cegcc*)
5569 symcode='[ABCDGISTW]'
5572 if test ia64 = "$host_cpu"; then
5573 symcode='[ABCDEGRST]'
5577 symcode='[BCDEGRST]'
5580 symcode='[BCDEGQRST]'
5591 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5599 # If we're using GNU nm, then use its standard symbol codes.
5600 case `$NM -V 2>&1` in
5601 *GNU* | *'with BFD'*)
5602 symcode='[ABCDGIRSTW]' ;;
5605 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5606 # Gets list of data symbols to import.
5607 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5608 # Adjust the below global symbol transforms to fixup imported variables.
5609 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5610 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5611 lt_c_name_lib_hook="\
5612 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5613 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5615 # Disable hooks by default.
5616 lt_cv_sys_global_symbol_to_import=
5622 # Transform an extracted symbol line into a proper C declaration.
5623 # Some systems (esp. on ia64) link data and code symbols differently,
5624 # so use this general approach.
5625 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5627 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5628 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5630 # Transform an extracted symbol line into symbol name and symbol address
5631 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5633 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5634 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5636 # Transform an extracted symbol line into symbol name with lib prefix and
5638 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5639 $lt_c_name_lib_hook\
5640 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5641 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5642 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5644 # Handle CRLF in mingw tool chain
5648 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5652 # Try without a prefix underscore, then with it.
5653 for ac_symprfx in "" "_"; do
5655 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5656 symxfrm="\\1 $ac_symprfx\\2 \\2"
5658 # Write the raw and C identifiers.
5659 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5660 # Fake it for dumpbin and say T for any non-static function,
5661 # D for any global variable and I for any imported variable.
5662 # Also find C++ and __fastcall symbols from MSVC++,
5663 # which start with @ or ?.
5664 lt_cv_sys_global_symbol_pipe="$AWK '"\
5665 " {last_section=section; section=\$ 3};"\
5666 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5667 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5668 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5669 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5670 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5671 " \$ 0!~/External *\|/{next};"\
5672 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5673 " {if(hide[section]) next};"\
5674 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5675 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5676 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5677 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5678 " ' prfx=^$ac_symprfx"
5680 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5682 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5684 # Check to see that the pipe works correctly.
5688 cat > conftest.$ac_ext <<_LT_EOF
5693 void nm_test_func(void);
5694 void nm_test_func(void){}
5698 int main(){nm_test_var='a';nm_test_func();return(0);}
5701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5702 (eval $ac_compile) 2>&5
5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705 test $ac_status = 0; }; then
5706 # Now try to grab the symbols.
5708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5709 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712 test $ac_status = 0; } && test -s "$nlist"; then
5713 # Try sorting and uniquifying the output.
5714 if sort "$nlist" | uniq > "$nlist"T; then
5715 mv -f "$nlist"T "$nlist"
5720 # Make sure that we snagged all the symbols we need.
5721 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5722 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5723 cat <<_LT_EOF > conftest.$ac_ext
5724 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5725 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5726 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5727 relocations are performed -- see ld's documentation on pseudo-relocs. */
5728 # define LT_DLSYM_CONST
5729 #elif defined __osf__
5730 /* This system does not cope well with relocations in const data. */
5731 # define LT_DLSYM_CONST
5733 # define LT_DLSYM_CONST const
5741 # Now generate the symbol file.
5742 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5744 cat <<_LT_EOF >> conftest.$ac_ext
5746 /* The mapping between symbol names and symbols. */
5747 LT_DLSYM_CONST struct {
5751 lt__PROGRAM__LTX_preloaded_symbols[] =
5753 { "@PROGRAM@", (void *) 0 },
5755 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5756 cat <<\_LT_EOF >> conftest.$ac_ext
5760 /* This works around a problem in FreeBSD linker */
5761 #ifdef FREEBSD_WORKAROUND
5762 static const void *lt_preloaded_setup() {
5763 return lt__PROGRAM__LTX_preloaded_symbols;
5771 # Now try linking the two files.
5772 mv conftest.$ac_objext conftstm.$ac_objext
5773 lt_globsym_save_LIBS=$LIBS
5774 lt_globsym_save_CFLAGS=$CFLAGS
5775 LIBS=conftstm.$ac_objext
5776 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5778 (eval $ac_link) 2>&5
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5784 LIBS=$lt_globsym_save_LIBS
5785 CFLAGS=$lt_globsym_save_CFLAGS
5787 echo "cannot find nm_test_func in $nlist" >&5
5790 echo "cannot find nm_test_var in $nlist" >&5
5793 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5796 echo "$progname: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5799 rm -rf conftest* conftst*
5801 # Do not use the global_symbol_pipe unless it works.
5802 if test yes = "$pipe_works"; then
5805 lt_cv_sys_global_symbol_pipe=
5811 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5812 lt_cv_sys_global_symbol_to_cdecl=
5814 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5816 $as_echo "failed" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5819 $as_echo "ok" >&6; }
5822 # Response file support.
5823 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5824 nm_file_list_spec='@'
5825 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5826 nm_file_list_spec='@'
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5866 $as_echo_n "checking for sysroot... " >&6; }
5868 # Check whether --with-sysroot was given.
5869 if test "${with_sysroot+set}" = set; then :
5870 withval=$with_sysroot;
5877 case $with_sysroot in #(
5879 if test yes = "$GCC"; then
5880 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5884 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5890 $as_echo "$with_sysroot" >&6; }
5891 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5896 $as_echo "${lt_sysroot:-no}" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5903 $as_echo_n "checking for a working dd... " >&6; }
5904 if ${ac_cv_path_lt_DD+:} false; then :
5905 $as_echo_n "(cached) " >&6
5907 printf 0123456789abcdef0123456789abcdef >conftest.i
5908 cat conftest.i conftest.i >conftest2.i
5910 if test -z "$lt_DD"; then
5911 ac_path_lt_DD_found=false
5912 # Loop through the user's path and test for each of PROGNAME-LIST
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_prog in dd; do
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5921 as_fn_executable_p "$ac_path_lt_DD" || continue
5922 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5923 cmp -s conftest.i conftest.out \
5924 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5926 $ac_path_lt_DD_found && break 3
5931 if test -z "$ac_cv_path_lt_DD"; then
5935 ac_cv_path_lt_DD=$lt_DD
5938 rm -f conftest.i conftest2.i conftest.out
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5941 $as_echo "$ac_cv_path_lt_DD" >&6; }
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5945 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5946 if ${lt_cv_truncate_bin+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 printf 0123456789abcdef0123456789abcdef >conftest.i
5950 cat conftest.i conftest.i >conftest2.i
5952 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5953 cmp -s conftest.i conftest.out \
5954 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5956 rm -f conftest.i conftest2.i conftest.out
5957 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5960 $as_echo "$lt_cv_truncate_bin" >&6; }
5968 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5971 for cc_temp in $*""; do
5973 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5974 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5979 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5982 # Check whether --enable-libtool-lock was given.
5983 if test "${enable_libtool_lock+set}" = set; then :
5984 enableval=$enable_libtool_lock;
5987 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5989 # Some flags need to be propagated to the compiler or linker for good
5993 # Find out what ABI is being produced by ac_compile, and set mode
5994 # options accordingly.
5995 echo 'int i;' > conftest.$ac_ext
5996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5997 (eval $ac_compile) 2>&5
5999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000 test $ac_status = 0; }; then
6001 case `/usr/bin/file conftest.$ac_objext` in
6013 # Find out what ABI is being produced by ac_compile, and set linker
6014 # options accordingly.
6015 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6017 (eval $ac_compile) 2>&5
6019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020 test $ac_status = 0; }; then
6021 if test yes = "$lt_cv_prog_gnu_ld"; then
6022 case `/usr/bin/file conftest.$ac_objext` in
6024 LD="${LD-ld} -melf32bsmip"
6027 LD="${LD-ld} -melf32bmipn32"
6030 LD="${LD-ld} -melf64bmip"
6034 case `/usr/bin/file conftest.$ac_objext` in
6051 # Find out what ABI is being produced by ac_compile, and set linker
6052 # options accordingly.
6053 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6055 (eval $ac_compile) 2>&5
6057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6058 test $ac_status = 0; }; then
6060 case `/usr/bin/file conftest.$ac_objext` in
6068 case `/usr/bin/file conftest.$ac_objext` in
6070 emul="${emul}btsmip"
6073 emul="${emul}ltsmip"
6076 case `/usr/bin/file conftest.$ac_objext` in
6081 LD="${LD-ld} -m $emul"
6086 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6087 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6088 # Find out what ABI is being produced by ac_compile, and set linker
6089 # options accordingly. Note that the listed cases only cover the
6090 # situations where additional linker options are needed (such as when
6091 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6092 # vice versa); the common cases where no linker options are needed do
6093 # not appear in the list.
6094 echo 'int i;' > conftest.$ac_ext
6095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6096 (eval $ac_compile) 2>&5
6098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6099 test $ac_status = 0; }; then
6100 case `/usr/bin/file conftest.o` in
6103 x86_64-*kfreebsd*-gnu)
6104 LD="${LD-ld} -m elf_i386_fbsd"
6107 case `/usr/bin/file conftest.o` in
6109 LD="${LD-ld} -m elf32_x86_64"
6112 LD="${LD-ld} -m elf_i386"
6116 powerpc64le-*linux*)
6117 LD="${LD-ld} -m elf32lppclinux"
6120 LD="${LD-ld} -m elf32ppclinux"
6123 LD="${LD-ld} -m elf_s390"
6126 LD="${LD-ld} -m elf32_sparc"
6132 x86_64-*kfreebsd*-gnu)
6133 LD="${LD-ld} -m elf_x86_64_fbsd"
6136 LD="${LD-ld} -m elf_x86_64"
6139 LD="${LD-ld} -m elf64lppc"
6142 LD="${LD-ld} -m elf64ppc"
6144 s390*-*linux*|s390*-*tpf*)
6145 LD="${LD-ld} -m elf64_s390"
6148 LD="${LD-ld} -m elf64_sparc"
6158 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6160 CFLAGS="$CFLAGS -belf"
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6162 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6163 if ${lt_cv_cc_needs_belf+:} false; then :
6164 $as_echo_n "(cached) " >&6
6167 ac_cpp='$CPP $CPPFLAGS'
6168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6183 if ac_fn_c_try_link "$LINENO"; then :
6184 lt_cv_cc_needs_belf=yes
6186 lt_cv_cc_needs_belf=no
6188 rm -f core conftest.err conftest.$ac_objext \
6189 conftest$ac_exeext conftest.$ac_ext
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6198 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6199 if test yes != "$lt_cv_cc_needs_belf"; then
6200 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6205 # Find out what ABI is being produced by ac_compile, and set linker
6206 # options accordingly.
6207 echo 'int i;' > conftest.$ac_ext
6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6209 (eval $ac_compile) 2>&5
6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; }; then
6213 case `/usr/bin/file conftest.o` in
6215 case $lt_cv_prog_gnu_ld in
6218 i?86-*-solaris*|x86_64-*-solaris*)
6219 LD="${LD-ld} -m elf_x86_64"
6222 LD="${LD-ld} -m elf64_sparc"
6225 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6226 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6231 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6243 need_locks=$enable_libtool_lock
6245 if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}mt; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6251 $as_echo_n "(cached) " >&6
6253 if test -n "$MANIFEST_TOOL"; then
6254 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6274 if test -n "$MANIFEST_TOOL"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6276 $as_echo "$MANIFEST_TOOL" >&6; }
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6284 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6285 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6286 # Extract the first word of "mt", so it can be a program name with args.
6287 set dummy mt; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6291 $as_echo_n "(cached) " >&6
6293 if test -n "$ac_ct_MANIFEST_TOOL"; then
6294 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6314 if test -n "$ac_ct_MANIFEST_TOOL"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6316 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6322 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6325 case $cross_compiling:$ac_tool_warned in
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6331 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6334 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6337 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6339 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6340 if ${lt_cv_path_mainfest_tool+:} false; then :
6341 $as_echo_n "(cached) " >&6
6343 lt_cv_path_mainfest_tool=no
6344 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6345 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6346 cat conftest.err >&5
6347 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6348 lt_cv_path_mainfest_tool=yes
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6353 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6354 if test yes != "$lt_cv_path_mainfest_tool"; then
6364 rhapsody* | darwin*)
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6371 $as_echo_n "(cached) " >&6
6373 if test -n "$DSYMUTIL"; then
6374 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6394 if test -n "$DSYMUTIL"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6396 $as_echo "$DSYMUTIL" >&6; }
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 if test -z "$ac_cv_prog_DSYMUTIL"; then
6405 ac_ct_DSYMUTIL=$DSYMUTIL
6406 # Extract the first word of "dsymutil", so it can be a program name with args.
6407 set dummy dsymutil; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$ac_ct_DSYMUTIL"; then
6414 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6434 if test -n "$ac_ct_DSYMUTIL"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6436 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6442 if test "x$ac_ct_DSYMUTIL" = x; then
6445 case $cross_compiling:$ac_tool_warned in
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6451 DSYMUTIL=$ac_ct_DSYMUTIL
6454 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6457 if test -n "$ac_tool_prefix"; then
6458 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6459 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_NMEDIT+:} false; then :
6463 $as_echo_n "(cached) " >&6
6465 if test -n "$NMEDIT"; then
6466 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 NMEDIT=$ac_cv_prog_NMEDIT
6486 if test -n "$NMEDIT"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6488 $as_echo "$NMEDIT" >&6; }
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6496 if test -z "$ac_cv_prog_NMEDIT"; then
6497 ac_ct_NMEDIT=$NMEDIT
6498 # Extract the first word of "nmedit", so it can be a program name with args.
6499 set dummy nmedit; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6503 $as_echo_n "(cached) " >&6
6505 if test -n "$ac_ct_NMEDIT"; then
6506 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6526 if test -n "$ac_ct_NMEDIT"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6528 $as_echo "$ac_ct_NMEDIT" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6534 if test "x$ac_ct_NMEDIT" = x; then
6537 case $cross_compiling:$ac_tool_warned in
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541 ac_tool_warned=yes ;;
6543 NMEDIT=$ac_ct_NMEDIT
6546 NMEDIT="$ac_cv_prog_NMEDIT"
6549 if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_LIPO+:} false; then :
6555 $as_echo_n "(cached) " >&6
6557 if test -n "$LIPO"; then
6558 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 LIPO=$ac_cv_prog_LIPO
6578 if test -n "$LIPO"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6580 $as_echo "$LIPO" >&6; }
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6588 if test -z "$ac_cv_prog_LIPO"; then
6590 # Extract the first word of "lipo", so it can be a program name with args.
6591 set dummy lipo; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6595 $as_echo_n "(cached) " >&6
6597 if test -n "$ac_ct_LIPO"; then
6598 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607 ac_cv_prog_ac_ct_LIPO="lipo"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6618 if test -n "$ac_ct_LIPO"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6620 $as_echo "$ac_ct_LIPO" >&6; }
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6626 if test "x$ac_ct_LIPO" = x; then
6629 case $cross_compiling:$ac_tool_warned in
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633 ac_tool_warned=yes ;;
6638 LIPO="$ac_cv_prog_LIPO"
6641 if test -n "$ac_tool_prefix"; then
6642 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6643 set dummy ${ac_tool_prefix}otool; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_OTOOL+:} false; then :
6647 $as_echo_n "(cached) " >&6
6649 if test -n "$OTOOL"; then
6650 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 OTOOL=$ac_cv_prog_OTOOL
6670 if test -n "$OTOOL"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6672 $as_echo "$OTOOL" >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6680 if test -z "$ac_cv_prog_OTOOL"; then
6682 # Extract the first word of "otool", so it can be a program name with args.
6683 set dummy otool; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6687 $as_echo_n "(cached) " >&6
6689 if test -n "$ac_ct_OTOOL"; then
6690 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_ac_ct_OTOOL="otool"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6710 if test -n "$ac_ct_OTOOL"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6712 $as_echo "$ac_ct_OTOOL" >&6; }
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6718 if test "x$ac_ct_OTOOL" = x; then
6721 case $cross_compiling:$ac_tool_warned in
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725 ac_tool_warned=yes ;;
6730 OTOOL="$ac_cv_prog_OTOOL"
6733 if test -n "$ac_tool_prefix"; then
6734 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_OTOOL64+:} false; then :
6739 $as_echo_n "(cached) " >&6
6741 if test -n "$OTOOL64"; then
6742 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 OTOOL64=$ac_cv_prog_OTOOL64
6762 if test -n "$OTOOL64"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6764 $as_echo "$OTOOL64" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6772 if test -z "$ac_cv_prog_OTOOL64"; then
6773 ac_ct_OTOOL64=$OTOOL64
6774 # Extract the first word of "otool64", so it can be a program name with args.
6775 set dummy otool64; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6779 $as_echo_n "(cached) " >&6
6781 if test -n "$ac_ct_OTOOL64"; then
6782 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791 ac_cv_prog_ac_ct_OTOOL64="otool64"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6802 if test -n "$ac_ct_OTOOL64"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6804 $as_echo "$ac_ct_OTOOL64" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6810 if test "x$ac_ct_OTOOL64" = x; then
6813 case $cross_compiling:$ac_tool_warned in
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned=yes ;;
6819 OTOOL64=$ac_ct_OTOOL64
6822 OTOOL64="$ac_cv_prog_OTOOL64"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6852 $as_echo_n "checking for -single_module linker flag... " >&6; }
6853 if ${lt_cv_apple_cc_single_mod+:} false; then :
6854 $as_echo_n "(cached) " >&6
6856 lt_cv_apple_cc_single_mod=no
6857 if test -z "$LT_MULTI_MODULE"; then
6858 # By default we will add the -single_module flag. You can override
6859 # by either setting the environment variable LT_MULTI_MODULE
6860 # non-empty at configure time, or by adding -multi_module to the
6862 rm -rf libconftest.dylib*
6863 echo "int foo(void){return 1;}" > conftest.c
6864 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6865 -dynamiclib -Wl,-single_module conftest.c" >&5
6866 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6867 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6869 # If there is a non-empty error log, and "single_module"
6870 # appears in it, assume the flag caused a linker warning
6871 if test -s conftest.err && $GREP single_module conftest.err; then
6872 cat conftest.err >&5
6873 # Otherwise, if the output was created with a 0 exit code from
6874 # the compiler, it worked.
6875 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6876 lt_cv_apple_cc_single_mod=yes
6878 cat conftest.err >&5
6880 rm -rf libconftest.dylib*
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6885 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6888 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6889 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 lt_cv_ld_exported_symbols_list=no
6893 save_LDFLAGS=$LDFLAGS
6894 echo "_main" > conftest.sym
6895 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6907 if ac_fn_c_try_link "$LINENO"; then :
6908 lt_cv_ld_exported_symbols_list=yes
6910 lt_cv_ld_exported_symbols_list=no
6912 rm -f core conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6914 LDFLAGS=$save_LDFLAGS
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6918 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6921 $as_echo_n "checking for -force_load linker flag... " >&6; }
6922 if ${lt_cv_ld_force_load+:} false; then :
6923 $as_echo_n "(cached) " >&6
6925 lt_cv_ld_force_load=no
6926 cat > conftest.c << _LT_EOF
6927 int forced_loaded() { return 2;}
6929 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6930 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6931 echo "$AR cru libconftest.a conftest.o" >&5
6932 $AR cru libconftest.a conftest.o 2>&5
6933 echo "$RANLIB libconftest.a" >&5
6934 $RANLIB libconftest.a 2>&5
6935 cat > conftest.c << _LT_EOF
6936 int main() { return 0;}
6938 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6939 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6941 if test -s conftest.err && $GREP force_load conftest.err; then
6942 cat conftest.err >&5
6943 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6944 lt_cv_ld_force_load=yes
6946 cat conftest.err >&5
6948 rm -f conftest.err libconftest.a conftest conftest.c
6949 rm -rf conftest.dSYM
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6953 $as_echo "$lt_cv_ld_force_load" >&6; }
6955 rhapsody* | darwin1.[012])
6956 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6958 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6959 darwin*) # darwin 5.x on
6960 # if running on 10.5 or later, the deployment target defaults
6961 # to the OS version, if on x86, and 10.4, the deployment
6962 # target defaults to 10.4. Don't you love it?
6963 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6964 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6965 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6967 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6969 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6973 if test yes = "$lt_cv_apple_cc_single_mod"; then
6974 _lt_dar_single_mod='$single_module'
6976 if test yes = "$lt_cv_ld_exported_symbols_list"; then
6977 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6979 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6981 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6982 _lt_dsymutil='~$DSYMUTIL $lib || :'
6989 # func_munge_path_list VARIABLE PATH
6990 # -----------------------------------
6991 # VARIABLE is name of variable containing _space_ separated list of
6992 # directories to be munged by the contents of PATH, which is string
6995 # string "DIR[ DIR]" will be prepended to VARIABLE
6997 # string "DIR[ DIR]" will be appended to VARIABLE
6998 # "DIRP[:DIRP]::[DIRA:]DIRA"
6999 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7000 # "DIRA[ DIRA]" will be appended to VARIABLE
7002 # VARIABLE will be replaced by "DIR[ DIR]"
7003 func_munge_path_list ()
7009 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7012 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7015 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7016 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7019 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7025 ac_cpp='$CPP $CPPFLAGS'
7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7030 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7031 # On Suns, sometimes $CPP names a directory.
7032 if test -n "$CPP" && test -d "$CPP"; then
7035 if test -z "$CPP"; then
7036 if ${ac_cv_prog_CPP+:} false; then :
7037 $as_echo_n "(cached) " >&6
7039 # Double quotes because CPP needs to be expanded
7040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7043 for ac_c_preproc_warn_flag in '' yes
7045 # Use a header file that comes with gcc, so configuring glibc
7046 # with a fresh cross-compiler works.
7047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048 # <limits.h> exists even on freestanding compilers.
7049 # On the NeXT, cc -E runs the code through the compiler's parser,
7050 # not just through cpp. "Syntax error" is here to catch this case.
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7054 # include <limits.h>
7056 # include <assert.h>
7060 if ac_fn_c_try_cpp "$LINENO"; then :
7063 # Broken: fails on valid input.
7066 rm -f conftest.err conftest.i conftest.$ac_ext
7068 # OK, works on sane cases. Now check whether nonexistent headers
7069 # can be detected and how.
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 #include <ac_nonexistent.h>
7074 if ac_fn_c_try_cpp "$LINENO"; then :
7075 # Broken: success on invalid input.
7078 # Passes both tests.
7082 rm -f conftest.err conftest.i conftest.$ac_ext
7085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7086 rm -f conftest.i conftest.err conftest.$ac_ext
7087 if $ac_preproc_ok; then :
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7100 $as_echo "$CPP" >&6; }
7102 for ac_c_preproc_warn_flag in '' yes
7104 # Use a header file that comes with gcc, so configuring glibc
7105 # with a fresh cross-compiler works.
7106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107 # <limits.h> exists even on freestanding compilers.
7108 # On the NeXT, cc -E runs the code through the compiler's parser,
7109 # not just through cpp. "Syntax error" is here to catch this case.
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7113 # include <limits.h>
7115 # include <assert.h>
7119 if ac_fn_c_try_cpp "$LINENO"; then :
7122 # Broken: fails on valid input.
7125 rm -f conftest.err conftest.i conftest.$ac_ext
7127 # OK, works on sane cases. Now check whether nonexistent headers
7128 # can be detected and how.
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 #include <ac_nonexistent.h>
7133 if ac_fn_c_try_cpp "$LINENO"; then :
7134 # Broken: success on invalid input.
7137 # Passes both tests.
7141 rm -f conftest.err conftest.i conftest.$ac_ext
7144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7145 rm -f conftest.i conftest.err conftest.$ac_ext
7146 if $ac_preproc_ok; then :
7149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7151 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7152 See \`config.log' for more details" "$LINENO" 5; }
7156 ac_cpp='$CPP $CPPFLAGS'
7157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7163 $as_echo_n "checking for ANSI C header files... " >&6; }
7164 if ${ac_cv_header_stdc+:} false; then :
7165 $as_echo_n "(cached) " >&6
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7182 if ac_fn_c_try_compile "$LINENO"; then :
7183 ac_cv_header_stdc=yes
7185 ac_cv_header_stdc=no
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 if test $ac_cv_header_stdc = yes; then
7190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 $EGREP "memchr" >/dev/null 2>&1; then :
7200 ac_cv_header_stdc=no
7206 if test $ac_cv_header_stdc = yes; then
7207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214 $EGREP "free" >/dev/null 2>&1; then :
7217 ac_cv_header_stdc=no
7223 if test $ac_cv_header_stdc = yes; then
7224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7225 if test "$cross_compiling" = yes; then :
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7232 #if ((' ' & 0x0FF) == 0x020)
7233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7236 # define ISLOWER(c) \
7237 (('a' <= (c) && (c) <= 'i') \
7238 || ('j' <= (c) && (c) <= 'r') \
7239 || ('s' <= (c) && (c) <= 'z'))
7240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7248 for (i = 0; i < 256; i++)
7249 if (XOR (islower (i), ISLOWER (i))
7250 || toupper (i) != TOUPPER (i))
7255 if ac_fn_c_try_run "$LINENO"; then :
7258 ac_cv_header_stdc=no
7260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7261 conftest.$ac_objext conftest.beam conftest.$ac_ext
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7267 $as_echo "$ac_cv_header_stdc" >&6; }
7268 if test $ac_cv_header_stdc = yes; then
7270 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7276 inttypes.h stdint.h unistd.h
7278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7279 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7281 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7282 cat >>confdefs.h <<_ACEOF
7283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7291 for ac_header in dlfcn.h
7293 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7295 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_DLFCN_H 1
7316 # Check whether --enable-shared was given.
7317 if test "${enable_shared+set}" = set; then :
7318 enableval=$enable_shared; p=${PACKAGE-default}
7320 yes) enable_shared=yes ;;
7321 no) enable_shared=no ;;
7324 # Look at the argument we got. We use all the common list separators.
7325 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7326 for pkg in $enableval; do
7328 if test "X$pkg" = "X$p"; then
7347 # Check whether --enable-static was given.
7348 if test "${enable_static+set}" = set; then :
7349 enableval=$enable_static; p=${PACKAGE-default}
7351 yes) enable_static=yes ;;
7352 no) enable_static=no ;;
7355 # Look at the argument we got. We use all the common list separators.
7356 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7357 for pkg in $enableval; do
7359 if test "X$pkg" = "X$p"; then
7379 # Check whether --with-pic was given.
7380 if test "${with_pic+set}" = set; then :
7381 withval=$with_pic; lt_p=${PACKAGE-default}
7383 yes|no) pic_mode=$withval ;;
7386 # Look at the argument we got. We use all the common list separators.
7387 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7388 for lt_pkg in $withval; do
7390 if test "X$lt_pkg" = "X$lt_p"; then
7408 # Check whether --enable-fast-install was given.
7409 if test "${enable_fast_install+set}" = set; then :
7410 enableval=$enable_fast_install; p=${PACKAGE-default}
7412 yes) enable_fast_install=yes ;;
7413 no) enable_fast_install=no ;;
7415 enable_fast_install=no
7416 # Look at the argument we got. We use all the common list separators.
7417 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7418 for pkg in $enableval; do
7420 if test "X$pkg" = "X$p"; then
7421 enable_fast_install=yes
7428 enable_fast_install=yes
7438 shared_archive_member_spec=
7439 case $host,$enable_shared in
7440 power*-*-aix[5-9]*,yes)
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7442 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7444 # Check whether --with-aix-soname was given.
7445 if test "${with_aix_soname+set}" = set; then :
7446 withval=$with_aix_soname; case $withval in
7450 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7453 lt_cv_with_aix_soname=$with_aix_soname
7455 if ${lt_cv_with_aix_soname+:} false; then :
7456 $as_echo_n "(cached) " >&6
7458 lt_cv_with_aix_soname=aix
7461 with_aix_soname=$lt_cv_with_aix_soname
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7465 $as_echo "$with_aix_soname" >&6; }
7466 if test aix != "$with_aix_soname"; then
7467 # For the AIX way of multilib, we name the shared archive member
7468 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7469 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7470 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7471 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7472 if test 64 = "${OBJECT_MODE-32}"; then
7473 shared_archive_member_spec=shr_64
7475 shared_archive_member_spec=shr
7493 # This can be used to rebuild libtool when needed
7494 LIBTOOL_DEPS=$ltmain
7496 # Always use our own libtool.
7497 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7528 test -z "$LN_S" && LN_S="ln -s"
7543 if test -n "${ZSH_VERSION+set}"; then
7544 setopt NO_GLOB_SUBST
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7548 $as_echo_n "checking for objdir... " >&6; }
7549 if ${lt_cv_objdir+:} false; then :
7550 $as_echo_n "(cached) " >&6
7552 rm -f .libs 2>/dev/null
7553 mkdir .libs 2>/dev/null
7554 if test -d .libs; then
7557 # MS-DOS does not allow filenames that begin with a dot.
7560 rmdir .libs 2>/dev/null
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7563 $as_echo "$lt_cv_objdir" >&6; }
7564 objdir=$lt_cv_objdir
7570 cat >>confdefs.h <<_ACEOF
7571 #define LT_OBJDIR "$lt_cv_objdir/"
7579 # AIX sometimes has problems with the GCC collect2 program. For some
7580 # reason, if we set the COLLECT_NAMES environment variable, the problems
7581 # vanish in a puff of smoke.
7582 if test set != "${COLLECT_NAMES+set}"; then
7584 export COLLECT_NAMES
7591 can_build_shared=yes
7593 # All known linkers require a '.a' archive for static linking (except MSVC,
7594 # which needs '.lib').
7597 with_gnu_ld=$lt_cv_prog_gnu_ld
7602 # Set sane defaults for various variables
7603 test -z "$CC" && CC=cc
7604 test -z "$LTCC" && LTCC=$CC
7605 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7606 test -z "$LD" && LD=ld
7607 test -z "$ac_objext" && ac_objext=o
7609 func_cc_basename $compiler
7610 cc_basename=$func_cc_basename_result
7613 # Only perform the check for file, if the check method requires it
7614 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7615 case $deplibs_check_method in
7617 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7619 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7620 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7621 $as_echo_n "(cached) " >&6
7625 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7628 lt_save_MAGIC_CMD=$MAGIC_CMD
7629 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7630 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7631 for ac_dir in $ac_dummy; do
7633 test -z "$ac_dir" && ac_dir=.
7634 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7635 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7636 if test -n "$file_magic_test_file"; then
7637 case $deplibs_check_method in
7639 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7640 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7641 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7642 $EGREP "$file_magic_regex" > /dev/null; then
7647 *** Warning: the command libtool uses to detect shared libraries,
7648 *** $file_magic_cmd, produces output that libtool cannot recognize.
7649 *** The result is that libtool may fail to recognize shared libraries
7650 *** as such. This will affect the creation of libtool libraries that
7651 *** depend on shared libraries, but programs linked with such libtool
7652 *** libraries will work regardless of this problem. Nevertheless, you
7653 *** may want to report the problem to your system manager and/or to
7654 *** bug-libtool@gnu.org
7664 MAGIC_CMD=$lt_save_MAGIC_CMD
7669 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7670 if test -n "$MAGIC_CMD"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7672 $as_echo "$MAGIC_CMD" >&6; }
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7682 if test -z "$lt_cv_path_MAGIC_CMD"; then
7683 if test -n "$ac_tool_prefix"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7685 $as_echo_n "checking for file... " >&6; }
7686 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7687 $as_echo_n "(cached) " >&6
7691 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7694 lt_save_MAGIC_CMD=$MAGIC_CMD
7695 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7696 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7697 for ac_dir in $ac_dummy; do
7699 test -z "$ac_dir" && ac_dir=.
7700 if test -f "$ac_dir/file"; then
7701 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7702 if test -n "$file_magic_test_file"; then
7703 case $deplibs_check_method in
7705 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7706 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7707 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7708 $EGREP "$file_magic_regex" > /dev/null; then
7713 *** Warning: the command libtool uses to detect shared libraries,
7714 *** $file_magic_cmd, produces output that libtool cannot recognize.
7715 *** The result is that libtool may fail to recognize shared libraries
7716 *** as such. This will affect the creation of libtool libraries that
7717 *** depend on shared libraries, but programs linked with such libtool
7718 *** libraries will work regardless of this problem. Nevertheless, you
7719 *** may want to report the problem to your system manager and/or to
7720 *** bug-libtool@gnu.org
7730 MAGIC_CMD=$lt_save_MAGIC_CMD
7735 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7736 if test -n "$MAGIC_CMD"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7738 $as_echo "$MAGIC_CMD" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7754 # Use C for the default configuration in the libtool script
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764 # Source file extension for C test sources.
7767 # Object file extension for compiled C test sources.
7771 # Code to be used in simple compile tests
7772 lt_simple_compile_test_code="int some_variable = 0;"
7774 # Code to be used in simple link tests
7775 lt_simple_link_test_code='int main(){return(0);}'
7783 # If no C compiler was specified, use CC.
7786 # If no C compiler flags were specified, use CFLAGS.
7787 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7789 # Allow CC to be a program name with arguments.
7792 # Save the default compiler, since it gets overwritten when the other
7793 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7794 compiler_DEFAULT=$CC
7796 # save warnings/boilerplate of simple test code
7797 ac_outfile=conftest.$ac_objext
7798 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7799 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7800 _lt_compiler_boilerplate=`cat conftest.err`
7803 ac_outfile=conftest.$ac_objext
7804 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7805 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7806 _lt_linker_boilerplate=`cat conftest.err`
7811 ## There is no encapsulation within the following macros, do not change
7812 ## the running order or otherwise move them around unless you know exactly
7813 ## what you are doing...
7814 if test -n "$compiler"; then
7816 lt_prog_compiler_no_builtin_flag=
7818 if test yes = "$GCC"; then
7819 case $cc_basename in
7821 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7823 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7827 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7828 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7829 $as_echo_n "(cached) " >&6
7831 lt_cv_prog_compiler_rtti_exceptions=no
7832 ac_outfile=conftest.$ac_objext
7833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7834 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7835 # Insert the option either (1) after the last *FLAGS variable, or
7836 # (2) before a word containing "conftest.", or (3) at the end.
7837 # Note that $ac_compile itself does not contain backslashes and begins
7838 # with a dollar sign (not a hyphen), so the echo should work correctly.
7839 # The option is referenced via a variable to avoid confusing sed.
7840 lt_compile=`echo "$ac_compile" | $SED \
7841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7843 -e 's:$: $lt_compiler_flag:'`
7844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7845 (eval "$lt_compile" 2>conftest.err)
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 if (exit $ac_status) && test -s "$ac_outfile"; then
7850 # The compiler can only warn and ignore the option if not recognized
7851 # So say no if there are warnings other than the usual output.
7852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7855 lt_cv_prog_compiler_rtti_exceptions=yes
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7862 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7864 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7865 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7877 lt_prog_compiler_wl=
7878 lt_prog_compiler_pic=
7879 lt_prog_compiler_static=
7882 if test yes = "$GCC"; then
7883 lt_prog_compiler_wl='-Wl,'
7884 lt_prog_compiler_static='-static'
7888 # All AIX code is PIC.
7889 if test ia64 = "$host_cpu"; then
7890 # AIX 5 now supports IA64 processor
7891 lt_prog_compiler_static='-Bstatic'
7893 lt_prog_compiler_pic='-fPIC'
7899 # see comment about AmigaOS4 .so support
7900 lt_prog_compiler_pic='-fPIC'
7903 # FIXME: we need at least 68020 code to build shared libraries, but
7904 # adding the '-m68020' flag to GCC prevents building anything better,
7906 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7911 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7912 # PIC is the default for these OSes.
7915 mingw* | cygwin* | pw32* | os2* | cegcc*)
7916 # This hack is so that the source file can tell whether it is being
7917 # built for inclusion in a dll (and should export symbols for example).
7918 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7919 # (--disable-auto-import) libraries
7920 lt_prog_compiler_pic='-DDLL_EXPORT'
7923 lt_prog_compiler_static='$wl-static'
7928 darwin* | rhapsody*)
7929 # PIC is the default on this platform
7930 # Common symbols not allowed in MH_DYLIB files
7931 lt_prog_compiler_pic='-fno-common'
7935 # PIC is the default for Haiku.
7936 # The "-static" flag exists, but is broken.
7937 lt_prog_compiler_static=
7941 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7942 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7943 # sets the default TLS model and affects inlining.
7949 lt_prog_compiler_pic='-fPIC'
7955 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7956 # Instead, we relocate shared libraries at runtime.
7960 # Just because we use GCC doesn't mean we suddenly get shared libraries
7961 # on systems that don't support them.
7962 lt_prog_compiler_can_build_shared=no
7967 # QNX uses GNU C++, but need to define -shared option too, otherwise
7969 lt_prog_compiler_pic='-fPIC -shared'
7973 if test -d /usr/nec; then
7974 lt_prog_compiler_pic=-Kconform_pic
7979 lt_prog_compiler_pic='-fPIC'
7983 case $cc_basename in
7984 nvcc*) # Cuda Compiler Driver 2.2
7985 lt_prog_compiler_wl='-Xlinker '
7986 if test -n "$lt_prog_compiler_pic"; then
7987 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7992 # PORTME Check for flag to pass linker flags through the system compiler.
7995 lt_prog_compiler_wl='-Wl,'
7996 if test ia64 = "$host_cpu"; then
7997 # AIX 5 now supports IA64 processor
7998 lt_prog_compiler_static='-Bstatic'
8000 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8004 darwin* | rhapsody*)
8005 # PIC is the default on this platform
8006 # Common symbols not allowed in MH_DYLIB files
8007 lt_prog_compiler_pic='-fno-common'
8008 case $cc_basename in
8010 # NAG Fortran compiler
8011 lt_prog_compiler_wl='-Wl,-Wl,,'
8012 lt_prog_compiler_pic='-PIC'
8013 lt_prog_compiler_static='-Bstatic'
8018 mingw* | cygwin* | pw32* | os2* | cegcc*)
8019 # This hack is so that the source file can tell whether it is being
8020 # built for inclusion in a dll (and should export symbols for example).
8021 lt_prog_compiler_pic='-DDLL_EXPORT'
8024 lt_prog_compiler_static='$wl-static'
8029 hpux9* | hpux10* | hpux11*)
8030 lt_prog_compiler_wl='-Wl,'
8031 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8038 lt_prog_compiler_pic='+Z'
8041 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8042 lt_prog_compiler_static='$wl-a ${wl}archive'
8045 irix5* | irix6* | nonstopux*)
8046 lt_prog_compiler_wl='-Wl,'
8047 # PIC (with -KPIC) is the default.
8048 lt_prog_compiler_static='-non_shared'
8051 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8052 case $cc_basename in
8053 # old Intel for x86_64, which still supported -KPIC.
8055 lt_prog_compiler_wl='-Wl,'
8056 lt_prog_compiler_pic='-KPIC'
8057 lt_prog_compiler_static='-static'
8059 # icc used to be incompatible with GCC.
8060 # ICC 10 doesn't accept -KPIC any more.
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_pic='-fPIC'
8064 lt_prog_compiler_static='-static'
8066 # Lahey Fortran 8.1.
8068 lt_prog_compiler_wl='-Wl,'
8069 lt_prog_compiler_pic='--shared'
8070 lt_prog_compiler_static='--static'
8073 # NAG Fortran compiler
8074 lt_prog_compiler_wl='-Wl,-Wl,,'
8075 lt_prog_compiler_pic='-PIC'
8076 lt_prog_compiler_static='-Bstatic'
8079 # Fabrice Bellard et al's Tiny C Compiler
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_pic='-fPIC'
8082 lt_prog_compiler_static='-static'
8084 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8085 # Portland Group compilers (*not* the Pentium gcc compiler,
8086 # which looks to be a dead project)
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-fpic'
8089 lt_prog_compiler_static='-Bstatic'
8092 lt_prog_compiler_wl='-Wl,'
8093 # All Alpha code is PIC.
8094 lt_prog_compiler_static='-non_shared'
8096 xl* | bgxl* | bgf* | mpixl*)
8097 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8098 lt_prog_compiler_wl='-Wl,'
8099 lt_prog_compiler_pic='-qpic'
8100 lt_prog_compiler_static='-qstaticlink'
8103 case `$CC -V 2>&1 | sed 5q` in
8104 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8105 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8106 lt_prog_compiler_pic='-KPIC'
8107 lt_prog_compiler_static='-Bstatic'
8108 lt_prog_compiler_wl=''
8110 *Sun\ F* | *Sun*Fortran*)
8111 lt_prog_compiler_pic='-KPIC'
8112 lt_prog_compiler_static='-Bstatic'
8113 lt_prog_compiler_wl='-Qoption ld '
8117 lt_prog_compiler_pic='-KPIC'
8118 lt_prog_compiler_static='-Bstatic'
8119 lt_prog_compiler_wl='-Wl,'
8121 *Intel*\ [CF]*Compiler*)
8122 lt_prog_compiler_wl='-Wl,'
8123 lt_prog_compiler_pic='-fPIC'
8124 lt_prog_compiler_static='-static'
8127 lt_prog_compiler_wl='-Wl,'
8128 lt_prog_compiler_pic='-fpic'
8129 lt_prog_compiler_static='-Bstatic'
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8142 # QNX uses GNU C++, but need to define -shared option too, otherwise
8144 lt_prog_compiler_pic='-fPIC -shared'
8147 osf3* | osf4* | osf5*)
8148 lt_prog_compiler_wl='-Wl,'
8149 # All OSF/1 code is PIC.
8150 lt_prog_compiler_static='-non_shared'
8154 lt_prog_compiler_static='-non_shared'
8158 lt_prog_compiler_pic='-KPIC'
8159 lt_prog_compiler_static='-Bstatic'
8160 case $cc_basename in
8161 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8162 lt_prog_compiler_wl='-Qoption ld ';;
8164 lt_prog_compiler_wl='-Wl,';;
8169 lt_prog_compiler_wl='-Qoption ld '
8170 lt_prog_compiler_pic='-PIC'
8171 lt_prog_compiler_static='-Bstatic'
8174 sysv4 | sysv4.2uw2* | sysv4.3*)
8175 lt_prog_compiler_wl='-Wl,'
8176 lt_prog_compiler_pic='-KPIC'
8177 lt_prog_compiler_static='-Bstatic'
8181 if test -d /usr/nec; then
8182 lt_prog_compiler_pic='-Kconform_pic'
8183 lt_prog_compiler_static='-Bstatic'
8187 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_pic='-KPIC'
8190 lt_prog_compiler_static='-Bstatic'
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_can_build_shared=no
8199 lt_prog_compiler_pic='-pic'
8200 lt_prog_compiler_static='-Bstatic'
8204 lt_prog_compiler_can_build_shared=no
8210 # For platforms that do not support PIC, -DPIC is meaningless:
8212 lt_prog_compiler_pic=
8215 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8220 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8221 if ${lt_cv_prog_compiler_pic+:} false; then :
8222 $as_echo_n "(cached) " >&6
8224 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8227 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8228 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8231 # Check to make sure the PIC flag actually works.
8233 if test -n "$lt_prog_compiler_pic"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8235 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8236 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8237 $as_echo_n "(cached) " >&6
8239 lt_cv_prog_compiler_pic_works=no
8240 ac_outfile=conftest.$ac_objext
8241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8242 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8243 # Insert the option either (1) after the last *FLAGS variable, or
8244 # (2) before a word containing "conftest.", or (3) at the end.
8245 # Note that $ac_compile itself does not contain backslashes and begins
8246 # with a dollar sign (not a hyphen), so the echo should work correctly.
8247 # The option is referenced via a variable to avoid confusing sed.
8248 lt_compile=`echo "$ac_compile" | $SED \
8249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8251 -e 's:$: $lt_compiler_flag:'`
8252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8253 (eval "$lt_compile" 2>conftest.err)
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 if (exit $ac_status) && test -s "$ac_outfile"; then
8258 # The compiler can only warn and ignore the option if not recognized
8259 # So say no if there are warnings other than the usual output.
8260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8263 lt_cv_prog_compiler_pic_works=yes
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8270 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8272 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8273 case $lt_prog_compiler_pic in
8275 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8278 lt_prog_compiler_pic=
8279 lt_prog_compiler_can_build_shared=no
8295 # Check to make sure the static flag actually works.
8297 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8299 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8300 if ${lt_cv_prog_compiler_static_works+:} false; then :
8301 $as_echo_n "(cached) " >&6
8303 lt_cv_prog_compiler_static_works=no
8304 save_LDFLAGS=$LDFLAGS
8305 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8306 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8308 # The linker can only warn and ignore the option if not recognized
8309 # So say no if there are warnings
8310 if test -s conftest.err; then
8311 # Append any errors to the config.log.
8312 cat conftest.err 1>&5
8313 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8315 if diff conftest.exp conftest.er2 >/dev/null; then
8316 lt_cv_prog_compiler_static_works=yes
8319 lt_cv_prog_compiler_static_works=yes
8323 LDFLAGS=$save_LDFLAGS
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8327 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8329 if test yes = "$lt_cv_prog_compiler_static_works"; then
8332 lt_prog_compiler_static=
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8343 if ${lt_cv_prog_compiler_c_o+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 lt_cv_prog_compiler_c_o=no
8347 $RM -r conftest 2>/dev/null
8351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8353 lt_compiler_flag="-o out/conftest2.$ac_objext"
8354 # Insert the option either (1) after the last *FLAGS variable, or
8355 # (2) before a word containing "conftest.", or (3) at the end.
8356 # Note that $ac_compile itself does not contain backslashes and begins
8357 # with a dollar sign (not a hyphen), so the echo should work correctly.
8358 lt_compile=`echo "$ac_compile" | $SED \
8359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8361 -e 's:$: $lt_compiler_flag:'`
8362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8363 (eval "$lt_compile" 2>out/conftest.err)
8365 cat out/conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8369 # The compiler can only warn and ignore the option if not recognized
8370 # So say no if there are warnings
8371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8374 lt_cv_prog_compiler_c_o=yes
8379 # SGI C++ compiler will create directory out/ii_files/ for
8380 # template instantiation
8381 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8382 $RM out/* && rmdir out
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8389 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8397 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8398 if ${lt_cv_prog_compiler_c_o+:} false; then :
8399 $as_echo_n "(cached) " >&6
8401 lt_cv_prog_compiler_c_o=no
8402 $RM -r conftest 2>/dev/null
8406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8408 lt_compiler_flag="-o out/conftest2.$ac_objext"
8409 # Insert the option either (1) after the last *FLAGS variable, or
8410 # (2) before a word containing "conftest.", or (3) at the end.
8411 # Note that $ac_compile itself does not contain backslashes and begins
8412 # with a dollar sign (not a hyphen), so the echo should work correctly.
8413 lt_compile=`echo "$ac_compile" | $SED \
8414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8416 -e 's:$: $lt_compiler_flag:'`
8417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8418 (eval "$lt_compile" 2>out/conftest.err)
8420 cat out/conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8424 # The compiler can only warn and ignore the option if not recognized
8425 # So say no if there are warnings
8426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8427 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8428 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8429 lt_cv_prog_compiler_c_o=yes
8434 # SGI C++ compiler will create directory out/ii_files/ for
8435 # template instantiation
8436 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8437 $RM out/* && rmdir out
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8444 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8449 hard_links=nottested
8450 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8451 # do not overwrite the value of need_locks provided by the user
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8453 $as_echo_n "checking if we can lock with hard links... " >&6; }
8456 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8458 ln conftest.a conftest.b 2>&5 || hard_links=no
8459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8461 $as_echo "$hard_links" >&6; }
8462 if test no = "$hard_links"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8464 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8477 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8480 allow_undefined_flag=
8481 always_export_symbols=no
8483 archive_expsym_cmds=
8484 compiler_needs_object=no
8485 enable_shared_with_static_runtimes=no
8486 export_dynamic_flag_spec=
8487 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8488 hardcode_automatic=no
8490 hardcode_direct_absolute=no
8491 hardcode_libdir_flag_spec=
8492 hardcode_libdir_separator=
8494 hardcode_shlibpath_var=unsupported
8496 link_all_deplibs=unknown
8499 old_archive_from_new_cmds=
8500 old_archive_from_expsyms_cmds=
8501 thread_safe_flag_spec=
8502 whole_archive_flag_spec=
8503 # include_expsyms should be a list of space-separated symbols to be *always*
8504 # included in the symbol list
8506 # exclude_expsyms can be an extended regexp of symbols to exclude
8507 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8508 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8509 # as well as any symbol that contains 'd'.
8510 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8511 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8512 # platforms (ab)use it in PIC code, but their linkers get confused if
8513 # the symbol is explicitly referenced. Since portable code cannot
8514 # rely on this symbol name, it's probably fine to never include it in
8515 # preloaded symbol tables.
8516 # Exclude shared library initialization/finalization symbols.
8517 extract_expsyms_cmds=
8520 cygwin* | mingw* | pw32* | cegcc*)
8521 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8522 # When not using gcc, we currently assume that we are using
8523 # Microsoft Visual C++.
8524 if test yes != "$GCC"; then
8529 # we just hope/assume this is gcc and not c89 (= MSVC++)
8539 # On some targets, GNU ld is compatible enough with the native linker
8540 # that we're better off using the native interface for both.
8541 lt_use_gnu_ld_interface=no
8542 if test yes = "$with_gnu_ld"; then
8545 # The AIX port of GNU ld has always aspired to compatibility
8546 # with the native linker. However, as the warning in the GNU ld
8547 # block says, versions before 2.19.5* couldn't really create working
8548 # shared libraries, regardless of the interface used.
8549 case `$LD -v 2>&1` in
8550 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8551 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8552 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8554 lt_use_gnu_ld_interface=yes
8559 lt_use_gnu_ld_interface=yes
8564 if test yes = "$lt_use_gnu_ld_interface"; then
8565 # If archive_cmds runs LD, not CC, wlarc should be empty
8568 # Set some defaults for GNU ld with shared library support. These
8569 # are reset later if shared libraries are not supported. Putting them
8570 # here allows them to be overridden if necessary.
8571 runpath_var=LD_RUN_PATH
8572 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8573 export_dynamic_flag_spec='$wl--export-dynamic'
8574 # ancient GNU ld didn't support --whole-archive et. al.
8575 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8576 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8578 whole_archive_flag_spec=
8580 supports_anon_versioning=no
8581 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8582 *GNU\ gold*) supports_anon_versioning=yes ;;
8583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586 *\ 2.11.*) ;; # other 2.11 versions
8587 *) supports_anon_versioning=yes ;;
8590 # See if GNU ld supports shared libraries.
8593 # On AIX/PPC, the GNU linker is very broken
8594 if test ia64 != "$host_cpu"; then
8598 *** Warning: the GNU linker, at least up to release 2.19, is reported
8599 *** to be unable to reliably create shared libraries on AIX.
8600 *** Therefore, libtool is disabling shared libraries support. If you
8601 *** really care for shared libraries, you may want to install binutils
8602 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8603 *** You will then need to restart the configuration process.
8612 # see comment about AmigaOS4 .so support
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8614 archive_expsym_cmds=''
8617 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)'
8618 hardcode_libdir_flag_spec='-L$libdir'
8619 hardcode_minus_L=yes
8625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626 allow_undefined_flag=unsupported
8627 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8628 # support --undefined. This deserves some investigation. FIXME
8629 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8635 cygwin* | mingw* | pw32* | cegcc*)
8636 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8637 # as there is no search path for DLLs.
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 export_dynamic_flag_spec='$wl--export-all-symbols'
8640 allow_undefined_flag=unsupported
8641 always_export_symbols=no
8642 enable_shared_with_static_runtimes=yes
8643 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'
8644 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8646 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8648 # If the export-symbols file already is a .def file, use it as
8649 # is; otherwise, prepend EXPORTS...
8650 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8651 cp $export_symbols $output_objdir/$soname.def;
8653 echo EXPORTS > $output_objdir/$soname.def;
8654 cat $export_symbols >> $output_objdir/$soname.def;
8656 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8664 link_all_deplibs=yes
8668 hardcode_libdir_flag_spec='-L$libdir'
8669 hardcode_minus_L=yes
8670 allow_undefined_flag=unsupported
8672 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8673 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8674 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8675 $ECHO EXPORTS >> $output_objdir/$libname.def~
8676 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8678 emximp -o $lib $output_objdir/$libname.def'
8679 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8680 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8681 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8682 $ECHO EXPORTS >> $output_objdir/$libname.def~
8684 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8685 prefix_cmds="$prefix_cmds -e 1d";
8687 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8688 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8689 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8690 emximp -o $lib $output_objdir/$libname.def'
8691 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8692 enable_shared_with_static_runtimes=yes
8697 hardcode_shlibpath_var=no
8698 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8699 export_dynamic_flag_spec='$wl-E'
8700 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8701 # Instead, shared libraries are loaded at an image base (0x10000000 by
8702 # default) and relocated if they conflict, which is a slow very memory
8703 # consuming and fragmenting process. To avoid this, we pick a random,
8704 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8705 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8706 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8707 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'
8710 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8712 if test linux-dietlibc = "$host_os"; then
8713 case $cc_basename in
8714 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8717 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8718 && test no = "$tmp_diet"
8720 tmp_addflag=' $pic_flag'
8721 tmp_sharedflag='-shared'
8722 case $cc_basename,$host_cpu in
8723 pgcc*) # Portland Group C compiler
8724 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'
8725 tmp_addflag=' $pic_flag'
8727 pgf77* | pgf90* | pgf95* | pgfortran*)
8728 # Portland Group f77 and f90 compilers
8729 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'
8730 tmp_addflag=' $pic_flag -Mnomain' ;;
8731 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8732 tmp_addflag=' -i_dynamic' ;;
8733 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8734 tmp_addflag=' -i_dynamic -nofor_main' ;;
8735 ifc* | ifort*) # Intel Fortran compiler
8736 tmp_addflag=' -nofor_main' ;;
8737 lf95*) # Lahey Fortran 8.1
8738 whole_archive_flag_spec=
8739 tmp_sharedflag='--shared' ;;
8740 nagfor*) # NAGFOR 5.3
8741 tmp_sharedflag='-Wl,-shared' ;;
8742 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8743 tmp_sharedflag='-qmkshrobj'
8745 nvcc*) # Cuda Compiler Driver 2.2
8746 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'
8747 compiler_needs_object=yes
8750 case `$CC -V 2>&1 | sed 5q` in
8751 *Sun\ C*) # Sun C 5.9
8752 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'
8753 compiler_needs_object=yes
8754 tmp_sharedflag='-G' ;;
8755 *Sun\ F*) # Sun Fortran 8.3
8756 tmp_sharedflag='-G' ;;
8758 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8760 if test yes = "$supports_anon_versioning"; then
8761 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8763 echo "local: *; };" >> $output_objdir/$libname.ver~
8764 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8767 case $cc_basename in
8769 export_dynamic_flag_spec='-rdynamic'
8771 xlf* | bgf* | bgxlf* | mpixlf*)
8772 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8773 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8774 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8775 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8776 if test yes = "$supports_anon_versioning"; then
8777 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8779 echo "local: *; };" >> $output_objdir/$libname.ver~
8780 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8791 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8794 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8795 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8800 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8804 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8805 *** create shared libraries on Solaris systems. Therefore, libtool
8806 *** is disabling shared libraries support. We urge you to upgrade GNU
8807 *** binutils to release 2.9.1 or newer. Another option is to modify
8808 *** your PATH or compiler configuration so that the native linker is
8809 *** used, and then restart.
8812 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8813 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8814 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8821 case `$LD -v 2>&1` in
8822 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8826 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8827 *** reliably create shared libraries on SCO systems. Therefore, libtool
8828 *** is disabling shared libraries support. We urge you to upgrade GNU
8829 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8830 *** your PATH or compiler configuration so that the native linker is
8831 *** used, and then restart.
8836 # For security reasons, it is highly recommended that you always
8837 # use absolute paths for naming shared libraries, and exclude the
8838 # DT_RUNPATH tag from executables and libraries. But doing so
8839 # requires that you compile everything twice, which is a pain.
8840 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8841 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8852 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8855 hardcode_shlibpath_var=no
8859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8861 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8868 if test no = "$ld_shlibs"; then
8870 hardcode_libdir_flag_spec=
8871 export_dynamic_flag_spec=
8872 whole_archive_flag_spec=
8875 # PORTME fill in a description of your system's linker (not GNU ld)
8878 allow_undefined_flag=unsupported
8879 always_export_symbols=yes
8880 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'
8881 # Note: this linker hardcodes the directories in LIBPATH if there
8882 # are no directories specified by -L.
8883 hardcode_minus_L=yes
8884 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8885 # Neither direct hardcoding nor static linking is supported with a
8887 hardcode_direct=unsupported
8892 if test ia64 = "$host_cpu"; then
8893 # On IA64, the linker does run time linking by default, so we don't
8894 # have to do anything special.
8895 aix_use_runtimelinking=no
8896 exp_sym_flag='-Bexport'
8899 # If we're using GNU nm, then we don't want the "-C" option.
8900 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8901 # Without the "-l" option, or with the "-B" option, AIX nm treats
8902 # weak defined symbols like other global defined symbols, whereas
8903 # GNU nm marks them as "W".
8904 # While the 'weak' keyword is ignored in the Export File, we need
8905 # it in the Import File for the 'aix-soname' feature, so we have
8906 # to replace the "-B" option with "-P" for AIX nm.
8907 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8908 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'
8910 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'
8912 aix_use_runtimelinking=no
8914 # Test if we are trying to use run time linking or normal
8915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8916 # have runtime linking enabled, and use it for executables.
8917 # For shared libraries, we enable/disable runtime linking
8918 # depending on the kind of the shared library created -
8919 # when "with_aix_soname,aix_use_runtimelinking" is:
8920 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8921 # "aix,yes" lib.so shared, rtl:yes, for executables
8922 # lib.a static archive
8923 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8924 # lib.a(lib.so.V) shared, rtl:no, for executables
8925 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8926 # lib.a(lib.so.V) shared, rtl:no
8927 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8928 # lib.a static archive
8929 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8930 for ld_flag in $LDFLAGS; do
8931 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8932 aix_use_runtimelinking=yes
8936 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8937 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8938 # so we don't have lib.a shared libs to link our executables.
8939 # We have to force runtime linking in this case.
8940 aix_use_runtimelinking=yes
8941 LDFLAGS="$LDFLAGS -Wl,-brtl"
8946 exp_sym_flag='-bexport'
8947 no_entry_flag='-bnoentry'
8950 # When large executables or shared objects are built, AIX ld can
8951 # have problems creating the table of contents. If linking a library
8952 # or program results in "error TOC overflow" add -mminimal-toc to
8953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8958 hardcode_direct_absolute=yes
8959 hardcode_libdir_separator=':'
8960 link_all_deplibs=yes
8961 file_list_spec='$wl-f,'
8962 case $with_aix_soname,$aix_use_runtimelinking in
8963 aix,*) ;; # traditional, no import file
8964 svr4,* | *,yes) # use import file
8965 # The Import File defines what to hardcode.
8967 hardcode_direct_absolute=no
8971 if test yes = "$GCC"; then
8972 case $host_os in aix4.[012]|aix4.[012].*)
8973 # We only want to do this on AIX 4.2 and lower, the check
8974 # below for broken collect2 doesn't work under 4.3+
8975 collect2name=`$CC -print-prog-name=collect2`
8976 if test -f "$collect2name" &&
8977 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8979 # We have reworked collect2
8982 # We have old collect2
8983 hardcode_direct=unsupported
8984 # It fails to find uninstalled libraries when the uninstalled
8985 # path is not listed in the libpath. Setting hardcode_minus_L
8986 # to unsupported forces relinking
8987 hardcode_minus_L=yes
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_libdir_separator=
8993 shared_flag='-shared'
8994 if test yes = "$aix_use_runtimelinking"; then
8995 shared_flag="$shared_flag "'$wl-G'
8997 # Need to ensure runtime linking is disabled for the traditional
8998 # shared library, or the linker may eventually find shared libraries
8999 # /with/ Import File - we do not want to mix them.
9000 shared_flag_aix='-shared'
9001 shared_flag_svr4='-shared $wl-G'
9004 if test ia64 = "$host_cpu"; then
9005 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9006 # chokes on -Wl,-G. The following line is correct:
9009 if test yes = "$aix_use_runtimelinking"; then
9012 shared_flag='$wl-bM:SRE'
9014 shared_flag_aix='$wl-bM:SRE'
9015 shared_flag_svr4='$wl-G'
9019 export_dynamic_flag_spec='$wl-bexpall'
9020 # It seems that -bexpall does not export symbols beginning with
9021 # underscore (_), so it is better to generate a list of symbols to export.
9022 always_export_symbols=yes
9023 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9024 # Warning - without using the other runtime loading flags (-brtl),
9025 # -berok will link without error, but may produce a broken library.
9026 allow_undefined_flag='-berok'
9027 # Determine the default libpath from the value encoded in an
9029 if test set = "${lt_cv_aix_libpath+set}"; then
9030 aix_libpath=$lt_cv_aix_libpath
9032 if ${lt_cv_aix_libpath_+:} false; then :
9033 $as_echo_n "(cached) " >&6
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9046 if ac_fn_c_try_link "$LINENO"; then :
9048 lt_aix_libpath_sed='
9049 /Import File Strings/,/^$/ {
9051 s/^0 *\([^ ]*\) *$/\1/
9055 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9056 # Check for a 64-bit object if we didn't find anything.
9057 if test -z "$lt_cv_aix_libpath_"; then
9058 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9061 rm -f core conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 if test -z "$lt_cv_aix_libpath_"; then
9064 lt_cv_aix_libpath_=/usr/lib:/lib
9069 aix_libpath=$lt_cv_aix_libpath_
9072 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9073 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
9075 if test ia64 = "$host_cpu"; then
9076 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9077 allow_undefined_flag="-z nodefs"
9078 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"
9080 # Determine the default libpath from the value encoded in an
9082 if test set = "${lt_cv_aix_libpath+set}"; then
9083 aix_libpath=$lt_cv_aix_libpath
9085 if ${lt_cv_aix_libpath_+:} false; then :
9086 $as_echo_n "(cached) " >&6
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9099 if ac_fn_c_try_link "$LINENO"; then :
9101 lt_aix_libpath_sed='
9102 /Import File Strings/,/^$/ {
9104 s/^0 *\([^ ]*\) *$/\1/
9108 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9109 # Check for a 64-bit object if we didn't find anything.
9110 if test -z "$lt_cv_aix_libpath_"; then
9111 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9114 rm -f core conftest.err conftest.$ac_objext \
9115 conftest$ac_exeext conftest.$ac_ext
9116 if test -z "$lt_cv_aix_libpath_"; then
9117 lt_cv_aix_libpath_=/usr/lib:/lib
9122 aix_libpath=$lt_cv_aix_libpath_
9125 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9126 # Warning - without using the other run time loading flags,
9127 # -berok will link without error, but may produce a broken library.
9128 no_undefined_flag=' $wl-bernotok'
9129 allow_undefined_flag=' $wl-berok'
9130 if test yes = "$with_gnu_ld"; then
9131 # We only use this code for GNU lds that support --whole-archive.
9132 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9134 # Exported symbols can be pulled into shared objects from archives
9135 whole_archive_flag_spec='$convenience'
9137 archive_cmds_need_lc=yes
9138 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9139 # -brtl affects multiple linker settings, -berok does not and is overridden later
9140 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9141 if test svr4 != "$with_aix_soname"; then
9142 # This is similar to how AIX traditionally builds its shared libraries.
9143 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'
9145 if test aix != "$with_aix_soname"; then
9146 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'
9148 # used by -dlpreopen to get the symbols
9149 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9151 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9159 # see comment about AmigaOS4 .so support
9160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9161 archive_expsym_cmds=''
9164 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)'
9165 hardcode_libdir_flag_spec='-L$libdir'
9166 hardcode_minus_L=yes
9172 export_dynamic_flag_spec=-rdynamic
9175 cygwin* | mingw* | pw32* | cegcc*)
9176 # When not using gcc, we currently assume that we are using
9177 # Microsoft Visual C++.
9178 # hardcode_libdir_flag_spec is actually meaningless, as there is
9179 # no search path for DLLs.
9180 case $cc_basename in
9183 hardcode_libdir_flag_spec=' '
9184 allow_undefined_flag=unsupported
9185 always_export_symbols=yes
9187 # Tell ltmain to make .lib files, not .a files.
9189 # Tell ltmain to make .dll files, not .so files.
9191 # FIXME: Setting linknames here is a bad hack.
9192 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9193 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9194 cp "$export_symbols" "$output_objdir/$soname.def";
9195 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9197 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9199 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9201 # The linker will not automatically build a static lib if we build a DLL.
9202 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9203 enable_shared_with_static_runtimes=yes
9204 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9207 old_postinstall_cmds='chmod 644 $oldlib'
9208 postlink_cmds='lt_outputfile="@OUTPUT@"~
9209 lt_tool_outputfile="@TOOL_OUTPUT@"~
9210 case $lt_outputfile in
9213 lt_outputfile=$lt_outputfile.exe
9214 lt_tool_outputfile=$lt_tool_outputfile.exe
9217 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9218 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9219 $RM "$lt_outputfile.manifest";
9223 # Assume MSVC wrapper
9224 hardcode_libdir_flag_spec=' '
9225 allow_undefined_flag=unsupported
9226 # Tell ltmain to make .lib files, not .a files.
9228 # Tell ltmain to make .dll files, not .so files.
9230 # FIXME: Setting linknames here is a bad hack.
9231 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9232 # The linker will automatically build a .lib file if we build a DLL.
9233 old_archive_from_new_cmds='true'
9234 # FIXME: Should let the user specify the lib program.
9235 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9236 enable_shared_with_static_runtimes=yes
9241 darwin* | rhapsody*)
9244 archive_cmds_need_lc=no
9246 hardcode_automatic=yes
9247 hardcode_shlibpath_var=unsupported
9248 if test yes = "$lt_cv_ld_force_load"; then
9249 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\"`'
9252 whole_archive_flag_spec=''
9254 link_all_deplibs=yes
9255 allow_undefined_flag=$_lt_dar_allow_undefined
9256 case $cc_basename in
9257 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9258 *) _lt_dar_can_shared=$GCC ;;
9260 if test yes = "$_lt_dar_can_shared"; then
9261 output_verbose_link_cmd=func_echo_all
9262 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9263 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9264 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"
9265 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"
9274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9275 hardcode_libdir_flag_spec='-L$libdir'
9276 hardcode_shlibpath_var=no
9279 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9280 # support. Future versions do this automatically, but an explicit c++rt0.o
9281 # does not break anything, and helps significantly (at the cost of a little
9284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9285 hardcode_libdir_flag_spec='-R$libdir'
9287 hardcode_shlibpath_var=no
9290 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9294 hardcode_minus_L=yes
9295 hardcode_shlibpath_var=no
9298 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9299 freebsd* | dragonfly*)
9300 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9301 hardcode_libdir_flag_spec='-R$libdir'
9303 hardcode_shlibpath_var=no
9307 if test yes = "$GCC"; then
9308 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9310 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9312 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9313 hardcode_libdir_separator=:
9316 # hardcode_minus_L: Not really in the search PATH,
9317 # but as the default location of the library.
9318 hardcode_minus_L=yes
9319 export_dynamic_flag_spec='$wl-E'
9323 if test yes,no = "$GCC,$with_gnu_ld"; then
9324 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9326 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9328 if test no = "$with_gnu_ld"; then
9329 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9330 hardcode_libdir_separator=:
9332 hardcode_direct_absolute=yes
9333 export_dynamic_flag_spec='$wl-E'
9334 # hardcode_minus_L: Not really in the search PATH,
9335 # but as the default location of the library.
9336 hardcode_minus_L=yes
9341 if test yes,no = "$GCC,$with_gnu_ld"; then
9344 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9347 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9350 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9356 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9359 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9363 # Older versions of the 11.00 compiler do not understand -b yet
9364 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9366 $as_echo_n "checking if $CC understands -b... " >&6; }
9367 if ${lt_cv_prog_compiler__b+:} false; then :
9368 $as_echo_n "(cached) " >&6
9370 lt_cv_prog_compiler__b=no
9371 save_LDFLAGS=$LDFLAGS
9372 LDFLAGS="$LDFLAGS -b"
9373 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9374 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9375 # The linker can only warn and ignore the option if not recognized
9376 # So say no if there are warnings
9377 if test -s conftest.err; then
9378 # Append any errors to the config.log.
9379 cat conftest.err 1>&5
9380 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9382 if diff conftest.exp conftest.er2 >/dev/null; then
9383 lt_cv_prog_compiler__b=yes
9386 lt_cv_prog_compiler__b=yes
9390 LDFLAGS=$save_LDFLAGS
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9394 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9396 if test yes = "$lt_cv_prog_compiler__b"; then
9397 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9405 if test no = "$with_gnu_ld"; then
9406 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9407 hardcode_libdir_separator=:
9412 hardcode_shlibpath_var=no
9416 hardcode_direct_absolute=yes
9417 export_dynamic_flag_spec='$wl-E'
9419 # hardcode_minus_L: Not really in the search PATH,
9420 # but as the default location of the library.
9421 hardcode_minus_L=yes
9427 irix5* | irix6* | nonstopux*)
9428 if test yes = "$GCC"; then
9429 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'
9430 # Try to use the -exported_symbol ld option, if it does not
9431 # work, assume that -exports_file does not work either and
9432 # implicitly export all symbols.
9433 # This should be the same for all languages, so no per-tag cache variable.
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9435 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9436 if ${lt_cv_irix_exported_symbol+:} false; then :
9437 $as_echo_n "(cached) " >&6
9439 save_LDFLAGS=$LDFLAGS
9440 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 int foo (void) { return 0; }
9445 if ac_fn_c_try_link "$LINENO"; then :
9446 lt_cv_irix_exported_symbol=yes
9448 lt_cv_irix_exported_symbol=no
9450 rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9452 LDFLAGS=$save_LDFLAGS
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9455 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9456 if test yes = "$lt_cv_irix_exported_symbol"; then
9457 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'
9460 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'
9461 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'
9463 archive_cmds_need_lc='no'
9464 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9465 hardcode_libdir_separator=:
9467 link_all_deplibs=yes
9471 case $cc_basename in
9473 # Fabrice Bellard et al's Tiny C Compiler
9475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9481 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9484 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9486 hardcode_libdir_flag_spec='-R$libdir'
9488 hardcode_shlibpath_var=no
9492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9495 hardcode_libdir_separator=:
9496 hardcode_shlibpath_var=no
9503 if test -f /usr/libexec/ld.so; then
9505 hardcode_shlibpath_var=no
9506 hardcode_direct_absolute=yes
9507 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9508 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9510 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9511 export_dynamic_flag_spec='$wl-E'
9513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9514 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9522 hardcode_libdir_flag_spec='-L$libdir'
9523 hardcode_minus_L=yes
9524 allow_undefined_flag=unsupported
9526 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9527 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9528 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9529 $ECHO EXPORTS >> $output_objdir/$libname.def~
9530 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9531 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9532 emximp -o $lib $output_objdir/$libname.def'
9533 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9534 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9535 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9536 $ECHO EXPORTS >> $output_objdir/$libname.def~
9538 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9539 prefix_cmds="$prefix_cmds -e 1d";
9541 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9542 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9543 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9544 emximp -o $lib $output_objdir/$libname.def'
9545 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9546 enable_shared_with_static_runtimes=yes
9550 if test yes = "$GCC"; then
9551 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9552 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'
9554 allow_undefined_flag=' -expect_unresolved \*'
9555 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'
9557 archive_cmds_need_lc='no'
9558 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9559 hardcode_libdir_separator=:
9562 osf4* | osf5*) # as osf3* with the addition of -msym flag
9563 if test yes = "$GCC"; then
9564 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9565 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'
9566 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9568 allow_undefined_flag=' -expect_unresolved \*'
9569 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'
9570 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~
9571 $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'
9573 # Both c and cxx compiler support -rpath directly
9574 hardcode_libdir_flag_spec='-rpath $libdir'
9576 archive_cmds_need_lc='no'
9577 hardcode_libdir_separator=:
9581 no_undefined_flag=' -z defs'
9582 if test yes = "$GCC"; then
9584 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9586 $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'
9588 case `$CC -V 2>&1` in
9591 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9593 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9597 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9603 hardcode_libdir_flag_spec='-R$libdir'
9604 hardcode_shlibpath_var=no
9606 solaris2.[0-5] | solaris2.[0-5].*) ;;
9608 # The compiler driver will combine and reorder linker options,
9609 # but understands '-z linker_flag'. GCC discards it without '$wl',
9610 # but is careful enough not to reorder.
9611 # Supported since Solaris 2.6 (maybe 2.5.1?)
9612 if test yes = "$GCC"; then
9613 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9615 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9619 link_all_deplibs=yes
9623 if test sequent = "$host_vendor"; then
9624 # Use $CC to link under sequent, because it throws in some extra .o
9625 # files that make .init and .fini sections work.
9626 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9628 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_libdir_flag_spec='-L$libdir'
9632 hardcode_minus_L=yes
9633 hardcode_shlibpath_var=no
9637 case $host_vendor in
9639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_direct=yes # is this really true???
9643 ## LD is ld it makes a PLAMLIB
9644 ## CC just makes a GrossModule.
9645 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9646 reload_cmds='$CC -r -o $output$reload_objs'
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9654 runpath_var='LD_RUN_PATH'
9655 hardcode_shlibpath_var=no
9659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660 hardcode_shlibpath_var=no
9661 export_dynamic_flag_spec='-Bexport'
9665 if test -d /usr/nec; then
9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_shlibpath_var=no
9668 runpath_var=LD_RUN_PATH
9669 hardcode_runpath_var=yes
9674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9675 no_undefined_flag='$wl-z,text'
9676 archive_cmds_need_lc=no
9677 hardcode_shlibpath_var=no
9678 runpath_var='LD_RUN_PATH'
9680 if test yes = "$GCC"; then
9681 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 sysv5* | sco3.2v5* | sco5v6*)
9690 # Note: We CANNOT use -z defs as we might desire, because we do not
9691 # link with -lc, and that would cause any symbols used from libc to
9692 # always be unresolved, which means just about no library would
9693 # ever link correctly. If we're not using GNU ld we use -z text
9694 # though, which does catch some bad symbols but isn't as heavy-handed
9696 no_undefined_flag='$wl-z,text'
9697 allow_undefined_flag='$wl-z,nodefs'
9698 archive_cmds_need_lc=no
9699 hardcode_shlibpath_var=no
9700 hardcode_libdir_flag_spec='$wl-R,$libdir'
9701 hardcode_libdir_separator=':'
9702 link_all_deplibs=yes
9703 export_dynamic_flag_spec='$wl-Bexport'
9704 runpath_var='LD_RUN_PATH'
9706 if test yes = "$GCC"; then
9707 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_libdir_flag_spec='-L$libdir'
9718 hardcode_shlibpath_var=no
9726 if test sni = "$host_vendor"; then
9728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9729 export_dynamic_flag_spec='$wl-Blargedynsym'
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9736 $as_echo "$ld_shlibs" >&6; }
9737 test no = "$ld_shlibs" && can_build_shared=no
9739 with_gnu_ld=$with_gnu_ld
9756 # Do we need to explicitly link libc?
9758 case "x$archive_cmds_need_lc" in
9760 # Assume -lc should be added
9761 archive_cmds_need_lc=yes
9763 if test yes,yes = "$GCC,$enable_shared"; then
9764 case $archive_cmds in
9766 # FIXME: we may have to deal with multi-command sequences.
9769 # Test whether the compiler implicitly links with -lc since on some
9770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9771 # to ld, don't add -lc before -lgcc.
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9774 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9775 $as_echo_n "(cached) " >&6
9778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9781 (eval $ac_compile) 2>&5
9783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9784 test $ac_status = 0; } 2>conftest.err; then
9787 libobjs=conftest.$ac_objext
9789 wl=$lt_prog_compiler_wl
9790 pic_flag=$lt_prog_compiler_pic
9796 lt_save_allow_undefined_flag=$allow_undefined_flag
9797 allow_undefined_flag=
9798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9799 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802 test $ac_status = 0; }
9804 lt_cv_archive_cmds_need_lc=no
9806 lt_cv_archive_cmds_need_lc=yes
9808 allow_undefined_flag=$lt_save_allow_undefined_flag
9810 cat conftest.err 1>&5
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9816 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9817 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9976 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9978 if test yes = "$GCC"; then
9980 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9981 *) lt_awk_arg='/^libraries:/' ;;
9984 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9985 *) lt_sed_strip_eq='s|=/|/|g' ;;
9987 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9988 case $lt_search_path_spec in
9990 # if the path contains ";" then we assume it to be the separator
9991 # otherwise default to the standard path separator (i.e. ":") - it is
9992 # assumed that no part of a normal pathname contains ";" but that should
9993 # okay in the real world where ";" in dirpaths is itself problematic.
9994 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9997 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10000 # Ok, now we have the path, separated by spaces, we can step through it
10001 # and add multilib dir if necessary...
10002 lt_tmp_lt_search_path_spec=
10003 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10004 # ...but if some path component already ends with the multilib dir we assume
10005 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10006 case "$lt_multi_os_dir; $lt_search_path_spec " in
10007 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10011 for lt_sys_path in $lt_search_path_spec; do
10012 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10013 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10014 elif test -n "$lt_multi_os_dir"; then
10015 test -d "$lt_sys_path" && \
10016 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10019 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10020 BEGIN {RS = " "; FS = "/|\n";} {
10023 for (lt_i = NF; lt_i > 0; lt_i--) {
10024 if ($lt_i != "" && $lt_i != ".") {
10025 if ($lt_i == "..") {
10028 if (lt_count == 0) {
10029 lt_foo = "/" $lt_i lt_foo;
10036 if (lt_foo != "") { lt_freq[lt_foo]++; }
10037 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10039 # AWK program above erroneously prepends '/' to C:/dos/paths
10042 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10043 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10045 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10047 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10049 library_names_spec=
10050 libname_spec='lib$name'
10054 postuninstall_cmds=
10058 shlibpath_overrides_runpath=unknown
10060 dynamic_linker="$host_os ld.so"
10061 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10062 need_lib_prefix=unknown
10063 hardcode_into_libs=no
10065 # when you set need_version to no, make sure it does not cause -set_version
10066 # flags to be left without arguments
10067 need_version=unknown
10073 version_type=linux # correct to gnu/linux during the next big refactor
10074 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10075 shlibpath_var=LIBPATH
10077 # AIX 3 has no versioning support, so we append a major version to the name.
10078 soname_spec='$libname$release$shared_ext$major'
10082 version_type=linux # correct to gnu/linux during the next big refactor
10085 hardcode_into_libs=yes
10086 if test ia64 = "$host_cpu"; then
10087 # AIX 5 supports IA64
10088 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10089 shlibpath_var=LD_LIBRARY_PATH
10091 # With GCC up to 2.95.x, collect2 would create an import file
10092 # for dependence libraries. The import file would start with
10093 # the line '#! .'. This would cause the generated library to
10094 # depend on '.', always an invalid library. This was fixed in
10095 # development snapshots of GCC prior to 3.0.
10097 aix4 | aix4.[01] | aix4.[01].*)
10098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10100 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10103 can_build_shared=no
10107 # Using Import Files as archive members, it is possible to support
10108 # filename-based versioning of shared library archives on AIX. While
10109 # this would work for both with and without runtime linking, it will
10110 # prevent static linking of such archives. So we do filename-based
10111 # shared library versioning with .so extension only, which is used
10112 # when both runtime linking and shared linking is enabled.
10113 # Unfortunately, runtime linking may impact performance, so we do
10114 # not want this to be the default eventually. Also, we use the
10115 # versioned .so libs for executables only if there is the -brtl
10116 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10117 # To allow for filename-based versioning support, we need to create
10118 # libNAME.so.V as an archive file, containing:
10119 # *) an Import File, referring to the versioned filename of the
10120 # archive as well as the shared archive member, telling the
10121 # bitwidth (32 or 64) of that shared object, and providing the
10122 # list of exported symbols of that shared object, eventually
10123 # decorated with the 'weak' keyword
10124 # *) the shared object with the F_LOADONLY flag set, to really avoid
10125 # it being seen by the linker.
10126 # At run time we better use the real file rather than another symlink,
10127 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10129 case $with_aix_soname,$aix_use_runtimelinking in
10130 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10131 # soname into executable. Probably we can add versioning support to
10132 # collect2, so additional links can be useful in future.
10133 aix,yes) # traditional libtool
10134 dynamic_linker='AIX unversionable lib.so'
10135 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10136 # instead of lib<name>.a to let people know that these are not
10137 # typical AIX shared libraries.
10138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10140 aix,no) # traditional AIX only
10141 dynamic_linker='AIX lib.a(lib.so.V)'
10142 # We preserve .a as extension for shared libraries through AIX4.2
10143 # and later when we are not doing run time linking.
10144 library_names_spec='$libname$release.a $libname.a'
10145 soname_spec='$libname$release$shared_ext$major'
10147 svr4,*) # full svr4 only
10148 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10149 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10150 # We do not specify a path in Import Files, so LIBPATH fires.
10151 shlibpath_overrides_runpath=yes
10153 *,yes) # both, prefer svr4
10154 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10155 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10156 # unpreferred sharedlib libNAME.a needs extra handling
10157 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"'
10158 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"'
10159 # We do not specify a path in Import Files, so LIBPATH fires.
10160 shlibpath_overrides_runpath=yes
10162 *,no) # both, prefer aix
10163 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10164 library_names_spec='$libname$release.a $libname.a'
10165 soname_spec='$libname$release$shared_ext$major'
10166 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10167 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)'
10168 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"'
10171 shlibpath_var=LIBPATH
10178 # Since July 2007 AmigaOS4 officially supports .so libraries.
10179 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10183 library_names_spec='$libname.ixlibrary $libname.a'
10184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10185 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'
10191 library_names_spec='$libname$shared_ext'
10192 dynamic_linker="$host_os ld.so"
10193 shlibpath_var=LIBRARY_PATH
10197 version_type=linux # correct to gnu/linux during the next big refactor
10199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10200 soname_spec='$libname$release$shared_ext$major'
10201 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10204 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10205 # the default ld.so.conf also contains /usr/contrib/lib and
10206 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10207 # libtool to hard-code these into programs
10210 cygwin* | mingw* | pw32* | cegcc*)
10211 version_type=windows
10216 case $GCC,$cc_basename in
10219 library_names_spec='$libname.dll.a'
10220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10221 postinstall_cmds='base_file=`basename \$file`~
10222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10223 dldir=$destdir/`dirname \$dlpath`~
10224 test -d \$dldir || mkdir -p \$dldir~
10225 $install_prog $dir/$dlname \$dldir/$dlname~
10226 chmod a+x \$dldir/$dlname~
10227 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10228 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10231 dlpath=$dir/\$dldll~
10233 shlibpath_overrides_runpath=yes
10237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10238 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10240 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10243 # MinGW DLLs use traditional 'lib' prefix
10244 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10247 # pw32 DLLs use 'pw' prefix rather than 'lib'
10248 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10251 dynamic_linker='Win32 ld.exe'
10256 libname_spec='$name'
10257 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10258 library_names_spec='$libname.dll.lib'
10262 sys_lib_search_path_spec=
10265 for lt_path in $LIB
10268 # Let DOS variable expansion print the short 8.3 style file name.
10269 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10270 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10273 # Convert to MSYS style.
10274 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10277 # Convert to unix form, then to dos form, then back to unix form
10278 # but this time dos style (no spaces!) so that the unix form looks
10279 # like /cygdrive/c/PROGRA~1:/cygdr...
10280 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10281 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10282 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10285 sys_lib_search_path_spec=$LIB
10286 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10287 # It is most probably a Windows format PATH.
10288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10290 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10292 # FIXME: find the short name or the path components, as spaces are
10293 # common. (e.g. "Program Files" -> "PROGRA~1")
10297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10298 postinstall_cmds='base_file=`basename \$file`~
10299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10300 dldir=$destdir/`dirname \$dlpath`~
10301 test -d \$dldir || mkdir -p \$dldir~
10302 $install_prog $dir/$dlname \$dldir/$dlname'
10303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10304 dlpath=$dir/\$dldll~
10306 shlibpath_overrides_runpath=yes
10307 dynamic_linker='Win32 link.exe'
10311 # Assume MSVC wrapper
10312 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10313 dynamic_linker='Win32 ld.exe'
10316 # FIXME: first we should search . and the directory the executable is in
10320 darwin* | rhapsody*)
10321 dynamic_linker="$host_os dyld"
10322 version_type=darwin
10325 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10326 soname_spec='$libname$release$major$shared_ext'
10327 shlibpath_overrides_runpath=yes
10328 shlibpath_var=DYLD_LIBRARY_PATH
10329 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10331 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10336 version_type=linux # correct to gnu/linux during the next big refactor
10339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10340 soname_spec='$libname$release$shared_ext$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10344 freebsd* | dragonfly*)
10345 # DragonFly does not have aout. When/if they implement a new
10346 # versioning mechanism, adjust this.
10347 if test -x /usr/bin/objformat; then
10348 objformat=`/usr/bin/objformat`
10351 freebsd[23].*) objformat=aout ;;
10352 *) objformat=elf ;;
10355 # Handle Gentoo/FreeBSD as it was Linux
10356 case $host_vendor in
10358 version_type=linux ;;
10360 version_type=freebsd-$objformat ;;
10363 case $version_type in
10365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10366 soname_spec='$libname$release$shared_ext$major'
10371 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10381 shlibpath_var=LD_LIBRARY_PATH
10384 shlibpath_overrides_runpath=yes
10386 freebsd3.[01]* | freebsdelf3.[01]*)
10387 shlibpath_overrides_runpath=yes
10388 hardcode_into_libs=yes
10390 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10391 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10392 shlibpath_overrides_runpath=no
10393 hardcode_into_libs=yes
10395 *) # from 4.6 on, and DragonFly
10396 shlibpath_overrides_runpath=yes
10397 hardcode_into_libs=yes
10403 version_type=linux # correct to gnu/linux during the next big refactor
10406 dynamic_linker="$host_os runtime_loader"
10407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10408 soname_spec='$libname$release$shared_ext$major'
10409 shlibpath_var=LIBRARY_PATH
10410 shlibpath_overrides_runpath=no
10411 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10412 hardcode_into_libs=yes
10415 hpux9* | hpux10* | hpux11*)
10416 # Give a soname corresponding to the major version so that dld.sl refuses to
10417 # link against other versions.
10424 hardcode_into_libs=yes
10425 dynamic_linker="$host_os dld.so"
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10429 soname_spec='$libname$release$shared_ext$major'
10430 if test 32 = "$HPUX_IA64_MODE"; then
10431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10432 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10434 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10435 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10440 hardcode_into_libs=yes
10441 dynamic_linker="$host_os dld.sl"
10442 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10445 soname_spec='$libname$release$shared_ext$major'
10446 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10451 dynamic_linker="$host_os dld.sl"
10452 shlibpath_var=SHLIB_PATH
10453 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10455 soname_spec='$libname$release$shared_ext$major'
10458 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10459 postinstall_cmds='chmod 555 $lib'
10460 # or fails outright, so override atomically:
10461 install_override_mode=555
10465 version_type=linux # correct to gnu/linux during the next big refactor
10468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10469 soname_spec='$libname$release$shared_ext$major'
10470 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=no
10473 hardcode_into_libs=yes
10476 irix5* | irix6* | nonstopux*)
10478 nonstopux*) version_type=nonstopux ;;
10480 if test yes = "$lt_cv_prog_gnu_ld"; then
10481 version_type=linux # correct to gnu/linux during the next big refactor
10488 soname_spec='$libname$release$shared_ext$major'
10489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10491 irix5* | nonstopux*)
10492 libsuff= shlibsuff=
10495 case $LD in # libtool.m4 will add one of these switches to LD
10496 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10497 libsuff= shlibsuff= libmagic=32-bit;;
10498 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10499 libsuff=32 shlibsuff=N32 libmagic=N32;;
10500 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10501 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10502 *) libsuff= shlibsuff= libmagic=never-match;;
10506 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10507 shlibpath_overrides_runpath=no
10508 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10509 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10510 hardcode_into_libs=yes
10513 # No shared lib support for Linux oldld, aout, or coff.
10514 linux*oldld* | linux*aout* | linux*coff*)
10519 version_type=none # Android doesn't support versioned libraries.
10522 library_names_spec='$libname$release$shared_ext'
10523 soname_spec='$libname$release$shared_ext'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 shlibpath_overrides_runpath=yes
10528 # This implies no fast_install, which is unacceptable.
10529 # Some rework will be needed to allow for fast_install
10530 # before this can be enabled.
10531 hardcode_into_libs=yes
10533 dynamic_linker='Android linker'
10534 # Don't embed -rpath directories since the linker doesn't support them.
10535 hardcode_libdir_flag_spec='-L$libdir'
10538 # This must be glibc/ELF.
10539 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10540 version_type=linux # correct to gnu/linux during the next big refactor
10543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10544 soname_spec='$libname$release$shared_ext$major'
10545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 shlibpath_overrides_runpath=no
10549 # Some binutils ld are patched to set DT_RUNPATH
10550 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10551 $as_echo_n "(cached) " >&6
10553 lt_cv_shlibpath_overrides_runpath=no
10554 save_LDFLAGS=$LDFLAGS
10555 save_libdir=$libdir
10556 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10557 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10569 if ac_fn_c_try_link "$LINENO"; then :
10570 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10571 lt_cv_shlibpath_overrides_runpath=yes
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LDFLAGS=$save_LDFLAGS
10577 libdir=$save_libdir
10581 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10583 # This implies no fast_install, which is unacceptable.
10584 # Some rework will be needed to allow for fast_install
10585 # before this can be enabled.
10586 hardcode_into_libs=yes
10588 # Ideally, we could use ldconfig to report *all* directores which are
10589 # searched for libraries, however this is still not possible. Aside from not
10590 # being certain /sbin/ldconfig is available, command
10591 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10592 # even though it is searched at run-time. Try to do the best guess by
10593 # appending ld.so.conf contents (and includes) to the search path.
10594 if test -f /etc/ld.so.conf; then
10595 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' ' '`
10596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10599 # We used to test for /lib/ld.so.1 and disable shared libraries on
10600 # powerpc, because MkLinux only supported shared libraries with the
10601 # GNU dynamic linker. Since this was broken with cross compilers,
10602 # most powerpc-linux boxes support dynamic linking these days and
10603 # people can always --disable-shared, the test was removed, and we
10604 # assume the GNU/Linux dynamic linker is in use.
10605 dynamic_linker='GNU/Linux ld.so'
10612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10613 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10615 dynamic_linker='NetBSD (a.out) ld.so'
10617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10618 soname_spec='$libname$release$shared_ext$major'
10619 dynamic_linker='NetBSD ld.elf_so'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 shlibpath_overrides_runpath=yes
10623 hardcode_into_libs=yes
10627 version_type=linux # correct to gnu/linux during the next big refactor
10628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10638 soname_spec='$libname$release$shared_ext$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=no
10641 hardcode_into_libs=yes
10642 dynamic_linker='ldqnx.so'
10645 openbsd* | bitrig*)
10647 sys_lib_dlsearch_path_spec=/usr/lib
10649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10654 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 shlibpath_overrides_runpath=yes
10661 libname_spec='$name'
10662 version_type=windows
10666 # OS/2 can only load a DLL with a base name of 8 characters or less.
10667 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10668 v=$($ECHO $release$versuffix | tr -d .-);
10669 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10670 $ECHO $n$v`$shared_ext'
10671 library_names_spec='${libname}_dll.$libext'
10672 dynamic_linker='OS/2 ld.exe'
10673 shlibpath_var=BEGINLIBPATH
10674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10676 postinstall_cmds='base_file=`basename \$file`~
10677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10678 dldir=$destdir/`dirname \$dlpath`~
10679 test -d \$dldir || mkdir -p \$dldir~
10680 $install_prog $dir/$dlname \$dldir/$dlname~
10681 chmod a+x \$dldir/$dlname~
10682 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10683 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10686 dlpath=$dir/\$dldll~
10690 osf3* | osf4* | osf5*)
10694 soname_spec='$libname$release$shared_ext$major'
10695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10706 version_type=linux # correct to gnu/linux during the next big refactor
10709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10710 soname_spec='$libname$release$shared_ext$major'
10711 shlibpath_var=LD_LIBRARY_PATH
10712 shlibpath_overrides_runpath=yes
10713 hardcode_into_libs=yes
10714 # ldd complains unless libraries are executable
10715 postinstall_cmds='chmod +x $lib'
10720 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10721 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 shlibpath_overrides_runpath=yes
10724 if test yes = "$with_gnu_ld"; then
10731 version_type=linux # correct to gnu/linux during the next big refactor
10732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10733 soname_spec='$libname$release$shared_ext$major'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 case $host_vendor in
10737 shlibpath_overrides_runpath=no
10739 runpath_var=LD_RUN_PATH
10747 shlibpath_overrides_runpath=no
10748 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10754 if test -d /usr/nec; then
10755 version_type=linux # correct to gnu/linux during the next big refactor
10756 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10757 soname_spec='$libname$shared_ext.$major'
10758 shlibpath_var=LD_LIBRARY_PATH
10762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10767 soname_spec='$libname$release$shared_ext$major'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 shlibpath_overrides_runpath=yes
10770 hardcode_into_libs=yes
10771 if test yes = "$with_gnu_ld"; then
10772 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10774 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10777 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10781 sys_lib_dlsearch_path_spec='/usr/lib'
10785 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10786 version_type=linux # correct to gnu/linux during the next big refactor
10789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=no
10792 hardcode_into_libs=yes
10796 version_type=linux # correct to gnu/linux during the next big refactor
10797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10798 soname_spec='$libname$release$shared_ext$major'
10799 shlibpath_var=LD_LIBRARY_PATH
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10807 $as_echo "$dynamic_linker" >&6; }
10808 test no = "$dynamic_linker" && can_build_shared=no
10810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10811 if test yes = "$GCC"; then
10812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10815 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10816 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10819 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10820 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10823 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10824 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10826 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10827 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10829 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10830 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10929 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10931 if test -n "$hardcode_libdir_flag_spec" ||
10932 test -n "$runpath_var" ||
10933 test yes = "$hardcode_automatic"; then
10935 # We can hardcode non-existent directories.
10936 if test no != "$hardcode_direct" &&
10937 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10938 # have to relink, otherwise we might link with an installed library
10939 # when we should be linking with a yet-to-be-installed one
10940 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10941 test no != "$hardcode_minus_L"; then
10942 # Linking always hardcodes the temporary library directory.
10943 hardcode_action=relink
10945 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10946 hardcode_action=immediate
10949 # We cannot hardcode anything, or else we can only hardcode existing
10951 hardcode_action=unsupported
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10954 $as_echo "$hardcode_action" >&6; }
10956 if test relink = "$hardcode_action" ||
10957 test yes = "$inherit_rpath"; then
10958 # Fast installation is not supported
10959 enable_fast_install=no
10960 elif test yes = "$shlibpath_overrides_runpath" ||
10961 test no = "$enable_shared"; then
10962 # Fast installation is not necessary
10963 enable_fast_install=needless
10971 if test yes != "$enable_dlopen"; then
10972 enable_dlopen=unknown
10973 enable_dlopen_self=unknown
10974 enable_dlopen_self_static=unknown
10981 lt_cv_dlopen=load_add_on
10983 lt_cv_dlopen_self=yes
10986 mingw* | pw32* | cegcc*)
10987 lt_cv_dlopen=LoadLibrary
10992 lt_cv_dlopen=dlopen
10997 # if libdl is installed we need to link against it
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10999 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11000 if ${ac_cv_lib_dl_dlopen+:} false; then :
11001 $as_echo_n "(cached) " >&6
11003 ac_check_lib_save_LIBS=$LIBS
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11008 /* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11023 if ac_fn_c_try_link "$LINENO"; then :
11024 ac_cv_lib_dl_dlopen=yes
11026 ac_cv_lib_dl_dlopen=no
11028 rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11030 LIBS=$ac_check_lib_save_LIBS
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11033 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11034 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11035 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11040 lt_cv_dlopen_self=yes
11047 # Don't try to run any link tests for TPF. We know it's impossible
11048 # because TPF is a cross-compiler, and we know how we open DSOs.
11049 lt_cv_dlopen=dlopen
11051 lt_cv_dlopen_self=no
11055 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11056 if test "x$ac_cv_func_shl_load" = xyes; then :
11057 lt_cv_dlopen=shl_load
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11060 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11061 if ${ac_cv_lib_dld_shl_load+:} false; then :
11062 $as_echo_n "(cached) " >&6
11064 ac_check_lib_save_LIBS=$LIBS
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11079 return shl_load ();
11084 if ac_fn_c_try_link "$LINENO"; then :
11085 ac_cv_lib_dld_shl_load=yes
11087 ac_cv_lib_dld_shl_load=no
11089 rm -f core conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11091 LIBS=$ac_check_lib_save_LIBS
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11094 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11095 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11096 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11098 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11099 if test "x$ac_cv_func_dlopen" = xyes; then :
11100 lt_cv_dlopen=dlopen
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11103 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11104 if ${ac_cv_lib_dl_dlopen+:} false; then :
11105 $as_echo_n "(cached) " >&6
11107 ac_check_lib_save_LIBS=$LIBS
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11127 if ac_fn_c_try_link "$LINENO"; then :
11128 ac_cv_lib_dl_dlopen=yes
11130 ac_cv_lib_dl_dlopen=no
11132 rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134 LIBS=$ac_check_lib_save_LIBS
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11137 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11138 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11139 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11142 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11143 if ${ac_cv_lib_svld_dlopen+:} false; then :
11144 $as_echo_n "(cached) " >&6
11146 ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-lsvld $LIBS"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11166 if ac_fn_c_try_link "$LINENO"; then :
11167 ac_cv_lib_svld_dlopen=yes
11169 ac_cv_lib_svld_dlopen=no
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11176 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11177 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11178 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11181 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11182 if ${ac_cv_lib_dld_dld_link+:} false; then :
11183 $as_echo_n "(cached) " >&6
11185 ac_check_lib_save_LIBS=$LIBS
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11190 /* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11200 return dld_link ();
11205 if ac_fn_c_try_link "$LINENO"; then :
11206 ac_cv_lib_dld_dld_link=yes
11208 ac_cv_lib_dld_dld_link=no
11210 rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
11212 LIBS=$ac_check_lib_save_LIBS
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11215 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11216 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11217 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11238 if test no = "$lt_cv_dlopen"; then
11244 case $lt_cv_dlopen in
11246 save_CPPFLAGS=$CPPFLAGS
11247 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11249 save_LDFLAGS=$LDFLAGS
11250 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11253 LIBS="$lt_cv_dlopen_libs $LIBS"
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11256 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11257 if ${lt_cv_dlopen_self+:} false; then :
11258 $as_echo_n "(cached) " >&6
11260 if test yes = "$cross_compiling"; then :
11261 lt_cv_dlopen_self=cross
11263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11264 lt_status=$lt_dlunknown
11265 cat > conftest.$ac_ext <<_LT_EOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11276 # define LT_DLGLOBAL RTLD_GLOBAL
11279 # define LT_DLGLOBAL DL_GLOBAL
11281 # define LT_DLGLOBAL 0
11285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11286 find out it does not work in some platform. */
11287 #ifndef LT_DLLAZY_OR_NOW
11289 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11292 # define LT_DLLAZY_OR_NOW DL_LAZY
11295 # define LT_DLLAZY_OR_NOW RTLD_NOW
11298 # define LT_DLLAZY_OR_NOW DL_NOW
11300 # define LT_DLLAZY_OR_NOW 0
11307 /* When -fvisibility=hidden is used, assume the code has been annotated
11308 correspondingly for the symbols needed. */
11309 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11310 int fnord () __attribute__((visibility("default")));
11313 int fnord () { return 42; }
11316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11317 int status = $lt_dlunknown;
11321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11324 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11325 else puts (dlerror ());
11327 /* dlclose (self); */
11335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11336 (eval $ac_link) 2>&5
11338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11340 (./conftest; exit; ) >&5 2>/dev/null
11342 case x$lt_status in
11343 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11344 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11345 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11348 # compilation failed
11349 lt_cv_dlopen_self=no
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11357 $as_echo "$lt_cv_dlopen_self" >&6; }
11359 if test yes = "$lt_cv_dlopen_self"; then
11360 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11362 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11363 if ${lt_cv_dlopen_self_static+:} false; then :
11364 $as_echo_n "(cached) " >&6
11366 if test yes = "$cross_compiling"; then :
11367 lt_cv_dlopen_self_static=cross
11369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11370 lt_status=$lt_dlunknown
11371 cat > conftest.$ac_ext <<_LT_EOF
11372 #line $LINENO "configure"
11373 #include "confdefs.h"
11382 # define LT_DLGLOBAL RTLD_GLOBAL
11385 # define LT_DLGLOBAL DL_GLOBAL
11387 # define LT_DLGLOBAL 0
11391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11392 find out it does not work in some platform. */
11393 #ifndef LT_DLLAZY_OR_NOW
11395 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11398 # define LT_DLLAZY_OR_NOW DL_LAZY
11401 # define LT_DLLAZY_OR_NOW RTLD_NOW
11404 # define LT_DLLAZY_OR_NOW DL_NOW
11406 # define LT_DLLAZY_OR_NOW 0
11413 /* When -fvisibility=hidden is used, assume the code has been annotated
11414 correspondingly for the symbols needed. */
11415 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11416 int fnord () __attribute__((visibility("default")));
11419 int fnord () { return 42; }
11422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11423 int status = $lt_dlunknown;
11427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11430 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11431 else puts (dlerror ());
11433 /* dlclose (self); */
11441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11442 (eval $ac_link) 2>&5
11444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11445 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11446 (./conftest; exit; ) >&5 2>/dev/null
11448 case x$lt_status in
11449 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11450 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11451 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11454 # compilation failed
11455 lt_cv_dlopen_self_static=no
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11463 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11466 CPPFLAGS=$save_CPPFLAGS
11467 LDFLAGS=$save_LDFLAGS
11472 case $lt_cv_dlopen_self in
11473 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11474 *) enable_dlopen_self=unknown ;;
11477 case $lt_cv_dlopen_self_static in
11478 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11479 *) enable_dlopen_self_static=unknown ;;
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11502 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11503 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11504 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11505 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11507 $as_echo "yes" >&6; }
11509 # FIXME - insert some real tests, host_os isn't really good enough
11512 if test -n "$STRIP"; then
11513 striplib="$STRIP -x"
11514 old_striplib="$STRIP -S"
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11516 $as_echo "yes" >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11540 # Report what library types will actually be built
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11542 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11544 $as_echo "$can_build_shared" >&6; }
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11547 $as_echo_n "checking whether to build shared libraries... " >&6; }
11548 test no = "$can_build_shared" && enable_shared=no
11550 # On AIX, shared libraries and static libraries use the same namespace, and
11551 # are all built from PIC.
11554 test yes = "$enable_shared" && enable_static=no
11555 if test -n "$RANLIB"; then
11556 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11557 postinstall_cmds='$RANLIB $lib'
11562 if test ia64 != "$host_cpu"; then
11563 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11564 yes,aix,yes) ;; # shared object as lib.so file only
11565 yes,svr4,*) ;; # shared object as lib.so archive member only
11566 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11572 $as_echo "$enable_shared" >&6; }
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11575 $as_echo_n "checking whether to build static libraries... " >&6; }
11576 # Make sure either enable_shared or enable_static is yes.
11577 test yes = "$enable_shared" || enable_static=yes
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11579 $as_echo "$enable_static" >&6; }
11586 ac_cpp='$CPP $CPPFLAGS'
11587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11607 ac_config_commands="$ac_config_commands libtool"
11612 # Only expand once:
11621 ac_cpp='$CPP $CPPFLAGS'
11622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11625 if test -n "$ac_tool_prefix"; then
11626 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11627 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629 $as_echo_n "checking for $ac_word... " >&6; }
11630 if ${ac_cv_prog_CC+:} false; then :
11631 $as_echo_n "(cached) " >&6
11633 if test -n "$CC"; then
11634 ac_cv_prog_CC="$CC" # Let the user override the test.
11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637 for as_dir in $PATH
11640 test -z "$as_dir" && as_dir=.
11641 for ac_exec_ext in '' $ac_executable_extensions; do
11642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11643 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 if test -n "$CC"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11656 $as_echo "$CC" >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11664 if test -z "$ac_cv_prog_CC"; then
11666 # Extract the first word of "gcc", so it can be a program name with args.
11667 set dummy gcc; ac_word=$2
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11669 $as_echo_n "checking for $ac_word... " >&6; }
11670 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11671 $as_echo_n "(cached) " >&6
11673 if test -n "$ac_ct_CC"; then
11674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11680 test -z "$as_dir" && as_dir=.
11681 for ac_exec_ext in '' $ac_executable_extensions; do
11682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11683 ac_cv_prog_ac_ct_CC="gcc"
11684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11694 if test -n "$ac_ct_CC"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11696 $as_echo "$ac_ct_CC" >&6; }
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11702 if test "x$ac_ct_CC" = x; then
11705 case $cross_compiling:$ac_tool_warned in
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11709 ac_tool_warned=yes ;;
11714 CC="$ac_cv_prog_CC"
11717 if test -z "$CC"; then
11718 if test -n "$ac_tool_prefix"; then
11719 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11720 set dummy ${ac_tool_prefix}cc; ac_word=$2
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11722 $as_echo_n "checking for $ac_word... " >&6; }
11723 if ${ac_cv_prog_CC+:} false; then :
11724 $as_echo_n "(cached) " >&6
11726 if test -n "$CC"; then
11727 ac_cv_prog_CC="$CC" # Let the user override the test.
11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11733 test -z "$as_dir" && as_dir=.
11734 for ac_exec_ext in '' $ac_executable_extensions; do
11735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11736 ac_cv_prog_CC="${ac_tool_prefix}cc"
11737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 if test -n "$CC"; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11749 $as_echo "$CC" >&6; }
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11758 if test -z "$CC"; then
11759 # Extract the first word of "cc", so it can be a program name with args.
11760 set dummy cc; ac_word=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if ${ac_cv_prog_CC+:} false; then :
11764 $as_echo_n "(cached) " >&6
11766 if test -n "$CC"; then
11767 ac_cv_prog_CC="$CC" # Let the user override the test.
11769 ac_prog_rejected=no
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $PATH
11774 test -z "$as_dir" && as_dir=.
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11778 ac_prog_rejected=yes
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 if test $ac_prog_rejected = yes; then
11790 # We found a bogon in the path, so make sure we never use it.
11791 set dummy $ac_cv_prog_CC
11793 if test $# != 0; then
11794 # We chose a different compiler from the bogus one.
11795 # However, it has the same basename, so the bogon will be chosen
11796 # first if we set CC to just the basename; use the full file name.
11798 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11804 if test -n "$CC"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11806 $as_echo "$CC" >&6; }
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11814 if test -z "$CC"; then
11815 if test -n "$ac_tool_prefix"; then
11816 for ac_prog in cl.exe
11818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_prog_CC+:} false; then :
11823 $as_echo_n "(cached) " >&6
11825 if test -n "$CC"; then
11826 ac_cv_prog_CC="$CC" # Let the user override the test.
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11832 test -z "$as_dir" && as_dir=.
11833 for ac_exec_ext in '' $ac_executable_extensions; do
11834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11846 if test -n "$CC"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11848 $as_echo "$CC" >&6; }
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11855 test -n "$CC" && break
11858 if test -z "$CC"; then
11860 for ac_prog in cl.exe
11862 # Extract the first word of "$ac_prog", so it can be a program name with args.
11863 set dummy $ac_prog; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11867 $as_echo_n "(cached) " >&6
11869 if test -n "$ac_ct_CC"; then
11870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879 ac_cv_prog_ac_ct_CC="$ac_prog"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11890 if test -n "$ac_ct_CC"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11892 $as_echo "$ac_ct_CC" >&6; }
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11899 test -n "$ac_ct_CC" && break
11902 if test "x$ac_ct_CC" = x; then
11905 case $cross_compiling:$ac_tool_warned in
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11909 ac_tool_warned=yes ;;
11918 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11920 as_fn_error $? "no acceptable C compiler found in \$PATH
11921 See \`config.log' for more details" "$LINENO" 5; }
11923 # Provide some information about the compiler.
11924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11927 for ac_option in --version -v -V -qversion; do
11928 { { ac_try="$ac_compiler $ac_option >&5"
11929 case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11934 $as_echo "$ac_try_echo"; } >&5
11935 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11937 if test -s conftest.err; then
11939 ... rest of stderr output deleted ...
11940 10q' conftest.err >conftest.er1
11941 cat conftest.er1 >&5
11943 rm -f conftest.er1 conftest.err
11944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11945 test $ac_status = 0; }
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11949 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11950 if ${ac_cv_c_compiler_gnu+:} false; then :
11951 $as_echo_n "(cached) " >&6
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11967 if ac_fn_c_try_compile "$LINENO"; then :
11968 ac_compiler_gnu=yes
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11977 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11978 if test $ac_compiler_gnu = yes; then
11983 ac_test_CFLAGS=${CFLAGS+set}
11984 ac_save_CFLAGS=$CFLAGS
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11986 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11987 if ${ac_cv_prog_cc_g+:} false; then :
11988 $as_echo_n "(cached) " >&6
11990 ac_save_c_werror_flag=$ac_c_werror_flag
11991 ac_c_werror_flag=yes
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
12005 if ac_fn_c_try_compile "$LINENO"; then :
12006 ac_cv_prog_cc_g=yes
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12020 if ac_fn_c_try_compile "$LINENO"; then :
12023 ac_c_werror_flag=$ac_save_c_werror_flag
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12036 if ac_fn_c_try_compile "$LINENO"; then :
12037 ac_cv_prog_cc_g=yes
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 ac_c_werror_flag=$ac_save_c_werror_flag
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12047 $as_echo "$ac_cv_prog_cc_g" >&6; }
12048 if test "$ac_test_CFLAGS" = set; then
12049 CFLAGS=$ac_save_CFLAGS
12050 elif test $ac_cv_prog_cc_g = yes; then
12051 if test "$GCC" = yes; then
12057 if test "$GCC" = yes; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12064 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12065 if ${ac_cv_prog_cc_c89+:} false; then :
12066 $as_echo_n "(cached) " >&6
12068 ac_cv_prog_cc_c89=no
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 #include <stdarg.h>
12075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12076 struct buf { int x; };
12077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12078 static char *e (p, i)
12084 static char *f (char * (*g) (char **, int), char **p, ...)
12089 s = g (p, va_arg (v,int));
12094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12095 function prototypes and stuff, but not '\xHH' hex character constants.
12096 These don't provoke an error unfortunately, instead are silently treated
12097 as 'x'. The following induces an error, until -std is added to get
12098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12099 array size at least. It's necessary to write '\x00'==0 to get something
12100 that's true only with -std. */
12101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12103 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12104 inside strings and character constants. */
12106 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12108 int test (int i, double x);
12109 struct s1 {int (*f) (int a);};
12110 struct s2 {int (*f) (double a);};
12111 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12117 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12122 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12123 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12125 CC="$ac_save_CC $ac_arg"
12126 if ac_fn_c_try_compile "$LINENO"; then :
12127 ac_cv_prog_cc_c89=$ac_arg
12129 rm -f core conftest.err conftest.$ac_objext
12130 test "x$ac_cv_prog_cc_c89" != "xno" && break
12132 rm -f conftest.$ac_ext
12137 case "x$ac_cv_prog_cc_c89" in
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12140 $as_echo "none needed" >&6; } ;;
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12143 $as_echo "unsupported" >&6; } ;;
12145 CC="$CC $ac_cv_prog_cc_c89"
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12147 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12149 if test "x$ac_cv_prog_cc_c89" != xno; then :
12154 ac_cpp='$CPP $CPPFLAGS'
12155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12160 ac_cpp='$CXXCPP $CPPFLAGS'
12161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12164 if test -z "$CXX"; then
12165 if test -n "$CCC"; then
12168 if test -n "$ac_tool_prefix"; then
12169 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174 $as_echo_n "checking for $ac_word... " >&6; }
12175 if ${ac_cv_prog_CXX+:} false; then :
12176 $as_echo_n "(cached) " >&6
12178 if test -n "$CXX"; then
12179 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12185 test -z "$as_dir" && as_dir=.
12186 for ac_exec_ext in '' $ac_executable_extensions; do
12187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12188 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 CXX=$ac_cv_prog_CXX
12199 if test -n "$CXX"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12201 $as_echo "$CXX" >&6; }
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12208 test -n "$CXX" && break
12211 if test -z "$CXX"; then
12213 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12215 # Extract the first word of "$ac_prog", so it can be a program name with args.
12216 set dummy $ac_prog; ac_word=$2
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218 $as_echo_n "checking for $ac_word... " >&6; }
12219 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12220 $as_echo_n "(cached) " >&6
12222 if test -n "$ac_ct_CXX"; then
12223 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232 ac_cv_prog_ac_ct_CXX="$ac_prog"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12243 if test -n "$ac_ct_CXX"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12245 $as_echo "$ac_ct_CXX" >&6; }
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12252 test -n "$ac_ct_CXX" && break
12255 if test "x$ac_ct_CXX" = x; then
12258 case $cross_compiling:$ac_tool_warned in
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12262 ac_tool_warned=yes ;;
12270 # Provide some information about the compiler.
12271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12274 for ac_option in --version -v -V -qversion; do
12275 { { ac_try="$ac_compiler $ac_option >&5"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12281 $as_echo "$ac_try_echo"; } >&5
12282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12284 if test -s conftest.err; then
12286 ... rest of stderr output deleted ...
12287 10q' conftest.err >conftest.er1
12288 cat conftest.er1 >&5
12290 rm -f conftest.er1 conftest.err
12291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12292 test $ac_status = 0; }
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12296 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12297 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12298 $as_echo_n "(cached) " >&6
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12314 if ac_fn_cxx_try_compile "$LINENO"; then :
12315 ac_compiler_gnu=yes
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12324 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12325 if test $ac_compiler_gnu = yes; then
12330 ac_test_CXXFLAGS=${CXXFLAGS+set}
12331 ac_save_CXXFLAGS=$CXXFLAGS
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12333 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12334 if ${ac_cv_prog_cxx_g+:} false; then :
12335 $as_echo_n "(cached) " >&6
12337 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12338 ac_cxx_werror_flag=yes
12339 ac_cv_prog_cxx_g=no
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12352 if ac_fn_cxx_try_compile "$LINENO"; then :
12353 ac_cv_prog_cxx_g=yes
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12367 if ac_fn_cxx_try_compile "$LINENO"; then :
12370 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12383 if ac_fn_cxx_try_compile "$LINENO"; then :
12384 ac_cv_prog_cxx_g=yes
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12394 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12395 if test "$ac_test_CXXFLAGS" = set; then
12396 CXXFLAGS=$ac_save_CXXFLAGS
12397 elif test $ac_cv_prog_cxx_g = yes; then
12398 if test "$GXX" = yes; then
12404 if test "$GXX" = yes; then
12411 ac_cpp='$CPP $CPPFLAGS'
12412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12418 func_stripname_cnf ()
12421 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12422 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12424 } # func_stripname_cnf
12426 if test -n "$CXX" && ( test no != "$CXX" &&
12427 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12428 (test g++ != "$CXX"))); then
12430 ac_cpp='$CXXCPP $CPPFLAGS'
12431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12435 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12436 if test -z "$CXXCPP"; then
12437 if ${ac_cv_prog_CXXCPP+:} false; then :
12438 $as_echo_n "(cached) " >&6
12440 # Double quotes because CXXCPP needs to be expanded
12441 for CXXCPP in "$CXX -E" "/lib/cpp"
12443 ac_preproc_ok=false
12444 for ac_cxx_preproc_warn_flag in '' yes
12446 # Use a header file that comes with gcc, so configuring glibc
12447 # with a fresh cross-compiler works.
12448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12449 # <limits.h> exists even on freestanding compilers.
12450 # On the NeXT, cc -E runs the code through the compiler's parser,
12451 # not just through cpp. "Syntax error" is here to catch this case.
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12455 # include <limits.h>
12457 # include <assert.h>
12461 if ac_fn_cxx_try_cpp "$LINENO"; then :
12464 # Broken: fails on valid input.
12467 rm -f conftest.err conftest.i conftest.$ac_ext
12469 # OK, works on sane cases. Now check whether nonexistent headers
12470 # can be detected and how.
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12473 #include <ac_nonexistent.h>
12475 if ac_fn_cxx_try_cpp "$LINENO"; then :
12476 # Broken: success on invalid input.
12479 # Passes both tests.
12483 rm -f conftest.err conftest.i conftest.$ac_ext
12486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12487 rm -f conftest.i conftest.err conftest.$ac_ext
12488 if $ac_preproc_ok; then :
12493 ac_cv_prog_CXXCPP=$CXXCPP
12496 CXXCPP=$ac_cv_prog_CXXCPP
12498 ac_cv_prog_CXXCPP=$CXXCPP
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12501 $as_echo "$CXXCPP" >&6; }
12502 ac_preproc_ok=false
12503 for ac_cxx_preproc_warn_flag in '' yes
12505 # Use a header file that comes with gcc, so configuring glibc
12506 # with a fresh cross-compiler works.
12507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12508 # <limits.h> exists even on freestanding compilers.
12509 # On the NeXT, cc -E runs the code through the compiler's parser,
12510 # not just through cpp. "Syntax error" is here to catch this case.
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12514 # include <limits.h>
12516 # include <assert.h>
12520 if ac_fn_cxx_try_cpp "$LINENO"; then :
12523 # Broken: fails on valid input.
12526 rm -f conftest.err conftest.i conftest.$ac_ext
12528 # OK, works on sane cases. Now check whether nonexistent headers
12529 # can be detected and how.
12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12532 #include <ac_nonexistent.h>
12534 if ac_fn_cxx_try_cpp "$LINENO"; then :
12535 # Broken: success on invalid input.
12538 # Passes both tests.
12542 rm -f conftest.err conftest.i conftest.$ac_ext
12545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12546 rm -f conftest.i conftest.err conftest.$ac_ext
12547 if $ac_preproc_ok; then :
12550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12552 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12553 See \`config.log' for more details" "$LINENO" 5; }
12557 ac_cpp='$CPP $CPPFLAGS'
12558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12563 _lt_caught_CXX_error=yes
12567 ac_cpp='$CXXCPP $CPPFLAGS'
12568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12572 archive_cmds_need_lc_CXX=no
12573 allow_undefined_flag_CXX=
12574 always_export_symbols_CXX=no
12575 archive_expsym_cmds_CXX=
12576 compiler_needs_object_CXX=no
12577 export_dynamic_flag_spec_CXX=
12578 hardcode_direct_CXX=no
12579 hardcode_direct_absolute_CXX=no
12580 hardcode_libdir_flag_spec_CXX=
12581 hardcode_libdir_separator_CXX=
12582 hardcode_minus_L_CXX=no
12583 hardcode_shlibpath_var_CXX=unsupported
12584 hardcode_automatic_CXX=no
12585 inherit_rpath_CXX=no
12587 module_expsym_cmds_CXX=
12588 link_all_deplibs_CXX=unknown
12589 old_archive_cmds_CXX=$old_archive_cmds
12590 reload_flag_CXX=$reload_flag
12591 reload_cmds_CXX=$reload_cmds
12592 no_undefined_flag_CXX=
12593 whole_archive_flag_spec_CXX=
12594 enable_shared_with_static_runtimes_CXX=no
12596 # Source file extension for C++ test sources.
12599 # Object file extension for compiled C++ test sources.
12603 # No sense in running all these tests if we already determined that
12604 # the CXX compiler isn't working. Some variables (like enable_shared)
12605 # are currently assumed to apply to all compilers on this platform,
12606 # and will be corrupted by setting them based on a non-working compiler.
12607 if test yes != "$_lt_caught_CXX_error"; then
12608 # Code to be used in simple compile tests
12609 lt_simple_compile_test_code="int some_variable = 0;"
12611 # Code to be used in simple link tests
12612 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12614 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12621 # If no C compiler was specified, use CC.
12624 # If no C compiler flags were specified, use CFLAGS.
12625 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12627 # Allow CC to be a program name with arguments.
12631 # save warnings/boilerplate of simple test code
12632 ac_outfile=conftest.$ac_objext
12633 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12635 _lt_compiler_boilerplate=`cat conftest.err`
12638 ac_outfile=conftest.$ac_objext
12639 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12641 _lt_linker_boilerplate=`cat conftest.err`
12645 # Allow CC to be a program name with arguments.
12647 lt_save_CFLAGS=$CFLAGS
12651 lt_save_with_gnu_ld=$with_gnu_ld
12652 lt_save_path_LD=$lt_cv_path_LD
12653 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12654 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12656 $as_unset lt_cv_prog_gnu_ld
12658 if test -n "${lt_cv_path_LDCXX+set}"; then
12659 lt_cv_path_LD=$lt_cv_path_LDCXX
12661 $as_unset lt_cv_path_LD
12663 test -z "${LDCXX+set}" || LD=$LDCXX
12668 func_cc_basename $compiler
12669 cc_basename=$func_cc_basename_result
12672 if test -n "$compiler"; then
12673 # We don't want -fno-exception when compiling C++ code, so set the
12674 # no_builtin_flag separately
12675 if test yes = "$GXX"; then
12676 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12678 lt_prog_compiler_no_builtin_flag_CXX=
12681 if test yes = "$GXX"; then
12682 # Set up default GNU C++ configuration
12686 # Check whether --with-gnu-ld was given.
12687 if test "${with_gnu_ld+set}" = set; then :
12688 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12694 if test yes = "$GCC"; then
12695 # Check if gcc -print-prog-name=ld gives a path.
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12697 $as_echo_n "checking for ld used by $CC... " >&6; }
12700 # gcc leaves a trailing carriage return, which upsets mingw
12701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12706 # Accept absolute paths.
12708 re_direlt='/[^/][^/]*/\.\./'
12709 # Canonicalize the pathname of ld
12710 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12711 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12712 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12714 test -z "$LD" && LD=$ac_prog
12717 # If it fails, then pretend we aren't using GCC.
12721 # If it is relative, then search for the first ld in PATH.
12722 with_gnu_ld=unknown
12725 elif test yes = "$with_gnu_ld"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12727 $as_echo_n "checking for GNU ld... " >&6; }
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12730 $as_echo_n "checking for non-GNU ld... " >&6; }
12732 if ${lt_cv_path_LD+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 if test -z "$LD"; then
12736 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12737 for ac_dir in $PATH; do
12739 test -z "$ac_dir" && ac_dir=.
12740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12741 lt_cv_path_LD=$ac_dir/$ac_prog
12742 # Check to see if the program is GNU ld. I'd rather use --version,
12743 # but apparently some variants of GNU ld only accept -v.
12744 # Break only if it was the GNU/non-GNU ld that we prefer.
12745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12746 *GNU* | *'with BFD'*)
12747 test no != "$with_gnu_ld" && break
12750 test yes != "$with_gnu_ld" && break
12757 lt_cv_path_LD=$LD # Let the user override the test with a path.
12762 if test -n "$LD"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12764 $as_echo "$LD" >&6; }
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12769 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12772 if ${lt_cv_prog_gnu_ld+:} false; then :
12773 $as_echo_n "(cached) " >&6
12775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12776 case `$LD -v 2>&1 </dev/null` in
12777 *GNU* | *'with BFD'*)
12778 lt_cv_prog_gnu_ld=yes
12781 lt_cv_prog_gnu_ld=no
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12787 with_gnu_ld=$lt_cv_prog_gnu_ld
12795 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12796 # archiving commands below assume that GNU ld is being used.
12797 if test yes = "$with_gnu_ld"; then
12798 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12799 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'
12801 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12802 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12804 # If archive_cmds runs LD, not CC, wlarc should be empty
12805 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12806 # investigate it a little bit more. (MM)
12809 # ancient GNU ld didn't support --whole-archive et. al.
12810 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12811 $GREP 'no-whole-archive' > /dev/null; then
12812 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12814 whole_archive_flag_spec_CXX=
12820 # A generic and very simple default shared library creation
12821 # command for GNU C++ for the case where it uses the native
12822 # linker, instead of GNU ld. If possible, this setting should
12823 # overridden to take advantage of the native linker features on
12824 # the platform it is being used on.
12825 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12828 # Commands to make compiler produce verbose output that lists
12829 # what "hidden" libraries, object files and flags are used when
12830 # linking a shared library.
12831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12839 # PORTME: fill in a description of your system's C++ link characteristics
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12841 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12845 # FIXME: insert proper C++ library support
12849 if test ia64 = "$host_cpu"; then
12850 # On IA64, the linker does run time linking by default, so we don't
12851 # have to do anything special.
12852 aix_use_runtimelinking=no
12853 exp_sym_flag='-Bexport'
12856 aix_use_runtimelinking=no
12858 # Test if we are trying to use run time linking or normal
12859 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12860 # have runtime linking enabled, and use it for executables.
12861 # For shared libraries, we enable/disable runtime linking
12862 # depending on the kind of the shared library created -
12863 # when "with_aix_soname,aix_use_runtimelinking" is:
12864 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12865 # "aix,yes" lib.so shared, rtl:yes, for executables
12866 # lib.a static archive
12867 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12868 # lib.a(lib.so.V) shared, rtl:no, for executables
12869 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12870 # lib.a(lib.so.V) shared, rtl:no
12871 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12872 # lib.a static archive
12873 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12874 for ld_flag in $LDFLAGS; do
12877 aix_use_runtimelinking=yes
12882 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12883 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12884 # so we don't have lib.a shared libs to link our executables.
12885 # We have to force runtime linking in this case.
12886 aix_use_runtimelinking=yes
12887 LDFLAGS="$LDFLAGS -Wl,-brtl"
12892 exp_sym_flag='-bexport'
12893 no_entry_flag='-bnoentry'
12896 # When large executables or shared objects are built, AIX ld can
12897 # have problems creating the table of contents. If linking a library
12898 # or program results in "error TOC overflow" add -mminimal-toc to
12899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12902 archive_cmds_CXX=''
12903 hardcode_direct_CXX=yes
12904 hardcode_direct_absolute_CXX=yes
12905 hardcode_libdir_separator_CXX=':'
12906 link_all_deplibs_CXX=yes
12907 file_list_spec_CXX='$wl-f,'
12908 case $with_aix_soname,$aix_use_runtimelinking in
12909 aix,*) ;; # no import file
12910 svr4,* | *,yes) # use import file
12911 # The Import File defines what to hardcode.
12912 hardcode_direct_CXX=no
12913 hardcode_direct_absolute_CXX=no
12917 if test yes = "$GXX"; then
12918 case $host_os in aix4.[012]|aix4.[012].*)
12919 # We only want to do this on AIX 4.2 and lower, the check
12920 # below for broken collect2 doesn't work under 4.3+
12921 collect2name=`$CC -print-prog-name=collect2`
12922 if test -f "$collect2name" &&
12923 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12925 # We have reworked collect2
12928 # We have old collect2
12929 hardcode_direct_CXX=unsupported
12930 # It fails to find uninstalled libraries when the uninstalled
12931 # path is not listed in the libpath. Setting hardcode_minus_L
12932 # to unsupported forces relinking
12933 hardcode_minus_L_CXX=yes
12934 hardcode_libdir_flag_spec_CXX='-L$libdir'
12935 hardcode_libdir_separator_CXX=
12938 shared_flag='-shared'
12939 if test yes = "$aix_use_runtimelinking"; then
12940 shared_flag=$shared_flag' $wl-G'
12942 # Need to ensure runtime linking is disabled for the traditional
12943 # shared library, or the linker may eventually find shared libraries
12944 # /with/ Import File - we do not want to mix them.
12945 shared_flag_aix='-shared'
12946 shared_flag_svr4='-shared $wl-G'
12949 if test ia64 = "$host_cpu"; then
12950 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12951 # chokes on -Wl,-G. The following line is correct:
12954 if test yes = "$aix_use_runtimelinking"; then
12955 shared_flag='$wl-G'
12957 shared_flag='$wl-bM:SRE'
12959 shared_flag_aix='$wl-bM:SRE'
12960 shared_flag_svr4='$wl-G'
12964 export_dynamic_flag_spec_CXX='$wl-bexpall'
12965 # It seems that -bexpall does not export symbols beginning with
12966 # underscore (_), so it is better to generate a list of symbols to
12968 always_export_symbols_CXX=yes
12969 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12970 # Warning - without using the other runtime loading flags (-brtl),
12971 # -berok will link without error, but may produce a broken library.
12972 # The "-G" linker flag allows undefined symbols.
12973 no_undefined_flag_CXX='-bernotok'
12974 # Determine the default libpath from the value encoded in an empty
12976 if test set = "${lt_cv_aix_libpath+set}"; then
12977 aix_libpath=$lt_cv_aix_libpath
12979 if ${lt_cv_aix_libpath__CXX+:} false; then :
12980 $as_echo_n "(cached) " >&6
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12993 if ac_fn_cxx_try_link "$LINENO"; then :
12995 lt_aix_libpath_sed='
12996 /Import File Strings/,/^$/ {
12998 s/^0 *\([^ ]*\) *$/\1/
13002 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13003 # Check for a 64-bit object if we didn't find anything.
13004 if test -z "$lt_cv_aix_libpath__CXX"; then
13005 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 if test -z "$lt_cv_aix_libpath__CXX"; then
13011 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13016 aix_libpath=$lt_cv_aix_libpath__CXX
13019 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13021 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
13023 if test ia64 = "$host_cpu"; then
13024 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13025 allow_undefined_flag_CXX="-z nodefs"
13026 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"
13028 # Determine the default libpath from the value encoded in an
13029 # empty executable.
13030 if test set = "${lt_cv_aix_libpath+set}"; then
13031 aix_libpath=$lt_cv_aix_libpath
13033 if ${lt_cv_aix_libpath__CXX+:} false; then :
13034 $as_echo_n "(cached) " >&6
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13047 if ac_fn_cxx_try_link "$LINENO"; then :
13049 lt_aix_libpath_sed='
13050 /Import File Strings/,/^$/ {
13052 s/^0 *\([^ ]*\) *$/\1/
13056 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13057 # Check for a 64-bit object if we didn't find anything.
13058 if test -z "$lt_cv_aix_libpath__CXX"; then
13059 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13062 rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext conftest.$ac_ext
13064 if test -z "$lt_cv_aix_libpath__CXX"; then
13065 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13070 aix_libpath=$lt_cv_aix_libpath__CXX
13073 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13074 # Warning - without using the other run time loading flags,
13075 # -berok will link without error, but may produce a broken library.
13076 no_undefined_flag_CXX=' $wl-bernotok'
13077 allow_undefined_flag_CXX=' $wl-berok'
13078 if test yes = "$with_gnu_ld"; then
13079 # We only use this code for GNU lds that support --whole-archive.
13080 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13082 # Exported symbols can be pulled into shared objects from archives
13083 whole_archive_flag_spec_CXX='$convenience'
13085 archive_cmds_need_lc_CXX=yes
13086 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13087 # -brtl affects multiple linker settings, -berok does not and is overridden later
13088 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13089 if test svr4 != "$with_aix_soname"; then
13090 # This is similar to how AIX traditionally builds its shared
13091 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13092 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'
13094 if test aix != "$with_aix_soname"; then
13095 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'
13097 # used by -dlpreopen to get the symbols
13098 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13100 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13106 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13107 allow_undefined_flag_CXX=unsupported
13108 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13109 # support --undefined. This deserves some investigation. FIXME
13110 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13117 case $cc_basename in
13119 # FIXME: insert proper C++ library support
13125 cygwin* | mingw* | pw32* | cegcc*)
13126 case $GXX,$cc_basename in
13129 # hardcode_libdir_flag_spec is actually meaningless, as there is
13130 # no search path for DLLs.
13131 hardcode_libdir_flag_spec_CXX=' '
13132 allow_undefined_flag_CXX=unsupported
13133 always_export_symbols_CXX=yes
13134 file_list_spec_CXX='@'
13135 # Tell ltmain to make .lib files, not .a files.
13137 # Tell ltmain to make .dll files, not .so files.
13139 # FIXME: Setting linknames here is a bad hack.
13140 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13141 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13142 cp "$export_symbols" "$output_objdir/$soname.def";
13143 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13145 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13147 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13149 # The linker will not automatically build a static lib if we build a DLL.
13150 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13151 enable_shared_with_static_runtimes_CXX=yes
13153 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13154 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13155 lt_tool_outputfile="@TOOL_OUTPUT@"~
13156 case $lt_outputfile in
13159 lt_outputfile=$lt_outputfile.exe
13160 lt_tool_outputfile=$lt_tool_outputfile.exe
13163 func_to_tool_file "$lt_outputfile"~
13164 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13165 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13166 $RM "$lt_outputfile.manifest";
13171 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13172 # as there is no search path for DLLs.
13173 hardcode_libdir_flag_spec_CXX='-L$libdir'
13174 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13175 allow_undefined_flag_CXX=unsupported
13176 always_export_symbols_CXX=no
13177 enable_shared_with_static_runtimes_CXX=yes
13179 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13180 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'
13181 # If the export-symbols file already is a .def file, use it as
13182 # is; otherwise, prepend EXPORTS...
13183 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13184 cp $export_symbols $output_objdir/$soname.def;
13186 echo EXPORTS > $output_objdir/$soname.def;
13187 cat $export_symbols >> $output_objdir/$soname.def;
13189 $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'
13196 darwin* | rhapsody*)
13199 archive_cmds_need_lc_CXX=no
13200 hardcode_direct_CXX=no
13201 hardcode_automatic_CXX=yes
13202 hardcode_shlibpath_var_CXX=unsupported
13203 if test yes = "$lt_cv_ld_force_load"; then
13204 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\"`'
13207 whole_archive_flag_spec_CXX=''
13209 link_all_deplibs_CXX=yes
13210 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13211 case $cc_basename in
13212 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13213 *) _lt_dar_can_shared=$GCC ;;
13215 if test yes = "$_lt_dar_can_shared"; then
13216 output_verbose_link_cmd=func_echo_all
13217 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"
13218 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13219 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"
13220 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"
13221 if test yes != "$lt_cv_apple_cc_single_mod"; then
13222 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"
13223 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"
13233 hardcode_libdir_flag_spec_CXX='-L$libdir'
13234 hardcode_minus_L_CXX=yes
13235 allow_undefined_flag_CXX=unsupported
13237 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13238 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13239 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13240 $ECHO EXPORTS >> $output_objdir/$libname.def~
13241 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13242 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13243 emximp -o $lib $output_objdir/$libname.def'
13244 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13245 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13246 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13247 $ECHO EXPORTS >> $output_objdir/$libname.def~
13248 prefix_cmds="$SED"~
13249 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13250 prefix_cmds="$prefix_cmds -e 1d";
13252 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13253 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13254 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13255 emximp -o $lib $output_objdir/$libname.def'
13256 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13257 enable_shared_with_static_runtimes_CXX=yes
13261 case $cc_basename in
13263 # FIXME: insert proper C++ library support
13267 # Green Hills C++ Compiler
13268 # FIXME: insert proper C++ library support
13272 # FIXME: insert proper C++ library support
13279 # C++ shared libraries reported to be fairly broken before
13285 archive_cmds_need_lc_CXX=no
13288 freebsd* | dragonfly*)
13289 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13295 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13296 link_all_deplibs_CXX=yes
13300 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13301 hardcode_libdir_separator_CXX=:
13302 export_dynamic_flag_spec_CXX='$wl-E'
13303 hardcode_direct_CXX=yes
13304 hardcode_minus_L_CXX=yes # Not in the search PATH,
13305 # but as the default
13306 # location of the library.
13308 case $cc_basename in
13310 # FIXME: insert proper C++ library support
13314 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 $output_objdir/$soname $lib'
13315 # Commands to make compiler produce verbose output that lists
13316 # what "hidden" libraries, object files and flags are used when
13317 # linking a shared library.
13319 # There doesn't appear to be a way to prevent this compiler from
13320 # explicitly linking system object files so we need to strip them
13321 # from the output so that they don't get included in the library
13323 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"'
13326 if test yes = "$GXX"; then
13327 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 $output_objdir/$soname $lib'
13329 # FIXME: insert proper C++ library support
13337 if test no = "$with_gnu_ld"; then
13338 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13339 hardcode_libdir_separator_CXX=:
13345 export_dynamic_flag_spec_CXX='$wl-E'
13351 hardcode_direct_CXX=no
13352 hardcode_shlibpath_var_CXX=no
13355 hardcode_direct_CXX=yes
13356 hardcode_direct_absolute_CXX=yes
13357 hardcode_minus_L_CXX=yes # Not in the search PATH,
13358 # but as the default
13359 # location of the library.
13363 case $cc_basename in
13365 # FIXME: insert proper C++ library support
13371 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13374 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13377 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13380 # Commands to make compiler produce verbose output that lists
13381 # what "hidden" libraries, object files and flags are used when
13382 # linking a shared library.
13384 # There doesn't appear to be a way to prevent this compiler from
13385 # explicitly linking system object files so we need to strip them
13386 # from the output so that they don't get included in the library
13388 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"'
13391 if test yes = "$GXX"; then
13392 if test no = "$with_gnu_ld"; then
13395 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13398 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13401 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'
13406 # FIXME: insert proper C++ library support
13414 hardcode_direct_CXX=no
13415 hardcode_shlibpath_var_CXX=no
13416 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13417 export_dynamic_flag_spec_CXX='$wl-E'
13418 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13419 # Instead, shared libraries are loaded at an image base (0x10000000 by
13420 # default) and relocated if they conflict, which is a slow very memory
13421 # consuming and fragmenting process. To avoid this, we pick a random,
13422 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13423 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13424 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'
13425 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'
13428 case $cc_basename in
13431 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'
13433 # Archives containing C++ object files must be created using
13434 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13435 # necessary to make sure instantiated templates are included
13437 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13440 if test yes = "$GXX"; then
13441 if test no = "$with_gnu_ld"; then
13442 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'
13444 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'
13447 link_all_deplibs_CXX=yes
13450 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13451 hardcode_libdir_separator_CXX=:
13452 inherit_rpath_CXX=yes
13455 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13456 case $cc_basename in
13458 # Kuck and Associates, Inc. (KAI) C++ Compiler
13460 # KCC will only create a shared library if the output file
13461 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13462 # to its proper name (with version) after linking.
13463 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 \$templib $lib'
13464 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 \$templib $lib'
13465 # Commands to make compiler produce verbose output that lists
13466 # what "hidden" libraries, object files and flags are used when
13467 # linking a shared library.
13469 # There doesn't appear to be a way to prevent this compiler from
13470 # explicitly linking system object files so we need to strip them
13471 # from the output so that they don't get included in the library
13473 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"'
13475 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13476 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13478 # Archives containing C++ object files must be created using
13479 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13480 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13485 # version 8.0 and above of icpc choke on multiply defined symbols
13486 # if we add $predep_objects and $postdep_objects, however 7.1 and
13487 # earlier do not add the objects themselves.
13488 case `$CC -V 2>&1` in
13490 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13491 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'
13493 *) # Version 8.0 or newer
13496 ia64*) tmp_idyn=' -i_dynamic';;
13498 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13499 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'
13502 archive_cmds_need_lc_CXX=no
13503 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13504 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13505 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13508 # Portland Group C++ compiler
13510 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13511 prelink_cmds_CXX='tpldir=Template.dir~
13513 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13514 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13515 old_archive_cmds_CXX='tpldir=Template.dir~
13517 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13518 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13520 archive_cmds_CXX='tpldir=Template.dir~
13522 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13523 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13524 archive_expsym_cmds_CXX='tpldir=Template.dir~
13526 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13527 $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'
13529 *) # Version 6 and above use weak symbols
13530 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13531 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'
13535 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13536 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13537 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'
13541 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13542 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'
13544 runpath_var=LD_RUN_PATH
13545 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13546 hardcode_libdir_separator_CXX=:
13548 # Commands to make compiler produce verbose output that lists
13549 # what "hidden" libraries, object files and flags are used when
13550 # linking a shared library.
13552 # There doesn't appear to be a way to prevent this compiler from
13553 # explicitly linking system object files so we need to strip them
13554 # from the output so that they don't get included in the library
13556 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'
13558 xl* | mpixl* | bgxl*)
13559 # IBM XL 8.0 on PPC, with GNU ld
13560 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13561 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13562 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13563 if test yes = "$supports_anon_versioning"; then
13564 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13566 echo "local: *; };" >> $output_objdir/$libname.ver~
13567 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13571 case `$CC -V 2>&1 | sed 5q` in
13574 no_undefined_flag_CXX=' -zdefs'
13575 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13576 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'
13577 hardcode_libdir_flag_spec_CXX='-R$libdir'
13578 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'
13579 compiler_needs_object_CXX=yes
13581 # Not sure whether something based on
13582 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13584 output_verbose_link_cmd='func_echo_all'
13586 # Archives containing C++ object files must be created using
13587 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13588 # necessary to make sure instantiated templates are included
13590 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13598 # FIXME: insert proper C++ library support
13603 # FIXME: insert proper C++ library support
13608 case $cc_basename in
13610 # FIXME: insert proper C++ library support
13614 # FIXME: insert proper C++ library support
13621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13622 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13624 hardcode_libdir_flag_spec_CXX='-R$libdir'
13625 hardcode_direct_CXX=yes
13626 hardcode_shlibpath_var_CXX=no
13628 # Workaround some broken pre-1.5 toolchains
13629 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13636 openbsd* | bitrig*)
13637 if test -f /usr/libexec/ld.so; then
13638 hardcode_direct_CXX=yes
13639 hardcode_shlibpath_var_CXX=no
13640 hardcode_direct_absolute_CXX=yes
13641 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13642 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13644 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13645 export_dynamic_flag_spec_CXX='$wl-E'
13646 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13648 output_verbose_link_cmd=func_echo_all
13654 osf3* | osf4* | osf5*)
13655 case $cc_basename in
13657 # Kuck and Associates, Inc. (KAI) C++ Compiler
13659 # KCC will only create a shared library if the output file
13660 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13661 # to its proper name (with version) after linking.
13662 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 \$templib $lib'
13664 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13665 hardcode_libdir_separator_CXX=:
13667 # Archives containing C++ object files must be created using
13668 # the KAI C++ compiler.
13670 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13671 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13675 # Rational C++ 2.4.1
13676 # FIXME: insert proper C++ library support
13682 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13683 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'
13684 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13687 allow_undefined_flag_CXX=' -expect_unresolved \*'
13688 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'
13689 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13690 echo "-hidden">> $lib.exp~
13691 $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~
13693 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13697 hardcode_libdir_separator_CXX=:
13699 # Commands to make compiler produce verbose output that lists
13700 # what "hidden" libraries, object files and flags are used when
13701 # linking a shared library.
13703 # There doesn't appear to be a way to prevent this compiler from
13704 # explicitly linking system object files so we need to strip them
13705 # from the output so that they don't get included in the library
13707 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"'
13710 if test yes,no = "$GXX,$with_gnu_ld"; then
13711 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13714 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'
13717 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'
13721 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13722 hardcode_libdir_separator_CXX=:
13724 # Commands to make compiler produce verbose output that lists
13725 # what "hidden" libraries, object files and flags are used when
13726 # linking a shared library.
13727 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13730 # FIXME: insert proper C++ library support
13738 # FIXME: insert proper C++ library support
13743 case $cc_basename in
13746 # FIXME: insert proper C++ library support
13751 # FIXME: insert proper C++ library support
13755 # FIXME: insert proper C++ library support
13762 case $cc_basename in
13764 # Sun C++ 4.2, 5.x and Centerline C++
13765 archive_cmds_need_lc_CXX=yes
13766 no_undefined_flag_CXX=' -zdefs'
13767 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13768 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13769 $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'
13771 hardcode_libdir_flag_spec_CXX='-R$libdir'
13772 hardcode_shlibpath_var_CXX=no
13774 solaris2.[0-5] | solaris2.[0-5].*) ;;
13776 # The compiler driver will combine and reorder linker options,
13777 # but understands '-z linker_flag'.
13778 # Supported since Solaris 2.6 (maybe 2.5.1?)
13779 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13782 link_all_deplibs_CXX=yes
13784 output_verbose_link_cmd='func_echo_all'
13786 # Archives containing C++ object files must be created using
13787 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13788 # necessary to make sure instantiated templates are included
13790 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13793 # Green Hills C++ Compiler
13794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13796 # The C++ compiler must be used to create the archive.
13797 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13800 # GNU C++ compiler with Solaris linker
13801 if test yes,no = "$GXX,$with_gnu_ld"; then
13802 no_undefined_flag_CXX=' $wl-z ${wl}defs'
13803 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13804 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13805 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13806 $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'
13808 # Commands to make compiler produce verbose output that lists
13809 # what "hidden" libraries, object files and flags are used when
13810 # linking a shared library.
13811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13813 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13815 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13816 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13817 $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'
13819 # Commands to make compiler produce verbose output that lists
13820 # what "hidden" libraries, object files and flags are used when
13821 # linking a shared library.
13822 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13825 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13827 solaris2.[0-5] | solaris2.[0-5].*) ;;
13829 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13837 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13838 no_undefined_flag_CXX='$wl-z,text'
13839 archive_cmds_need_lc_CXX=no
13840 hardcode_shlibpath_var_CXX=no
13841 runpath_var='LD_RUN_PATH'
13843 case $cc_basename in
13845 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13849 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13850 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13855 sysv5* | sco3.2v5* | sco5v6*)
13856 # Note: We CANNOT use -z defs as we might desire, because we do not
13857 # link with -lc, and that would cause any symbols used from libc to
13858 # always be unresolved, which means just about no library would
13859 # ever link correctly. If we're not using GNU ld we use -z text
13860 # though, which does catch some bad symbols but isn't as heavy-handed
13862 no_undefined_flag_CXX='$wl-z,text'
13863 allow_undefined_flag_CXX='$wl-z,nodefs'
13864 archive_cmds_need_lc_CXX=no
13865 hardcode_shlibpath_var_CXX=no
13866 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13867 hardcode_libdir_separator_CXX=':'
13868 link_all_deplibs_CXX=yes
13869 export_dynamic_flag_spec_CXX='$wl-Bexport'
13870 runpath_var='LD_RUN_PATH'
13872 case $cc_basename in
13874 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13875 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13876 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13877 '"$old_archive_cmds_CXX"
13878 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13879 '"$reload_cmds_CXX"
13882 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13883 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13889 case $cc_basename in
13891 # NonStop-UX NCC 3.20
13892 # FIXME: insert proper C++ library support
13896 # FIXME: insert proper C++ library support
13903 # FIXME: insert proper C++ library support
13908 # FIXME: insert proper C++ library support
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13914 $as_echo "$ld_shlibs_CXX" >&6; }
13915 test no = "$ld_shlibs_CXX" && can_build_shared=no
13921 ## There is no encapsulation within the following macros, do not change
13922 ## the running order or otherwise move them around unless you know exactly
13923 ## what you are doing...
13924 # Dependencies to place before and after the object being linked:
13925 predep_objects_CXX=
13926 postdep_objects_CXX=
13929 compiler_lib_search_path_CXX=
13931 cat > conftest.$ac_ext <<_LT_EOF
13935 Foo (void) { a = 0; }
13942 _lt_libdeps_save_CFLAGS=$CFLAGS
13943 case "$CC $CFLAGS " in #(
13944 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13945 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13946 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13950 (eval $ac_compile) 2>&5
13952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13953 test $ac_status = 0; }; then
13954 # Parse the compiler output and extract the necessary
13955 # objects, libraries and library flags.
13957 # Sentinel used to keep track of whether or not we are before
13958 # the conftest object file.
13959 pre_test_object_deps_done=no
13961 for p in `eval "$output_verbose_link_cmd"`; do
13965 # Some compilers place space between "-{L,R}" and the path.
13966 # Remove the space.
13967 if test x-L = "$p" ||
13968 test x-R = "$p"; then
13973 # Expand the sysroot to ease extracting the directories later.
13974 if test -z "$prev"; then
13976 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13977 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13978 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13982 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13984 if test no = "$pre_test_object_deps_done"; then
13987 # Internal compiler library paths should come after those
13988 # provided the user. The postdeps already come after the
13989 # user supplied libs so there is no need to process them.
13990 if test -z "$compiler_lib_search_path_CXX"; then
13991 compiler_lib_search_path_CXX=$prev$p
13993 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
13996 # The "-l" case would never come before the object being
13997 # linked, so don't bother handling this case.
14000 if test -z "$postdeps_CXX"; then
14001 postdeps_CXX=$prev$p
14003 postdeps_CXX="${postdeps_CXX} $prev$p"
14009 *.lto.$objext) ;; # Ignore GCC LTO objects
14011 # This assumes that the test object file only shows up
14012 # once in the compiler output.
14013 if test "$p" = "conftest.$objext"; then
14014 pre_test_object_deps_done=yes
14018 if test no = "$pre_test_object_deps_done"; then
14019 if test -z "$predep_objects_CXX"; then
14020 predep_objects_CXX=$p
14022 predep_objects_CXX="$predep_objects_CXX $p"
14025 if test -z "$postdep_objects_CXX"; then
14026 postdep_objects_CXX=$p
14028 postdep_objects_CXX="$postdep_objects_CXX $p"
14033 *) ;; # Ignore the rest.
14041 echo "libtool.m4: error: problem compiling CXX test program"
14044 $RM -f confest.$objext
14045 CFLAGS=$_lt_libdeps_save_CFLAGS
14047 # PORTME: override above test on systems where it is broken
14050 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14051 # hack all around it, let's just trust "g++" to DTRT.
14052 predep_objects_CXX=
14053 postdep_objects_CXX=
14059 case " $postdeps_CXX " in
14060 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14062 compiler_lib_search_dirs_CXX=
14063 if test -n "${compiler_lib_search_path_CXX}"; then
14064 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14097 lt_prog_compiler_wl_CXX=
14098 lt_prog_compiler_pic_CXX=
14099 lt_prog_compiler_static_CXX=
14102 # C++ specific cases for pic, static, wl, etc.
14103 if test yes = "$GXX"; then
14104 lt_prog_compiler_wl_CXX='-Wl,'
14105 lt_prog_compiler_static_CXX='-static'
14109 # All AIX code is PIC.
14110 if test ia64 = "$host_cpu"; then
14111 # AIX 5 now supports IA64 processor
14112 lt_prog_compiler_static_CXX='-Bstatic'
14114 lt_prog_compiler_pic_CXX='-fPIC'
14120 # see comment about AmigaOS4 .so support
14121 lt_prog_compiler_pic_CXX='-fPIC'
14124 # FIXME: we need at least 68020 code to build shared libraries, but
14125 # adding the '-m68020' flag to GCC prevents building anything better,
14127 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14132 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14133 # PIC is the default for these OSes.
14135 mingw* | cygwin* | os2* | pw32* | cegcc*)
14136 # This hack is so that the source file can tell whether it is being
14137 # built for inclusion in a dll (and should export symbols for example).
14138 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14139 # (--disable-auto-import) libraries
14140 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14143 lt_prog_compiler_static_CXX='$wl-static'
14147 darwin* | rhapsody*)
14148 # PIC is the default on this platform
14149 # Common symbols not allowed in MH_DYLIB files
14150 lt_prog_compiler_pic_CXX='-fno-common'
14153 # DJGPP does not support shared libraries at all
14154 lt_prog_compiler_pic_CXX=
14157 # PIC is the default for Haiku.
14158 # The "-static" flag exists, but is broken.
14159 lt_prog_compiler_static_CXX=
14162 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14163 # Instead, we relocate shared libraries at runtime.
14166 if test -d /usr/nec; then
14167 lt_prog_compiler_pic_CXX=-Kconform_pic
14171 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14172 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14173 # sets the default TLS model and affects inlining.
14178 lt_prog_compiler_pic_CXX='-fPIC'
14183 # QNX uses GNU C++, but need to define -shared option too, otherwise
14184 # it will coredump.
14185 lt_prog_compiler_pic_CXX='-fPIC -shared'
14188 lt_prog_compiler_pic_CXX='-fPIC'
14194 # All AIX code is PIC.
14195 if test ia64 = "$host_cpu"; then
14196 # AIX 5 now supports IA64 processor
14197 lt_prog_compiler_static_CXX='-Bstatic'
14199 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14203 case $cc_basename in
14205 # Green Hills C++ Compiler
14206 # _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"
14210 mingw* | cygwin* | os2* | pw32* | cegcc*)
14211 # This hack is so that the source file can tell whether it is being
14212 # built for inclusion in a dll (and should export symbols for example).
14213 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14216 case $cc_basename in
14218 lt_prog_compiler_pic_CXX='-KPIC'
14221 # Green Hills C++ Compiler
14222 lt_prog_compiler_pic_CXX='-pic'
14228 freebsd* | dragonfly*)
14229 # FreeBSD uses GNU C++
14231 hpux9* | hpux10* | hpux11*)
14232 case $cc_basename in
14234 lt_prog_compiler_wl_CXX='-Wl,'
14235 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14236 if test ia64 != "$host_cpu"; then
14237 lt_prog_compiler_pic_CXX='+Z'
14241 lt_prog_compiler_wl_CXX='-Wl,'
14242 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14248 lt_prog_compiler_pic_CXX='+Z'
14257 # This is c89, which is MS Visual C++ (no shared libs)
14258 # Anyone wants to do a port?
14260 irix5* | irix6* | nonstopux*)
14261 case $cc_basename in
14263 lt_prog_compiler_wl_CXX='-Wl,'
14264 lt_prog_compiler_static_CXX='-non_shared'
14265 # CC pic flag -KPIC is the default.
14271 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14272 case $cc_basename in
14275 lt_prog_compiler_wl_CXX='--backend -Wl,'
14276 lt_prog_compiler_pic_CXX='-fPIC'
14279 # old Intel C++ for x86_64, which still supported -KPIC.
14280 lt_prog_compiler_wl_CXX='-Wl,'
14281 lt_prog_compiler_pic_CXX='-KPIC'
14282 lt_prog_compiler_static_CXX='-static'
14285 # Intel C++, used to be incompatible with GCC.
14286 # ICC 10 doesn't accept -KPIC any more.
14287 lt_prog_compiler_wl_CXX='-Wl,'
14288 lt_prog_compiler_pic_CXX='-fPIC'
14289 lt_prog_compiler_static_CXX='-static'
14292 # Portland Group C++ compiler
14293 lt_prog_compiler_wl_CXX='-Wl,'
14294 lt_prog_compiler_pic_CXX='-fpic'
14295 lt_prog_compiler_static_CXX='-Bstatic'
14299 # Make sure the PIC flag is empty. It appears that all Alpha
14300 # Linux and Compaq Tru64 Unix objects are PIC.
14301 lt_prog_compiler_pic_CXX=
14302 lt_prog_compiler_static_CXX='-non_shared'
14304 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14305 # IBM XL 8.0, 9.0 on PPC and BlueGene
14306 lt_prog_compiler_wl_CXX='-Wl,'
14307 lt_prog_compiler_pic_CXX='-qpic'
14308 lt_prog_compiler_static_CXX='-qstaticlink'
14311 case `$CC -V 2>&1 | sed 5q` in
14314 lt_prog_compiler_pic_CXX='-KPIC'
14315 lt_prog_compiler_static_CXX='-Bstatic'
14316 lt_prog_compiler_wl_CXX='-Qoption ld '
14327 case $cc_basename in
14329 lt_prog_compiler_pic_CXX='-W c,exportall'
14338 # QNX uses GNU C++, but need to define -shared option too, otherwise
14339 # it will coredump.
14340 lt_prog_compiler_pic_CXX='-fPIC -shared'
14342 osf3* | osf4* | osf5*)
14343 case $cc_basename in
14345 lt_prog_compiler_wl_CXX='--backend -Wl,'
14348 # Rational C++ 2.4.1
14349 lt_prog_compiler_pic_CXX='-pic'
14352 # Digital/Compaq C++
14353 lt_prog_compiler_wl_CXX='-Wl,'
14354 # Make sure the PIC flag is empty. It appears that all Alpha
14355 # Linux and Compaq Tru64 Unix objects are PIC.
14356 lt_prog_compiler_pic_CXX=
14357 lt_prog_compiler_static_CXX='-non_shared'
14366 case $cc_basename in
14368 # Sun C++ 4.2, 5.x and Centerline C++
14369 lt_prog_compiler_pic_CXX='-KPIC'
14370 lt_prog_compiler_static_CXX='-Bstatic'
14371 lt_prog_compiler_wl_CXX='-Qoption ld '
14374 # Green Hills C++ Compiler
14375 lt_prog_compiler_pic_CXX='-PIC'
14382 case $cc_basename in
14385 lt_prog_compiler_pic_CXX='-pic'
14386 lt_prog_compiler_static_CXX='-Bstatic'
14390 lt_prog_compiler_pic_CXX='-pic'
14396 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14397 case $cc_basename in
14399 lt_prog_compiler_wl_CXX='-Wl,'
14400 lt_prog_compiler_pic_CXX='-KPIC'
14401 lt_prog_compiler_static_CXX='-Bstatic'
14406 case $cc_basename in
14408 # NonStop-UX NCC 3.20
14409 lt_prog_compiler_pic_CXX='-KPIC'
14418 lt_prog_compiler_can_build_shared_CXX=no
14424 # For platforms that do not support PIC, -DPIC is meaningless:
14426 lt_prog_compiler_pic_CXX=
14429 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14434 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14435 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14436 $as_echo_n "(cached) " >&6
14438 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14441 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14442 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14445 # Check to make sure the PIC flag actually works.
14447 if test -n "$lt_prog_compiler_pic_CXX"; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14449 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14450 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14451 $as_echo_n "(cached) " >&6
14453 lt_cv_prog_compiler_pic_works_CXX=no
14454 ac_outfile=conftest.$ac_objext
14455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14456 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14457 # Insert the option either (1) after the last *FLAGS variable, or
14458 # (2) before a word containing "conftest.", or (3) at the end.
14459 # Note that $ac_compile itself does not contain backslashes and begins
14460 # with a dollar sign (not a hyphen), so the echo should work correctly.
14461 # The option is referenced via a variable to avoid confusing sed.
14462 lt_compile=`echo "$ac_compile" | $SED \
14463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14465 -e 's:$: $lt_compiler_flag:'`
14466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14467 (eval "$lt_compile" 2>conftest.err)
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 if (exit $ac_status) && test -s "$ac_outfile"; then
14472 # The compiler can only warn and ignore the option if not recognized
14473 # So say no if there are warnings other than the usual output.
14474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14477 lt_cv_prog_compiler_pic_works_CXX=yes
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14484 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14486 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14487 case $lt_prog_compiler_pic_CXX in
14489 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14492 lt_prog_compiler_pic_CXX=
14493 lt_prog_compiler_can_build_shared_CXX=no
14503 # Check to make sure the static flag actually works.
14505 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14507 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14508 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14509 $as_echo_n "(cached) " >&6
14511 lt_cv_prog_compiler_static_works_CXX=no
14512 save_LDFLAGS=$LDFLAGS
14513 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14514 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14515 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14516 # The linker can only warn and ignore the option if not recognized
14517 # So say no if there are warnings
14518 if test -s conftest.err; then
14519 # Append any errors to the config.log.
14520 cat conftest.err 1>&5
14521 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14523 if diff conftest.exp conftest.er2 >/dev/null; then
14524 lt_cv_prog_compiler_static_works_CXX=yes
14527 lt_cv_prog_compiler_static_works_CXX=yes
14531 LDFLAGS=$save_LDFLAGS
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14535 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14537 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14540 lt_prog_compiler_static_CXX=
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14548 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14549 $as_echo_n "(cached) " >&6
14551 lt_cv_prog_compiler_c_o_CXX=no
14552 $RM -r conftest 2>/dev/null
14556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14558 lt_compiler_flag="-o out/conftest2.$ac_objext"
14559 # Insert the option either (1) after the last *FLAGS variable, or
14560 # (2) before a word containing "conftest.", or (3) at the end.
14561 # Note that $ac_compile itself does not contain backslashes and begins
14562 # with a dollar sign (not a hyphen), so the echo should work correctly.
14563 lt_compile=`echo "$ac_compile" | $SED \
14564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14566 -e 's:$: $lt_compiler_flag:'`
14567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14568 (eval "$lt_compile" 2>out/conftest.err)
14570 cat out/conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14574 # The compiler can only warn and ignore the option if not recognized
14575 # So say no if there are warnings
14576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14579 lt_cv_prog_compiler_c_o_CXX=yes
14584 # SGI C++ compiler will create directory out/ii_files/ for
14585 # template instantiation
14586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14587 $RM out/* && rmdir out
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14594 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14600 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14601 $as_echo_n "(cached) " >&6
14603 lt_cv_prog_compiler_c_o_CXX=no
14604 $RM -r conftest 2>/dev/null
14608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14610 lt_compiler_flag="-o out/conftest2.$ac_objext"
14611 # Insert the option either (1) after the last *FLAGS variable, or
14612 # (2) before a word containing "conftest.", or (3) at the end.
14613 # Note that $ac_compile itself does not contain backslashes and begins
14614 # with a dollar sign (not a hyphen), so the echo should work correctly.
14615 lt_compile=`echo "$ac_compile" | $SED \
14616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14618 -e 's:$: $lt_compiler_flag:'`
14619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14620 (eval "$lt_compile" 2>out/conftest.err)
14622 cat out/conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14626 # The compiler can only warn and ignore the option if not recognized
14627 # So say no if there are warnings
14628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14631 lt_cv_prog_compiler_c_o_CXX=yes
14636 # SGI C++ compiler will create directory out/ii_files/ for
14637 # template instantiation
14638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14639 $RM out/* && rmdir out
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14646 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14651 hard_links=nottested
14652 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14653 # do not overwrite the value of need_locks provided by the user
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14655 $as_echo_n "checking if we can lock with hard links... " >&6; }
14658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14660 ln conftest.a conftest.b 2>&5 || hard_links=no
14661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14663 $as_echo "$hard_links" >&6; }
14664 if test no = "$hard_links"; then
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14666 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14676 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14679 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14682 # If we're using GNU nm, then we don't want the "-C" option.
14683 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14684 # Without the "-l" option, or with the "-B" option, AIX nm treats
14685 # weak defined symbols like other global defined symbols, whereas
14686 # GNU nm marks them as "W".
14687 # While the 'weak' keyword is ignored in the Export File, we need
14688 # it in the Import File for the 'aix-soname' feature, so we have
14689 # to replace the "-B" option with "-P" for AIX nm.
14690 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14691 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'
14693 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'
14697 export_symbols_cmds_CXX=$ltdll_cmds
14699 cygwin* | mingw* | cegcc*)
14700 case $cc_basename in
14702 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14705 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'
14706 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14711 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14716 $as_echo "$ld_shlibs_CXX" >&6; }
14717 test no = "$ld_shlibs_CXX" && can_build_shared=no
14719 with_gnu_ld_CXX=$with_gnu_ld
14727 # Do we need to explicitly link libc?
14729 case "x$archive_cmds_need_lc_CXX" in
14731 # Assume -lc should be added
14732 archive_cmds_need_lc_CXX=yes
14734 if test yes,yes = "$GCC,$enable_shared"; then
14735 case $archive_cmds_CXX in
14737 # FIXME: we may have to deal with multi-command sequences.
14740 # Test whether the compiler implicitly links with -lc since on some
14741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14742 # to ld, don't add -lc before -lgcc.
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14744 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14745 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14746 $as_echo_n "(cached) " >&6
14749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14752 (eval $ac_compile) 2>&5
14754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14755 test $ac_status = 0; } 2>conftest.err; then
14758 libobjs=conftest.$ac_objext
14760 wl=$lt_prog_compiler_wl_CXX
14761 pic_flag=$lt_prog_compiler_pic_CXX
14767 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14768 allow_undefined_flag_CXX=
14769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14770 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14773 test $ac_status = 0; }
14775 lt_cv_archive_cmds_need_lc_CXX=no
14777 lt_cv_archive_cmds_need_lc_CXX=yes
14779 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14781 cat conftest.err 1>&5
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14787 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14788 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14857 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14859 library_names_spec=
14860 libname_spec='lib$name'
14864 postuninstall_cmds=
14868 shlibpath_overrides_runpath=unknown
14870 dynamic_linker="$host_os ld.so"
14871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14872 need_lib_prefix=unknown
14873 hardcode_into_libs=no
14875 # when you set need_version to no, make sure it does not cause -set_version
14876 # flags to be left without arguments
14877 need_version=unknown
14883 version_type=linux # correct to gnu/linux during the next big refactor
14884 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14885 shlibpath_var=LIBPATH
14887 # AIX 3 has no versioning support, so we append a major version to the name.
14888 soname_spec='$libname$release$shared_ext$major'
14892 version_type=linux # correct to gnu/linux during the next big refactor
14895 hardcode_into_libs=yes
14896 if test ia64 = "$host_cpu"; then
14897 # AIX 5 supports IA64
14898 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14899 shlibpath_var=LD_LIBRARY_PATH
14901 # With GCC up to 2.95.x, collect2 would create an import file
14902 # for dependence libraries. The import file would start with
14903 # the line '#! .'. This would cause the generated library to
14904 # depend on '.', always an invalid library. This was fixed in
14905 # development snapshots of GCC prior to 3.0.
14907 aix4 | aix4.[01] | aix4.[01].*)
14908 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14910 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14913 can_build_shared=no
14917 # Using Import Files as archive members, it is possible to support
14918 # filename-based versioning of shared library archives on AIX. While
14919 # this would work for both with and without runtime linking, it will
14920 # prevent static linking of such archives. So we do filename-based
14921 # shared library versioning with .so extension only, which is used
14922 # when both runtime linking and shared linking is enabled.
14923 # Unfortunately, runtime linking may impact performance, so we do
14924 # not want this to be the default eventually. Also, we use the
14925 # versioned .so libs for executables only if there is the -brtl
14926 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14927 # To allow for filename-based versioning support, we need to create
14928 # libNAME.so.V as an archive file, containing:
14929 # *) an Import File, referring to the versioned filename of the
14930 # archive as well as the shared archive member, telling the
14931 # bitwidth (32 or 64) of that shared object, and providing the
14932 # list of exported symbols of that shared object, eventually
14933 # decorated with the 'weak' keyword
14934 # *) the shared object with the F_LOADONLY flag set, to really avoid
14935 # it being seen by the linker.
14936 # At run time we better use the real file rather than another symlink,
14937 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14939 case $with_aix_soname,$aix_use_runtimelinking in
14940 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14941 # soname into executable. Probably we can add versioning support to
14942 # collect2, so additional links can be useful in future.
14943 aix,yes) # traditional libtool
14944 dynamic_linker='AIX unversionable lib.so'
14945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14946 # instead of lib<name>.a to let people know that these are not
14947 # typical AIX shared libraries.
14948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14950 aix,no) # traditional AIX only
14951 dynamic_linker='AIX lib.a(lib.so.V)'
14952 # We preserve .a as extension for shared libraries through AIX4.2
14953 # and later when we are not doing run time linking.
14954 library_names_spec='$libname$release.a $libname.a'
14955 soname_spec='$libname$release$shared_ext$major'
14957 svr4,*) # full svr4 only
14958 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14959 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14960 # We do not specify a path in Import Files, so LIBPATH fires.
14961 shlibpath_overrides_runpath=yes
14963 *,yes) # both, prefer svr4
14964 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14965 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14966 # unpreferred sharedlib libNAME.a needs extra handling
14967 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"'
14968 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"'
14969 # We do not specify a path in Import Files, so LIBPATH fires.
14970 shlibpath_overrides_runpath=yes
14972 *,no) # both, prefer aix
14973 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14974 library_names_spec='$libname$release.a $libname.a'
14975 soname_spec='$libname$release$shared_ext$major'
14976 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14977 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)'
14978 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"'
14981 shlibpath_var=LIBPATH
14988 # Since July 2007 AmigaOS4 officially supports .so libraries.
14989 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14993 library_names_spec='$libname.ixlibrary $libname.a'
14994 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14995 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'
15001 library_names_spec='$libname$shared_ext'
15002 dynamic_linker="$host_os ld.so"
15003 shlibpath_var=LIBRARY_PATH
15007 version_type=linux # correct to gnu/linux during the next big refactor
15009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15010 soname_spec='$libname$release$shared_ext$major'
15011 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15012 shlibpath_var=LD_LIBRARY_PATH
15013 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15014 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15015 # the default ld.so.conf also contains /usr/contrib/lib and
15016 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15017 # libtool to hard-code these into programs
15020 cygwin* | mingw* | pw32* | cegcc*)
15021 version_type=windows
15026 case $GCC,$cc_basename in
15029 library_names_spec='$libname.dll.a'
15030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15031 postinstall_cmds='base_file=`basename \$file`~
15032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15033 dldir=$destdir/`dirname \$dlpath`~
15034 test -d \$dldir || mkdir -p \$dldir~
15035 $install_prog $dir/$dlname \$dldir/$dlname~
15036 chmod a+x \$dldir/$dlname~
15037 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15038 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15041 dlpath=$dir/\$dldll~
15043 shlibpath_overrides_runpath=yes
15047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15048 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15052 # MinGW DLLs use traditional 'lib' prefix
15053 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15056 # pw32 DLLs use 'pw' prefix rather than 'lib'
15057 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15060 dynamic_linker='Win32 ld.exe'
15065 libname_spec='$name'
15066 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15067 library_names_spec='$libname.dll.lib'
15071 sys_lib_search_path_spec=
15074 for lt_path in $LIB
15077 # Let DOS variable expansion print the short 8.3 style file name.
15078 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15079 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15082 # Convert to MSYS style.
15083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15086 # Convert to unix form, then to dos form, then back to unix form
15087 # but this time dos style (no spaces!) so that the unix form looks
15088 # like /cygdrive/c/PROGRA~1:/cygdr...
15089 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15090 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15091 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15094 sys_lib_search_path_spec=$LIB
15095 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15096 # It is most probably a Windows format PATH.
15097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15101 # FIXME: find the short name or the path components, as spaces are
15102 # common. (e.g. "Program Files" -> "PROGRA~1")
15106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15107 postinstall_cmds='base_file=`basename \$file`~
15108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15109 dldir=$destdir/`dirname \$dlpath`~
15110 test -d \$dldir || mkdir -p \$dldir~
15111 $install_prog $dir/$dlname \$dldir/$dlname'
15112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15113 dlpath=$dir/\$dldll~
15115 shlibpath_overrides_runpath=yes
15116 dynamic_linker='Win32 link.exe'
15120 # Assume MSVC wrapper
15121 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15122 dynamic_linker='Win32 ld.exe'
15125 # FIXME: first we should search . and the directory the executable is in
15129 darwin* | rhapsody*)
15130 dynamic_linker="$host_os dyld"
15131 version_type=darwin
15134 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15135 soname_spec='$libname$release$major$shared_ext'
15136 shlibpath_overrides_runpath=yes
15137 shlibpath_var=DYLD_LIBRARY_PATH
15138 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15140 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15144 version_type=linux # correct to gnu/linux during the next big refactor
15147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15148 soname_spec='$libname$release$shared_ext$major'
15149 shlibpath_var=LD_LIBRARY_PATH
15152 freebsd* | dragonfly*)
15153 # DragonFly does not have aout. When/if they implement a new
15154 # versioning mechanism, adjust this.
15155 if test -x /usr/bin/objformat; then
15156 objformat=`/usr/bin/objformat`
15159 freebsd[23].*) objformat=aout ;;
15160 *) objformat=elf ;;
15163 # Handle Gentoo/FreeBSD as it was Linux
15164 case $host_vendor in
15166 version_type=linux ;;
15168 version_type=freebsd-$objformat ;;
15171 case $version_type in
15173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15174 soname_spec='$libname$release$shared_ext$major'
15179 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15189 shlibpath_var=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath=yes
15194 freebsd3.[01]* | freebsdelf3.[01]*)
15195 shlibpath_overrides_runpath=yes
15196 hardcode_into_libs=yes
15198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15200 shlibpath_overrides_runpath=no
15201 hardcode_into_libs=yes
15203 *) # from 4.6 on, and DragonFly
15204 shlibpath_overrides_runpath=yes
15205 hardcode_into_libs=yes
15211 version_type=linux # correct to gnu/linux during the next big refactor
15214 dynamic_linker="$host_os runtime_loader"
15215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15216 soname_spec='$libname$release$shared_ext$major'
15217 shlibpath_var=LIBRARY_PATH
15218 shlibpath_overrides_runpath=no
15219 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15220 hardcode_into_libs=yes
15223 hpux9* | hpux10* | hpux11*)
15224 # Give a soname corresponding to the major version so that dld.sl refuses to
15225 # link against other versions.
15232 hardcode_into_libs=yes
15233 dynamic_linker="$host_os dld.so"
15234 shlibpath_var=LD_LIBRARY_PATH
15235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15237 soname_spec='$libname$release$shared_ext$major'
15238 if test 32 = "$HPUX_IA64_MODE"; then
15239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15240 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15242 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15243 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15248 hardcode_into_libs=yes
15249 dynamic_linker="$host_os dld.sl"
15250 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15253 soname_spec='$libname$release$shared_ext$major'
15254 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15259 dynamic_linker="$host_os dld.sl"
15260 shlibpath_var=SHLIB_PATH
15261 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15263 soname_spec='$libname$release$shared_ext$major'
15266 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15267 postinstall_cmds='chmod 555 $lib'
15268 # or fails outright, so override atomically:
15269 install_override_mode=555
15273 version_type=linux # correct to gnu/linux during the next big refactor
15276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15277 soname_spec='$libname$release$shared_ext$major'
15278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=no
15281 hardcode_into_libs=yes
15284 irix5* | irix6* | nonstopux*)
15286 nonstopux*) version_type=nonstopux ;;
15288 if test yes = "$lt_cv_prog_gnu_ld"; then
15289 version_type=linux # correct to gnu/linux during the next big refactor
15296 soname_spec='$libname$release$shared_ext$major'
15297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15299 irix5* | nonstopux*)
15300 libsuff= shlibsuff=
15303 case $LD in # libtool.m4 will add one of these switches to LD
15304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15305 libsuff= shlibsuff= libmagic=32-bit;;
15306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15307 libsuff=32 shlibsuff=N32 libmagic=N32;;
15308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15309 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15310 *) libsuff= shlibsuff= libmagic=never-match;;
15314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15315 shlibpath_overrides_runpath=no
15316 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15317 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15318 hardcode_into_libs=yes
15321 # No shared lib support for Linux oldld, aout, or coff.
15322 linux*oldld* | linux*aout* | linux*coff*)
15327 version_type=none # Android doesn't support versioned libraries.
15330 library_names_spec='$libname$release$shared_ext'
15331 soname_spec='$libname$release$shared_ext'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 shlibpath_overrides_runpath=yes
15336 # This implies no fast_install, which is unacceptable.
15337 # Some rework will be needed to allow for fast_install
15338 # before this can be enabled.
15339 hardcode_into_libs=yes
15341 dynamic_linker='Android linker'
15342 # Don't embed -rpath directories since the linker doesn't support them.
15343 hardcode_libdir_flag_spec_CXX='-L$libdir'
15346 # This must be glibc/ELF.
15347 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15348 version_type=linux # correct to gnu/linux during the next big refactor
15351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15352 soname_spec='$libname$release$shared_ext$major'
15353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath=no
15357 # Some binutils ld are patched to set DT_RUNPATH
15358 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15359 $as_echo_n "(cached) " >&6
15361 lt_cv_shlibpath_overrides_runpath=no
15362 save_LDFLAGS=$LDFLAGS
15363 save_libdir=$libdir
15364 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15365 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15377 if ac_fn_cxx_try_link "$LINENO"; then :
15378 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15379 lt_cv_shlibpath_overrides_runpath=yes
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 LDFLAGS=$save_LDFLAGS
15385 libdir=$save_libdir
15389 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15391 # This implies no fast_install, which is unacceptable.
15392 # Some rework will be needed to allow for fast_install
15393 # before this can be enabled.
15394 hardcode_into_libs=yes
15396 # Ideally, we could use ldconfig to report *all* directores which are
15397 # searched for libraries, however this is still not possible. Aside from not
15398 # being certain /sbin/ldconfig is available, command
15399 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15400 # even though it is searched at run-time. Try to do the best guess by
15401 # appending ld.so.conf contents (and includes) to the search path.
15402 if test -f /etc/ld.so.conf; then
15403 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' ' '`
15404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15407 # We used to test for /lib/ld.so.1 and disable shared libraries on
15408 # powerpc, because MkLinux only supported shared libraries with the
15409 # GNU dynamic linker. Since this was broken with cross compilers,
15410 # most powerpc-linux boxes support dynamic linking these days and
15411 # people can always --disable-shared, the test was removed, and we
15412 # assume the GNU/Linux dynamic linker is in use.
15413 dynamic_linker='GNU/Linux ld.so'
15420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15423 dynamic_linker='NetBSD (a.out) ld.so'
15425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15426 soname_spec='$libname$release$shared_ext$major'
15427 dynamic_linker='NetBSD ld.elf_so'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath=yes
15431 hardcode_into_libs=yes
15435 version_type=linux # correct to gnu/linux during the next big refactor
15436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15437 shlibpath_var=LD_LIBRARY_PATH
15438 shlibpath_overrides_runpath=yes
15445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15446 soname_spec='$libname$release$shared_ext$major'
15447 shlibpath_var=LD_LIBRARY_PATH
15448 shlibpath_overrides_runpath=no
15449 hardcode_into_libs=yes
15450 dynamic_linker='ldqnx.so'
15453 openbsd* | bitrig*)
15455 sys_lib_dlsearch_path_spec=/usr/lib
15457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes
15469 libname_spec='$name'
15470 version_type=windows
15474 # OS/2 can only load a DLL with a base name of 8 characters or less.
15475 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15476 v=$($ECHO $release$versuffix | tr -d .-);
15477 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15478 $ECHO $n$v`$shared_ext'
15479 library_names_spec='${libname}_dll.$libext'
15480 dynamic_linker='OS/2 ld.exe'
15481 shlibpath_var=BEGINLIBPATH
15482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15484 postinstall_cmds='base_file=`basename \$file`~
15485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15486 dldir=$destdir/`dirname \$dlpath`~
15487 test -d \$dldir || mkdir -p \$dldir~
15488 $install_prog $dir/$dlname \$dldir/$dlname~
15489 chmod a+x \$dldir/$dlname~
15490 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15491 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15494 dlpath=$dir/\$dldll~
15498 osf3* | osf4* | osf5*)
15502 soname_spec='$libname$release$shared_ext$major'
15503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15504 shlibpath_var=LD_LIBRARY_PATH
15505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15514 version_type=linux # correct to gnu/linux during the next big refactor
15517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15518 soname_spec='$libname$release$shared_ext$major'
15519 shlibpath_var=LD_LIBRARY_PATH
15520 shlibpath_overrides_runpath=yes
15521 hardcode_into_libs=yes
15522 # ldd complains unless libraries are executable
15523 postinstall_cmds='chmod +x $lib'
15528 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=yes
15532 if test yes = "$with_gnu_ld"; then
15539 version_type=linux # correct to gnu/linux during the next big refactor
15540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15541 soname_spec='$libname$release$shared_ext$major'
15542 shlibpath_var=LD_LIBRARY_PATH
15543 case $host_vendor in
15545 shlibpath_overrides_runpath=no
15547 runpath_var=LD_RUN_PATH
15555 shlibpath_overrides_runpath=no
15556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15562 if test -d /usr/nec; then
15563 version_type=linux # correct to gnu/linux during the next big refactor
15564 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15565 soname_spec='$libname$shared_ext.$major'
15566 shlibpath_var=LD_LIBRARY_PATH
15570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15575 soname_spec='$libname$release$shared_ext$major'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 shlibpath_overrides_runpath=yes
15578 hardcode_into_libs=yes
15579 if test yes = "$with_gnu_ld"; then
15580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15582 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15585 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15589 sys_lib_dlsearch_path_spec='/usr/lib'
15593 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15594 version_type=linux # correct to gnu/linux during the next big refactor
15597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 shlibpath_overrides_runpath=no
15600 hardcode_into_libs=yes
15604 version_type=linux # correct to gnu/linux during the next big refactor
15605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15606 soname_spec='$libname$release$shared_ext$major'
15607 shlibpath_var=LD_LIBRARY_PATH
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15615 $as_echo "$dynamic_linker" >&6; }
15616 test no = "$dynamic_linker" && can_build_shared=no
15618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15619 if test yes = "$GCC"; then
15620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15623 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15624 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15627 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15628 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15631 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15632 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15634 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15635 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15637 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15638 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15680 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15681 hardcode_action_CXX=
15682 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15683 test -n "$runpath_var_CXX" ||
15684 test yes = "$hardcode_automatic_CXX"; then
15686 # We can hardcode non-existent directories.
15687 if test no != "$hardcode_direct_CXX" &&
15688 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15689 # have to relink, otherwise we might link with an installed library
15690 # when we should be linking with a yet-to-be-installed one
15691 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15692 test no != "$hardcode_minus_L_CXX"; then
15693 # Linking always hardcodes the temporary library directory.
15694 hardcode_action_CXX=relink
15696 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15697 hardcode_action_CXX=immediate
15700 # We cannot hardcode anything, or else we can only hardcode existing
15702 hardcode_action_CXX=unsupported
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15705 $as_echo "$hardcode_action_CXX" >&6; }
15707 if test relink = "$hardcode_action_CXX" ||
15708 test yes = "$inherit_rpath_CXX"; then
15709 # Fast installation is not supported
15710 enable_fast_install=no
15711 elif test yes = "$shlibpath_overrides_runpath" ||
15712 test no = "$enable_shared"; then
15713 # Fast installation is not necessary
15714 enable_fast_install=needless
15723 fi # test -n "$compiler"
15726 CFLAGS=$lt_save_CFLAGS
15730 with_gnu_ld=$lt_save_with_gnu_ld
15731 lt_cv_path_LDCXX=$lt_cv_path_LD
15732 lt_cv_path_LD=$lt_save_path_LD
15733 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15734 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15735 fi # test yes != "$_lt_caught_CXX_error"
15738 ac_cpp='$CPP $CPPFLAGS'
15739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15744 # Find a good install program. We prefer a C program (faster),
15745 # so one script is as good as another. But avoid the broken or
15746 # incompatible versions:
15747 # SysV /etc/install, /usr/sbin/install
15748 # SunOS /usr/etc/install
15749 # IRIX /sbin/install
15751 # AmigaOS /C/install, which installs bootblocks on floppy discs
15752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15755 # OS/2's system install, which has a completely different semantic
15756 # ./install, which can be erroneously created by make from ./install.sh.
15757 # Reject install programs that cannot install multiple files.
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15759 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15760 if test -z "$INSTALL"; then
15761 if ${ac_cv_path_install+:} false; then :
15762 $as_echo_n "(cached) " >&6
15764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765 for as_dir in $PATH
15768 test -z "$as_dir" && as_dir=.
15769 # Account for people who put trailing slashes in PATH elements.
15770 case $as_dir/ in #((
15771 ./ | .// | /[cC]/* | \
15772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15773 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15776 # OSF1 and SCO ODT 3.0 have their own names for install.
15777 # Don't use installbsd from OSF since it installs stuff as root
15779 for ac_prog in ginstall scoinst install; do
15780 for ac_exec_ext in '' $ac_executable_extensions; do
15781 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15782 if test $ac_prog = install &&
15783 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15784 # AIX install. It has an incompatible calling convention.
15786 elif test $ac_prog = install &&
15787 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15788 # program-specific install script used by HP pwplus--don't use.
15791 rm -rf conftest.one conftest.two conftest.dir
15792 echo one > conftest.one
15793 echo two > conftest.two
15795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15796 test -s conftest.one && test -s conftest.two &&
15797 test -s conftest.dir/conftest.one &&
15798 test -s conftest.dir/conftest.two
15800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15813 rm -rf conftest.one conftest.two conftest.dir
15816 if test "${ac_cv_path_install+set}" = set; then
15817 INSTALL=$ac_cv_path_install
15819 # As a last resort, use the slow shell script. Don't cache a
15820 # value for INSTALL within a source directory, because that will
15821 # break other packages using the cache if that directory is
15822 # removed, or if the value is a relative name.
15823 INSTALL=$ac_install_sh
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15827 $as_echo "$INSTALL" >&6; }
15829 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15830 # It thinks the first close brace ends the variable substitution.
15831 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15833 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15835 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15838 if test "$GCC" = yes ; then
15839 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
15840 CFLAGS="$OLDCFLAGS -fexceptions"
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
15842 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h. */
15854 if ac_fn_c_try_link "$LINENO"; then :
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15856 $as_echo "yes" >&6; }
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15859 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
15861 rm -f core conftest.err conftest.$ac_objext \
15862 conftest$ac_exeext conftest.$ac_ext
15863 if test "x$CXXFLAGS" = x ; then
15864 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15869 $as_echo_n "checking for ANSI C header files... " >&6; }
15870 if ${ac_cv_header_stdc+:} false; then :
15871 $as_echo_n "(cached) " >&6
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h. */
15875 #include <stdlib.h>
15876 #include <stdarg.h>
15877 #include <string.h>
15888 if ac_fn_c_try_compile "$LINENO"; then :
15889 ac_cv_header_stdc=yes
15891 ac_cv_header_stdc=no
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 if test $ac_cv_header_stdc = yes; then
15896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15899 #include <string.h>
15902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15903 $EGREP "memchr" >/dev/null 2>&1; then :
15906 ac_cv_header_stdc=no
15912 if test $ac_cv_header_stdc = yes; then
15913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 #include <stdlib.h>
15919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15920 $EGREP "free" >/dev/null 2>&1; then :
15923 ac_cv_header_stdc=no
15929 if test $ac_cv_header_stdc = yes; then
15930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15931 if test "$cross_compiling" = yes; then :
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15937 #include <stdlib.h>
15938 #if ((' ' & 0x0FF) == 0x020)
15939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15942 # define ISLOWER(c) \
15943 (('a' <= (c) && (c) <= 'i') \
15944 || ('j' <= (c) && (c) <= 'r') \
15945 || ('s' <= (c) && (c) <= 'z'))
15946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15954 for (i = 0; i < 256; i++)
15955 if (XOR (islower (i), ISLOWER (i))
15956 || toupper (i) != TOUPPER (i))
15961 if ac_fn_c_try_run "$LINENO"; then :
15964 ac_cv_header_stdc=no
15966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15967 conftest.$ac_objext conftest.beam conftest.$ac_ext
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15973 $as_echo "$ac_cv_header_stdc" >&6; }
15974 if test $ac_cv_header_stdc = yes; then
15976 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15983 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15984 if ${ac_cv_c_bigendian+:} false; then :
15985 $as_echo_n "(cached) " >&6
15987 ac_cv_c_bigendian=unknown
15988 # See if sys/param.h defines the BYTE_ORDER macro.
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15991 #include <sys/types.h>
15992 #include <sys/param.h>
15997 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15998 bogus endian macros
16004 if ac_fn_c_try_compile "$LINENO"; then :
16005 # It does; now see whether it defined to BIG_ENDIAN or not.
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16008 #include <sys/types.h>
16009 #include <sys/param.h>
16014 #if BYTE_ORDER != BIG_ENDIAN
16021 if ac_fn_c_try_compile "$LINENO"; then :
16022 ac_cv_c_bigendian=yes
16024 ac_cv_c_bigendian=no
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16029 if test $ac_cv_c_bigendian = unknown; then
16030 if test "$cross_compiling" = yes; then :
16031 echo $ac_n "cross-compiling... " 2>&6
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16036 /* Are we little or big endian? From Harbison&Steele. */
16040 char c[sizeof (long)];
16043 exit (u.c[sizeof (long) - 1] == 1);
16046 if ac_fn_c_try_run "$LINENO"; then :
16047 ac_cv_c_bigendian=no
16049 ac_cv_c_bigendian=yes
16051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16052 conftest.$ac_objext conftest.beam conftest.$ac_ext
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16058 $as_echo "$ac_cv_c_bigendian" >&6; }
16059 if test $ac_cv_c_bigendian = unknown; then
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16061 $as_echo_n "checking to probe for byte ordering... " >&6; }
16063 cat >conftest.c <<EOF
16064 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16065 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16066 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16067 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16068 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16069 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16070 int main() { _ascii (); _ebcdic (); return 0; }
16072 if test -f conftest.c ; then
16073 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
16074 if test `grep -l BIGenDianSyS conftest.o` ; then
16075 echo $ac_n ' big endian probe OK, ' 1>&6
16076 ac_cv_c_bigendian=yes
16078 if test `grep -l LiTTleEnDian conftest.o` ; then
16079 echo $ac_n ' little endian probe OK, ' 1>&6
16080 if test $ac_cv_c_bigendian = yes ; then
16081 ac_cv_c_bigendian=unknown;
16083 ac_cv_c_bigendian=no
16086 echo $ac_n 'guessing bigendian ... ' >&6
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16090 $as_echo "$ac_cv_c_bigendian" >&6; }
16092 if test $ac_cv_c_bigendian = yes; then
16094 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16101 cat >>confdefs.h <<_ACEOF
16102 #define BYTEORDER $BYTEORDER
16105 if test $ac_cv_c_bigendian = unknown; then
16106 as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16111 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16112 if ${ac_cv_c_const+:} false; then :
16113 $as_echo_n "(cached) " >&6
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16122 #ifndef __cplusplus
16123 /* Ultrix mips cc rejects this sort of thing. */
16124 typedef int charset[2];
16125 const charset cs = { 0, 0 };
16126 /* SunOS 4.1.1 cc rejects this. */
16127 char const *const *pcpcc;
16129 /* NEC SVR4.0.2 mips cc rejects this. */
16130 struct point {int x, y;};
16131 static struct point const zero = {0,0};
16132 /* AIX XL C 1.02.0.0 rejects this.
16133 It does not let you subtract one const X* pointer from another in
16134 an arm of an if-expression whose if-part is not a constant
16136 const char *g = "string";
16137 pcpcc = &g + (g ? g-g : 0);
16138 /* HPUX 7.0 cc rejects these. */
16140 ppc = (char**) pcpcc;
16141 pcpcc = (char const *const *) ppc;
16142 { /* SCO 3.2v4 cc rejects this sort of thing. */
16145 char const *s = 0 ? (char *) 0 : (char const *) 0;
16150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16151 int x[] = {25, 17};
16152 const int *foo = &x[0];
16155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16156 typedef const int *iptr;
16160 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16162 struct s { int j; const int *ap[3]; } bx;
16163 struct s *b = &bx; b->j = 5;
16165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16166 const int foo = 10;
16167 if (!foo) return 0;
16169 return !cs[0] && !zero.x;
16176 if ac_fn_c_try_compile "$LINENO"; then :
16181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16184 $as_echo "$ac_cv_c_const" >&6; }
16185 if test $ac_cv_c_const = no; then
16187 $as_echo "#define const /**/" >>confdefs.h
16191 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16192 if test "x$ac_cv_type_size_t" = xyes; then :
16196 cat >>confdefs.h <<_ACEOF
16197 #define size_t unsigned int
16202 for ac_func in memmove bcopy
16204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16205 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16206 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16207 cat >>confdefs.h <<_ACEOF
16208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16215 for ac_header in fcntl.h unistd.h
16217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16218 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16219 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16220 cat >>confdefs.h <<_ACEOF
16221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16228 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16229 if test "x$ac_cv_type_off_t" = xyes; then :
16233 cat >>confdefs.h <<_ACEOF
16234 #define off_t long int
16242 for ac_header in $ac_header_list
16244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16245 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16248 cat >>confdefs.h <<_ACEOF
16249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16263 for ac_func in getpagesize
16265 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16266 if test "x$ac_cv_func_getpagesize" = xyes; then :
16267 cat >>confdefs.h <<_ACEOF
16268 #define HAVE_GETPAGESIZE 1
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16275 $as_echo_n "checking for working mmap... " >&6; }
16276 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16277 $as_echo_n "(cached) " >&6
16279 if test "$cross_compiling" = yes; then :
16280 ac_cv_func_mmap_fixed_mapped=no
16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h. */
16284 $ac_includes_default
16285 /* malloc might have been renamed as rpl_malloc. */
16288 /* Thanks to Mike Haertel and Jim Avera for this test.
16289 Here is a matrix of mmap possibilities:
16290 mmap private not fixed
16291 mmap private fixed at somewhere currently unmapped
16292 mmap private fixed at somewhere already mapped
16293 mmap shared not fixed
16294 mmap shared fixed at somewhere currently unmapped
16295 mmap shared fixed at somewhere already mapped
16296 For private mappings, we should verify that changes cannot be read()
16297 back from the file, nor mmap's back from the file at a different
16298 address. (There have been systems where private was not correctly
16299 implemented like the infamous i386 svr4.0, and systems where the
16300 VM page cache was not coherent with the file system buffer cache
16301 like early versions of FreeBSD and possibly contemporary NetBSD.)
16302 For shared mappings, we should conversely verify that changes get
16303 propagated back to all the places they're supposed to be.
16305 Grep wants private fixed already mapped.
16306 The main things grep needs to know about mmap are:
16307 * does it exist and is it safe to write into the mmap'd area
16308 * how to use it (BSD variants) */
16311 #include <sys/mman.h>
16313 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16317 /* This mess was copied from the GNU getpagesize.h. */
16318 #ifndef HAVE_GETPAGESIZE
16319 # ifdef _SC_PAGESIZE
16320 # define getpagesize() sysconf(_SC_PAGESIZE)
16321 # else /* no _SC_PAGESIZE */
16322 # ifdef HAVE_SYS_PARAM_H
16323 # include <sys/param.h>
16324 # ifdef EXEC_PAGESIZE
16325 # define getpagesize() EXEC_PAGESIZE
16326 # else /* no EXEC_PAGESIZE */
16328 # define getpagesize() NBPG * CLSIZE
16331 # endif /* no CLSIZE */
16332 # else /* no NBPG */
16334 # define getpagesize() NBPC
16335 # else /* no NBPC */
16337 # define getpagesize() PAGESIZE
16338 # endif /* PAGESIZE */
16339 # endif /* no NBPC */
16340 # endif /* no NBPG */
16341 # endif /* no EXEC_PAGESIZE */
16342 # else /* no HAVE_SYS_PARAM_H */
16343 # define getpagesize() 8192 /* punt totally */
16344 # endif /* no HAVE_SYS_PARAM_H */
16345 # endif /* no _SC_PAGESIZE */
16347 #endif /* no HAVE_GETPAGESIZE */
16352 char *data, *data2, *data3;
16353 const char *cdata2;
16357 pagesize = getpagesize ();
16359 /* First, make a file with some known garbage in it. */
16360 data = (char *) malloc (pagesize);
16363 for (i = 0; i < pagesize; ++i)
16364 *(data + i) = rand ();
16366 fd = creat ("conftest.mmap", 0600);
16369 if (write (fd, data, pagesize) != pagesize)
16373 /* Next, check that the tail of a page is zero-filled. File must have
16374 non-zero length, otherwise we risk SIGBUS for entire page. */
16375 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16379 if (write (fd2, cdata2, 1) != 1)
16381 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16382 if (data2 == MAP_FAILED)
16384 for (i = 0; i < pagesize; ++i)
16388 if (munmap (data2, pagesize))
16391 /* Next, try to mmap the file at a fixed address which already has
16392 something else allocated at it. If we can, also make sure that
16393 we see the same garbage. */
16394 fd = open ("conftest.mmap", O_RDWR);
16397 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16398 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16400 for (i = 0; i < pagesize; ++i)
16401 if (*(data + i) != *(data2 + i))
16404 /* Finally, make sure that changes to the mapped area do not
16405 percolate back to the file as seen by read(). (This is a bug on
16406 some variants of i386 svr4.0.) */
16407 for (i = 0; i < pagesize; ++i)
16408 *(data2 + i) = *(data2 + i) + 1;
16409 data3 = (char *) malloc (pagesize);
16412 if (read (fd, data3, pagesize) != pagesize)
16414 for (i = 0; i < pagesize; ++i)
16415 if (*(data + i) != *(data3 + i))
16421 if ac_fn_c_try_run "$LINENO"; then :
16422 ac_cv_func_mmap_fixed_mapped=yes
16424 ac_cv_func_mmap_fixed_mapped=no
16426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16427 conftest.$ac_objext conftest.beam conftest.$ac_ext
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16432 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16433 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16435 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16438 rm -f conftest.mmap conftest.txt
16441 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
16442 FILEMAP=unixfilemap
16444 FILEMAP=readfilemap
16450 # ------------------ #
16451 # Checks to see if ANSI C99 CPP variable __func__ works.
16452 # If not, perhaps __FUNCTION__ works instead.
16453 # If not, we'll just define __func__ to "".
16456 case $ac_cv_prog_cc_stdc in #(
16458 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
16461 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
16462 if ${ac_cv_prog_cc_c99+:} false; then :
16463 $as_echo_n "(cached) " >&6
16465 ac_cv_prog_cc_c99=no
16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16469 #include <stdarg.h>
16470 #include <stdbool.h>
16471 #include <stdlib.h>
16475 // Check varargs macros. These examples are taken from C99 6.10.3.5.
16476 #define debug(...) fprintf (stderr, __VA_ARGS__)
16477 #define showlist(...) puts (#__VA_ARGS__)
16478 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16480 test_varargs_macros (void)
16485 debug ("X = %d\n", x);
16486 showlist (The first, second, and third items.);
16487 report (x>y, "x is %d but y is %d", x, y);
16490 // Check long long types.
16491 #define BIG64 18446744073709551615ull
16492 #define BIG32 4294967295ul
16493 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16495 your preprocessor is broken;
16499 your preprocessor is broken;
16501 static long long int bignum = -9223372036854775807LL;
16502 static unsigned long long int ubignum = BIG64;
16504 struct incomplete_array
16510 struct named_init {
16512 const wchar_t *name;
16516 typedef const char *ccp;
16519 test_restrict (ccp restrict text)
16521 // See if C++-style comments work.
16522 // Iterate through items via the restricted pointer.
16523 // Also check for declarations in for loops.
16524 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16529 // Check varargs and va_copy.
16531 test_varargs (const char *format, ...)
16534 va_start (args, format);
16536 va_copy (args_copy, args);
16546 case 's': // string
16547 str = va_arg (args_copy, const char *);
16550 number = va_arg (args_copy, int);
16553 fnumber = va_arg (args_copy, double);
16559 va_end (args_copy);
16568 _Bool success = false;
16571 if (test_restrict ("String literal") == 0)
16573 char *restrict newvar = "Another string";
16576 test_varargs ("s, d' f .", "string", 65, 34.234);
16577 test_varargs_macros ();
16579 // Check flexible array members.
16580 struct incomplete_array *ia =
16581 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16583 for (int i = 0; i < ia->datasize; ++i)
16584 ia->data[i] = i * 1.234;
16586 // Check named initializers.
16587 struct named_init ni = {
16589 .name = L"Test wide string",
16590 .average = 543.34343,
16595 int dynamic_array[ni.number];
16596 dynamic_array[ni.number - 1] = 543;
16598 // work around unused variable warnings
16599 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16600 || dynamic_array[ni.number - 1] != 543);
16606 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
16608 CC="$ac_save_CC $ac_arg"
16609 if ac_fn_c_try_compile "$LINENO"; then :
16610 ac_cv_prog_cc_c99=$ac_arg
16612 rm -f core conftest.err conftest.$ac_objext
16613 test "x$ac_cv_prog_cc_c99" != "xno" && break
16615 rm -f conftest.$ac_ext
16620 case "x$ac_cv_prog_cc_c99" in
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16623 $as_echo "none needed" >&6; } ;;
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16626 $as_echo "unsupported" >&6; } ;;
16628 CC="$CC $ac_cv_prog_cc_c99"
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
16630 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16632 if test "x$ac_cv_prog_cc_c99" != xno; then :
16633 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16636 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16637 if ${ac_cv_prog_cc_c89+:} false; then :
16638 $as_echo_n "(cached) " >&6
16640 ac_cv_prog_cc_c89=no
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16644 #include <stdarg.h>
16647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16648 struct buf { int x; };
16649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16650 static char *e (p, i)
16656 static char *f (char * (*g) (char **, int), char **p, ...)
16661 s = g (p, va_arg (v,int));
16666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16667 function prototypes and stuff, but not '\xHH' hex character constants.
16668 These don't provoke an error unfortunately, instead are silently treated
16669 as 'x'. The following induces an error, until -std is added to get
16670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16671 array size at least. It's necessary to write '\x00'==0 to get something
16672 that's true only with -std. */
16673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16676 inside strings and character constants. */
16678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16680 int test (int i, double x);
16681 struct s1 {int (*f) (int a);};
16682 struct s2 {int (*f) (double a);};
16683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16689 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16697 CC="$ac_save_CC $ac_arg"
16698 if ac_fn_c_try_compile "$LINENO"; then :
16699 ac_cv_prog_cc_c89=$ac_arg
16701 rm -f core conftest.err conftest.$ac_objext
16702 test "x$ac_cv_prog_cc_c89" != "xno" && break
16704 rm -f conftest.$ac_ext
16709 case "x$ac_cv_prog_cc_c89" in
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16712 $as_echo "none needed" >&6; } ;;
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16715 $as_echo "unsupported" >&6; } ;;
16717 CC="$CC $ac_cv_prog_cc_c89"
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16721 if test "x$ac_cv_prog_cc_c89" != xno; then :
16722 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
16724 ac_cv_prog_cc_stdc=no
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
16731 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
16732 if ${ac_cv_prog_cc_stdc+:} false; then :
16733 $as_echo_n "(cached) " >&6
16736 case $ac_cv_prog_cc_stdc in #(
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16739 $as_echo "unsupported" >&6; } ;; #(
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16742 $as_echo "none needed" >&6; } ;; #(
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
16745 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
16749 $as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
16750 if ${ac_cv_cpp_func+:} false; then :
16751 $as_echo_n "(cached) " >&6
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16759 char *foo = __func__;
16764 if ac_fn_c_try_compile "$LINENO"; then :
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16773 char *foo = __FUNCTION__;
16778 if ac_fn_c_try_compile "$LINENO"; then :
16779 ac_cv_cpp_func=__FUNCTION__
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
16788 $as_echo "$ac_cv_cpp_func" >&6; }
16789 if test $ac_cv_cpp_func = __FUNCTION__; then
16791 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
16793 elif test $ac_cv_cpp_func = no; then
16795 $as_echo "#define __func__ \"\"" >>confdefs.h
16802 $as_echo "#define XML_NS 1" >>confdefs.h
16805 $as_echo "#define XML_DTD 1" >>confdefs.h
16808 $as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
16811 ac_config_files="$ac_config_files Makefile expat.pc"
16813 cat >confcache <<\_ACEOF
16814 # This file is a shell script that caches the results of configure
16815 # tests run on this system so they can be shared between configure
16816 # scripts and configure runs, see configure's option --config-cache.
16817 # It is not useful on other systems. If it contains results you don't
16818 # want to keep, you may remove or edit it.
16820 # config.status only pays attention to the cache file if you give it
16821 # the --recheck option to rerun configure.
16823 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16824 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16825 # following values.
16829 # The following way of writing the cache mishandles newlines in values,
16830 # but we know of no workaround that is simple, portable, and efficient.
16831 # So, we kill variables containing newlines.
16832 # Ultrix sh set writes to stderr and can't be redirected directly,
16833 # and sets the high bit in the cache file unless we assign to the vars.
16835 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16836 eval ac_val=\$$ac_var
16840 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16844 _ | IFS | as_nl) ;; #(
16845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16846 *) { eval $ac_var=; unset $ac_var;} ;;
16852 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16853 *${as_nl}ac_space=\ *)
16854 # `set' does not quote correctly, so add quotes: double-quote
16855 # substitution turns \\\\ into \\, and sed turns \\ into \.
16858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16861 # `set' quotes correctly as required by POSIX, so do not add quotes.
16862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16873 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16875 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16876 if test -w "$cache_file"; then
16877 if test "x$cache_file" != "x/dev/null"; then
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16879 $as_echo "$as_me: updating cache $cache_file" >&6;}
16880 if test ! -f "$cache_file" || test -h "$cache_file"; then
16881 cat confcache >"$cache_file"
16883 case $cache_file in #(
16885 mv -f confcache "$cache_file"$$ &&
16886 mv -f "$cache_file"$$ "$cache_file" ;; #(
16888 mv -f confcache "$cache_file" ;;
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16894 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16900 # Let make expand exec_prefix.
16901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16903 DEFS=-DHAVE_CONFIG_H
16908 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16909 # 1. Remove the extension, and $U if already installed.
16910 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16911 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16913 # will be set to the directory where LIBOBJS objects are built.
16914 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16915 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16917 LIBOBJS=$ac_libobjs
16919 LTLIBOBJS=$ac_ltlibobjs
16923 : "${CONFIG_STATUS=./config.status}"
16925 ac_clean_files_save=$ac_clean_files
16926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16928 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16930 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16932 # Generated by $as_me.
16933 # Run this file to recreate the current configuration.
16934 # Compiler output produced by configure, useful for debugging
16935 # configure, is in config.log if it exists.
16938 ac_cs_recheck=false
16941 SHELL=\${CONFIG_SHELL-$SHELL}
16944 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16945 ## -------------------- ##
16946 ## M4sh Initialization. ##
16947 ## -------------------- ##
16949 # Be more Bourne compatible
16950 DUALCASE=1; export DUALCASE # for MKS sh
16951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16954 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16955 # is contrary to our usage. Disable this feature.
16956 alias -g '${1+"$@"}'='"$@"'
16957 setopt NO_GLOB_SUBST
16959 case `(set -o) 2>/dev/null` in #(
16971 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16972 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16974 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16975 # Prefer a ksh shell builtin over an external printf program on Solaris,
16976 # but without wasting forks for bash or zsh.
16977 if test -z "$BASH_VERSION$ZSH_VERSION" \
16978 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16979 as_echo='print -r --'
16980 as_echo_n='print -rn --'
16981 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16982 as_echo='printf %s\n'
16983 as_echo_n='printf %s'
16985 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16986 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16987 as_echo_n='/usr/ucb/echo -n'
16989 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16990 as_echo_n_body='eval
16994 expr "X$arg" : "X\\(.*\\)$as_nl";
16995 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16997 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16999 export as_echo_n_body
17000 as_echo_n='sh -c $as_echo_n_body as_echo'
17002 export as_echo_body
17003 as_echo='sh -c $as_echo_body as_echo'
17006 # The user is always right.
17007 if test "${PATH_SEPARATOR+set}" != set; then
17009 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17010 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17017 # We need space, tab and new line, in precisely that order. Quoting is
17018 # there to prevent editors from complaining about space-tab.
17019 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17020 # splitting by setting IFS to empty value.)
17023 # Find who we are. Look in the path if we contain no directory separator.
17026 *[\\/]* ) as_myself=$0 ;;
17027 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17028 for as_dir in $PATH
17031 test -z "$as_dir" && as_dir=.
17032 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17038 # We did not find ourselves, most probably we were run as `sh COMMAND'
17039 # in which case we are not to be found in the path.
17040 if test "x$as_myself" = x; then
17043 if test ! -f "$as_myself"; then
17044 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17048 # Unset variables that we do not need and which cause bugs (e.g. in
17049 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17050 # suppresses any "Segmentation fault" message there. '((' could
17051 # trigger a bug in pdksh 5.2.14.
17052 for as_var in BASH_ENV ENV MAIL MAILPATH
17053 do eval test x\${$as_var+set} = xset \
17054 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17070 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17071 # ----------------------------------------
17072 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17073 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17074 # script with STATUS, using 1 if that was 0.
17077 as_status=$1; test $as_status -eq 0 && as_status=1
17079 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17080 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17082 $as_echo "$as_me: error: $2" >&2
17083 as_fn_exit $as_status
17087 # as_fn_set_status STATUS
17088 # -----------------------
17089 # Set $? to STATUS, without forking.
17090 as_fn_set_status ()
17093 } # as_fn_set_status
17095 # as_fn_exit STATUS
17096 # -----------------
17097 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17101 as_fn_set_status $1
17107 # Portably unset VAR.
17110 { eval $1=; unset $1;}
17112 as_unset=as_fn_unset
17113 # as_fn_append VAR VALUE
17114 # ----------------------
17115 # Append the text in VALUE to the end of the definition contained in VAR. Take
17116 # advantage of any shell optimizations that allow amortized linear growth over
17117 # repeated appends, instead of the typical quadratic growth present in naive
17119 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17120 eval 'as_fn_append ()
17131 # as_fn_arith ARG...
17132 # ------------------
17133 # Perform arithmetic evaluation on the ARGs, and store the result in the
17134 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17135 # must be portable across $(()) and expr.
17136 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17137 eval 'as_fn_arith ()
17144 as_val=`expr "$@" || test $? -eq 1`
17149 if expr a : '\(a\)' >/dev/null 2>&1 &&
17150 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17156 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17157 as_basename=basename
17162 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17168 as_me=`$as_basename -- "$0" ||
17169 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17170 X"$0" : 'X\(//\)$' \| \
17171 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17173 sed '/^.*\/\([^/][^/]*\)\/*$/{
17187 # Avoid depending upon Character Ranges.
17188 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17189 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17190 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17191 as_cr_digits='0123456789'
17192 as_cr_alnum=$as_cr_Letters$as_cr_digits
17194 ECHO_C= ECHO_N= ECHO_T=
17195 case `echo -n x` in #(((((
17197 case `echo 'xy\c'` in
17198 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17200 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17207 rm -f conf$$ conf$$.exe conf$$.file
17208 if test -d conf$$.dir; then
17209 rm -f conf$$.dir/conf$$.file
17212 mkdir conf$$.dir 2>/dev/null
17214 if (echo >conf$$.file) 2>/dev/null; then
17215 if ln -s conf$$.file conf$$ 2>/dev/null; then
17217 # ... but there are two gotchas:
17218 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17219 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17220 # In both cases, we have to default to `cp -pR'.
17221 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17223 elif ln conf$$.file conf$$ 2>/dev/null; then
17231 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17232 rmdir conf$$.dir 2>/dev/null
17237 # Create "$as_dir" as a directory, including parents if necessary.
17242 -*) as_dir=./$as_dir;;
17244 test -d "$as_dir" || eval $as_mkdir_p || {
17248 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17249 *) as_qdir=$as_dir;;
17251 as_dirs="'$as_qdir' $as_dirs"
17252 as_dir=`$as_dirname -- "$as_dir" ||
17253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17254 X"$as_dir" : 'X\(//\)[^/]' \| \
17255 X"$as_dir" : 'X\(//\)$' \| \
17256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17257 $as_echo X"$as_dir" |
17258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17262 /^X\(\/\/\)[^/].*/{
17275 test -d "$as_dir" && break
17277 test -z "$as_dirs" || eval "mkdir $as_dirs"
17278 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17282 if mkdir -p . 2>/dev/null; then
17283 as_mkdir_p='mkdir -p "$as_dir"'
17285 test -d ./-p && rmdir ./-p
17290 # as_fn_executable_p FILE
17291 # -----------------------
17292 # Test if FILE is an executable regular file.
17293 as_fn_executable_p ()
17295 test -f "$1" && test -x "$1"
17296 } # as_fn_executable_p
17297 as_test_x='test -x'
17298 as_executable_p=as_fn_executable_p
17300 # Sed expression to map a string onto a valid CPP name.
17301 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17303 # Sed expression to map a string onto a valid variable name.
17304 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17308 ## ----------------------------------- ##
17309 ## Main body of $CONFIG_STATUS script. ##
17310 ## ----------------------------------- ##
17312 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17315 # Save the log message, to keep $0 and so on meaningful, and to
17316 # report actual input values of CONFIG_FILES etc. instead of their
17317 # values after options handling.
17319 This file was extended by expat $as_me 2.2.0, which was
17320 generated by GNU Autoconf 2.69. Invocation command line was
17322 CONFIG_FILES = $CONFIG_FILES
17323 CONFIG_HEADERS = $CONFIG_HEADERS
17324 CONFIG_LINKS = $CONFIG_LINKS
17325 CONFIG_COMMANDS = $CONFIG_COMMANDS
17328 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17333 case $ac_config_files in *"
17334 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17337 case $ac_config_headers in *"
17338 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17343 # Files that config.status was made for.
17344 config_files="$ac_config_files"
17345 config_headers="$ac_config_headers"
17346 config_commands="$ac_config_commands"
17350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17352 \`$as_me' instantiates files and other configuration actions
17353 from templates according to the current configuration. Unless the files
17354 and actions are specified as TAGs, all are instantiated by default.
17356 Usage: $0 [OPTION]... [TAG]...
17358 -h, --help print this help, then exit
17359 -V, --version print version number and configuration settings, then exit
17360 --config print configuration, then exit
17361 -q, --quiet, --silent
17362 do not print progress messages
17363 -d, --debug don't remove temporary files
17364 --recheck update $as_me by reconfiguring in the same conditions
17365 --file=FILE[:TEMPLATE]
17366 instantiate the configuration file FILE
17367 --header=FILE[:TEMPLATE]
17368 instantiate the configuration header FILE
17370 Configuration files:
17373 Configuration headers:
17376 Configuration commands:
17379 Report bugs to <expat-bugs@libexpat.org>."
17382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17383 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17385 expat config.status 2.2.0
17386 configured by $0, generated by GNU Autoconf 2.69,
17387 with options \\"\$ac_cs_config\\"
17389 Copyright (C) 2012 Free Software Foundation, Inc.
17390 This config.status script is free software; the Free Software Foundation
17391 gives unlimited permission to copy, distribute and modify it."
17397 test -n "\$AWK" || AWK=awk
17400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17401 # The default lists apply if the user does not specify any file.
17407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17408 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17412 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17424 # Handling of the options.
17425 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17427 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17428 $as_echo "$ac_cs_version"; exit ;;
17429 --config | --confi | --conf | --con | --co | --c )
17430 $as_echo "$ac_cs_config"; exit ;;
17431 --debug | --debu | --deb | --de | --d | -d )
17433 --file | --fil | --fi | --f )
17436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17437 '') as_fn_error $? "missing file argument" ;;
17439 as_fn_append CONFIG_FILES " '$ac_optarg'"
17440 ac_need_defaults=false;;
17441 --header | --heade | --head | --hea )
17444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17446 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17447 ac_need_defaults=false;;
17449 # Conflict between --help and --header
17450 as_fn_error $? "ambiguous option: \`$1'
17451 Try \`$0 --help' for more information.";;
17452 --help | --hel | -h )
17453 $as_echo "$ac_cs_usage"; exit ;;
17454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17455 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17458 # This is an error.
17459 -*) as_fn_error $? "unrecognized option: \`$1'
17460 Try \`$0 --help' for more information." ;;
17462 *) as_fn_append ac_config_targets " $1"
17463 ac_need_defaults=false ;;
17469 ac_configure_extra_args=
17471 if $ac_cs_silent; then
17473 ac_configure_extra_args="$ac_configure_extra_args --silent"
17477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17478 if \$ac_cs_recheck; then
17479 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17481 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17482 CONFIG_SHELL='$SHELL'
17483 export CONFIG_SHELL
17488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17492 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17493 ## Running $as_me. ##
17499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17505 # The HP-UX ksh and POSIX shell print the target directory to stdout
17506 # if CDPATH is set.
17507 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17509 sed_quote_subst='$sed_quote_subst'
17510 double_quote_subst='$double_quote_subst'
17511 delay_variable_subst='$delay_variable_subst'
17512 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17513 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17514 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17515 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17516 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17517 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17518 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17519 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17520 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17521 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17522 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17523 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17524 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17525 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17526 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17527 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17528 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17529 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17530 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17531 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17532 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17533 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17534 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17535 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17536 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17537 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17538 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17539 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17540 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17541 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17542 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17543 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17544 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17545 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17546 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17547 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17548 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17549 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17550 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17551 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17552 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17553 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17554 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17555 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17556 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17557 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17558 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17559 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17560 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17561 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17562 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17563 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17564 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17565 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17566 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17567 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17568 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17569 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17570 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17571 lt_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"`'
17572 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17573 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17574 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17575 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17576 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17577 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17578 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17579 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17580 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17581 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17582 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17583 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17584 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17585 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17586 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17587 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17588 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17589 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17590 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17591 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17592 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17593 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17594 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17595 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17596 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17597 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17598 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17599 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17600 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17601 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17602 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17603 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17604 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17605 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17606 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17607 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17608 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17609 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17610 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17611 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17612 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17613 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17614 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17615 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17616 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17617 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17618 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17619 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17620 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17621 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17622 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17623 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17624 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17625 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17626 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17627 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17628 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17629 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17630 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17631 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17632 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17633 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17634 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17635 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17636 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17637 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17638 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17639 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17640 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17641 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17642 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17643 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17644 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17645 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17646 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17647 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17648 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17649 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17650 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17651 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17652 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17653 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17654 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17655 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17656 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17657 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17658 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17659 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17660 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17661 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17662 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17663 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17664 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17665 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17666 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17667 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17668 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17669 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17670 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17671 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17672 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17673 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17674 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17675 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17676 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17677 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17678 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17679 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17680 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17681 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17682 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17683 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17684 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17685 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17686 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17687 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17688 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17689 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17690 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17691 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17692 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17693 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17694 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17695 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17696 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17697 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17698 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17699 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17700 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17701 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17704 LTCFLAGS='$LTCFLAGS'
17705 compiler='$compiler_DEFAULT'
17707 # A function that is used when there is no print builtin or printf.
17708 func_fallback_echo ()
17710 eval 'cat <<_LTECHO_EOF
17715 # Quote evaled strings.
17732 deplibs_check_method \
17736 sharedlib_from_linklib_cmd \
17739 archiver_list_spec \
17745 lt_cv_sys_global_symbol_pipe \
17746 lt_cv_sys_global_symbol_to_cdecl \
17747 lt_cv_sys_global_symbol_to_import \
17748 lt_cv_sys_global_symbol_to_c_name_address \
17749 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17750 lt_cv_nm_interface \
17751 nm_file_list_spec \
17752 lt_cv_truncate_bin \
17753 lt_prog_compiler_no_builtin_flag \
17754 lt_prog_compiler_pic \
17755 lt_prog_compiler_wl \
17756 lt_prog_compiler_static \
17757 lt_cv_prog_compiler_c_o \
17766 export_dynamic_flag_spec \
17767 whole_archive_flag_spec \
17768 compiler_needs_object \
17770 allow_undefined_flag \
17771 no_undefined_flag \
17772 hardcode_libdir_flag_spec \
17773 hardcode_libdir_separator \
17777 variables_saved_for_relink \
17779 library_names_spec \
17781 install_override_mode \
17785 compiler_lib_search_dirs \
17790 compiler_lib_search_path \
17794 lt_prog_compiler_no_builtin_flag_CXX \
17795 lt_prog_compiler_pic_CXX \
17796 lt_prog_compiler_wl_CXX \
17797 lt_prog_compiler_static_CXX \
17798 lt_cv_prog_compiler_c_o_CXX \
17799 export_dynamic_flag_spec_CXX \
17800 whole_archive_flag_spec_CXX \
17801 compiler_needs_object_CXX \
17803 allow_undefined_flag_CXX \
17804 no_undefined_flag_CXX \
17805 hardcode_libdir_flag_spec_CXX \
17806 hardcode_libdir_separator_CXX \
17807 exclude_expsyms_CXX \
17808 include_expsyms_CXX \
17809 file_list_spec_CXX \
17810 compiler_lib_search_dirs_CXX \
17811 predep_objects_CXX \
17812 postdep_objects_CXX \
17815 compiler_lib_search_path_CXX; do
17816 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17817 *[\\\\\\\`\\"\\\$]*)
17818 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17821 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17826 # Double-quote double-evaled strings.
17827 for var in reload_cmds \
17828 old_postinstall_cmds \
17829 old_postuninstall_cmds \
17831 extract_expsyms_cmds \
17832 old_archive_from_new_cmds \
17833 old_archive_from_expsyms_cmds \
17835 archive_expsym_cmds \
17837 module_expsym_cmds \
17838 export_symbols_cmds \
17842 postuninstall_cmds \
17844 sys_lib_search_path_spec \
17845 configure_time_dlsearch_path \
17846 configure_time_lt_sys_library_path \
17848 old_archive_cmds_CXX \
17849 old_archive_from_new_cmds_CXX \
17850 old_archive_from_expsyms_cmds_CXX \
17852 archive_expsym_cmds_CXX \
17854 module_expsym_cmds_CXX \
17855 export_symbols_cmds_CXX \
17857 postlink_cmds_CXX; do
17858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17859 *[\\\\\\\`\\"\\\$]*)
17860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17868 ac_aux_dir='$ac_aux_dir'
17870 # See if we are running on zsh, and set the options that allow our
17871 # commands through without removal of \ escapes INIT.
17872 if test -n "\${ZSH_VERSION+set}"; then
17873 setopt NO_GLOB_SUBST
17889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17891 # Handling of arguments.
17892 for ac_config_target in $ac_config_targets
17894 case $ac_config_target in
17895 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
17896 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17898 "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
17900 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17905 # If the user did not use the arguments to specify the items to instantiate,
17906 # then the envvar interface is used. Set only those that are not.
17907 # We use the long form for the default assignment because of an extremely
17908 # bizarre bug on SunOS 4.1.3.
17909 if $ac_need_defaults; then
17910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17912 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17915 # Have a temporary directory for convenience. Make it in the build tree
17916 # simply because there is no reason against having it here, and in addition,
17917 # creating and moving files from /tmp can sometimes cause problems.
17918 # Hook for its removal unless debugging.
17919 # Note that there is a small window in which the directory will not be cleaned:
17920 # after its creation but before its name has been assigned to `$tmp'.
17924 trap 'exit_status=$?
17925 : "${ac_tmp:=$tmp}"
17926 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17928 trap 'as_fn_exit 1' 1 2 13 15
17930 # Create a (secure) tmp directory for tmp files.
17933 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17937 tmp=./conf$$-$RANDOM
17938 (umask 077 && mkdir "$tmp")
17939 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17942 # Set up the scripts for CONFIG_FILES section.
17943 # No need to generate them if there are no CONFIG_FILES.
17944 # This happens for instance with `./config.status config.h'.
17945 if test -n "$CONFIG_FILES"; then
17948 ac_cr=`echo X | tr X '\015'`
17949 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17950 # But we know of no other shell where ac_cr would be empty at this
17951 # point, so we can use a bashism as a fallback.
17952 if test "x$ac_cr" = x; then
17953 eval ac_cr=\$\'\\r\'
17955 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17956 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17959 ac_cs_awk_cr=$ac_cr
17962 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17967 echo "cat >conf$$subs.awk <<_ACEOF" &&
17968 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17970 } >conf$$subs.sh ||
17971 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17972 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17974 for ac_last_try in false false false false false :; do
17975 . ./conf$$subs.sh ||
17976 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17978 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17979 if test $ac_delim_n = $ac_delim_num; then
17981 elif $ac_last_try; then
17982 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17987 rm -f conf$$subs.sh
17989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17990 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17994 s/^/S["/; s/!.*/"]=/
18004 s/\(.\{148\}\)..*/\1/
18006 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18011 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18018 s/\(.\{148\}\)..*/\1/
18020 s/["\\]/\\&/g; s/^/"/; s/$/"/
18024 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18029 ' <conf$$subs.awk | sed '
18034 ' >>$CONFIG_STATUS || ac_write_fail=1
18035 rm -f conf$$subs.awk
18036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18038 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18039 for (key in S) S_is_set[key] = 1
18045 nfields = split(line, field, "@")
18047 len = length(field[1])
18048 for (i = 2; i < nfields; i++) {
18050 keylen = length(key)
18051 if (S_is_set[key]) {
18053 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18054 len += length(value) + length(field[++i])
18065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18066 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18067 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18070 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18071 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18074 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18075 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18076 # trailing colons and then remove the whole line if VPATH becomes empty
18077 # (actually we leave an empty line to preserve line numbers).
18078 if test "x$srcdir" = x.; then
18079 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18098 fi # test -n "$CONFIG_FILES"
18100 # Set up the scripts for CONFIG_HEADERS section.
18101 # No need to generate them if there are no CONFIG_HEADERS.
18102 # This happens for instance with `./config.status Makefile'.
18103 if test -n "$CONFIG_HEADERS"; then
18104 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18108 # Transform confdefs.h into an awk script `defines.awk', embedded as
18109 # here-document in config.status, that substitutes the proper values into
18110 # config.h.in to produce config.h.
18112 # Create a delimiter string that does not exist in confdefs.h, to ease
18113 # handling of long lines.
18115 for ac_last_try in false false :; do
18116 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18117 if test -z "$ac_tt"; then
18119 elif $ac_last_try; then
18120 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18126 # For the awk script, D is an array of macro values keyed by name,
18127 # likewise P contains macro parameters if any. Preserve backslash
18128 # newline sequences.
18130 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18132 s/.\{148\}/&'"$ac_delim"'/g
18135 s/^[ ]*#[ ]*define[ ][ ]*/ /
18142 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18144 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18148 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18149 D["\1"]=" \3\\\\\\n"\\/p
18151 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18156 s/.\{148\}/&'"$ac_delim"'/g
18161 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18164 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18166 ' <confdefs.h | sed '
18167 s/'"$ac_delim"'/"\\\
18168 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18171 for (key in D) D_is_set[key] = 1
18174 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18176 split(line, arg, " ")
18177 if (arg[1] == "#") {
18181 defundef = substr(arg[1], 2)
18184 split(mac1, mac2, "(") #)
18186 prefix = substr(line, 1, index(line, defundef) - 1)
18187 if (D_is_set[macro]) {
18188 # Preserve the white space surrounding the "#".
18189 print prefix "define", macro P[macro] D[macro]
18192 # Replace #undef with comments. This is necessary, for example,
18193 # in the case of _POSIX_SOURCE, which is predefined and required
18194 # on some systems where configure will not decide to define it.
18195 if (defundef == "undef") {
18196 print "/*", prefix defundef, macro, "*/"
18204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18205 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18206 fi # test -n "$CONFIG_HEADERS"
18209 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18214 :[FHLC]) ac_mode=$ac_tag; continue;;
18216 case $ac_mode$ac_tag in
18218 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18219 :[FH]-) ac_tag=-:-;;
18220 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18237 -) ac_f="$ac_tmp/stdin";;
18238 *) # Look for the file first in the build tree, then in the source tree
18239 # (if the path is not absolute). The absolute path cannot be DOS-style,
18240 # because $ac_f cannot contain `:'.
18244 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18246 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18248 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18249 as_fn_append ac_file_inputs " '$ac_f'"
18252 # Let's still pretend it is `configure' which instantiates (i.e., don't
18253 # use $as_me), people would be surprised to read:
18254 # /* config.h. Generated by config.status. */
18255 configure_input='Generated from '`
18256 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18258 if test x"$ac_file" != x-; then
18259 configure_input="$ac_file. $configure_input"
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18261 $as_echo "$as_me: creating $ac_file" >&6;}
18263 # Neutralize special characters interpreted by sed in replacement strings.
18264 case $configure_input in #(
18265 *\&* | *\|* | *\\* )
18266 ac_sed_conf_input=`$as_echo "$configure_input" |
18267 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18268 *) ac_sed_conf_input=$configure_input;;
18272 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18278 ac_dir=`$as_dirname -- "$ac_file" ||
18279 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18280 X"$ac_file" : 'X\(//\)[^/]' \| \
18281 X"$ac_file" : 'X\(//\)$' \| \
18282 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18283 $as_echo X"$ac_file" |
18284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18288 /^X\(\/\/\)[^/].*/{
18301 as_dir="$ac_dir"; as_fn_mkdir_p
18305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18307 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18308 # A ".." for each directory in $ac_dir_suffix.
18309 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18310 case $ac_top_builddir_sub in
18311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18315 ac_abs_top_builddir=$ac_pwd
18316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18317 # for backward compatibility:
18318 ac_top_builddir=$ac_top_build_prefix
18321 .) # We are building in place.
18323 ac_top_srcdir=$ac_top_builddir_sub
18324 ac_abs_top_srcdir=$ac_pwd ;;
18325 [\\/]* | ?:[\\/]* ) # Absolute name.
18326 ac_srcdir=$srcdir$ac_dir_suffix;
18327 ac_top_srcdir=$srcdir
18328 ac_abs_top_srcdir=$srcdir ;;
18329 *) # Relative name.
18330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18331 ac_top_srcdir=$ac_top_build_prefix$srcdir
18332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18345 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18350 # If the template does not know about datarootdir, expand it.
18351 # FIXME: This hack should be removed a few years after 2.60.
18352 ac_datarootdir_hack=; ac_datarootdir_seen=
18363 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18364 *datarootdir*) ac_datarootdir_seen=yes;;
18365 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18367 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18370 ac_datarootdir_hack='
18371 s&@datadir@&$datadir&g
18372 s&@docdir@&$docdir&g
18373 s&@infodir@&$infodir&g
18374 s&@localedir@&$localedir&g
18375 s&@mandir@&$mandir&g
18376 s&\\\${datarootdir}&$datarootdir&g' ;;
18380 # Neutralize VPATH when `$srcdir' = `.'.
18381 # Shell code in configure.ac might set extrasub.
18382 # FIXME: do we really want to maintain this feature?
18383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18384 ac_sed_extra="$ac_vpsub
18387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18390 s|@configure_input@|$ac_sed_conf_input|;t t
18391 s&@top_builddir@&$ac_top_builddir_sub&;t t
18392 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18393 s&@srcdir@&$ac_srcdir&;t t
18394 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18395 s&@top_srcdir@&$ac_top_srcdir&;t t
18396 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18397 s&@builddir@&$ac_builddir&;t t
18398 s&@abs_builddir@&$ac_abs_builddir&;t t
18399 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18400 s&@INSTALL@&$ac_INSTALL&;t t
18401 $ac_datarootdir_hack
18403 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18404 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18406 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18407 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18408 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18409 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18411 which seems to be undefined. Please make sure it is defined" >&5
18412 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18413 which seems to be undefined. Please make sure it is defined" >&2;}
18415 rm -f "$ac_tmp/stdin"
18417 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18418 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18426 if test x"$ac_file" != x-; then
18428 $as_echo "/* $configure_input */" \
18429 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18430 } >"$ac_tmp/config.h" \
18431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18432 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18434 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18437 mv "$ac_tmp/config.h" "$ac_file" \
18438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18441 $as_echo "/* $configure_input */" \
18442 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18443 || as_fn_error $? "could not create -" "$LINENO" 5
18447 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18448 $as_echo "$as_me: executing $ac_file commands" >&6;}
18453 case $ac_file$ac_mode in
18456 # See if we are running on zsh, and set the options that allow our
18457 # commands through without removal of \ escapes.
18458 if test -n "${ZSH_VERSION+set}"; then
18459 setopt NO_GLOB_SUBST
18463 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18466 cat <<_LT_EOF >> "$cfgfile"
18468 # Generated automatically by $as_me ($PACKAGE) $VERSION
18469 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18470 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18472 # Provide generalized library-building support services.
18473 # Written by Gordon Matzigkeit, 1996
18475 # Copyright (C) 2014 Free Software Foundation, Inc.
18476 # This is free software; see the source for copying conditions. There is NO
18477 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18479 # GNU Libtool is free software; you can redistribute it and/or modify
18480 # it under the terms of the GNU General Public License as published by
18481 # the Free Software Foundation; either version 2 of of the License, or
18482 # (at your option) any later version.
18484 # As a special exception to the GNU General Public License, if you
18485 # distribute this file as part of a program or library that is built
18486 # using GNU Libtool, you may include this file under the same
18487 # distribution terms that you use for the rest of that program.
18489 # GNU Libtool is distributed in the hope that it will be useful, but
18490 # WITHOUT ANY WARRANTY; without even the implied warranty of
18491 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18492 # GNU General Public License for more details.
18494 # You should have received a copy of the GNU General Public License
18495 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18498 # The names of the tagged configurations supported by this script.
18499 available_tags='CXX '
18501 # Configured defaults for sys_lib_dlsearch_path munging.
18502 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18504 # ### BEGIN LIBTOOL CONFIG
18506 # Assembler program.
18509 # DLL creation program.
18510 DLLTOOL=$lt_DLLTOOL
18512 # Object dumper program.
18513 OBJDUMP=$lt_OBJDUMP
18515 # Which release of libtool.m4 was used?
18516 macro_version=$macro_version
18517 macro_revision=$macro_revision
18519 # Whether or not to build shared libraries.
18520 build_libtool_libs=$enable_shared
18522 # Whether or not to build static libraries.
18523 build_old_libs=$enable_static
18525 # What type of objects to build.
18528 # Whether or not to optimize for fast installation.
18529 fast_install=$enable_fast_install
18531 # Shared archive member basename,for filename based shared library versioning on AIX.
18532 shared_archive_member_spec=$shared_archive_member_spec
18534 # Shell to use when invoking shell scripts.
18537 # An echo program that protects backslashes.
18540 # The PATH separator for the build system.
18541 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18544 host_alias=$host_alias
18548 # The build system.
18549 build_alias=$build_alias
18553 # A sed program that does not truncate output.
18556 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18557 Xsed="\$SED -e 1s/^X//"
18559 # A grep program that handles long lines.
18565 # A literal string matcher.
18568 # A BSD- or MS-compatible name lister.
18571 # Whether we need soft or hard links.
18574 # What is the maximum length of a command?
18575 max_cmd_len=$max_cmd_len
18577 # Object file suffix (normally "o").
18580 # Executable file suffix (normally "").
18583 # whether the shell understands "unset".
18586 # turn spaces into newlines.
18589 # turn newlines into spaces.
18592 # convert \$build file names to \$host format.
18593 to_host_file_cmd=$lt_cv_to_host_file_cmd
18595 # convert \$build files to toolchain format.
18596 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18598 # Method to check whether dependent libraries are shared objects.
18599 deplibs_check_method=$lt_deplibs_check_method
18601 # Command to use when deplibs_check_method = "file_magic".
18602 file_magic_cmd=$lt_file_magic_cmd
18604 # How to find potential files when deplibs_check_method = "file_magic".
18605 file_magic_glob=$lt_file_magic_glob
18607 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18608 want_nocaseglob=$lt_want_nocaseglob
18610 # Command to associate shared and link libraries.
18611 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18616 # Flags to create an archive.
18617 AR_FLAGS=$lt_AR_FLAGS
18619 # How to feed a file listing to the archiver.
18620 archiver_list_spec=$lt_archiver_list_spec
18622 # A symbol stripping program.
18625 # Commands used to install an old-style archive.
18627 old_postinstall_cmds=$lt_old_postinstall_cmds
18628 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18630 # Whether to use a lock for old archive extraction.
18631 lock_old_archive_extraction=$lock_old_archive_extraction
18636 # LTCC compiler flags.
18637 LTCFLAGS=$lt_CFLAGS
18639 # Take the output of nm and produce a listing of raw symbols and C names.
18640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18642 # Transform the output of nm in a proper C declaration.
18643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18645 # Transform the output of nm into a list of symbols to manually relocate.
18646 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18648 # Transform the output of nm in a C name address pair.
18649 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18651 # Transform the output of nm in a C name address pair when lib prefix is needed.
18652 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18654 # The name lister interface.
18655 nm_interface=$lt_lt_cv_nm_interface
18657 # Specify filename containing input files for \$NM.
18658 nm_file_list_spec=$lt_nm_file_list_spec
18660 # The root where to search for dependent libraries,and where our libraries should be installed.
18661 lt_sysroot=$lt_sysroot
18663 # Command to truncate a binary pipe.
18664 lt_truncate_bin=$lt_lt_cv_truncate_bin
18666 # The name of the directory that contains temporary libtool files.
18669 # Used to examine libraries when file_magic_cmd begins with "file".
18670 MAGIC_CMD=$MAGIC_CMD
18672 # Must we lock files when doing compilation?
18673 need_locks=$lt_need_locks
18676 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18678 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18679 DSYMUTIL=$lt_DSYMUTIL
18681 # Tool to change global to local symbols on Mac OS X.
18684 # Tool to manipulate fat objects and archives on Mac OS X.
18687 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18690 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18691 OTOOL64=$lt_OTOOL64
18693 # Old archive suffix (normally "a").
18696 # Shared library suffix (normally ".so").
18697 shrext_cmds=$lt_shrext_cmds
18699 # The commands to extract the exported symbol list from a shared archive.
18700 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18702 # Variables whose values should be saved in libtool wrapper scripts and
18703 # restored at link time.
18704 variables_saved_for_relink=$lt_variables_saved_for_relink
18706 # Do we need the "lib" prefix for modules?
18707 need_lib_prefix=$need_lib_prefix
18709 # Do we need a version for libraries?
18710 need_version=$need_version
18712 # Library versioning type.
18713 version_type=$version_type
18715 # Shared library runtime path variable.
18716 runpath_var=$runpath_var
18718 # Shared library path variable.
18719 shlibpath_var=$shlibpath_var
18721 # Is shlibpath searched before the hard-coded library search path?
18722 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18724 # Format of library name prefix.
18725 libname_spec=$lt_libname_spec
18727 # List of archive names. First name is the real one, the rest are links.
18728 # The last name is the one that the linker finds with -lNAME
18729 library_names_spec=$lt_library_names_spec
18731 # The coded name of the library, if different from the real name.
18732 soname_spec=$lt_soname_spec
18734 # Permission mode override for installation of shared libraries.
18735 install_override_mode=$lt_install_override_mode
18737 # Command to use after installation of a shared archive.
18738 postinstall_cmds=$lt_postinstall_cmds
18740 # Command to use after uninstallation of a shared archive.
18741 postuninstall_cmds=$lt_postuninstall_cmds
18743 # Commands used to finish a libtool library installation in a directory.
18744 finish_cmds=$lt_finish_cmds
18746 # As "finish_cmds", except a single script fragment to be evaled but
18748 finish_eval=$lt_finish_eval
18750 # Whether we should hardcode library paths into libraries.
18751 hardcode_into_libs=$hardcode_into_libs
18753 # Compile-time system search path for libraries.
18754 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18756 # Detected run-time system search path for libraries.
18757 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18759 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18760 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18762 # Whether dlopen is supported.
18763 dlopen_support=$enable_dlopen
18765 # Whether dlopen of programs is supported.
18766 dlopen_self=$enable_dlopen_self
18768 # Whether dlopen of statically linked programs is supported.
18769 dlopen_self_static=$enable_dlopen_self_static
18771 # Commands to strip libraries.
18772 old_striplib=$lt_old_striplib
18773 striplib=$lt_striplib
18776 # The linker used to build libraries.
18779 # How to create reloadable object files.
18780 reload_flag=$lt_reload_flag
18781 reload_cmds=$lt_reload_cmds
18783 # Commands used to build an old-style archive.
18784 old_archive_cmds=$lt_old_archive_cmds
18786 # A language specific compiler.
18789 # Is the compiler the GNU compiler?
18792 # Compiler flag to turn off builtin functions.
18793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18795 # Additional compiler flags for building library objects.
18796 pic_flag=$lt_lt_prog_compiler_pic
18798 # How to pass a linker flag through the compiler.
18799 wl=$lt_lt_prog_compiler_wl
18801 # Compiler flag to prevent dynamic linking.
18802 link_static_flag=$lt_lt_prog_compiler_static
18804 # Does compiler simultaneously support -c and -o options?
18805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18807 # Whether or not to add -lc for building shared libraries.
18808 build_libtool_need_lc=$archive_cmds_need_lc
18810 # Whether or not to disallow shared libs when runtime libs are static.
18811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18813 # Compiler flag to allow reflexive dlopens.
18814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18816 # Compiler flag to generate shared objects directly from archives.
18817 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18819 # Whether the compiler copes with passing no objects directly.
18820 compiler_needs_object=$lt_compiler_needs_object
18822 # Create an old-style archive from a shared archive.
18823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18825 # Create a temporary old-style archive to link instead of a shared archive.
18826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18828 # Commands used to build a shared archive.
18829 archive_cmds=$lt_archive_cmds
18830 archive_expsym_cmds=$lt_archive_expsym_cmds
18832 # Commands used to build a loadable module if different from building
18833 # a shared archive.
18834 module_cmds=$lt_module_cmds
18835 module_expsym_cmds=$lt_module_expsym_cmds
18837 # Whether we are building with GNU ld or not.
18838 with_gnu_ld=$lt_with_gnu_ld
18840 # Flag that allows shared libraries with undefined symbols to be built.
18841 allow_undefined_flag=$lt_allow_undefined_flag
18843 # Flag that enforces no undefined symbols.
18844 no_undefined_flag=$lt_no_undefined_flag
18846 # Flag to hardcode \$libdir into a binary during linking.
18847 # This must work even if \$libdir does not exist
18848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18850 # Whether we need a single "-rpath" flag with a separated argument.
18851 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18853 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18854 # DIR into the resulting binary.
18855 hardcode_direct=$hardcode_direct
18857 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18858 # DIR into the resulting binary and the resulting library dependency is
18859 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18860 # library is relocated.
18861 hardcode_direct_absolute=$hardcode_direct_absolute
18863 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18864 # into the resulting binary.
18865 hardcode_minus_L=$hardcode_minus_L
18867 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18868 # into the resulting binary.
18869 hardcode_shlibpath_var=$hardcode_shlibpath_var
18871 # Set to "yes" if building a shared library automatically hardcodes DIR
18872 # into the library and all subsequent libraries and executables linked
18874 hardcode_automatic=$hardcode_automatic
18876 # Set to yes if linker adds runtime paths of dependent libraries
18877 # to runtime path list.
18878 inherit_rpath=$inherit_rpath
18880 # Whether libtool must link a program against all its dependency libraries.
18881 link_all_deplibs=$link_all_deplibs
18883 # Set to "yes" if exported symbols are required.
18884 always_export_symbols=$always_export_symbols
18886 # The commands to list exported symbols.
18887 export_symbols_cmds=$lt_export_symbols_cmds
18889 # Symbols that should not be listed in the preloaded symbols.
18890 exclude_expsyms=$lt_exclude_expsyms
18892 # Symbols that must always be exported.
18893 include_expsyms=$lt_include_expsyms
18895 # Commands necessary for linking programs (against libraries) with templates.
18896 prelink_cmds=$lt_prelink_cmds
18898 # Commands necessary for finishing linking programs.
18899 postlink_cmds=$lt_postlink_cmds
18901 # Specify filename containing input files.
18902 file_list_spec=$lt_file_list_spec
18904 # How to hardcode a shared library path into an executable.
18905 hardcode_action=$hardcode_action
18907 # The directories searched by this compiler when creating a shared library.
18908 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18910 # Dependencies to place before and after the objects being linked to
18911 # create a shared library.
18912 predep_objects=$lt_predep_objects
18913 postdep_objects=$lt_postdep_objects
18914 predeps=$lt_predeps
18915 postdeps=$lt_postdeps
18917 # The library search path used internally by the compiler when linking
18918 # a shared library.
18919 compiler_lib_search_path=$lt_compiler_lib_search_path
18921 # ### END LIBTOOL CONFIG
18925 cat <<'_LT_EOF' >> "$cfgfile"
18927 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18929 # func_munge_path_list VARIABLE PATH
18930 # -----------------------------------
18931 # VARIABLE is name of variable containing _space_ separated list of
18932 # directories to be munged by the contents of PATH, which is string
18935 # string "DIR[ DIR]" will be prepended to VARIABLE
18937 # string "DIR[ DIR]" will be appended to VARIABLE
18938 # "DIRP[:DIRP]::[DIRA:]DIRA"
18939 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18940 # "DIRA[ DIRA]" will be appended to VARIABLE
18942 # VARIABLE will be replaced by "DIR[ DIR]"
18943 func_munge_path_list ()
18949 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18952 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18955 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18956 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18959 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18965 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18966 func_cc_basename ()
18968 for cc_temp in $*""; do
18970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18976 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18980 # ### END FUNCTIONS SHARED WITH CONFIGURE
18986 cat <<\_LT_EOF >> "$cfgfile"
18987 # AIX sometimes has problems with the GCC collect2 program. For some
18988 # reason, if we set the COLLECT_NAMES environment variable, the problems
18989 # vanish in a puff of smoke.
18990 if test set != "${COLLECT_NAMES+set}"; then
18992 export COLLECT_NAMES
18999 ltmain=$ac_aux_dir/ltmain.sh
19002 # We use sed instead of cat because bash on DJGPP gets confused if
19003 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19004 # text mode, it properly converts lines to CR/LF. This bash problem
19005 # is reportedly fixed, but why not run on old versions too?
19006 sed '$q' "$ltmain" >> "$cfgfile" \
19007 || (rm -f "$cfgfile"; exit 1)
19009 mv -f "$cfgfile" "$ofile" ||
19010 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19014 cat <<_LT_EOF >> "$ofile"
19016 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19018 # The linker used to build libraries.
19021 # How to create reloadable object files.
19022 reload_flag=$lt_reload_flag_CXX
19023 reload_cmds=$lt_reload_cmds_CXX
19025 # Commands used to build an old-style archive.
19026 old_archive_cmds=$lt_old_archive_cmds_CXX
19028 # A language specific compiler.
19029 CC=$lt_compiler_CXX
19031 # Is the compiler the GNU compiler?
19034 # Compiler flag to turn off builtin functions.
19035 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19037 # Additional compiler flags for building library objects.
19038 pic_flag=$lt_lt_prog_compiler_pic_CXX
19040 # How to pass a linker flag through the compiler.
19041 wl=$lt_lt_prog_compiler_wl_CXX
19043 # Compiler flag to prevent dynamic linking.
19044 link_static_flag=$lt_lt_prog_compiler_static_CXX
19046 # Does compiler simultaneously support -c and -o options?
19047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19049 # Whether or not to add -lc for building shared libraries.
19050 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19052 # Whether or not to disallow shared libs when runtime libs are static.
19053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19055 # Compiler flag to allow reflexive dlopens.
19056 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19058 # Compiler flag to generate shared objects directly from archives.
19059 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19061 # Whether the compiler copes with passing no objects directly.
19062 compiler_needs_object=$lt_compiler_needs_object_CXX
19064 # Create an old-style archive from a shared archive.
19065 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19067 # Create a temporary old-style archive to link instead of a shared archive.
19068 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19070 # Commands used to build a shared archive.
19071 archive_cmds=$lt_archive_cmds_CXX
19072 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19074 # Commands used to build a loadable module if different from building
19075 # a shared archive.
19076 module_cmds=$lt_module_cmds_CXX
19077 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19079 # Whether we are building with GNU ld or not.
19080 with_gnu_ld=$lt_with_gnu_ld_CXX
19082 # Flag that allows shared libraries with undefined symbols to be built.
19083 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19085 # Flag that enforces no undefined symbols.
19086 no_undefined_flag=$lt_no_undefined_flag_CXX
19088 # Flag to hardcode \$libdir into a binary during linking.
19089 # This must work even if \$libdir does not exist
19090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19092 # Whether we need a single "-rpath" flag with a separated argument.
19093 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19095 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19096 # DIR into the resulting binary.
19097 hardcode_direct=$hardcode_direct_CXX
19099 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19100 # DIR into the resulting binary and the resulting library dependency is
19101 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19102 # library is relocated.
19103 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19105 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19106 # into the resulting binary.
19107 hardcode_minus_L=$hardcode_minus_L_CXX
19109 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19110 # into the resulting binary.
19111 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19113 # Set to "yes" if building a shared library automatically hardcodes DIR
19114 # into the library and all subsequent libraries and executables linked
19116 hardcode_automatic=$hardcode_automatic_CXX
19118 # Set to yes if linker adds runtime paths of dependent libraries
19119 # to runtime path list.
19120 inherit_rpath=$inherit_rpath_CXX
19122 # Whether libtool must link a program against all its dependency libraries.
19123 link_all_deplibs=$link_all_deplibs_CXX
19125 # Set to "yes" if exported symbols are required.
19126 always_export_symbols=$always_export_symbols_CXX
19128 # The commands to list exported symbols.
19129 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19131 # Symbols that should not be listed in the preloaded symbols.
19132 exclude_expsyms=$lt_exclude_expsyms_CXX
19134 # Symbols that must always be exported.
19135 include_expsyms=$lt_include_expsyms_CXX
19137 # Commands necessary for linking programs (against libraries) with templates.
19138 prelink_cmds=$lt_prelink_cmds_CXX
19140 # Commands necessary for finishing linking programs.
19141 postlink_cmds=$lt_postlink_cmds_CXX
19143 # Specify filename containing input files.
19144 file_list_spec=$lt_file_list_spec_CXX
19146 # How to hardcode a shared library path into an executable.
19147 hardcode_action=$hardcode_action_CXX
19149 # The directories searched by this compiler when creating a shared library.
19150 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19152 # Dependencies to place before and after the objects being linked to
19153 # create a shared library.
19154 predep_objects=$lt_predep_objects_CXX
19155 postdep_objects=$lt_postdep_objects_CXX
19156 predeps=$lt_predeps_CXX
19157 postdeps=$lt_postdeps_CXX
19159 # The library search path used internally by the compiler when linking
19160 # a shared library.
19161 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19163 # ### END LIBTOOL TAG CONFIG: CXX
19174 ac_clean_files=$ac_clean_files_save
19176 test $ac_write_fail = 0 ||
19177 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19180 # configure is writing to config.log, and then calls config.status.
19181 # config.status does its own redirection, appending to config.log.
19182 # Unfortunately, on DOS this fails, as config.log is still kept open
19183 # by configure, so config.status won't be able to write to it; its
19184 # output is simply discarded. So we exec the FD to /dev/null,
19185 # effectively closing config.log, so it can be properly (re)opened and
19186 # appended to by config.status. When coming back to configure, we
19187 # need to make the FD available again.
19188 if test "$no_create" != yes; then
19190 ac_config_status_args=
19191 test "$silent" = yes &&
19192 ac_config_status_args="$ac_config_status_args --quiet"
19194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19197 # would make configure fail if this is the last instruction.
19198 $ac_cs_success || as_fn_exit 1
19200 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19202 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19206 abs_srcdir="`cd $srcdir && pwd`"
19207 abs_builddir="`pwd`"
19208 if test "$abs_srcdir" != "$abs_builddir"; then