2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.68 for bullet 2.81.
5 @%:@ Report bugs to <bullet@erwincoumans.com>.
8 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 @%:@ This configure script is free software; the Free Software Foundation
14 @%:@ gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in @%:@(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in @%:@(
150 set -o posix ;; @%:@(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
201 case $as_dir in @%:@(
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bullet@erwincoumans.com about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 @%:@ Portably unset VAR.
273 { eval $1=; unset $1;}
277 @%:@ as_fn_set_status STATUS
278 @%:@ -----------------------
279 @%:@ Set @S|@? to STATUS, without forking.
283 } @%:@ as_fn_set_status
285 @%:@ as_fn_exit STATUS
286 @%:@ -----------------
287 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 @%:@ as_fn_append VAR VALUE
295 @%:@ ----------------------
296 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
297 @%:@ advantage of any shell optimizations that allow amortized linear growth over
298 @%:@ repeated appends, instead of the typical quadratic growth present in naive
299 @%:@ implementations.
300 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
301 eval 'as_fn_append ()
312 @%:@ as_fn_arith ARG...
313 @%:@ ------------------
314 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
315 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
316 @%:@ must be portable across @S|@(()) and expr.
317 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
325 as_val=`expr "$@" || test $? -eq 1`
330 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
331 @%:@ ----------------------------------------
332 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
333 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
334 @%:@ script with STATUS, using 1 if that was 0.
337 as_status=$1; test $as_status -eq 0 && as_status=1
339 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
340 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
342 $as_echo "$as_me: error: $2" >&2
343 as_fn_exit $as_status
346 if expr a : '\(a\)' >/dev/null 2>&1 &&
347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
365 as_me=`$as_basename -- "$0" ||
366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
367 X"$0" : 'X\(//\)$' \| \
368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
370 sed '/^.*\/\([^/][^/]*\)\/*$/{
384 # Avoid depending upon Character Ranges.
385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
388 as_cr_digits='0123456789'
389 as_cr_alnum=$as_cr_Letters$as_cr_digits
392 as_lineno_1=$LINENO as_lineno_1a=$LINENO
393 as_lineno_2=$LINENO as_lineno_2a=$LINENO
394 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
395 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
396 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
408 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
412 chmod +x "$as_me.lineno" ||
413 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
415 # Don't try to exec as it changes $[0], causing all sort of problems
416 # (the dirname of $[0] is not the place where we might find the
417 # original and so on. Autoconf is especially sensitive to this).
419 # Exit status is that of the last command.
423 ECHO_C= ECHO_N= ECHO_T=
424 case `echo -n x` in @%:@(((((
426 case `echo 'xy\c'` in
427 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
429 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
436 rm -f conf$$ conf$$.exe conf$$.file
437 if test -d conf$$.dir; then
438 rm -f conf$$.dir/conf$$.file
441 mkdir conf$$.dir 2>/dev/null
443 if (echo >conf$$.file) 2>/dev/null; then
444 if ln -s conf$$.file conf$$ 2>/dev/null; then
446 # ... but there are two gotchas:
447 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
448 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
449 # In both cases, we have to default to `cp -p'.
450 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
452 elif ln conf$$.file conf$$ 2>/dev/null; then
460 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
461 rmdir conf$$.dir 2>/dev/null
463 if mkdir -p . 2>/dev/null; then
464 as_mkdir_p='mkdir -p'
465 elif mkdirs . 2>/dev/null; then
470 test -d ./-p && rmdir ./-p
472 if test -x / >/dev/null 2>&1; then
475 if ls -dL / >/dev/null 2>&1; then
482 if test -d "$1"; then
488 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
489 ???[sx]*):;;*)false;;esac;fi
493 as_executable_p=$as_test_x
495 # Sed expression to map a string onto a valid CPP name.
496 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
498 # Sed expression to map a string onto a valid variable name.
499 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
501 SHELL=${CONFIG_SHELL-/bin/sh}
504 test -n "$DJDIR" || exec 7<&0 </dev/null
508 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
509 # so uname gets run too.
510 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
515 ac_default_prefix=/usr/local
517 ac_config_libobj_dir=.
524 # Identity of this package.
525 PACKAGE_NAME='bullet'
526 PACKAGE_TARNAME='bullet'
527 PACKAGE_VERSION='2.81'
528 PACKAGE_STRING='bullet 2.81'
529 PACKAGE_BUGREPORT='bullet@erwincoumans.com'
532 ac_unique_file="configure.ac"
533 # Factoring default headers for most tests.
534 ac_includes_default="\
536 #ifdef HAVE_SYS_TYPES_H
537 # include <sys/types.h>
539 #ifdef HAVE_SYS_STAT_H
540 # include <sys/stat.h>
546 # ifdef HAVE_STDLIB_H
551 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
556 #ifdef HAVE_STRINGS_H
557 # include <strings.h>
559 #ifdef HAVE_INTTYPES_H
560 # include <inttypes.h>
569 ac_subst_vars='am__EXEEXT_FALSE
574 CONDITIONAL_BUILD_DEMOS_FALSE
575 CONDITIONAL_BUILD_DEMOS_TRUE
576 CONDITIONAL_BUILD_MULTITHREADED_FALSE
577 CONDITIONAL_BUILD_MULTITHREADED_TRUE
632 INSTALL_STRIP_PROGRAM
682 program_transform_name
695 enable_option_checking
696 enable_dependency_tracking
708 ac_precious_vars='build_alias
723 # Initialize some variables set by options.
725 ac_init_version=false
726 ac_unrecognized_opts=
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
737 program_transform_name=s,x,x,
745 # Installation directory options.
746 # These are left unexpanded so users can "make install exec_prefix=/foo"
747 # and all the variables that are supposed to be based on exec_prefix
748 # by default will actually change.
749 # Use braces instead of parens because sh, perl, etc. also accept them.
750 # (The list follows the same order as the GNU Coding Standards.)
751 bindir='${exec_prefix}/bin'
752 sbindir='${exec_prefix}/sbin'
753 libexecdir='${exec_prefix}/libexec'
754 datarootdir='${prefix}/share'
755 datadir='${datarootdir}'
756 sysconfdir='${prefix}/etc'
757 sharedstatedir='${prefix}/com'
758 localstatedir='${prefix}/var'
759 includedir='${prefix}/include'
760 oldincludedir='/usr/include'
761 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
762 infodir='${datarootdir}/info'
767 libdir='${exec_prefix}/lib'
768 localedir='${datarootdir}/locale'
769 mandir='${datarootdir}/man'
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
777 eval $ac_prev=\$ac_option
783 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
812 cache_file=config.cache ;;
814 -datadir | --datadir | --datadi | --datad)
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
826 -disable-* | --disable-*)
827 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
830 as_fn_error $? "invalid feature name: $ac_useropt"
831 ac_useropt_orig=$ac_useropt
832 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
833 case $ac_user_opts in
837 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
838 ac_unrecognized_sep=', ';;
840 eval enable_$ac_useropt=no ;;
842 -docdir | --docdir | --docdi | --doc | --do)
844 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 -enable-* | --enable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error $? "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
866 eval enable_$ac_useropt=\$ac_optarg ;;
868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870 | --exec | --exe | --ex)
871 ac_prev=exec_prefix ;;
872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874 | --exec=* | --exe=* | --ex=*)
875 exec_prefix=$ac_optarg ;;
877 -gas | --gas | --ga | --g)
878 # Obsolete; use --with-gas.
881 -help | --help | --hel | --he | -h)
883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884 ac_init_help=recursive ;;
885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886 ac_init_help=short ;;
888 -host | --host | --hos | --ho)
889 ac_prev=host_alias ;;
890 -host=* | --host=* | --hos=* | --ho=*)
891 host_alias=$ac_optarg ;;
893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 htmldir=$ac_optarg ;;
899 -includedir | --includedir | --includedi | --included | --include \
900 | --includ | --inclu | --incl | --inc)
901 ac_prev=includedir ;;
902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903 | --includ=* | --inclu=* | --incl=* | --inc=*)
904 includedir=$ac_optarg ;;
906 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909 infodir=$ac_optarg ;;
911 -libdir | --libdir | --libdi | --libd)
913 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917 | --libexe | --libex | --libe)
918 ac_prev=libexecdir ;;
919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920 | --libexe=* | --libex=* | --libe=*)
921 libexecdir=$ac_optarg ;;
923 -localedir | --localedir | --localedi | --localed | --locale)
925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926 localedir=$ac_optarg ;;
928 -localstatedir | --localstatedir | --localstatedi | --localstated \
929 | --localstate | --localstat | --localsta | --localst | --locals)
930 ac_prev=localstatedir ;;
931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933 localstatedir=$ac_optarg ;;
935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 # Obsolete; use --without-fp.
944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945 | --no-cr | --no-c | -n)
948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954 | --oldin | --oldi | --old | --ol | --o)
955 ac_prev=oldincludedir ;;
956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959 oldincludedir=$ac_optarg ;;
961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 -program-prefix | --program-prefix | --program-prefi | --program-pref \
967 | --program-pre | --program-pr | --program-p)
968 ac_prev=program_prefix ;;
969 -program-prefix=* | --program-prefix=* | --program-prefi=* \
970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971 program_prefix=$ac_optarg ;;
973 -program-suffix | --program-suffix | --program-suffi | --program-suff \
974 | --program-suf | --program-su | --program-s)
975 ac_prev=program_suffix ;;
976 -program-suffix=* | --program-suffix=* | --program-suffi=* \
977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978 program_suffix=$ac_optarg ;;
980 -program-transform-name | --program-transform-name \
981 | --program-transform-nam | --program-transform-na \
982 | --program-transform-n | --program-transform- \
983 | --program-transform | --program-transfor \
984 | --program-transfo | --program-transf \
985 | --program-trans | --program-tran \
986 | --progr-tra | --program-tr | --program-t)
987 ac_prev=program_transform_name ;;
988 -program-transform-name=* | --program-transform-name=* \
989 | --program-transform-nam=* | --program-transform-na=* \
990 | --program-transform-n=* | --program-transform-=* \
991 | --program-transform=* | --program-transfor=* \
992 | --program-transfo=* | --program-transf=* \
993 | --program-trans=* | --program-tran=* \
994 | --progr-tra=* | --program-tr=* | --program-t=*)
995 program_transform_name=$ac_optarg ;;
997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 pdfdir=$ac_optarg ;;
1002 -psdir | --psdir | --psdi | --psd | --ps)
1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 sbindir=$ac_optarg ;;
1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019 | --sharedst | --shareds | --shared | --share | --shar \
1021 ac_prev=sharedstatedir ;;
1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 sharedstatedir=$ac_optarg ;;
1028 -site | --site | --sit)
1030 -site=* | --site=* | --sit=*)
1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036 srcdir=$ac_optarg ;;
1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039 | --syscon | --sysco | --sysc | --sys | --sy)
1040 ac_prev=sysconfdir ;;
1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043 sysconfdir=$ac_optarg ;;
1045 -target | --target | --targe | --targ | --tar | --ta | --t)
1046 ac_prev=target_alias ;;
1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048 target_alias=$ac_optarg ;;
1050 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 -version | --version | --versio | --versi | --vers | -V)
1054 ac_init_version=: ;;
1057 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error $? "invalid package name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1070 eval with_$ac_useropt=\$ac_optarg ;;
1072 -without-* | --without-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval with_$ac_useropt=no ;;
1089 # Obsolete; use --with-x.
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097 x_includes=$ac_optarg ;;
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104 x_libraries=$ac_optarg ;;
1106 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1107 Try \`$0 --help' for more information"
1111 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 case $ac_envvar in #(
1114 '' | [0-9]* | *[!_$as_cr_alnum]* )
1115 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1117 eval $ac_envvar=\$ac_optarg
1118 export $ac_envvar ;;
1121 # FIXME: should be removed in autoconf 3.0.
1122 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1131 if test -n "$ac_prev"; then
1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133 as_fn_error $? "missing argument to $ac_option"
1136 if test -n "$ac_unrecognized_opts"; then
1137 case $enable_option_checking in
1139 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1140 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1144 # Check all directory arguments for consistency.
1145 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146 datadir sysconfdir sharedstatedir localstatedir includedir \
1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148 libdir localedir mandir
1150 eval ac_val=\$$ac_var
1151 # Remove trailing slashes.
1154 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155 eval $ac_var=\$ac_val;;
1157 # Be sure to have absolute directory names.
1159 [\\/$]* | ?:[\\/]* ) continue;;
1160 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1165 # There might be people who depend on the old broken behavior: `$host'
1166 # used to hold the argument of --host etc.
1167 # FIXME: To remove some day.
1170 target=$target_alias
1172 # FIXME: To remove some day.
1173 if test "x$host_alias" != x; then
1174 if test "x$build_alias" = x; then
1175 cross_compiling=maybe
1176 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1177 If a cross compiler is detected then cross compile mode will be used" >&2
1178 elif test "x$build_alias" != "x$host_alias"; then
1184 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1186 test "$silent" = yes && exec 6>/dev/null
1189 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190 ac_ls_di=`ls -di .` &&
1191 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192 as_fn_error $? "working directory cannot be determined"
1193 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194 as_fn_error $? "pwd does not report name of working directory"
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$as_myself" ||
1202 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$as_myself" : 'X\(//\)[^/]' \| \
1204 X"$as_myself" : 'X\(//\)$' \| \
1205 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206 $as_echo X"$as_myself" |
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1229 ac_srcdir_defaulted=no
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257 # Report the --help message.
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1263 \`configure' configures bullet 2.81 to adapt to many kinds of systems.
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1270 Defaults for the options are specified in brackets.
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print \`checking ...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 @<:@@S|@ac_default_prefix@:>@
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1294 For better control, use the options below.
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
1311 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/bullet@:>@
1312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
1321 --program-prefix=PREFIX prepend PREFIX to installed program names
1322 --program-suffix=SUFFIX append SUFFIX to installed program names
1323 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of bullet 2.81:";;
1338 --disable-option-checking ignore unrecognized --enable/--with options
1339 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1340 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1341 --disable-dependency-tracking speeds up one-time build
1342 --enable-dependency-tracking do not reject slow dependency extractors
1343 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1344 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1345 --enable-fast-install@<:@=PKGS@:>@
1346 optimize for fast installation @<:@default=yes@:>@
1347 --disable-libtool-lock avoid locking (might break parallel builds)
1348 --enable-multithreaded build BulletMultiThreaded (default NO)
1349 --disable-demos disable Bullet demos
1350 --enable-debug build with debugging information (default NO)
1353 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1354 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1355 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1357 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1358 --with-sysroot=DIR Search for dependent libraries within DIR
1359 (or the compiler's sysroot if not specified).
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CXX C++ compiler command
1370 CXXFLAGS C++ compiler flags
1372 CXXCPP C++ preprocessor
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 Report bugs to <bullet@erwincoumans.com>.
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" ||
1386 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1407 .) # We are building in place.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1431 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1440 bullet configure 2.81
1441 generated by GNU Autoconf 2.68
1443 Copyright (C) 2010 Free Software Foundation, Inc.
1444 This configure script is free software; the Free Software Foundation
1445 gives unlimited permission to copy, distribute and modify it.
1450 ## ------------------------ ##
1451 ## Autoconf initialization. ##
1452 ## ------------------------ ##
1454 @%:@ ac_fn_c_try_compile LINENO
1455 @%:@ --------------------------
1456 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1457 ac_fn_c_try_compile ()
1459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1460 rm -f conftest.$ac_objext
1461 if { { ac_try="$ac_compile"
1463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1464 *) ac_try_echo=$ac_try;;
1466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1467 $as_echo "$ac_try_echo"; } >&5
1468 (eval "$ac_compile") 2>conftest.err
1470 if test -s conftest.err; then
1471 grep -v '^ *+' conftest.err >conftest.er1
1472 cat conftest.er1 >&5
1473 mv -f conftest.er1 conftest.err
1475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1476 test $ac_status = 0; } && {
1477 test -z "$ac_c_werror_flag" ||
1478 test ! -s conftest.err
1479 } && test -s conftest.$ac_objext; then :
1482 $as_echo "$as_me: failed program was:" >&5
1483 sed 's/^/| /' conftest.$ac_ext >&5
1487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1488 as_fn_set_status $ac_retval
1490 } @%:@ ac_fn_c_try_compile
1492 @%:@ ac_fn_cxx_try_compile LINENO
1493 @%:@ ----------------------------
1494 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1495 ac_fn_cxx_try_compile ()
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_cxx_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status $ac_retval
1528 } @%:@ ac_fn_cxx_try_compile
1530 @%:@ ac_fn_c_try_link LINENO
1531 @%:@ -----------------------
1532 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext conftest$ac_exeext
1537 if { { ac_try="$ac_link"
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_link") 2>conftest.err
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest$ac_exeext && {
1556 test "$cross_compiling" = yes ||
1557 $as_test_x conftest$ac_exeext
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1566 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1567 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1568 # interfere with the next link command; also delete a directory that is
1569 # left behind by Apple's compiler. We do this before executing the actions.
1570 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1574 } @%:@ ac_fn_c_try_link
1576 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1577 @%:@ -------------------------------------------------------
1578 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1579 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1580 ac_fn_c_check_header_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if eval \${$3+:} false; then :
1586 $as_echo_n "(cached) " >&6
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1593 if ac_fn_c_try_compile "$LINENO"; then :
1598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1602 $as_echo "$ac_res" >&6; }
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 } @%:@ ac_fn_c_check_header_compile
1607 @%:@ ac_fn_c_try_cpp LINENO
1608 @%:@ ----------------------
1609 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } > conftest.i && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1642 } @%:@ ac_fn_c_try_cpp
1644 @%:@ ac_fn_c_try_run LINENO
1645 @%:@ ----------------------
1646 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1647 @%:@ that executables *can* be run.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_link"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>&5
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1662 { { case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_try") 2>&5
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; }; }; then :
1674 $as_echo "$as_me: program exited with status $ac_status" >&5
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 ac_retval=$ac_status
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1684 } @%:@ ac_fn_c_try_run
1686 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1687 @%:@ ----------------------------------
1688 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1689 ac_fn_c_check_func ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1701 #define $2 innocuous_$2
1703 /* System header to define __stub macros and hopefully few prototypes,
1704 which can conflict with char $2 (); below.
1705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1706 <limits.h> exists even on freestanding compilers. */
1709 # include <limits.h>
1711 # include <assert.h>
1716 /* Override any GCC internal prototype to avoid an error.
1717 Use char because int might match the return type of a GCC
1718 builtin and then its argument prototype would still apply. */
1723 /* The GNU C library defines this for functions which it implements
1724 to always fail with ENOSYS. Some functions are actually named
1725 something starting with __ and the normal name is an alias. */
1726 #if defined __stub_$2 || defined __stub___$2
1738 if ac_fn_c_try_link "$LINENO"; then :
1743 rm -f core conftest.err conftest.$ac_objext \
1744 conftest$ac_exeext conftest.$ac_ext
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 } @%:@ ac_fn_c_check_func
1753 @%:@ ac_fn_cxx_try_cpp LINENO
1754 @%:@ ------------------------
1755 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1756 ac_fn_cxx_try_cpp ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_cpp conftest.$ac_ext"
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } > conftest.i && {
1775 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1776 test ! -s conftest.err
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1788 } @%:@ ac_fn_cxx_try_cpp
1790 @%:@ ac_fn_cxx_try_link LINENO
1791 @%:@ -------------------------
1792 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_link ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 $as_test_x conftest$ac_exeext
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } @%:@ ac_fn_cxx_try_link
1835 cat >config.log <<_ACEOF
1836 This file contains any messages produced by compilers while
1837 running configure, to aid debugging if configure makes a mistake.
1839 It was created by bullet $as_me 2.81, which was
1840 generated by GNU Autoconf 2.68. Invocation command line was
1852 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1853 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1854 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1855 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1856 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1859 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1861 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1862 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1863 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1864 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1865 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1866 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1867 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 test -z "$as_dir" && as_dir=.
1876 $as_echo "PATH: $as_dir"
1892 # Keep a trace of the command line.
1893 # Strip out --no-create and --no-recursion so they do not pile up.
1894 # Strip out --silent because we don't want to record it for future runs.
1895 # Also quote any args containing shell meta-characters.
1896 # Make two passes to allow for proper duplicate-argument suppression.
1900 ac_must_keep_next=false
1906 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908 | -silent | --silent | --silen | --sile | --sil)
1911 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1916 as_fn_append ac_configure_args1 " '$ac_arg'"
1917 if test $ac_must_keep_next = true; then
1918 ac_must_keep_next=false # Got value, back to normal.
1921 *=* | --config-cache | -C | -disable-* | --disable-* \
1922 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924 | -with-* | --with-* | -without-* | --without-* | --x)
1925 case "$ac_configure_args0 " in
1926 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1929 -* ) ac_must_keep_next=true ;;
1932 as_fn_append ac_configure_args " '$ac_arg'"
1937 { ac_configure_args0=; unset ac_configure_args0;}
1938 { ac_configure_args1=; unset ac_configure_args1;}
1940 # When interrupted or exit'd, cleanup temporary files, and complete
1941 # config.log. We remove comments because anyway the quotes in there
1942 # would cause problems or look ugly.
1943 # WARNING: Use '\'' to represent an apostrophe within the trap.
1944 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945 trap 'exit_status=$?
1946 # Save into config.log some information that might help in debugging.
1950 $as_echo "## ---------------- ##
1951 ## Cache variables. ##
1952 ## ---------------- ##"
1954 # The following way of writing the cache mishandles newlines in values,
1956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957 eval ac_val=\$$ac_var
1961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1965 _ | IFS | as_nl) ;; #(
1966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1967 *) { eval $ac_var=; unset $ac_var;} ;;
1972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973 *${as_nl}ac_space=\ *)
1975 "s/'\''/'\''\\\\'\'''\''/g;
1976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1986 $as_echo "## ----------------- ##
1987 ## Output variables. ##
1988 ## ----------------- ##"
1990 for ac_var in $ac_subst_vars
1992 eval ac_val=\$$ac_var
1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996 $as_echo "$ac_var='\''$ac_val'\''"
2000 if test -n "$ac_subst_files"; then
2001 $as_echo "## ------------------- ##
2002 ## File substitutions. ##
2003 ## ------------------- ##"
2005 for ac_var in $ac_subst_files
2007 eval ac_val=\$$ac_var
2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 $as_echo "$ac_var='\''$ac_val'\''"
2016 if test -s confdefs.h; then
2017 $as_echo "## ----------- ##
2024 test "$ac_signal" != 0 &&
2025 $as_echo "$as_me: caught signal $ac_signal"
2026 $as_echo "$as_me: exit $exit_status"
2028 rm -f core *.core core.conftest.* &&
2029 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032 for ac_signal in 1 2 13 15; do
2033 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2037 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2038 rm -f -r conftest* confdefs.h
2040 $as_echo "/* confdefs.h */" > confdefs.h
2042 # Predefined preprocessor variables.
2044 cat >>confdefs.h <<_ACEOF
2045 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2048 cat >>confdefs.h <<_ACEOF
2049 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2052 cat >>confdefs.h <<_ACEOF
2053 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2056 cat >>confdefs.h <<_ACEOF
2057 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2060 cat >>confdefs.h <<_ACEOF
2061 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2064 cat >>confdefs.h <<_ACEOF
2065 @%:@define PACKAGE_URL "$PACKAGE_URL"
2069 # Let the site file select an alternate cache file if it wants to.
2070 # Prefer an explicitly selected file to automatically selected ones.
2073 if test -n "$CONFIG_SITE"; then
2074 # We do not want a PATH search for config.site.
2075 case $CONFIG_SITE in @%:@((
2076 -*) ac_site_file1=./$CONFIG_SITE;;
2077 */*) ac_site_file1=$CONFIG_SITE;;
2078 *) ac_site_file1=./$CONFIG_SITE;;
2080 elif test "x$prefix" != xNONE; then
2081 ac_site_file1=$prefix/share/config.site
2082 ac_site_file2=$prefix/etc/config.site
2084 ac_site_file1=$ac_default_prefix/share/config.site
2085 ac_site_file2=$ac_default_prefix/etc/config.site
2087 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2089 test "x$ac_site_file" = xNONE && continue
2090 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2093 sed 's/^/| /' "$ac_site_file" >&5
2095 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 as_fn_error $? "failed to load site script $ac_site_file
2098 See \`config.log' for more details" "$LINENO" 5; }
2102 if test -r "$cache_file"; then
2103 # Some versions of bash will fail to source /dev/null (special files
2104 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2105 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2107 $as_echo "$as_me: loading cache $cache_file" >&6;}
2109 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110 *) . "./$cache_file";;
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2115 $as_echo "$as_me: creating cache $cache_file" >&6;}
2119 # Check that the precious variables saved in the cache have kept the same
2121 ac_cache_corrupted=false
2122 for ac_var in $ac_precious_vars; do
2123 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124 eval ac_new_set=\$ac_env_${ac_var}_set
2125 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126 eval ac_new_val=\$ac_env_${ac_var}_value
2127 case $ac_old_set,$ac_new_set in
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131 ac_cache_corrupted=: ;;
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2134 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135 ac_cache_corrupted=: ;;
2138 if test "x$ac_old_val" != "x$ac_new_val"; then
2139 # differences in whitespace do not lead to failure.
2140 ac_old_val_w=`echo x $ac_old_val`
2141 ac_new_val_w=`echo x $ac_new_val`
2142 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2144 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145 ac_cache_corrupted=:
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2148 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2149 eval $ac_var=\$ac_old_val
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2152 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2154 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2157 # Pass precious variables to config.status.
2158 if test "$ac_new_set" = set; then
2160 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2161 *) ac_arg=$ac_var=$ac_new_val ;;
2163 case " $ac_configure_args " in
2164 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2165 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2169 if $ac_cache_corrupted; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2173 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2174 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2176 ## -------------------- ##
2177 ## Main body of script. ##
2178 ## -------------------- ##
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2189 if test -f "$ac_dir/install-sh"; then
2191 ac_install_sh="$ac_aux_dir/install-sh -c"
2193 elif test -f "$ac_dir/install.sh"; then
2195 ac_install_sh="$ac_aux_dir/install.sh -c"
2197 elif test -f "$ac_dir/shtool"; then
2199 ac_install_sh="$ac_aux_dir/shtool install -c"
2203 if test -z "$ac_aux_dir"; then
2204 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2207 # These three variables are undocumented and unsupported,
2208 # and are intended to be withdrawn in a future Autoconf release.
2209 # They can cause serious problems if a builder's source tree is in a directory
2210 # whose full name contains unusual characters.
2211 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2212 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2213 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2216 # Make sure we can run config.sub.
2217 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2218 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2221 $as_echo_n "checking build system type... " >&6; }
2222 if ${ac_cv_build+:} false; then :
2223 $as_echo_n "(cached) " >&6
2225 ac_build_alias=$build_alias
2226 test "x$ac_build_alias" = x &&
2227 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2228 test "x$ac_build_alias" = x &&
2229 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2230 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2231 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2235 $as_echo "$ac_cv_build" >&6; }
2236 case $ac_cv_build in
2238 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2241 ac_save_IFS=$IFS; IFS='-'
2247 # Remember, the first character of IFS is used to create $*,
2248 # except with old shells:
2251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2255 $as_echo_n "checking host system type... " >&6; }
2256 if ${ac_cv_host+:} false; then :
2257 $as_echo_n "(cached) " >&6
2259 if test "x$host_alias" = x; then
2260 ac_cv_host=$ac_cv_build
2262 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2263 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2268 $as_echo "$ac_cv_host" >&6; }
2271 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2274 ac_save_IFS=$IFS; IFS='-'
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2288 am__api_version='1.11'
2290 # Find a good install program. We prefer a C program (faster),
2291 # so one script is as good as another. But avoid the broken or
2292 # incompatible versions:
2293 # SysV /etc/install, /usr/sbin/install
2294 # SunOS /usr/etc/install
2295 # IRIX /sbin/install
2297 # AmigaOS /C/install, which installs bootblocks on floppy discs
2298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2301 # OS/2's system install, which has a completely different semantic
2302 # ./install, which can be erroneously created by make from ./install.sh.
2303 # Reject install programs that cannot install multiple files.
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2305 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2306 if test -z "$INSTALL"; then
2307 if ${ac_cv_path_install+:} false; then :
2308 $as_echo_n "(cached) " >&6
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 test -z "$as_dir" && as_dir=.
2315 # Account for people who put trailing slashes in PATH elements.
2316 case $as_dir/ in @%:@((
2317 ./ | .// | /[cC]/* | \
2318 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2319 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2322 # OSF1 and SCO ODT 3.0 have their own names for install.
2323 # Don't use installbsd from OSF since it installs stuff as root
2325 for ac_prog in ginstall scoinst install; do
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2328 if test $ac_prog = install &&
2329 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2330 # AIX install. It has an incompatible calling convention.
2332 elif test $ac_prog = install &&
2333 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2334 # program-specific install script used by HP pwplus--don't use.
2337 rm -rf conftest.one conftest.two conftest.dir
2338 echo one > conftest.one
2339 echo two > conftest.two
2341 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2342 test -s conftest.one && test -s conftest.two &&
2343 test -s conftest.dir/conftest.one &&
2344 test -s conftest.dir/conftest.two
2346 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2359 rm -rf conftest.one conftest.two conftest.dir
2362 if test "${ac_cv_path_install+set}" = set; then
2363 INSTALL=$ac_cv_path_install
2365 # As a last resort, use the slow shell script. Don't cache a
2366 # value for INSTALL within a source directory, because that will
2367 # break other packages using the cache if that directory is
2368 # removed, or if the value is a relative name.
2369 INSTALL=$ac_install_sh
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2373 $as_echo "$INSTALL" >&6; }
2375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2376 # It thinks the first close brace ends the variable substitution.
2377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2384 $as_echo_n "checking whether build environment is sane... " >&6; }
2387 echo timestamp > conftest.file
2388 # Reject unsafe characters in $srcdir or the absolute working directory
2389 # name. Accept space and tab only in the latter.
2393 *[\\\"\#\$\&\'\`$am_lf]*)
2394 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2397 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2398 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2401 # Do `set' in a subshell so we don't clobber the current shell's
2402 # arguments. Must try -L first in case configure is actually a
2403 # symlink; some systems play weird games with the mod time of symlinks
2404 # (eg FreeBSD returns the mod time of the symlink's containing
2407 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2408 if test "$*" = "X"; then
2410 set X `ls -t "$srcdir/configure" conftest.file`
2413 if test "$*" != "X $srcdir/configure conftest.file" \
2414 && test "$*" != "X conftest.file $srcdir/configure"; then
2416 # If neither matched, then we have a broken ls. This can happen
2417 # if, for instance, CONFIG_SHELL is bash and it inherits a
2418 # broken ls alias from the environment. This has actually
2419 # happened. Such a system could not be considered "sane".
2420 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2421 alias in your environment" "$LINENO" 5
2424 test "$2" = conftest.file
2430 as_fn_error $? "newly created file is older than distributed files!
2431 Check your system clock" "$LINENO" 5
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2434 $as_echo "yes" >&6; }
2435 test "$program_prefix" != NONE &&
2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2437 # Use a double $ so make ignores it.
2438 test "$program_suffix" != NONE &&
2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440 # Double any \ or $.
2441 # By default was `s,x,x', remove it if useless.
2442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2445 # expand $ac_aux_dir to an absolute path
2446 am_aux_dir=`cd $ac_aux_dir && pwd`
2448 if test x"${MISSING+set}" != xset; then
2451 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2453 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2456 # Use eval to expand $SHELL
2457 if eval "$MISSING --run true"; then
2458 am_missing_run="$MISSING --run "
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2462 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2465 if test x"${install_sh}" != xset; then
2468 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2470 install_sh="\${SHELL} $am_aux_dir/install-sh"
2474 # Installed binaries are usually stripped using `strip' when the user
2475 # run `make install-strip'. However `strip' might not be the right
2476 # tool to use in cross-compilation environments, therefore Automake
2477 # will honor the `STRIP' environment variable to overrule this program.
2478 if test "$cross_compiling" != no; then
2479 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}strip; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_STRIP+:} false; then :
2485 $as_echo_n "(cached) " >&6
2487 if test -n "$STRIP"; then
2488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 STRIP=$ac_cv_prog_STRIP
2508 if test -n "$STRIP"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2510 $as_echo "$STRIP" >&6; }
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2518 if test -z "$ac_cv_prog_STRIP"; then
2520 # Extract the first word of "strip", so it can be a program name with args.
2521 set dummy strip; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2525 $as_echo_n "(cached) " >&6
2527 if test -n "$ac_ct_STRIP"; then
2528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_ac_ct_STRIP="strip"
2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2548 if test -n "$ac_ct_STRIP"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2550 $as_echo "$ac_ct_STRIP" >&6; }
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2556 if test "x$ac_ct_STRIP" = x; then
2559 case $cross_compiling:$ac_tool_warned in
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2563 ac_tool_warned=yes ;;
2568 STRIP="$ac_cv_prog_STRIP"
2572 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2575 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2576 if test -z "$MKDIR_P"; then
2577 if ${ac_cv_path_mkdir+:} false; then :
2578 $as_echo_n "(cached) " >&6
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2584 test -z "$as_dir" && as_dir=.
2585 for ac_prog in mkdir gmkdir; do
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2588 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2589 'mkdir (GNU coreutils) '* | \
2590 'mkdir (coreutils) '* | \
2591 'mkdir (fileutils) '4.1*)
2592 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2602 test -d ./--version && rmdir ./--version
2603 if test "${ac_cv_path_mkdir+set}" = set; then
2604 MKDIR_P="$ac_cv_path_mkdir -p"
2606 # As a last resort, use the slow shell script. Don't cache a
2607 # value for MKDIR_P within a source directory, because that will
2608 # break other packages using the cache if that directory is
2609 # removed, or if the value is a relative name.
2610 MKDIR_P="$ac_install_sh -d"
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2614 $as_echo "$MKDIR_P" >&6; }
2618 [\\/$]* | ?:[\\/]*) ;;
2619 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2622 for ac_prog in gawk mawk nawk awk
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_AWK+:} false; then :
2629 $as_echo_n "(cached) " >&6
2631 if test -n "$AWK"; then
2632 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_AWK="$ac_prog"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 if test -n "$AWK"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2654 $as_echo "$AWK" >&6; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2661 test -n "$AWK" && break
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2665 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2667 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2668 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2669 $as_echo_n "(cached) " >&6
2671 cat >conftest.make <<\_ACEOF
2674 @echo '@@@%%%=$(MAKE)=@@@%%%'
2676 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2677 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2679 eval ac_cv_prog_make_${ac_make}_set=yes;;
2681 eval ac_cv_prog_make_${ac_make}_set=no;;
2685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2687 $as_echo "yes" >&6; }
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 SET_MAKE="MAKE=${MAKE-make}"
2695 rm -rf .tst 2>/dev/null
2696 mkdir .tst 2>/dev/null
2697 if test -d .tst; then
2702 rmdir .tst 2>/dev/null
2704 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2705 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2706 # is not polluted with repeated "-I."
2707 am__isrc=' -I$(srcdir)'
2708 # test to see if srcdir already configured
2709 if test -f $srcdir/config.status; then
2710 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2714 # test whether we have cygpath
2715 if test -z "$CYGPATH_W"; then
2716 if (cygpath --version) >/dev/null 2>/dev/null; then
2717 CYGPATH_W='cygpath -w'
2724 # Define the identity of the package.
2729 cat >>confdefs.h <<_ACEOF
2730 @%:@define PACKAGE "$PACKAGE"
2734 cat >>confdefs.h <<_ACEOF
2735 @%:@define VERSION "$VERSION"
2738 # Some tools Automake needs.
2740 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2743 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2746 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2749 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2752 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2754 # We need awk for the "check" target. The system "awk" is bad on
2756 # Always define AMTAR for backward compatibility.
2758 AMTAR=${AMTAR-"${am_missing_run}tar"}
2760 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2766 DEPDIR="${am__leading_dot}deps"
2768 ac_config_commands="$ac_config_commands depfiles"
2771 am_make=${MAKE-make}
2772 cat > confinc << 'END'
2774 @echo this is the am__doit target
2777 # If we don't find an include directive, just comment out the code.
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2779 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2783 # First try GNU make style include.
2784 echo "include confinc" > confmf
2785 # Ignore all kinds of additional output from `make'.
2786 case `$am_make -s -f confmf 2> /dev/null` in #(
2787 *the\ am__doit\ target*)
2793 # Now try BSD make style include.
2794 if test "$am__include" = "#"; then
2795 echo '.include "confinc"' > confmf
2796 case `$am_make -s -f confmf 2> /dev/null` in #(
2797 *the\ am__doit\ target*)
2798 am__include=.include
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2807 $as_echo "$_am_result" >&6; }
2808 rm -f confinc confmf
2810 @%:@ Check whether --enable-dependency-tracking was given.
2811 if test "${enable_dependency_tracking+set}" = set; then :
2812 enableval=$enable_dependency_tracking;
2815 if test "x$enable_dependency_tracking" != xno; then
2816 am_depcomp="$ac_aux_dir/depcomp"
2819 if test "x$enable_dependency_tracking" != xno; then
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2833 if test -n "$ac_tool_prefix"; then
2834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_CC+:} false; then :
2839 $as_echo_n "(cached) " >&6
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 if test -n "$CC"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2872 if test -z "$ac_cv_prog_CC"; then
2874 # Extract the first word of "gcc", so it can be a program name with args.
2875 set dummy gcc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_ac_ct_CC="gcc"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902 if test -n "$ac_ct_CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904 $as_echo "$ac_ct_CC" >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2910 if test "x$ac_ct_CC" = x; then
2913 case $cross_compiling:$ac_tool_warned in
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2917 ac_tool_warned=yes ;;
2925 if test -z "$CC"; then
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}cc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_CC="${ac_tool_prefix}cc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2966 if test -z "$CC"; then
2967 # Extract the first word of "cc", so it can be a program name with args.
2968 set dummy cc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_CC+:} false; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2986 ac_prog_rejected=yes
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 if test $ac_prog_rejected = yes; then
2998 # We found a bogon in the path, so make sure we never use it.
2999 set dummy $ac_cv_prog_CC
3001 if test $@%:@ != 0; then
3002 # We chose a different compiler from the bogus one.
3003 # However, it has the same basename, so the bogon will be chosen
3004 # first if we set CC to just the basename; use the full file name.
3006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3022 if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
3024 for ac_prog in cl.exe
3026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 if test -n "$CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3063 test -n "$CC" && break
3066 if test -z "$CC"; then
3068 for ac_prog in cl.exe
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071 set dummy $ac_prog; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_ac_ct_CC="$ac_prog"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3107 test -n "$ac_ct_CC" && break
3110 if test "x$ac_ct_CC" = x; then
3113 case $cross_compiling:$ac_tool_warned in
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3117 ac_tool_warned=yes ;;
3126 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error $? "no acceptable C compiler found in \$PATH
3129 See \`config.log' for more details" "$LINENO" 5; }
3131 # Provide some information about the compiler.
3132 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3135 for ac_option in --version -v -V -qversion; do
3136 { { ac_try="$ac_compiler $ac_option >&5"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3145 if test -s conftest.err; then
3147 ... rest of stderr output deleted ...
3148 10q' conftest.err >conftest.er1
3149 cat conftest.er1 >&5
3151 rm -f conftest.er1 conftest.err
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3167 ac_clean_files_save=$ac_clean_files
3168 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3169 # Try to create an executable without -o first, disregard a.out.
3170 # It will help us diagnose broken compilers, and finding out an intuition
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3173 $as_echo_n "checking whether the C compiler works... " >&6; }
3174 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176 # The possible output files:
3177 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3180 for ac_file in $ac_files
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3189 if { { ac_try="$ac_link_default"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_link_default") 2>&5
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }; then :
3200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3203 # so that the user can short-circuit this test for compilers unknown to
3205 for ac_file in $ac_files ''
3207 test -f "$ac_file" || continue
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3212 # We found the default executable, but exeext='' is most
3216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220 # We set ac_cv_exeext here because the later test for it is not
3221 # safe: cross compilers may not add the suffix if given an `-o'
3222 # argument, so we may need to know it at that point already.
3223 # Even if this section looks crufty: it has the advantage of
3230 test "$ac_cv_exeext" = no && ac_cv_exeext=
3235 if test -z "$ac_file"; then :
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error 77 "C compiler cannot create executables
3244 See \`config.log' for more details" "$LINENO" 5; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3250 $as_echo_n "checking for C compiler default output file name... " >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252 $as_echo "$ac_file" >&6; }
3253 ac_exeext=$ac_cv_exeext
3255 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3256 ac_clean_files=$ac_clean_files_save
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3258 $as_echo_n "checking for suffix of executables... " >&6; }
3259 if { { ac_try="$ac_link"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3272 # work properly (i.e., refer to `conftest.exe'), while it won't with
3274 for ac_file in conftest.exe conftest conftest.*; do
3275 test -f "$ac_file" || continue
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287 See \`config.log' for more details" "$LINENO" 5; }
3289 rm -f conftest conftest$ac_cv_exeext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3291 $as_echo "$ac_cv_exeext" >&6; }
3293 rm -f conftest.$ac_ext
3294 EXEEXT=$ac_cv_exeext
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3298 @%:@include <stdio.h>
3302 FILE *f = fopen ("conftest.out", "w");
3303 return ferror (f) || fclose (f) != 0;
3309 ac_clean_files="$ac_clean_files conftest.out"
3310 # Check that the compiler produces executables we can run. If not, either
3311 # the compiler is broken, or we cross compile.
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313 $as_echo_n "checking whether we are cross compiling... " >&6; }
3314 if test "$cross_compiling" != yes; then
3315 { { ac_try="$ac_link"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }
3326 if { ac_try='./conftest$ac_cv_exeext'
3327 { { case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_try") 2>&5
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; }; then
3339 if test "$cross_compiling" = maybe; then
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot run C compiled programs.
3345 If you meant to cross compile, use \`--host'.
3346 See \`config.log' for more details" "$LINENO" 5; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351 $as_echo "$cross_compiling" >&6; }
3353 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354 ac_clean_files=$ac_clean_files_save
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3356 $as_echo_n "checking for suffix of object files... " >&6; }
3357 if ${ac_cv_objext+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3371 rm -f conftest.o conftest.obj
3372 if { { ac_try="$ac_compile"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_compile") 2>&5
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 for ac_file in conftest.o conftest.obj conftest.*; do
3384 test -f "$ac_file" || continue;
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of object files: cannot compile
3398 See \`config.log' for more details" "$LINENO" 5; }
3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3403 $as_echo "$ac_cv_objext" >&6; }
3404 OBJEXT=$ac_cv_objext
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3407 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3408 if ${ac_cv_c_compiler_gnu+:} false; then :
3409 $as_echo_n "(cached) " >&6
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3425 if ac_fn_c_try_compile "$LINENO"; then :
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3435 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3436 if test $ac_compiler_gnu = yes; then
3441 ac_test_CFLAGS=${CFLAGS+set}
3442 ac_save_CFLAGS=$CFLAGS
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3444 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3445 if ${ac_cv_prog_cc_g+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 ac_save_c_werror_flag=$ac_c_werror_flag
3449 ac_c_werror_flag=yes
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3463 if ac_fn_c_try_compile "$LINENO"; then :
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3478 if ac_fn_c_try_compile "$LINENO"; then :
3481 ac_c_werror_flag=$ac_save_c_werror_flag
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3494 if ac_fn_c_try_compile "$LINENO"; then :
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3505 $as_echo "$ac_cv_prog_cc_g" >&6; }
3506 if test "$ac_test_CFLAGS" = set; then
3507 CFLAGS=$ac_save_CFLAGS
3508 elif test $ac_cv_prog_cc_g = yes; then
3509 if test "$GCC" = yes; then
3515 if test "$GCC" = yes; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3522 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3523 if ${ac_cv_prog_cc_c89+:} false; then :
3524 $as_echo_n "(cached) " >&6
3526 ac_cv_prog_cc_c89=no
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3532 #include <sys/types.h>
3533 #include <sys/stat.h>
3534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3535 struct buf { int x; };
3536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537 static char *e (p, i)
3543 static char *f (char * (*g) (char **, int), char **p, ...)
3548 s = g (p, va_arg (v,int));
3553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3554 function prototypes and stuff, but not '\xHH' hex character constants.
3555 These don't provoke an error unfortunately, instead are silently treated
3556 as 'x'. The following induces an error, until -std is added to get
3557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3558 array size at least. It's necessary to write '\x00'==0 to get something
3559 that's true only with -std. */
3560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563 inside strings and character constants. */
3565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3584 CC="$ac_save_CC $ac_arg"
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586 ac_cv_prog_cc_c89=$ac_arg
3588 rm -f core conftest.err conftest.$ac_objext
3589 test "x$ac_cv_prog_cc_c89" != "xno" && break
3591 rm -f conftest.$ac_ext
3596 case "x$ac_cv_prog_cc_c89" in
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599 $as_echo "none needed" >&6; } ;;
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3602 $as_echo "unsupported" >&6; } ;;
3604 CC="$CC $ac_cv_prog_cc_c89"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3606 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3608 if test "x$ac_cv_prog_cc_c89" != xno; then :
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618 depcc="$CC" am_compiler_list=
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3621 $as_echo_n "checking dependency style of $depcc... " >&6; }
3622 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3623 $as_echo_n "(cached) " >&6
3625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3626 # We make a subdir and do the tests there. Otherwise we can end up
3627 # making bogus files that we don't know about and never remove. For
3628 # instance it was reported that on HP-UX the gcc test will end up
3629 # making a dummy file named `D' -- because `-MD' means `put the output
3632 # Copy depcomp to subdir because otherwise we won't find it if we're
3633 # using a relative directory.
3634 cp "$am_depcomp" conftest.dir
3636 # We will build objects and dependencies in a subdirectory because
3637 # it helps to detect inapplicable dependency modes. For instance
3638 # both Tru64's cc and ICC support -MD to output dependencies as a
3639 # side effect of compilation, but ICC will put the dependencies in
3640 # the current directory while Tru64 will put them in the object
3644 am_cv_CC_dependencies_compiler_type=none
3645 if test "$am_compiler_list" = ""; then
3646 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3649 case " $depcc " in #(
3650 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3653 for depmode in $am_compiler_list; do
3654 # Setup a source with many dependencies, because some compilers
3655 # like to wrap large dependency lists on column 80 (with \), and
3656 # we should not choose a depcomp mode which is confused by this.
3658 # We need to recreate these files for each test, as the compiler may
3659 # overwrite some of them when testing with obscure command lines.
3660 # This happens at least with the AIX C compiler.
3662 for i in 1 2 3 4 5 6; do
3663 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3665 # Solaris 8's {/usr,}/bin/sh.
3666 touch sub/conftst$i.h
3668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3670 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3671 # mode. It turns out that the SunPro C++ compiler does not properly
3672 # handle `-M -o', and we need to detect this. Also, some Intel
3673 # versions had trouble with output in subdirs
3674 am__obj=sub/conftest.${OBJEXT-o}
3675 am__minus_obj="-o $am__obj"
3678 # This depmode causes a compiler race in universal mode.
3679 test "$am__universal" = false || continue
3682 # after this tag, mechanisms are not by side-effect, so they'll
3683 # only be used when explicitly requested
3684 if test "x$enable_dependency_tracking" = xyes; then
3690 msvisualcpp | msvcmsys)
3691 # This compiler won't grok `-c -o', but also, the minuso test has
3692 # not run yet. These depmodes are late enough in the game, and
3693 # so weak that their functioning should not be impacted.
3694 am__obj=conftest.${OBJEXT-o}
3699 if depmode=$depmode \
3700 source=sub/conftest.c object=$am__obj \
3701 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3702 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3703 >/dev/null 2>conftest.err &&
3704 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3705 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3706 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3707 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3708 # icc doesn't choke on unknown options, it will just issue warnings
3709 # or remarks (even with -Werror). So we grep stderr for any message
3710 # that says an option was ignored or not supported.
3711 # When given -MP, icc 7.0 and 7.1 complain thusly:
3712 # icc: Command line warning: ignoring option '-M'; no argument required
3713 # The diagnosis changed in icc 8.0:
3714 # icc: Command line remark: option '-MP' not supported
3715 if (grep 'ignoring option' conftest.err ||
3716 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3717 am_cv_CC_dependencies_compiler_type=$depmode
3726 am_cv_CC_dependencies_compiler_type=none
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3731 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3732 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3735 test "x$enable_dependency_tracking" != xno \
3736 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3738 am__fastdepCC_FALSE='#'
3740 am__fastdepCC_TRUE='#'
3741 am__fastdepCC_FALSE=
3745 if test "x$CC" != xcc; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3747 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3750 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3752 set dummy $CC; ac_cc=`$as_echo "$2" |
3753 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3754 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3755 $as_echo_n "(cached) " >&6
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3768 # Make sure it works both with $CC and with simple cc.
3769 # We do the test twice because some compilers refuse to overwrite an
3770 # existing .o file with -o, though they will create one.
3771 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3773 if { { case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_try") 2>&5
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; } &&
3783 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_try") 2>&5
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; };
3794 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3795 if test "x$CC" != xcc; then
3796 # Test first that cc exists at all.
3797 if { ac_try='cc -c conftest.$ac_ext >&5'
3798 { { case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_try") 2>&5
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }; }; then
3808 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3810 if { { case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_try") 2>&5
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; } &&
3820 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_try") 2>&5
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; };
3834 # cc exists but doesn't like -o.
3835 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3840 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3842 rm -f core conftest*
3845 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3847 $as_echo "yes" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3852 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3856 # FIXME: we rely on the cache variable name because
3857 # there is no other way.
3859 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3860 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3861 if test "$am_t" != yes; then
3862 # Losing compiler, so override with the script.
3863 # FIXME: It is wrong to rewrite CC.
3864 # But if we don't then we get into trouble of one sort or another.
3865 # A longer-term fix would be to have automake use am__CC in this case,
3866 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3867 CC="$am_aux_dir/compile $CC"
3872 ac_cpp='$CXXCPP $CPPFLAGS'
3873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3876 if test -z "$CXX"; then
3877 if test -n "$CCC"; then
3880 if test -n "$ac_tool_prefix"; then
3881 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_CXX+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$CXX"; then
3891 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 if test -n "$CXX"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3913 $as_echo "$CXX" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3920 test -n "$CXX" && break
3923 if test -z "$CXX"; then
3925 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928 set dummy $ac_prog; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3932 $as_echo_n "(cached) " >&6
3934 if test -n "$ac_ct_CXX"; then
3935 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_ac_ct_CXX="$ac_prog"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3955 if test -n "$ac_ct_CXX"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3957 $as_echo "$ac_ct_CXX" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3964 test -n "$ac_ct_CXX" && break
3967 if test "x$ac_ct_CXX" = x; then
3970 case $cross_compiling:$ac_tool_warned in
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned=yes ;;
3982 # Provide some information about the compiler.
3983 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3986 for ac_option in --version -v -V -qversion; do
3987 { { ac_try="$ac_compiler $ac_option >&5"
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3996 if test -s conftest.err; then
3998 ... rest of stderr output deleted ...
3999 10q' conftest.err >conftest.er1
4000 cat conftest.er1 >&5
4002 rm -f conftest.er1 conftest.err
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4008 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4009 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4010 $as_echo_n "(cached) " >&6
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4026 if ac_fn_cxx_try_compile "$LINENO"; then :
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4036 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4037 if test $ac_compiler_gnu = yes; then
4042 ac_test_CXXFLAGS=${CXXFLAGS+set}
4043 ac_save_CXXFLAGS=$CXXFLAGS
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4045 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4046 if ${ac_cv_prog_cxx_g+:} false; then :
4047 $as_echo_n "(cached) " >&6
4049 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4050 ac_cxx_werror_flag=yes
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4064 if ac_fn_cxx_try_compile "$LINENO"; then :
4065 ac_cv_prog_cxx_g=yes
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4079 if ac_fn_cxx_try_compile "$LINENO"; then :
4082 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4095 if ac_fn_cxx_try_compile "$LINENO"; then :
4096 ac_cv_prog_cxx_g=yes
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4106 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4107 if test "$ac_test_CXXFLAGS" = set; then
4108 CXXFLAGS=$ac_save_CXXFLAGS
4109 elif test $ac_cv_prog_cxx_g = yes; then
4110 if test "$GXX" = yes; then
4116 if test "$GXX" = yes; then
4123 ac_cpp='$CPP $CPPFLAGS'
4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128 depcc="$CXX" am_compiler_list=
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4131 $as_echo_n "checking dependency style of $depcc... " >&6; }
4132 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4133 $as_echo_n "(cached) " >&6
4135 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4136 # We make a subdir and do the tests there. Otherwise we can end up
4137 # making bogus files that we don't know about and never remove. For
4138 # instance it was reported that on HP-UX the gcc test will end up
4139 # making a dummy file named `D' -- because `-MD' means `put the output
4142 # Copy depcomp to subdir because otherwise we won't find it if we're
4143 # using a relative directory.
4144 cp "$am_depcomp" conftest.dir
4146 # We will build objects and dependencies in a subdirectory because
4147 # it helps to detect inapplicable dependency modes. For instance
4148 # both Tru64's cc and ICC support -MD to output dependencies as a
4149 # side effect of compilation, but ICC will put the dependencies in
4150 # the current directory while Tru64 will put them in the object
4154 am_cv_CXX_dependencies_compiler_type=none
4155 if test "$am_compiler_list" = ""; then
4156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4159 case " $depcc " in #(
4160 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4163 for depmode in $am_compiler_list; do
4164 # Setup a source with many dependencies, because some compilers
4165 # like to wrap large dependency lists on column 80 (with \), and
4166 # we should not choose a depcomp mode which is confused by this.
4168 # We need to recreate these files for each test, as the compiler may
4169 # overwrite some of them when testing with obscure command lines.
4170 # This happens at least with the AIX C compiler.
4172 for i in 1 2 3 4 5 6; do
4173 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4174 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4175 # Solaris 8's {/usr,}/bin/sh.
4176 touch sub/conftst$i.h
4178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4180 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4181 # mode. It turns out that the SunPro C++ compiler does not properly
4182 # handle `-M -o', and we need to detect this. Also, some Intel
4183 # versions had trouble with output in subdirs
4184 am__obj=sub/conftest.${OBJEXT-o}
4185 am__minus_obj="-o $am__obj"
4188 # This depmode causes a compiler race in universal mode.
4189 test "$am__universal" = false || continue
4192 # after this tag, mechanisms are not by side-effect, so they'll
4193 # only be used when explicitly requested
4194 if test "x$enable_dependency_tracking" = xyes; then
4200 msvisualcpp | msvcmsys)
4201 # This compiler won't grok `-c -o', but also, the minuso test has
4202 # not run yet. These depmodes are late enough in the game, and
4203 # so weak that their functioning should not be impacted.
4204 am__obj=conftest.${OBJEXT-o}
4209 if depmode=$depmode \
4210 source=sub/conftest.c object=$am__obj \
4211 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4212 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4213 >/dev/null 2>conftest.err &&
4214 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4216 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4218 # icc doesn't choke on unknown options, it will just issue warnings
4219 # or remarks (even with -Werror). So we grep stderr for any message
4220 # that says an option was ignored or not supported.
4221 # When given -MP, icc 7.0 and 7.1 complain thusly:
4222 # icc: Command line warning: ignoring option '-M'; no argument required
4223 # The diagnosis changed in icc 8.0:
4224 # icc: Command line remark: option '-MP' not supported
4225 if (grep 'ignoring option' conftest.err ||
4226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4227 am_cv_CXX_dependencies_compiler_type=$depmode
4236 am_cv_CXX_dependencies_compiler_type=none
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4241 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4242 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4245 test "x$enable_dependency_tracking" != xno \
4246 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4247 am__fastdepCXX_TRUE=
4248 am__fastdepCXX_FALSE='#'
4250 am__fastdepCXX_TRUE='#'
4251 am__fastdepCXX_FALSE=
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4258 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4264 macro_revision='1.3293'
4278 ltmain="$ac_aux_dir/ltmain.sh"
4280 # Backslashify metacharacters that are still active within
4281 # double-quoted strings.
4282 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4284 # Same as above, but do not quote variable references.
4285 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4287 # Sed substitution to delay expansion of an escaped shell variable in a
4288 # double_quote_subst'ed string.
4289 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4291 # Sed substitution to delay expansion of an escaped single quote.
4292 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4294 # Sed substitution to avoid accidental globbing in evaled expressions
4295 no_glob_subst='s/\*/\\\*/g'
4297 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4298 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4299 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4302 $as_echo_n "checking how to print strings... " >&6; }
4303 # Test print first, because it will be a builtin if present.
4304 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4305 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4307 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4310 # Use this function as a fallback that always works.
4311 func_fallback_echo ()
4313 eval 'cat <<_LTECHO_EOF
4317 ECHO='func_fallback_echo'
4320 # func_echo_all arg...
4321 # Invoke $ECHO with all args, space-separated.
4328 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4329 $as_echo "printf" >&6; } ;;
4330 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4331 $as_echo "print -r" >&6; } ;;
4332 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4333 $as_echo "cat" >&6; } ;;
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4350 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4351 if ${ac_cv_path_SED+:} false; then :
4352 $as_echo_n "(cached) " >&6
4354 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4355 for ac_i in 1 2 3 4 5 6 7; do
4356 ac_script="$ac_script$as_nl$ac_script"
4358 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4359 { ac_script=; unset ac_script;}
4360 if test -z "$SED"; then
4361 ac_path_SED_found=false
4362 # Loop through the user's path and test for each of PROGNAME-LIST
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_prog in sed gsed; do
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4371 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4372 # Check for GNU ac_path_SED and select it if it is found.
4373 # Check for GNU $ac_path_SED
4374 case `"$ac_path_SED" --version 2>&1` in
4376 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4379 $as_echo_n 0123456789 >"conftest.in"
4382 cat "conftest.in" "conftest.in" >"conftest.tmp"
4383 mv "conftest.tmp" "conftest.in"
4384 cp "conftest.in" "conftest.nl"
4385 $as_echo '' >> "conftest.nl"
4386 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388 as_fn_arith $ac_count + 1 && ac_count=$as_val
4389 if test $ac_count -gt ${ac_path_SED_max-0}; then
4390 # Best one so far, save it but keep looking for a better one
4391 ac_cv_path_SED="$ac_path_SED"
4392 ac_path_SED_max=$ac_count
4394 # 10*(2^10) chars as input seems more than enough
4395 test $ac_count -gt 10 && break
4397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 $ac_path_SED_found && break 3
4405 if test -z "$ac_cv_path_SED"; then
4406 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4414 $as_echo "$ac_cv_path_SED" >&6; }
4415 SED="$ac_cv_path_SED"
4418 test -z "$SED" && SED=sed
4419 Xsed="$SED -e 1s/^X//"
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4432 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4433 if ${ac_cv_path_GREP+:} false; then :
4434 $as_echo_n "(cached) " >&6
4436 if test -z "$GREP"; then
4437 ac_path_GREP_found=false
4438 # Loop through the user's path and test for each of PROGNAME-LIST
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443 test -z "$as_dir" && as_dir=.
4444 for ac_prog in grep ggrep; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4447 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4448 # Check for GNU ac_path_GREP and select it if it is found.
4449 # Check for GNU $ac_path_GREP
4450 case `"$ac_path_GREP" --version 2>&1` in
4452 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4455 $as_echo_n 0123456789 >"conftest.in"
4458 cat "conftest.in" "conftest.in" >"conftest.tmp"
4459 mv "conftest.tmp" "conftest.in"
4460 cp "conftest.in" "conftest.nl"
4461 $as_echo 'GREP' >> "conftest.nl"
4462 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464 as_fn_arith $ac_count + 1 && ac_count=$as_val
4465 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4466 # Best one so far, save it but keep looking for a better one
4467 ac_cv_path_GREP="$ac_path_GREP"
4468 ac_path_GREP_max=$ac_count
4470 # 10*(2^10) chars as input seems more than enough
4471 test $ac_count -gt 10 && break
4473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476 $ac_path_GREP_found && break 3
4481 if test -z "$ac_cv_path_GREP"; then
4482 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4485 ac_cv_path_GREP=$GREP
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4490 $as_echo "$ac_cv_path_GREP" >&6; }
4491 GREP="$ac_cv_path_GREP"
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4495 $as_echo_n "checking for egrep... " >&6; }
4496 if ${ac_cv_path_EGREP+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4500 then ac_cv_path_EGREP="$GREP -E"
4502 if test -z "$EGREP"; then
4503 ac_path_EGREP_found=false
4504 # Loop through the user's path and test for each of PROGNAME-LIST
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4509 test -z "$as_dir" && as_dir=.
4510 for ac_prog in egrep; do
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4513 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4514 # Check for GNU ac_path_EGREP and select it if it is found.
4515 # Check for GNU $ac_path_EGREP
4516 case `"$ac_path_EGREP" --version 2>&1` in
4518 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4521 $as_echo_n 0123456789 >"conftest.in"
4524 cat "conftest.in" "conftest.in" >"conftest.tmp"
4525 mv "conftest.tmp" "conftest.in"
4526 cp "conftest.in" "conftest.nl"
4527 $as_echo 'EGREP' >> "conftest.nl"
4528 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530 as_fn_arith $ac_count + 1 && ac_count=$as_val
4531 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4532 # Best one so far, save it but keep looking for a better one
4533 ac_cv_path_EGREP="$ac_path_EGREP"
4534 ac_path_EGREP_max=$ac_count
4536 # 10*(2^10) chars as input seems more than enough
4537 test $ac_count -gt 10 && break
4539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542 $ac_path_EGREP_found && break 3
4547 if test -z "$ac_cv_path_EGREP"; then
4548 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4551 ac_cv_path_EGREP=$EGREP
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4557 $as_echo "$ac_cv_path_EGREP" >&6; }
4558 EGREP="$ac_cv_path_EGREP"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4562 $as_echo_n "checking for fgrep... " >&6; }
4563 if ${ac_cv_path_FGREP+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4567 then ac_cv_path_FGREP="$GREP -F"
4569 if test -z "$FGREP"; then
4570 ac_path_FGREP_found=false
4571 # Loop through the user's path and test for each of PROGNAME-LIST
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4576 test -z "$as_dir" && as_dir=.
4577 for ac_prog in fgrep; do
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4580 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4581 # Check for GNU ac_path_FGREP and select it if it is found.
4582 # Check for GNU $ac_path_FGREP
4583 case `"$ac_path_FGREP" --version 2>&1` in
4585 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4588 $as_echo_n 0123456789 >"conftest.in"
4591 cat "conftest.in" "conftest.in" >"conftest.tmp"
4592 mv "conftest.tmp" "conftest.in"
4593 cp "conftest.in" "conftest.nl"
4594 $as_echo 'FGREP' >> "conftest.nl"
4595 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597 as_fn_arith $ac_count + 1 && ac_count=$as_val
4598 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4599 # Best one so far, save it but keep looking for a better one
4600 ac_cv_path_FGREP="$ac_path_FGREP"
4601 ac_path_FGREP_max=$ac_count
4603 # 10*(2^10) chars as input seems more than enough
4604 test $ac_count -gt 10 && break
4606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609 $ac_path_FGREP_found && break 3
4614 if test -z "$ac_cv_path_FGREP"; then
4615 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4618 ac_cv_path_FGREP=$FGREP
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4624 $as_echo "$ac_cv_path_FGREP" >&6; }
4625 FGREP="$ac_cv_path_FGREP"
4628 test -z "$GREP" && GREP=grep
4648 @%:@ Check whether --with-gnu-ld was given.
4649 if test "${with_gnu_ld+set}" = set; then :
4650 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4656 if test "$GCC" = yes; then
4657 # Check if gcc -print-prog-name=ld gives a path.
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4659 $as_echo_n "checking for ld used by $CC... " >&6; }
4662 # gcc leaves a trailing carriage return which upsets mingw
4663 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4665 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4668 # Accept absolute paths.
4670 re_direlt='/[^/][^/]*/\.\./'
4671 # Canonicalize the pathname of ld
4672 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4673 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4674 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4676 test -z "$LD" && LD="$ac_prog"
4679 # If it fails, then pretend we aren't using GCC.
4683 # If it is relative, then search for the first ld in PATH.
4687 elif test "$with_gnu_ld" = yes; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4689 $as_echo_n "checking for GNU ld... " >&6; }
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4692 $as_echo_n "checking for non-GNU ld... " >&6; }
4694 if ${lt_cv_path_LD+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 if test -z "$LD"; then
4698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4699 for ac_dir in $PATH; do
4701 test -z "$ac_dir" && ac_dir=.
4702 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4703 lt_cv_path_LD="$ac_dir/$ac_prog"
4704 # Check to see if the program is GNU ld. I'd rather use --version,
4705 # but apparently some variants of GNU ld only accept -v.
4706 # Break only if it was the GNU/non-GNU ld that we prefer.
4707 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4708 *GNU* | *'with BFD'*)
4709 test "$with_gnu_ld" != no && break
4712 test "$with_gnu_ld" != yes && break
4719 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4724 if test -n "$LD"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4726 $as_echo "$LD" >&6; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4731 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4733 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4734 if ${lt_cv_prog_gnu_ld+:} false; then :
4735 $as_echo_n "(cached) " >&6
4737 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4738 case `$LD -v 2>&1 </dev/null` in
4739 *GNU* | *'with BFD'*)
4740 lt_cv_prog_gnu_ld=yes
4743 lt_cv_prog_gnu_ld=no
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4748 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4749 with_gnu_ld=$lt_cv_prog_gnu_ld
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4760 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4761 if ${lt_cv_path_NM+:} false; then :
4762 $as_echo_n "(cached) " >&6
4764 if test -n "$NM"; then
4765 # Let the user override the test.
4768 lt_nm_to_check="${ac_tool_prefix}nm"
4769 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4770 lt_nm_to_check="$lt_nm_to_check nm"
4772 for lt_tmp_nm in $lt_nm_to_check; do
4773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4774 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4776 test -z "$ac_dir" && ac_dir=.
4777 tmp_nm="$ac_dir/$lt_tmp_nm"
4778 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4779 # Check to see if the nm accepts a BSD-compat flag.
4780 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4781 # nm: unknown option "B" ignored
4782 # Tru64's nm complains that /dev/null is an invalid object file
4783 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4784 */dev/null* | *'Invalid file or object type'*)
4785 lt_cv_path_NM="$tmp_nm -B"
4789 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4791 lt_cv_path_NM="$tmp_nm -p"
4795 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4796 continue # so that we can try to find one that supports BSD flags
4805 : ${lt_cv_path_NM=no}
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4809 $as_echo "$lt_cv_path_NM" >&6; }
4810 if test "$lt_cv_path_NM" != "no"; then
4813 # Didn't find any BSD compatible name lister, look for dumpbin.
4814 if test -n "$DUMPBIN"; then :
4815 # Let the user override the test.
4817 if test -n "$ac_tool_prefix"; then
4818 for ac_prog in dumpbin "link -dump"
4820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_prog_DUMPBIN+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 if test -n "$DUMPBIN"; then
4828 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 DUMPBIN=$ac_cv_prog_DUMPBIN
4848 if test -n "$DUMPBIN"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4850 $as_echo "$DUMPBIN" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4857 test -n "$DUMPBIN" && break
4860 if test -z "$DUMPBIN"; then
4861 ac_ct_DUMPBIN=$DUMPBIN
4862 for ac_prog in dumpbin "link -dump"
4864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4869 $as_echo_n "(cached) " >&6
4871 if test -n "$ac_ct_DUMPBIN"; then
4872 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4892 if test -n "$ac_ct_DUMPBIN"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4894 $as_echo "$ac_ct_DUMPBIN" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4901 test -n "$ac_ct_DUMPBIN" && break
4904 if test "x$ac_ct_DUMPBIN" = x; then
4907 case $cross_compiling:$ac_tool_warned in
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4913 DUMPBIN=$ac_ct_DUMPBIN
4917 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4919 DUMPBIN="$DUMPBIN -symbols"
4927 if test "$DUMPBIN" != ":"; then
4931 test -z "$NM" && NM=nm
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4939 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4940 if ${lt_cv_nm_interface+:} false; then :
4941 $as_echo_n "(cached) " >&6
4943 lt_cv_nm_interface="BSD nm"
4944 echo "int some_variable = 0;" > conftest.$ac_ext
4945 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4946 (eval "$ac_compile" 2>conftest.err)
4947 cat conftest.err >&5
4948 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4949 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4950 cat conftest.err >&5
4951 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4952 cat conftest.out >&5
4953 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4954 lt_cv_nm_interface="MS dumpbin"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4959 $as_echo "$lt_cv_nm_interface" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4962 $as_echo_n "checking whether ln -s works... " >&6; }
4964 if test "$LN_S" = "ln -s"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966 $as_echo "yes" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4969 $as_echo "no, using $LN_S" >&6; }
4972 # find the maximum length of command line arguments
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4974 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4975 if ${lt_cv_sys_max_cmd_len+:} false; then :
4976 $as_echo_n "(cached) " >&6
4983 # On DJGPP, this test can blow up pretty badly due to problems in libc
4984 # (any single argument exceeding 2000 bytes causes a buffer overrun
4985 # during glob expansion). Even if it were fixed, the result of this
4986 # check would be larger than it should be.
4987 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4991 # Under GNU Hurd, this test is not required because there is
4992 # no limit to the length of command line arguments.
4993 # Libtool will interpret -1 as no limit whatsoever
4994 lt_cv_sys_max_cmd_len=-1;
4997 cygwin* | mingw* | cegcc*)
4998 # On Win9x/ME, this test blows up -- it succeeds, but takes
4999 # about 5 minutes as the teststring grows exponentially.
5000 # Worse, since 9x/ME are not pre-emptively multitasking,
5001 # you end up with a "frozen" computer, even though with patience
5002 # the test eventually succeeds (with a max line length of 256k).
5003 # Instead, let's just punt: use the minimum linelength reported by
5004 # all of the supported platforms: 8192 (on NT/2K/XP).
5005 lt_cv_sys_max_cmd_len=8192;
5009 # On MiNT this can take a long time and run out of memory.
5010 lt_cv_sys_max_cmd_len=8192;
5014 # On AmigaOS with pdksh, this test takes hours, literally.
5015 # So we just punt and use a minimum line length of 8192.
5016 lt_cv_sys_max_cmd_len=8192;
5019 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5020 # This has been around since 386BSD, at least. Likely further.
5021 if test -x /sbin/sysctl; then
5022 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5023 elif test -x /usr/sbin/sysctl; then
5024 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5026 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5028 # And add a safety zone
5029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5034 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5035 lt_cv_sys_max_cmd_len=196608
5039 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5040 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5041 # nice to cause kernel panics so lets avoid the loop below.
5042 # First set a reasonable default.
5043 lt_cv_sys_max_cmd_len=16384
5045 if test -x /sbin/sysconfig; then
5046 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5047 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5052 lt_cv_sys_max_cmd_len=102400
5054 sysv5* | sco5v6* | sysv4.2uw2*)
5055 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5056 if test -n "$kargmax"; then
5057 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5059 lt_cv_sys_max_cmd_len=32768
5063 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5064 if test -n "$lt_cv_sys_max_cmd_len"; then
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5068 # Make teststring a little bigger before we do anything with it.
5069 # a 1K string should be a reasonable start.
5070 for i in 1 2 3 4 5 6 7 8 ; do
5071 teststring=$teststring$teststring
5073 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5074 # If test is not a shell built-in, we'll probably end up computing a
5075 # maximum length that is only half of the actual maximum length, but
5077 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5078 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5079 test $i != 17 # 1/2 MB should be enough
5082 teststring=$teststring$teststring
5084 # Only check the string length outside the loop.
5085 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5087 # Add a significant safety factor because C++ compilers can tack on
5088 # massive amounts of additional arguments before passing them to the
5089 # linker. It appears as though 1/2 is a usable value.
5090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5097 if test -n $lt_cv_sys_max_cmd_len ; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5099 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5102 $as_echo "none" >&6; }
5104 max_cmd_len=$lt_cv_sys_max_cmd_len
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5116 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5117 # Try some XSI features
5120 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5122 && eval 'test $(( 1 + 1 )) -eq 2 \
5123 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5126 $as_echo "$xsi_shell" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5130 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5132 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5134 && lt_shell_append=yes
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5136 $as_echo "$lt_shell_append" >&6; }
5139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5149 # test EBCDIC or ASCII
5150 case `echo X|tr X '\101'` in
5151 A) # ASCII based system
5152 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5153 lt_SP2NL='tr \040 \012'
5154 lt_NL2SP='tr \015\012 \040\040'
5156 *) # EBCDIC based system
5157 lt_SP2NL='tr \100 \n'
5158 lt_NL2SP='tr \r\n \100\100'
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5171 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5172 if ${lt_cv_to_host_file_cmd+:} false; then :
5173 $as_echo_n "(cached) " >&6
5178 *-*-mingw* ) # actually msys
5179 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5182 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5184 * ) # otherwise, assume *nix
5185 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5191 *-*-mingw* ) # actually msys
5192 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5195 lt_cv_to_host_file_cmd=func_convert_file_noop
5197 * ) # otherwise, assume *nix
5198 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5202 * ) # unhandled hosts (and "normal" native builds)
5203 lt_cv_to_host_file_cmd=func_convert_file_noop
5209 to_host_file_cmd=$lt_cv_to_host_file_cmd
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5211 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5218 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5219 if ${lt_cv_to_tool_file_cmd+:} false; then :
5220 $as_echo_n "(cached) " >&6
5222 #assume ordinary cross tools, or native build.
5223 lt_cv_to_tool_file_cmd=func_convert_file_noop
5227 *-*-mingw* ) # actually msys
5228 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5236 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5238 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5245 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5246 if ${lt_cv_ld_reload_flag+:} false; then :
5247 $as_echo_n "(cached) " >&6
5249 lt_cv_ld_reload_flag='-r'
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5252 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5253 reload_flag=$lt_cv_ld_reload_flag
5254 case $reload_flag in
5256 *) reload_flag=" $reload_flag" ;;
5258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5260 cygwin* | mingw* | pw32* | cegcc*)
5261 if test "$GCC" != yes; then
5266 if test "$GCC" = yes; then
5267 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5284 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_OBJDUMP+:} false; then :
5288 $as_echo_n "(cached) " >&6
5290 if test -n "$OBJDUMP"; then
5291 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 OBJDUMP=$ac_cv_prog_OBJDUMP
5311 if test -n "$OBJDUMP"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5313 $as_echo "$OBJDUMP" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5321 if test -z "$ac_cv_prog_OBJDUMP"; then
5322 ac_ct_OBJDUMP=$OBJDUMP
5323 # Extract the first word of "objdump", so it can be a program name with args.
5324 set dummy objdump; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5328 $as_echo_n "(cached) " >&6
5330 if test -n "$ac_ct_OBJDUMP"; then
5331 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5351 if test -n "$ac_ct_OBJDUMP"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5353 $as_echo "$ac_ct_OBJDUMP" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5359 if test "x$ac_ct_OBJDUMP" = x; then
5362 case $cross_compiling:$ac_tool_warned in
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5368 OBJDUMP=$ac_ct_OBJDUMP
5371 OBJDUMP="$ac_cv_prog_OBJDUMP"
5374 test -z "$OBJDUMP" && OBJDUMP=objdump
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5385 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5386 if ${lt_cv_deplibs_check_method+:} false; then :
5387 $as_echo_n "(cached) " >&6
5389 lt_cv_file_magic_cmd='$MAGIC_CMD'
5390 lt_cv_file_magic_test_file=
5391 lt_cv_deplibs_check_method='unknown'
5392 # Need to set the preceding variable on all platforms that support
5393 # interlibrary dependencies.
5394 # 'none' -- dependencies not supported.
5395 # `unknown' -- same as none, but documents that we really don't know.
5396 # 'pass_all' -- all dependencies passed with no checks.
5397 # 'test_compile' -- check by making test program.
5398 # 'file_magic [[regex]]' -- check by looking for files in library path
5399 # which responds to the $file_magic_cmd with a given extended regex.
5400 # If you have `file' or equivalent on your system and you're not sure
5401 # whether `pass_all' will *always* work, you probably want this one.
5405 lt_cv_deplibs_check_method=pass_all
5409 lt_cv_deplibs_check_method=pass_all
5413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5414 lt_cv_file_magic_cmd='/usr/bin/file -L'
5415 lt_cv_file_magic_test_file=/shlib/libc.so
5419 # func_win32_libid is a shell function defined in ltmain.sh
5420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5421 lt_cv_file_magic_cmd='func_win32_libid'
5425 # Base MSYS/MinGW do not provide the 'file' command needed by
5426 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5427 # unless we find 'file', for example because we are cross-compiling.
5428 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5429 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd='func_win32_libid'
5433 # Keep this pattern in sync with the one in func_win32_libid.
5434 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5435 lt_cv_file_magic_cmd='$OBJDUMP -f'
5440 # use the weaker test based on 'objdump'. See mingw*.
5441 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5442 lt_cv_file_magic_cmd='$OBJDUMP -f'
5445 darwin* | rhapsody*)
5446 lt_cv_deplibs_check_method=pass_all
5449 freebsd* | dragonfly*)
5450 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5453 # Not sure whether the presence of OpenBSD here was a mistake.
5454 # Let's accept both of them until this is cleared up.
5455 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5456 lt_cv_file_magic_cmd=/usr/bin/file
5457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5461 lt_cv_deplibs_check_method=pass_all
5466 lt_cv_deplibs_check_method=pass_all
5470 lt_cv_deplibs_check_method=pass_all
5473 hpux10.20* | hpux11*)
5474 lt_cv_file_magic_cmd=/usr/bin/file
5477 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5478 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5481 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]'
5482 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5485 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5486 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5492 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5496 irix5* | irix6* | nonstopux*)
5498 *-32|*"-32 ") libmagic=32-bit;;
5499 *-n32|*"-n32 ") libmagic=N32;;
5500 *-64|*"-64 ") libmagic=64-bit;;
5501 *) libmagic=never-match;;
5503 lt_cv_deplibs_check_method=pass_all
5506 # This must be Linux ELF.
5507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5508 lt_cv_deplibs_check_method=pass_all
5512 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5521 lt_cv_file_magic_cmd=/usr/bin/file
5522 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5526 lt_cv_deplibs_check_method=pass_all
5530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5537 osf3* | osf4* | osf5*)
5538 lt_cv_deplibs_check_method=pass_all
5542 lt_cv_deplibs_check_method=pass_all
5546 lt_cv_deplibs_check_method=pass_all
5549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550 lt_cv_deplibs_check_method=pass_all
5554 case $host_vendor in
5556 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]'
5557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5560 lt_cv_deplibs_check_method=pass_all
5563 lt_cv_file_magic_cmd='/bin/file'
5564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5567 lt_cv_file_magic_cmd='/bin/file'
5568 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5569 lt_cv_file_magic_test_file=/lib/libc.so
5572 lt_cv_deplibs_check_method=pass_all
5575 lt_cv_deplibs_check_method=pass_all
5581 lt_cv_deplibs_check_method=pass_all
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5587 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5591 if test "$build" = "$host"; then
5594 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5597 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5603 file_magic_cmd=$lt_cv_file_magic_cmd
5604 deplibs_check_method=$lt_cv_deplibs_check_method
5605 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5628 if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_DLLTOOL+:} false; then :
5634 $as_echo_n "(cached) " >&6
5636 if test -n "$DLLTOOL"; then
5637 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 DLLTOOL=$ac_cv_prog_DLLTOOL
5657 if test -n "$DLLTOOL"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5659 $as_echo "$DLLTOOL" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5667 if test -z "$ac_cv_prog_DLLTOOL"; then
5668 ac_ct_DLLTOOL=$DLLTOOL
5669 # Extract the first word of "dlltool", so it can be a program name with args.
5670 set dummy dlltool; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5674 $as_echo_n "(cached) " >&6
5676 if test -n "$ac_ct_DLLTOOL"; then
5677 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5697 if test -n "$ac_ct_DLLTOOL"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5699 $as_echo "$ac_ct_DLLTOOL" >&6; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5705 if test "x$ac_ct_DLLTOOL" = x; then
5708 case $cross_compiling:$ac_tool_warned in
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712 ac_tool_warned=yes ;;
5714 DLLTOOL=$ac_ct_DLLTOOL
5717 DLLTOOL="$ac_cv_prog_DLLTOOL"
5720 test -z "$DLLTOOL" && DLLTOOL=dlltool
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5732 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5733 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5734 $as_echo_n "(cached) " >&6
5736 lt_cv_sharedlib_from_linklib_cmd='unknown'
5739 cygwin* | mingw* | pw32* | cegcc*)
5740 # two different shell functions defined in ltmain.sh
5741 # decide which to use based on capabilities of $DLLTOOL
5742 case `$DLLTOOL --help 2>&1` in
5743 *--identify-strict*)
5744 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5747 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5752 # fallback: assume linklib IS sharedlib
5753 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5759 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5760 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5761 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5770 if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if ${ac_cv_prog_AR+:} false; then :
5778 $as_echo_n "(cached) " >&6
5780 if test -n "$AR"; then
5781 ac_cv_prog_AR="$AR" # Let the user override the test.
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 if test -n "$AR"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5803 $as_echo "$AR" >&6; }
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5810 test -n "$AR" && break
5813 if test -z "$AR"; then
5817 # Extract the first word of "$ac_prog", so it can be a program name with args.
5818 set dummy $ac_prog; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5822 $as_echo_n "(cached) " >&6
5824 if test -n "$ac_ct_AR"; then
5825 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 ac_cv_prog_ac_ct_AR="$ac_prog"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5845 if test -n "$ac_ct_AR"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5847 $as_echo "$ac_ct_AR" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5854 test -n "$ac_ct_AR" && break
5857 if test "x$ac_ct_AR" = x; then
5860 case $cross_compiling:$ac_tool_warned in
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5864 ac_tool_warned=yes ;;
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5884 $as_echo_n "checking for archiver @FILE support... " >&6; }
5885 if ${lt_cv_ar_at_file+:} false; then :
5886 $as_echo_n "(cached) " >&6
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901 echo conftest.$ac_objext > conftest.lst
5902 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5904 (eval $lt_ar_try) 2>&5
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; }
5908 if test "$ac_status" -eq 0; then
5909 # Ensure the archiver fails upon bogus file names.
5910 rm -f conftest.$ac_objext libconftest.a
5911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5912 (eval $lt_ar_try) 2>&5
5914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915 test $ac_status = 0; }
5916 if test "$ac_status" -ne 0; then
5920 rm -f conftest.* libconftest.a
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5927 $as_echo "$lt_cv_ar_at_file" >&6; }
5929 if test "x$lt_cv_ar_at_file" = xno; then
5932 archiver_list_spec=$lt_cv_ar_at_file
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}strip; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_STRIP+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 if test -n "$STRIP"; then
5950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 STRIP=$ac_cv_prog_STRIP
5970 if test -n "$STRIP"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5972 $as_echo "$STRIP" >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5980 if test -z "$ac_cv_prog_STRIP"; then
5982 # Extract the first word of "strip", so it can be a program name with args.
5983 set dummy strip; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5987 $as_echo_n "(cached) " >&6
5989 if test -n "$ac_ct_STRIP"; then
5990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_ac_ct_STRIP="strip"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6010 if test -n "$ac_ct_STRIP"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6012 $as_echo "$ac_ct_STRIP" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6018 if test "x$ac_ct_STRIP" = x; then
6021 case $cross_compiling:$ac_tool_warned in
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6030 STRIP="$ac_cv_prog_STRIP"
6033 test -z "$STRIP" && STRIP=:
6040 if test -n "$ac_tool_prefix"; then
6041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_RANLIB+:} false; then :
6046 $as_echo_n "(cached) " >&6
6048 if test -n "$RANLIB"; then
6049 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 RANLIB=$ac_cv_prog_RANLIB
6069 if test -n "$RANLIB"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6071 $as_echo "$RANLIB" >&6; }
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6079 if test -z "$ac_cv_prog_RANLIB"; then
6080 ac_ct_RANLIB=$RANLIB
6081 # Extract the first word of "ranlib", so it can be a program name with args.
6082 set dummy ranlib; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6086 $as_echo_n "(cached) " >&6
6088 if test -n "$ac_ct_RANLIB"; then
6089 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098 ac_cv_prog_ac_ct_RANLIB="ranlib"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6109 if test -n "$ac_ct_RANLIB"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6111 $as_echo "$ac_ct_RANLIB" >&6; }
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6117 if test "x$ac_ct_RANLIB" = x; then
6120 case $cross_compiling:$ac_tool_warned in
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6126 RANLIB=$ac_ct_RANLIB
6129 RANLIB="$ac_cv_prog_RANLIB"
6132 test -z "$RANLIB" && RANLIB=:
6139 # Determine commands to create old-style static archives.
6140 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6141 old_postinstall_cmds='chmod 644 $oldlib'
6142 old_postuninstall_cmds=
6144 if test -n "$RANLIB"; then
6147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6150 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6153 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6158 lock_old_archive_extraction=yes ;;
6160 lock_old_archive_extraction=no ;;
6201 # If no C compiler was specified, use CC.
6204 # If no C compiler flags were specified, use CFLAGS.
6205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6207 # Allow CC to be a program name with arguments.
6211 # Check for command to grab the raw symbol name followed by C symbol from nm.
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6213 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6214 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6215 $as_echo_n "(cached) " >&6
6218 # These are sane defaults that work on at least a few old systems.
6219 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6221 # Character class describing NM global symbol codes.
6222 symcode='[BCDEGRST]'
6224 # Regexp to match symbols that can be accessed directly from C.
6225 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6227 # Define system-specific variables.
6232 cygwin* | mingw* | pw32* | cegcc*)
6233 symcode='[ABCDGISTW]'
6236 if test "$host_cpu" = ia64; then
6237 symcode='[ABCDEGRST]'
6241 symcode='[BCDEGRST]'
6244 symcode='[BCDEGQRST]'
6255 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6263 # If we're using GNU nm, then use its standard symbol codes.
6264 case `$NM -V 2>&1` in
6265 *GNU* | *'with BFD'*)
6266 symcode='[ABCDGIRSTW]' ;;
6269 # Transform an extracted symbol line into a proper C declaration.
6270 # Some systems (esp. on ia64) link data and code symbols differently,
6271 # so use this general approach.
6272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6274 # Transform an extracted symbol line into symbol name and symbol address
6275 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6276 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6278 # Handle CRLF in mingw tool chain
6282 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6286 # Try without a prefix underscore, then with it.
6287 for ac_symprfx in "" "_"; do
6289 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290 symxfrm="\\1 $ac_symprfx\\2 \\2"
6292 # Write the raw and C identifiers.
6293 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6294 # Fake it for dumpbin and say T for any non-static function
6295 # and D for any global variable.
6296 # Also find C++ and __fastcall symbols from MSVC++,
6297 # which start with @ or ?.
6298 lt_cv_sys_global_symbol_pipe="$AWK '"\
6299 " {last_section=section; section=\$ 3};"\
6300 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6301 " \$ 0!~/External *\|/{next};"\
6302 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6303 " {if(hide[section]) next};"\
6304 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6305 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6306 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6307 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6308 " ' prfx=^$ac_symprfx"
6310 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6312 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6314 # Check to see that the pipe works correctly.
6318 cat > conftest.$ac_ext <<_LT_EOF
6323 void nm_test_func(void);
6324 void nm_test_func(void){}
6328 int main(){nm_test_var='a';nm_test_func();return(0);}
6331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332 (eval $ac_compile) 2>&5
6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335 test $ac_status = 0; }; then
6336 # Now try to grab the symbols.
6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6339 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; } && test -s "$nlist"; then
6343 # Try sorting and uniquifying the output.
6344 if sort "$nlist" | uniq > "$nlist"T; then
6345 mv -f "$nlist"T "$nlist"
6350 # Make sure that we snagged all the symbols we need.
6351 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6352 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6353 cat <<_LT_EOF > conftest.$ac_ext
6354 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6355 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6356 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6357 relocations are performed -- see ld's documentation on pseudo-relocs. */
6358 # define LT@&t@_DLSYM_CONST
6359 #elif defined(__osf__)
6360 /* This system does not cope well with relocations in const data. */
6361 # define LT@&t@_DLSYM_CONST
6363 # define LT@&t@_DLSYM_CONST const
6371 # Now generate the symbol file.
6372 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6374 cat <<_LT_EOF >> conftest.$ac_ext
6376 /* The mapping between symbol names and symbols. */
6377 LT@&t@_DLSYM_CONST struct {
6381 lt__PROGRAM__LTX_preloaded_symbols[] =
6383 { "@PROGRAM@", (void *) 0 },
6385 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6386 cat <<\_LT_EOF >> conftest.$ac_ext
6390 /* This works around a problem in FreeBSD linker */
6391 #ifdef FREEBSD_WORKAROUND
6392 static const void *lt_preloaded_setup() {
6393 return lt__PROGRAM__LTX_preloaded_symbols;
6401 # Now try linking the two files.
6402 mv conftest.$ac_objext conftstm.$ac_objext
6403 lt_globsym_save_LIBS=$LIBS
6404 lt_globsym_save_CFLAGS=$CFLAGS
6405 LIBS="conftstm.$ac_objext"
6406 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6408 (eval $ac_link) 2>&5
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6414 LIBS=$lt_globsym_save_LIBS
6415 CFLAGS=$lt_globsym_save_CFLAGS
6417 echo "cannot find nm_test_func in $nlist" >&5
6420 echo "cannot find nm_test_var in $nlist" >&5
6423 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6426 echo "$progname: failed program was:" >&5
6427 cat conftest.$ac_ext >&5
6429 rm -rf conftest* conftst*
6431 # Do not use the global_symbol_pipe unless it works.
6432 if test "$pipe_works" = yes; then
6435 lt_cv_sys_global_symbol_pipe=
6441 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6442 lt_cv_sys_global_symbol_to_cdecl=
6444 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6446 $as_echo "failed" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6449 $as_echo "ok" >&6; }
6452 # Response file support.
6453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6454 nm_file_list_spec='@'
6455 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6456 nm_file_list_spec='@'
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6486 $as_echo_n "checking for sysroot... " >&6; }
6488 @%:@ Check whether --with-sysroot was given.
6489 if test "${with_sysroot+set}" = set; then :
6490 withval=$with_sysroot;
6497 case ${with_sysroot} in #(
6499 if test "$GCC" = yes; then
6500 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6504 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6510 $as_echo "${with_sysroot}" >&6; }
6511 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6516 $as_echo "${lt_sysroot:-no}" >&6; }
6522 @%:@ Check whether --enable-libtool-lock was given.
6523 if test "${enable_libtool_lock+set}" = set; then :
6524 enableval=$enable_libtool_lock;
6527 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6529 # Some flags need to be propagated to the compiler or linker for good
6533 # Find out which ABI we are using.
6534 echo 'int i;' > conftest.$ac_ext
6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536 (eval $ac_compile) 2>&5
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }; then
6540 case `/usr/bin/file conftest.$ac_objext` in
6552 # Find out which ABI we are using.
6553 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6555 (eval $ac_compile) 2>&5
6557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558 test $ac_status = 0; }; then
6559 if test "$lt_cv_prog_gnu_ld" = yes; then
6560 case `/usr/bin/file conftest.$ac_objext` in
6562 LD="${LD-ld} -melf32bsmip"
6565 LD="${LD-ld} -melf32bmipn32"
6568 LD="${LD-ld} -melf64bmip"
6572 case `/usr/bin/file conftest.$ac_objext` in
6588 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6589 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6590 # Find out which ABI we are using.
6591 echo 'int i;' > conftest.$ac_ext
6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593 (eval $ac_compile) 2>&5
6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596 test $ac_status = 0; }; then
6597 case `/usr/bin/file conftest.o` in
6600 x86_64-*kfreebsd*-gnu)
6601 LD="${LD-ld} -m elf_i386_fbsd"
6604 LD="${LD-ld} -m elf_i386"
6606 ppc64-*linux*|powerpc64-*linux*)
6607 LD="${LD-ld} -m elf32ppclinux"
6610 LD="${LD-ld} -m elf_s390"
6613 LD="${LD-ld} -m elf32_sparc"
6619 x86_64-*kfreebsd*-gnu)
6620 LD="${LD-ld} -m elf_x86_64_fbsd"
6623 LD="${LD-ld} -m elf_x86_64"
6625 ppc*-*linux*|powerpc*-*linux*)
6626 LD="${LD-ld} -m elf64ppc"
6628 s390*-*linux*|s390*-*tpf*)
6629 LD="${LD-ld} -m elf64_s390"
6632 LD="${LD-ld} -m elf64_sparc"
6642 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6643 SAVE_CFLAGS="$CFLAGS"
6644 CFLAGS="$CFLAGS -belf"
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6646 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6647 if ${lt_cv_cc_needs_belf+:} false; then :
6648 $as_echo_n "(cached) " >&6
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6667 if ac_fn_c_try_link "$LINENO"; then :
6668 lt_cv_cc_needs_belf=yes
6670 lt_cv_cc_needs_belf=no
6672 rm -f core conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
6675 ac_cpp='$CPP $CPPFLAGS'
6676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6682 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6683 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6684 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6685 CFLAGS="$SAVE_CFLAGS"
6689 # Find out which ABI we are using.
6690 echo 'int i;' > conftest.$ac_ext
6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692 (eval $ac_compile) 2>&5
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }; then
6696 case `/usr/bin/file conftest.o` in
6698 case $lt_cv_prog_gnu_ld in
6699 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6701 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6713 need_locks="$enable_libtool_lock"
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}mt; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$MANIFEST_TOOL"; then
6724 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6744 if test -n "$MANIFEST_TOOL"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6746 $as_echo "$MANIFEST_TOOL" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6754 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6755 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6756 # Extract the first word of "mt", so it can be a program name with args.
6757 set dummy mt; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 if test -n "$ac_ct_MANIFEST_TOOL"; then
6764 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6784 if test -n "$ac_ct_MANIFEST_TOOL"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6786 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6792 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6795 case $cross_compiling:$ac_tool_warned in
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6799 ac_tool_warned=yes ;;
6801 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6804 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6807 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6809 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6810 if ${lt_cv_path_mainfest_tool+:} false; then :
6811 $as_echo_n "(cached) " >&6
6813 lt_cv_path_mainfest_tool=no
6814 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6815 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6816 cat conftest.err >&5
6817 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6818 lt_cv_path_mainfest_tool=yes
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6823 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6824 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6834 rhapsody* | darwin*)
6835 if test -n "$ac_tool_prefix"; then
6836 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 if test -n "$DSYMUTIL"; then
6844 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6864 if test -n "$DSYMUTIL"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6866 $as_echo "$DSYMUTIL" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6874 if test -z "$ac_cv_prog_DSYMUTIL"; then
6875 ac_ct_DSYMUTIL=$DSYMUTIL
6876 # Extract the first word of "dsymutil", so it can be a program name with args.
6877 set dummy dsymutil; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 if test -n "$ac_ct_DSYMUTIL"; then
6884 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6904 if test -n "$ac_ct_DSYMUTIL"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6906 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6912 if test "x$ac_ct_DSYMUTIL" = x; then
6915 case $cross_compiling:$ac_tool_warned in
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6921 DSYMUTIL=$ac_ct_DSYMUTIL
6924 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6927 if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if ${ac_cv_prog_NMEDIT+:} false; then :
6933 $as_echo_n "(cached) " >&6
6935 if test -n "$NMEDIT"; then
6936 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 NMEDIT=$ac_cv_prog_NMEDIT
6956 if test -n "$NMEDIT"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6958 $as_echo "$NMEDIT" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6966 if test -z "$ac_cv_prog_NMEDIT"; then
6967 ac_ct_NMEDIT=$NMEDIT
6968 # Extract the first word of "nmedit", so it can be a program name with args.
6969 set dummy nmedit; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6973 $as_echo_n "(cached) " >&6
6975 if test -n "$ac_ct_NMEDIT"; then
6976 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6996 if test -n "$ac_ct_NMEDIT"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6998 $as_echo "$ac_ct_NMEDIT" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7004 if test "x$ac_ct_NMEDIT" = x; then
7007 case $cross_compiling:$ac_tool_warned in
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011 ac_tool_warned=yes ;;
7013 NMEDIT=$ac_ct_NMEDIT
7016 NMEDIT="$ac_cv_prog_NMEDIT"
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_LIPO+:} false; then :
7025 $as_echo_n "(cached) " >&6
7027 if test -n "$LIPO"; then
7028 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 LIPO=$ac_cv_prog_LIPO
7048 if test -n "$LIPO"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7050 $as_echo "$LIPO" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7058 if test -z "$ac_cv_prog_LIPO"; then
7060 # Extract the first word of "lipo", so it can be a program name with args.
7061 set dummy lipo; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7065 $as_echo_n "(cached) " >&6
7067 if test -n "$ac_ct_LIPO"; then
7068 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_ac_ct_LIPO="lipo"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7088 if test -n "$ac_ct_LIPO"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7090 $as_echo "$ac_ct_LIPO" >&6; }
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7096 if test "x$ac_ct_LIPO" = x; then
7099 case $cross_compiling:$ac_tool_warned in
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7108 LIPO="$ac_cv_prog_LIPO"
7111 if test -n "$ac_tool_prefix"; then
7112 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}otool; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_prog_OTOOL+:} false; then :
7117 $as_echo_n "(cached) " >&6
7119 if test -n "$OTOOL"; then
7120 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 OTOOL=$ac_cv_prog_OTOOL
7140 if test -n "$OTOOL"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7142 $as_echo "$OTOOL" >&6; }
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7150 if test -z "$ac_cv_prog_OTOOL"; then
7152 # Extract the first word of "otool", so it can be a program name with args.
7153 set dummy otool; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7157 $as_echo_n "(cached) " >&6
7159 if test -n "$ac_ct_OTOOL"; then
7160 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_ac_ct_OTOOL="otool"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7180 if test -n "$ac_ct_OTOOL"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7182 $as_echo "$ac_ct_OTOOL" >&6; }
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7188 if test "x$ac_ct_OTOOL" = x; then
7191 case $cross_compiling:$ac_tool_warned in
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195 ac_tool_warned=yes ;;
7200 OTOOL="$ac_cv_prog_OTOOL"
7203 if test -n "$ac_tool_prefix"; then
7204 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7205 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_OTOOL64+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 if test -n "$OTOOL64"; then
7212 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 OTOOL64=$ac_cv_prog_OTOOL64
7232 if test -n "$OTOOL64"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7234 $as_echo "$OTOOL64" >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7242 if test -z "$ac_cv_prog_OTOOL64"; then
7243 ac_ct_OTOOL64=$OTOOL64
7244 # Extract the first word of "otool64", so it can be a program name with args.
7245 set dummy otool64; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7249 $as_echo_n "(cached) " >&6
7251 if test -n "$ac_ct_OTOOL64"; then
7252 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_prog_ac_ct_OTOOL64="otool64"
7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7272 if test -n "$ac_ct_OTOOL64"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7274 $as_echo "$ac_ct_OTOOL64" >&6; }
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7280 if test "x$ac_ct_OTOOL64" = x; then
7283 case $cross_compiling:$ac_tool_warned in
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287 ac_tool_warned=yes ;;
7289 OTOOL64=$ac_ct_OTOOL64
7292 OTOOL64="$ac_cv_prog_OTOOL64"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7322 $as_echo_n "checking for -single_module linker flag... " >&6; }
7323 if ${lt_cv_apple_cc_single_mod+:} false; then :
7324 $as_echo_n "(cached) " >&6
7326 lt_cv_apple_cc_single_mod=no
7327 if test -z "${LT_MULTI_MODULE}"; then
7328 # By default we will add the -single_module flag. You can override
7329 # by either setting the environment variable LT_MULTI_MODULE
7330 # non-empty at configure time, or by adding -multi_module to the
7332 rm -rf libconftest.dylib*
7333 echo "int foo(void){return 1;}" > conftest.c
7334 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7335 -dynamiclib -Wl,-single_module conftest.c" >&5
7336 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7337 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7339 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7340 lt_cv_apple_cc_single_mod=yes
7342 cat conftest.err >&5
7344 rm -rf libconftest.dylib*
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7349 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7351 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7352 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 lt_cv_ld_exported_symbols_list=no
7356 save_LDFLAGS=$LDFLAGS
7357 echo "_main" > conftest.sym
7358 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7370 if ac_fn_c_try_link "$LINENO"; then :
7371 lt_cv_ld_exported_symbols_list=yes
7373 lt_cv_ld_exported_symbols_list=no
7375 rm -f core conftest.err conftest.$ac_objext \
7376 conftest$ac_exeext conftest.$ac_ext
7377 LDFLAGS="$save_LDFLAGS"
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7381 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7383 $as_echo_n "checking for -force_load linker flag... " >&6; }
7384 if ${lt_cv_ld_force_load+:} false; then :
7385 $as_echo_n "(cached) " >&6
7387 lt_cv_ld_force_load=no
7388 cat > conftest.c << _LT_EOF
7389 int forced_loaded() { return 2;}
7391 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7392 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7393 echo "$AR cru libconftest.a conftest.o" >&5
7394 $AR cru libconftest.a conftest.o 2>&5
7395 echo "$RANLIB libconftest.a" >&5
7396 $RANLIB libconftest.a 2>&5
7397 cat > conftest.c << _LT_EOF
7398 int main() { return 0;}
7400 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7401 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7403 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7404 lt_cv_ld_force_load=yes
7406 cat conftest.err >&5
7408 rm -f conftest.err libconftest.a conftest conftest.c
7409 rm -rf conftest.dSYM
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7413 $as_echo "$lt_cv_ld_force_load" >&6; }
7415 rhapsody* | darwin1.[012])
7416 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7418 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7419 darwin*) # darwin 5.x on
7420 # if running on 10.5 or later, the deployment target defaults
7421 # to the OS version, if on x86, and 10.4, the deployment
7422 # target defaults to 10.4. Don't you love it?
7423 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7424 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7425 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7427 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7429 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7433 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7434 _lt_dar_single_mod='$single_module'
7436 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7437 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7439 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7441 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7442 _lt_dsymutil='~$DSYMUTIL $lib || :'
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7456 # On Suns, sometimes $CPP names a directory.
7457 if test -n "$CPP" && test -d "$CPP"; then
7460 if test -z "$CPP"; then
7461 if ${ac_cv_prog_CPP+:} false; then :
7462 $as_echo_n "(cached) " >&6
7464 # Double quotes because CPP needs to be expanded
7465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7468 for ac_c_preproc_warn_flag in '' yes
7470 # Use a header file that comes with gcc, so configuring glibc
7471 # with a fresh cross-compiler works.
7472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7473 # <limits.h> exists even on freestanding compilers.
7474 # On the NeXT, cc -E runs the code through the compiler's parser,
7475 # not just through cpp. "Syntax error" is here to catch this case.
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7479 @%:@ include <limits.h>
7481 @%:@ include <assert.h>
7485 if ac_fn_c_try_cpp "$LINENO"; then :
7488 # Broken: fails on valid input.
7491 rm -f conftest.err conftest.i conftest.$ac_ext
7493 # OK, works on sane cases. Now check whether nonexistent headers
7494 # can be detected and how.
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 @%:@include <ac_nonexistent.h>
7499 if ac_fn_c_try_cpp "$LINENO"; then :
7500 # Broken: success on invalid input.
7503 # Passes both tests.
7507 rm -f conftest.err conftest.i conftest.$ac_ext
7510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7511 rm -f conftest.i conftest.err conftest.$ac_ext
7512 if $ac_preproc_ok; then :
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7525 $as_echo "$CPP" >&6; }
7527 for ac_c_preproc_warn_flag in '' yes
7529 # Use a header file that comes with gcc, so configuring glibc
7530 # with a fresh cross-compiler works.
7531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532 # <limits.h> exists even on freestanding compilers.
7533 # On the NeXT, cc -E runs the code through the compiler's parser,
7534 # not just through cpp. "Syntax error" is here to catch this case.
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7538 @%:@ include <limits.h>
7540 @%:@ include <assert.h>
7544 if ac_fn_c_try_cpp "$LINENO"; then :
7547 # Broken: fails on valid input.
7550 rm -f conftest.err conftest.i conftest.$ac_ext
7552 # OK, works on sane cases. Now check whether nonexistent headers
7553 # can be detected and how.
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 @%:@include <ac_nonexistent.h>
7558 if ac_fn_c_try_cpp "$LINENO"; then :
7559 # Broken: success on invalid input.
7562 # Passes both tests.
7566 rm -f conftest.err conftest.i conftest.$ac_ext
7569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7570 rm -f conftest.i conftest.err conftest.$ac_ext
7571 if $ac_preproc_ok; then :
7574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7576 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7577 See \`config.log' for more details" "$LINENO" 5; }
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7588 $as_echo_n "checking for ANSI C header files... " >&6; }
7589 if ${ac_cv_header_stdc+:} false; then :
7590 $as_echo_n "(cached) " >&6
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7607 if ac_fn_c_try_compile "$LINENO"; then :
7608 ac_cv_header_stdc=yes
7610 ac_cv_header_stdc=no
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614 if test $ac_cv_header_stdc = yes; then
7615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7622 $EGREP "memchr" >/dev/null 2>&1; then :
7625 ac_cv_header_stdc=no
7631 if test $ac_cv_header_stdc = yes; then
7632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7639 $EGREP "free" >/dev/null 2>&1; then :
7642 ac_cv_header_stdc=no
7648 if test $ac_cv_header_stdc = yes; then
7649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7650 if test "$cross_compiling" = yes; then :
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7657 #if ((' ' & 0x0FF) == 0x020)
7658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7661 # define ISLOWER(c) \
7662 (('a' <= (c) && (c) <= 'i') \
7663 || ('j' <= (c) && (c) <= 'r') \
7664 || ('s' <= (c) && (c) <= 'z'))
7665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7673 for (i = 0; i < 256; i++)
7674 if (XOR (islower (i), ISLOWER (i))
7675 || toupper (i) != TOUPPER (i))
7680 if ac_fn_c_try_run "$LINENO"; then :
7683 ac_cv_header_stdc=no
7685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7686 conftest.$ac_objext conftest.beam conftest.$ac_ext
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7692 $as_echo "$ac_cv_header_stdc" >&6; }
7693 if test $ac_cv_header_stdc = yes; then
7695 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7700 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7701 inttypes.h stdint.h unistd.h
7703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7707 cat >>confdefs.h <<_ACEOF
7708 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7716 for ac_header in dlfcn.h
7718 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7720 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7721 cat >>confdefs.h <<_ACEOF
7722 @%:@define HAVE_DLFCN_H 1
7732 func_stripname_cnf ()
7735 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7736 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7738 } # func_stripname_cnf
7754 @%:@ Check whether --enable-shared was given.
7755 if test "${enable_shared+set}" = set; then :
7756 enableval=$enable_shared; p=${PACKAGE-default}
7758 yes) enable_shared=yes ;;
7759 no) enable_shared=no ;;
7762 # Look at the argument we got. We use all the common list separators.
7763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7764 for pkg in $enableval; do
7766 if test "X$pkg" = "X$p"; then
7785 @%:@ Check whether --enable-static was given.
7786 if test "${enable_static+set}" = set; then :
7787 enableval=$enable_static; p=${PACKAGE-default}
7789 yes) enable_static=yes ;;
7790 no) enable_static=no ;;
7793 # Look at the argument we got. We use all the common list separators.
7794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7795 for pkg in $enableval; do
7797 if test "X$pkg" = "X$p"; then
7817 @%:@ Check whether --with-pic was given.
7818 if test "${with_pic+set}" = set; then :
7819 withval=$with_pic; pic_mode="$withval"
7825 test -z "$pic_mode" && pic_mode=default
7833 @%:@ Check whether --enable-fast-install was given.
7834 if test "${enable_fast_install+set}" = set; then :
7835 enableval=$enable_fast_install; p=${PACKAGE-default}
7837 yes) enable_fast_install=yes ;;
7838 no) enable_fast_install=no ;;
7840 enable_fast_install=no
7841 # Look at the argument we got. We use all the common list separators.
7842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7843 for pkg in $enableval; do
7845 if test "X$pkg" = "X$p"; then
7846 enable_fast_install=yes
7853 enable_fast_install=yes
7866 # This can be used to rebuild libtool when needed
7867 LIBTOOL_DEPS="$ltmain"
7869 # Always use our own libtool.
7870 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7897 test -z "$LN_S" && LN_S="ln -s"
7912 if test -n "${ZSH_VERSION+set}" ; then
7913 setopt NO_GLOB_SUBST
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7917 $as_echo_n "checking for objdir... " >&6; }
7918 if ${lt_cv_objdir+:} false; then :
7919 $as_echo_n "(cached) " >&6
7921 rm -f .libs 2>/dev/null
7922 mkdir .libs 2>/dev/null
7923 if test -d .libs; then
7926 # MS-DOS does not allow filenames that begin with a dot.
7929 rmdir .libs 2>/dev/null
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7932 $as_echo "$lt_cv_objdir" >&6; }
7933 objdir=$lt_cv_objdir
7939 cat >>confdefs.h <<_ACEOF
7940 @%:@define LT_OBJDIR "$lt_cv_objdir/"
7948 # AIX sometimes has problems with the GCC collect2 program. For some
7949 # reason, if we set the COLLECT_NAMES environment variable, the problems
7950 # vanish in a puff of smoke.
7951 if test "X${COLLECT_NAMES+set}" != Xset; then
7953 export COLLECT_NAMES
7960 can_build_shared=yes
7962 # All known linkers require a `.a' archive for static linking (except MSVC,
7963 # which needs '.lib').
7966 with_gnu_ld="$lt_cv_prog_gnu_ld"
7969 old_CFLAGS="$CFLAGS"
7971 # Set sane defaults for various variables
7972 test -z "$CC" && CC=cc
7973 test -z "$LTCC" && LTCC=$CC
7974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7975 test -z "$LD" && LD=ld
7976 test -z "$ac_objext" && ac_objext=o
7978 for cc_temp in $compiler""; do
7980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7986 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7989 # Only perform the check for file, if the check method requires it
7990 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7991 case $deplibs_check_method in
7993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7996 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7997 $as_echo_n "(cached) " >&6
8001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8004 lt_save_MAGIC_CMD="$MAGIC_CMD"
8005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8007 for ac_dir in $ac_dummy; do
8009 test -z "$ac_dir" && ac_dir=.
8010 if test -f $ac_dir/${ac_tool_prefix}file; then
8011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8012 if test -n "$file_magic_test_file"; then
8013 case $deplibs_check_method in
8015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8018 $EGREP "$file_magic_regex" > /dev/null; then
8023 *** Warning: the command libtool uses to detect shared libraries,
8024 *** $file_magic_cmd, produces output that libtool cannot recognize.
8025 *** The result is that libtool may fail to recognize shared libraries
8026 *** as such. This will affect the creation of libtool libraries that
8027 *** depend on shared libraries, but programs linked with such libtool
8028 *** libraries will work regardless of this problem. Nevertheless, you
8029 *** may want to report the problem to your system manager and/or to
8030 *** bug-libtool@gnu.org
8040 MAGIC_CMD="$lt_save_MAGIC_CMD"
8045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8046 if test -n "$MAGIC_CMD"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8048 $as_echo "$MAGIC_CMD" >&6; }
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8058 if test -z "$lt_cv_path_MAGIC_CMD"; then
8059 if test -n "$ac_tool_prefix"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8061 $as_echo_n "checking for file... " >&6; }
8062 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8063 $as_echo_n "(cached) " >&6
8067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8070 lt_save_MAGIC_CMD="$MAGIC_CMD"
8071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8073 for ac_dir in $ac_dummy; do
8075 test -z "$ac_dir" && ac_dir=.
8076 if test -f $ac_dir/file; then
8077 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8078 if test -n "$file_magic_test_file"; then
8079 case $deplibs_check_method in
8081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8084 $EGREP "$file_magic_regex" > /dev/null; then
8089 *** Warning: the command libtool uses to detect shared libraries,
8090 *** $file_magic_cmd, produces output that libtool cannot recognize.
8091 *** The result is that libtool may fail to recognize shared libraries
8092 *** as such. This will affect the creation of libtool libraries that
8093 *** depend on shared libraries, but programs linked with such libtool
8094 *** libraries will work regardless of this problem. Nevertheless, you
8095 *** may want to report the problem to your system manager and/or to
8096 *** bug-libtool@gnu.org
8106 MAGIC_CMD="$lt_save_MAGIC_CMD"
8111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8112 if test -n "$MAGIC_CMD"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8114 $as_echo "$MAGIC_CMD" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8130 # Use C for the default configuration in the libtool script
8134 ac_cpp='$CPP $CPPFLAGS'
8135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140 # Source file extension for C test sources.
8143 # Object file extension for compiled C test sources.
8147 # Code to be used in simple compile tests
8148 lt_simple_compile_test_code="int some_variable = 0;"
8150 # Code to be used in simple link tests
8151 lt_simple_link_test_code='int main(){return(0);}'
8159 # If no C compiler was specified, use CC.
8162 # If no C compiler flags were specified, use CFLAGS.
8163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8165 # Allow CC to be a program name with arguments.
8168 # Save the default compiler, since it gets overwritten when the other
8169 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8170 compiler_DEFAULT=$CC
8172 # save warnings/boilerplate of simple test code
8173 ac_outfile=conftest.$ac_objext
8174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8176 _lt_compiler_boilerplate=`cat conftest.err`
8179 ac_outfile=conftest.$ac_objext
8180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8182 _lt_linker_boilerplate=`cat conftest.err`
8187 ## There is no encapsulation within the following macros, do not change
8188 ## the running order or otherwise move them around unless you know exactly
8189 ## what you are doing...
8190 if test -n "$compiler"; then
8192 lt_prog_compiler_no_builtin_flag=
8194 if test "$GCC" = yes; then
8195 case $cc_basename in
8197 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8199 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8203 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8204 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8205 $as_echo_n "(cached) " >&6
8207 lt_cv_prog_compiler_rtti_exceptions=no
8208 ac_outfile=conftest.$ac_objext
8209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8210 lt_compiler_flag="-fno-rtti -fno-exceptions"
8211 # Insert the option either (1) after the last *FLAGS variable, or
8212 # (2) before a word containing "conftest.", or (3) at the end.
8213 # Note that $ac_compile itself does not contain backslashes and begins
8214 # with a dollar sign (not a hyphen), so the echo should work correctly.
8215 # The option is referenced via a variable to avoid confusing sed.
8216 lt_compile=`echo "$ac_compile" | $SED \
8217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8219 -e 's:$: $lt_compiler_flag:'`
8220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8221 (eval "$lt_compile" 2>conftest.err)
8223 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 if (exit $ac_status) && test -s "$ac_outfile"; then
8226 # The compiler can only warn and ignore the option if not recognized
8227 # So say no if there are warnings other than the usual output.
8228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8230 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8231 lt_cv_prog_compiler_rtti_exceptions=yes
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8238 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8240 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8241 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8253 lt_prog_compiler_wl=
8254 lt_prog_compiler_pic=
8255 lt_prog_compiler_static=
8258 if test "$GCC" = yes; then
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_static='-static'
8264 # All AIX code is PIC.
8265 if test "$host_cpu" = ia64; then
8266 # AIX 5 now supports IA64 processor
8267 lt_prog_compiler_static='-Bstatic'
8274 # see comment about AmigaOS4 .so support
8275 lt_prog_compiler_pic='-fPIC'
8278 # FIXME: we need at least 68020 code to build shared libraries, but
8279 # adding the `-m68020' flag to GCC prevents building anything better,
8281 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8286 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8287 # PIC is the default for these OSes.
8290 mingw* | cygwin* | pw32* | os2* | cegcc*)
8291 # This hack is so that the source file can tell whether it is being
8292 # built for inclusion in a dll (and should export symbols for example).
8293 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8294 # (--disable-auto-import) libraries
8295 lt_prog_compiler_pic='-DDLL_EXPORT'
8298 darwin* | rhapsody*)
8299 # PIC is the default on this platform
8300 # Common symbols not allowed in MH_DYLIB files
8301 lt_prog_compiler_pic='-fno-common'
8305 # PIC is the default for Haiku.
8306 # The "-static" flag exists, but is broken.
8307 lt_prog_compiler_static=
8311 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8312 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8313 # sets the default TLS model and affects inlining.
8319 lt_prog_compiler_pic='-fPIC'
8325 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8326 # Instead, we relocate shared libraries at runtime.
8330 # Just because we use GCC doesn't mean we suddenly get shared libraries
8331 # on systems that don't support them.
8332 lt_prog_compiler_can_build_shared=no
8337 # QNX uses GNU C++, but need to define -shared option too, otherwise
8339 lt_prog_compiler_pic='-fPIC -shared'
8343 if test -d /usr/nec; then
8344 lt_prog_compiler_pic=-Kconform_pic
8349 lt_prog_compiler_pic='-fPIC'
8353 case $cc_basename in
8354 nvcc*) # Cuda Compiler Driver 2.2
8355 lt_prog_compiler_wl='-Xlinker '
8356 lt_prog_compiler_pic='-Xcompiler -fPIC'
8360 # PORTME Check for flag to pass linker flags through the system compiler.
8363 lt_prog_compiler_wl='-Wl,'
8364 if test "$host_cpu" = ia64; then
8365 # AIX 5 now supports IA64 processor
8366 lt_prog_compiler_static='-Bstatic'
8368 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8372 mingw* | cygwin* | pw32* | os2* | cegcc*)
8373 # This hack is so that the source file can tell whether it is being
8374 # built for inclusion in a dll (and should export symbols for example).
8375 lt_prog_compiler_pic='-DDLL_EXPORT'
8378 hpux9* | hpux10* | hpux11*)
8379 lt_prog_compiler_wl='-Wl,'
8380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8387 lt_prog_compiler_pic='+Z'
8390 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8391 lt_prog_compiler_static='${wl}-a ${wl}archive'
8394 irix5* | irix6* | nonstopux*)
8395 lt_prog_compiler_wl='-Wl,'
8396 # PIC (with -KPIC) is the default.
8397 lt_prog_compiler_static='-non_shared'
8400 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8401 case $cc_basename in
8402 # old Intel for x86_64 which still supported -KPIC.
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-KPIC'
8406 lt_prog_compiler_static='-static'
8408 # icc used to be incompatible with GCC.
8409 # ICC 10 doesn't accept -KPIC any more.
8411 lt_prog_compiler_wl='-Wl,'
8412 lt_prog_compiler_pic='-fPIC'
8413 lt_prog_compiler_static='-static'
8415 # Lahey Fortran 8.1.
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='--shared'
8419 lt_prog_compiler_static='--static'
8422 # NAG Fortran compiler
8423 lt_prog_compiler_wl='-Wl,-Wl,,'
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
8427 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8428 # Portland Group compilers (*not* the Pentium gcc compiler,
8429 # which looks to be a dead project)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-fpic'
8432 lt_prog_compiler_static='-Bstatic'
8435 lt_prog_compiler_wl='-Wl,'
8436 # All Alpha code is PIC.
8437 lt_prog_compiler_static='-non_shared'
8439 xl* | bgxl* | bgf* | mpixl*)
8440 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-qpic'
8443 lt_prog_compiler_static='-qstaticlink'
8446 case `$CC -V 2>&1 | sed 5q` in
8447 *Sun\ F* | *Sun*Fortran*)
8448 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8449 lt_prog_compiler_pic='-KPIC'
8450 lt_prog_compiler_static='-Bstatic'
8451 lt_prog_compiler_wl=''
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 lt_prog_compiler_wl='-Wl,'
8465 lt_prog_compiler_pic='-KPIC'
8466 lt_prog_compiler_static='-Bstatic'
8470 # QNX uses GNU C++, but need to define -shared option too, otherwise
8472 lt_prog_compiler_pic='-fPIC -shared'
8475 osf3* | osf4* | osf5*)
8476 lt_prog_compiler_wl='-Wl,'
8477 # All OSF/1 code is PIC.
8478 lt_prog_compiler_static='-non_shared'
8482 lt_prog_compiler_static='-non_shared'
8486 lt_prog_compiler_pic='-KPIC'
8487 lt_prog_compiler_static='-Bstatic'
8488 case $cc_basename in
8489 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8490 lt_prog_compiler_wl='-Qoption ld ';;
8492 lt_prog_compiler_wl='-Wl,';;
8497 lt_prog_compiler_wl='-Qoption ld '
8498 lt_prog_compiler_pic='-PIC'
8499 lt_prog_compiler_static='-Bstatic'
8502 sysv4 | sysv4.2uw2* | sysv4.3*)
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-KPIC'
8505 lt_prog_compiler_static='-Bstatic'
8509 if test -d /usr/nec ;then
8510 lt_prog_compiler_pic='-Kconform_pic'
8511 lt_prog_compiler_static='-Bstatic'
8515 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8516 lt_prog_compiler_wl='-Wl,'
8517 lt_prog_compiler_pic='-KPIC'
8518 lt_prog_compiler_static='-Bstatic'
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_can_build_shared=no
8527 lt_prog_compiler_pic='-pic'
8528 lt_prog_compiler_static='-Bstatic'
8532 lt_prog_compiler_can_build_shared=no
8538 # For platforms which do not support PIC, -DPIC is meaningless:
8540 lt_prog_compiler_pic=
8543 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8548 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8549 if ${lt_cv_prog_compiler_pic+:} false; then :
8550 $as_echo_n "(cached) " >&6
8552 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8555 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8556 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8559 # Check to make sure the PIC flag actually works.
8561 if test -n "$lt_prog_compiler_pic"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8563 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8564 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8565 $as_echo_n "(cached) " >&6
8567 lt_cv_prog_compiler_pic_works=no
8568 ac_outfile=conftest.$ac_objext
8569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8570 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8571 # Insert the option either (1) after the last *FLAGS variable, or
8572 # (2) before a word containing "conftest.", or (3) at the end.
8573 # Note that $ac_compile itself does not contain backslashes and begins
8574 # with a dollar sign (not a hyphen), so the echo should work correctly.
8575 # The option is referenced via a variable to avoid confusing sed.
8576 lt_compile=`echo "$ac_compile" | $SED \
8577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8579 -e 's:$: $lt_compiler_flag:'`
8580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8581 (eval "$lt_compile" 2>conftest.err)
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 if (exit $ac_status) && test -s "$ac_outfile"; then
8586 # The compiler can only warn and ignore the option if not recognized
8587 # So say no if there are warnings other than the usual output.
8588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8591 lt_cv_prog_compiler_pic_works=yes
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8598 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8600 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8601 case $lt_prog_compiler_pic in
8603 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8606 lt_prog_compiler_pic=
8607 lt_prog_compiler_can_build_shared=no
8623 # Check to make sure the static flag actually works.
8625 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8627 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8628 if ${lt_cv_prog_compiler_static_works+:} false; then :
8629 $as_echo_n "(cached) " >&6
8631 lt_cv_prog_compiler_static_works=no
8632 save_LDFLAGS="$LDFLAGS"
8633 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8636 # The linker can only warn and ignore the option if not recognized
8637 # So say no if there are warnings
8638 if test -s conftest.err; then
8639 # Append any errors to the config.log.
8640 cat conftest.err 1>&5
8641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8643 if diff conftest.exp conftest.er2 >/dev/null; then
8644 lt_cv_prog_compiler_static_works=yes
8647 lt_cv_prog_compiler_static_works=yes
8651 LDFLAGS="$save_LDFLAGS"
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8655 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8657 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8660 lt_prog_compiler_static=
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8670 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8671 if ${lt_cv_prog_compiler_c_o+:} false; then :
8672 $as_echo_n "(cached) " >&6
8674 lt_cv_prog_compiler_c_o=no
8675 $RM -r conftest 2>/dev/null
8679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8681 lt_compiler_flag="-o out/conftest2.$ac_objext"
8682 # Insert the option either (1) after the last *FLAGS variable, or
8683 # (2) before a word containing "conftest.", or (3) at the end.
8684 # Note that $ac_compile itself does not contain backslashes and begins
8685 # with a dollar sign (not a hyphen), so the echo should work correctly.
8686 lt_compile=`echo "$ac_compile" | $SED \
8687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8689 -e 's:$: $lt_compiler_flag:'`
8690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8691 (eval "$lt_compile" 2>out/conftest.err)
8693 cat out/conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8697 # The compiler can only warn and ignore the option if not recognized
8698 # So say no if there are warnings
8699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8702 lt_cv_prog_compiler_c_o=yes
8707 # SGI C++ compiler will create directory out/ii_files/ for
8708 # template instantiation
8709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8710 $RM out/* && rmdir out
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8717 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8725 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8726 if ${lt_cv_prog_compiler_c_o+:} false; then :
8727 $as_echo_n "(cached) " >&6
8729 lt_cv_prog_compiler_c_o=no
8730 $RM -r conftest 2>/dev/null
8734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8736 lt_compiler_flag="-o out/conftest2.$ac_objext"
8737 # Insert the option either (1) after the last *FLAGS variable, or
8738 # (2) before a word containing "conftest.", or (3) at the end.
8739 # Note that $ac_compile itself does not contain backslashes and begins
8740 # with a dollar sign (not a hyphen), so the echo should work correctly.
8741 lt_compile=`echo "$ac_compile" | $SED \
8742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8744 -e 's:$: $lt_compiler_flag:'`
8745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8746 (eval "$lt_compile" 2>out/conftest.err)
8748 cat out/conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8752 # The compiler can only warn and ignore the option if not recognized
8753 # So say no if there are warnings
8754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8757 lt_cv_prog_compiler_c_o=yes
8762 # SGI C++ compiler will create directory out/ii_files/ for
8763 # template instantiation
8764 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8765 $RM out/* && rmdir out
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8772 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8777 hard_links="nottested"
8778 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8779 # do not overwrite the value of need_locks provided by the user
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8781 $as_echo_n "checking if we can lock with hard links... " >&6; }
8784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8786 ln conftest.a conftest.b 2>&5 || hard_links=no
8787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8789 $as_echo "$hard_links" >&6; }
8790 if test "$hard_links" = no; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8792 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8808 allow_undefined_flag=
8809 always_export_symbols=no
8811 archive_expsym_cmds=
8812 compiler_needs_object=no
8813 enable_shared_with_static_runtimes=no
8814 export_dynamic_flag_spec=
8815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8816 hardcode_automatic=no
8818 hardcode_direct_absolute=no
8819 hardcode_libdir_flag_spec=
8820 hardcode_libdir_flag_spec_ld=
8821 hardcode_libdir_separator=
8823 hardcode_shlibpath_var=unsupported
8825 link_all_deplibs=unknown
8828 old_archive_from_new_cmds=
8829 old_archive_from_expsyms_cmds=
8830 thread_safe_flag_spec=
8831 whole_archive_flag_spec=
8832 # include_expsyms should be a list of space-separated symbols to be *always*
8833 # included in the symbol list
8835 # exclude_expsyms can be an extended regexp of symbols to exclude
8836 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8837 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8838 # as well as any symbol that contains `d'.
8839 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8840 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8841 # platforms (ab)use it in PIC code, but their linkers get confused if
8842 # the symbol is explicitly referenced. Since portable code cannot
8843 # rely on this symbol name, it's probably fine to never include it in
8844 # preloaded symbol tables.
8845 # Exclude shared library initialization/finalization symbols.
8846 extract_expsyms_cmds=
8849 cygwin* | mingw* | pw32* | cegcc*)
8850 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8851 # When not using gcc, we currently assume that we are using
8852 # Microsoft Visual C++.
8853 if test "$GCC" != yes; then
8858 # we just hope/assume this is gcc and not c89 (= MSVC++)
8868 # On some targets, GNU ld is compatible enough with the native linker
8869 # that we're better off using the native interface for both.
8870 lt_use_gnu_ld_interface=no
8871 if test "$with_gnu_ld" = yes; then
8874 # The AIX port of GNU ld has always aspired to compatibility
8875 # with the native linker. However, as the warning in the GNU ld
8876 # block says, versions before 2.19.5* couldn't really create working
8877 # shared libraries, regardless of the interface used.
8878 case `$LD -v 2>&1` in
8879 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8880 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8881 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8883 lt_use_gnu_ld_interface=yes
8888 lt_use_gnu_ld_interface=yes
8893 if test "$lt_use_gnu_ld_interface" = yes; then
8894 # If archive_cmds runs LD, not CC, wlarc should be empty
8897 # Set some defaults for GNU ld with shared library support. These
8898 # are reset later if shared libraries are not supported. Putting them
8899 # here allows them to be overridden if necessary.
8900 runpath_var=LD_RUN_PATH
8901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8902 export_dynamic_flag_spec='${wl}--export-dynamic'
8903 # ancient GNU ld didn't support --whole-archive et. al.
8904 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8905 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8907 whole_archive_flag_spec=
8909 supports_anon_versioning=no
8910 case `$LD -v 2>&1` in
8911 *GNU\ gold*) supports_anon_versioning=yes ;;
8912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8913 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8914 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8915 *\ 2.11.*) ;; # other 2.11 versions
8916 *) supports_anon_versioning=yes ;;
8919 # See if GNU ld supports shared libraries.
8922 # On AIX/PPC, the GNU linker is very broken
8923 if test "$host_cpu" != ia64; then
8927 *** Warning: the GNU linker, at least up to release 2.19, is reported
8928 *** to be unable to reliably create shared libraries on AIX.
8929 *** Therefore, libtool is disabling shared libraries support. If you
8930 *** really care for shared libraries, you may want to install binutils
8931 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8932 *** You will then need to restart the configuration process.
8941 # see comment about AmigaOS4 .so support
8942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8943 archive_expsym_cmds=''
8946 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)'
8947 hardcode_libdir_flag_spec='-L$libdir'
8948 hardcode_minus_L=yes
8954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8955 allow_undefined_flag=unsupported
8956 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8957 # support --undefined. This deserves some investigation. FIXME
8958 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964 cygwin* | mingw* | pw32* | cegcc*)
8965 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8966 # as there is no search path for DLLs.
8967 hardcode_libdir_flag_spec='-L$libdir'
8968 export_dynamic_flag_spec='${wl}--export-all-symbols'
8969 allow_undefined_flag=unsupported
8970 always_export_symbols=no
8971 enable_shared_with_static_runtimes=yes
8972 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'
8973 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8975 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8977 # If the export-symbols file already is a .def file (1st line
8978 # is EXPORTS), use it as is; otherwise, prepend...
8979 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8980 cp $export_symbols $output_objdir/$soname.def;
8982 echo EXPORTS > $output_objdir/$soname.def;
8983 cat $export_symbols >> $output_objdir/$soname.def;
8985 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993 link_all_deplibs=yes
8998 hardcode_shlibpath_var=no
8999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9000 export_dynamic_flag_spec='${wl}-E'
9001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9002 # Instead, shared libraries are loaded at an image base (0x10000000 by
9003 # default) and relocated if they conflict, which is a slow very memory
9004 # consuming and fragmenting process. To avoid this, we pick a random,
9005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9007 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9008 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'
9011 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9013 if test "$host_os" = linux-dietlibc; then
9014 case $cc_basename in
9015 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9018 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9019 && test "$tmp_diet" = no
9021 tmp_addflag=' $pic_flag'
9022 tmp_sharedflag='-shared'
9023 case $cc_basename,$host_cpu in
9024 pgcc*) # Portland Group C compiler
9025 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'
9026 tmp_addflag=' $pic_flag'
9028 pgf77* | pgf90* | pgf95* | pgfortran*)
9029 # Portland Group f77 and f90 compilers
9030 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'
9031 tmp_addflag=' $pic_flag -Mnomain' ;;
9032 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9033 tmp_addflag=' -i_dynamic' ;;
9034 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9035 tmp_addflag=' -i_dynamic -nofor_main' ;;
9036 ifc* | ifort*) # Intel Fortran compiler
9037 tmp_addflag=' -nofor_main' ;;
9038 lf95*) # Lahey Fortran 8.1
9039 whole_archive_flag_spec=
9040 tmp_sharedflag='--shared' ;;
9041 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9042 tmp_sharedflag='-qmkshrobj'
9044 nvcc*) # Cuda Compiler Driver 2.2
9045 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'
9046 compiler_needs_object=yes
9049 case `$CC -V 2>&1 | sed 5q` in
9050 *Sun\ C*) # Sun C 5.9
9051 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'
9052 compiler_needs_object=yes
9053 tmp_sharedflag='-G' ;;
9054 *Sun\ F*) # Sun Fortran 8.3
9055 tmp_sharedflag='-G' ;;
9057 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059 if test "x$supports_anon_versioning" = xyes; then
9060 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9061 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9062 echo "local: *; };" >> $output_objdir/$libname.ver~
9063 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9066 case $cc_basename in
9067 xlf* | bgf* | bgxlf* | mpixlf*)
9068 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9069 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9070 hardcode_libdir_flag_spec=
9071 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9072 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9073 if test "x$supports_anon_versioning" = xyes; then
9074 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9075 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9076 echo "local: *; };" >> $output_objdir/$libname.ver~
9077 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9087 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9088 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9097 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9101 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9102 *** create shared libraries on Solaris systems. Therefore, libtool
9103 *** is disabling shared libraries support. We urge you to upgrade GNU
9104 *** binutils to release 2.9.1 or newer. Another option is to modify
9105 *** your PATH or compiler configuration so that the native linker is
9106 *** used, and then restart.
9109 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9111 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9118 case `$LD -v 2>&1` in
9119 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9123 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9124 *** reliably create shared libraries on SCO systems. Therefore, libtool
9125 *** is disabling shared libraries support. We urge you to upgrade GNU
9126 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9127 *** your PATH or compiler configuration so that the native linker is
9128 *** used, and then restart.
9133 # For security reasons, it is highly recommended that you always
9134 # use absolute paths for naming shared libraries, and exclude the
9135 # DT_RUNPATH tag from executables and libraries. But doing so
9136 # requires that you compile everything twice, which is a pain.
9137 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9149 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_shlibpath_var=no
9156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9165 if test "$ld_shlibs" = no; then
9167 hardcode_libdir_flag_spec=
9168 export_dynamic_flag_spec=
9169 whole_archive_flag_spec=
9172 # PORTME fill in a description of your system's linker (not GNU ld)
9175 allow_undefined_flag=unsupported
9176 always_export_symbols=yes
9177 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'
9178 # Note: this linker hardcodes the directories in LIBPATH if there
9179 # are no directories specified by -L.
9180 hardcode_minus_L=yes
9181 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9182 # Neither direct hardcoding nor static linking is supported with a
9184 hardcode_direct=unsupported
9189 if test "$host_cpu" = ia64; then
9190 # On IA64, the linker does run time linking by default, so we don't
9191 # have to do anything special.
9192 aix_use_runtimelinking=no
9193 exp_sym_flag='-Bexport'
9196 # If we're using GNU nm, then we don't want the "-C" option.
9197 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9198 # Also, AIX nm treats weak defined symbols like other global
9199 # defined symbols, whereas GNU nm marks them as "W".
9200 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9201 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9203 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9205 aix_use_runtimelinking=no
9207 # Test if we are trying to use run time linking or normal
9208 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9209 # need to do runtime linking.
9210 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9211 for ld_flag in $LDFLAGS; do
9212 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9213 aix_use_runtimelinking=yes
9220 exp_sym_flag='-bexport'
9221 no_entry_flag='-bnoentry'
9224 # When large executables or shared objects are built, AIX ld can
9225 # have problems creating the table of contents. If linking a library
9226 # or program results in "error TOC overflow" add -mminimal-toc to
9227 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9228 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9232 hardcode_direct_absolute=yes
9233 hardcode_libdir_separator=':'
9234 link_all_deplibs=yes
9235 file_list_spec='${wl}-f,'
9237 if test "$GCC" = yes; then
9238 case $host_os in aix4.[012]|aix4.[012].*)
9239 # We only want to do this on AIX 4.2 and lower, the check
9240 # below for broken collect2 doesn't work under 4.3+
9241 collect2name=`${CC} -print-prog-name=collect2`
9242 if test -f "$collect2name" &&
9243 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9245 # We have reworked collect2
9248 # We have old collect2
9249 hardcode_direct=unsupported
9250 # It fails to find uninstalled libraries when the uninstalled
9251 # path is not listed in the libpath. Setting hardcode_minus_L
9252 # to unsupported forces relinking
9253 hardcode_minus_L=yes
9254 hardcode_libdir_flag_spec='-L$libdir'
9255 hardcode_libdir_separator=
9259 shared_flag='-shared'
9260 if test "$aix_use_runtimelinking" = yes; then
9261 shared_flag="$shared_flag "'${wl}-G'
9265 if test "$host_cpu" = ia64; then
9266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9267 # chokes on -Wl,-G. The following line is correct:
9270 if test "$aix_use_runtimelinking" = yes; then
9271 shared_flag='${wl}-G'
9273 shared_flag='${wl}-bM:SRE'
9278 export_dynamic_flag_spec='${wl}-bexpall'
9279 # It seems that -bexpall does not export symbols beginning with
9280 # underscore (_), so it is better to generate a list of symbols to export.
9281 always_export_symbols=yes
9282 if test "$aix_use_runtimelinking" = yes; then
9283 # Warning - without using the other runtime loading flags (-brtl),
9284 # -berok will link without error, but may produce a broken library.
9285 allow_undefined_flag='-berok'
9286 # Determine the default libpath from the value encoded in an
9288 if test "${lt_cv_aix_libpath+set}" = set; then
9289 aix_libpath=$lt_cv_aix_libpath
9291 if ${lt_cv_aix_libpath_+:} false; then :
9292 $as_echo_n "(cached) " >&6
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9305 if ac_fn_c_try_link "$LINENO"; then :
9307 lt_aix_libpath_sed='
9308 /Import File Strings/,/^$/ {
9310 s/^0 *\([^ ]*\) *$/\1/
9314 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9315 # Check for a 64-bit object if we didn't find anything.
9316 if test -z "$lt_cv_aix_libpath_"; then
9317 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9322 if test -z "$lt_cv_aix_libpath_"; then
9323 lt_cv_aix_libpath_="/usr/lib:/lib"
9328 aix_libpath=$lt_cv_aix_libpath_
9331 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9332 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9334 if test "$host_cpu" = ia64; then
9335 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9336 allow_undefined_flag="-z nodefs"
9337 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"
9339 # Determine the default libpath from the value encoded in an
9341 if test "${lt_cv_aix_libpath+set}" = set; then
9342 aix_libpath=$lt_cv_aix_libpath
9344 if ${lt_cv_aix_libpath_+:} false; then :
9345 $as_echo_n "(cached) " >&6
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9358 if ac_fn_c_try_link "$LINENO"; then :
9360 lt_aix_libpath_sed='
9361 /Import File Strings/,/^$/ {
9363 s/^0 *\([^ ]*\) *$/\1/
9367 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9368 # Check for a 64-bit object if we didn't find anything.
9369 if test -z "$lt_cv_aix_libpath_"; then
9370 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9373 rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 if test -z "$lt_cv_aix_libpath_"; then
9376 lt_cv_aix_libpath_="/usr/lib:/lib"
9381 aix_libpath=$lt_cv_aix_libpath_
9384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9385 # Warning - without using the other run time loading flags,
9386 # -berok will link without error, but may produce a broken library.
9387 no_undefined_flag=' ${wl}-bernotok'
9388 allow_undefined_flag=' ${wl}-berok'
9389 if test "$with_gnu_ld" = yes; then
9390 # We only use this code for GNU lds that support --whole-archive.
9391 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9393 # Exported symbols can be pulled into shared objects from archives
9394 whole_archive_flag_spec='$convenience'
9396 archive_cmds_need_lc=yes
9397 # This is similar to how AIX traditionally builds its shared libraries.
9398 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9406 # see comment about AmigaOS4 .so support
9407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408 archive_expsym_cmds=''
9411 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)'
9412 hardcode_libdir_flag_spec='-L$libdir'
9413 hardcode_minus_L=yes
9419 export_dynamic_flag_spec=-rdynamic
9422 cygwin* | mingw* | pw32* | cegcc*)
9423 # When not using gcc, we currently assume that we are using
9424 # Microsoft Visual C++.
9425 # hardcode_libdir_flag_spec is actually meaningless, as there is
9426 # no search path for DLLs.
9427 case $cc_basename in
9430 hardcode_libdir_flag_spec=' '
9431 allow_undefined_flag=unsupported
9432 always_export_symbols=yes
9434 # Tell ltmain to make .lib files, not .a files.
9436 # Tell ltmain to make .dll files, not .so files.
9438 # FIXME: Setting linknames here is a bad hack.
9439 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9440 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9441 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9443 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9445 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9447 # The linker will not automatically build a static lib if we build a DLL.
9448 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9449 enable_shared_with_static_runtimes=yes
9450 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9452 old_postinstall_cmds='chmod 644 $oldlib'
9453 postlink_cmds='lt_outputfile="@OUTPUT@"~
9454 lt_tool_outputfile="@TOOL_OUTPUT@"~
9455 case $lt_outputfile in
9458 lt_outputfile="$lt_outputfile.exe"
9459 lt_tool_outputfile="$lt_tool_outputfile.exe"
9462 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9463 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9464 $RM "$lt_outputfile.manifest";
9468 # Assume MSVC wrapper
9469 hardcode_libdir_flag_spec=' '
9470 allow_undefined_flag=unsupported
9471 # Tell ltmain to make .lib files, not .a files.
9473 # Tell ltmain to make .dll files, not .so files.
9475 # FIXME: Setting linknames here is a bad hack.
9476 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9477 # The linker will automatically build a .lib file if we build a DLL.
9478 old_archive_from_new_cmds='true'
9479 # FIXME: Should let the user specify the lib program.
9480 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9481 enable_shared_with_static_runtimes=yes
9486 darwin* | rhapsody*)
9489 archive_cmds_need_lc=no
9491 hardcode_automatic=yes
9492 hardcode_shlibpath_var=unsupported
9493 if test "$lt_cv_ld_force_load" = "yes"; then
9494 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\"`'
9496 whole_archive_flag_spec=''
9498 link_all_deplibs=yes
9499 allow_undefined_flag="$_lt_dar_allow_undefined"
9500 case $cc_basename in
9501 ifort*) _lt_dar_can_shared=yes ;;
9502 *) _lt_dar_can_shared=$GCC ;;
9504 if test "$_lt_dar_can_shared" = "yes"; then
9505 output_verbose_link_cmd=func_echo_all
9506 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9507 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9508 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}"
9509 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}"
9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_libdir_flag_spec='-L$libdir'
9520 hardcode_shlibpath_var=no
9527 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9528 # support. Future versions do this automatically, but an explicit c++rt0.o
9529 # does not break anything, and helps significantly (at the cost of a little
9532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9533 hardcode_libdir_flag_spec='-R$libdir'
9535 hardcode_shlibpath_var=no
9538 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_minus_L=yes
9543 hardcode_shlibpath_var=no
9546 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9547 freebsd* | dragonfly*)
9548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9549 hardcode_libdir_flag_spec='-R$libdir'
9551 hardcode_shlibpath_var=no
9555 if test "$GCC" = yes; then
9556 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9558 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9561 hardcode_libdir_separator=:
9564 # hardcode_minus_L: Not really in the search PATH,
9565 # but as the default location of the library.
9566 hardcode_minus_L=yes
9567 export_dynamic_flag_spec='${wl}-E'
9571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9572 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9574 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9576 if test "$with_gnu_ld" = no; then
9577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9578 hardcode_libdir_flag_spec_ld='+b $libdir'
9579 hardcode_libdir_separator=:
9581 hardcode_direct_absolute=yes
9582 export_dynamic_flag_spec='${wl}-E'
9583 # hardcode_minus_L: Not really in the search PATH,
9584 # but as the default location of the library.
9585 hardcode_minus_L=yes
9590 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9593 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9596 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9605 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9612 # Older versions of the 11.00 compiler do not understand -b yet
9613 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9615 $as_echo_n "checking if $CC understands -b... " >&6; }
9616 if ${lt_cv_prog_compiler__b+:} false; then :
9617 $as_echo_n "(cached) " >&6
9619 lt_cv_prog_compiler__b=no
9620 save_LDFLAGS="$LDFLAGS"
9621 LDFLAGS="$LDFLAGS -b"
9622 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9623 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9624 # The linker can only warn and ignore the option if not recognized
9625 # So say no if there are warnings
9626 if test -s conftest.err; then
9627 # Append any errors to the config.log.
9628 cat conftest.err 1>&5
9629 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9631 if diff conftest.exp conftest.er2 >/dev/null; then
9632 lt_cv_prog_compiler__b=yes
9635 lt_cv_prog_compiler__b=yes
9639 LDFLAGS="$save_LDFLAGS"
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9643 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9645 if test x"$lt_cv_prog_compiler__b" = xyes; then
9646 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9648 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9654 if test "$with_gnu_ld" = no; then
9655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9656 hardcode_libdir_separator=:
9661 hardcode_shlibpath_var=no
9665 hardcode_direct_absolute=yes
9666 export_dynamic_flag_spec='${wl}-E'
9668 # hardcode_minus_L: Not really in the search PATH,
9669 # but as the default location of the library.
9670 hardcode_minus_L=yes
9676 irix5* | irix6* | nonstopux*)
9677 if test "$GCC" = yes; then
9678 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'
9679 # Try to use the -exported_symbol ld option, if it does not
9680 # work, assume that -exports_file does not work either and
9681 # implicitly export all symbols.
9682 # This should be the same for all languages, so no per-tag cache variable.
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9684 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9685 if ${lt_cv_irix_exported_symbol+:} false; then :
9686 $as_echo_n "(cached) " >&6
9688 save_LDFLAGS="$LDFLAGS"
9689 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 int foo (void) { return 0; }
9694 if ac_fn_c_try_link "$LINENO"; then :
9695 lt_cv_irix_exported_symbol=yes
9697 lt_cv_irix_exported_symbol=no
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LDFLAGS="$save_LDFLAGS"
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9704 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9705 if test "$lt_cv_irix_exported_symbol" = yes; then
9706 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'
9709 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'
9710 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'
9712 archive_cmds_need_lc='no'
9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 hardcode_libdir_separator=:
9716 link_all_deplibs=yes
9720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9723 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9725 hardcode_libdir_flag_spec='-R$libdir'
9727 hardcode_shlibpath_var=no
9731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734 hardcode_libdir_separator=:
9735 hardcode_shlibpath_var=no
9742 if test -f /usr/libexec/ld.so; then
9744 hardcode_shlibpath_var=no
9745 hardcode_direct_absolute=yes
9746 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9747 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9750 export_dynamic_flag_spec='${wl}-E'
9753 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_libdir_flag_spec='-R$libdir'
9758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9769 hardcode_libdir_flag_spec='-L$libdir'
9770 hardcode_minus_L=yes
9771 allow_undefined_flag=unsupported
9772 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9773 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9777 if test "$GCC" = yes; then
9778 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9779 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'
9781 allow_undefined_flag=' -expect_unresolved \*'
9782 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'
9784 archive_cmds_need_lc='no'
9785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9786 hardcode_libdir_separator=:
9789 osf4* | osf5*) # as osf3* with the addition of -msym flag
9790 if test "$GCC" = yes; then
9791 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9792 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'
9793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795 allow_undefined_flag=' -expect_unresolved \*'
9796 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'
9797 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~
9798 $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'
9800 # Both c and cxx compiler support -rpath directly
9801 hardcode_libdir_flag_spec='-rpath $libdir'
9803 archive_cmds_need_lc='no'
9804 hardcode_libdir_separator=:
9808 no_undefined_flag=' -z defs'
9809 if test "$GCC" = yes; then
9811 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9813 $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'
9815 case `$CC -V 2>&1` in
9818 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9824 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9826 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9830 hardcode_libdir_flag_spec='-R$libdir'
9831 hardcode_shlibpath_var=no
9833 solaris2.[0-5] | solaris2.[0-5].*) ;;
9835 # The compiler driver will combine and reorder linker options,
9836 # but understands `-z linker_flag'. GCC discards it without `$wl',
9837 # but is careful enough not to reorder.
9838 # Supported since Solaris 2.6 (maybe 2.5.1?)
9839 if test "$GCC" = yes; then
9840 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9842 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9846 link_all_deplibs=yes
9850 if test "x$host_vendor" = xsequent; then
9851 # Use $CC to link under sequent, because it throws in some extra .o
9852 # files that make .init and .fini sections work.
9853 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9855 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_libdir_flag_spec='-L$libdir'
9859 hardcode_minus_L=yes
9860 hardcode_shlibpath_var=no
9864 case $host_vendor in
9866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867 hardcode_direct=yes # is this really true???
9870 ## LD is ld it makes a PLAMLIB
9871 ## CC just makes a GrossModule.
9872 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9873 reload_cmds='$CC -r -o $output$reload_objs'
9877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9881 runpath_var='LD_RUN_PATH'
9882 hardcode_shlibpath_var=no
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_shlibpath_var=no
9888 export_dynamic_flag_spec='-Bexport'
9892 if test -d /usr/nec; then
9893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_shlibpath_var=no
9895 runpath_var=LD_RUN_PATH
9896 hardcode_runpath_var=yes
9901 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9902 no_undefined_flag='${wl}-z,text'
9903 archive_cmds_need_lc=no
9904 hardcode_shlibpath_var=no
9905 runpath_var='LD_RUN_PATH'
9907 if test "$GCC" = yes; then
9908 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9909 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9911 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916 sysv5* | sco3.2v5* | sco5v6*)
9917 # Note: We can NOT use -z defs as we might desire, because we do not
9918 # link with -lc, and that would cause any symbols used from libc to
9919 # always be unresolved, which means just about no library would
9920 # ever link correctly. If we're not using GNU ld we use -z text
9921 # though, which does catch some bad symbols but isn't as heavy-handed
9923 no_undefined_flag='${wl}-z,text'
9924 allow_undefined_flag='${wl}-z,nodefs'
9925 archive_cmds_need_lc=no
9926 hardcode_shlibpath_var=no
9927 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9928 hardcode_libdir_separator=':'
9929 link_all_deplibs=yes
9930 export_dynamic_flag_spec='${wl}-Bexport'
9931 runpath_var='LD_RUN_PATH'
9933 if test "$GCC" = yes; then
9934 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9937 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944 hardcode_libdir_flag_spec='-L$libdir'
9945 hardcode_shlibpath_var=no
9953 if test x$host_vendor = xsni; then
9955 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9956 export_dynamic_flag_spec='${wl}-Blargedynsym'
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9963 $as_echo "$ld_shlibs" >&6; }
9964 test "$ld_shlibs" = no && can_build_shared=no
9966 with_gnu_ld=$with_gnu_ld
9983 # Do we need to explicitly link libc?
9985 case "x$archive_cmds_need_lc" in
9987 # Assume -lc should be added
9988 archive_cmds_need_lc=yes
9990 if test "$enable_shared" = yes && test "$GCC" = yes; then
9991 case $archive_cmds in
9993 # FIXME: we may have to deal with multi-command sequences.
9996 # Test whether the compiler implicitly links with -lc since on some
9997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9998 # to ld, don't add -lc before -lgcc.
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10000 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10001 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10002 $as_echo_n "(cached) " >&6
10005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10008 (eval $ac_compile) 2>&5
10010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10011 test $ac_status = 0; } 2>conftest.err; then
10014 libobjs=conftest.$ac_objext
10016 wl=$lt_prog_compiler_wl
10017 pic_flag=$lt_prog_compiler_pic
10023 lt_save_allow_undefined_flag=$allow_undefined_flag
10024 allow_undefined_flag=
10025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10026 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10029 test $ac_status = 0; }
10031 lt_cv_archive_cmds_need_lc=no
10033 lt_cv_archive_cmds_need_lc=yes
10035 allow_undefined_flag=$lt_save_allow_undefined_flag
10037 cat conftest.err 1>&5
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10043 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10044 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10208 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10210 if test "$GCC" = yes; then
10212 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10213 *) lt_awk_arg="/^libraries:/" ;;
10216 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10217 *) lt_sed_strip_eq="s,=/,/,g" ;;
10219 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10220 case $lt_search_path_spec in
10222 # if the path contains ";" then we assume it to be the separator
10223 # otherwise default to the standard path separator (i.e. ":") - it is
10224 # assumed that no part of a normal pathname contains ";" but that should
10225 # okay in the real world where ";" in dirpaths is itself problematic.
10226 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10229 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10232 # Ok, now we have the path, separated by spaces, we can step through it
10233 # and add multilib dir if necessary.
10234 lt_tmp_lt_search_path_spec=
10235 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10236 for lt_sys_path in $lt_search_path_spec; do
10237 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10238 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10240 test -d "$lt_sys_path" && \
10241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10244 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10245 BEGIN {RS=" "; FS="/|\n";} {
10248 for (lt_i = NF; lt_i > 0; lt_i--) {
10249 if ($lt_i != "" && $lt_i != ".") {
10250 if ($lt_i == "..") {
10253 if (lt_count == 0) {
10254 lt_foo="/" $lt_i lt_foo;
10261 if (lt_foo != "") { lt_freq[lt_foo]++; }
10262 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10264 # AWK program above erroneously prepends '/' to C:/dos/paths
10267 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10268 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10270 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10272 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10274 library_names_spec=
10275 libname_spec='lib$name'
10279 postuninstall_cmds=
10283 shlibpath_overrides_runpath=unknown
10285 dynamic_linker="$host_os ld.so"
10286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10287 need_lib_prefix=unknown
10288 hardcode_into_libs=no
10290 # when you set need_version to no, make sure it does not cause -set_version
10291 # flags to be left without arguments
10292 need_version=unknown
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10298 shlibpath_var=LIBPATH
10300 # AIX 3 has no versioning support, so we append a major version to the name.
10301 soname_spec='${libname}${release}${shared_ext}$major'
10308 hardcode_into_libs=yes
10309 if test "$host_cpu" = ia64; then
10310 # AIX 5 supports IA64
10311 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10312 shlibpath_var=LD_LIBRARY_PATH
10314 # With GCC up to 2.95.x, collect2 would create an import file
10315 # for dependence libraries. The import file would start with
10316 # the line `#! .'. This would cause the generated library to
10317 # depend on `.', always an invalid library. This was fixed in
10318 # development snapshots of GCC prior to 3.0.
10320 aix4 | aix4.[01] | aix4.[01].*)
10321 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10323 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10326 can_build_shared=no
10330 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10331 # soname into executable. Probably we can add versioning support to
10332 # collect2, so additional links can be useful in future.
10333 if test "$aix_use_runtimelinking" = yes; then
10334 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10335 # instead of lib<name>.a to let people know that these are not
10336 # typical AIX shared libraries.
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 # We preserve .a as extension for shared libraries through AIX4.2
10340 # and later when we are not doing run time linking.
10341 library_names_spec='${libname}${release}.a $libname.a'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10344 shlibpath_var=LIBPATH
10351 # Since July 2007 AmigaOS4 officially supports .so libraries.
10352 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 library_names_spec='$libname.ixlibrary $libname.a'
10357 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10358 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10364 library_names_spec='${libname}${shared_ext}'
10365 dynamic_linker="$host_os ld.so"
10366 shlibpath_var=LIBRARY_PATH
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10378 # the default ld.so.conf also contains /usr/contrib/lib and
10379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10380 # libtool to hard-code these into programs
10383 cygwin* | mingw* | pw32* | cegcc*)
10384 version_type=windows
10389 case $GCC,$cc_basename in
10392 library_names_spec='$libname.dll.a'
10393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10394 postinstall_cmds='base_file=`basename \${file}`~
10395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10396 dldir=$destdir/`dirname \$dlpath`~
10397 test -d \$dldir || mkdir -p \$dldir~
10398 $install_prog $dir/$dlname \$dldir/$dlname~
10399 chmod a+x \$dldir/$dlname~
10400 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10401 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10404 dlpath=$dir/\$dldll~
10406 shlibpath_overrides_runpath=yes
10410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10416 # MinGW DLLs use traditional 'lib' prefix
10417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10420 # pw32 DLLs use 'pw' prefix rather than 'lib'
10421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10424 dynamic_linker='Win32 ld.exe'
10429 libname_spec='$name'
10430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10431 library_names_spec='${libname}.dll.lib'
10435 sys_lib_search_path_spec=
10438 for lt_path in $LIB
10441 # Let DOS variable expansion print the short 8.3 style file name.
10442 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10443 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10446 # Convert to MSYS style.
10447 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10450 # Convert to unix form, then to dos form, then back to unix form
10451 # but this time dos style (no spaces!) so that the unix form looks
10452 # like /cygdrive/c/PROGRA~1:/cygdr...
10453 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10454 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10455 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10458 sys_lib_search_path_spec="$LIB"
10459 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10460 # It is most probably a Windows format PATH.
10461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10465 # FIXME: find the short name or the path components, as spaces are
10466 # common. (e.g. "Program Files" -> "PROGRA~1")
10470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10471 postinstall_cmds='base_file=`basename \${file}`~
10472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10473 dldir=$destdir/`dirname \$dlpath`~
10474 test -d \$dldir || mkdir -p \$dldir~
10475 $install_prog $dir/$dlname \$dldir/$dlname'
10476 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10477 dlpath=$dir/\$dldll~
10479 shlibpath_overrides_runpath=yes
10480 dynamic_linker='Win32 link.exe'
10484 # Assume MSVC wrapper
10485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10486 dynamic_linker='Win32 ld.exe'
10489 # FIXME: first we should search . and the directory the executable is in
10493 darwin* | rhapsody*)
10494 dynamic_linker="$host_os dyld"
10495 version_type=darwin
10498 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10499 soname_spec='${libname}${release}${major}$shared_ext'
10500 shlibpath_overrides_runpath=yes
10501 shlibpath_var=DYLD_LIBRARY_PATH
10502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10504 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 shlibpath_var=LD_LIBRARY_PATH
10521 freebsd* | dragonfly*)
10522 # DragonFly does not have aout. When/if they implement a new
10523 # versioning mechanism, adjust this.
10524 if test -x /usr/bin/objformat; then
10525 objformat=`/usr/bin/objformat`
10528 freebsd[123]*) objformat=aout ;;
10529 *) objformat=elf ;;
10532 version_type=freebsd-$objformat
10533 case $version_type in
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10544 shlibpath_var=LD_LIBRARY_PATH
10547 shlibpath_overrides_runpath=yes
10549 freebsd3.[01]* | freebsdelf3.[01]*)
10550 shlibpath_overrides_runpath=yes
10551 hardcode_into_libs=yes
10553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10555 shlibpath_overrides_runpath=no
10556 hardcode_into_libs=yes
10558 *) # from 4.6 on, and DragonFly
10559 shlibpath_overrides_runpath=yes
10560 hardcode_into_libs=yes
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 hardcode_into_libs=yes
10579 dynamic_linker="$host_os runtime_loader"
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LIBRARY_PATH
10583 shlibpath_overrides_runpath=yes
10584 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10585 hardcode_into_libs=yes
10588 hpux9* | hpux10* | hpux11*)
10589 # Give a soname corresponding to the major version so that dld.sl refuses to
10590 # link against other versions.
10597 hardcode_into_libs=yes
10598 dynamic_linker="$host_os dld.so"
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 if test "X$HPUX_IA64_MODE" = X32; then
10604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10612 hardcode_into_libs=yes
10613 dynamic_linker="$host_os dld.sl"
10614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10623 dynamic_linker="$host_os dld.sl"
10624 shlibpath_var=SHLIB_PATH
10625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10630 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10631 postinstall_cmds='chmod 555 $lib'
10632 # or fails outright, so override atomically:
10633 install_override_mode=555
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 shlibpath_overrides_runpath=no
10645 hardcode_into_libs=yes
10648 irix5* | irix6* | nonstopux*)
10650 nonstopux*) version_type=nonstopux ;;
10652 if test "$lt_cv_prog_gnu_ld" = yes; then
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10663 irix5* | nonstopux*)
10664 libsuff= shlibsuff=
10667 case $LD in # libtool.m4 will add one of these switches to LD
10668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10669 libsuff= shlibsuff= libmagic=32-bit;;
10670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10671 libsuff=32 shlibsuff=N32 libmagic=N32;;
10672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10673 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10674 *) libsuff= shlibsuff= libmagic=never-match;;
10678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10679 shlibpath_overrides_runpath=no
10680 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10681 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10682 hardcode_into_libs=yes
10685 # No shared lib support for Linux oldld, aout, or coff.
10686 linux*oldld* | linux*aout* | linux*coff*)
10690 # This must be Linux ELF.
10691 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=no
10701 # Some binutils ld are patched to set DT_RUNPATH
10702 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10703 $as_echo_n "(cached) " >&6
10705 lt_cv_shlibpath_overrides_runpath=no
10706 save_LDFLAGS=$LDFLAGS
10707 save_libdir=$libdir
10708 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10709 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10721 if ac_fn_c_try_link "$LINENO"; then :
10722 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10723 lt_cv_shlibpath_overrides_runpath=yes
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LDFLAGS=$save_LDFLAGS
10729 libdir=$save_libdir
10733 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10735 # This implies no fast_install, which is unacceptable.
10736 # Some rework will be needed to allow for fast_install
10737 # before this can be enabled.
10738 hardcode_into_libs=yes
10740 # Append ld.so.conf contents to the search path
10741 if test -f /etc/ld.so.conf; then
10742 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' ' '`
10743 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10746 # We used to test for /lib/ld.so.1 and disable shared libraries on
10747 # powerpc, because MkLinux only supported shared libraries with the
10748 # GNU dynamic linker. Since this was broken with cross compilers,
10749 # most powerpc-linux boxes support dynamic linking these days and
10750 # people can always --disable-shared, the test was removed, and we
10751 # assume the GNU/Linux dynamic linker is in use.
10752 dynamic_linker='GNU/Linux ld.so'
10759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10762 dynamic_linker='NetBSD (a.out) ld.so'
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 dynamic_linker='NetBSD ld.elf_so'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 shlibpath_overrides_runpath=yes
10770 hardcode_into_libs=yes
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 shlibpath_overrides_runpath=yes
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785 soname_spec='${libname}${release}${shared_ext}$major'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10789 dynamic_linker='ldqnx.so'
10794 sys_lib_dlsearch_path_spec="/usr/lib"
10796 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10798 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10799 *) need_version=no ;;
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10803 shlibpath_var=LD_LIBRARY_PATH
10804 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10806 openbsd2.[89] | openbsd2.[89].*)
10807 shlibpath_overrides_runpath=no
10810 shlibpath_overrides_runpath=yes
10814 shlibpath_overrides_runpath=yes
10819 libname_spec='$name'
10822 library_names_spec='$libname${shared_ext} $libname.a'
10823 dynamic_linker='OS/2 ld.exe'
10824 shlibpath_var=LIBPATH
10827 osf3* | osf4* | osf5*)
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 shlibpath_var=LD_LIBRARY_PATH
10834 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10835 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 shlibpath_overrides_runpath=yes
10850 hardcode_into_libs=yes
10851 # ldd complains unless libraries are executable
10852 postinstall_cmds='chmod +x $lib'
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 shlibpath_overrides_runpath=yes
10861 if test "$with_gnu_ld" = yes; then
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 case $host_vendor in
10874 shlibpath_overrides_runpath=no
10876 runpath_var=LD_RUN_PATH
10884 shlibpath_overrides_runpath=no
10885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10891 if test -d /usr/nec ;then
10893 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10894 soname_spec='$libname${shared_ext}.$major'
10895 shlibpath_var=LD_LIBRARY_PATH
10899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10900 version_type=freebsd-elf
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=yes
10907 hardcode_into_libs=yes
10908 if test "$with_gnu_ld" = yes; then
10909 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10914 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10918 sys_lib_dlsearch_path_spec='/usr/lib'
10922 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=no
10929 hardcode_into_libs=yes
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 shlibpath_var=LD_LIBRARY_PATH
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10944 $as_echo "$dynamic_linker" >&6; }
10945 test "$dynamic_linker" = no && can_build_shared=no
10947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10948 if test "$GCC" = yes; then
10949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10952 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10953 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10955 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10956 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11051 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11053 if test -n "$hardcode_libdir_flag_spec" ||
11054 test -n "$runpath_var" ||
11055 test "X$hardcode_automatic" = "Xyes" ; then
11057 # We can hardcode non-existent directories.
11058 if test "$hardcode_direct" != no &&
11059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11060 # have to relink, otherwise we might link with an installed library
11061 # when we should be linking with a yet-to-be-installed one
11062 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11063 test "$hardcode_minus_L" != no; then
11064 # Linking always hardcodes the temporary library directory.
11065 hardcode_action=relink
11067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11068 hardcode_action=immediate
11071 # We cannot hardcode anything, or else we can only hardcode existing
11073 hardcode_action=unsupported
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11076 $as_echo "$hardcode_action" >&6; }
11078 if test "$hardcode_action" = relink ||
11079 test "$inherit_rpath" = yes; then
11080 # Fast installation is not supported
11081 enable_fast_install=no
11082 elif test "$shlibpath_overrides_runpath" = yes ||
11083 test "$enable_shared" = no; then
11084 # Fast installation is not necessary
11085 enable_fast_install=needless
11093 if test "x$enable_dlopen" != xyes; then
11094 enable_dlopen=unknown
11095 enable_dlopen_self=unknown
11096 enable_dlopen_self_static=unknown
11103 lt_cv_dlopen="load_add_on"
11105 lt_cv_dlopen_self=yes
11108 mingw* | pw32* | cegcc*)
11109 lt_cv_dlopen="LoadLibrary"
11114 lt_cv_dlopen="dlopen"
11119 # if libdl is installed we need to link against it
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11121 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11122 if ${ac_cv_lib_dl_dlopen+:} false; then :
11123 $as_echo_n "(cached) " >&6
11125 ac_check_lib_save_LIBS=$LIBS
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11130 /* Override any GCC internal prototype to avoid an error.
11131 Use char because int might match the return type of a GCC
11132 builtin and then its argument prototype would still apply. */
11145 if ac_fn_c_try_link "$LINENO"; then :
11146 ac_cv_lib_dl_dlopen=yes
11148 ac_cv_lib_dl_dlopen=no
11150 rm -f core conftest.err conftest.$ac_objext \
11151 conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11155 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11156 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11160 lt_cv_dlopen="dyld"
11162 lt_cv_dlopen_self=yes
11169 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11170 if test "x$ac_cv_func_shl_load" = xyes; then :
11171 lt_cv_dlopen="shl_load"
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11174 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11175 if ${ac_cv_lib_dld_shl_load+:} false; then :
11176 $as_echo_n "(cached) " >&6
11178 ac_check_lib_save_LIBS=$LIBS
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11193 return shl_load ();
11198 if ac_fn_c_try_link "$LINENO"; then :
11199 ac_cv_lib_dld_shl_load=yes
11201 ac_cv_lib_dld_shl_load=no
11203 rm -f core conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11208 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11209 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11210 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11212 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11213 if test "x$ac_cv_func_dlopen" = xyes; then :
11214 lt_cv_dlopen="dlopen"
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11218 if ${ac_cv_lib_dl_dlopen+:} false; then :
11219 $as_echo_n "(cached) " >&6
11221 ac_check_lib_save_LIBS=$LIBS
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11226 /* Override any GCC internal prototype to avoid an error.
11227 Use char because int might match the return type of a GCC
11228 builtin and then its argument prototype would still apply. */
11241 if ac_fn_c_try_link "$LINENO"; then :
11242 ac_cv_lib_dl_dlopen=yes
11244 ac_cv_lib_dl_dlopen=no
11246 rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext conftest.$ac_ext
11248 LIBS=$ac_check_lib_save_LIBS
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11252 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11256 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11257 if ${ac_cv_lib_svld_dlopen+:} false; then :
11258 $as_echo_n "(cached) " >&6
11260 ac_check_lib_save_LIBS=$LIBS
11261 LIBS="-lsvld $LIBS"
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11265 /* Override any GCC internal prototype to avoid an error.
11266 Use char because int might match the return type of a GCC
11267 builtin and then its argument prototype would still apply. */
11280 if ac_fn_c_try_link "$LINENO"; then :
11281 ac_cv_lib_svld_dlopen=yes
11283 ac_cv_lib_svld_dlopen=no
11285 rm -f core conftest.err conftest.$ac_objext \
11286 conftest$ac_exeext conftest.$ac_ext
11287 LIBS=$ac_check_lib_save_LIBS
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11290 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11291 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11295 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11296 if ${ac_cv_lib_dld_dld_link+:} false; then :
11297 $as_echo_n "(cached) " >&6
11299 ac_check_lib_save_LIBS=$LIBS
11301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11304 /* Override any GCC internal prototype to avoid an error.
11305 Use char because int might match the return type of a GCC
11306 builtin and then its argument prototype would still apply. */
11314 return dld_link ();
11319 if ac_fn_c_try_link "$LINENO"; then :
11320 ac_cv_lib_dld_dld_link=yes
11322 ac_cv_lib_dld_dld_link=no
11324 rm -f core conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326 LIBS=$ac_check_lib_save_LIBS
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11329 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11330 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11331 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11352 if test "x$lt_cv_dlopen" != xno; then
11358 case $lt_cv_dlopen in
11360 save_CPPFLAGS="$CPPFLAGS"
11361 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11363 save_LDFLAGS="$LDFLAGS"
11364 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11367 LIBS="$lt_cv_dlopen_libs $LIBS"
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11370 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11371 if ${lt_cv_dlopen_self+:} false; then :
11372 $as_echo_n "(cached) " >&6
11374 if test "$cross_compiling" = yes; then :
11375 lt_cv_dlopen_self=cross
11377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11378 lt_status=$lt_dlunknown
11379 cat > conftest.$ac_ext <<_LT_EOF
11380 #line $LINENO "configure"
11381 #include "confdefs.h"
11390 # define LT_DLGLOBAL RTLD_GLOBAL
11393 # define LT_DLGLOBAL DL_GLOBAL
11395 # define LT_DLGLOBAL 0
11399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11400 find out it does not work in some platform. */
11401 #ifndef LT_DLLAZY_OR_NOW
11403 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11406 # define LT_DLLAZY_OR_NOW DL_LAZY
11409 # define LT_DLLAZY_OR_NOW RTLD_NOW
11412 # define LT_DLLAZY_OR_NOW DL_NOW
11414 # define LT_DLLAZY_OR_NOW 0
11421 /* When -fvisbility=hidden is used, assume the code has been annotated
11422 correspondingly for the symbols needed. */
11423 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11424 int fnord () __attribute__((visibility("default")));
11427 int fnord () { return 42; }
11430 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11431 int status = $lt_dlunknown;
11435 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11438 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11439 else puts (dlerror ());
11441 /* dlclose (self); */
11449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11450 (eval $ac_link) 2>&5
11452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11453 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11454 (./conftest; exit; ) >&5 2>/dev/null
11456 case x$lt_status in
11457 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11458 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11459 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11462 # compilation failed
11463 lt_cv_dlopen_self=no
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11471 $as_echo "$lt_cv_dlopen_self" >&6; }
11473 if test "x$lt_cv_dlopen_self" = xyes; then
11474 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11476 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11477 if ${lt_cv_dlopen_self_static+:} false; then :
11478 $as_echo_n "(cached) " >&6
11480 if test "$cross_compiling" = yes; then :
11481 lt_cv_dlopen_self_static=cross
11483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11484 lt_status=$lt_dlunknown
11485 cat > conftest.$ac_ext <<_LT_EOF
11486 #line $LINENO "configure"
11487 #include "confdefs.h"
11496 # define LT_DLGLOBAL RTLD_GLOBAL
11499 # define LT_DLGLOBAL DL_GLOBAL
11501 # define LT_DLGLOBAL 0
11505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11506 find out it does not work in some platform. */
11507 #ifndef LT_DLLAZY_OR_NOW
11509 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11512 # define LT_DLLAZY_OR_NOW DL_LAZY
11515 # define LT_DLLAZY_OR_NOW RTLD_NOW
11518 # define LT_DLLAZY_OR_NOW DL_NOW
11520 # define LT_DLLAZY_OR_NOW 0
11527 /* When -fvisbility=hidden is used, assume the code has been annotated
11528 correspondingly for the symbols needed. */
11529 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11530 int fnord () __attribute__((visibility("default")));
11533 int fnord () { return 42; }
11536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11537 int status = $lt_dlunknown;
11541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11544 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11545 else puts (dlerror ());
11547 /* dlclose (self); */
11555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11556 (eval $ac_link) 2>&5
11558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11559 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11560 (./conftest; exit; ) >&5 2>/dev/null
11562 case x$lt_status in
11563 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11564 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11565 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11568 # compilation failed
11569 lt_cv_dlopen_self_static=no
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11577 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11580 CPPFLAGS="$save_CPPFLAGS"
11581 LDFLAGS="$save_LDFLAGS"
11586 case $lt_cv_dlopen_self in
11587 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11588 *) enable_dlopen_self=unknown ;;
11591 case $lt_cv_dlopen_self_static in
11592 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11593 *) enable_dlopen_self_static=unknown ;;
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11616 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11617 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11618 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11619 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11621 $as_echo "yes" >&6; }
11623 # FIXME - insert some real tests, host_os isn't really good enough
11626 if test -n "$STRIP" ; then
11627 striplib="$STRIP -x"
11628 old_striplib="$STRIP -S"
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11630 $as_echo "yes" >&6; }
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633 $as_echo "no" >&6; }
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11654 # Report which library types will actually be built
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11656 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11658 $as_echo "$can_build_shared" >&6; }
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11661 $as_echo_n "checking whether to build shared libraries... " >&6; }
11662 test "$can_build_shared" = "no" && enable_shared=no
11664 # On AIX, shared libraries and static libraries use the same namespace, and
11665 # are all built from PIC.
11668 test "$enable_shared" = yes && enable_static=no
11669 if test -n "$RANLIB"; then
11670 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11671 postinstall_cmds='$RANLIB $lib'
11676 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11677 test "$enable_shared" = yes && enable_static=no
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11682 $as_echo "$enable_shared" >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11685 $as_echo_n "checking whether to build static libraries... " >&6; }
11686 # Make sure either enable_shared or enable_static is yes.
11687 test "$enable_shared" = yes || enable_static=yes
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11689 $as_echo "$enable_static" >&6; }
11696 ac_cpp='$CPP $CPPFLAGS'
11697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11703 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11704 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11705 (test "X$CXX" != "Xg++"))) ; then
11707 ac_cpp='$CXXCPP $CPPFLAGS'
11708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11712 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11713 if test -z "$CXXCPP"; then
11714 if ${ac_cv_prog_CXXCPP+:} false; then :
11715 $as_echo_n "(cached) " >&6
11717 # Double quotes because CXXCPP needs to be expanded
11718 for CXXCPP in "$CXX -E" "/lib/cpp"
11720 ac_preproc_ok=false
11721 for ac_cxx_preproc_warn_flag in '' yes
11723 # Use a header file that comes with gcc, so configuring glibc
11724 # with a fresh cross-compiler works.
11725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11726 # <limits.h> exists even on freestanding compilers.
11727 # On the NeXT, cc -E runs the code through the compiler's parser,
11728 # not just through cpp. "Syntax error" is here to catch this case.
11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11732 @%:@ include <limits.h>
11734 @%:@ include <assert.h>
11738 if ac_fn_cxx_try_cpp "$LINENO"; then :
11741 # Broken: fails on valid input.
11744 rm -f conftest.err conftest.i conftest.$ac_ext
11746 # OK, works on sane cases. Now check whether nonexistent headers
11747 # can be detected and how.
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11750 @%:@include <ac_nonexistent.h>
11752 if ac_fn_cxx_try_cpp "$LINENO"; then :
11753 # Broken: success on invalid input.
11756 # Passes both tests.
11760 rm -f conftest.err conftest.i conftest.$ac_ext
11763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11764 rm -f conftest.i conftest.err conftest.$ac_ext
11765 if $ac_preproc_ok; then :
11770 ac_cv_prog_CXXCPP=$CXXCPP
11773 CXXCPP=$ac_cv_prog_CXXCPP
11775 ac_cv_prog_CXXCPP=$CXXCPP
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11778 $as_echo "$CXXCPP" >&6; }
11779 ac_preproc_ok=false
11780 for ac_cxx_preproc_warn_flag in '' yes
11782 # Use a header file that comes with gcc, so configuring glibc
11783 # with a fresh cross-compiler works.
11784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11785 # <limits.h> exists even on freestanding compilers.
11786 # On the NeXT, cc -E runs the code through the compiler's parser,
11787 # not just through cpp. "Syntax error" is here to catch this case.
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11791 @%:@ include <limits.h>
11793 @%:@ include <assert.h>
11797 if ac_fn_cxx_try_cpp "$LINENO"; then :
11800 # Broken: fails on valid input.
11803 rm -f conftest.err conftest.i conftest.$ac_ext
11805 # OK, works on sane cases. Now check whether nonexistent headers
11806 # can be detected and how.
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11809 @%:@include <ac_nonexistent.h>
11811 if ac_fn_cxx_try_cpp "$LINENO"; then :
11812 # Broken: success on invalid input.
11815 # Passes both tests.
11819 rm -f conftest.err conftest.i conftest.$ac_ext
11822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11823 rm -f conftest.i conftest.err conftest.$ac_ext
11824 if $ac_preproc_ok; then :
11827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11829 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11830 See \`config.log' for more details" "$LINENO" 5; }
11834 ac_cpp='$CPP $CPPFLAGS'
11835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11840 _lt_caught_CXX_error=yes
11844 ac_cpp='$CXXCPP $CPPFLAGS'
11845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11849 archive_cmds_need_lc_CXX=no
11850 allow_undefined_flag_CXX=
11851 always_export_symbols_CXX=no
11852 archive_expsym_cmds_CXX=
11853 compiler_needs_object_CXX=no
11854 export_dynamic_flag_spec_CXX=
11855 hardcode_direct_CXX=no
11856 hardcode_direct_absolute_CXX=no
11857 hardcode_libdir_flag_spec_CXX=
11858 hardcode_libdir_flag_spec_ld_CXX=
11859 hardcode_libdir_separator_CXX=
11860 hardcode_minus_L_CXX=no
11861 hardcode_shlibpath_var_CXX=unsupported
11862 hardcode_automatic_CXX=no
11863 inherit_rpath_CXX=no
11865 module_expsym_cmds_CXX=
11866 link_all_deplibs_CXX=unknown
11867 old_archive_cmds_CXX=$old_archive_cmds
11868 reload_flag_CXX=$reload_flag
11869 reload_cmds_CXX=$reload_cmds
11870 no_undefined_flag_CXX=
11871 whole_archive_flag_spec_CXX=
11872 enable_shared_with_static_runtimes_CXX=no
11874 # Source file extension for C++ test sources.
11877 # Object file extension for compiled C++ test sources.
11881 # No sense in running all these tests if we already determined that
11882 # the CXX compiler isn't working. Some variables (like enable_shared)
11883 # are currently assumed to apply to all compilers on this platform,
11884 # and will be corrupted by setting them based on a non-working compiler.
11885 if test "$_lt_caught_CXX_error" != yes; then
11886 # Code to be used in simple compile tests
11887 lt_simple_compile_test_code="int some_variable = 0;"
11889 # Code to be used in simple link tests
11890 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11892 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11899 # If no C compiler was specified, use CC.
11902 # If no C compiler flags were specified, use CFLAGS.
11903 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11905 # Allow CC to be a program name with arguments.
11909 # save warnings/boilerplate of simple test code
11910 ac_outfile=conftest.$ac_objext
11911 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11913 _lt_compiler_boilerplate=`cat conftest.err`
11916 ac_outfile=conftest.$ac_objext
11917 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11919 _lt_linker_boilerplate=`cat conftest.err`
11923 # Allow CC to be a program name with arguments.
11925 lt_save_CFLAGS=$CFLAGS
11929 lt_save_with_gnu_ld=$with_gnu_ld
11930 lt_save_path_LD=$lt_cv_path_LD
11931 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11932 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11934 $as_unset lt_cv_prog_gnu_ld
11936 if test -n "${lt_cv_path_LDCXX+set}"; then
11937 lt_cv_path_LD=$lt_cv_path_LDCXX
11939 $as_unset lt_cv_path_LD
11941 test -z "${LDCXX+set}" || LD=$LDCXX
11946 for cc_temp in $compiler""; do
11948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11954 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11957 if test -n "$compiler"; then
11958 # We don't want -fno-exception when compiling C++ code, so set the
11959 # no_builtin_flag separately
11960 if test "$GXX" = yes; then
11961 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11963 lt_prog_compiler_no_builtin_flag_CXX=
11966 if test "$GXX" = yes; then
11967 # Set up default GNU C++ configuration
11971 @%:@ Check whether --with-gnu-ld was given.
11972 if test "${with_gnu_ld+set}" = set; then :
11973 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11979 if test "$GCC" = yes; then
11980 # Check if gcc -print-prog-name=ld gives a path.
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11982 $as_echo_n "checking for ld used by $CC... " >&6; }
11985 # gcc leaves a trailing carriage return which upsets mingw
11986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11991 # Accept absolute paths.
11993 re_direlt='/[^/][^/]*/\.\./'
11994 # Canonicalize the pathname of ld
11995 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11996 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11997 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11999 test -z "$LD" && LD="$ac_prog"
12002 # If it fails, then pretend we aren't using GCC.
12006 # If it is relative, then search for the first ld in PATH.
12007 with_gnu_ld=unknown
12010 elif test "$with_gnu_ld" = yes; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12012 $as_echo_n "checking for GNU ld... " >&6; }
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12015 $as_echo_n "checking for non-GNU ld... " >&6; }
12017 if ${lt_cv_path_LD+:} false; then :
12018 $as_echo_n "(cached) " >&6
12020 if test -z "$LD"; then
12021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12022 for ac_dir in $PATH; do
12024 test -z "$ac_dir" && ac_dir=.
12025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12026 lt_cv_path_LD="$ac_dir/$ac_prog"
12027 # Check to see if the program is GNU ld. I'd rather use --version,
12028 # but apparently some variants of GNU ld only accept -v.
12029 # Break only if it was the GNU/non-GNU ld that we prefer.
12030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12031 *GNU* | *'with BFD'*)
12032 test "$with_gnu_ld" != no && break
12035 test "$with_gnu_ld" != yes && break
12042 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12046 LD="$lt_cv_path_LD"
12047 if test -n "$LD"; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12049 $as_echo "$LD" >&6; }
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12054 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12056 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12057 if ${lt_cv_prog_gnu_ld+:} false; then :
12058 $as_echo_n "(cached) " >&6
12060 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12061 case `$LD -v 2>&1 </dev/null` in
12062 *GNU* | *'with BFD'*)
12063 lt_cv_prog_gnu_ld=yes
12066 lt_cv_prog_gnu_ld=no
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12071 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12072 with_gnu_ld=$lt_cv_prog_gnu_ld
12080 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12081 # archiving commands below assume that GNU ld is being used.
12082 if test "$with_gnu_ld" = yes; then
12083 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12084 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'
12086 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12087 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12089 # If archive_cmds runs LD, not CC, wlarc should be empty
12090 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12091 # investigate it a little bit more. (MM)
12094 # ancient GNU ld didn't support --whole-archive et. al.
12095 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12096 $GREP 'no-whole-archive' > /dev/null; then
12097 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12099 whole_archive_flag_spec_CXX=
12105 # A generic and very simple default shared library creation
12106 # command for GNU C++ for the case where it uses the native
12107 # linker, instead of GNU ld. If possible, this setting should
12108 # overridden to take advantage of the native linker features on
12109 # the platform it is being used on.
12110 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12113 # Commands to make compiler produce verbose output that lists
12114 # what "hidden" libraries, object files and flags are used when
12115 # linking a shared library.
12116 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12124 # PORTME: fill in a description of your system's C++ link characteristics
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12126 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12130 # FIXME: insert proper C++ library support
12134 if test "$host_cpu" = ia64; then
12135 # On IA64, the linker does run time linking by default, so we don't
12136 # have to do anything special.
12137 aix_use_runtimelinking=no
12138 exp_sym_flag='-Bexport'
12141 aix_use_runtimelinking=no
12143 # Test if we are trying to use run time linking or normal
12144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12145 # need to do runtime linking.
12146 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12147 for ld_flag in $LDFLAGS; do
12150 aix_use_runtimelinking=yes
12158 exp_sym_flag='-bexport'
12159 no_entry_flag='-bnoentry'
12162 # When large executables or shared objects are built, AIX ld can
12163 # have problems creating the table of contents. If linking a library
12164 # or program results in "error TOC overflow" add -mminimal-toc to
12165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12168 archive_cmds_CXX=''
12169 hardcode_direct_CXX=yes
12170 hardcode_direct_absolute_CXX=yes
12171 hardcode_libdir_separator_CXX=':'
12172 link_all_deplibs_CXX=yes
12173 file_list_spec_CXX='${wl}-f,'
12175 if test "$GXX" = yes; then
12176 case $host_os in aix4.[012]|aix4.[012].*)
12177 # We only want to do this on AIX 4.2 and lower, the check
12178 # below for broken collect2 doesn't work under 4.3+
12179 collect2name=`${CC} -print-prog-name=collect2`
12180 if test -f "$collect2name" &&
12181 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12183 # We have reworked collect2
12186 # We have old collect2
12187 hardcode_direct_CXX=unsupported
12188 # It fails to find uninstalled libraries when the uninstalled
12189 # path is not listed in the libpath. Setting hardcode_minus_L
12190 # to unsupported forces relinking
12191 hardcode_minus_L_CXX=yes
12192 hardcode_libdir_flag_spec_CXX='-L$libdir'
12193 hardcode_libdir_separator_CXX=
12196 shared_flag='-shared'
12197 if test "$aix_use_runtimelinking" = yes; then
12198 shared_flag="$shared_flag "'${wl}-G'
12202 if test "$host_cpu" = ia64; then
12203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12204 # chokes on -Wl,-G. The following line is correct:
12207 if test "$aix_use_runtimelinking" = yes; then
12208 shared_flag='${wl}-G'
12210 shared_flag='${wl}-bM:SRE'
12215 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12216 # It seems that -bexpall does not export symbols beginning with
12217 # underscore (_), so it is better to generate a list of symbols to
12219 always_export_symbols_CXX=yes
12220 if test "$aix_use_runtimelinking" = yes; then
12221 # Warning - without using the other runtime loading flags (-brtl),
12222 # -berok will link without error, but may produce a broken library.
12223 allow_undefined_flag_CXX='-berok'
12224 # Determine the default libpath from the value encoded in an empty
12226 if test "${lt_cv_aix_libpath+set}" = set; then
12227 aix_libpath=$lt_cv_aix_libpath
12229 if ${lt_cv_aix_libpath__CXX+:} false; then :
12230 $as_echo_n "(cached) " >&6
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12243 if ac_fn_cxx_try_link "$LINENO"; then :
12245 lt_aix_libpath_sed='
12246 /Import File Strings/,/^$/ {
12248 s/^0 *\([^ ]*\) *$/\1/
12252 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12253 # Check for a 64-bit object if we didn't find anything.
12254 if test -z "$lt_cv_aix_libpath__CXX"; then
12255 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12258 rm -f core conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12260 if test -z "$lt_cv_aix_libpath__CXX"; then
12261 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12266 aix_libpath=$lt_cv_aix_libpath__CXX
12269 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12271 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12273 if test "$host_cpu" = ia64; then
12274 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12275 allow_undefined_flag_CXX="-z nodefs"
12276 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"
12278 # Determine the default libpath from the value encoded in an
12279 # empty executable.
12280 if test "${lt_cv_aix_libpath+set}" = set; then
12281 aix_libpath=$lt_cv_aix_libpath
12283 if ${lt_cv_aix_libpath__CXX+:} false; then :
12284 $as_echo_n "(cached) " >&6
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12297 if ac_fn_cxx_try_link "$LINENO"; then :
12299 lt_aix_libpath_sed='
12300 /Import File Strings/,/^$/ {
12302 s/^0 *\([^ ]*\) *$/\1/
12306 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12307 # Check for a 64-bit object if we didn't find anything.
12308 if test -z "$lt_cv_aix_libpath__CXX"; then
12309 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314 if test -z "$lt_cv_aix_libpath__CXX"; then
12315 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12320 aix_libpath=$lt_cv_aix_libpath__CXX
12323 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12324 # Warning - without using the other run time loading flags,
12325 # -berok will link without error, but may produce a broken library.
12326 no_undefined_flag_CXX=' ${wl}-bernotok'
12327 allow_undefined_flag_CXX=' ${wl}-berok'
12328 if test "$with_gnu_ld" = yes; then
12329 # We only use this code for GNU lds that support --whole-archive.
12330 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12332 # Exported symbols can be pulled into shared objects from archives
12333 whole_archive_flag_spec_CXX='$convenience'
12335 archive_cmds_need_lc_CXX=yes
12336 # This is similar to how AIX traditionally builds its shared
12338 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12345 allow_undefined_flag_CXX=unsupported
12346 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12347 # support --undefined. This deserves some investigation. FIXME
12348 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12355 case $cc_basename in
12357 # FIXME: insert proper C++ library support
12363 cygwin* | mingw* | pw32* | cegcc*)
12364 case $GXX,$cc_basename in
12367 # hardcode_libdir_flag_spec is actually meaningless, as there is
12368 # no search path for DLLs.
12369 hardcode_libdir_flag_spec_CXX=' '
12370 allow_undefined_flag_CXX=unsupported
12371 always_export_symbols_CXX=yes
12372 file_list_spec_CXX='@'
12373 # Tell ltmain to make .lib files, not .a files.
12375 # Tell ltmain to make .dll files, not .so files.
12377 # FIXME: Setting linknames here is a bad hack.
12378 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12379 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12380 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12382 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12384 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12386 # The linker will not automatically build a static lib if we build a DLL.
12387 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12388 enable_shared_with_static_runtimes_CXX=yes
12390 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12391 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12392 lt_tool_outputfile="@TOOL_OUTPUT@"~
12393 case $lt_outputfile in
12396 lt_outputfile="$lt_outputfile.exe"
12397 lt_tool_outputfile="$lt_tool_outputfile.exe"
12400 func_to_tool_file "$lt_outputfile"~
12401 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12402 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12403 $RM "$lt_outputfile.manifest";
12408 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12409 # as there is no search path for DLLs.
12410 hardcode_libdir_flag_spec_CXX='-L$libdir'
12411 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12412 allow_undefined_flag_CXX=unsupported
12413 always_export_symbols_CXX=no
12414 enable_shared_with_static_runtimes_CXX=yes
12416 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12417 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'
12418 # If the export-symbols file already is a .def file (1st line
12419 # is EXPORTS), use it as is; otherwise, prepend...
12420 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12421 cp $export_symbols $output_objdir/$soname.def;
12423 echo EXPORTS > $output_objdir/$soname.def;
12424 cat $export_symbols >> $output_objdir/$soname.def;
12426 $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'
12433 darwin* | rhapsody*)
12436 archive_cmds_need_lc_CXX=no
12437 hardcode_direct_CXX=no
12438 hardcode_automatic_CXX=yes
12439 hardcode_shlibpath_var_CXX=unsupported
12440 if test "$lt_cv_ld_force_load" = "yes"; then
12441 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\"`'
12443 whole_archive_flag_spec_CXX=''
12445 link_all_deplibs_CXX=yes
12446 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12447 case $cc_basename in
12448 ifort*) _lt_dar_can_shared=yes ;;
12449 *) _lt_dar_can_shared=$GCC ;;
12451 if test "$_lt_dar_can_shared" = "yes"; then
12452 output_verbose_link_cmd=func_echo_all
12453 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}"
12454 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12455 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}"
12456 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}"
12457 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12458 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}"
12459 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}"
12469 case $cc_basename in
12471 # FIXME: insert proper C++ library support
12475 # Green Hills C++ Compiler
12476 # FIXME: insert proper C++ library support
12480 # FIXME: insert proper C++ library support
12487 # C++ shared libraries reported to be fairly broken before
12493 archive_cmds_need_lc_CXX=no
12496 freebsd* | dragonfly*)
12497 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12506 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507 link_all_deplibs_CXX=yes
12511 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12512 hardcode_libdir_separator_CXX=:
12513 export_dynamic_flag_spec_CXX='${wl}-E'
12514 hardcode_direct_CXX=yes
12515 hardcode_minus_L_CXX=yes # Not in the search PATH,
12516 # but as the default
12517 # location of the library.
12519 case $cc_basename in
12521 # FIXME: insert proper C++ library support
12525 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12526 # Commands to make compiler produce verbose output that lists
12527 # what "hidden" libraries, object files and flags are used when
12528 # linking a shared library.
12530 # There doesn't appear to be a way to prevent this compiler from
12531 # explicitly linking system object files so we need to strip them
12532 # from the output so that they don't get included in the library
12534 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"'
12537 if test "$GXX" = yes; then
12538 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12540 # FIXME: insert proper C++ library support
12548 if test $with_gnu_ld = no; then
12549 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12550 hardcode_libdir_separator_CXX=:
12556 export_dynamic_flag_spec_CXX='${wl}-E'
12562 hardcode_direct_CXX=no
12563 hardcode_shlibpath_var_CXX=no
12566 hardcode_direct_CXX=yes
12567 hardcode_direct_absolute_CXX=yes
12568 hardcode_minus_L_CXX=yes # Not in the search PATH,
12569 # but as the default
12570 # location of the library.
12574 case $cc_basename in
12576 # FIXME: insert proper C++ library support
12582 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12585 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12588 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12591 # Commands to make compiler produce verbose output that lists
12592 # what "hidden" libraries, object files and flags are used when
12593 # linking a shared library.
12595 # There doesn't appear to be a way to prevent this compiler from
12596 # explicitly linking system object files so we need to strip them
12597 # from the output so that they don't get included in the library
12599 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"'
12602 if test "$GXX" = yes; then
12603 if test $with_gnu_ld = no; then
12606 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12609 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12612 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'
12617 # FIXME: insert proper C++ library support
12625 hardcode_direct_CXX=no
12626 hardcode_shlibpath_var_CXX=no
12627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12628 export_dynamic_flag_spec_CXX='${wl}-E'
12629 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12630 # Instead, shared libraries are loaded at an image base (0x10000000 by
12631 # default) and relocated if they conflict, which is a slow very memory
12632 # consuming and fragmenting process. To avoid this, we pick a random,
12633 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12634 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12635 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'
12636 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'
12639 case $cc_basename in
12642 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'
12644 # Archives containing C++ object files must be created using
12645 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12646 # necessary to make sure instantiated templates are included
12648 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12651 if test "$GXX" = yes; then
12652 if test "$with_gnu_ld" = no; then
12653 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'
12655 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'
12658 link_all_deplibs_CXX=yes
12661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12662 hardcode_libdir_separator_CXX=:
12663 inherit_rpath_CXX=yes
12666 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12667 case $cc_basename in
12669 # Kuck and Associates, Inc. (KAI) C++ Compiler
12671 # KCC will only create a shared library if the output file
12672 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12673 # to its proper name (with version) after linking.
12674 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'
12675 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'
12676 # Commands to make compiler produce verbose output that lists
12677 # what "hidden" libraries, object files and flags are used when
12678 # linking a shared library.
12680 # There doesn't appear to be a way to prevent this compiler from
12681 # explicitly linking system object files so we need to strip them
12682 # from the output so that they don't get included in the library
12684 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"'
12686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12687 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12689 # Archives containing C++ object files must be created using
12690 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12691 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12696 # version 8.0 and above of icpc choke on multiply defined symbols
12697 # if we add $predep_objects and $postdep_objects, however 7.1 and
12698 # earlier do not add the objects themselves.
12699 case `$CC -V 2>&1` in
12701 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12702 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'
12704 *) # Version 8.0 or newer
12707 ia64*) tmp_idyn=' -i_dynamic';;
12709 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12710 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'
12713 archive_cmds_need_lc_CXX=no
12714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12716 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12719 # Portland Group C++ compiler
12721 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12722 prelink_cmds_CXX='tpldir=Template.dir~
12724 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12725 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12726 old_archive_cmds_CXX='tpldir=Template.dir~
12728 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12729 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12731 archive_cmds_CXX='tpldir=Template.dir~
12733 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12734 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12735 archive_expsym_cmds_CXX='tpldir=Template.dir~
12737 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12738 $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'
12740 *) # Version 6 and above use weak symbols
12741 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12742 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'
12746 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12748 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'
12752 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753 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'
12755 runpath_var=LD_RUN_PATH
12756 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12757 hardcode_libdir_separator_CXX=:
12759 # Commands to make compiler produce verbose output that lists
12760 # what "hidden" libraries, object files and flags are used when
12761 # linking a shared library.
12763 # There doesn't appear to be a way to prevent this compiler from
12764 # explicitly linking system object files so we need to strip them
12765 # from the output so that they don't get included in the library
12767 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'
12769 xl* | mpixl* | bgxl*)
12770 # IBM XL 8.0 on PPC, with GNU ld
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12773 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12774 if test "x$supports_anon_versioning" = xyes; then
12775 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12776 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12777 echo "local: *; };" >> $output_objdir/$libname.ver~
12778 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12782 case `$CC -V 2>&1 | sed 5q` in
12785 no_undefined_flag_CXX=' -zdefs'
12786 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12787 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'
12788 hardcode_libdir_flag_spec_CXX='-R$libdir'
12789 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'
12790 compiler_needs_object_CXX=yes
12792 # Not sure whether something based on
12793 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12795 output_verbose_link_cmd='func_echo_all'
12797 # Archives containing C++ object files must be created using
12798 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12799 # necessary to make sure instantiated templates are included
12801 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12809 # FIXME: insert proper C++ library support
12814 # FIXME: insert proper C++ library support
12819 case $cc_basename in
12821 # FIXME: insert proper C++ library support
12825 # FIXME: insert proper C++ library support
12832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12833 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12835 hardcode_libdir_flag_spec_CXX='-R$libdir'
12836 hardcode_direct_CXX=yes
12837 hardcode_shlibpath_var_CXX=no
12839 # Workaround some broken pre-1.5 toolchains
12840 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12848 # C++ shared libraries are fairly broken
12853 if test -f /usr/libexec/ld.so; then
12854 hardcode_direct_CXX=yes
12855 hardcode_shlibpath_var_CXX=no
12856 hardcode_direct_absolute_CXX=yes
12857 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12859 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12860 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12861 export_dynamic_flag_spec_CXX='${wl}-E'
12862 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12864 output_verbose_link_cmd=func_echo_all
12870 osf3* | osf4* | osf5*)
12871 case $cc_basename in
12873 # Kuck and Associates, Inc. (KAI) C++ Compiler
12875 # KCC will only create a shared library if the output file
12876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12877 # to its proper name (with version) after linking.
12878 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'
12880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12881 hardcode_libdir_separator_CXX=:
12883 # Archives containing C++ object files must be created using
12884 # the KAI C++ compiler.
12886 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12887 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12891 # Rational C++ 2.4.1
12892 # FIXME: insert proper C++ library support
12898 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12899 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'
12900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12903 allow_undefined_flag_CXX=' -expect_unresolved \*'
12904 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'
12905 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12906 echo "-hidden">> $lib.exp~
12907 $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~
12909 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12913 hardcode_libdir_separator_CXX=:
12915 # Commands to make compiler produce verbose output that lists
12916 # what "hidden" libraries, object files and flags are used when
12917 # linking a shared library.
12919 # There doesn't appear to be a way to prevent this compiler from
12920 # explicitly linking system object files so we need to strip them
12921 # from the output so that they don't get included in the library
12923 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"'
12926 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12927 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12930 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'
12933 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'
12937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12938 hardcode_libdir_separator_CXX=:
12940 # Commands to make compiler produce verbose output that lists
12941 # what "hidden" libraries, object files and flags are used when
12942 # linking a shared library.
12943 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12946 # FIXME: insert proper C++ library support
12954 # FIXME: insert proper C++ library support
12959 case $cc_basename in
12962 # FIXME: insert proper C++ library support
12967 # FIXME: insert proper C++ library support
12971 # FIXME: insert proper C++ library support
12978 case $cc_basename in
12980 # Sun C++ 4.2, 5.x and Centerline C++
12981 archive_cmds_need_lc_CXX=yes
12982 no_undefined_flag_CXX=' -zdefs'
12983 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12984 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12985 $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'
12987 hardcode_libdir_flag_spec_CXX='-R$libdir'
12988 hardcode_shlibpath_var_CXX=no
12990 solaris2.[0-5] | solaris2.[0-5].*) ;;
12992 # The compiler driver will combine and reorder linker options,
12993 # but understands `-z linker_flag'.
12994 # Supported since Solaris 2.6 (maybe 2.5.1?)
12995 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12998 link_all_deplibs_CXX=yes
13000 output_verbose_link_cmd='func_echo_all'
13002 # Archives containing C++ object files must be created using
13003 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13004 # necessary to make sure instantiated templates are included
13006 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13009 # Green Hills C++ Compiler
13010 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13012 # The C++ compiler must be used to create the archive.
13013 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13016 # GNU C++ compiler with Solaris linker
13017 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13018 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13019 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13020 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13021 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13022 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13024 # Commands to make compiler produce verbose output that lists
13025 # what "hidden" libraries, object files and flags are used when
13026 # linking a shared library.
13027 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13029 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13031 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13032 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13033 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13035 # Commands to make compiler produce verbose output that lists
13036 # what "hidden" libraries, object files and flags are used when
13037 # linking a shared library.
13038 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13041 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13043 solaris2.[0-5] | solaris2.[0-5].*) ;;
13045 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13054 no_undefined_flag_CXX='${wl}-z,text'
13055 archive_cmds_need_lc_CXX=no
13056 hardcode_shlibpath_var_CXX=no
13057 runpath_var='LD_RUN_PATH'
13059 case $cc_basename in
13061 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13065 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13066 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071 sysv5* | sco3.2v5* | sco5v6*)
13072 # Note: We can NOT use -z defs as we might desire, because we do not
13073 # link with -lc, and that would cause any symbols used from libc to
13074 # always be unresolved, which means just about no library would
13075 # ever link correctly. If we're not using GNU ld we use -z text
13076 # though, which does catch some bad symbols but isn't as heavy-handed
13078 no_undefined_flag_CXX='${wl}-z,text'
13079 allow_undefined_flag_CXX='${wl}-z,nodefs'
13080 archive_cmds_need_lc_CXX=no
13081 hardcode_shlibpath_var_CXX=no
13082 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13083 hardcode_libdir_separator_CXX=':'
13084 link_all_deplibs_CXX=yes
13085 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13086 runpath_var='LD_RUN_PATH'
13088 case $cc_basename in
13090 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13091 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13092 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13093 '"$old_archive_cmds_CXX"
13094 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13095 '"$reload_cmds_CXX"
13098 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 case $cc_basename in
13107 # NonStop-UX NCC 3.20
13108 # FIXME: insert proper C++ library support
13112 # FIXME: insert proper C++ library support
13119 # FIXME: insert proper C++ library support
13124 # FIXME: insert proper C++ library support
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13130 $as_echo "$ld_shlibs_CXX" >&6; }
13131 test "$ld_shlibs_CXX" = no && can_build_shared=no
13137 ## There is no encapsulation within the following macros, do not change
13138 ## the running order or otherwise move them around unless you know exactly
13139 ## what you are doing...
13140 # Dependencies to place before and after the object being linked:
13141 predep_objects_CXX=
13142 postdep_objects_CXX=
13145 compiler_lib_search_path_CXX=
13147 cat > conftest.$ac_ext <<_LT_EOF
13151 Foo (void) { a = 0; }
13158 _lt_libdeps_save_CFLAGS=$CFLAGS
13159 case "$CC $CFLAGS " in #(
13160 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13161 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13165 (eval $ac_compile) 2>&5
13167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13168 test $ac_status = 0; }; then
13169 # Parse the compiler output and extract the necessary
13170 # objects, libraries and library flags.
13172 # Sentinel used to keep track of whether or not we are before
13173 # the conftest object file.
13174 pre_test_object_deps_done=no
13176 for p in `eval "$output_verbose_link_cmd"`; do
13177 case ${prev}${p} in
13180 # Some compilers place space between "-{L,R}" and the path.
13181 # Remove the space.
13182 if test $p = "-L" ||
13183 test $p = "-R"; then
13188 # Expand the sysroot to ease extracting the directories later.
13189 if test -z "$prev"; then
13191 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13192 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13193 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13197 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13199 if test "$pre_test_object_deps_done" = no; then
13202 # Internal compiler library paths should come after those
13203 # provided the user. The postdeps already come after the
13204 # user supplied libs so there is no need to process them.
13205 if test -z "$compiler_lib_search_path_CXX"; then
13206 compiler_lib_search_path_CXX="${prev}${p}"
13208 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13211 # The "-l" case would never come before the object being
13212 # linked, so don't bother handling this case.
13215 if test -z "$postdeps_CXX"; then
13216 postdeps_CXX="${prev}${p}"
13218 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13224 *.lto.$objext) ;; # Ignore GCC LTO objects
13226 # This assumes that the test object file only shows up
13227 # once in the compiler output.
13228 if test "$p" = "conftest.$objext"; then
13229 pre_test_object_deps_done=yes
13233 if test "$pre_test_object_deps_done" = no; then
13234 if test -z "$predep_objects_CXX"; then
13235 predep_objects_CXX="$p"
13237 predep_objects_CXX="$predep_objects_CXX $p"
13240 if test -z "$postdep_objects_CXX"; then
13241 postdep_objects_CXX="$p"
13243 postdep_objects_CXX="$postdep_objects_CXX $p"
13248 *) ;; # Ignore the rest.
13256 echo "libtool.m4: error: problem compiling CXX test program"
13259 $RM -f confest.$objext
13260 CFLAGS=$_lt_libdeps_save_CFLAGS
13262 # PORTME: override above test on systems where it is broken
13265 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13266 # hack all around it, let's just trust "g++" to DTRT.
13267 predep_objects_CXX=
13268 postdep_objects_CXX=
13273 case `$CC -V 2>&1 | sed 5q` in
13277 # The more standards-conforming stlport4 library is
13278 # incompatible with the Cstd library. Avoid specifying
13279 # it if it's in CXXFLAGS. Ignore libCrun as
13280 # -library=stlport4 depends on it.
13281 case " $CXX $CXXFLAGS " in
13282 *" -library=stlport4 "*)
13283 solaris_use_stlport4=yes
13287 if test "$solaris_use_stlport4" != yes; then
13288 postdeps_CXX='-library=Cstd -library=Crun'
13295 case $cc_basename in
13297 # The more standards-conforming stlport4 library is
13298 # incompatible with the Cstd library. Avoid specifying
13299 # it if it's in CXXFLAGS. Ignore libCrun as
13300 # -library=stlport4 depends on it.
13301 case " $CXX $CXXFLAGS " in
13302 *" -library=stlport4 "*)
13303 solaris_use_stlport4=yes
13307 # Adding this requires a known-good setup of shared libraries for
13308 # Sun compiler versions before 5.6, else PIC objects from an old
13309 # archive will be linked into the output, leading to subtle bugs.
13310 if test "$solaris_use_stlport4" != yes; then
13311 postdeps_CXX='-library=Cstd -library=Crun'
13319 case " $postdeps_CXX " in
13320 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13322 compiler_lib_search_dirs_CXX=
13323 if test -n "${compiler_lib_search_path_CXX}"; then
13324 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13357 lt_prog_compiler_wl_CXX=
13358 lt_prog_compiler_pic_CXX=
13359 lt_prog_compiler_static_CXX=
13362 # C++ specific cases for pic, static, wl, etc.
13363 if test "$GXX" = yes; then
13364 lt_prog_compiler_wl_CXX='-Wl,'
13365 lt_prog_compiler_static_CXX='-static'
13369 # All AIX code is PIC.
13370 if test "$host_cpu" = ia64; then
13371 # AIX 5 now supports IA64 processor
13372 lt_prog_compiler_static_CXX='-Bstatic'
13379 # see comment about AmigaOS4 .so support
13380 lt_prog_compiler_pic_CXX='-fPIC'
13383 # FIXME: we need at least 68020 code to build shared libraries, but
13384 # adding the `-m68020' flag to GCC prevents building anything better,
13386 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13391 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13392 # PIC is the default for these OSes.
13394 mingw* | cygwin* | os2* | pw32* | cegcc*)
13395 # This hack is so that the source file can tell whether it is being
13396 # built for inclusion in a dll (and should export symbols for example).
13397 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13398 # (--disable-auto-import) libraries
13399 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13401 darwin* | rhapsody*)
13402 # PIC is the default on this platform
13403 # Common symbols not allowed in MH_DYLIB files
13404 lt_prog_compiler_pic_CXX='-fno-common'
13407 # DJGPP does not support shared libraries at all
13408 lt_prog_compiler_pic_CXX=
13411 # PIC is the default for Haiku.
13412 # The "-static" flag exists, but is broken.
13413 lt_prog_compiler_static_CXX=
13416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13417 # Instead, we relocate shared libraries at runtime.
13420 if test -d /usr/nec; then
13421 lt_prog_compiler_pic_CXX=-Kconform_pic
13425 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13426 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13427 # sets the default TLS model and affects inlining.
13432 lt_prog_compiler_pic_CXX='-fPIC'
13437 # QNX uses GNU C++, but need to define -shared option too, otherwise
13438 # it will coredump.
13439 lt_prog_compiler_pic_CXX='-fPIC -shared'
13442 lt_prog_compiler_pic_CXX='-fPIC'
13448 # All AIX code is PIC.
13449 if test "$host_cpu" = ia64; then
13450 # AIX 5 now supports IA64 processor
13451 lt_prog_compiler_static_CXX='-Bstatic'
13453 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13457 case $cc_basename in
13459 # Green Hills C++ Compiler
13460 # _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"
13464 mingw* | cygwin* | os2* | pw32* | cegcc*)
13465 # This hack is so that the source file can tell whether it is being
13466 # built for inclusion in a dll (and should export symbols for example).
13467 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13470 case $cc_basename in
13472 lt_prog_compiler_pic_CXX='-KPIC'
13475 # Green Hills C++ Compiler
13476 lt_prog_compiler_pic_CXX='-pic'
13482 freebsd* | dragonfly*)
13483 # FreeBSD uses GNU C++
13485 hpux9* | hpux10* | hpux11*)
13486 case $cc_basename in
13488 lt_prog_compiler_wl_CXX='-Wl,'
13489 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13490 if test "$host_cpu" != ia64; then
13491 lt_prog_compiler_pic_CXX='+Z'
13495 lt_prog_compiler_wl_CXX='-Wl,'
13496 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13502 lt_prog_compiler_pic_CXX='+Z'
13511 # This is c89, which is MS Visual C++ (no shared libs)
13512 # Anyone wants to do a port?
13514 irix5* | irix6* | nonstopux*)
13515 case $cc_basename in
13517 lt_prog_compiler_wl_CXX='-Wl,'
13518 lt_prog_compiler_static_CXX='-non_shared'
13519 # CC pic flag -KPIC is the default.
13525 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13526 case $cc_basename in
13529 lt_prog_compiler_wl_CXX='--backend -Wl,'
13530 lt_prog_compiler_pic_CXX='-fPIC'
13533 # old Intel C++ for x86_64 which still supported -KPIC.
13534 lt_prog_compiler_wl_CXX='-Wl,'
13535 lt_prog_compiler_pic_CXX='-KPIC'
13536 lt_prog_compiler_static_CXX='-static'
13539 # Intel C++, used to be incompatible with GCC.
13540 # ICC 10 doesn't accept -KPIC any more.
13541 lt_prog_compiler_wl_CXX='-Wl,'
13542 lt_prog_compiler_pic_CXX='-fPIC'
13543 lt_prog_compiler_static_CXX='-static'
13546 # Portland Group C++ compiler
13547 lt_prog_compiler_wl_CXX='-Wl,'
13548 lt_prog_compiler_pic_CXX='-fpic'
13549 lt_prog_compiler_static_CXX='-Bstatic'
13553 # Make sure the PIC flag is empty. It appears that all Alpha
13554 # Linux and Compaq Tru64 Unix objects are PIC.
13555 lt_prog_compiler_pic_CXX=
13556 lt_prog_compiler_static_CXX='-non_shared'
13558 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13559 # IBM XL 8.0, 9.0 on PPC and BlueGene
13560 lt_prog_compiler_wl_CXX='-Wl,'
13561 lt_prog_compiler_pic_CXX='-qpic'
13562 lt_prog_compiler_static_CXX='-qstaticlink'
13565 case `$CC -V 2>&1 | sed 5q` in
13568 lt_prog_compiler_pic_CXX='-KPIC'
13569 lt_prog_compiler_static_CXX='-Bstatic'
13570 lt_prog_compiler_wl_CXX='-Qoption ld '
13581 case $cc_basename in
13583 lt_prog_compiler_pic_CXX='-W c,exportall'
13592 # QNX uses GNU C++, but need to define -shared option too, otherwise
13593 # it will coredump.
13594 lt_prog_compiler_pic_CXX='-fPIC -shared'
13596 osf3* | osf4* | osf5*)
13597 case $cc_basename in
13599 lt_prog_compiler_wl_CXX='--backend -Wl,'
13602 # Rational C++ 2.4.1
13603 lt_prog_compiler_pic_CXX='-pic'
13606 # Digital/Compaq C++
13607 lt_prog_compiler_wl_CXX='-Wl,'
13608 # Make sure the PIC flag is empty. It appears that all Alpha
13609 # Linux and Compaq Tru64 Unix objects are PIC.
13610 lt_prog_compiler_pic_CXX=
13611 lt_prog_compiler_static_CXX='-non_shared'
13620 case $cc_basename in
13622 # Sun C++ 4.2, 5.x and Centerline C++
13623 lt_prog_compiler_pic_CXX='-KPIC'
13624 lt_prog_compiler_static_CXX='-Bstatic'
13625 lt_prog_compiler_wl_CXX='-Qoption ld '
13628 # Green Hills C++ Compiler
13629 lt_prog_compiler_pic_CXX='-PIC'
13636 case $cc_basename in
13639 lt_prog_compiler_pic_CXX='-pic'
13640 lt_prog_compiler_static_CXX='-Bstatic'
13644 lt_prog_compiler_pic_CXX='-pic'
13650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13651 case $cc_basename in
13653 lt_prog_compiler_wl_CXX='-Wl,'
13654 lt_prog_compiler_pic_CXX='-KPIC'
13655 lt_prog_compiler_static_CXX='-Bstatic'
13660 case $cc_basename in
13662 # NonStop-UX NCC 3.20
13663 lt_prog_compiler_pic_CXX='-KPIC'
13672 lt_prog_compiler_can_build_shared_CXX=no
13678 # For platforms which do not support PIC, -DPIC is meaningless:
13680 lt_prog_compiler_pic_CXX=
13683 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13688 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13689 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13690 $as_echo_n "(cached) " >&6
13692 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13695 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13696 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13699 # Check to make sure the PIC flag actually works.
13701 if test -n "$lt_prog_compiler_pic_CXX"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13703 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13704 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13705 $as_echo_n "(cached) " >&6
13707 lt_cv_prog_compiler_pic_works_CXX=no
13708 ac_outfile=conftest.$ac_objext
13709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13710 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
13711 # Insert the option either (1) after the last *FLAGS variable, or
13712 # (2) before a word containing "conftest.", or (3) at the end.
13713 # Note that $ac_compile itself does not contain backslashes and begins
13714 # with a dollar sign (not a hyphen), so the echo should work correctly.
13715 # The option is referenced via a variable to avoid confusing sed.
13716 lt_compile=`echo "$ac_compile" | $SED \
13717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13719 -e 's:$: $lt_compiler_flag:'`
13720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13721 (eval "$lt_compile" 2>conftest.err)
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 if (exit $ac_status) && test -s "$ac_outfile"; then
13726 # The compiler can only warn and ignore the option if not recognized
13727 # So say no if there are warnings other than the usual output.
13728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13731 lt_cv_prog_compiler_pic_works_CXX=yes
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13738 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13740 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13741 case $lt_prog_compiler_pic_CXX in
13743 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13746 lt_prog_compiler_pic_CXX=
13747 lt_prog_compiler_can_build_shared_CXX=no
13757 # Check to make sure the static flag actually works.
13759 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13761 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13762 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13763 $as_echo_n "(cached) " >&6
13765 lt_cv_prog_compiler_static_works_CXX=no
13766 save_LDFLAGS="$LDFLAGS"
13767 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13768 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13770 # The linker can only warn and ignore the option if not recognized
13771 # So say no if there are warnings
13772 if test -s conftest.err; then
13773 # Append any errors to the config.log.
13774 cat conftest.err 1>&5
13775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13777 if diff conftest.exp conftest.er2 >/dev/null; then
13778 lt_cv_prog_compiler_static_works_CXX=yes
13781 lt_cv_prog_compiler_static_works_CXX=yes
13785 LDFLAGS="$save_LDFLAGS"
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13789 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13791 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13794 lt_prog_compiler_static_CXX=
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13802 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13803 $as_echo_n "(cached) " >&6
13805 lt_cv_prog_compiler_c_o_CXX=no
13806 $RM -r conftest 2>/dev/null
13810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13812 lt_compiler_flag="-o out/conftest2.$ac_objext"
13813 # Insert the option either (1) after the last *FLAGS variable, or
13814 # (2) before a word containing "conftest.", or (3) at the end.
13815 # Note that $ac_compile itself does not contain backslashes and begins
13816 # with a dollar sign (not a hyphen), so the echo should work correctly.
13817 lt_compile=`echo "$ac_compile" | $SED \
13818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820 -e 's:$: $lt_compiler_flag:'`
13821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13822 (eval "$lt_compile" 2>out/conftest.err)
13824 cat out/conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13828 # The compiler can only warn and ignore the option if not recognized
13829 # So say no if there are warnings
13830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13833 lt_cv_prog_compiler_c_o_CXX=yes
13838 # SGI C++ compiler will create directory out/ii_files/ for
13839 # template instantiation
13840 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13841 $RM out/* && rmdir out
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13848 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13854 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13855 $as_echo_n "(cached) " >&6
13857 lt_cv_prog_compiler_c_o_CXX=no
13858 $RM -r conftest 2>/dev/null
13862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13864 lt_compiler_flag="-o out/conftest2.$ac_objext"
13865 # Insert the option either (1) after the last *FLAGS variable, or
13866 # (2) before a word containing "conftest.", or (3) at the end.
13867 # Note that $ac_compile itself does not contain backslashes and begins
13868 # with a dollar sign (not a hyphen), so the echo should work correctly.
13869 lt_compile=`echo "$ac_compile" | $SED \
13870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13872 -e 's:$: $lt_compiler_flag:'`
13873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13874 (eval "$lt_compile" 2>out/conftest.err)
13876 cat out/conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13880 # The compiler can only warn and ignore the option if not recognized
13881 # So say no if there are warnings
13882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13885 lt_cv_prog_compiler_c_o_CXX=yes
13890 # SGI C++ compiler will create directory out/ii_files/ for
13891 # template instantiation
13892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13893 $RM out/* && rmdir out
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13900 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13905 hard_links="nottested"
13906 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13907 # do not overwrite the value of need_locks provided by the user
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13909 $as_echo_n "checking if we can lock with hard links... " >&6; }
13912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13914 ln conftest.a conftest.b 2>&5 || hard_links=no
13915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13917 $as_echo "$hard_links" >&6; }
13918 if test "$hard_links" = no; then
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13920 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13932 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13933 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13936 # If we're using GNU nm, then we don't want the "-C" option.
13937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13938 # Also, AIX nm treats weak defined symbols like other global defined
13939 # symbols, whereas GNU nm marks them as "W".
13940 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13941 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13943 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13947 export_symbols_cmds_CXX="$ltdll_cmds"
13949 cygwin* | mingw* | cegcc*)
13950 case $cc_basename in
13953 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'
13954 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13964 $as_echo "$ld_shlibs_CXX" >&6; }
13965 test "$ld_shlibs_CXX" = no && can_build_shared=no
13967 with_gnu_ld_CXX=$with_gnu_ld
13975 # Do we need to explicitly link libc?
13977 case "x$archive_cmds_need_lc_CXX" in
13979 # Assume -lc should be added
13980 archive_cmds_need_lc_CXX=yes
13982 if test "$enable_shared" = yes && test "$GCC" = yes; then
13983 case $archive_cmds_CXX in
13985 # FIXME: we may have to deal with multi-command sequences.
13988 # Test whether the compiler implicitly links with -lc since on some
13989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13990 # to ld, don't add -lc before -lgcc.
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13992 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13993 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13994 $as_echo_n "(cached) " >&6
13997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14000 (eval $ac_compile) 2>&5
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; } 2>conftest.err; then
14006 libobjs=conftest.$ac_objext
14008 wl=$lt_prog_compiler_wl_CXX
14009 pic_flag=$lt_prog_compiler_pic_CXX
14015 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14016 allow_undefined_flag_CXX=
14017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14018 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14021 test $ac_status = 0; }
14023 lt_cv_archive_cmds_need_lc_CXX=no
14025 lt_cv_archive_cmds_need_lc_CXX=yes
14027 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14029 cat conftest.err 1>&5
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14035 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14036 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14107 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14109 library_names_spec=
14110 libname_spec='lib$name'
14114 postuninstall_cmds=
14118 shlibpath_overrides_runpath=unknown
14120 dynamic_linker="$host_os ld.so"
14121 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14122 need_lib_prefix=unknown
14123 hardcode_into_libs=no
14125 # when you set need_version to no, make sure it does not cause -set_version
14126 # flags to be left without arguments
14127 need_version=unknown
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14133 shlibpath_var=LIBPATH
14135 # AIX 3 has no versioning support, so we append a major version to the name.
14136 soname_spec='${libname}${release}${shared_ext}$major'
14143 hardcode_into_libs=yes
14144 if test "$host_cpu" = ia64; then
14145 # AIX 5 supports IA64
14146 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14147 shlibpath_var=LD_LIBRARY_PATH
14149 # With GCC up to 2.95.x, collect2 would create an import file
14150 # for dependence libraries. The import file would start with
14151 # the line `#! .'. This would cause the generated library to
14152 # depend on `.', always an invalid library. This was fixed in
14153 # development snapshots of GCC prior to 3.0.
14155 aix4 | aix4.[01] | aix4.[01].*)
14156 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14158 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14161 can_build_shared=no
14165 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14166 # soname into executable. Probably we can add versioning support to
14167 # collect2, so additional links can be useful in future.
14168 if test "$aix_use_runtimelinking" = yes; then
14169 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14170 # instead of lib<name>.a to let people know that these are not
14171 # typical AIX shared libraries.
14172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14174 # We preserve .a as extension for shared libraries through AIX4.2
14175 # and later when we are not doing run time linking.
14176 library_names_spec='${libname}${release}.a $libname.a'
14177 soname_spec='${libname}${release}${shared_ext}$major'
14179 shlibpath_var=LIBPATH
14186 # Since July 2007 AmigaOS4 officially supports .so libraries.
14187 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191 library_names_spec='$libname.ixlibrary $libname.a'
14192 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14193 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14199 library_names_spec='${libname}${shared_ext}'
14200 dynamic_linker="$host_os ld.so"
14201 shlibpath_var=LIBRARY_PATH
14207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14208 soname_spec='${libname}${release}${shared_ext}$major'
14209 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14210 shlibpath_var=LD_LIBRARY_PATH
14211 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14212 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14213 # the default ld.so.conf also contains /usr/contrib/lib and
14214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14215 # libtool to hard-code these into programs
14218 cygwin* | mingw* | pw32* | cegcc*)
14219 version_type=windows
14224 case $GCC,$cc_basename in
14227 library_names_spec='$libname.dll.a'
14228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14229 postinstall_cmds='base_file=`basename \${file}`~
14230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14231 dldir=$destdir/`dirname \$dlpath`~
14232 test -d \$dldir || mkdir -p \$dldir~
14233 $install_prog $dir/$dlname \$dldir/$dlname~
14234 chmod a+x \$dldir/$dlname~
14235 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14236 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14239 dlpath=$dir/\$dldll~
14241 shlibpath_overrides_runpath=yes
14245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14246 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14250 # MinGW DLLs use traditional 'lib' prefix
14251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14254 # pw32 DLLs use 'pw' prefix rather than 'lib'
14255 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14258 dynamic_linker='Win32 ld.exe'
14263 libname_spec='$name'
14264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14265 library_names_spec='${libname}.dll.lib'
14269 sys_lib_search_path_spec=
14272 for lt_path in $LIB
14275 # Let DOS variable expansion print the short 8.3 style file name.
14276 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14277 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14280 # Convert to MSYS style.
14281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14284 # Convert to unix form, then to dos form, then back to unix form
14285 # but this time dos style (no spaces!) so that the unix form looks
14286 # like /cygdrive/c/PROGRA~1:/cygdr...
14287 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14288 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14289 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14292 sys_lib_search_path_spec="$LIB"
14293 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14294 # It is most probably a Windows format PATH.
14295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14299 # FIXME: find the short name or the path components, as spaces are
14300 # common. (e.g. "Program Files" -> "PROGRA~1")
14304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14305 postinstall_cmds='base_file=`basename \${file}`~
14306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14307 dldir=$destdir/`dirname \$dlpath`~
14308 test -d \$dldir || mkdir -p \$dldir~
14309 $install_prog $dir/$dlname \$dldir/$dlname'
14310 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14311 dlpath=$dir/\$dldll~
14313 shlibpath_overrides_runpath=yes
14314 dynamic_linker='Win32 link.exe'
14318 # Assume MSVC wrapper
14319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14320 dynamic_linker='Win32 ld.exe'
14323 # FIXME: first we should search . and the directory the executable is in
14327 darwin* | rhapsody*)
14328 dynamic_linker="$host_os dyld"
14329 version_type=darwin
14332 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14333 soname_spec='${libname}${release}${major}$shared_ext'
14334 shlibpath_overrides_runpath=yes
14335 shlibpath_var=DYLD_LIBRARY_PATH
14336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14346 soname_spec='${libname}${release}${shared_ext}$major'
14347 shlibpath_var=LD_LIBRARY_PATH
14354 freebsd* | dragonfly*)
14355 # DragonFly does not have aout. When/if they implement a new
14356 # versioning mechanism, adjust this.
14357 if test -x /usr/bin/objformat; then
14358 objformat=`/usr/bin/objformat`
14361 freebsd[123]*) objformat=aout ;;
14362 *) objformat=elf ;;
14365 version_type=freebsd-$objformat
14366 case $version_type in
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14377 shlibpath_var=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath=yes
14382 freebsd3.[01]* | freebsdelf3.[01]*)
14383 shlibpath_overrides_runpath=yes
14384 hardcode_into_libs=yes
14386 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14387 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14388 shlibpath_overrides_runpath=no
14389 hardcode_into_libs=yes
14391 *) # from 4.6 on, and DragonFly
14392 shlibpath_overrides_runpath=yes
14393 hardcode_into_libs=yes
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 shlibpath_var=LD_LIBRARY_PATH
14405 hardcode_into_libs=yes
14412 dynamic_linker="$host_os runtime_loader"
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 shlibpath_var=LIBRARY_PATH
14416 shlibpath_overrides_runpath=yes
14417 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14418 hardcode_into_libs=yes
14421 hpux9* | hpux10* | hpux11*)
14422 # Give a soname corresponding to the major version so that dld.sl refuses to
14423 # link against other versions.
14430 hardcode_into_libs=yes
14431 dynamic_linker="$host_os dld.so"
14432 shlibpath_var=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435 soname_spec='${libname}${release}${shared_ext}$major'
14436 if test "X$HPUX_IA64_MODE" = X32; then
14437 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14445 hardcode_into_libs=yes
14446 dynamic_linker="$host_os dld.sl"
14447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450 soname_spec='${libname}${release}${shared_ext}$major'
14451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14456 dynamic_linker="$host_os dld.sl"
14457 shlibpath_var=SHLIB_PATH
14458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14463 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14464 postinstall_cmds='chmod 555 $lib'
14465 # or fails outright, so override atomically:
14466 install_override_mode=555
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 shlibpath_overrides_runpath=no
14478 hardcode_into_libs=yes
14481 irix5* | irix6* | nonstopux*)
14483 nonstopux*) version_type=nonstopux ;;
14485 if test "$lt_cv_prog_gnu_ld" = yes; then
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14496 irix5* | nonstopux*)
14497 libsuff= shlibsuff=
14500 case $LD in # libtool.m4 will add one of these switches to LD
14501 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14502 libsuff= shlibsuff= libmagic=32-bit;;
14503 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14504 libsuff=32 shlibsuff=N32 libmagic=N32;;
14505 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14506 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14507 *) libsuff= shlibsuff= libmagic=never-match;;
14511 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14512 shlibpath_overrides_runpath=no
14513 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14514 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14515 hardcode_into_libs=yes
14518 # No shared lib support for Linux oldld, aout, or coff.
14519 linux*oldld* | linux*aout* | linux*coff*)
14523 # This must be Linux ELF.
14524 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14531 shlibpath_var=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath=no
14534 # Some binutils ld are patched to set DT_RUNPATH
14535 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14536 $as_echo_n "(cached) " >&6
14538 lt_cv_shlibpath_overrides_runpath=no
14539 save_LDFLAGS=$LDFLAGS
14540 save_libdir=$libdir
14541 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14542 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14554 if ac_fn_cxx_try_link "$LINENO"; then :
14555 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14556 lt_cv_shlibpath_overrides_runpath=yes
14559 rm -f core conftest.err conftest.$ac_objext \
14560 conftest$ac_exeext conftest.$ac_ext
14561 LDFLAGS=$save_LDFLAGS
14562 libdir=$save_libdir
14566 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14568 # This implies no fast_install, which is unacceptable.
14569 # Some rework will be needed to allow for fast_install
14570 # before this can be enabled.
14571 hardcode_into_libs=yes
14573 # Append ld.so.conf contents to the search path
14574 if test -f /etc/ld.so.conf; then
14575 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' ' '`
14576 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14579 # We used to test for /lib/ld.so.1 and disable shared libraries on
14580 # powerpc, because MkLinux only supported shared libraries with the
14581 # GNU dynamic linker. Since this was broken with cross compilers,
14582 # most powerpc-linux boxes support dynamic linking these days and
14583 # people can always --disable-shared, the test was removed, and we
14584 # assume the GNU/Linux dynamic linker is in use.
14585 dynamic_linker='GNU/Linux ld.so'
14592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14595 dynamic_linker='NetBSD (a.out) ld.so'
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 dynamic_linker='NetBSD ld.elf_so'
14601 shlibpath_var=LD_LIBRARY_PATH
14602 shlibpath_overrides_runpath=yes
14603 hardcode_into_libs=yes
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath=yes
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618 soname_spec='${libname}${release}${shared_ext}$major'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 shlibpath_overrides_runpath=no
14621 hardcode_into_libs=yes
14622 dynamic_linker='ldqnx.so'
14627 sys_lib_dlsearch_path_spec="/usr/lib"
14629 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14631 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14632 *) need_version=no ;;
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14639 openbsd2.[89] | openbsd2.[89].*)
14640 shlibpath_overrides_runpath=no
14643 shlibpath_overrides_runpath=yes
14647 shlibpath_overrides_runpath=yes
14652 libname_spec='$name'
14655 library_names_spec='$libname${shared_ext} $libname.a'
14656 dynamic_linker='OS/2 ld.exe'
14657 shlibpath_var=LIBPATH
14660 osf3* | osf4* | osf5*)
14664 soname_spec='${libname}${release}${shared_ext}$major'
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14668 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14683 hardcode_into_libs=yes
14684 # ldd complains unless libraries are executable
14685 postinstall_cmds='chmod +x $lib'
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14691 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=yes
14694 if test "$with_gnu_ld" = yes; then
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 case $host_vendor in
14707 shlibpath_overrides_runpath=no
14709 runpath_var=LD_RUN_PATH
14717 shlibpath_overrides_runpath=no
14718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14724 if test -d /usr/nec ;then
14726 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14727 soname_spec='$libname${shared_ext}.$major'
14728 shlibpath_var=LD_LIBRARY_PATH
14732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14733 version_type=freebsd-elf
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 shlibpath_overrides_runpath=yes
14740 hardcode_into_libs=yes
14741 if test "$with_gnu_ld" = yes; then
14742 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14744 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14747 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14751 sys_lib_dlsearch_path_spec='/usr/lib'
14755 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 shlibpath_overrides_runpath=no
14762 hardcode_into_libs=yes
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 shlibpath_var=LD_LIBRARY_PATH
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14777 $as_echo "$dynamic_linker" >&6; }
14778 test "$dynamic_linker" = no && can_build_shared=no
14780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14781 if test "$GCC" = yes; then
14782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14785 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14786 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14788 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14789 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14830 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14831 hardcode_action_CXX=
14832 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14833 test -n "$runpath_var_CXX" ||
14834 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14836 # We can hardcode non-existent directories.
14837 if test "$hardcode_direct_CXX" != no &&
14838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14839 # have to relink, otherwise we might link with an installed library
14840 # when we should be linking with a yet-to-be-installed one
14841 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14842 test "$hardcode_minus_L_CXX" != no; then
14843 # Linking always hardcodes the temporary library directory.
14844 hardcode_action_CXX=relink
14846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14847 hardcode_action_CXX=immediate
14850 # We cannot hardcode anything, or else we can only hardcode existing
14852 hardcode_action_CXX=unsupported
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14855 $as_echo "$hardcode_action_CXX" >&6; }
14857 if test "$hardcode_action_CXX" = relink ||
14858 test "$inherit_rpath_CXX" = yes; then
14859 # Fast installation is not supported
14860 enable_fast_install=no
14861 elif test "$shlibpath_overrides_runpath" = yes ||
14862 test "$enable_shared" = no; then
14863 # Fast installation is not necessary
14864 enable_fast_install=needless
14873 fi # test -n "$compiler"
14876 CFLAGS=$lt_save_CFLAGS
14880 with_gnu_ld=$lt_save_with_gnu_ld
14881 lt_cv_path_LDCXX=$lt_cv_path_LD
14882 lt_cv_path_LD=$lt_save_path_LD
14883 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14884 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14885 fi # test "$_lt_caught_CXX_error" != yes
14888 ac_cpp='$CPP $CPPFLAGS'
14889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14905 ac_config_commands="$ac_config_commands libtool"
14910 # Only expand once:
14915 *-*-mingw*|*-*-cygwin*)
14917 $as_echo "@%:@define PLATFORM_WIN32 1" >>confdefs.h
14919 opengl_LIBS="-lunsupported_platform"
14920 PLATFORM_STRING="Win32"
14924 $as_echo "@%:@define PLATFORM_LINUX 1" >>confdefs.h
14926 opengl_LIBS="-lGL -lGLU -lglut"
14927 PLATFORM_STRING="Linux"
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hello" >&5
14931 $as_echo "$as_me: WARNING: Hello" >&2;}
14933 $as_echo "@%:@define PLATFORM_APPLE 1" >>confdefs.h
14935 opengl_LIBS="-framework AGL -framework OpenGL -framework GLUT"
14936 PLATFORM_STRING="Apple"
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please add $host to configure.ac checks!" >&5
14940 $as_echo "$as_me: WARNING: *** Please add $host to configure.ac checks!" >&2;}
14946 i?86-* | k?-* | athlon-* | pentium*-)
14948 $as_echo "@%:@define ARCH_X86 1" >>confdefs.h
14950 ARCH_SPECIFIC_CFLAGS=""
14955 $as_echo "@%:@define ARCH_X86_64 1" >>confdefs.h
14957 ARCH_SPECIFIC_CFLAGS="-DUSE_ADDR64"
14958 ARCH_STRING="X86-64"
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HI THERE!" >&5
14962 $as_echo "$as_me: WARNING: HI THERE!" >&2;}
14964 $as_echo "@%:@define ARCH_PPC 1" >>confdefs.h
14966 ARCH_SPECIFIC_CFLAGS=""
14967 ARCH_STRING="PowerPC"
14970 as_fn_error $? "Unknown Architecture" "$LINENO" 5
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14974 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14975 if ${ac_cv_c_bigendian+:} false; then :
14976 $as_echo_n "(cached) " >&6
14978 ac_cv_c_bigendian=unknown
14979 # See if we're dealing with a universal compiler.
14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14982 #ifndef __APPLE_CC__
14983 not a universal capable compiler
14988 if ac_fn_c_try_compile "$LINENO"; then :
14990 # Check for potential -arch flags. It is not universal unless
14991 # there are at least two -arch flags with different values.
14994 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14995 if test -n "$ac_prev"; then
14997 i?86 | x86_64 | ppc | ppc64)
14998 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15001 ac_cv_c_bigendian=universal
15007 elif test "x$ac_word" = "x-arch"; then
15012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15013 if test $ac_cv_c_bigendian = unknown; then
15014 # See if sys/param.h defines the BYTE_ORDER macro.
15015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15017 #include <sys/types.h>
15018 #include <sys/param.h>
15023 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15024 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15026 bogus endian macros
15033 if ac_fn_c_try_compile "$LINENO"; then :
15034 # It does; now see whether it defined to BIG_ENDIAN or not.
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037 #include <sys/types.h>
15038 #include <sys/param.h>
15043 #if BYTE_ORDER != BIG_ENDIAN
15051 if ac_fn_c_try_compile "$LINENO"; then :
15052 ac_cv_c_bigendian=yes
15054 ac_cv_c_bigendian=no
15056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15060 if test $ac_cv_c_bigendian = unknown; then
15061 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15064 #include <limits.h>
15069 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15070 bogus endian macros
15077 if ac_fn_c_try_compile "$LINENO"; then :
15078 # It does; now see whether it defined to _BIG_ENDIAN or not.
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 #include <limits.h>
15086 #ifndef _BIG_ENDIAN
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095 ac_cv_c_bigendian=yes
15097 ac_cv_c_bigendian=no
15099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 if test $ac_cv_c_bigendian = unknown; then
15104 # Compile a test program.
15105 if test "$cross_compiling" = yes; then :
15106 # Try to guess by grepping values from an object file.
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15109 short int ascii_mm[] =
15110 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15111 short int ascii_ii[] =
15112 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15113 int use_ascii (int i) {
15114 return ascii_mm[i] + ascii_ii[i];
15116 short int ebcdic_ii[] =
15117 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15118 short int ebcdic_mm[] =
15119 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15120 int use_ebcdic (int i) {
15121 return ebcdic_mm[i] + ebcdic_ii[i];
15128 return use_ascii (foo) == use_ebcdic (foo);
15133 if ac_fn_c_try_compile "$LINENO"; then :
15134 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15135 ac_cv_c_bigendian=yes
15137 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15138 if test "$ac_cv_c_bigendian" = unknown; then
15139 ac_cv_c_bigendian=no
15141 # finding both strings is unlikely to happen, but who knows?
15142 ac_cv_c_bigendian=unknown
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h. */
15150 $ac_includes_default
15155 /* Are we little or big endian? From Harbison&Steele. */
15159 char c[sizeof (long int)];
15162 return u.c[sizeof (long int) - 1] == 1;
15168 if ac_fn_c_try_run "$LINENO"; then :
15169 ac_cv_c_bigendian=no
15171 ac_cv_c_bigendian=yes
15173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15174 conftest.$ac_objext conftest.beam conftest.$ac_ext
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15180 $as_echo "$ac_cv_c_bigendian" >&6; }
15181 case $ac_cv_c_bigendian in #(
15183 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
15189 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15193 as_fn_error $? "unknown endianness
15194 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15199 #----------------------------------------------------------------------------
15200 # Setup for the configuration header.
15201 #----------------------------------------------------------------------------
15202 ac_config_headers="$ac_config_headers config.h"
15204 #----------------------------------------------------------------------------
15205 # Package configuration switches.
15206 #----------------------------------------------------------------------------
15207 @%:@ Check whether --enable-multithreaded was given.
15208 if test "${enable_multithreaded+set}" = set; then :
15209 enableval=$enable_multithreaded; disable_multithreaded=no
15211 disable_multithreaded=yes
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking BulletMultiThreaded" >&5
15215 $as_echo_n "checking BulletMultiThreaded... " >&6; }
15216 if test "$disable_multithreaded" = yes; then :
15217 build_multithreaded=no
15219 build_multithreaded=yes
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_multithreaded" >&5
15222 $as_echo "$build_multithreaded" >&6; }
15223 if test "$build_multithreaded" = yes; then
15224 CONDITIONAL_BUILD_MULTITHREADED_TRUE=
15225 CONDITIONAL_BUILD_MULTITHREADED_FALSE='#'
15227 CONDITIONAL_BUILD_MULTITHREADED_TRUE='#'
15228 CONDITIONAL_BUILD_MULTITHREADED_FALSE=
15232 @%:@ Check whether --enable-demos was given.
15233 if test "${enable_demos+set}" = set; then :
15234 enableval=$enable_demos;
15240 CONDITIONAL_BUILD_DEMOS_TRUE=
15241 CONDITIONAL_BUILD_DEMOS_FALSE='#'
15243 CONDITIONAL_BUILD_DEMOS_TRUE='#'
15244 CONDITIONAL_BUILD_DEMOS_FALSE=
15253 $as_echo "@%:@define HAVE_APPLE_OPENGL_FRAMEWORK 1" >>confdefs.h
15255 GL_LIBS="-framework GLUT -framework OpenGL -framework Carbon -framework AGL"
15261 have_gl_headers=yes
15262 for ac_header in GL/gl.h GL/glu.h GL/glext.h GL/glut.h
15264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef WIN32
15266 #include <windows.h>
15272 #include <GL/glu.h>
15276 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15277 cat >>confdefs.h <<_ACEOF
15278 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15290 TEMP_LDFLAGS="$LDFLAGS"
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
15292 $as_echo_n "checking for main in -lGL... " >&6; }
15293 if ${ac_cv_lib_GL_main+:} false; then :
15294 $as_echo_n "(cached) " >&6
15296 ac_check_lib_save_LIBS=$LIBS
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15310 if ac_fn_c_try_link "$LINENO"; then :
15311 ac_cv_lib_GL_main=yes
15313 ac_cv_lib_GL_main=no
15315 rm -f core conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
15317 LIBS=$ac_check_lib_save_LIBS
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
15320 $as_echo "$ac_cv_lib_GL_main" >&6; }
15321 if test "x$ac_cv_lib_GL_main" = xyes; then :
15322 GL_LIBS="-lGL"; have_gl=yes
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLU" >&5
15326 $as_echo_n "checking for main in -lGLU... " >&6; }
15327 if ${ac_cv_lib_GLU_main+:} false; then :
15328 $as_echo_n "(cached) " >&6
15330 ac_check_lib_save_LIBS=$LIBS
15331 LIBS="-lGLU -lGL $LIBS"
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15344 if ac_fn_c_try_link "$LINENO"; then :
15345 ac_cv_lib_GLU_main=yes
15347 ac_cv_lib_GLU_main=no
15349 rm -f core conftest.err conftest.$ac_objext \
15350 conftest$ac_exeext conftest.$ac_ext
15351 LIBS=$ac_check_lib_save_LIBS
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_main" >&5
15354 $as_echo "$ac_cv_lib_GLU_main" >&6; }
15355 if test "x$ac_cv_lib_GLU_main" = xyes; then :
15356 GL_LIBS="-lGLU $GL_LIBS"; have_glu=yes
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLUT" >&5
15360 $as_echo_n "checking for main in -lGLUT... " >&6; }
15361 if ${ac_cv_lib_GLUT_main+:} false; then :
15362 $as_echo_n "(cached) " >&6
15364 ac_check_lib_save_LIBS=$LIBS
15365 LIBS="-lGLUT -lGLUT $LIBS"
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15378 if ac_fn_c_try_link "$LINENO"; then :
15379 ac_cv_lib_GLUT_main=yes
15381 ac_cv_lib_GLUT_main=no
15383 rm -f core conftest.err conftest.$ac_objext \
15384 conftest$ac_exeext conftest.$ac_ext
15385 LIBS=$ac_check_lib_save_LIBS
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLUT_main" >&5
15388 $as_echo "$ac_cv_lib_GLUT_main" >&6; }
15389 if test "x$ac_cv_lib_GLUT_main" = xyes; then :
15390 GL_LIBS="-lGLUT -LGLU $GL_LIBS"; have_glut=yes
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopengl32" >&5
15394 $as_echo_n "checking for main in -lopengl32... " >&6; }
15395 if ${ac_cv_lib_opengl32_main+:} false; then :
15396 $as_echo_n "(cached) " >&6
15398 ac_check_lib_save_LIBS=$LIBS
15399 LIBS="-lopengl32 $LIBS"
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15412 if ac_fn_c_try_link "$LINENO"; then :
15413 ac_cv_lib_opengl32_main=yes
15415 ac_cv_lib_opengl32_main=no
15417 rm -f core conftest.err conftest.$ac_objext \
15418 conftest$ac_exeext conftest.$ac_ext
15419 LIBS=$ac_check_lib_save_LIBS
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opengl32_main" >&5
15422 $as_echo "$ac_cv_lib_opengl32_main" >&6; }
15423 if test "x$ac_cv_lib_opengl32_main" = xyes; then :
15424 GL_LIBS="-lopengl32"; have_gl=yes
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lglu32" >&5
15428 $as_echo_n "checking for main in -lglu32... " >&6; }
15429 if ${ac_cv_lib_glu32_main+:} false; then :
15430 $as_echo_n "(cached) " >&6
15432 ac_check_lib_save_LIBS=$LIBS
15433 LIBS="-lglu32 -lopengl32 $LIBS"
15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15446 if ac_fn_c_try_link "$LINENO"; then :
15447 ac_cv_lib_glu32_main=yes
15449 ac_cv_lib_glu32_main=no
15451 rm -f core conftest.err conftest.$ac_objext \
15452 conftest$ac_exeext conftest.$ac_ext
15453 LIBS=$ac_check_lib_save_LIBS
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glu32_main" >&5
15456 $as_echo "$ac_cv_lib_glu32_main" >&6; }
15457 if test "x$ac_cv_lib_glu32_main" = xyes; then :
15458 GL_LIBS="-lglu32 $GL_LIBS"; have_glu=yes
15461 LDFLAGS="$TEMP_LDFLAGS"
15462 if test $have_gl = no -o $have_glu = no -o $have_gl_headers = no; then
15463 if test x$enable_demos = xyes; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See \`config.log' for details." >&5
15465 $as_echo "$as_me: WARNING: Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See \`config.log' for details." >&2;}
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: Found OpenGL" >&5
15470 $as_echo "$as_me: Found OpenGL" >&6;}
15480 if test "x$enable_demos" != xno; then
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: Building Bullet demos" >&5
15482 $as_echo "$as_me: Building Bullet demos" >&6;}
15484 CONDITIONAL_BUILD_DEMOS_TRUE=
15485 CONDITIONAL_BUILD_DEMOS_FALSE='#'
15487 CONDITIONAL_BUILD_DEMOS_TRUE='#'
15488 CONDITIONAL_BUILD_DEMOS_FALSE=
15495 @%:@ Check whether --enable-debug was given.
15496 if test "${enable_debug+set}" = set; then :
15497 enableval=$enable_debug;
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build mode" >&5
15504 $as_echo_n "checking build mode... " >&6; }
15505 if test $enable_debug = yes; then :
15508 build_mode=optimize
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_mode" >&5
15511 $as_echo "$build_mode" >&6; }
15515 CFLAGS="$ARCH_SPECIFIC_CFLAGS $CFLAGS"
15516 CXXFLAGS="$ARCH_SPECIFIC_CFLAGS $CXXFLAGS $CFLAGS"
15517 #----------------------------------------------------------------------------
15518 # Emit generated files.
15519 #----------------------------------------------------------------------------
15520 ac_config_files="$ac_config_files bullet.pc Makefile Demos/Makefile Demos/SoftDemo/Makefile Demos/AllBulletDemos/Makefile Demos/MultiThreadedDemo/Makefile Demos/OpenGL/Makefile Demos/BasicDemo/Makefile Demos/CcdPhysicsDemo/Makefile Demos/VehicleDemo/Makefile Demos/TerrainDemo/Makefile src/Makefile Extras/Makefile"
15522 cat >confcache <<\_ACEOF
15523 # This file is a shell script that caches the results of configure
15524 # tests run on this system so they can be shared between configure
15525 # scripts and configure runs, see configure's option --config-cache.
15526 # It is not useful on other systems. If it contains results you don't
15527 # want to keep, you may remove or edit it.
15529 # config.status only pays attention to the cache file if you give it
15530 # the --recheck option to rerun configure.
15532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15534 # following values.
15538 # The following way of writing the cache mishandles newlines in values,
15539 # but we know of no workaround that is simple, portable, and efficient.
15540 # So, we kill variables containing newlines.
15541 # Ultrix sh set writes to stderr and can't be redirected directly,
15542 # and sets the high bit in the cache file unless we assign to the vars.
15544 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15545 eval ac_val=\$$ac_var
15549 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15550 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15553 _ | IFS | as_nl) ;; #(
15554 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15555 *) { eval $ac_var=; unset $ac_var;} ;;
15561 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15562 *${as_nl}ac_space=\ *)
15563 # `set' does not quote correctly, so add quotes: double-quote
15564 # substitution turns \\\\ into \\, and sed turns \\ into \.
15567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15570 # `set' quotes correctly as required by POSIX, so do not add quotes.
15571 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15580 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15582 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15584 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15585 if test -w "$cache_file"; then
15586 if test "x$cache_file" != "x/dev/null"; then
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15588 $as_echo "$as_me: updating cache $cache_file" >&6;}
15589 if test ! -f "$cache_file" || test -h "$cache_file"; then
15590 cat confcache >"$cache_file"
15592 case $cache_file in #(
15594 mv -f confcache "$cache_file"$$ &&
15595 mv -f "$cache_file"$$ "$cache_file" ;; #(
15597 mv -f confcache "$cache_file" ;;
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15603 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15608 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15609 # Let make expand exec_prefix.
15610 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15612 DEFS=-DHAVE_CONFIG_H
15617 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15618 # 1. Remove the extension, and $U if already installed.
15619 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15620 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15621 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15622 # will be set to the directory where LIBOBJS objects are built.
15623 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15624 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15626 LIB@&t@OBJS=$ac_libobjs
15628 LTLIBOBJS=$ac_ltlibobjs
15631 if test -n "$EXEEXT"; then
15633 am__EXEEXT_FALSE='#'
15635 am__EXEEXT_TRUE='#'
15639 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15640 as_fn_error $? "conditional \"AMDEP\" was never defined.
15641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15643 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15644 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15647 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15648 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15652 if test -z "${CONDITIONAL_BUILD_MULTITHREADED_TRUE}" && test -z "${CONDITIONAL_BUILD_MULTITHREADED_FALSE}"; then
15653 as_fn_error $? "conditional \"CONDITIONAL_BUILD_MULTITHREADED\" was never defined.
15654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15656 if test -z "${CONDITIONAL_BUILD_DEMOS_TRUE}" && test -z "${CONDITIONAL_BUILD_DEMOS_FALSE}"; then
15657 as_fn_error $? "conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined.
15658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15660 if test -z "${CONDITIONAL_BUILD_DEMOS_TRUE}" && test -z "${CONDITIONAL_BUILD_DEMOS_FALSE}"; then
15661 as_fn_error $? "conditional \"CONDITIONAL_BUILD_DEMOS\" was never defined.
15662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15665 : "${CONFIG_STATUS=./config.status}"
15667 ac_clean_files_save=$ac_clean_files
15668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15672 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15674 # Generated by $as_me.
15675 # Run this file to recreate the current configuration.
15676 # Compiler output produced by configure, useful for debugging
15677 # configure, is in config.log if it exists.
15680 ac_cs_recheck=false
15683 SHELL=\${CONFIG_SHELL-$SHELL}
15686 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15687 ## -------------------- ##
15688 ## M4sh Initialization. ##
15689 ## -------------------- ##
15691 # Be more Bourne compatible
15692 DUALCASE=1; export DUALCASE # for MKS sh
15693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15696 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15697 # is contrary to our usage. Disable this feature.
15698 alias -g '${1+"$@"}'='"$@"'
15699 setopt NO_GLOB_SUBST
15701 case `(set -o) 2>/dev/null` in @%:@(
15703 set -o posix ;; @%:@(
15713 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15714 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15717 # Prefer a ksh shell builtin over an external printf program on Solaris,
15718 # but without wasting forks for bash or zsh.
15719 if test -z "$BASH_VERSION$ZSH_VERSION" \
15720 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15721 as_echo='print -r --'
15722 as_echo_n='print -rn --'
15723 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15724 as_echo='printf %s\n'
15725 as_echo_n='printf %s'
15727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15729 as_echo_n='/usr/ucb/echo -n'
15731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15732 as_echo_n_body='eval
15736 expr "X$arg" : "X\\(.*\\)$as_nl";
15737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15741 export as_echo_n_body
15742 as_echo_n='sh -c $as_echo_n_body as_echo'
15744 export as_echo_body
15745 as_echo='sh -c $as_echo_body as_echo'
15748 # The user is always right.
15749 if test "${PATH_SEPARATOR+set}" != set; then
15751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15759 # We need space, tab and new line, in precisely that order. Quoting is
15760 # there to prevent editors from complaining about space-tab.
15761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15762 # splitting by setting IFS to empty value.)
15765 # Find who we are. Look in the path if we contain no directory separator.
15768 *[\\/]* ) as_myself=$0 ;;
15769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15770 for as_dir in $PATH
15773 test -z "$as_dir" && as_dir=.
15774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15780 # We did not find ourselves, most probably we were run as `sh COMMAND'
15781 # in which case we are not to be found in the path.
15782 if test "x$as_myself" = x; then
15785 if test ! -f "$as_myself"; then
15786 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15790 # Unset variables that we do not need and which cause bugs (e.g. in
15791 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15792 # suppresses any "Segmentation fault" message there. '((' could
15793 # trigger a bug in pdksh 5.2.14.
15794 for as_var in BASH_ENV ENV MAIL MAILPATH
15795 do eval test x\${$as_var+set} = xset \
15796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15809 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15812 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15813 @%:@ ----------------------------------------
15814 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15815 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15816 @%:@ script with STATUS, using 1 if that was 0.
15819 as_status=$1; test $as_status -eq 0 && as_status=1
15821 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15822 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15824 $as_echo "$as_me: error: $2" >&2
15825 as_fn_exit $as_status
15829 @%:@ as_fn_set_status STATUS
15830 @%:@ -----------------------
15831 @%:@ Set @S|@? to STATUS, without forking.
15832 as_fn_set_status ()
15835 } @%:@ as_fn_set_status
15837 @%:@ as_fn_exit STATUS
15838 @%:@ -----------------
15839 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15843 as_fn_set_status $1
15847 @%:@ as_fn_unset VAR
15848 @%:@ ---------------
15849 @%:@ Portably unset VAR.
15852 { eval $1=; unset $1;}
15854 as_unset=as_fn_unset
15855 @%:@ as_fn_append VAR VALUE
15856 @%:@ ----------------------
15857 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15858 @%:@ advantage of any shell optimizations that allow amortized linear growth over
15859 @%:@ repeated appends, instead of the typical quadratic growth present in naive
15860 @%:@ implementations.
15861 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15862 eval 'as_fn_append ()
15873 @%:@ as_fn_arith ARG...
15874 @%:@ ------------------
15875 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15876 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15877 @%:@ must be portable across @S|@(()) and expr.
15878 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15879 eval 'as_fn_arith ()
15886 as_val=`expr "$@" || test $? -eq 1`
15891 if expr a : '\(a\)' >/dev/null 2>&1 &&
15892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15898 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15899 as_basename=basename
15904 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15910 as_me=`$as_basename -- "$0" ||
15911 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15912 X"$0" : 'X\(//\)$' \| \
15913 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15915 sed '/^.*\/\([^/][^/]*\)\/*$/{
15929 # Avoid depending upon Character Ranges.
15930 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15931 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15932 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15933 as_cr_digits='0123456789'
15934 as_cr_alnum=$as_cr_Letters$as_cr_digits
15936 ECHO_C= ECHO_N= ECHO_T=
15937 case `echo -n x` in @%:@(((((
15939 case `echo 'xy\c'` in
15940 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15942 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15949 rm -f conf$$ conf$$.exe conf$$.file
15950 if test -d conf$$.dir; then
15951 rm -f conf$$.dir/conf$$.file
15954 mkdir conf$$.dir 2>/dev/null
15956 if (echo >conf$$.file) 2>/dev/null; then
15957 if ln -s conf$$.file conf$$ 2>/dev/null; then
15959 # ... but there are two gotchas:
15960 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15961 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15962 # In both cases, we have to default to `cp -p'.
15963 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15965 elif ln conf$$.file conf$$ 2>/dev/null; then
15973 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15974 rmdir conf$$.dir 2>/dev/null
15976 if mkdir -p . 2>/dev/null; then
15977 as_mkdir_p='mkdir -p'
15978 elif mkdirs . 2>/dev/null; then
15979 as_mkdir_p='mkdirs'
15983 test -d ./-p && rmdir ./-p
15985 if test -x / >/dev/null 2>&1; then
15986 as_test_x='test -x'
15988 if ls -dL / >/dev/null 2>&1; then
15995 if test -d "$1"; then
16001 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
16002 ???[sx]*):;;*)false;;esac;fi
16006 as_executable_p=$as_test_x
16008 # Sed expression to map a string onto a valid CPP name.
16009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16011 # Sed expression to map a string onto a valid variable name.
16012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16016 ## ----------------------------------- ##
16017 ## Main body of $CONFIG_STATUS script. ##
16018 ## ----------------------------------- ##
16020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16023 # Save the log message, to keep $0 and so on meaningful, and to
16024 # report actual input values of CONFIG_FILES etc. instead of their
16025 # values after options handling.
16027 This file was extended by bullet $as_me 2.81, which was
16028 generated by GNU Autoconf 2.68. Invocation command line was
16030 CONFIG_FILES = $CONFIG_FILES
16031 CONFIG_HEADERS = $CONFIG_HEADERS
16032 CONFIG_LINKS = $CONFIG_LINKS
16033 CONFIG_COMMANDS = $CONFIG_COMMANDS
16036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16041 case $ac_config_files in *"
16042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16045 case $ac_config_headers in *"
16046 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 # Files that config.status was made for.
16052 config_files="$ac_config_files"
16053 config_headers="$ac_config_headers"
16054 config_commands="$ac_config_commands"
16058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060 \`$as_me' instantiates files and other configuration actions
16061 from templates according to the current configuration. Unless the files
16062 and actions are specified as TAGs, all are instantiated by default.
16064 Usage: $0 [OPTION]... [TAG]...
16066 -h, --help print this help, then exit
16067 -V, --version print version number and configuration settings, then exit
16068 --config print configuration, then exit
16069 -q, --quiet, --silent
16070 do not print progress messages
16071 -d, --debug don't remove temporary files
16072 --recheck update $as_me by reconfiguring in the same conditions
16073 --file=FILE[:TEMPLATE]
16074 instantiate the configuration file FILE
16075 --header=FILE[:TEMPLATE]
16076 instantiate the configuration header FILE
16078 Configuration files:
16081 Configuration headers:
16084 Configuration commands:
16087 Report bugs to <bullet@erwincoumans.com>."
16090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16091 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16093 bullet config.status 2.81
16094 configured by $0, generated by GNU Autoconf 2.68,
16095 with options \\"\$ac_cs_config\\"
16097 Copyright (C) 2010 Free Software Foundation, Inc.
16098 This config.status script is free software; the Free Software Foundation
16099 gives unlimited permission to copy, distribute and modify it."
16106 test -n "\$AWK" || AWK=awk
16109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16110 # The default lists apply if the user does not specify any file.
16116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16121 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16133 # Handling of the options.
16134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16136 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16137 $as_echo "$ac_cs_version"; exit ;;
16138 --config | --confi | --conf | --con | --co | --c )
16139 $as_echo "$ac_cs_config"; exit ;;
16140 --debug | --debu | --deb | --de | --d | -d )
16142 --file | --fil | --fi | --f )
16145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16146 '') as_fn_error $? "missing file argument" ;;
16148 as_fn_append CONFIG_FILES " '$ac_optarg'"
16149 ac_need_defaults=false;;
16150 --header | --heade | --head | --hea )
16153 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16155 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16156 ac_need_defaults=false;;
16158 # Conflict between --help and --header
16159 as_fn_error $? "ambiguous option: \`$1'
16160 Try \`$0 --help' for more information.";;
16161 --help | --hel | -h )
16162 $as_echo "$ac_cs_usage"; exit ;;
16163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16164 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16167 # This is an error.
16168 -*) as_fn_error $? "unrecognized option: \`$1'
16169 Try \`$0 --help' for more information." ;;
16171 *) as_fn_append ac_config_targets " $1"
16172 ac_need_defaults=false ;;
16178 ac_configure_extra_args=
16180 if $ac_cs_silent; then
16182 ac_configure_extra_args="$ac_configure_extra_args --silent"
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 if \$ac_cs_recheck; then
16188 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16190 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16191 CONFIG_SHELL='$SHELL'
16192 export CONFIG_SHELL
16197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16201 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16202 @%:@@%:@ Running $as_me. @%:@@%:@
16208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16212 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16215 # The HP-UX ksh and POSIX shell print the target directory to stdout
16216 # if CDPATH is set.
16217 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16219 sed_quote_subst='$sed_quote_subst'
16220 double_quote_subst='$double_quote_subst'
16221 delay_variable_subst='$delay_variable_subst'
16222 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16223 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16224 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16225 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16226 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16227 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16228 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16229 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16230 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16231 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16232 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16233 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16234 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16235 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16236 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16237 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16238 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16239 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16240 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16241 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16242 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16243 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16244 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16245 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16246 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16247 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16248 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16249 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16250 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16251 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16252 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16253 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16254 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16255 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16256 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16257 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16258 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16259 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16260 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16261 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16262 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16263 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16264 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16265 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16266 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16267 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16268 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16269 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16270 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16271 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16272 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16273 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16274 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16275 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16276 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16277 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"`'
16278 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16279 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16280 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16281 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16282 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16283 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16284 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16285 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16286 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16287 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16288 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16289 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16290 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16291 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16292 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16293 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16294 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16295 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16296 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16297 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16298 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16299 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16300 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16301 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16302 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16303 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16304 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16305 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16306 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16307 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16308 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16309 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16310 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16311 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16312 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16313 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16314 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16315 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16316 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16317 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16318 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16319 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16320 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16321 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16322 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16323 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16324 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16325 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16326 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16327 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16328 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16329 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16330 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16331 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16332 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16333 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16334 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16335 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16336 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16337 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16338 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16339 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16340 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16341 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16342 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16343 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16344 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16345 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16346 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16347 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16348 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16349 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16350 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16351 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16352 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16353 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16354 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16355 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16356 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16357 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16358 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16359 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16360 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16361 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16362 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16363 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16364 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16365 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16366 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16367 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16368 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16369 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16370 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16371 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16372 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16373 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16374 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16375 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16376 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16377 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16378 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16379 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16380 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16381 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16382 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16383 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16384 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16385 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16386 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16387 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16388 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16389 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16390 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16391 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16392 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16393 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16394 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16395 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16396 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16397 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16398 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16399 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16400 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16401 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16402 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16403 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16404 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16405 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16406 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16409 LTCFLAGS='$LTCFLAGS'
16410 compiler='$compiler_DEFAULT'
16412 # A function that is used when there is no print builtin or printf.
16413 func_fallback_echo ()
16415 eval 'cat <<_LTECHO_EOF
16420 # Quote evaled strings.
16434 deplibs_check_method \
16439 sharedlib_from_linklib_cmd \
16442 archiver_list_spec \
16448 lt_cv_sys_global_symbol_pipe \
16449 lt_cv_sys_global_symbol_to_cdecl \
16450 lt_cv_sys_global_symbol_to_c_name_address \
16451 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16452 nm_file_list_spec \
16453 lt_prog_compiler_no_builtin_flag \
16454 lt_prog_compiler_pic \
16455 lt_prog_compiler_wl \
16456 lt_prog_compiler_static \
16457 lt_cv_prog_compiler_c_o \
16466 export_dynamic_flag_spec \
16467 whole_archive_flag_spec \
16468 compiler_needs_object \
16470 allow_undefined_flag \
16471 no_undefined_flag \
16472 hardcode_libdir_flag_spec \
16473 hardcode_libdir_flag_spec_ld \
16474 hardcode_libdir_separator \
16478 variables_saved_for_relink \
16480 library_names_spec \
16482 install_override_mode \
16486 compiler_lib_search_dirs \
16491 compiler_lib_search_path \
16495 lt_prog_compiler_no_builtin_flag_CXX \
16496 lt_prog_compiler_pic_CXX \
16497 lt_prog_compiler_wl_CXX \
16498 lt_prog_compiler_static_CXX \
16499 lt_cv_prog_compiler_c_o_CXX \
16500 export_dynamic_flag_spec_CXX \
16501 whole_archive_flag_spec_CXX \
16502 compiler_needs_object_CXX \
16504 allow_undefined_flag_CXX \
16505 no_undefined_flag_CXX \
16506 hardcode_libdir_flag_spec_CXX \
16507 hardcode_libdir_flag_spec_ld_CXX \
16508 hardcode_libdir_separator_CXX \
16509 exclude_expsyms_CXX \
16510 include_expsyms_CXX \
16511 file_list_spec_CXX \
16512 compiler_lib_search_dirs_CXX \
16513 predep_objects_CXX \
16514 postdep_objects_CXX \
16517 compiler_lib_search_path_CXX; do
16518 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16519 *[\\\\\\\`\\"\\\$]*)
16520 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16523 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16528 # Double-quote double-evaled strings.
16529 for var in reload_cmds \
16530 old_postinstall_cmds \
16531 old_postuninstall_cmds \
16533 extract_expsyms_cmds \
16534 old_archive_from_new_cmds \
16535 old_archive_from_expsyms_cmds \
16537 archive_expsym_cmds \
16539 module_expsym_cmds \
16540 export_symbols_cmds \
16544 postuninstall_cmds \
16546 sys_lib_search_path_spec \
16547 sys_lib_dlsearch_path_spec \
16549 old_archive_cmds_CXX \
16550 old_archive_from_new_cmds_CXX \
16551 old_archive_from_expsyms_cmds_CXX \
16553 archive_expsym_cmds_CXX \
16555 module_expsym_cmds_CXX \
16556 export_symbols_cmds_CXX \
16558 postlink_cmds_CXX; do
16559 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16560 *[\\\\\\\`\\"\\\$]*)
16561 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16564 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16569 ac_aux_dir='$ac_aux_dir'
16570 xsi_shell='$xsi_shell'
16571 lt_shell_append='$lt_shell_append'
16573 # See if we are running on zsh, and set the options which allow our
16574 # commands through without removal of \ escapes INIT.
16575 if test -n "\${ZSH_VERSION+set}" ; then
16576 setopt NO_GLOB_SUBST
16582 TIMESTAMP='$TIMESTAMP'
16593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16595 # Handling of arguments.
16596 for ac_config_target in $ac_config_targets
16598 case $ac_config_target in
16599 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16600 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16601 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16602 "bullet.pc") CONFIG_FILES="$CONFIG_FILES bullet.pc" ;;
16603 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16604 "Demos/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/Makefile" ;;
16605 "Demos/SoftDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/SoftDemo/Makefile" ;;
16606 "Demos/AllBulletDemos/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/AllBulletDemos/Makefile" ;;
16607 "Demos/MultiThreadedDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/MultiThreadedDemo/Makefile" ;;
16608 "Demos/OpenGL/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/OpenGL/Makefile" ;;
16609 "Demos/BasicDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/BasicDemo/Makefile" ;;
16610 "Demos/CcdPhysicsDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/CcdPhysicsDemo/Makefile" ;;
16611 "Demos/VehicleDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/VehicleDemo/Makefile" ;;
16612 "Demos/TerrainDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Demos/TerrainDemo/Makefile" ;;
16613 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16614 "Extras/Makefile") CONFIG_FILES="$CONFIG_FILES Extras/Makefile" ;;
16616 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16621 # If the user did not use the arguments to specify the items to instantiate,
16622 # then the envvar interface is used. Set only those that are not.
16623 # We use the long form for the default assignment because of an extremely
16624 # bizarre bug on SunOS 4.1.3.
16625 if $ac_need_defaults; then
16626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16628 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16631 # Have a temporary directory for convenience. Make it in the build tree
16632 # simply because there is no reason against having it here, and in addition,
16633 # creating and moving files from /tmp can sometimes cause problems.
16634 # Hook for its removal unless debugging.
16635 # Note that there is a small window in which the directory will not be cleaned:
16636 # after its creation but before its name has been assigned to `$tmp'.
16640 trap 'exit_status=$?
16641 : "${ac_tmp:=$tmp}"
16642 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16644 trap 'as_fn_exit 1' 1 2 13 15
16646 # Create a (secure) tmp directory for tmp files.
16649 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16653 tmp=./conf$$-$RANDOM
16654 (umask 077 && mkdir "$tmp")
16655 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16658 # Set up the scripts for CONFIG_FILES section.
16659 # No need to generate them if there are no CONFIG_FILES.
16660 # This happens for instance with `./config.status config.h'.
16661 if test -n "$CONFIG_FILES"; then
16664 ac_cr=`echo X | tr X '\015'`
16665 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16666 # But we know of no other shell where ac_cr would be empty at this
16667 # point, so we can use a bashism as a fallback.
16668 if test "x$ac_cr" = x; then
16669 eval ac_cr=\$\'\\r\'
16671 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16672 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16675 ac_cs_awk_cr=$ac_cr
16678 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16683 echo "cat >conf$$subs.awk <<_ACEOF" &&
16684 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16686 } >conf$$subs.sh ||
16687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16688 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16690 for ac_last_try in false false false false false :; do
16691 . ./conf$$subs.sh ||
16692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16694 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16695 if test $ac_delim_n = $ac_delim_num; then
16697 elif $ac_last_try; then
16698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16703 rm -f conf$$subs.sh
16705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16706 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16710 s/^/S["/; s/!.*/"]=/
16720 s/\(.\{148\}\)..*/\1/
16722 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16734 s/\(.\{148\}\)..*/\1/
16736 s/["\\]/\\&/g; s/^/"/; s/$/"/
16740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16745 ' <conf$$subs.awk | sed '
16750 ' >>$CONFIG_STATUS || ac_write_fail=1
16751 rm -f conf$$subs.awk
16752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16754 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16755 for (key in S) S_is_set[key] = 1
16761 nfields = split(line, field, "@")
16763 len = length(field[1])
16764 for (i = 2; i < nfields; i++) {
16766 keylen = length(key)
16767 if (S_is_set[key]) {
16769 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16770 len += length(value) + length(field[++i])
16781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16782 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16783 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16786 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16787 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16790 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16791 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16792 # trailing colons and then remove the whole line if VPATH becomes empty
16793 # (actually we leave an empty line to preserve line numbers).
16794 if test "x$srcdir" = x.; then
16795 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16814 fi # test -n "$CONFIG_FILES"
16816 # Set up the scripts for CONFIG_HEADERS section.
16817 # No need to generate them if there are no CONFIG_HEADERS.
16818 # This happens for instance with `./config.status Makefile'.
16819 if test -n "$CONFIG_HEADERS"; then
16820 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16824 # Transform confdefs.h into an awk script `defines.awk', embedded as
16825 # here-document in config.status, that substitutes the proper values into
16826 # config.h.in to produce config.h.
16828 # Create a delimiter string that does not exist in confdefs.h, to ease
16829 # handling of long lines.
16831 for ac_last_try in false false :; do
16832 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16833 if test -z "$ac_tt"; then
16835 elif $ac_last_try; then
16836 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16842 # For the awk script, D is an array of macro values keyed by name,
16843 # likewise P contains macro parameters if any. Preserve backslash
16844 # newline sequences.
16846 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16848 s/.\{148\}/&'"$ac_delim"'/g
16851 s/^[ ]*#[ ]*define[ ][ ]*/ /
16858 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16860 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16864 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16865 D["\1"]=" \3\\\\\\n"\\/p
16867 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16872 s/.\{148\}/&'"$ac_delim"'/g
16877 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16880 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16882 ' <confdefs.h | sed '
16883 s/'"$ac_delim"'/"\\\
16884 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16887 for (key in D) D_is_set[key] = 1
16890 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16892 split(line, arg, " ")
16893 if (arg[1] == "#") {
16897 defundef = substr(arg[1], 2)
16900 split(mac1, mac2, "(") #)
16902 prefix = substr(line, 1, index(line, defundef) - 1)
16903 if (D_is_set[macro]) {
16904 # Preserve the white space surrounding the "#".
16905 print prefix "define", macro P[macro] D[macro]
16908 # Replace #undef with comments. This is necessary, for example,
16909 # in the case of _POSIX_SOURCE, which is predefined and required
16910 # on some systems where configure will not decide to define it.
16911 if (defundef == "undef") {
16912 print "/*", prefix defundef, macro, "*/"
16920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16921 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16922 fi # test -n "$CONFIG_HEADERS"
16925 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16930 :[FHLC]) ac_mode=$ac_tag; continue;;
16932 case $ac_mode$ac_tag in
16934 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16935 :[FH]-) ac_tag=-:-;;
16936 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16953 -) ac_f="$ac_tmp/stdin";;
16954 *) # Look for the file first in the build tree, then in the source tree
16955 # (if the path is not absolute). The absolute path cannot be DOS-style,
16956 # because $ac_f cannot contain `:'.
16960 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16962 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16964 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16965 as_fn_append ac_file_inputs " '$ac_f'"
16968 # Let's still pretend it is `configure' which instantiates (i.e., don't
16969 # use $as_me), people would be surprised to read:
16970 # /* config.h. Generated by config.status. */
16971 configure_input='Generated from '`
16972 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16974 if test x"$ac_file" != x-; then
16975 configure_input="$ac_file. $configure_input"
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16977 $as_echo "$as_me: creating $ac_file" >&6;}
16979 # Neutralize special characters interpreted by sed in replacement strings.
16980 case $configure_input in #(
16981 *\&* | *\|* | *\\* )
16982 ac_sed_conf_input=`$as_echo "$configure_input" |
16983 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16984 *) ac_sed_conf_input=$configure_input;;
16988 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16994 ac_dir=`$as_dirname -- "$ac_file" ||
16995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16996 X"$ac_file" : 'X\(//\)[^/]' \| \
16997 X"$ac_file" : 'X\(//\)$' \| \
16998 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16999 $as_echo X"$ac_file" |
17000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17004 /^X\(\/\/\)[^/].*/{
17017 { if test -n "$as_mkdir_p"; then
17018 $as_mkdir_p "$ac_dir"
17022 while test ! -d "$as_dir"; do
17023 as_dirs="$as_dir $as_dirs"
17024 as_dir=`$as_dirname -- "$as_dir" ||
17025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17026 X"$as_dir" : 'X\(//\)[^/]' \| \
17027 X"$as_dir" : 'X\(//\)$' \| \
17028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17029 $as_echo X"$as_dir" |
17030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17034 /^X\(\/\/\)[^/].*/{
17048 test ! -n "$as_dirs" || mkdir $as_dirs
17049 fi || as_fn_error $? "cannot create directory \"$ac_dir\"" "$LINENO" 5; }
17054 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17056 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17057 # A ".." for each directory in $ac_dir_suffix.
17058 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17059 case $ac_top_builddir_sub in
17060 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17061 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17064 ac_abs_top_builddir=$ac_pwd
17065 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17066 # for backward compatibility:
17067 ac_top_builddir=$ac_top_build_prefix
17070 .) # We are building in place.
17072 ac_top_srcdir=$ac_top_builddir_sub
17073 ac_abs_top_srcdir=$ac_pwd ;;
17074 [\\/]* | ?:[\\/]* ) # Absolute name.
17075 ac_srcdir=$srcdir$ac_dir_suffix;
17076 ac_top_srcdir=$srcdir
17077 ac_abs_top_srcdir=$srcdir ;;
17078 *) # Relative name.
17079 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17080 ac_top_srcdir=$ac_top_build_prefix$srcdir
17081 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17083 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17093 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17094 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17096 ac_MKDIR_P=$MKDIR_P
17098 [\\/$]* | ?:[\\/]* ) ;;
17099 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17104 # If the template does not know about datarootdir, expand it.
17105 # FIXME: This hack should be removed a few years after 2.60.
17106 ac_datarootdir_hack=; ac_datarootdir_seen=
17117 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17118 *datarootdir*) ac_datarootdir_seen=yes;;
17119 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17121 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17124 ac_datarootdir_hack='
17125 s&@datadir@&$datadir&g
17126 s&@docdir@&$docdir&g
17127 s&@infodir@&$infodir&g
17128 s&@localedir@&$localedir&g
17129 s&@mandir@&$mandir&g
17130 s&\\\${datarootdir}&$datarootdir&g' ;;
17134 # Neutralize VPATH when `$srcdir' = `.'.
17135 # Shell code in configure.ac might set extrasub.
17136 # FIXME: do we really want to maintain this feature?
17137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17138 ac_sed_extra="$ac_vpsub
17141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17144 s|@configure_input@|$ac_sed_conf_input|;t t
17145 s&@top_builddir@&$ac_top_builddir_sub&;t t
17146 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17147 s&@srcdir@&$ac_srcdir&;t t
17148 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17149 s&@top_srcdir@&$ac_top_srcdir&;t t
17150 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17151 s&@builddir@&$ac_builddir&;t t
17152 s&@abs_builddir@&$ac_abs_builddir&;t t
17153 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17154 s&@INSTALL@&$ac_INSTALL&;t t
17155 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17156 $ac_datarootdir_hack
17158 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17159 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17161 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17162 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17163 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17164 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17166 which seems to be undefined. Please make sure it is defined" >&5
17167 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17168 which seems to be undefined. Please make sure it is defined" >&2;}
17170 rm -f "$ac_tmp/stdin"
17172 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17173 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17181 if test x"$ac_file" != x-; then
17183 $as_echo "/* $configure_input */" \
17184 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17185 } >"$ac_tmp/config.h" \
17186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17187 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17189 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17192 mv "$ac_tmp/config.h" "$ac_file" \
17193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17196 $as_echo "/* $configure_input */" \
17197 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17198 || as_fn_error $? "could not create -" "$LINENO" 5
17200 # Compute "$ac_file"'s index in $config_headers.
17203 for _am_header in $config_headers :; do
17204 case $_am_header in
17205 $_am_arg | $_am_arg:* )
17208 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17211 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17212 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17213 X"$_am_arg" : 'X\(//\)[^/]' \| \
17214 X"$_am_arg" : 'X\(//\)$' \| \
17215 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17216 $as_echo X"$_am_arg" |
17217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17221 /^X\(\/\/\)[^/].*/{
17233 s/.*/./; q'`/stamp-h$_am_stamp_count
17236 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17237 $as_echo "$as_me: executing $ac_file commands" >&6;}
17242 case $ac_file$ac_mode in
17243 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17244 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17245 # are listed without --file. Let's play safe and only enable the eval
17246 # if we detect the quoting.
17247 case $CONFIG_FILES in
17248 *\'*) eval set x "$CONFIG_FILES" ;;
17249 *) set x $CONFIG_FILES ;;
17254 # Strip MF so we end up with the name of the file.
17255 mf=`echo "$mf" | sed -e 's/:.*$//'`
17256 # Check whether this is an Automake generated Makefile or not.
17257 # We used to match only the files named `Makefile.in', but
17258 # some people rename them; so instead we look at the file content.
17259 # Grep'ing the first line is not enough: some people post-process
17260 # each Makefile.in and add a new line on top of each file to say so.
17261 # Grep'ing the whole file is not good either: AIX grep has a line
17262 # limit of 2048, but all sed's we know have understand at least 4000.
17263 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17264 dirpart=`$as_dirname -- "$mf" ||
17265 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17266 X"$mf" : 'X\(//\)[^/]' \| \
17267 X"$mf" : 'X\(//\)$' \| \
17268 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17274 /^X\(\/\/\)[^/].*/{
17290 # Extract the definition of DEPDIR, am__include, and am__quote
17291 # from the Makefile without running `make'.
17292 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17293 test -z "$DEPDIR" && continue
17294 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17295 test -z "am__include" && continue
17296 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17297 # When using ansi2knr, U may be empty or an underscore; expand it
17298 U=`sed -n 's/^U = //p' < "$mf"`
17299 # Find all dependency output files, they are included files with
17300 # $(DEPDIR) in their names. We invoke sed twice because it is the
17301 # simplest approach to changing $(DEPDIR) to its actual value in the
17303 for file in `sed -n "
17304 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17305 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17306 # Make sure the directory exists.
17307 test -f "$dirpart/$file" && continue
17308 fdir=`$as_dirname -- "$file" ||
17309 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17310 X"$file" : 'X\(//\)[^/]' \| \
17311 X"$file" : 'X\(//\)$' \| \
17312 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17313 $as_echo X"$file" |
17314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17318 /^X\(\/\/\)[^/].*/{
17331 { if test -n "$as_mkdir_p"; then
17332 $as_mkdir_p $dirpart/$fdir
17334 as_dir=$dirpart/$fdir
17336 while test ! -d "$as_dir"; do
17337 as_dirs="$as_dir $as_dirs"
17338 as_dir=`$as_dirname -- "$as_dir" ||
17339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17340 X"$as_dir" : 'X\(//\)[^/]' \| \
17341 X"$as_dir" : 'X\(//\)$' \| \
17342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17343 $as_echo X"$as_dir" |
17344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17348 /^X\(\/\/\)[^/].*/{
17362 test ! -n "$as_dirs" || mkdir $as_dirs
17363 fi || as_fn_error $? "cannot create directory $dirpart/$fdir" "$LINENO" 5; }
17365 # echo "creating $dirpart/$file"
17366 echo '# dummy' > "$dirpart/$file"
17373 # See if we are running on zsh, and set the options which allow our
17374 # commands through without removal of \ escapes.
17375 if test -n "${ZSH_VERSION+set}" ; then
17376 setopt NO_GLOB_SUBST
17379 cfgfile="${ofile}T"
17380 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17383 cat <<_LT_EOF >> "$cfgfile"
17386 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17387 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17389 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17391 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17392 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17394 # Written by Gordon Matzigkeit, 1996
17396 # This file is part of GNU Libtool.
17398 # GNU Libtool is free software; you can redistribute it and/or
17399 # modify it under the terms of the GNU General Public License as
17400 # published by the Free Software Foundation; either version 2 of
17401 # the License, or (at your option) any later version.
17403 # As a special exception to the GNU General Public License,
17404 # if you distribute this file as part of a program or library that
17405 # is built using GNU Libtool, you may include this file under the
17406 # same distribution terms that you use for the rest of that program.
17408 # GNU Libtool is distributed in the hope that it will be useful,
17409 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17410 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17411 # GNU General Public License for more details.
17413 # You should have received a copy of the GNU General Public License
17414 # along with GNU Libtool; see the file COPYING. If not, a copy
17415 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17416 # obtained by writing to the Free Software Foundation, Inc.,
17417 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17420 # The names of the tagged configurations supported by this script.
17421 available_tags="CXX "
17423 # ### BEGIN LIBTOOL CONFIG
17425 # Which release of libtool.m4 was used?
17426 macro_version=$macro_version
17427 macro_revision=$macro_revision
17429 # Whether or not to build shared libraries.
17430 build_libtool_libs=$enable_shared
17432 # Whether or not to build static libraries.
17433 build_old_libs=$enable_static
17435 # What type of objects to build.
17438 # Whether or not to optimize for fast installation.
17439 fast_install=$enable_fast_install
17441 # Shell to use when invoking shell scripts.
17444 # An echo program that protects backslashes.
17448 host_alias=$host_alias
17452 # The build system.
17453 build_alias=$build_alias
17457 # A sed program that does not truncate output.
17460 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17461 Xsed="\$SED -e 1s/^X//"
17463 # A grep program that handles long lines.
17469 # A literal string matcher.
17472 # A BSD- or MS-compatible name lister.
17475 # Whether we need soft or hard links.
17478 # What is the maximum length of a command?
17479 max_cmd_len=$max_cmd_len
17481 # Object file suffix (normally "o").
17484 # Executable file suffix (normally "").
17487 # whether the shell understands "unset".
17490 # turn spaces into newlines.
17493 # turn newlines into spaces.
17496 # convert \$build file names to \$host format.
17497 to_host_file_cmd=$lt_cv_to_host_file_cmd
17499 # convert \$build files to toolchain format.
17500 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17502 # An object symbol dumper.
17503 OBJDUMP=$lt_OBJDUMP
17505 # Method to check whether dependent libraries are shared objects.
17506 deplibs_check_method=$lt_deplibs_check_method
17508 # Command to use when deplibs_check_method = "file_magic".
17509 file_magic_cmd=$lt_file_magic_cmd
17511 # How to find potential files when deplibs_check_method = "file_magic".
17512 file_magic_glob=$lt_file_magic_glob
17514 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17515 want_nocaseglob=$lt_want_nocaseglob
17517 # DLL creation program.
17518 DLLTOOL=$lt_DLLTOOL
17520 # Command to associate shared and link libraries.
17521 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17526 # Flags to create an archive.
17527 AR_FLAGS=$lt_AR_FLAGS
17529 # How to feed a file listing to the archiver.
17530 archiver_list_spec=$lt_archiver_list_spec
17532 # A symbol stripping program.
17535 # Commands used to install an old-style archive.
17537 old_postinstall_cmds=$lt_old_postinstall_cmds
17538 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17540 # Whether to use a lock for old archive extraction.
17541 lock_old_archive_extraction=$lock_old_archive_extraction
17546 # LTCC compiler flags.
17547 LTCFLAGS=$lt_CFLAGS
17549 # Take the output of nm and produce a listing of raw symbols and C names.
17550 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17552 # Transform the output of nm in a proper C declaration.
17553 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17555 # Transform the output of nm in a C name address pair.
17556 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17558 # Transform the output of nm in a C name address pair when lib prefix is needed.
17559 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17561 # Specify filename containing input files for \$NM.
17562 nm_file_list_spec=$lt_nm_file_list_spec
17564 # The root where to search for dependent libraries,and in which our libraries should be installed.
17565 lt_sysroot=$lt_sysroot
17567 # The name of the directory that contains temporary libtool files.
17570 # Used to examine libraries when file_magic_cmd begins with "file".
17571 MAGIC_CMD=$MAGIC_CMD
17573 # Must we lock files when doing compilation?
17574 need_locks=$lt_need_locks
17577 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17579 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17580 DSYMUTIL=$lt_DSYMUTIL
17582 # Tool to change global to local symbols on Mac OS X.
17585 # Tool to manipulate fat objects and archives on Mac OS X.
17588 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17591 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17592 OTOOL64=$lt_OTOOL64
17594 # Old archive suffix (normally "a").
17597 # Shared library suffix (normally ".so").
17598 shrext_cmds=$lt_shrext_cmds
17600 # The commands to extract the exported symbol list from a shared archive.
17601 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17603 # Variables whose values should be saved in libtool wrapper scripts and
17604 # restored at link time.
17605 variables_saved_for_relink=$lt_variables_saved_for_relink
17607 # Do we need the "lib" prefix for modules?
17608 need_lib_prefix=$need_lib_prefix
17610 # Do we need a version for libraries?
17611 need_version=$need_version
17613 # Library versioning type.
17614 version_type=$version_type
17616 # Shared library runtime path variable.
17617 runpath_var=$runpath_var
17619 # Shared library path variable.
17620 shlibpath_var=$shlibpath_var
17622 # Is shlibpath searched before the hard-coded library search path?
17623 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17625 # Format of library name prefix.
17626 libname_spec=$lt_libname_spec
17628 # List of archive names. First name is the real one, the rest are links.
17629 # The last name is the one that the linker finds with -lNAME
17630 library_names_spec=$lt_library_names_spec
17632 # The coded name of the library, if different from the real name.
17633 soname_spec=$lt_soname_spec
17635 # Permission mode override for installation of shared libraries.
17636 install_override_mode=$lt_install_override_mode
17638 # Command to use after installation of a shared archive.
17639 postinstall_cmds=$lt_postinstall_cmds
17641 # Command to use after uninstallation of a shared archive.
17642 postuninstall_cmds=$lt_postuninstall_cmds
17644 # Commands used to finish a libtool library installation in a directory.
17645 finish_cmds=$lt_finish_cmds
17647 # As "finish_cmds", except a single script fragment to be evaled but
17649 finish_eval=$lt_finish_eval
17651 # Whether we should hardcode library paths into libraries.
17652 hardcode_into_libs=$hardcode_into_libs
17654 # Compile-time system search path for libraries.
17655 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17657 # Run-time system search path for libraries.
17658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17660 # Whether dlopen is supported.
17661 dlopen_support=$enable_dlopen
17663 # Whether dlopen of programs is supported.
17664 dlopen_self=$enable_dlopen_self
17666 # Whether dlopen of statically linked programs is supported.
17667 dlopen_self_static=$enable_dlopen_self_static
17669 # Commands to strip libraries.
17670 old_striplib=$lt_old_striplib
17671 striplib=$lt_striplib
17674 # The linker used to build libraries.
17677 # How to create reloadable object files.
17678 reload_flag=$lt_reload_flag
17679 reload_cmds=$lt_reload_cmds
17681 # Commands used to build an old-style archive.
17682 old_archive_cmds=$lt_old_archive_cmds
17684 # A language specific compiler.
17687 # Is the compiler the GNU compiler?
17690 # Compiler flag to turn off builtin functions.
17691 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17693 # Additional compiler flags for building library objects.
17694 pic_flag=$lt_lt_prog_compiler_pic
17696 # How to pass a linker flag through the compiler.
17697 wl=$lt_lt_prog_compiler_wl
17699 # Compiler flag to prevent dynamic linking.
17700 link_static_flag=$lt_lt_prog_compiler_static
17702 # Does compiler simultaneously support -c and -o options?
17703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17705 # Whether or not to add -lc for building shared libraries.
17706 build_libtool_need_lc=$archive_cmds_need_lc
17708 # Whether or not to disallow shared libs when runtime libs are static.
17709 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17711 # Compiler flag to allow reflexive dlopens.
17712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17714 # Compiler flag to generate shared objects directly from archives.
17715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17717 # Whether the compiler copes with passing no objects directly.
17718 compiler_needs_object=$lt_compiler_needs_object
17720 # Create an old-style archive from a shared archive.
17721 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17723 # Create a temporary old-style archive to link instead of a shared archive.
17724 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17726 # Commands used to build a shared archive.
17727 archive_cmds=$lt_archive_cmds
17728 archive_expsym_cmds=$lt_archive_expsym_cmds
17730 # Commands used to build a loadable module if different from building
17731 # a shared archive.
17732 module_cmds=$lt_module_cmds
17733 module_expsym_cmds=$lt_module_expsym_cmds
17735 # Whether we are building with GNU ld or not.
17736 with_gnu_ld=$lt_with_gnu_ld
17738 # Flag that allows shared libraries with undefined symbols to be built.
17739 allow_undefined_flag=$lt_allow_undefined_flag
17741 # Flag that enforces no undefined symbols.
17742 no_undefined_flag=$lt_no_undefined_flag
17744 # Flag to hardcode \$libdir into a binary during linking.
17745 # This must work even if \$libdir does not exist
17746 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17748 # If ld is used when linking, flag to hardcode \$libdir into a binary
17749 # during linking. This must work even if \$libdir does not exist.
17750 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17752 # Whether we need a single "-rpath" flag with a separated argument.
17753 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17755 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17756 # DIR into the resulting binary.
17757 hardcode_direct=$hardcode_direct
17759 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17760 # DIR into the resulting binary and the resulting library dependency is
17761 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17762 # library is relocated.
17763 hardcode_direct_absolute=$hardcode_direct_absolute
17765 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17766 # into the resulting binary.
17767 hardcode_minus_L=$hardcode_minus_L
17769 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17770 # into the resulting binary.
17771 hardcode_shlibpath_var=$hardcode_shlibpath_var
17773 # Set to "yes" if building a shared library automatically hardcodes DIR
17774 # into the library and all subsequent libraries and executables linked
17776 hardcode_automatic=$hardcode_automatic
17778 # Set to yes if linker adds runtime paths of dependent libraries
17779 # to runtime path list.
17780 inherit_rpath=$inherit_rpath
17782 # Whether libtool must link a program against all its dependency libraries.
17783 link_all_deplibs=$link_all_deplibs
17785 # Set to "yes" if exported symbols are required.
17786 always_export_symbols=$always_export_symbols
17788 # The commands to list exported symbols.
17789 export_symbols_cmds=$lt_export_symbols_cmds
17791 # Symbols that should not be listed in the preloaded symbols.
17792 exclude_expsyms=$lt_exclude_expsyms
17794 # Symbols that must always be exported.
17795 include_expsyms=$lt_include_expsyms
17797 # Commands necessary for linking programs (against libraries) with templates.
17798 prelink_cmds=$lt_prelink_cmds
17800 # Commands necessary for finishing linking programs.
17801 postlink_cmds=$lt_postlink_cmds
17803 # Specify filename containing input files.
17804 file_list_spec=$lt_file_list_spec
17806 # How to hardcode a shared library path into an executable.
17807 hardcode_action=$hardcode_action
17809 # The directories searched by this compiler when creating a shared library.
17810 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17812 # Dependencies to place before and after the objects being linked to
17813 # create a shared library.
17814 predep_objects=$lt_predep_objects
17815 postdep_objects=$lt_postdep_objects
17816 predeps=$lt_predeps
17817 postdeps=$lt_postdeps
17819 # The library search path used internally by the compiler when linking
17820 # a shared library.
17821 compiler_lib_search_path=$lt_compiler_lib_search_path
17823 # ### END LIBTOOL CONFIG
17829 cat <<\_LT_EOF >> "$cfgfile"
17830 # AIX sometimes has problems with the GCC collect2 program. For some
17831 # reason, if we set the COLLECT_NAMES environment variable, the problems
17832 # vanish in a puff of smoke.
17833 if test "X${COLLECT_NAMES+set}" != Xset; then
17835 export COLLECT_NAMES
17842 ltmain="$ac_aux_dir/ltmain.sh"
17845 # We use sed instead of cat because bash on DJGPP gets confused if
17846 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17847 # text mode, it properly converts lines to CR/LF. This bash problem
17848 # is reportedly fixed, but why not run on old versions too?
17849 sed '$q' "$ltmain" >> "$cfgfile" \
17850 || (rm -f "$cfgfile"; exit 1)
17852 if test x"$xsi_shell" = xyes; then
17853 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17857 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17858 \ * ) func_dirname_result="${3}" ;;\
17860 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17861 && mv -f "$cfgfile.tmp" "$cfgfile" \
17862 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17863 test 0 -eq $? || _lt_function_replace_fail=:
17866 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17869 \ func_basename_result="${1##*/}"\
17870 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17871 && mv -f "$cfgfile.tmp" "$cfgfile" \
17872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17873 test 0 -eq $? || _lt_function_replace_fail=:
17876 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17877 func_dirname_and_basename ()\
17880 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17881 \ * ) func_dirname_result="${3}" ;;\
17883 \ func_basename_result="${1##*/}"\
17884 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17885 && mv -f "$cfgfile.tmp" "$cfgfile" \
17886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17887 test 0 -eq $? || _lt_function_replace_fail=:
17890 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17893 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17894 \ # positional parameters, so assign one to ordinary parameter first.\
17895 \ func_stripname_result=${3}\
17896 \ func_stripname_result=${func_stripname_result#"${1}"}\
17897 \ func_stripname_result=${func_stripname_result%"${2}"}\
17898 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17899 && mv -f "$cfgfile.tmp" "$cfgfile" \
17900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17901 test 0 -eq $? || _lt_function_replace_fail=:
17904 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17905 func_split_long_opt ()\
17907 \ func_split_long_opt_name=${1%%=*}\
17908 \ func_split_long_opt_arg=${1#*=}\
17909 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17910 && mv -f "$cfgfile.tmp" "$cfgfile" \
17911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17912 test 0 -eq $? || _lt_function_replace_fail=:
17915 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17916 func_split_short_opt ()\
17918 \ func_split_short_opt_arg=${1#??}\
17919 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17920 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17921 && mv -f "$cfgfile.tmp" "$cfgfile" \
17922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17923 test 0 -eq $? || _lt_function_replace_fail=:
17926 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17930 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17931 \ *) func_lo2o_result=${1} ;;\
17933 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17934 && mv -f "$cfgfile.tmp" "$cfgfile" \
17935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17936 test 0 -eq $? || _lt_function_replace_fail=:
17939 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17942 func_xform_result=${1%.*}.lo\
17943 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17944 && mv -f "$cfgfile.tmp" "$cfgfile" \
17945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17946 test 0 -eq $? || _lt_function_replace_fail=:
17949 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17952 func_arith_result=$(( $* ))\
17953 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17954 && mv -f "$cfgfile.tmp" "$cfgfile" \
17955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17956 test 0 -eq $? || _lt_function_replace_fail=:
17959 sed -e '/^func_len ()$/,/^} # func_len /c\
17962 func_len_result=${#1}\
17963 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17964 && mv -f "$cfgfile.tmp" "$cfgfile" \
17965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17966 test 0 -eq $? || _lt_function_replace_fail=:
17970 if test x"$lt_shell_append" = xyes; then
17971 sed -e '/^func_append ()$/,/^} # func_append /c\
17974 eval "${1}+=\\${2}"\
17975 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17976 && mv -f "$cfgfile.tmp" "$cfgfile" \
17977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17978 test 0 -eq $? || _lt_function_replace_fail=:
17981 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17982 func_append_quoted ()\
17984 \ func_quote_for_eval "${2}"\
17985 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17986 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17987 && mv -f "$cfgfile.tmp" "$cfgfile" \
17988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17989 test 0 -eq $? || _lt_function_replace_fail=:
17992 # Save a `func_append' function call where possible by direct use of '+='
17993 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17994 && mv -f "$cfgfile.tmp" "$cfgfile" \
17995 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17996 test 0 -eq $? || _lt_function_replace_fail=:
17998 # Save a `func_append' function call even when '+=' is not available
17999 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18000 && mv -f "$cfgfile.tmp" "$cfgfile" \
18001 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18002 test 0 -eq $? || _lt_function_replace_fail=:
18005 if test x"$_lt_function_replace_fail" = x":"; then
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18007 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18011 mv -f "$cfgfile" "$ofile" ||
18012 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18016 cat <<_LT_EOF >> "$ofile"
18018 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18020 # The linker used to build libraries.
18023 # How to create reloadable object files.
18024 reload_flag=$lt_reload_flag_CXX
18025 reload_cmds=$lt_reload_cmds_CXX
18027 # Commands used to build an old-style archive.
18028 old_archive_cmds=$lt_old_archive_cmds_CXX
18030 # A language specific compiler.
18031 CC=$lt_compiler_CXX
18033 # Is the compiler the GNU compiler?
18036 # Compiler flag to turn off builtin functions.
18037 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18039 # Additional compiler flags for building library objects.
18040 pic_flag=$lt_lt_prog_compiler_pic_CXX
18042 # How to pass a linker flag through the compiler.
18043 wl=$lt_lt_prog_compiler_wl_CXX
18045 # Compiler flag to prevent dynamic linking.
18046 link_static_flag=$lt_lt_prog_compiler_static_CXX
18048 # Does compiler simultaneously support -c and -o options?
18049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18051 # Whether or not to add -lc for building shared libraries.
18052 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18054 # Whether or not to disallow shared libs when runtime libs are static.
18055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18057 # Compiler flag to allow reflexive dlopens.
18058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18060 # Compiler flag to generate shared objects directly from archives.
18061 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18063 # Whether the compiler copes with passing no objects directly.
18064 compiler_needs_object=$lt_compiler_needs_object_CXX
18066 # Create an old-style archive from a shared archive.
18067 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18069 # Create a temporary old-style archive to link instead of a shared archive.
18070 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18072 # Commands used to build a shared archive.
18073 archive_cmds=$lt_archive_cmds_CXX
18074 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18076 # Commands used to build a loadable module if different from building
18077 # a shared archive.
18078 module_cmds=$lt_module_cmds_CXX
18079 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18081 # Whether we are building with GNU ld or not.
18082 with_gnu_ld=$lt_with_gnu_ld_CXX
18084 # Flag that allows shared libraries with undefined symbols to be built.
18085 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18087 # Flag that enforces no undefined symbols.
18088 no_undefined_flag=$lt_no_undefined_flag_CXX
18090 # Flag to hardcode \$libdir into a binary during linking.
18091 # This must work even if \$libdir does not exist
18092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18094 # If ld is used when linking, flag to hardcode \$libdir into a binary
18095 # during linking. This must work even if \$libdir does not exist.
18096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18098 # Whether we need a single "-rpath" flag with a separated argument.
18099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18102 # DIR into the resulting binary.
18103 hardcode_direct=$hardcode_direct_CXX
18105 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18106 # DIR into the resulting binary and the resulting library dependency is
18107 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18108 # library is relocated.
18109 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18111 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18112 # into the resulting binary.
18113 hardcode_minus_L=$hardcode_minus_L_CXX
18115 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18116 # into the resulting binary.
18117 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18119 # Set to "yes" if building a shared library automatically hardcodes DIR
18120 # into the library and all subsequent libraries and executables linked
18122 hardcode_automatic=$hardcode_automatic_CXX
18124 # Set to yes if linker adds runtime paths of dependent libraries
18125 # to runtime path list.
18126 inherit_rpath=$inherit_rpath_CXX
18128 # Whether libtool must link a program against all its dependency libraries.
18129 link_all_deplibs=$link_all_deplibs_CXX
18131 # Set to "yes" if exported symbols are required.
18132 always_export_symbols=$always_export_symbols_CXX
18134 # The commands to list exported symbols.
18135 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18137 # Symbols that should not be listed in the preloaded symbols.
18138 exclude_expsyms=$lt_exclude_expsyms_CXX
18140 # Symbols that must always be exported.
18141 include_expsyms=$lt_include_expsyms_CXX
18143 # Commands necessary for linking programs (against libraries) with templates.
18144 prelink_cmds=$lt_prelink_cmds_CXX
18146 # Commands necessary for finishing linking programs.
18147 postlink_cmds=$lt_postlink_cmds_CXX
18149 # Specify filename containing input files.
18150 file_list_spec=$lt_file_list_spec_CXX
18152 # How to hardcode a shared library path into an executable.
18153 hardcode_action=$hardcode_action_CXX
18155 # The directories searched by this compiler when creating a shared library.
18156 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18158 # Dependencies to place before and after the objects being linked to
18159 # create a shared library.
18160 predep_objects=$lt_predep_objects_CXX
18161 postdep_objects=$lt_postdep_objects_CXX
18162 predeps=$lt_predeps_CXX
18163 postdeps=$lt_postdeps_CXX
18165 # The library search path used internally by the compiler when linking
18166 # a shared library.
18167 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18169 # ### END LIBTOOL TAG CONFIG: CXX
18180 ac_clean_files=$ac_clean_files_save
18182 test $ac_write_fail = 0 ||
18183 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18186 # configure is writing to config.log, and then calls config.status.
18187 # config.status does its own redirection, appending to config.log.
18188 # Unfortunately, on DOS this fails, as config.log is still kept open
18189 # by configure, so config.status won't be able to write to it; its
18190 # output is simply discarded. So we exec the FD to /dev/null,
18191 # effectively closing config.log, so it can be properly (re)opened and
18192 # appended to by config.status. When coming back to configure, we
18193 # need to make the FD available again.
18194 if test "$no_create" != yes; then
18196 ac_config_status_args=
18197 test "$silent" = yes &&
18198 ac_config_status_args="$ac_config_status_args --quiet"
18200 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18202 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18203 # would make configure fail if this is the last instruction.
18204 $ac_cs_success || as_fn_exit 1
18206 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18208 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18212 { $as_echo "$as_me:${as_lineno-$LINENO}:
18214 Please type 'make' to build Bullet
18218 Please type 'make' to build Bullet