2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for OgreBullet 0.2.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
568 PACKAGE_NAME='OgreBullet'
569 PACKAGE_TARNAME='ogrebullet'
570 PACKAGE_VERSION='0.2'
571 PACKAGE_STRING='OgreBullet 0.2'
575 # Factoring default headers for most tests.
576 ac_includes_default="\
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
588 # ifdef HAVE_STDLIB_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
611 ac_subst_vars='am__EXEEXT_FALSE
684 INSTALL_STRIP_PROGRAM
726 program_transform_name
739 enable_option_checking
740 enable_dependency_tracking
749 ac_precious_vars='build_alias
771 # Initialize some variables set by options.
773 ac_init_version=false
774 ac_unrecognized_opts=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
785 program_transform_name=s,x,x,
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
929 -help | --help | --hel | --he | -h)
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 # Obsolete; use --without-fp.
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1078 -site=* | --site=* | --sit=*)
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval with_$ac_useropt=no ;;
1137 # Obsolete; use --with-x.
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1205 # Be sure to have absolute directory names.
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used" >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error $? "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error $? "pwd does not report name of working directory"
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1311 \`configure' configures OgreBullet 0.2 to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking ...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/ogrebullet]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of OgreBullet 0.2:";;
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --disable-dependency-tracking speeds up one-time build
1390 --enable-dependency-tracking do not reject slow dependency extractors
1391 --enable-shared[=PKGS] build shared libraries [default=yes]
1392 --enable-static[=PKGS] build static libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1402 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1403 --with-sysroot=DIR Search for dependent libraries within DIR
1404 (or the compiler's sysroot if not specified).
1406 Some influential environment variables:
1407 CXX C++ compiler command
1408 CXXFLAGS C++ compiler flags
1409 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1410 nonstandard directory <lib dir>
1411 LIBS libraries to pass to the linker, e.g. -l<library>
1412 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1413 you have headers in a nonstandard directory <include dir>
1414 CC C compiler command
1415 CFLAGS C compiler flags
1417 CXXCPP C++ preprocessor
1418 PKG_CONFIG path to pkg-config utility
1420 directories to add to pkg-config's search path
1422 path overriding pkg-config's built-in search path
1423 OGRE_CFLAGS C compiler flags for OGRE, overriding pkg-config
1424 OGRE_LIBS linker flags for OGRE, overriding pkg-config
1426 C compiler flags for bullet, overriding pkg-config
1427 bullet_LIBS linker flags for bullet, overriding pkg-config
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1432 Report bugs to the package provider.
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" ||
1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1462 .) # We are building in place.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1495 OgreBullet configure 0.2
1496 generated by GNU Autoconf 2.68
1498 Copyright (C) 2010 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1509 # ac_fn_cxx_try_compile LINENO
1510 # ----------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_cxx_try_compile ()
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext
1516 if { { ac_try="$ac_compile"
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_compile") 2>conftest.err
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_cxx_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest.$ac_objext; then :
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1545 } # ac_fn_cxx_try_compile
1547 # ac_fn_c_try_compile LINENO
1548 # --------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_compile ()
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext
1554 if { { ac_try="$ac_compile"
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_compile") 2>conftest.err
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest.$ac_objext; then :
1575 $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
1583 } # ac_fn_c_try_compile
1585 # ac_fn_c_try_link LINENO
1586 # -----------------------
1587 # Try to link conftest.$ac_ext, and return whether this succeeded.
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext conftest$ac_exeext
1592 if { { ac_try="$ac_link"
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_link") 2>conftest.err
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest$ac_exeext && {
1611 test "$cross_compiling" = yes ||
1612 $as_test_x conftest$ac_exeext
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1621 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1622 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1623 # interfere with the next link command; also delete a directory that is
1624 # left behind by Apple's compiler. We do this before executing the actions.
1625 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1629 } # ac_fn_c_try_link
1631 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1632 # -------------------------------------------------------
1633 # Tests whether HEADER exists and can be compiled using the include files in
1634 # INCLUDES, setting the cache variable VAR accordingly.
1635 ac_fn_c_check_header_compile ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval \${$3+:} false; then :
1641 $as_echo_n "(cached) " >&6
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1648 if ac_fn_c_try_compile "$LINENO"; then :
1653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657 $as_echo "$ac_res" >&6; }
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 } # ac_fn_c_check_header_compile
1662 # ac_fn_c_try_cpp LINENO
1663 # ----------------------
1664 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } > conftest.i && {
1684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1699 # ac_fn_c_try_run LINENO
1700 # ----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702 # that executables *can* be run.
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_link"
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>&5
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717 { { case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_try") 2>&5
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; }; }; then :
1729 $as_echo "$as_me: program exited with status $ac_status" >&5
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1733 ac_retval=$ac_status
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1741 # ac_fn_c_check_func LINENO FUNC VAR
1742 # ----------------------------------
1743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1744 ac_fn_c_check_func ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1756 #define $2 innocuous_$2
1758 /* System header to define __stub macros and hopefully few prototypes,
1759 which can conflict with char $2 (); below.
1760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1761 <limits.h> exists even on freestanding compilers. */
1764 # include <limits.h>
1766 # include <assert.h>
1771 /* Override any GCC internal prototype to avoid an error.
1772 Use char because int might match the return type of a GCC
1773 builtin and then its argument prototype would still apply. */
1778 /* The GNU C library defines this for functions which it implements
1779 to always fail with ENOSYS. Some functions are actually named
1780 something starting with __ and the normal name is an alias. */
1781 #if defined __stub_$2 || defined __stub___$2
1793 if ac_fn_c_try_link "$LINENO"; then :
1798 rm -f core conftest.err conftest.$ac_objext \
1799 conftest$ac_exeext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 } # ac_fn_c_check_func
1808 # ac_fn_cxx_try_cpp LINENO
1809 # ------------------------
1810 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_cpp ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_cpp conftest.$ac_ext"
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } > conftest.i && {
1830 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_cxx_try_cpp
1845 # ac_fn_cxx_try_link LINENO
1846 # -------------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_cxx_try_link ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_cxx_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
1872 $as_test_x conftest$ac_exeext
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_cxx_try_link
1890 cat >config.log <<_ACEOF
1891 This file contains any messages produced by compilers while
1892 running configure, to aid debugging if configure makes a mistake.
1894 It was created by OgreBullet $as_me 0.2, which was
1895 generated by GNU Autoconf 2.68. Invocation command line was
1907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1917 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1920 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1921 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1922 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 $as_echo "PATH: $as_dir"
1947 # Keep a trace of the command line.
1948 # Strip out --no-create and --no-recursion so they do not pile up.
1949 # Strip out --silent because we don't want to record it for future runs.
1950 # Also quote any args containing shell meta-characters.
1951 # Make two passes to allow for proper duplicate-argument suppression.
1955 ac_must_keep_next=false
1961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963 | -silent | --silent | --silen | --sile | --sil)
1966 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1971 as_fn_append ac_configure_args1 " '$ac_arg'"
1972 if test $ac_must_keep_next = true; then
1973 ac_must_keep_next=false # Got value, back to normal.
1976 *=* | --config-cache | -C | -disable-* | --disable-* \
1977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979 | -with-* | --with-* | -without-* | --without-* | --x)
1980 case "$ac_configure_args0 " in
1981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984 -* ) ac_must_keep_next=true ;;
1987 as_fn_append ac_configure_args " '$ac_arg'"
1992 { ac_configure_args0=; unset ac_configure_args0;}
1993 { ac_configure_args1=; unset ac_configure_args1;}
1995 # When interrupted or exit'd, cleanup temporary files, and complete
1996 # config.log. We remove comments because anyway the quotes in there
1997 # would cause problems or look ugly.
1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000 trap 'exit_status=$?
2001 # Save into config.log some information that might help in debugging.
2005 $as_echo "## ---------------- ##
2006 ## Cache variables. ##
2007 ## ---------------- ##"
2009 # The following way of writing the cache mishandles newlines in values,
2011 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2012 eval ac_val=\$$ac_var
2016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020 _ | IFS | as_nl) ;; #(
2021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2022 *) { eval $ac_var=; unset $ac_var;} ;;
2027 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2028 *${as_nl}ac_space=\ *)
2030 "s/'\''/'\''\\\\'\'''\''/g;
2031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2041 $as_echo "## ----------------- ##
2042 ## Output variables. ##
2043 ## ----------------- ##"
2045 for ac_var in $ac_subst_vars
2047 eval ac_val=\$$ac_var
2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 $as_echo "$ac_var='\''$ac_val'\''"
2055 if test -n "$ac_subst_files"; then
2056 $as_echo "## ------------------- ##
2057 ## File substitutions. ##
2058 ## ------------------- ##"
2060 for ac_var in $ac_subst_files
2062 eval ac_val=\$$ac_var
2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066 $as_echo "$ac_var='\''$ac_val'\''"
2071 if test -s confdefs.h; then
2072 $as_echo "## ----------- ##
2079 test "$ac_signal" != 0 &&
2080 $as_echo "$as_me: caught signal $ac_signal"
2081 $as_echo "$as_me: exit $exit_status"
2083 rm -f core *.core core.conftest.* &&
2084 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087 for ac_signal in 1 2 13 15; do
2088 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2093 rm -f -r conftest* confdefs.h
2095 $as_echo "/* confdefs.h */" > confdefs.h
2097 # Predefined preprocessor variables.
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_NAME "$PACKAGE_NAME"
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_STRING "$PACKAGE_STRING"
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_URL "$PACKAGE_URL"
2124 # Let the site file select an alternate cache file if it wants to.
2125 # Prefer an explicitly selected file to automatically selected ones.
2128 if test -n "$CONFIG_SITE"; then
2129 # We do not want a PATH search for config.site.
2130 case $CONFIG_SITE in #((
2131 -*) ac_site_file1=./$CONFIG_SITE;;
2132 */*) ac_site_file1=$CONFIG_SITE;;
2133 *) ac_site_file1=./$CONFIG_SITE;;
2135 elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
2142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2144 test "x$ac_site_file" = xNONE && continue
2145 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148 sed 's/^/| /' "$ac_site_file" >&5
2150 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 as_fn_error $? "failed to load site script $ac_site_file
2153 See \`config.log' for more details" "$LINENO" 5; }
2157 if test -r "$cache_file"; then
2158 # Some versions of bash will fail to source /dev/null (special files
2159 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2160 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162 $as_echo "$as_me: loading cache $cache_file" >&6;}
2164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165 *) . "./$cache_file";;
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170 $as_echo "$as_me: creating cache $cache_file" >&6;}
2174 # Check that the precious variables saved in the cache have kept the same
2176 ac_cache_corrupted=false
2177 for ac_var in $ac_precious_vars; do
2178 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179 eval ac_new_set=\$ac_env_${ac_var}_set
2180 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181 eval ac_new_val=\$ac_env_${ac_var}_value
2182 case $ac_old_set,$ac_new_set in
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2190 ac_cache_corrupted=: ;;
2193 if test "x$ac_old_val" != "x$ac_new_val"; then
2194 # differences in whitespace do not lead to failure.
2195 ac_old_val_w=`echo x $ac_old_val`
2196 ac_new_val_w=`echo x $ac_new_val`
2197 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200 ac_cache_corrupted=:
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204 eval $ac_var=\$ac_old_val
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2207 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2209 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2212 # Pass precious variables to config.status.
2213 if test "$ac_new_set" = set; then
2215 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 *) ac_arg=$ac_var=$ac_new_val ;;
2218 case " $ac_configure_args " in
2219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2220 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2224 if $ac_cache_corrupted; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2231 ## -------------------- ##
2232 ## Main body of script. ##
2233 ## -------------------- ##
2236 ac_cpp='$CPP $CPPFLAGS'
2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242 am__api_version='1.11'
2245 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2246 if test -f "$ac_dir/install-sh"; then
2248 ac_install_sh="$ac_aux_dir/install-sh -c"
2250 elif test -f "$ac_dir/install.sh"; then
2252 ac_install_sh="$ac_aux_dir/install.sh -c"
2254 elif test -f "$ac_dir/shtool"; then
2256 ac_install_sh="$ac_aux_dir/shtool install -c"
2260 if test -z "$ac_aux_dir"; then
2261 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2264 # These three variables are undocumented and unsupported,
2265 # and are intended to be withdrawn in a future Autoconf release.
2266 # They can cause serious problems if a builder's source tree is in a directory
2267 # whose full name contains unusual characters.
2268 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2269 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2270 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2273 # Find a good install program. We prefer a C program (faster),
2274 # so one script is as good as another. But avoid the broken or
2275 # incompatible versions:
2276 # SysV /etc/install, /usr/sbin/install
2277 # SunOS /usr/etc/install
2278 # IRIX /sbin/install
2280 # AmigaOS /C/install, which installs bootblocks on floppy discs
2281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2284 # OS/2's system install, which has a completely different semantic
2285 # ./install, which can be erroneously created by make from ./install.sh.
2286 # Reject install programs that cannot install multiple files.
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2288 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2289 if test -z "$INSTALL"; then
2290 if ${ac_cv_path_install+:} false; then :
2291 $as_echo_n "(cached) " >&6
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 # Account for people who put trailing slashes in PATH elements.
2299 case $as_dir/ in #((
2300 ./ | .// | /[cC]/* | \
2301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2302 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2305 # OSF1 and SCO ODT 3.0 have their own names for install.
2306 # Don't use installbsd from OSF since it installs stuff as root
2308 for ac_prog in ginstall scoinst install; do
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2311 if test $ac_prog = install &&
2312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313 # AIX install. It has an incompatible calling convention.
2315 elif test $ac_prog = install &&
2316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # program-specific install script used by HP pwplus--don't use.
2320 rm -rf conftest.one conftest.two conftest.dir
2321 echo one > conftest.one
2322 echo two > conftest.two
2324 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2325 test -s conftest.one && test -s conftest.two &&
2326 test -s conftest.dir/conftest.one &&
2327 test -s conftest.dir/conftest.two
2329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2342 rm -rf conftest.one conftest.two conftest.dir
2345 if test "${ac_cv_path_install+set}" = set; then
2346 INSTALL=$ac_cv_path_install
2348 # As a last resort, use the slow shell script. Don't cache a
2349 # value for INSTALL within a source directory, because that will
2350 # break other packages using the cache if that directory is
2351 # removed, or if the value is a relative name.
2352 INSTALL=$ac_install_sh
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2356 $as_echo "$INSTALL" >&6; }
2358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2359 # It thinks the first close brace ends the variable substitution.
2360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2367 $as_echo_n "checking whether build environment is sane... " >&6; }
2370 echo timestamp > conftest.file
2371 # Reject unsafe characters in $srcdir or the absolute working directory
2372 # name. Accept space and tab only in the latter.
2376 *[\\\"\#\$\&\'\`$am_lf]*)
2377 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2380 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2381 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2384 # Do `set' in a subshell so we don't clobber the current shell's
2385 # arguments. Must try -L first in case configure is actually a
2386 # symlink; some systems play weird games with the mod time of symlinks
2387 # (eg FreeBSD returns the mod time of the symlink's containing
2390 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2391 if test "$*" = "X"; then
2393 set X `ls -t "$srcdir/configure" conftest.file`
2396 if test "$*" != "X $srcdir/configure conftest.file" \
2397 && test "$*" != "X conftest.file $srcdir/configure"; then
2399 # If neither matched, then we have a broken ls. This can happen
2400 # if, for instance, CONFIG_SHELL is bash and it inherits a
2401 # broken ls alias from the environment. This has actually
2402 # happened. Such a system could not be considered "sane".
2403 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2404 alias in your environment" "$LINENO" 5
2407 test "$2" = conftest.file
2413 as_fn_error $? "newly created file is older than distributed files!
2414 Check your system clock" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2417 $as_echo "yes" >&6; }
2418 test "$program_prefix" != NONE &&
2419 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2420 # Use a double $ so make ignores it.
2421 test "$program_suffix" != NONE &&
2422 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2423 # Double any \ or $.
2424 # By default was `s,x,x', remove it if useless.
2425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2428 # expand $ac_aux_dir to an absolute path
2429 am_aux_dir=`cd $ac_aux_dir && pwd`
2431 if test x"${MISSING+set}" != xset; then
2434 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2436 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2439 # Use eval to expand $SHELL
2440 if eval "$MISSING --run true"; then
2441 am_missing_run="$MISSING --run "
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2445 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2448 if test x"${install_sh}" != xset; then
2451 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2453 install_sh="\${SHELL} $am_aux_dir/install-sh"
2457 # Installed binaries are usually stripped using `strip' when the user
2458 # run `make install-strip'. However `strip' might not be the right
2459 # tool to use in cross-compilation environments, therefore Automake
2460 # will honor the `STRIP' environment variable to overrule this program.
2461 if test "$cross_compiling" != no; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}strip; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_STRIP+:} false; then :
2468 $as_echo_n "(cached) " >&6
2470 if test -n "$STRIP"; then
2471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 STRIP=$ac_cv_prog_STRIP
2491 if test -n "$STRIP"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2493 $as_echo "$STRIP" >&6; }
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2501 if test -z "$ac_cv_prog_STRIP"; then
2503 # Extract the first word of "strip", so it can be a program name with args.
2504 set dummy strip; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2508 $as_echo_n "(cached) " >&6
2510 if test -n "$ac_ct_STRIP"; then
2511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_STRIP="strip"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531 if test -n "$ac_ct_STRIP"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2533 $as_echo "$ac_ct_STRIP" >&6; }
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2539 if test "x$ac_ct_STRIP" = x; then
2542 case $cross_compiling:$ac_tool_warned in
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546 ac_tool_warned=yes ;;
2551 STRIP="$ac_cv_prog_STRIP"
2555 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2558 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2559 if test -z "$MKDIR_P"; then
2560 if ${ac_cv_path_mkdir+:} false; then :
2561 $as_echo_n "(cached) " >&6
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2567 test -z "$as_dir" && as_dir=.
2568 for ac_prog in mkdir gmkdir; do
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2571 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2572 'mkdir (GNU coreutils) '* | \
2573 'mkdir (coreutils) '* | \
2574 'mkdir (fileutils) '4.1*)
2575 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2585 test -d ./--version && rmdir ./--version
2586 if test "${ac_cv_path_mkdir+set}" = set; then
2587 MKDIR_P="$ac_cv_path_mkdir -p"
2589 # As a last resort, use the slow shell script. Don't cache a
2590 # value for MKDIR_P within a source directory, because that will
2591 # break other packages using the cache if that directory is
2592 # removed, or if the value is a relative name.
2593 MKDIR_P="$ac_install_sh -d"
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2597 $as_echo "$MKDIR_P" >&6; }
2601 [\\/$]* | ?:[\\/]*) ;;
2602 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2605 for ac_prog in gawk mawk nawk awk
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if ${ac_cv_prog_AWK+:} false; then :
2612 $as_echo_n "(cached) " >&6
2614 if test -n "$AWK"; then
2615 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_AWK="$ac_prog"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 if test -n "$AWK"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2637 $as_echo "$AWK" >&6; }
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2644 test -n "$AWK" && break
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2648 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2650 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2651 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2652 $as_echo_n "(cached) " >&6
2654 cat >conftest.make <<\_ACEOF
2657 @echo '@@@%%%=$(MAKE)=@@@%%%'
2659 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2660 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2662 eval ac_cv_prog_make_${ac_make}_set=yes;;
2664 eval ac_cv_prog_make_${ac_make}_set=no;;
2668 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2670 $as_echo "yes" >&6; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2675 SET_MAKE="MAKE=${MAKE-make}"
2678 rm -rf .tst 2>/dev/null
2679 mkdir .tst 2>/dev/null
2680 if test -d .tst; then
2685 rmdir .tst 2>/dev/null
2687 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2688 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2689 # is not polluted with repeated "-I."
2690 am__isrc=' -I$(srcdir)'
2691 # test to see if srcdir already configured
2692 if test -f $srcdir/config.status; then
2693 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2697 # test whether we have cygpath
2698 if test -z "$CYGPATH_W"; then
2699 if (cygpath --version) >/dev/null 2>/dev/null; then
2700 CYGPATH_W='cygpath -w'
2707 # Define the identity of the package.
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE "$PACKAGE"
2717 cat >>confdefs.h <<_ACEOF
2718 #define VERSION "$VERSION"
2721 # Some tools Automake needs.
2723 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2726 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2729 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2732 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2735 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2737 # We need awk for the "check" target. The system "awk" is bad on
2739 # Always define AMTAR for backward compatibility. Yes, it's still used
2740 # in the wild :-( We should find a proper way to deprecate it ...
2743 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2749 ac_config_headers="$ac_config_headers config.h"
2752 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2753 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2754 # is not polluted with repeated "-I."
2755 am__isrc=' -I$(srcdir)'
2756 # test to see if srcdir already configured
2757 if test -f $srcdir/config.status; then
2758 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2762 # test whether we have cygpath
2763 if test -z "$CYGPATH_W"; then
2764 if (cygpath --version) >/dev/null 2>/dev/null; then
2765 CYGPATH_W='cygpath -w'
2772 # Define the identity of the package.
2773 PACKAGE='ogrebullet'
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE "$PACKAGE"
2782 cat >>confdefs.h <<_ACEOF
2783 #define VERSION "$VERSION"
2786 # Some tools Automake needs.
2788 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2791 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2794 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2797 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2800 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2802 # We need awk for the "check" target. The system "awk" is bad on
2804 # Always define AMTAR for backward compatibility. Yes, it's still used
2805 # in the wild :-( We should find a proper way to deprecate it ...
2808 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2816 ac_cpp='$CXXCPP $CPPFLAGS'
2817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2820 if test -z "$CXX"; then
2821 if test -n "$CCC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CXX+:} false; then :
2832 $as_echo_n "(cached) " >&6
2834 if test -n "$CXX"; then
2835 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 if test -n "$CXX"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2857 $as_echo "$CXX" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2864 test -n "$CXX" && break
2867 if test -z "$CXX"; then
2869 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 if test -n "$ac_ct_CXX"; then
2879 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_ac_ct_CXX="$ac_prog"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2899 if test -n "$ac_ct_CXX"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2901 $as_echo "$ac_ct_CXX" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2908 test -n "$ac_ct_CXX" && break
2911 if test "x$ac_ct_CXX" = x; then
2914 case $cross_compiling:$ac_tool_warned in
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2926 # Provide some information about the compiler.
2927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2930 for ac_option in --version -v -V -qversion; do
2931 { { ac_try="$ac_compiler $ac_option >&5"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937 $as_echo "$ac_try_echo"; } >&5
2938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2940 if test -s conftest.err; then
2942 ... rest of stderr output deleted ...
2943 10q' conftest.err >conftest.er1
2944 cat conftest.er1 >&5
2946 rm -f conftest.er1 conftest.err
2947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2948 test $ac_status = 0; }
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2962 ac_clean_files_save=$ac_clean_files
2963 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2964 # Try to create an executable without -o first, disregard a.out.
2965 # It will help us diagnose broken compilers, and finding out an intuition
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2968 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2969 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2971 # The possible output files:
2972 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2975 for ac_file in $ac_files
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2979 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2984 if { { ac_try="$ac_link_default"
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_link_default") 2>&5
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }; then :
2995 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2996 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2997 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2998 # so that the user can short-circuit this test for compilers unknown to
3000 for ac_file in $ac_files ''
3002 test -f "$ac_file" || continue
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3007 # We found the default executable, but exeext='' is most
3011 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3015 # We set ac_cv_exeext here because the later test for it is not
3016 # safe: cross compilers may not add the suffix if given an `-o'
3017 # argument, so we may need to know it at that point already.
3018 # Even if this section looks crufty: it has the advantage of
3025 test "$ac_cv_exeext" = no && ac_cv_exeext=
3030 if test -z "$ac_file"; then :
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 $as_echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error 77 "C++ compiler cannot create executables
3039 See \`config.log' for more details" "$LINENO" 5; }
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042 $as_echo "yes" >&6; }
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3045 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3047 $as_echo "$ac_file" >&6; }
3048 ac_exeext=$ac_cv_exeext
3050 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3051 ac_clean_files=$ac_clean_files_save
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3053 $as_echo_n "checking for suffix of executables... " >&6; }
3054 if { { ac_try="$ac_link"
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link") 2>&5
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; then :
3065 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3066 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3067 # work properly (i.e., refer to `conftest.exe'), while it won't with
3069 for ac_file in conftest.exe conftest conftest.*; do
3070 test -f "$ac_file" || continue
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details" "$LINENO" 5; }
3084 rm -f conftest conftest$ac_cv_exeext
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3086 $as_echo "$ac_cv_exeext" >&6; }
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3097 FILE *f = fopen ("conftest.out", "w");
3098 return ferror (f) || fclose (f) != 0;
3104 ac_clean_files="$ac_clean_files conftest.out"
3105 # Check that the compiler produces executables we can run. If not, either
3106 # the compiler is broken, or we cross compile.
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3108 $as_echo_n "checking whether we are cross compiling... " >&6; }
3109 if test "$cross_compiling" != yes; then
3110 { { ac_try="$ac_link"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_link") 2>&5
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }
3121 if { ac_try='./conftest$ac_cv_exeext'
3122 { { case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_try") 2>&5
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; }; then
3134 if test "$cross_compiling" = maybe; then
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "cannot run C++ compiled programs.
3140 If you meant to cross compile, use \`--host'.
3141 See \`config.log' for more details" "$LINENO" 5; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3146 $as_echo "$cross_compiling" >&6; }
3148 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3149 ac_clean_files=$ac_clean_files_save
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3151 $as_echo_n "checking for suffix of object files... " >&6; }
3152 if ${ac_cv_objext+:} false; then :
3153 $as_echo_n "(cached) " >&6
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3166 rm -f conftest.o conftest.obj
3167 if { { ac_try="$ac_compile"
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173 $as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_compile") 2>&5
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }; then :
3178 for ac_file in conftest.o conftest.obj conftest.*; do
3179 test -f "$ac_file" || continue;
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3182 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "cannot compute suffix of object files: cannot compile
3193 See \`config.log' for more details" "$LINENO" 5; }
3195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3198 $as_echo "$ac_cv_objext" >&6; }
3199 OBJEXT=$ac_cv_objext
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3202 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3203 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3220 if ac_fn_cxx_try_compile "$LINENO"; then :
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3230 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3231 if test $ac_compiler_gnu = yes; then
3236 ac_test_CXXFLAGS=${CXXFLAGS+set}
3237 ac_save_CXXFLAGS=$CXXFLAGS
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3239 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3240 if ${ac_cv_prog_cxx_g+:} false; then :
3241 $as_echo_n "(cached) " >&6
3243 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3244 ac_cxx_werror_flag=yes
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3258 if ac_fn_cxx_try_compile "$LINENO"; then :
3259 ac_cv_prog_cxx_g=yes
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3273 if ac_fn_cxx_try_compile "$LINENO"; then :
3276 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3289 if ac_fn_cxx_try_compile "$LINENO"; then :
3290 ac_cv_prog_cxx_g=yes
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3300 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3301 if test "$ac_test_CXXFLAGS" = set; then
3302 CXXFLAGS=$ac_save_CXXFLAGS
3303 elif test $ac_cv_prog_cxx_g = yes; then
3304 if test "$GXX" = yes; then
3310 if test "$GXX" = yes; then
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 DEPDIR="${am__leading_dot}deps"
3323 ac_config_commands="$ac_config_commands depfiles"
3326 am_make=${MAKE-make}
3327 cat > confinc << 'END'
3329 @echo this is the am__doit target
3332 # If we don't find an include directive, just comment out the code.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3334 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3338 # First try GNU make style include.
3339 echo "include confinc" > confmf
3340 # Ignore all kinds of additional output from `make'.
3341 case `$am_make -s -f confmf 2> /dev/null` in #(
3342 *the\ am__doit\ target*)
3348 # Now try BSD make style include.
3349 if test "$am__include" = "#"; then
3350 echo '.include "confinc"' > confmf
3351 case `$am_make -s -f confmf 2> /dev/null` in #(
3352 *the\ am__doit\ target*)
3353 am__include=.include
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3362 $as_echo "$_am_result" >&6; }
3363 rm -f confinc confmf
3365 # Check whether --enable-dependency-tracking was given.
3366 if test "${enable_dependency_tracking+set}" = set; then :
3367 enableval=$enable_dependency_tracking;
3370 if test "x$enable_dependency_tracking" != xno; then
3371 am_depcomp="$ac_aux_dir/depcomp"
3375 if test "x$enable_dependency_tracking" != xno; then
3385 depcc="$CXX" am_compiler_list=
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3388 $as_echo_n "checking dependency style of $depcc... " >&6; }
3389 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3390 $as_echo_n "(cached) " >&6
3392 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3393 # We make a subdir and do the tests there. Otherwise we can end up
3394 # making bogus files that we don't know about and never remove. For
3395 # instance it was reported that on HP-UX the gcc test will end up
3396 # making a dummy file named `D' -- because `-MD' means `put the output
3400 # Copy depcomp to subdir because otherwise we won't find it if we're
3401 # using a relative directory.
3402 cp "$am_depcomp" conftest.dir
3404 # We will build objects and dependencies in a subdirectory because
3405 # it helps to detect inapplicable dependency modes. For instance
3406 # both Tru64's cc and ICC support -MD to output dependencies as a
3407 # side effect of compilation, but ICC will put the dependencies in
3408 # the current directory while Tru64 will put them in the object
3412 am_cv_CXX_dependencies_compiler_type=none
3413 if test "$am_compiler_list" = ""; then
3414 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3417 case " $depcc " in #(
3418 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3421 for depmode in $am_compiler_list; do
3422 # Setup a source with many dependencies, because some compilers
3423 # like to wrap large dependency lists on column 80 (with \), and
3424 # we should not choose a depcomp mode which is confused by this.
3426 # We need to recreate these files for each test, as the compiler may
3427 # overwrite some of them when testing with obscure command lines.
3428 # This happens at least with the AIX C compiler.
3430 for i in 1 2 3 4 5 6; do
3431 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3433 # Solaris 8's {/usr,}/bin/sh.
3434 touch sub/conftst$i.h
3436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3438 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3439 # mode. It turns out that the SunPro C++ compiler does not properly
3440 # handle `-M -o', and we need to detect this. Also, some Intel
3441 # versions had trouble with output in subdirs
3442 am__obj=sub/conftest.${OBJEXT-o}
3443 am__minus_obj="-o $am__obj"
3446 # This depmode causes a compiler race in universal mode.
3447 test "$am__universal" = false || continue
3450 # after this tag, mechanisms are not by side-effect, so they'll
3451 # only be used when explicitly requested
3452 if test "x$enable_dependency_tracking" = xyes; then
3458 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3459 # This compiler won't grok `-c -o', but also, the minuso test has
3460 # not run yet. These depmodes are late enough in the game, and
3461 # so weak that their functioning should not be impacted.
3462 am__obj=conftest.${OBJEXT-o}
3467 if depmode=$depmode \
3468 source=sub/conftest.c object=$am__obj \
3469 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3470 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3471 >/dev/null 2>conftest.err &&
3472 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485 am_cv_CXX_dependencies_compiler_type=$depmode
3494 am_cv_CXX_dependencies_compiler_type=none
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3499 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3500 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3503 test "x$enable_dependency_tracking" != xno \
3504 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3505 am__fastdepCXX_TRUE=
3506 am__fastdepCXX_FALSE='#'
3508 am__fastdepCXX_TRUE='#'
3509 am__fastdepCXX_FALSE=
3513 depcc="$CXX" am_compiler_list=
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3516 $as_echo_n "checking dependency style of $depcc... " >&6; }
3517 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3518 $as_echo_n "(cached) " >&6
3520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3521 # We make a subdir and do the tests there. Otherwise we can end up
3522 # making bogus files that we don't know about and never remove. For
3523 # instance it was reported that on HP-UX the gcc test will end up
3524 # making a dummy file named `D' -- because `-MD' means `put the output
3528 # Copy depcomp to subdir because otherwise we won't find it if we're
3529 # using a relative directory.
3530 cp "$am_depcomp" conftest.dir
3532 # We will build objects and dependencies in a subdirectory because
3533 # it helps to detect inapplicable dependency modes. For instance
3534 # both Tru64's cc and ICC support -MD to output dependencies as a
3535 # side effect of compilation, but ICC will put the dependencies in
3536 # the current directory while Tru64 will put them in the object
3540 am_cv_CXX_dependencies_compiler_type=none
3541 if test "$am_compiler_list" = ""; then
3542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3545 case " $depcc " in #(
3546 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3549 for depmode in $am_compiler_list; do
3550 # Setup a source with many dependencies, because some compilers
3551 # like to wrap large dependency lists on column 80 (with \), and
3552 # we should not choose a depcomp mode which is confused by this.
3554 # We need to recreate these files for each test, as the compiler may
3555 # overwrite some of them when testing with obscure command lines.
3556 # This happens at least with the AIX C compiler.
3558 for i in 1 2 3 4 5 6; do
3559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3560 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3561 # Solaris 8's {/usr,}/bin/sh.
3562 touch sub/conftst$i.h
3564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3566 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3567 # mode. It turns out that the SunPro C++ compiler does not properly
3568 # handle `-M -o', and we need to detect this. Also, some Intel
3569 # versions had trouble with output in subdirs
3570 am__obj=sub/conftest.${OBJEXT-o}
3571 am__minus_obj="-o $am__obj"
3574 # This depmode causes a compiler race in universal mode.
3575 test "$am__universal" = false || continue
3578 # after this tag, mechanisms are not by side-effect, so they'll
3579 # only be used when explicitly requested
3580 if test "x$enable_dependency_tracking" = xyes; then
3586 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3587 # This compiler won't grok `-c -o', but also, the minuso test has
3588 # not run yet. These depmodes are late enough in the game, and
3589 # so weak that their functioning should not be impacted.
3590 am__obj=conftest.${OBJEXT-o}
3595 if depmode=$depmode \
3596 source=sub/conftest.c object=$am__obj \
3597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3598 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3599 >/dev/null 2>conftest.err &&
3600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3602 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3604 # icc doesn't choke on unknown options, it will just issue warnings
3605 # or remarks (even with -Werror). So we grep stderr for any message
3606 # that says an option was ignored or not supported.
3607 # When given -MP, icc 7.0 and 7.1 complain thusly:
3608 # icc: Command line warning: ignoring option '-M'; no argument required
3609 # The diagnosis changed in icc 8.0:
3610 # icc: Command line remark: option '-MP' not supported
3611 if (grep 'ignoring option' conftest.err ||
3612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3613 am_cv_CXX_dependencies_compiler_type=$depmode
3622 am_cv_CXX_dependencies_compiler_type=none
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3627 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3628 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3631 test "x$enable_dependency_tracking" != xno \
3632 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3633 am__fastdepCXX_TRUE=
3634 am__fastdepCXX_FALSE='#'
3636 am__fastdepCXX_TRUE='#'
3637 am__fastdepCXX_FALSE=
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3644 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3649 macro_version='2.4.2'
3650 macro_revision='1.3337'
3664 ltmain="$ac_aux_dir/ltmain.sh"
3666 # Make sure we can run config.sub.
3667 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3668 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3671 $as_echo_n "checking build system type... " >&6; }
3672 if ${ac_cv_build+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 ac_build_alias=$build_alias
3676 test "x$ac_build_alias" = x &&
3677 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3678 test "x$ac_build_alias" = x &&
3679 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3685 $as_echo "$ac_cv_build" >&6; }
3686 case $ac_cv_build in
3688 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3691 ac_save_IFS=$IFS; IFS='-'
3697 # Remember, the first character of IFS is used to create $*,
3698 # except with old shells:
3701 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3705 $as_echo_n "checking host system type... " >&6; }
3706 if ${ac_cv_host+:} false; then :
3707 $as_echo_n "(cached) " >&6
3709 if test "x$host_alias" = x; then
3710 ac_cv_host=$ac_cv_build
3712 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3713 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3718 $as_echo "$ac_cv_host" >&6; }
3721 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3724 ac_save_IFS=$IFS; IFS='-'
3730 # Remember, the first character of IFS is used to create $*,
3731 # except with old shells:
3734 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3737 # Backslashify metacharacters that are still active within
3738 # double-quoted strings.
3739 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3741 # Same as above, but do not quote variable references.
3742 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3744 # Sed substitution to delay expansion of an escaped shell variable in a
3745 # double_quote_subst'ed string.
3746 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3748 # Sed substitution to delay expansion of an escaped single quote.
3749 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3751 # Sed substitution to avoid accidental globbing in evaled expressions
3752 no_glob_subst='s/\*/\\\*/g'
3754 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3755 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3756 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3759 $as_echo_n "checking how to print strings... " >&6; }
3760 # Test print first, because it will be a builtin if present.
3761 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3762 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3764 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3767 # Use this function as a fallback that always works.
3768 func_fallback_echo ()
3770 eval 'cat <<_LTECHO_EOF
3774 ECHO='func_fallback_echo'
3777 # func_echo_all arg...
3778 # Invoke $ECHO with all args, space-separated.
3785 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3786 $as_echo "printf" >&6; } ;;
3787 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3788 $as_echo "print -r" >&6; } ;;
3789 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3790 $as_echo "cat" >&6; } ;;
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_CC+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 if test -n "$CC"; then
3820 ac_cv_prog_CC="$CC" # Let the user override the test.
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 if test -n "$CC"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842 $as_echo "$CC" >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3850 if test -z "$ac_cv_prog_CC"; then
3852 # Extract the first word of "gcc", so it can be a program name with args.
3853 set dummy gcc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$ac_ct_CC"; then
3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_ac_ct_CC="gcc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880 if test -n "$ac_ct_CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882 $as_echo "$ac_ct_CC" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3888 if test "x$ac_ct_CC" = x; then
3891 case $cross_compiling:$ac_tool_warned in
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned=yes ;;
3903 if test -z "$CC"; then
3904 if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3906 set dummy ${ac_tool_prefix}cc; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if ${ac_cv_prog_CC+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3922 ac_cv_prog_CC="${ac_tool_prefix}cc"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3944 if test -z "$CC"; then
3945 # Extract the first word of "cc", so it can be a program name with args.
3946 set dummy cc; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CC+:} false; then :
3950 $as_echo_n "(cached) " >&6
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC="$CC" # Let the user override the test.
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3964 ac_prog_rejected=yes
3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 if test $ac_prog_rejected = yes; then
3976 # We found a bogon in the path, so make sure we never use it.
3977 set dummy $ac_cv_prog_CC
3979 if test $# != 0; then
3980 # We chose a different compiler from the bogus one.
3981 # However, it has the same basename, so the bogon will be chosen
3982 # first if we set CC to just the basename; use the full file name.
3984 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3990 if test -n "$CC"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3992 $as_echo "$CC" >&6; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
4000 if test -z "$CC"; then
4001 if test -n "$ac_tool_prefix"; then
4002 for ac_prog in cl.exe
4004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_CC+:} false; then :
4009 $as_echo_n "(cached) " >&6
4011 if test -n "$CC"; then
4012 ac_cv_prog_CC="$CC" # Let the user override the test.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4041 test -n "$CC" && break
4044 if test -z "$CC"; then
4046 for ac_prog in cl.exe
4048 # Extract the first word of "$ac_prog", so it can be a program name with args.
4049 set dummy $ac_prog; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4053 $as_echo_n "(cached) " >&6
4055 if test -n "$ac_ct_CC"; then
4056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4065 ac_cv_prog_ac_ct_CC="$ac_prog"
4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4076 if test -n "$ac_ct_CC"; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4078 $as_echo "$ac_ct_CC" >&6; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4085 test -n "$ac_ct_CC" && break
4088 if test "x$ac_ct_CC" = x; then
4091 case $cross_compiling:$ac_tool_warned in
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4095 ac_tool_warned=yes ;;
4104 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4106 as_fn_error $? "no acceptable C compiler found in \$PATH
4107 See \`config.log' for more details" "$LINENO" 5; }
4109 # Provide some information about the compiler.
4110 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4113 for ac_option in --version -v -V -qversion; do
4114 { { ac_try="$ac_compiler $ac_option >&5"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 $as_echo "$ac_try_echo"; } >&5
4121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4123 if test -s conftest.err; then
4125 ... rest of stderr output deleted ...
4126 10q' conftest.err >conftest.er1
4127 cat conftest.er1 >&5
4129 rm -f conftest.er1 conftest.err
4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4135 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4136 if ${ac_cv_c_compiler_gnu+:} false; then :
4137 $as_echo_n "(cached) " >&6
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4153 if ac_fn_c_try_compile "$LINENO"; then :
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4163 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4164 if test $ac_compiler_gnu = yes; then
4169 ac_test_CFLAGS=${CFLAGS+set}
4170 ac_save_CFLAGS=$CFLAGS
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4172 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4173 if ${ac_cv_prog_cc_g+:} false; then :
4174 $as_echo_n "(cached) " >&6
4176 ac_save_c_werror_flag=$ac_c_werror_flag
4177 ac_c_werror_flag=yes
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4191 if ac_fn_c_try_compile "$LINENO"; then :
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4206 if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4222 if ac_fn_c_try_compile "$LINENO"; then :
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 ac_c_werror_flag=$ac_save_c_werror_flag
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4233 $as_echo "$ac_cv_prog_cc_g" >&6; }
4234 if test "$ac_test_CFLAGS" = set; then
4235 CFLAGS=$ac_save_CFLAGS
4236 elif test $ac_cv_prog_cc_g = yes; then
4237 if test "$GCC" = yes; then
4243 if test "$GCC" = yes; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4250 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4251 if ${ac_cv_prog_cc_c89+:} false; then :
4252 $as_echo_n "(cached) " >&6
4254 ac_cv_prog_cc_c89=no
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4260 #include <sys/types.h>
4261 #include <sys/stat.h>
4262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4263 struct buf { int x; };
4264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265 static char *e (p, i)
4271 static char *f (char * (*g) (char **, int), char **p, ...)
4276 s = g (p, va_arg (v,int));
4281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4282 function prototypes and stuff, but not '\xHH' hex character constants.
4283 These don't provoke an error unfortunately, instead are silently treated
4284 as 'x'. The following induces an error, until -std is added to get
4285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4286 array size at least. It's necessary to write '\x00'==0 to get something
4287 that's true only with -std. */
4288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4291 inside strings and character constants. */
4293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4295 int test (int i, double x);
4296 struct s1 {int (*f) (int a);};
4297 struct s2 {int (*f) (double a);};
4298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4304 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4312 CC="$ac_save_CC $ac_arg"
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_cv_prog_cc_c89=$ac_arg
4316 rm -f core conftest.err conftest.$ac_objext
4317 test "x$ac_cv_prog_cc_c89" != "xno" && break
4319 rm -f conftest.$ac_ext
4324 case "x$ac_cv_prog_cc_c89" in
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327 $as_echo "none needed" >&6; } ;;
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4330 $as_echo "unsupported" >&6; } ;;
4332 CC="$CC $ac_cv_prog_cc_c89"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4334 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4336 if test "x$ac_cv_prog_cc_c89" != xno; then :
4341 ac_cpp='$CPP $CPPFLAGS'
4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346 depcc="$CC" am_compiler_list=
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4349 $as_echo_n "checking dependency style of $depcc... " >&6; }
4350 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4351 $as_echo_n "(cached) " >&6
4353 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4354 # We make a subdir and do the tests there. Otherwise we can end up
4355 # making bogus files that we don't know about and never remove. For
4356 # instance it was reported that on HP-UX the gcc test will end up
4357 # making a dummy file named `D' -- because `-MD' means `put the output
4361 # Copy depcomp to subdir because otherwise we won't find it if we're
4362 # using a relative directory.
4363 cp "$am_depcomp" conftest.dir
4365 # We will build objects and dependencies in a subdirectory because
4366 # it helps to detect inapplicable dependency modes. For instance
4367 # both Tru64's cc and ICC support -MD to output dependencies as a
4368 # side effect of compilation, but ICC will put the dependencies in
4369 # the current directory while Tru64 will put them in the object
4373 am_cv_CC_dependencies_compiler_type=none
4374 if test "$am_compiler_list" = ""; then
4375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4378 case " $depcc " in #(
4379 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4382 for depmode in $am_compiler_list; do
4383 # Setup a source with many dependencies, because some compilers
4384 # like to wrap large dependency lists on column 80 (with \), and
4385 # we should not choose a depcomp mode which is confused by this.
4387 # We need to recreate these files for each test, as the compiler may
4388 # overwrite some of them when testing with obscure command lines.
4389 # This happens at least with the AIX C compiler.
4391 for i in 1 2 3 4 5 6; do
4392 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4393 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4394 # Solaris 8's {/usr,}/bin/sh.
4395 touch sub/conftst$i.h
4397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4399 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4400 # mode. It turns out that the SunPro C++ compiler does not properly
4401 # handle `-M -o', and we need to detect this. Also, some Intel
4402 # versions had trouble with output in subdirs
4403 am__obj=sub/conftest.${OBJEXT-o}
4404 am__minus_obj="-o $am__obj"
4407 # This depmode causes a compiler race in universal mode.
4408 test "$am__universal" = false || continue
4411 # after this tag, mechanisms are not by side-effect, so they'll
4412 # only be used when explicitly requested
4413 if test "x$enable_dependency_tracking" = xyes; then
4419 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4420 # This compiler won't grok `-c -o', but also, the minuso test has
4421 # not run yet. These depmodes are late enough in the game, and
4422 # so weak that their functioning should not be impacted.
4423 am__obj=conftest.${OBJEXT-o}
4428 if depmode=$depmode \
4429 source=sub/conftest.c object=$am__obj \
4430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4431 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4432 >/dev/null 2>conftest.err &&
4433 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4434 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4435 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4437 # icc doesn't choke on unknown options, it will just issue warnings
4438 # or remarks (even with -Werror). So we grep stderr for any message
4439 # that says an option was ignored or not supported.
4440 # When given -MP, icc 7.0 and 7.1 complain thusly:
4441 # icc: Command line warning: ignoring option '-M'; no argument required
4442 # The diagnosis changed in icc 8.0:
4443 # icc: Command line remark: option '-MP' not supported
4444 if (grep 'ignoring option' conftest.err ||
4445 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4446 am_cv_CC_dependencies_compiler_type=$depmode
4455 am_cv_CC_dependencies_compiler_type=none
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4460 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4461 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4464 test "x$enable_dependency_tracking" != xno \
4465 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4467 am__fastdepCC_FALSE='#'
4469 am__fastdepCC_TRUE='#'
4470 am__fastdepCC_FALSE=
4474 depcc="$CC" am_compiler_list=
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4477 $as_echo_n "checking dependency style of $depcc... " >&6; }
4478 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4479 $as_echo_n "(cached) " >&6
4481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4482 # We make a subdir and do the tests there. Otherwise we can end up
4483 # making bogus files that we don't know about and never remove. For
4484 # instance it was reported that on HP-UX the gcc test will end up
4485 # making a dummy file named `D' -- because `-MD' means `put the output
4489 # Copy depcomp to subdir because otherwise we won't find it if we're
4490 # using a relative directory.
4491 cp "$am_depcomp" conftest.dir
4493 # We will build objects and dependencies in a subdirectory because
4494 # it helps to detect inapplicable dependency modes. For instance
4495 # both Tru64's cc and ICC support -MD to output dependencies as a
4496 # side effect of compilation, but ICC will put the dependencies in
4497 # the current directory while Tru64 will put them in the object
4501 am_cv_CC_dependencies_compiler_type=none
4502 if test "$am_compiler_list" = ""; then
4503 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4506 case " $depcc " in #(
4507 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4510 for depmode in $am_compiler_list; do
4511 # Setup a source with many dependencies, because some compilers
4512 # like to wrap large dependency lists on column 80 (with \), and
4513 # we should not choose a depcomp mode which is confused by this.
4515 # We need to recreate these files for each test, as the compiler may
4516 # overwrite some of them when testing with obscure command lines.
4517 # This happens at least with the AIX C compiler.
4519 for i in 1 2 3 4 5 6; do
4520 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4521 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4522 # Solaris 8's {/usr,}/bin/sh.
4523 touch sub/conftst$i.h
4525 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4528 # mode. It turns out that the SunPro C++ compiler does not properly
4529 # handle `-M -o', and we need to detect this. Also, some Intel
4530 # versions had trouble with output in subdirs
4531 am__obj=sub/conftest.${OBJEXT-o}
4532 am__minus_obj="-o $am__obj"
4535 # This depmode causes a compiler race in universal mode.
4536 test "$am__universal" = false || continue
4539 # after this tag, mechanisms are not by side-effect, so they'll
4540 # only be used when explicitly requested
4541 if test "x$enable_dependency_tracking" = xyes; then
4547 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4548 # This compiler won't grok `-c -o', but also, the minuso test has
4549 # not run yet. These depmodes are late enough in the game, and
4550 # so weak that their functioning should not be impacted.
4551 am__obj=conftest.${OBJEXT-o}
4556 if depmode=$depmode \
4557 source=sub/conftest.c object=$am__obj \
4558 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4559 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4560 >/dev/null 2>conftest.err &&
4561 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4562 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4563 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4564 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4565 # icc doesn't choke on unknown options, it will just issue warnings
4566 # or remarks (even with -Werror). So we grep stderr for any message
4567 # that says an option was ignored or not supported.
4568 # When given -MP, icc 7.0 and 7.1 complain thusly:
4569 # icc: Command line warning: ignoring option '-M'; no argument required
4570 # The diagnosis changed in icc 8.0:
4571 # icc: Command line remark: option '-MP' not supported
4572 if (grep 'ignoring option' conftest.err ||
4573 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4574 am_cv_CC_dependencies_compiler_type=$depmode
4583 am_cv_CC_dependencies_compiler_type=none
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4588 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4589 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4592 test "x$enable_dependency_tracking" != xno \
4593 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4595 am__fastdepCC_FALSE='#'
4597 am__fastdepCC_TRUE='#'
4598 am__fastdepCC_FALSE=
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4603 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4604 if ${ac_cv_path_SED+:} false; then :
4605 $as_echo_n "(cached) " >&6
4607 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4608 for ac_i in 1 2 3 4 5 6 7; do
4609 ac_script="$ac_script$as_nl$ac_script"
4611 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4612 { ac_script=; unset ac_script;}
4613 if test -z "$SED"; then
4614 ac_path_SED_found=false
4615 # Loop through the user's path and test for each of PROGNAME-LIST
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir=.
4621 for ac_prog in sed gsed; do
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4624 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4625 # Check for GNU ac_path_SED and select it if it is found.
4626 # Check for GNU $ac_path_SED
4627 case `"$ac_path_SED" --version 2>&1` in
4629 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4632 $as_echo_n 0123456789 >"conftest.in"
4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
4636 mv "conftest.tmp" "conftest.in"
4637 cp "conftest.in" "conftest.nl"
4638 $as_echo '' >> "conftest.nl"
4639 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641 as_fn_arith $ac_count + 1 && ac_count=$as_val
4642 if test $ac_count -gt ${ac_path_SED_max-0}; then
4643 # Best one so far, save it but keep looking for a better one
4644 ac_cv_path_SED="$ac_path_SED"
4645 ac_path_SED_max=$ac_count
4647 # 10*(2^10) chars as input seems more than enough
4648 test $ac_count -gt 10 && break
4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653 $ac_path_SED_found && break 3
4658 if test -z "$ac_cv_path_SED"; then
4659 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4667 $as_echo "$ac_cv_path_SED" >&6; }
4668 SED="$ac_cv_path_SED"
4671 test -z "$SED" && SED=sed
4672 Xsed="$SED -e 1s/^X//"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4685 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4686 if ${ac_cv_path_GREP+:} false; then :
4687 $as_echo_n "(cached) " >&6
4689 if test -z "$GREP"; then
4690 ac_path_GREP_found=false
4691 # Loop through the user's path and test for each of PROGNAME-LIST
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696 test -z "$as_dir" && as_dir=.
4697 for ac_prog in grep ggrep; do
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4700 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4701 # Check for GNU ac_path_GREP and select it if it is found.
4702 # Check for GNU $ac_path_GREP
4703 case `"$ac_path_GREP" --version 2>&1` in
4705 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4708 $as_echo_n 0123456789 >"conftest.in"
4711 cat "conftest.in" "conftest.in" >"conftest.tmp"
4712 mv "conftest.tmp" "conftest.in"
4713 cp "conftest.in" "conftest.nl"
4714 $as_echo 'GREP' >> "conftest.nl"
4715 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717 as_fn_arith $ac_count + 1 && ac_count=$as_val
4718 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4719 # Best one so far, save it but keep looking for a better one
4720 ac_cv_path_GREP="$ac_path_GREP"
4721 ac_path_GREP_max=$ac_count
4723 # 10*(2^10) chars as input seems more than enough
4724 test $ac_count -gt 10 && break
4726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729 $ac_path_GREP_found && break 3
4734 if test -z "$ac_cv_path_GREP"; then
4735 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4738 ac_cv_path_GREP=$GREP
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4743 $as_echo "$ac_cv_path_GREP" >&6; }
4744 GREP="$ac_cv_path_GREP"
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4748 $as_echo_n "checking for egrep... " >&6; }
4749 if ${ac_cv_path_EGREP+:} false; then :
4750 $as_echo_n "(cached) " >&6
4752 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4753 then ac_cv_path_EGREP="$GREP -E"
4755 if test -z "$EGREP"; then
4756 ac_path_EGREP_found=false
4757 # Loop through the user's path and test for each of PROGNAME-LIST
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4762 test -z "$as_dir" && as_dir=.
4763 for ac_prog in egrep; do
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4766 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4767 # Check for GNU ac_path_EGREP and select it if it is found.
4768 # Check for GNU $ac_path_EGREP
4769 case `"$ac_path_EGREP" --version 2>&1` in
4771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4774 $as_echo_n 0123456789 >"conftest.in"
4777 cat "conftest.in" "conftest.in" >"conftest.tmp"
4778 mv "conftest.tmp" "conftest.in"
4779 cp "conftest.in" "conftest.nl"
4780 $as_echo 'EGREP' >> "conftest.nl"
4781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4783 as_fn_arith $ac_count + 1 && ac_count=$as_val
4784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4785 # Best one so far, save it but keep looking for a better one
4786 ac_cv_path_EGREP="$ac_path_EGREP"
4787 ac_path_EGREP_max=$ac_count
4789 # 10*(2^10) chars as input seems more than enough
4790 test $ac_count -gt 10 && break
4792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4795 $ac_path_EGREP_found && break 3
4800 if test -z "$ac_cv_path_EGREP"; then
4801 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4804 ac_cv_path_EGREP=$EGREP
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4810 $as_echo "$ac_cv_path_EGREP" >&6; }
4811 EGREP="$ac_cv_path_EGREP"
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4815 $as_echo_n "checking for fgrep... " >&6; }
4816 if ${ac_cv_path_FGREP+:} false; then :
4817 $as_echo_n "(cached) " >&6
4819 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4820 then ac_cv_path_FGREP="$GREP -F"
4822 if test -z "$FGREP"; then
4823 ac_path_FGREP_found=false
4824 # Loop through the user's path and test for each of PROGNAME-LIST
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4829 test -z "$as_dir" && as_dir=.
4830 for ac_prog in fgrep; do
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4833 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4834 # Check for GNU ac_path_FGREP and select it if it is found.
4835 # Check for GNU $ac_path_FGREP
4836 case `"$ac_path_FGREP" --version 2>&1` in
4838 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4841 $as_echo_n 0123456789 >"conftest.in"
4844 cat "conftest.in" "conftest.in" >"conftest.tmp"
4845 mv "conftest.tmp" "conftest.in"
4846 cp "conftest.in" "conftest.nl"
4847 $as_echo 'FGREP' >> "conftest.nl"
4848 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850 as_fn_arith $ac_count + 1 && ac_count=$as_val
4851 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4852 # Best one so far, save it but keep looking for a better one
4853 ac_cv_path_FGREP="$ac_path_FGREP"
4854 ac_path_FGREP_max=$ac_count
4856 # 10*(2^10) chars as input seems more than enough
4857 test $ac_count -gt 10 && break
4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 $ac_path_FGREP_found && break 3
4867 if test -z "$ac_cv_path_FGREP"; then
4868 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4871 ac_cv_path_FGREP=$FGREP
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4877 $as_echo "$ac_cv_path_FGREP" >&6; }
4878 FGREP="$ac_cv_path_FGREP"
4881 test -z "$GREP" && GREP=grep
4901 # Check whether --with-gnu-ld was given.
4902 if test "${with_gnu_ld+set}" = set; then :
4903 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4909 if test "$GCC" = yes; then
4910 # Check if gcc -print-prog-name=ld gives a path.
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4912 $as_echo_n "checking for ld used by $CC... " >&6; }
4915 # gcc leaves a trailing carriage return which upsets mingw
4916 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4918 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4921 # Accept absolute paths.
4923 re_direlt='/[^/][^/]*/\.\./'
4924 # Canonicalize the pathname of ld
4925 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4926 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4927 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4929 test -z "$LD" && LD="$ac_prog"
4932 # If it fails, then pretend we aren't using GCC.
4936 # If it is relative, then search for the first ld in PATH.
4940 elif test "$with_gnu_ld" = yes; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4942 $as_echo_n "checking for GNU ld... " >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4945 $as_echo_n "checking for non-GNU ld... " >&6; }
4947 if ${lt_cv_path_LD+:} false; then :
4948 $as_echo_n "(cached) " >&6
4950 if test -z "$LD"; then
4951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4952 for ac_dir in $PATH; do
4954 test -z "$ac_dir" && ac_dir=.
4955 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4956 lt_cv_path_LD="$ac_dir/$ac_prog"
4957 # Check to see if the program is GNU ld. I'd rather use --version,
4958 # but apparently some variants of GNU ld only accept -v.
4959 # Break only if it was the GNU/non-GNU ld that we prefer.
4960 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4961 *GNU* | *'with BFD'*)
4962 test "$with_gnu_ld" != no && break
4965 test "$with_gnu_ld" != yes && break
4972 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4977 if test -n "$LD"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4979 $as_echo "$LD" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4984 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4986 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4987 if ${lt_cv_prog_gnu_ld+:} false; then :
4988 $as_echo_n "(cached) " >&6
4990 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4991 case `$LD -v 2>&1 </dev/null` in
4992 *GNU* | *'with BFD'*)
4993 lt_cv_prog_gnu_ld=yes
4996 lt_cv_prog_gnu_ld=no
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5001 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5002 with_gnu_ld=$lt_cv_prog_gnu_ld
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5013 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5014 if ${lt_cv_path_NM+:} false; then :
5015 $as_echo_n "(cached) " >&6
5017 if test -n "$NM"; then
5018 # Let the user override the test.
5021 lt_nm_to_check="${ac_tool_prefix}nm"
5022 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5023 lt_nm_to_check="$lt_nm_to_check nm"
5025 for lt_tmp_nm in $lt_nm_to_check; do
5026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5027 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5029 test -z "$ac_dir" && ac_dir=.
5030 tmp_nm="$ac_dir/$lt_tmp_nm"
5031 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5032 # Check to see if the nm accepts a BSD-compat flag.
5033 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5034 # nm: unknown option "B" ignored
5035 # Tru64's nm complains that /dev/null is an invalid object file
5036 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5037 */dev/null* | *'Invalid file or object type'*)
5038 lt_cv_path_NM="$tmp_nm -B"
5042 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5044 lt_cv_path_NM="$tmp_nm -p"
5048 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5049 continue # so that we can try to find one that supports BSD flags
5058 : ${lt_cv_path_NM=no}
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5062 $as_echo "$lt_cv_path_NM" >&6; }
5063 if test "$lt_cv_path_NM" != "no"; then
5066 # Didn't find any BSD compatible name lister, look for dumpbin.
5067 if test -n "$DUMPBIN"; then :
5068 # Let the user override the test.
5070 if test -n "$ac_tool_prefix"; then
5071 for ac_prog in dumpbin "link -dump"
5073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if ${ac_cv_prog_DUMPBIN+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 if test -n "$DUMPBIN"; then
5081 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 DUMPBIN=$ac_cv_prog_DUMPBIN
5101 if test -n "$DUMPBIN"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5103 $as_echo "$DUMPBIN" >&6; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5110 test -n "$DUMPBIN" && break
5113 if test -z "$DUMPBIN"; then
5114 ac_ct_DUMPBIN=$DUMPBIN
5115 for ac_prog in dumpbin "link -dump"
5117 # Extract the first word of "$ac_prog", so it can be a program name with args.
5118 set dummy $ac_prog; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5122 $as_echo_n "(cached) " >&6
5124 if test -n "$ac_ct_DUMPBIN"; then
5125 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5145 if test -n "$ac_ct_DUMPBIN"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5147 $as_echo "$ac_ct_DUMPBIN" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5154 test -n "$ac_ct_DUMPBIN" && break
5157 if test "x$ac_ct_DUMPBIN" = x; then
5160 case $cross_compiling:$ac_tool_warned in
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164 ac_tool_warned=yes ;;
5166 DUMPBIN=$ac_ct_DUMPBIN
5170 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5172 DUMPBIN="$DUMPBIN -symbols"
5180 if test "$DUMPBIN" != ":"; then
5184 test -z "$NM" && NM=nm
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5192 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5193 if ${lt_cv_nm_interface+:} false; then :
5194 $as_echo_n "(cached) " >&6
5196 lt_cv_nm_interface="BSD nm"
5197 echo "int some_variable = 0;" > conftest.$ac_ext
5198 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5199 (eval "$ac_compile" 2>conftest.err)
5200 cat conftest.err >&5
5201 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5202 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5203 cat conftest.err >&5
5204 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5205 cat conftest.out >&5
5206 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5207 lt_cv_nm_interface="MS dumpbin"
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5212 $as_echo "$lt_cv_nm_interface" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5215 $as_echo_n "checking whether ln -s works... " >&6; }
5217 if test "$LN_S" = "ln -s"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5219 $as_echo "yes" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5222 $as_echo "no, using $LN_S" >&6; }
5225 # find the maximum length of command line arguments
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5227 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5228 if ${lt_cv_sys_max_cmd_len+:} false; then :
5229 $as_echo_n "(cached) " >&6
5236 # On DJGPP, this test can blow up pretty badly due to problems in libc
5237 # (any single argument exceeding 2000 bytes causes a buffer overrun
5238 # during glob expansion). Even if it were fixed, the result of this
5239 # check would be larger than it should be.
5240 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5244 # Under GNU Hurd, this test is not required because there is
5245 # no limit to the length of command line arguments.
5246 # Libtool will interpret -1 as no limit whatsoever
5247 lt_cv_sys_max_cmd_len=-1;
5250 cygwin* | mingw* | cegcc*)
5251 # On Win9x/ME, this test blows up -- it succeeds, but takes
5252 # about 5 minutes as the teststring grows exponentially.
5253 # Worse, since 9x/ME are not pre-emptively multitasking,
5254 # you end up with a "frozen" computer, even though with patience
5255 # the test eventually succeeds (with a max line length of 256k).
5256 # Instead, let's just punt: use the minimum linelength reported by
5257 # all of the supported platforms: 8192 (on NT/2K/XP).
5258 lt_cv_sys_max_cmd_len=8192;
5262 # On MiNT this can take a long time and run out of memory.
5263 lt_cv_sys_max_cmd_len=8192;
5267 # On AmigaOS with pdksh, this test takes hours, literally.
5268 # So we just punt and use a minimum line length of 8192.
5269 lt_cv_sys_max_cmd_len=8192;
5272 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5273 # This has been around since 386BSD, at least. Likely further.
5274 if test -x /sbin/sysctl; then
5275 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5276 elif test -x /usr/sbin/sysctl; then
5277 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5279 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5281 # And add a safety zone
5282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5287 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5288 lt_cv_sys_max_cmd_len=196608
5292 # The test takes a long time on OS/2.
5293 lt_cv_sys_max_cmd_len=8192
5297 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5298 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5299 # nice to cause kernel panics so lets avoid the loop below.
5300 # First set a reasonable default.
5301 lt_cv_sys_max_cmd_len=16384
5303 if test -x /sbin/sysconfig; then
5304 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5305 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5310 lt_cv_sys_max_cmd_len=102400
5312 sysv5* | sco5v6* | sysv4.2uw2*)
5313 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5314 if test -n "$kargmax"; then
5315 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5317 lt_cv_sys_max_cmd_len=32768
5321 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5322 if test -n "$lt_cv_sys_max_cmd_len"; then
5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5326 # Make teststring a little bigger before we do anything with it.
5327 # a 1K string should be a reasonable start.
5328 for i in 1 2 3 4 5 6 7 8 ; do
5329 teststring=$teststring$teststring
5331 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5332 # If test is not a shell built-in, we'll probably end up computing a
5333 # maximum length that is only half of the actual maximum length, but
5335 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5336 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5337 test $i != 17 # 1/2 MB should be enough
5340 teststring=$teststring$teststring
5342 # Only check the string length outside the loop.
5343 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5345 # Add a significant safety factor because C++ compilers can tack on
5346 # massive amounts of additional arguments before passing them to the
5347 # linker. It appears as though 1/2 is a usable value.
5348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5355 if test -n $lt_cv_sys_max_cmd_len ; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5357 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5360 $as_echo "none" >&6; }
5362 max_cmd_len=$lt_cv_sys_max_cmd_len
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5374 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5375 # Try some XSI features
5378 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5380 && eval 'test $(( 1 + 1 )) -eq 2 \
5381 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5384 $as_echo "$xsi_shell" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5388 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5390 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5392 && lt_shell_append=yes
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5394 $as_echo "$lt_shell_append" >&6; }
5397 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5407 # test EBCDIC or ASCII
5408 case `echo X|tr X '\101'` in
5409 A) # ASCII based system
5410 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5411 lt_SP2NL='tr \040 \012'
5412 lt_NL2SP='tr \015\012 \040\040'
5414 *) # EBCDIC based system
5415 lt_SP2NL='tr \100 \n'
5416 lt_NL2SP='tr \r\n \100\100'
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5429 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5430 if ${lt_cv_to_host_file_cmd+:} false; then :
5431 $as_echo_n "(cached) " >&6
5436 *-*-mingw* ) # actually msys
5437 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5440 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5442 * ) # otherwise, assume *nix
5443 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5449 *-*-mingw* ) # actually msys
5450 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5453 lt_cv_to_host_file_cmd=func_convert_file_noop
5455 * ) # otherwise, assume *nix
5456 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5460 * ) # unhandled hosts (and "normal" native builds)
5461 lt_cv_to_host_file_cmd=func_convert_file_noop
5467 to_host_file_cmd=$lt_cv_to_host_file_cmd
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5469 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5476 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5477 if ${lt_cv_to_tool_file_cmd+:} false; then :
5478 $as_echo_n "(cached) " >&6
5480 #assume ordinary cross tools, or native build.
5481 lt_cv_to_tool_file_cmd=func_convert_file_noop
5485 *-*-mingw* ) # actually msys
5486 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5494 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5496 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5503 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5504 if ${lt_cv_ld_reload_flag+:} false; then :
5505 $as_echo_n "(cached) " >&6
5507 lt_cv_ld_reload_flag='-r'
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5510 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5511 reload_flag=$lt_cv_ld_reload_flag
5512 case $reload_flag in
5514 *) reload_flag=" $reload_flag" ;;
5516 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5518 cygwin* | mingw* | pw32* | cegcc*)
5519 if test "$GCC" != yes; then
5524 if test "$GCC" = yes; then
5525 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5527 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5540 if test -n "$ac_tool_prefix"; then
5541 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5542 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_OBJDUMP+:} false; then :
5546 $as_echo_n "(cached) " >&6
5548 if test -n "$OBJDUMP"; then
5549 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 OBJDUMP=$ac_cv_prog_OBJDUMP
5569 if test -n "$OBJDUMP"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5571 $as_echo "$OBJDUMP" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5579 if test -z "$ac_cv_prog_OBJDUMP"; then
5580 ac_ct_OBJDUMP=$OBJDUMP
5581 # Extract the first word of "objdump", so it can be a program name with args.
5582 set dummy objdump; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5586 $as_echo_n "(cached) " >&6
5588 if test -n "$ac_ct_OBJDUMP"; then
5589 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5609 if test -n "$ac_ct_OBJDUMP"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5611 $as_echo "$ac_ct_OBJDUMP" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5617 if test "x$ac_ct_OBJDUMP" = x; then
5620 case $cross_compiling:$ac_tool_warned in
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624 ac_tool_warned=yes ;;
5626 OBJDUMP=$ac_ct_OBJDUMP
5629 OBJDUMP="$ac_cv_prog_OBJDUMP"
5632 test -z "$OBJDUMP" && OBJDUMP=objdump
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5643 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5644 if ${lt_cv_deplibs_check_method+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 lt_cv_file_magic_cmd='$MAGIC_CMD'
5648 lt_cv_file_magic_test_file=
5649 lt_cv_deplibs_check_method='unknown'
5650 # Need to set the preceding variable on all platforms that support
5651 # interlibrary dependencies.
5652 # 'none' -- dependencies not supported.
5653 # `unknown' -- same as none, but documents that we really don't know.
5654 # 'pass_all' -- all dependencies passed with no checks.
5655 # 'test_compile' -- check by making test program.
5656 # 'file_magic [[regex]]' -- check by looking for files in library path
5657 # which responds to the $file_magic_cmd with a given extended regex.
5658 # If you have `file' or equivalent on your system and you're not sure
5659 # whether `pass_all' will *always* work, you probably want this one.
5663 lt_cv_deplibs_check_method=pass_all
5667 lt_cv_deplibs_check_method=pass_all
5671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5672 lt_cv_file_magic_cmd='/usr/bin/file -L'
5673 lt_cv_file_magic_test_file=/shlib/libc.so
5677 # func_win32_libid is a shell function defined in ltmain.sh
5678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5679 lt_cv_file_magic_cmd='func_win32_libid'
5683 # Base MSYS/MinGW do not provide the 'file' command needed by
5684 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5685 # unless we find 'file', for example because we are cross-compiling.
5686 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5687 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5689 lt_cv_file_magic_cmd='func_win32_libid'
5691 # Keep this pattern in sync with the one in func_win32_libid.
5692 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5693 lt_cv_file_magic_cmd='$OBJDUMP -f'
5698 # use the weaker test based on 'objdump'. See mingw*.
5699 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5700 lt_cv_file_magic_cmd='$OBJDUMP -f'
5703 darwin* | rhapsody*)
5704 lt_cv_deplibs_check_method=pass_all
5707 freebsd* | dragonfly*)
5708 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5711 # Not sure whether the presence of OpenBSD here was a mistake.
5712 # Let's accept both of them until this is cleared up.
5713 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5714 lt_cv_file_magic_cmd=/usr/bin/file
5715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5719 lt_cv_deplibs_check_method=pass_all
5724 lt_cv_deplibs_check_method=pass_all
5728 lt_cv_deplibs_check_method=pass_all
5731 hpux10.20* | hpux11*)
5732 lt_cv_file_magic_cmd=/usr/bin/file
5735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5736 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5739 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]'
5740 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5744 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5750 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5754 irix5* | irix6* | nonstopux*)
5756 *-32|*"-32 ") libmagic=32-bit;;
5757 *-n32|*"-n32 ") libmagic=N32;;
5758 *-64|*"-64 ") libmagic=64-bit;;
5759 *) libmagic=never-match;;
5761 lt_cv_deplibs_check_method=pass_all
5764 # This must be glibc/ELF.
5765 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5766 lt_cv_deplibs_check_method=pass_all
5769 netbsd* | netbsdelf*-gnu)
5770 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5779 lt_cv_file_magic_cmd=/usr/bin/file
5780 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5784 lt_cv_deplibs_check_method=pass_all
5788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5795 osf3* | osf4* | osf5*)
5796 lt_cv_deplibs_check_method=pass_all
5800 lt_cv_deplibs_check_method=pass_all
5804 lt_cv_deplibs_check_method=pass_all
5807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5808 lt_cv_deplibs_check_method=pass_all
5812 case $host_vendor in
5814 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]'
5815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5818 lt_cv_deplibs_check_method=pass_all
5821 lt_cv_file_magic_cmd='/bin/file'
5822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5825 lt_cv_file_magic_cmd='/bin/file'
5826 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5827 lt_cv_file_magic_test_file=/lib/libc.so
5830 lt_cv_deplibs_check_method=pass_all
5833 lt_cv_deplibs_check_method=pass_all
5839 lt_cv_deplibs_check_method=pass_all
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5845 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5849 if test "$build" = "$host"; then
5852 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5855 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5861 file_magic_cmd=$lt_cv_file_magic_cmd
5862 deplibs_check_method=$lt_cv_deplibs_check_method
5863 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_DLLTOOL+:} false; then :
5892 $as_echo_n "(cached) " >&6
5894 if test -n "$DLLTOOL"; then
5895 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 DLLTOOL=$ac_cv_prog_DLLTOOL
5915 if test -n "$DLLTOOL"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5917 $as_echo "$DLLTOOL" >&6; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5925 if test -z "$ac_cv_prog_DLLTOOL"; then
5926 ac_ct_DLLTOOL=$DLLTOOL
5927 # Extract the first word of "dlltool", so it can be a program name with args.
5928 set dummy dlltool; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5932 $as_echo_n "(cached) " >&6
5934 if test -n "$ac_ct_DLLTOOL"; then
5935 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5955 if test -n "$ac_ct_DLLTOOL"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5957 $as_echo "$ac_ct_DLLTOOL" >&6; }
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5963 if test "x$ac_ct_DLLTOOL" = x; then
5966 case $cross_compiling:$ac_tool_warned in
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5972 DLLTOOL=$ac_ct_DLLTOOL
5975 DLLTOOL="$ac_cv_prog_DLLTOOL"
5978 test -z "$DLLTOOL" && DLLTOOL=dlltool
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5990 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5991 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5992 $as_echo_n "(cached) " >&6
5994 lt_cv_sharedlib_from_linklib_cmd='unknown'
5997 cygwin* | mingw* | pw32* | cegcc*)
5998 # two different shell functions defined in ltmain.sh
5999 # decide which to use based on capabilities of $DLLTOOL
6000 case `$DLLTOOL --help 2>&1` in
6001 *--identify-strict*)
6002 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6005 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6010 # fallback: assume linklib IS sharedlib
6011 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6017 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6018 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6019 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6028 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_AR+:} false; then :
6036 $as_echo_n "(cached) " >&6
6038 if test -n "$AR"; then
6039 ac_cv_prog_AR="$AR" # Let the user override the test.
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 if test -n "$AR"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6061 $as_echo "$AR" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6068 test -n "$AR" && break
6071 if test -z "$AR"; then
6075 # Extract the first word of "$ac_prog", so it can be a program name with args.
6076 set dummy $ac_prog; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6080 $as_echo_n "(cached) " >&6
6082 if test -n "$ac_ct_AR"; then
6083 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_ac_ct_AR="$ac_prog"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6103 if test -n "$ac_ct_AR"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6105 $as_echo "$ac_ct_AR" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6112 test -n "$ac_ct_AR" && break
6115 if test "x$ac_ct_AR" = x; then
6118 case $cross_compiling:$ac_tool_warned in
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122 ac_tool_warned=yes ;;
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6142 $as_echo_n "checking for archiver @FILE support... " >&6; }
6143 if ${lt_cv_ar_at_file+:} false; then :
6144 $as_echo_n "(cached) " >&6
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159 echo conftest.$ac_objext > conftest.lst
6160 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6162 (eval $lt_ar_try) 2>&5
6164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165 test $ac_status = 0; }
6166 if test "$ac_status" -eq 0; then
6167 # Ensure the archiver fails upon bogus file names.
6168 rm -f conftest.$ac_objext libconftest.a
6169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6170 (eval $lt_ar_try) 2>&5
6172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173 test $ac_status = 0; }
6174 if test "$ac_status" -ne 0; then
6178 rm -f conftest.* libconftest.a
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6185 $as_echo "$lt_cv_ar_at_file" >&6; }
6187 if test "x$lt_cv_ar_at_file" = xno; then
6190 archiver_list_spec=$lt_cv_ar_at_file
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}strip; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_STRIP+:} false; then :
6205 $as_echo_n "(cached) " >&6
6207 if test -n "$STRIP"; then
6208 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 STRIP=$ac_cv_prog_STRIP
6228 if test -n "$STRIP"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6230 $as_echo "$STRIP" >&6; }
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6238 if test -z "$ac_cv_prog_STRIP"; then
6240 # Extract the first word of "strip", so it can be a program name with args.
6241 set dummy strip; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6245 $as_echo_n "(cached) " >&6
6247 if test -n "$ac_ct_STRIP"; then
6248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_ac_ct_STRIP="strip"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6268 if test -n "$ac_ct_STRIP"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6270 $as_echo "$ac_ct_STRIP" >&6; }
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6276 if test "x$ac_ct_STRIP" = x; then
6279 case $cross_compiling:$ac_tool_warned in
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283 ac_tool_warned=yes ;;
6288 STRIP="$ac_cv_prog_STRIP"
6291 test -z "$STRIP" && STRIP=:
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_RANLIB+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -n "$RANLIB"; then
6307 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 RANLIB=$ac_cv_prog_RANLIB
6327 if test -n "$RANLIB"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6329 $as_echo "$RANLIB" >&6; }
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6337 if test -z "$ac_cv_prog_RANLIB"; then
6338 ac_ct_RANLIB=$RANLIB
6339 # Extract the first word of "ranlib", so it can be a program name with args.
6340 set dummy ranlib; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6344 $as_echo_n "(cached) " >&6
6346 if test -n "$ac_ct_RANLIB"; then
6347 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_ac_ct_RANLIB="ranlib"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6367 if test -n "$ac_ct_RANLIB"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6369 $as_echo "$ac_ct_RANLIB" >&6; }
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6375 if test "x$ac_ct_RANLIB" = x; then
6378 case $cross_compiling:$ac_tool_warned in
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6384 RANLIB=$ac_ct_RANLIB
6387 RANLIB="$ac_cv_prog_RANLIB"
6390 test -z "$RANLIB" && RANLIB=:
6397 # Determine commands to create old-style static archives.
6398 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6399 old_postinstall_cmds='chmod 644 $oldlib'
6400 old_postuninstall_cmds=
6402 if test -n "$RANLIB"; then
6405 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6411 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6416 lock_old_archive_extraction=yes ;;
6418 lock_old_archive_extraction=no ;;
6459 # If no C compiler was specified, use CC.
6462 # If no C compiler flags were specified, use CFLAGS.
6463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6465 # Allow CC to be a program name with arguments.
6469 # Check for command to grab the raw symbol name followed by C symbol from nm.
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6471 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6472 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6473 $as_echo_n "(cached) " >&6
6476 # These are sane defaults that work on at least a few old systems.
6477 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6479 # Character class describing NM global symbol codes.
6480 symcode='[BCDEGRST]'
6482 # Regexp to match symbols that can be accessed directly from C.
6483 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6485 # Define system-specific variables.
6490 cygwin* | mingw* | pw32* | cegcc*)
6491 symcode='[ABCDGISTW]'
6494 if test "$host_cpu" = ia64; then
6495 symcode='[ABCDEGRST]'
6499 symcode='[BCDEGRST]'
6502 symcode='[BCDEGQRST]'
6513 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6521 # If we're using GNU nm, then use its standard symbol codes.
6522 case `$NM -V 2>&1` in
6523 *GNU* | *'with BFD'*)
6524 symcode='[ABCDGIRSTW]' ;;
6527 # Transform an extracted symbol line into a proper C declaration.
6528 # Some systems (esp. on ia64) link data and code symbols differently,
6529 # so use this general approach.
6530 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6532 # Transform an extracted symbol line into symbol name and symbol address
6533 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6534 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'"
6536 # Handle CRLF in mingw tool chain
6540 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6544 # Try without a prefix underscore, then with it.
6545 for ac_symprfx in "" "_"; do
6547 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6548 symxfrm="\\1 $ac_symprfx\\2 \\2"
6550 # Write the raw and C identifiers.
6551 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6552 # Fake it for dumpbin and say T for any non-static function
6553 # and D for any global variable.
6554 # Also find C++ and __fastcall symbols from MSVC++,
6555 # which start with @ or ?.
6556 lt_cv_sys_global_symbol_pipe="$AWK '"\
6557 " {last_section=section; section=\$ 3};"\
6558 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6559 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6560 " \$ 0!~/External *\|/{next};"\
6561 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6562 " {if(hide[section]) next};"\
6563 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6564 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6565 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6566 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6567 " ' prfx=^$ac_symprfx"
6569 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6571 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6573 # Check to see that the pipe works correctly.
6577 cat > conftest.$ac_ext <<_LT_EOF
6582 void nm_test_func(void);
6583 void nm_test_func(void){}
6587 int main(){nm_test_var='a';nm_test_func();return(0);}
6590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6591 (eval $ac_compile) 2>&5
6593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6594 test $ac_status = 0; }; then
6595 # Now try to grab the symbols.
6597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6598 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6601 test $ac_status = 0; } && test -s "$nlist"; then
6602 # Try sorting and uniquifying the output.
6603 if sort "$nlist" | uniq > "$nlist"T; then
6604 mv -f "$nlist"T "$nlist"
6609 # Make sure that we snagged all the symbols we need.
6610 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6611 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6612 cat <<_LT_EOF > conftest.$ac_ext
6613 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6614 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6615 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6616 relocations are performed -- see ld's documentation on pseudo-relocs. */
6617 # define LT_DLSYM_CONST
6618 #elif defined(__osf__)
6619 /* This system does not cope well with relocations in const data. */
6620 # define LT_DLSYM_CONST
6622 # define LT_DLSYM_CONST const
6630 # Now generate the symbol file.
6631 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6633 cat <<_LT_EOF >> conftest.$ac_ext
6635 /* The mapping between symbol names and symbols. */
6636 LT_DLSYM_CONST struct {
6640 lt__PROGRAM__LTX_preloaded_symbols[] =
6642 { "@PROGRAM@", (void *) 0 },
6644 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6645 cat <<\_LT_EOF >> conftest.$ac_ext
6649 /* This works around a problem in FreeBSD linker */
6650 #ifdef FREEBSD_WORKAROUND
6651 static const void *lt_preloaded_setup() {
6652 return lt__PROGRAM__LTX_preloaded_symbols;
6660 # Now try linking the two files.
6661 mv conftest.$ac_objext conftstm.$ac_objext
6662 lt_globsym_save_LIBS=$LIBS
6663 lt_globsym_save_CFLAGS=$CFLAGS
6664 LIBS="conftstm.$ac_objext"
6665 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6667 (eval $ac_link) 2>&5
6669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6673 LIBS=$lt_globsym_save_LIBS
6674 CFLAGS=$lt_globsym_save_CFLAGS
6676 echo "cannot find nm_test_func in $nlist" >&5
6679 echo "cannot find nm_test_var in $nlist" >&5
6682 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6685 echo "$progname: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 rm -rf conftest* conftst*
6690 # Do not use the global_symbol_pipe unless it works.
6691 if test "$pipe_works" = yes; then
6694 lt_cv_sys_global_symbol_pipe=
6700 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6701 lt_cv_sys_global_symbol_to_cdecl=
6703 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6705 $as_echo "failed" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6708 $as_echo "ok" >&6; }
6711 # Response file support.
6712 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6713 nm_file_list_spec='@'
6714 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6715 nm_file_list_spec='@'
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6745 $as_echo_n "checking for sysroot... " >&6; }
6747 # Check whether --with-sysroot was given.
6748 if test "${with_sysroot+set}" = set; then :
6749 withval=$with_sysroot;
6756 case ${with_sysroot} in #(
6758 if test "$GCC" = yes; then
6759 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6763 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6769 $as_echo "${with_sysroot}" >&6; }
6770 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6775 $as_echo "${lt_sysroot:-no}" >&6; }
6781 # Check whether --enable-libtool-lock was given.
6782 if test "${enable_libtool_lock+set}" = set; then :
6783 enableval=$enable_libtool_lock;
6786 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6788 # Some flags need to be propagated to the compiler or linker for good
6792 # Find out which ABI we are using.
6793 echo 'int i;' > conftest.$ac_ext
6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6795 (eval $ac_compile) 2>&5
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; }; then
6799 case `/usr/bin/file conftest.$ac_objext` in
6811 # Find out which ABI we are using.
6812 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6814 (eval $ac_compile) 2>&5
6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817 test $ac_status = 0; }; then
6818 if test "$lt_cv_prog_gnu_ld" = yes; then
6819 case `/usr/bin/file conftest.$ac_objext` in
6821 LD="${LD-ld} -melf32bsmip"
6824 LD="${LD-ld} -melf32bmipn32"
6827 LD="${LD-ld} -melf64bmip"
6831 case `/usr/bin/file conftest.$ac_objext` in
6847 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6848 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6849 # Find out which ABI we are using.
6850 echo 'int i;' > conftest.$ac_ext
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852 (eval $ac_compile) 2>&5
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }; then
6856 case `/usr/bin/file conftest.o` in
6859 x86_64-*kfreebsd*-gnu)
6860 LD="${LD-ld} -m elf_i386_fbsd"
6863 LD="${LD-ld} -m elf_i386"
6865 ppc64-*linux*|powerpc64-*linux*)
6866 LD="${LD-ld} -m elf32ppclinux"
6869 LD="${LD-ld} -m elf_s390"
6872 LD="${LD-ld} -m elf32_sparc"
6878 x86_64-*kfreebsd*-gnu)
6879 LD="${LD-ld} -m elf_x86_64_fbsd"
6882 LD="${LD-ld} -m elf_x86_64"
6884 ppc*-*linux*|powerpc*-*linux*)
6885 LD="${LD-ld} -m elf64ppc"
6887 s390*-*linux*|s390*-*tpf*)
6888 LD="${LD-ld} -m elf64_s390"
6891 LD="${LD-ld} -m elf64_sparc"
6901 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6902 SAVE_CFLAGS="$CFLAGS"
6903 CFLAGS="$CFLAGS -belf"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6905 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6906 if ${lt_cv_cc_needs_belf+:} false; then :
6907 $as_echo_n "(cached) " >&6
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6926 if ac_fn_c_try_link "$LINENO"; then :
6927 lt_cv_cc_needs_belf=yes
6929 lt_cv_cc_needs_belf=no
6931 rm -f core conftest.err conftest.$ac_objext \
6932 conftest$ac_exeext conftest.$ac_ext
6934 ac_cpp='$CPP $CPPFLAGS'
6935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6942 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6943 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6944 CFLAGS="$SAVE_CFLAGS"
6948 # Find out which ABI we are using.
6949 echo 'int i;' > conftest.$ac_ext
6950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6951 (eval $ac_compile) 2>&5
6953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954 test $ac_status = 0; }; then
6955 case `/usr/bin/file conftest.o` in
6957 case $lt_cv_prog_gnu_ld in
6961 LD="${LD-ld} -m elf_x86_64"
6964 LD="${LD-ld} -m elf64_sparc"
6967 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6968 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6973 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6985 need_locks="$enable_libtool_lock"
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}mt; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6993 $as_echo_n "(cached) " >&6
6995 if test -n "$MANIFEST_TOOL"; then
6996 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7016 if test -n "$MANIFEST_TOOL"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7018 $as_echo "$MANIFEST_TOOL" >&6; }
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7026 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7027 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7028 # Extract the first word of "mt", so it can be a program name with args.
7029 set dummy mt; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7033 $as_echo_n "(cached) " >&6
7035 if test -n "$ac_ct_MANIFEST_TOOL"; then
7036 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7056 if test -n "$ac_ct_MANIFEST_TOOL"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7058 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7064 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7067 case $cross_compiling:$ac_tool_warned in
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7073 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7076 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7079 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7081 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7082 if ${lt_cv_path_mainfest_tool+:} false; then :
7083 $as_echo_n "(cached) " >&6
7085 lt_cv_path_mainfest_tool=no
7086 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7087 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7088 cat conftest.err >&5
7089 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7090 lt_cv_path_mainfest_tool=yes
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7095 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7096 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7106 rhapsody* | darwin*)
7107 if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7113 $as_echo_n "(cached) " >&6
7115 if test -n "$DSYMUTIL"; then
7116 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7136 if test -n "$DSYMUTIL"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7138 $as_echo "$DSYMUTIL" >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7146 if test -z "$ac_cv_prog_DSYMUTIL"; then
7147 ac_ct_DSYMUTIL=$DSYMUTIL
7148 # Extract the first word of "dsymutil", so it can be a program name with args.
7149 set dummy dsymutil; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7153 $as_echo_n "(cached) " >&6
7155 if test -n "$ac_ct_DSYMUTIL"; then
7156 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7176 if test -n "$ac_ct_DSYMUTIL"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7178 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7184 if test "x$ac_ct_DSYMUTIL" = x; then
7187 case $cross_compiling:$ac_tool_warned in
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7191 ac_tool_warned=yes ;;
7193 DSYMUTIL=$ac_ct_DSYMUTIL
7196 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7199 if test -n "$ac_tool_prefix"; then
7200 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_NMEDIT+:} false; then :
7205 $as_echo_n "(cached) " >&6
7207 if test -n "$NMEDIT"; then
7208 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 NMEDIT=$ac_cv_prog_NMEDIT
7228 if test -n "$NMEDIT"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7230 $as_echo "$NMEDIT" >&6; }
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7238 if test -z "$ac_cv_prog_NMEDIT"; then
7239 ac_ct_NMEDIT=$NMEDIT
7240 # Extract the first word of "nmedit", so it can be a program name with args.
7241 set dummy nmedit; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7245 $as_echo_n "(cached) " >&6
7247 if test -n "$ac_ct_NMEDIT"; then
7248 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7268 if test -n "$ac_ct_NMEDIT"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7270 $as_echo "$ac_ct_NMEDIT" >&6; }
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7276 if test "x$ac_ct_NMEDIT" = x; then
7279 case $cross_compiling:$ac_tool_warned in
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7285 NMEDIT=$ac_ct_NMEDIT
7288 NMEDIT="$ac_cv_prog_NMEDIT"
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_prog_LIPO+:} false; then :
7297 $as_echo_n "(cached) " >&6
7299 if test -n "$LIPO"; then
7300 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 LIPO=$ac_cv_prog_LIPO
7320 if test -n "$LIPO"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7322 $as_echo "$LIPO" >&6; }
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7330 if test -z "$ac_cv_prog_LIPO"; then
7332 # Extract the first word of "lipo", so it can be a program name with args.
7333 set dummy lipo; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7337 $as_echo_n "(cached) " >&6
7339 if test -n "$ac_ct_LIPO"; then
7340 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_ac_ct_LIPO="lipo"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7360 if test -n "$ac_ct_LIPO"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7362 $as_echo "$ac_ct_LIPO" >&6; }
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7368 if test "x$ac_ct_LIPO" = x; then
7371 case $cross_compiling:$ac_tool_warned in
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375 ac_tool_warned=yes ;;
7380 LIPO="$ac_cv_prog_LIPO"
7383 if test -n "$ac_tool_prefix"; then
7384 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7385 set dummy ${ac_tool_prefix}otool; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_OTOOL+:} false; then :
7389 $as_echo_n "(cached) " >&6
7391 if test -n "$OTOOL"; then
7392 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 OTOOL=$ac_cv_prog_OTOOL
7412 if test -n "$OTOOL"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7414 $as_echo "$OTOOL" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7422 if test -z "$ac_cv_prog_OTOOL"; then
7424 # Extract the first word of "otool", so it can be a program name with args.
7425 set dummy otool; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7429 $as_echo_n "(cached) " >&6
7431 if test -n "$ac_ct_OTOOL"; then
7432 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_prog_ac_ct_OTOOL="otool"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7452 if test -n "$ac_ct_OTOOL"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7454 $as_echo "$ac_ct_OTOOL" >&6; }
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7460 if test "x$ac_ct_OTOOL" = x; then
7463 case $cross_compiling:$ac_tool_warned in
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7467 ac_tool_warned=yes ;;
7472 OTOOL="$ac_cv_prog_OTOOL"
7475 if test -n "$ac_tool_prefix"; then
7476 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_OTOOL64+:} false; then :
7481 $as_echo_n "(cached) " >&6
7483 if test -n "$OTOOL64"; then
7484 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 OTOOL64=$ac_cv_prog_OTOOL64
7504 if test -n "$OTOOL64"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7506 $as_echo "$OTOOL64" >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7514 if test -z "$ac_cv_prog_OTOOL64"; then
7515 ac_ct_OTOOL64=$OTOOL64
7516 # Extract the first word of "otool64", so it can be a program name with args.
7517 set dummy otool64; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7521 $as_echo_n "(cached) " >&6
7523 if test -n "$ac_ct_OTOOL64"; then
7524 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7533 ac_cv_prog_ac_ct_OTOOL64="otool64"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7544 if test -n "$ac_ct_OTOOL64"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7546 $as_echo "$ac_ct_OTOOL64" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7552 if test "x$ac_ct_OTOOL64" = x; then
7555 case $cross_compiling:$ac_tool_warned in
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7561 OTOOL64=$ac_ct_OTOOL64
7564 OTOOL64="$ac_cv_prog_OTOOL64"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7594 $as_echo_n "checking for -single_module linker flag... " >&6; }
7595 if ${lt_cv_apple_cc_single_mod+:} false; then :
7596 $as_echo_n "(cached) " >&6
7598 lt_cv_apple_cc_single_mod=no
7599 if test -z "${LT_MULTI_MODULE}"; then
7600 # By default we will add the -single_module flag. You can override
7601 # by either setting the environment variable LT_MULTI_MODULE
7602 # non-empty at configure time, or by adding -multi_module to the
7604 rm -rf libconftest.dylib*
7605 echo "int foo(void){return 1;}" > conftest.c
7606 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7607 -dynamiclib -Wl,-single_module conftest.c" >&5
7608 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7609 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7611 # If there is a non-empty error log, and "single_module"
7612 # appears in it, assume the flag caused a linker warning
7613 if test -s conftest.err && $GREP single_module conftest.err; then
7614 cat conftest.err >&5
7615 # Otherwise, if the output was created with a 0 exit code from
7616 # the compiler, it worked.
7617 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7618 lt_cv_apple_cc_single_mod=yes
7620 cat conftest.err >&5
7622 rm -rf libconftest.dylib*
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7627 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7630 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7631 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 lt_cv_ld_exported_symbols_list=no
7635 save_LDFLAGS=$LDFLAGS
7636 echo "_main" > conftest.sym
7637 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7649 if ac_fn_c_try_link "$LINENO"; then :
7650 lt_cv_ld_exported_symbols_list=yes
7652 lt_cv_ld_exported_symbols_list=no
7654 rm -f core conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
7656 LDFLAGS="$save_LDFLAGS"
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7660 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7663 $as_echo_n "checking for -force_load linker flag... " >&6; }
7664 if ${lt_cv_ld_force_load+:} false; then :
7665 $as_echo_n "(cached) " >&6
7667 lt_cv_ld_force_load=no
7668 cat > conftest.c << _LT_EOF
7669 int forced_loaded() { return 2;}
7671 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7672 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7673 echo "$AR cru libconftest.a conftest.o" >&5
7674 $AR cru libconftest.a conftest.o 2>&5
7675 echo "$RANLIB libconftest.a" >&5
7676 $RANLIB libconftest.a 2>&5
7677 cat > conftest.c << _LT_EOF
7678 int main() { return 0;}
7680 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7681 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7683 if test -s conftest.err && $GREP force_load conftest.err; then
7684 cat conftest.err >&5
7685 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7686 lt_cv_ld_force_load=yes
7688 cat conftest.err >&5
7690 rm -f conftest.err libconftest.a conftest conftest.c
7691 rm -rf conftest.dSYM
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7695 $as_echo "$lt_cv_ld_force_load" >&6; }
7697 rhapsody* | darwin1.[012])
7698 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7700 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7701 darwin*) # darwin 5.x on
7702 # if running on 10.5 or later, the deployment target defaults
7703 # to the OS version, if on x86, and 10.4, the deployment
7704 # target defaults to 10.4. Don't you love it?
7705 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7706 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7707 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7709 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7711 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7715 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7716 _lt_dar_single_mod='$single_module'
7718 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7719 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7721 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7723 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7724 _lt_dsymutil='~$DSYMUTIL $lib || :'
7732 ac_cpp='$CPP $CPPFLAGS'
7733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7737 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7738 # On Suns, sometimes $CPP names a directory.
7739 if test -n "$CPP" && test -d "$CPP"; then
7742 if test -z "$CPP"; then
7743 if ${ac_cv_prog_CPP+:} false; then :
7744 $as_echo_n "(cached) " >&6
7746 # Double quotes because CPP needs to be expanded
7747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7750 for ac_c_preproc_warn_flag in '' yes
7752 # Use a header file that comes with gcc, so configuring glibc
7753 # with a fresh cross-compiler works.
7754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755 # <limits.h> exists even on freestanding compilers.
7756 # On the NeXT, cc -E runs the code through the compiler's parser,
7757 # not just through cpp. "Syntax error" is here to catch this case.
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7761 # include <limits.h>
7763 # include <assert.h>
7767 if ac_fn_c_try_cpp "$LINENO"; then :
7770 # Broken: fails on valid input.
7773 rm -f conftest.err conftest.i conftest.$ac_ext
7775 # OK, works on sane cases. Now check whether nonexistent headers
7776 # can be detected and how.
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 #include <ac_nonexistent.h>
7781 if ac_fn_c_try_cpp "$LINENO"; then :
7782 # Broken: success on invalid input.
7785 # Passes both tests.
7789 rm -f conftest.err conftest.i conftest.$ac_ext
7792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7793 rm -f conftest.i conftest.err conftest.$ac_ext
7794 if $ac_preproc_ok; then :
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7807 $as_echo "$CPP" >&6; }
7809 for ac_c_preproc_warn_flag in '' yes
7811 # Use a header file that comes with gcc, so configuring glibc
7812 # with a fresh cross-compiler works.
7813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7814 # <limits.h> exists even on freestanding compilers.
7815 # On the NeXT, cc -E runs the code through the compiler's parser,
7816 # not just through cpp. "Syntax error" is here to catch this case.
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7820 # include <limits.h>
7822 # include <assert.h>
7826 if ac_fn_c_try_cpp "$LINENO"; then :
7829 # Broken: fails on valid input.
7832 rm -f conftest.err conftest.i conftest.$ac_ext
7834 # OK, works on sane cases. Now check whether nonexistent headers
7835 # can be detected and how.
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 #include <ac_nonexistent.h>
7840 if ac_fn_c_try_cpp "$LINENO"; then :
7841 # Broken: success on invalid input.
7844 # Passes both tests.
7848 rm -f conftest.err conftest.i conftest.$ac_ext
7851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7852 rm -f conftest.i conftest.err conftest.$ac_ext
7853 if $ac_preproc_ok; then :
7856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7858 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7859 See \`config.log' for more details" "$LINENO" 5; }
7863 ac_cpp='$CPP $CPPFLAGS'
7864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7870 $as_echo_n "checking for ANSI C header files... " >&6; }
7871 if ${ac_cv_header_stdc+:} false; then :
7872 $as_echo_n "(cached) " >&6
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7889 if ac_fn_c_try_compile "$LINENO"; then :
7890 ac_cv_header_stdc=yes
7892 ac_cv_header_stdc=no
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 if test $ac_cv_header_stdc = yes; then
7897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7904 $EGREP "memchr" >/dev/null 2>&1; then :
7907 ac_cv_header_stdc=no
7913 if test $ac_cv_header_stdc = yes; then
7914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7921 $EGREP "free" >/dev/null 2>&1; then :
7924 ac_cv_header_stdc=no
7930 if test $ac_cv_header_stdc = yes; then
7931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7932 if test "$cross_compiling" = yes; then :
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7939 #if ((' ' & 0x0FF) == 0x020)
7940 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7941 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7943 # define ISLOWER(c) \
7944 (('a' <= (c) && (c) <= 'i') \
7945 || ('j' <= (c) && (c) <= 'r') \
7946 || ('s' <= (c) && (c) <= 'z'))
7947 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7955 for (i = 0; i < 256; i++)
7956 if (XOR (islower (i), ISLOWER (i))
7957 || toupper (i) != TOUPPER (i))
7962 if ac_fn_c_try_run "$LINENO"; then :
7965 ac_cv_header_stdc=no
7967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7968 conftest.$ac_objext conftest.beam conftest.$ac_ext
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7974 $as_echo "$ac_cv_header_stdc" >&6; }
7975 if test $ac_cv_header_stdc = yes; then
7977 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7983 inttypes.h stdint.h unistd.h
7985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7986 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7988 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7989 cat >>confdefs.h <<_ACEOF
7990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7998 for ac_header in dlfcn.h
8000 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8002 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8003 cat >>confdefs.h <<_ACEOF
8004 #define HAVE_DLFCN_H 1
8014 func_stripname_cnf ()
8017 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8018 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8020 } # func_stripname_cnf
8036 # Check whether --enable-shared was given.
8037 if test "${enable_shared+set}" = set; then :
8038 enableval=$enable_shared; p=${PACKAGE-default}
8040 yes) enable_shared=yes ;;
8041 no) enable_shared=no ;;
8044 # Look at the argument we got. We use all the common list separators.
8045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046 for pkg in $enableval; do
8048 if test "X$pkg" = "X$p"; then
8067 # Check whether --enable-static was given.
8068 if test "${enable_static+set}" = set; then :
8069 enableval=$enable_static; p=${PACKAGE-default}
8071 yes) enable_static=yes ;;
8072 no) enable_static=no ;;
8075 # Look at the argument we got. We use all the common list separators.
8076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8077 for pkg in $enableval; do
8079 if test "X$pkg" = "X$p"; then
8099 # Check whether --with-pic was given.
8100 if test "${with_pic+set}" = set; then :
8101 withval=$with_pic; lt_p=${PACKAGE-default}
8103 yes|no) pic_mode=$withval ;;
8106 # Look at the argument we got. We use all the common list separators.
8107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8108 for lt_pkg in $withval; do
8110 if test "X$lt_pkg" = "X$lt_p"; then
8122 test -z "$pic_mode" && pic_mode=default
8130 # Check whether --enable-fast-install was given.
8131 if test "${enable_fast_install+set}" = set; then :
8132 enableval=$enable_fast_install; p=${PACKAGE-default}
8134 yes) enable_fast_install=yes ;;
8135 no) enable_fast_install=no ;;
8137 enable_fast_install=no
8138 # Look at the argument we got. We use all the common list separators.
8139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8140 for pkg in $enableval; do
8142 if test "X$pkg" = "X$p"; then
8143 enable_fast_install=yes
8150 enable_fast_install=yes
8163 # This can be used to rebuild libtool when needed
8164 LIBTOOL_DEPS="$ltmain"
8166 # Always use our own libtool.
8167 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8198 test -z "$LN_S" && LN_S="ln -s"
8213 if test -n "${ZSH_VERSION+set}" ; then
8214 setopt NO_GLOB_SUBST
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8218 $as_echo_n "checking for objdir... " >&6; }
8219 if ${lt_cv_objdir+:} false; then :
8220 $as_echo_n "(cached) " >&6
8222 rm -f .libs 2>/dev/null
8223 mkdir .libs 2>/dev/null
8224 if test -d .libs; then
8227 # MS-DOS does not allow filenames that begin with a dot.
8230 rmdir .libs 2>/dev/null
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8233 $as_echo "$lt_cv_objdir" >&6; }
8234 objdir=$lt_cv_objdir
8240 cat >>confdefs.h <<_ACEOF
8241 #define LT_OBJDIR "$lt_cv_objdir/"
8249 # AIX sometimes has problems with the GCC collect2 program. For some
8250 # reason, if we set the COLLECT_NAMES environment variable, the problems
8251 # vanish in a puff of smoke.
8252 if test "X${COLLECT_NAMES+set}" != Xset; then
8254 export COLLECT_NAMES
8261 can_build_shared=yes
8263 # All known linkers require a `.a' archive for static linking (except MSVC,
8264 # which needs '.lib').
8267 with_gnu_ld="$lt_cv_prog_gnu_ld"
8270 old_CFLAGS="$CFLAGS"
8272 # Set sane defaults for various variables
8273 test -z "$CC" && CC=cc
8274 test -z "$LTCC" && LTCC=$CC
8275 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8276 test -z "$LD" && LD=ld
8277 test -z "$ac_objext" && ac_objext=o
8279 for cc_temp in $compiler""; do
8281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8287 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8290 # Only perform the check for file, if the check method requires it
8291 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8292 case $deplibs_check_method in
8294 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8296 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8297 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8298 $as_echo_n "(cached) " >&6
8302 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8305 lt_save_MAGIC_CMD="$MAGIC_CMD"
8306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8307 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8308 for ac_dir in $ac_dummy; do
8310 test -z "$ac_dir" && ac_dir=.
8311 if test -f $ac_dir/${ac_tool_prefix}file; then
8312 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8313 if test -n "$file_magic_test_file"; then
8314 case $deplibs_check_method in
8316 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8318 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8319 $EGREP "$file_magic_regex" > /dev/null; then
8324 *** Warning: the command libtool uses to detect shared libraries,
8325 *** $file_magic_cmd, produces output that libtool cannot recognize.
8326 *** The result is that libtool may fail to recognize shared libraries
8327 *** as such. This will affect the creation of libtool libraries that
8328 *** depend on shared libraries, but programs linked with such libtool
8329 *** libraries will work regardless of this problem. Nevertheless, you
8330 *** may want to report the problem to your system manager and/or to
8331 *** bug-libtool@gnu.org
8341 MAGIC_CMD="$lt_save_MAGIC_CMD"
8346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8347 if test -n "$MAGIC_CMD"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8349 $as_echo "$MAGIC_CMD" >&6; }
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8359 if test -z "$lt_cv_path_MAGIC_CMD"; then
8360 if test -n "$ac_tool_prefix"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8362 $as_echo_n "checking for file... " >&6; }
8363 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8364 $as_echo_n "(cached) " >&6
8368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8371 lt_save_MAGIC_CMD="$MAGIC_CMD"
8372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8374 for ac_dir in $ac_dummy; do
8376 test -z "$ac_dir" && ac_dir=.
8377 if test -f $ac_dir/file; then
8378 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8379 if test -n "$file_magic_test_file"; then
8380 case $deplibs_check_method in
8382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8385 $EGREP "$file_magic_regex" > /dev/null; then
8390 *** Warning: the command libtool uses to detect shared libraries,
8391 *** $file_magic_cmd, produces output that libtool cannot recognize.
8392 *** The result is that libtool may fail to recognize shared libraries
8393 *** as such. This will affect the creation of libtool libraries that
8394 *** depend on shared libraries, but programs linked with such libtool
8395 *** libraries will work regardless of this problem. Nevertheless, you
8396 *** may want to report the problem to your system manager and/or to
8397 *** bug-libtool@gnu.org
8407 MAGIC_CMD="$lt_save_MAGIC_CMD"
8412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8413 if test -n "$MAGIC_CMD"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8415 $as_echo "$MAGIC_CMD" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8431 # Use C for the default configuration in the libtool script
8435 ac_cpp='$CPP $CPPFLAGS'
8436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8441 # Source file extension for C test sources.
8444 # Object file extension for compiled C test sources.
8448 # Code to be used in simple compile tests
8449 lt_simple_compile_test_code="int some_variable = 0;"
8451 # Code to be used in simple link tests
8452 lt_simple_link_test_code='int main(){return(0);}'
8460 # If no C compiler was specified, use CC.
8463 # If no C compiler flags were specified, use CFLAGS.
8464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8466 # Allow CC to be a program name with arguments.
8469 # Save the default compiler, since it gets overwritten when the other
8470 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8471 compiler_DEFAULT=$CC
8473 # save warnings/boilerplate of simple test code
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8477 _lt_compiler_boilerplate=`cat conftest.err`
8480 ac_outfile=conftest.$ac_objext
8481 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8483 _lt_linker_boilerplate=`cat conftest.err`
8487 if test -n "$compiler"; then
8489 lt_prog_compiler_no_builtin_flag=
8491 if test "$GCC" = yes; then
8492 case $cc_basename in
8494 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8496 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8500 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8501 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8502 $as_echo_n "(cached) " >&6
8504 lt_cv_prog_compiler_rtti_exceptions=no
8505 ac_outfile=conftest.$ac_objext
8506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8507 lt_compiler_flag="-fno-rtti -fno-exceptions"
8508 # Insert the option either (1) after the last *FLAGS variable, or
8509 # (2) before a word containing "conftest.", or (3) at the end.
8510 # Note that $ac_compile itself does not contain backslashes and begins
8511 # with a dollar sign (not a hyphen), so the echo should work correctly.
8512 # The option is referenced via a variable to avoid confusing sed.
8513 lt_compile=`echo "$ac_compile" | $SED \
8514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8516 -e 's:$: $lt_compiler_flag:'`
8517 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8518 (eval "$lt_compile" 2>conftest.err)
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 if (exit $ac_status) && test -s "$ac_outfile"; then
8523 # The compiler can only warn and ignore the option if not recognized
8524 # So say no if there are warnings other than the usual output.
8525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8527 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8528 lt_cv_prog_compiler_rtti_exceptions=yes
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8535 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8537 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8538 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8550 lt_prog_compiler_wl=
8551 lt_prog_compiler_pic=
8552 lt_prog_compiler_static=
8555 if test "$GCC" = yes; then
8556 lt_prog_compiler_wl='-Wl,'
8557 lt_prog_compiler_static='-static'
8561 # All AIX code is PIC.
8562 if test "$host_cpu" = ia64; then
8563 # AIX 5 now supports IA64 processor
8564 lt_prog_compiler_static='-Bstatic'
8571 # see comment about AmigaOS4 .so support
8572 lt_prog_compiler_pic='-fPIC'
8575 # FIXME: we need at least 68020 code to build shared libraries, but
8576 # adding the `-m68020' flag to GCC prevents building anything better,
8578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8584 # PIC is the default for these OSes.
8587 mingw* | cygwin* | pw32* | os2* | cegcc*)
8588 # This hack is so that the source file can tell whether it is being
8589 # built for inclusion in a dll (and should export symbols for example).
8590 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8591 # (--disable-auto-import) libraries
8592 lt_prog_compiler_pic='-DDLL_EXPORT'
8595 darwin* | rhapsody*)
8596 # PIC is the default on this platform
8597 # Common symbols not allowed in MH_DYLIB files
8598 lt_prog_compiler_pic='-fno-common'
8602 # PIC is the default for Haiku.
8603 # The "-static" flag exists, but is broken.
8604 lt_prog_compiler_static=
8608 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8609 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8610 # sets the default TLS model and affects inlining.
8616 lt_prog_compiler_pic='-fPIC'
8622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8623 # Instead, we relocate shared libraries at runtime.
8627 # Just because we use GCC doesn't mean we suddenly get shared libraries
8628 # on systems that don't support them.
8629 lt_prog_compiler_can_build_shared=no
8634 # QNX uses GNU C++, but need to define -shared option too, otherwise
8636 lt_prog_compiler_pic='-fPIC -shared'
8640 if test -d /usr/nec; then
8641 lt_prog_compiler_pic=-Kconform_pic
8646 lt_prog_compiler_pic='-fPIC'
8650 case $cc_basename in
8651 nvcc*) # Cuda Compiler Driver 2.2
8652 lt_prog_compiler_wl='-Xlinker '
8653 if test -n "$lt_prog_compiler_pic"; then
8654 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8659 # PORTME Check for flag to pass linker flags through the system compiler.
8662 lt_prog_compiler_wl='-Wl,'
8663 if test "$host_cpu" = ia64; then
8664 # AIX 5 now supports IA64 processor
8665 lt_prog_compiler_static='-Bstatic'
8667 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8671 mingw* | cygwin* | pw32* | os2* | cegcc*)
8672 # This hack is so that the source file can tell whether it is being
8673 # built for inclusion in a dll (and should export symbols for example).
8674 lt_prog_compiler_pic='-DDLL_EXPORT'
8677 hpux9* | hpux10* | hpux11*)
8678 lt_prog_compiler_wl='-Wl,'
8679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8686 lt_prog_compiler_pic='+Z'
8689 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8690 lt_prog_compiler_static='${wl}-a ${wl}archive'
8693 irix5* | irix6* | nonstopux*)
8694 lt_prog_compiler_wl='-Wl,'
8695 # PIC (with -KPIC) is the default.
8696 lt_prog_compiler_static='-non_shared'
8699 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8700 case $cc_basename in
8701 # old Intel for x86_64 which still supported -KPIC.
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='-KPIC'
8705 lt_prog_compiler_static='-static'
8707 # icc used to be incompatible with GCC.
8708 # ICC 10 doesn't accept -KPIC any more.
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_pic='-fPIC'
8712 lt_prog_compiler_static='-static'
8714 # Lahey Fortran 8.1.
8716 lt_prog_compiler_wl='-Wl,'
8717 lt_prog_compiler_pic='--shared'
8718 lt_prog_compiler_static='--static'
8721 # NAG Fortran compiler
8722 lt_prog_compiler_wl='-Wl,-Wl,,'
8723 lt_prog_compiler_pic='-PIC'
8724 lt_prog_compiler_static='-Bstatic'
8726 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8727 # Portland Group compilers (*not* the Pentium gcc compiler,
8728 # which looks to be a dead project)
8729 lt_prog_compiler_wl='-Wl,'
8730 lt_prog_compiler_pic='-fpic'
8731 lt_prog_compiler_static='-Bstatic'
8734 lt_prog_compiler_wl='-Wl,'
8735 # All Alpha code is PIC.
8736 lt_prog_compiler_static='-non_shared'
8738 xl* | bgxl* | bgf* | mpixl*)
8739 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_pic='-qpic'
8742 lt_prog_compiler_static='-qstaticlink'
8745 case `$CC -V 2>&1 | sed 5q` in
8746 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8747 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8748 lt_prog_compiler_pic='-KPIC'
8749 lt_prog_compiler_static='-Bstatic'
8750 lt_prog_compiler_wl=''
8752 *Sun\ F* | *Sun*Fortran*)
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-Bstatic'
8755 lt_prog_compiler_wl='-Qoption ld '
8759 lt_prog_compiler_pic='-KPIC'
8760 lt_prog_compiler_static='-Bstatic'
8761 lt_prog_compiler_wl='-Wl,'
8763 *Intel*\ [CF]*Compiler*)
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_pic='-fPIC'
8766 lt_prog_compiler_static='-static'
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_pic='-fpic'
8771 lt_prog_compiler_static='-Bstatic'
8779 lt_prog_compiler_pic='-KPIC'
8780 lt_prog_compiler_static='-Bstatic'
8784 # QNX uses GNU C++, but need to define -shared option too, otherwise
8786 lt_prog_compiler_pic='-fPIC -shared'
8789 osf3* | osf4* | osf5*)
8790 lt_prog_compiler_wl='-Wl,'
8791 # All OSF/1 code is PIC.
8792 lt_prog_compiler_static='-non_shared'
8796 lt_prog_compiler_static='-non_shared'
8800 lt_prog_compiler_pic='-KPIC'
8801 lt_prog_compiler_static='-Bstatic'
8802 case $cc_basename in
8803 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8804 lt_prog_compiler_wl='-Qoption ld ';;
8806 lt_prog_compiler_wl='-Wl,';;
8811 lt_prog_compiler_wl='-Qoption ld '
8812 lt_prog_compiler_pic='-PIC'
8813 lt_prog_compiler_static='-Bstatic'
8816 sysv4 | sysv4.2uw2* | sysv4.3*)
8817 lt_prog_compiler_wl='-Wl,'
8818 lt_prog_compiler_pic='-KPIC'
8819 lt_prog_compiler_static='-Bstatic'
8823 if test -d /usr/nec ;then
8824 lt_prog_compiler_pic='-Kconform_pic'
8825 lt_prog_compiler_static='-Bstatic'
8829 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8830 lt_prog_compiler_wl='-Wl,'
8831 lt_prog_compiler_pic='-KPIC'
8832 lt_prog_compiler_static='-Bstatic'
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_can_build_shared=no
8841 lt_prog_compiler_pic='-pic'
8842 lt_prog_compiler_static='-Bstatic'
8846 lt_prog_compiler_can_build_shared=no
8852 # For platforms which do not support PIC, -DPIC is meaningless:
8854 lt_prog_compiler_pic=
8857 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8862 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8863 if ${lt_cv_prog_compiler_pic+:} false; then :
8864 $as_echo_n "(cached) " >&6
8866 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8869 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8870 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8873 # Check to make sure the PIC flag actually works.
8875 if test -n "$lt_prog_compiler_pic"; then
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8877 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8878 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8879 $as_echo_n "(cached) " >&6
8881 lt_cv_prog_compiler_pic_works=no
8882 ac_outfile=conftest.$ac_objext
8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8885 # Insert the option either (1) after the last *FLAGS variable, or
8886 # (2) before a word containing "conftest.", or (3) at the end.
8887 # Note that $ac_compile itself does not contain backslashes and begins
8888 # with a dollar sign (not a hyphen), so the echo should work correctly.
8889 # The option is referenced via a variable to avoid confusing sed.
8890 lt_compile=`echo "$ac_compile" | $SED \
8891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8893 -e 's:$: $lt_compiler_flag:'`
8894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8895 (eval "$lt_compile" 2>conftest.err)
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 if (exit $ac_status) && test -s "$ac_outfile"; then
8900 # The compiler can only warn and ignore the option if not recognized
8901 # So say no if there are warnings other than the usual output.
8902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8905 lt_cv_prog_compiler_pic_works=yes
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8912 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8914 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8915 case $lt_prog_compiler_pic in
8917 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8920 lt_prog_compiler_pic=
8921 lt_prog_compiler_can_build_shared=no
8937 # Check to make sure the static flag actually works.
8939 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8942 if ${lt_cv_prog_compiler_static_works+:} false; then :
8943 $as_echo_n "(cached) " >&6
8945 lt_cv_prog_compiler_static_works=no
8946 save_LDFLAGS="$LDFLAGS"
8947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8948 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8950 # The linker can only warn and ignore the option if not recognized
8951 # So say no if there are warnings
8952 if test -s conftest.err; then
8953 # Append any errors to the config.log.
8954 cat conftest.err 1>&5
8955 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8957 if diff conftest.exp conftest.er2 >/dev/null; then
8958 lt_cv_prog_compiler_static_works=yes
8961 lt_cv_prog_compiler_static_works=yes
8965 LDFLAGS="$save_LDFLAGS"
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8969 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8971 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8974 lt_prog_compiler_static=
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8985 if ${lt_cv_prog_compiler_c_o+:} false; then :
8986 $as_echo_n "(cached) " >&6
8988 lt_cv_prog_compiler_c_o=no
8989 $RM -r conftest 2>/dev/null
8993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8995 lt_compiler_flag="-o out/conftest2.$ac_objext"
8996 # Insert the option either (1) after the last *FLAGS variable, or
8997 # (2) before a word containing "conftest.", or (3) at the end.
8998 # Note that $ac_compile itself does not contain backslashes and begins
8999 # with a dollar sign (not a hyphen), so the echo should work correctly.
9000 lt_compile=`echo "$ac_compile" | $SED \
9001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003 -e 's:$: $lt_compiler_flag:'`
9004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9005 (eval "$lt_compile" 2>out/conftest.err)
9007 cat out/conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9011 # The compiler can only warn and ignore the option if not recognized
9012 # So say no if there are warnings
9013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9016 lt_cv_prog_compiler_c_o=yes
9021 # SGI C++ compiler will create directory out/ii_files/ for
9022 # template instantiation
9023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9024 $RM out/* && rmdir out
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9040 if ${lt_cv_prog_compiler_c_o+:} false; then :
9041 $as_echo_n "(cached) " >&6
9043 lt_cv_prog_compiler_c_o=no
9044 $RM -r conftest 2>/dev/null
9048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9050 lt_compiler_flag="-o out/conftest2.$ac_objext"
9051 # Insert the option either (1) after the last *FLAGS variable, or
9052 # (2) before a word containing "conftest.", or (3) at the end.
9053 # Note that $ac_compile itself does not contain backslashes and begins
9054 # with a dollar sign (not a hyphen), so the echo should work correctly.
9055 lt_compile=`echo "$ac_compile" | $SED \
9056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9058 -e 's:$: $lt_compiler_flag:'`
9059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9060 (eval "$lt_compile" 2>out/conftest.err)
9062 cat out/conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9066 # The compiler can only warn and ignore the option if not recognized
9067 # So say no if there are warnings
9068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9071 lt_cv_prog_compiler_c_o=yes
9076 # SGI C++ compiler will create directory out/ii_files/ for
9077 # template instantiation
9078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9079 $RM out/* && rmdir out
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9086 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9091 hard_links="nottested"
9092 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9093 # do not overwrite the value of need_locks provided by the user
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9095 $as_echo_n "checking if we can lock with hard links... " >&6; }
9098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9100 ln conftest.a conftest.b 2>&5 || hard_links=no
9101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9103 $as_echo "$hard_links" >&6; }
9104 if test "$hard_links" = no; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9106 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9119 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9122 allow_undefined_flag=
9123 always_export_symbols=no
9125 archive_expsym_cmds=
9126 compiler_needs_object=no
9127 enable_shared_with_static_runtimes=no
9128 export_dynamic_flag_spec=
9129 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9130 hardcode_automatic=no
9132 hardcode_direct_absolute=no
9133 hardcode_libdir_flag_spec=
9134 hardcode_libdir_separator=
9136 hardcode_shlibpath_var=unsupported
9138 link_all_deplibs=unknown
9141 old_archive_from_new_cmds=
9142 old_archive_from_expsyms_cmds=
9143 thread_safe_flag_spec=
9144 whole_archive_flag_spec=
9145 # include_expsyms should be a list of space-separated symbols to be *always*
9146 # included in the symbol list
9148 # exclude_expsyms can be an extended regexp of symbols to exclude
9149 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9150 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9151 # as well as any symbol that contains `d'.
9152 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9154 # platforms (ab)use it in PIC code, but their linkers get confused if
9155 # the symbol is explicitly referenced. Since portable code cannot
9156 # rely on this symbol name, it's probably fine to never include it in
9157 # preloaded symbol tables.
9158 # Exclude shared library initialization/finalization symbols.
9159 extract_expsyms_cmds=
9162 cygwin* | mingw* | pw32* | cegcc*)
9163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9164 # When not using gcc, we currently assume that we are using
9165 # Microsoft Visual C++.
9166 if test "$GCC" != yes; then
9171 # we just hope/assume this is gcc and not c89 (= MSVC++)
9177 linux* | k*bsd*-gnu | gnu*)
9184 # On some targets, GNU ld is compatible enough with the native linker
9185 # that we're better off using the native interface for both.
9186 lt_use_gnu_ld_interface=no
9187 if test "$with_gnu_ld" = yes; then
9190 # The AIX port of GNU ld has always aspired to compatibility
9191 # with the native linker. However, as the warning in the GNU ld
9192 # block says, versions before 2.19.5* couldn't really create working
9193 # shared libraries, regardless of the interface used.
9194 case `$LD -v 2>&1` in
9195 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9196 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9197 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9199 lt_use_gnu_ld_interface=yes
9204 lt_use_gnu_ld_interface=yes
9209 if test "$lt_use_gnu_ld_interface" = yes; then
9210 # If archive_cmds runs LD, not CC, wlarc should be empty
9213 # Set some defaults for GNU ld with shared library support. These
9214 # are reset later if shared libraries are not supported. Putting them
9215 # here allows them to be overridden if necessary.
9216 runpath_var=LD_RUN_PATH
9217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9218 export_dynamic_flag_spec='${wl}--export-dynamic'
9219 # ancient GNU ld didn't support --whole-archive et. al.
9220 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9221 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9223 whole_archive_flag_spec=
9225 supports_anon_versioning=no
9226 case `$LD -v 2>&1` in
9227 *GNU\ gold*) supports_anon_versioning=yes ;;
9228 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9229 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9230 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9231 *\ 2.11.*) ;; # other 2.11 versions
9232 *) supports_anon_versioning=yes ;;
9235 # See if GNU ld supports shared libraries.
9238 # On AIX/PPC, the GNU linker is very broken
9239 if test "$host_cpu" != ia64; then
9243 *** Warning: the GNU linker, at least up to release 2.19, is reported
9244 *** to be unable to reliably create shared libraries on AIX.
9245 *** Therefore, libtool is disabling shared libraries support. If you
9246 *** really care for shared libraries, you may want to install binutils
9247 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9248 *** You will then need to restart the configuration process.
9257 # see comment about AmigaOS4 .so support
9258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259 archive_expsym_cmds=''
9262 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)'
9263 hardcode_libdir_flag_spec='-L$libdir'
9264 hardcode_minus_L=yes
9270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9271 allow_undefined_flag=unsupported
9272 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9273 # support --undefined. This deserves some investigation. FIXME
9274 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 cygwin* | mingw* | pw32* | cegcc*)
9281 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9282 # as there is no search path for DLLs.
9283 hardcode_libdir_flag_spec='-L$libdir'
9284 export_dynamic_flag_spec='${wl}--export-all-symbols'
9285 allow_undefined_flag=unsupported
9286 always_export_symbols=no
9287 enable_shared_with_static_runtimes=yes
9288 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'
9289 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9291 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9293 # If the export-symbols file already is a .def file (1st line
9294 # is EXPORTS), use it as is; otherwise, prepend...
9295 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9296 cp $export_symbols $output_objdir/$soname.def;
9298 echo EXPORTS > $output_objdir/$soname.def;
9299 cat $export_symbols >> $output_objdir/$soname.def;
9301 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 link_all_deplibs=yes
9314 hardcode_shlibpath_var=no
9315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9316 export_dynamic_flag_spec='${wl}-E'
9317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9318 # Instead, shared libraries are loaded at an image base (0x10000000 by
9319 # default) and relocated if they conflict, which is a slow very memory
9320 # consuming and fragmenting process. To avoid this, we pick a random,
9321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9324 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'
9327 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9329 if test "$host_os" = linux-dietlibc; then
9330 case $cc_basename in
9331 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9334 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9335 && test "$tmp_diet" = no
9337 tmp_addflag=' $pic_flag'
9338 tmp_sharedflag='-shared'
9339 case $cc_basename,$host_cpu in
9340 pgcc*) # Portland Group C compiler
9341 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'
9342 tmp_addflag=' $pic_flag'
9344 pgf77* | pgf90* | pgf95* | pgfortran*)
9345 # Portland Group f77 and f90 compilers
9346 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'
9347 tmp_addflag=' $pic_flag -Mnomain' ;;
9348 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9349 tmp_addflag=' -i_dynamic' ;;
9350 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9351 tmp_addflag=' -i_dynamic -nofor_main' ;;
9352 ifc* | ifort*) # Intel Fortran compiler
9353 tmp_addflag=' -nofor_main' ;;
9354 lf95*) # Lahey Fortran 8.1
9355 whole_archive_flag_spec=
9356 tmp_sharedflag='--shared' ;;
9357 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9358 tmp_sharedflag='-qmkshrobj'
9360 nvcc*) # Cuda Compiler Driver 2.2
9361 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'
9362 compiler_needs_object=yes
9365 case `$CC -V 2>&1 | sed 5q` in
9366 *Sun\ C*) # Sun C 5.9
9367 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'
9368 compiler_needs_object=yes
9369 tmp_sharedflag='-G' ;;
9370 *Sun\ F*) # Sun Fortran 8.3
9371 tmp_sharedflag='-G' ;;
9373 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 if test "x$supports_anon_versioning" = xyes; then
9376 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9378 echo "local: *; };" >> $output_objdir/$libname.ver~
9379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9382 case $cc_basename in
9383 xlf* | bgf* | bgxlf* | mpixlf*)
9384 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9385 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9388 if test "x$supports_anon_versioning" = xyes; then
9389 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9391 echo "local: *; };" >> $output_objdir/$libname.ver~
9392 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9401 netbsd* | netbsdelf*-gnu)
9402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9403 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9416 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9417 *** create shared libraries on Solaris systems. Therefore, libtool
9418 *** is disabling shared libraries support. We urge you to upgrade GNU
9419 *** binutils to release 2.9.1 or newer. Another option is to modify
9420 *** your PATH or compiler configuration so that the native linker is
9421 *** used, and then restart.
9424 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9425 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9426 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9433 case `$LD -v 2>&1` in
9434 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9438 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9439 *** reliably create shared libraries on SCO systems. Therefore, libtool
9440 *** is disabling shared libraries support. We urge you to upgrade GNU
9441 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9442 *** your PATH or compiler configuration so that the native linker is
9443 *** used, and then restart.
9448 # For security reasons, it is highly recommended that you always
9449 # use absolute paths for naming shared libraries, and exclude the
9450 # DT_RUNPATH tag from executables and libraries. But doing so
9451 # requires that you compile everything twice, which is a pain.
9452 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9464 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_shlibpath_var=no
9471 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9472 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9480 if test "$ld_shlibs" = no; then
9482 hardcode_libdir_flag_spec=
9483 export_dynamic_flag_spec=
9484 whole_archive_flag_spec=
9487 # PORTME fill in a description of your system's linker (not GNU ld)
9490 allow_undefined_flag=unsupported
9491 always_export_symbols=yes
9492 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'
9493 # Note: this linker hardcodes the directories in LIBPATH if there
9494 # are no directories specified by -L.
9495 hardcode_minus_L=yes
9496 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9497 # Neither direct hardcoding nor static linking is supported with a
9499 hardcode_direct=unsupported
9504 if test "$host_cpu" = ia64; then
9505 # On IA64, the linker does run time linking by default, so we don't
9506 # have to do anything special.
9507 aix_use_runtimelinking=no
9508 exp_sym_flag='-Bexport'
9511 # If we're using GNU nm, then we don't want the "-C" option.
9512 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9513 # Also, AIX nm treats weak defined symbols like other global
9514 # defined symbols, whereas GNU nm marks them as "W".
9515 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9516 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'
9518 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'
9520 aix_use_runtimelinking=no
9522 # Test if we are trying to use run time linking or normal
9523 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9524 # need to do runtime linking.
9525 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9526 for ld_flag in $LDFLAGS; do
9527 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9528 aix_use_runtimelinking=yes
9535 exp_sym_flag='-bexport'
9536 no_entry_flag='-bnoentry'
9539 # When large executables or shared objects are built, AIX ld can
9540 # have problems creating the table of contents. If linking a library
9541 # or program results in "error TOC overflow" add -mminimal-toc to
9542 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9543 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9547 hardcode_direct_absolute=yes
9548 hardcode_libdir_separator=':'
9549 link_all_deplibs=yes
9550 file_list_spec='${wl}-f,'
9552 if test "$GCC" = yes; then
9553 case $host_os in aix4.[012]|aix4.[012].*)
9554 # We only want to do this on AIX 4.2 and lower, the check
9555 # below for broken collect2 doesn't work under 4.3+
9556 collect2name=`${CC} -print-prog-name=collect2`
9557 if test -f "$collect2name" &&
9558 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9560 # We have reworked collect2
9563 # We have old collect2
9564 hardcode_direct=unsupported
9565 # It fails to find uninstalled libraries when the uninstalled
9566 # path is not listed in the libpath. Setting hardcode_minus_L
9567 # to unsupported forces relinking
9568 hardcode_minus_L=yes
9569 hardcode_libdir_flag_spec='-L$libdir'
9570 hardcode_libdir_separator=
9574 shared_flag='-shared'
9575 if test "$aix_use_runtimelinking" = yes; then
9576 shared_flag="$shared_flag "'${wl}-G'
9581 if test "$host_cpu" = ia64; then
9582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9583 # chokes on -Wl,-G. The following line is correct:
9586 if test "$aix_use_runtimelinking" = yes; then
9587 shared_flag='${wl}-G'
9589 shared_flag='${wl}-bM:SRE'
9594 export_dynamic_flag_spec='${wl}-bexpall'
9595 # It seems that -bexpall does not export symbols beginning with
9596 # underscore (_), so it is better to generate a list of symbols to export.
9597 always_export_symbols=yes
9598 if test "$aix_use_runtimelinking" = yes; then
9599 # Warning - without using the other runtime loading flags (-brtl),
9600 # -berok will link without error, but may produce a broken library.
9601 allow_undefined_flag='-berok'
9602 # Determine the default libpath from the value encoded in an
9604 if test "${lt_cv_aix_libpath+set}" = set; then
9605 aix_libpath=$lt_cv_aix_libpath
9607 if ${lt_cv_aix_libpath_+:} false; then :
9608 $as_echo_n "(cached) " >&6
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9621 if ac_fn_c_try_link "$LINENO"; then :
9623 lt_aix_libpath_sed='
9624 /Import File Strings/,/^$/ {
9626 s/^0 *\([^ ]*\) *$/\1/
9630 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9631 # Check for a 64-bit object if we didn't find anything.
9632 if test -z "$lt_cv_aix_libpath_"; then
9633 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 if test -z "$lt_cv_aix_libpath_"; then
9639 lt_cv_aix_libpath_="/usr/lib:/lib"
9644 aix_libpath=$lt_cv_aix_libpath_
9647 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9648 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"
9650 if test "$host_cpu" = ia64; then
9651 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9652 allow_undefined_flag="-z nodefs"
9653 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"
9655 # Determine the default libpath from the value encoded in an
9657 if test "${lt_cv_aix_libpath+set}" = set; then
9658 aix_libpath=$lt_cv_aix_libpath
9660 if ${lt_cv_aix_libpath_+:} false; then :
9661 $as_echo_n "(cached) " >&6
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h. */
9674 if ac_fn_c_try_link "$LINENO"; then :
9676 lt_aix_libpath_sed='
9677 /Import File Strings/,/^$/ {
9679 s/^0 *\([^ ]*\) *$/\1/
9683 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9684 # Check for a 64-bit object if we didn't find anything.
9685 if test -z "$lt_cv_aix_libpath_"; then
9686 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9689 rm -f core conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9691 if test -z "$lt_cv_aix_libpath_"; then
9692 lt_cv_aix_libpath_="/usr/lib:/lib"
9697 aix_libpath=$lt_cv_aix_libpath_
9700 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9701 # Warning - without using the other run time loading flags,
9702 # -berok will link without error, but may produce a broken library.
9703 no_undefined_flag=' ${wl}-bernotok'
9704 allow_undefined_flag=' ${wl}-berok'
9705 if test "$with_gnu_ld" = yes; then
9706 # We only use this code for GNU lds that support --whole-archive.
9707 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9709 # Exported symbols can be pulled into shared objects from archives
9710 whole_archive_flag_spec='$convenience'
9712 archive_cmds_need_lc=yes
9713 # This is similar to how AIX traditionally builds its shared libraries.
9714 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'
9722 # see comment about AmigaOS4 .so support
9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9724 archive_expsym_cmds=''
9727 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)'
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_minus_L=yes
9735 export_dynamic_flag_spec=-rdynamic
9738 cygwin* | mingw* | pw32* | cegcc*)
9739 # When not using gcc, we currently assume that we are using
9740 # Microsoft Visual C++.
9741 # hardcode_libdir_flag_spec is actually meaningless, as there is
9742 # no search path for DLLs.
9743 case $cc_basename in
9746 hardcode_libdir_flag_spec=' '
9747 allow_undefined_flag=unsupported
9748 always_export_symbols=yes
9750 # Tell ltmain to make .lib files, not .a files.
9752 # Tell ltmain to make .dll files, not .so files.
9754 # FIXME: Setting linknames here is a bad hack.
9755 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9756 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9757 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9759 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9761 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9763 # The linker will not automatically build a static lib if we build a DLL.
9764 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9765 enable_shared_with_static_runtimes=yes
9766 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9769 old_postinstall_cmds='chmod 644 $oldlib'
9770 postlink_cmds='lt_outputfile="@OUTPUT@"~
9771 lt_tool_outputfile="@TOOL_OUTPUT@"~
9772 case $lt_outputfile in
9775 lt_outputfile="$lt_outputfile.exe"
9776 lt_tool_outputfile="$lt_tool_outputfile.exe"
9779 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9780 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9781 $RM "$lt_outputfile.manifest";
9785 # Assume MSVC wrapper
9786 hardcode_libdir_flag_spec=' '
9787 allow_undefined_flag=unsupported
9788 # Tell ltmain to make .lib files, not .a files.
9790 # Tell ltmain to make .dll files, not .so files.
9792 # FIXME: Setting linknames here is a bad hack.
9793 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9794 # The linker will automatically build a .lib file if we build a DLL.
9795 old_archive_from_new_cmds='true'
9796 # FIXME: Should let the user specify the lib program.
9797 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9798 enable_shared_with_static_runtimes=yes
9803 darwin* | rhapsody*)
9806 archive_cmds_need_lc=no
9808 hardcode_automatic=yes
9809 hardcode_shlibpath_var=unsupported
9810 if test "$lt_cv_ld_force_load" = "yes"; then
9811 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\"`'
9814 whole_archive_flag_spec=''
9816 link_all_deplibs=yes
9817 allow_undefined_flag="$_lt_dar_allow_undefined"
9818 case $cc_basename in
9819 ifort*) _lt_dar_can_shared=yes ;;
9820 *) _lt_dar_can_shared=$GCC ;;
9822 if test "$_lt_dar_can_shared" = "yes"; then
9823 output_verbose_link_cmd=func_echo_all
9824 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9825 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9826 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}"
9827 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}"
9836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9837 hardcode_libdir_flag_spec='-L$libdir'
9838 hardcode_shlibpath_var=no
9841 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9842 # support. Future versions do this automatically, but an explicit c++rt0.o
9843 # does not break anything, and helps significantly (at the cost of a little
9846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9847 hardcode_libdir_flag_spec='-R$libdir'
9849 hardcode_shlibpath_var=no
9852 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9856 hardcode_minus_L=yes
9857 hardcode_shlibpath_var=no
9860 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9861 freebsd* | dragonfly*)
9862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9863 hardcode_libdir_flag_spec='-R$libdir'
9865 hardcode_shlibpath_var=no
9869 if test "$GCC" = yes; then
9870 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'
9872 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'
9874 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9875 hardcode_libdir_separator=:
9878 # hardcode_minus_L: Not really in the search PATH,
9879 # but as the default location of the library.
9880 hardcode_minus_L=yes
9881 export_dynamic_flag_spec='${wl}-E'
9885 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9886 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9888 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9890 if test "$with_gnu_ld" = no; then
9891 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9892 hardcode_libdir_separator=:
9894 hardcode_direct_absolute=yes
9895 export_dynamic_flag_spec='${wl}-E'
9896 # hardcode_minus_L: Not really in the search PATH,
9897 # but as the default location of the library.
9898 hardcode_minus_L=yes
9903 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9906 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9909 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9925 # Older versions of the 11.00 compiler do not understand -b yet
9926 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9928 $as_echo_n "checking if $CC understands -b... " >&6; }
9929 if ${lt_cv_prog_compiler__b+:} false; then :
9930 $as_echo_n "(cached) " >&6
9932 lt_cv_prog_compiler__b=no
9933 save_LDFLAGS="$LDFLAGS"
9934 LDFLAGS="$LDFLAGS -b"
9935 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9936 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9937 # The linker can only warn and ignore the option if not recognized
9938 # So say no if there are warnings
9939 if test -s conftest.err; then
9940 # Append any errors to the config.log.
9941 cat conftest.err 1>&5
9942 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9944 if diff conftest.exp conftest.er2 >/dev/null; then
9945 lt_cv_prog_compiler__b=yes
9948 lt_cv_prog_compiler__b=yes
9952 LDFLAGS="$save_LDFLAGS"
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9956 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9958 if test x"$lt_cv_prog_compiler__b" = xyes; then
9959 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9961 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9967 if test "$with_gnu_ld" = no; then
9968 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9969 hardcode_libdir_separator=:
9974 hardcode_shlibpath_var=no
9978 hardcode_direct_absolute=yes
9979 export_dynamic_flag_spec='${wl}-E'
9981 # hardcode_minus_L: Not really in the search PATH,
9982 # but as the default location of the library.
9983 hardcode_minus_L=yes
9989 irix5* | irix6* | nonstopux*)
9990 if test "$GCC" = yes; then
9991 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'
9992 # Try to use the -exported_symbol ld option, if it does not
9993 # work, assume that -exports_file does not work either and
9994 # implicitly export all symbols.
9995 # This should be the same for all languages, so no per-tag cache variable.
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9997 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9998 if ${lt_cv_irix_exported_symbol+:} false; then :
9999 $as_echo_n "(cached) " >&6
10001 save_LDFLAGS="$LDFLAGS"
10002 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 int foo (void) { return 0; }
10007 if ac_fn_c_try_link "$LINENO"; then :
10008 lt_cv_irix_exported_symbol=yes
10010 lt_cv_irix_exported_symbol=no
10012 rm -f core conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10014 LDFLAGS="$save_LDFLAGS"
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10017 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10018 if test "$lt_cv_irix_exported_symbol" = yes; then
10019 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'
10022 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'
10023 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'
10025 archive_cmds_need_lc='no'
10026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10027 hardcode_libdir_separator=:
10029 link_all_deplibs=yes
10032 netbsd* | netbsdelf*-gnu)
10033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10036 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10038 hardcode_libdir_flag_spec='-R$libdir'
10039 hardcode_direct=yes
10040 hardcode_shlibpath_var=no
10044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045 hardcode_direct=yes
10046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10047 hardcode_libdir_separator=:
10048 hardcode_shlibpath_var=no
10055 if test -f /usr/libexec/ld.so; then
10056 hardcode_direct=yes
10057 hardcode_shlibpath_var=no
10058 hardcode_direct_absolute=yes
10059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10063 export_dynamic_flag_spec='${wl}-E'
10066 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_libdir_flag_spec='-R$libdir'
10071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10082 hardcode_libdir_flag_spec='-L$libdir'
10083 hardcode_minus_L=yes
10084 allow_undefined_flag=unsupported
10085 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'
10086 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10090 if test "$GCC" = yes; then
10091 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10092 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'
10094 allow_undefined_flag=' -expect_unresolved \*'
10095 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'
10097 archive_cmds_need_lc='no'
10098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10099 hardcode_libdir_separator=:
10102 osf4* | osf5*) # as osf3* with the addition of -msym flag
10103 if test "$GCC" = yes; then
10104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10105 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'
10106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10108 allow_undefined_flag=' -expect_unresolved \*'
10109 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'
10110 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~
10111 $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'
10113 # Both c and cxx compiler support -rpath directly
10114 hardcode_libdir_flag_spec='-rpath $libdir'
10116 archive_cmds_need_lc='no'
10117 hardcode_libdir_separator=:
10121 no_undefined_flag=' -z defs'
10122 if test "$GCC" = yes; then
10124 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10126 $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'
10128 case `$CC -V 2>&1` in
10131 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10133 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10137 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10139 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10143 hardcode_libdir_flag_spec='-R$libdir'
10144 hardcode_shlibpath_var=no
10146 solaris2.[0-5] | solaris2.[0-5].*) ;;
10148 # The compiler driver will combine and reorder linker options,
10149 # but understands `-z linker_flag'. GCC discards it without `$wl',
10150 # but is careful enough not to reorder.
10151 # Supported since Solaris 2.6 (maybe 2.5.1?)
10152 if test "$GCC" = yes; then
10153 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10155 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10159 link_all_deplibs=yes
10163 if test "x$host_vendor" = xsequent; then
10164 # Use $CC to link under sequent, because it throws in some extra .o
10165 # files that make .init and .fini sections work.
10166 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10168 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_libdir_flag_spec='-L$libdir'
10171 hardcode_direct=yes
10172 hardcode_minus_L=yes
10173 hardcode_shlibpath_var=no
10177 case $host_vendor in
10179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_direct=yes # is this really true???
10183 ## LD is ld it makes a PLAMLIB
10184 ## CC just makes a GrossModule.
10185 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10186 reload_cmds='$CC -r -o $output$reload_objs'
10190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10191 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10194 runpath_var='LD_RUN_PATH'
10195 hardcode_shlibpath_var=no
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_shlibpath_var=no
10201 export_dynamic_flag_spec='-Bexport'
10205 if test -d /usr/nec; then
10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_shlibpath_var=no
10208 runpath_var=LD_RUN_PATH
10209 hardcode_runpath_var=yes
10214 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10215 no_undefined_flag='${wl}-z,text'
10216 archive_cmds_need_lc=no
10217 hardcode_shlibpath_var=no
10218 runpath_var='LD_RUN_PATH'
10220 if test "$GCC" = yes; then
10221 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10224 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10225 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10229 sysv5* | sco3.2v5* | sco5v6*)
10230 # Note: We can NOT use -z defs as we might desire, because we do not
10231 # link with -lc, and that would cause any symbols used from libc to
10232 # always be unresolved, which means just about no library would
10233 # ever link correctly. If we're not using GNU ld we use -z text
10234 # though, which does catch some bad symbols but isn't as heavy-handed
10236 no_undefined_flag='${wl}-z,text'
10237 allow_undefined_flag='${wl}-z,nodefs'
10238 archive_cmds_need_lc=no
10239 hardcode_shlibpath_var=no
10240 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10241 hardcode_libdir_separator=':'
10242 link_all_deplibs=yes
10243 export_dynamic_flag_spec='${wl}-Bexport'
10244 runpath_var='LD_RUN_PATH'
10246 if test "$GCC" = yes; then
10247 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257 hardcode_libdir_flag_spec='-L$libdir'
10258 hardcode_shlibpath_var=no
10266 if test x$host_vendor = xsni; then
10268 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10269 export_dynamic_flag_spec='${wl}-Blargedynsym'
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10276 $as_echo "$ld_shlibs" >&6; }
10277 test "$ld_shlibs" = no && can_build_shared=no
10279 with_gnu_ld=$with_gnu_ld
10296 # Do we need to explicitly link libc?
10298 case "x$archive_cmds_need_lc" in
10300 # Assume -lc should be added
10301 archive_cmds_need_lc=yes
10303 if test "$enable_shared" = yes && test "$GCC" = yes; then
10304 case $archive_cmds in
10306 # FIXME: we may have to deal with multi-command sequences.
10309 # Test whether the compiler implicitly links with -lc since on some
10310 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10311 # to ld, don't add -lc before -lgcc.
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10313 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10314 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10315 $as_echo_n "(cached) " >&6
10318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10321 (eval $ac_compile) 2>&5
10323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10324 test $ac_status = 0; } 2>conftest.err; then
10327 libobjs=conftest.$ac_objext
10329 wl=$lt_prog_compiler_wl
10330 pic_flag=$lt_prog_compiler_pic
10336 lt_save_allow_undefined_flag=$allow_undefined_flag
10337 allow_undefined_flag=
10338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10339 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10342 test $ac_status = 0; }
10344 lt_cv_archive_cmds_need_lc=no
10346 lt_cv_archive_cmds_need_lc=yes
10348 allow_undefined_flag=$lt_save_allow_undefined_flag
10350 cat conftest.err 1>&5
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10356 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10357 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10516 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10518 if test "$GCC" = yes; then
10520 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10521 *) lt_awk_arg="/^libraries:/" ;;
10524 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10525 *) lt_sed_strip_eq="s,=/,/,g" ;;
10527 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10528 case $lt_search_path_spec in
10530 # if the path contains ";" then we assume it to be the separator
10531 # otherwise default to the standard path separator (i.e. ":") - it is
10532 # assumed that no part of a normal pathname contains ";" but that should
10533 # okay in the real world where ";" in dirpaths is itself problematic.
10534 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10537 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10540 # Ok, now we have the path, separated by spaces, we can step through it
10541 # and add multilib dir if necessary.
10542 lt_tmp_lt_search_path_spec=
10543 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10544 for lt_sys_path in $lt_search_path_spec; do
10545 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10546 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10548 test -d "$lt_sys_path" && \
10549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10552 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10553 BEGIN {RS=" "; FS="/|\n";} {
10556 for (lt_i = NF; lt_i > 0; lt_i--) {
10557 if ($lt_i != "" && $lt_i != ".") {
10558 if ($lt_i == "..") {
10561 if (lt_count == 0) {
10562 lt_foo="/" $lt_i lt_foo;
10569 if (lt_foo != "") { lt_freq[lt_foo]++; }
10570 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10572 # AWK program above erroneously prepends '/' to C:/dos/paths
10575 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10576 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10578 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10582 library_names_spec=
10583 libname_spec='lib$name'
10587 postuninstall_cmds=
10591 shlibpath_overrides_runpath=unknown
10593 dynamic_linker="$host_os ld.so"
10594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10595 need_lib_prefix=unknown
10596 hardcode_into_libs=no
10598 # when you set need_version to no, make sure it does not cause -set_version
10599 # flags to be left without arguments
10600 need_version=unknown
10604 version_type=linux # correct to gnu/linux during the next big refactor
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10606 shlibpath_var=LIBPATH
10608 # AIX 3 has no versioning support, so we append a major version to the name.
10609 soname_spec='${libname}${release}${shared_ext}$major'
10613 version_type=linux # correct to gnu/linux during the next big refactor
10616 hardcode_into_libs=yes
10617 if test "$host_cpu" = ia64; then
10618 # AIX 5 supports IA64
10619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10620 shlibpath_var=LD_LIBRARY_PATH
10622 # With GCC up to 2.95.x, collect2 would create an import file
10623 # for dependence libraries. The import file would start with
10624 # the line `#! .'. This would cause the generated library to
10625 # depend on `.', always an invalid library. This was fixed in
10626 # development snapshots of GCC prior to 3.0.
10628 aix4 | aix4.[01] | aix4.[01].*)
10629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10631 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10634 can_build_shared=no
10638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10639 # soname into executable. Probably we can add versioning support to
10640 # collect2, so additional links can be useful in future.
10641 if test "$aix_use_runtimelinking" = yes; then
10642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10643 # instead of lib<name>.a to let people know that these are not
10644 # typical AIX shared libraries.
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 # We preserve .a as extension for shared libraries through AIX4.2
10648 # and later when we are not doing run time linking.
10649 library_names_spec='${libname}${release}.a $libname.a'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10652 shlibpath_var=LIBPATH
10659 # Since July 2007 AmigaOS4 officially supports .so libraries.
10660 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 library_names_spec='$libname.ixlibrary $libname.a'
10665 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10666 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'
10672 library_names_spec='${libname}${shared_ext}'
10673 dynamic_linker="$host_os ld.so"
10674 shlibpath_var=LIBRARY_PATH
10678 version_type=linux # correct to gnu/linux during the next big refactor
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10685 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10686 # the default ld.so.conf also contains /usr/contrib/lib and
10687 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10688 # libtool to hard-code these into programs
10691 cygwin* | mingw* | pw32* | cegcc*)
10692 version_type=windows
10697 case $GCC,$cc_basename in
10700 library_names_spec='$libname.dll.a'
10701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10702 postinstall_cmds='base_file=`basename \${file}`~
10703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10704 dldir=$destdir/`dirname \$dlpath`~
10705 test -d \$dldir || mkdir -p \$dldir~
10706 $install_prog $dir/$dlname \$dldir/$dlname~
10707 chmod a+x \$dldir/$dlname~
10708 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10709 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10712 dlpath=$dir/\$dldll~
10714 shlibpath_overrides_runpath=yes
10718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10721 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10724 # MinGW DLLs use traditional 'lib' prefix
10725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728 # pw32 DLLs use 'pw' prefix rather than 'lib'
10729 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10732 dynamic_linker='Win32 ld.exe'
10737 libname_spec='$name'
10738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10739 library_names_spec='${libname}.dll.lib'
10743 sys_lib_search_path_spec=
10746 for lt_path in $LIB
10749 # Let DOS variable expansion print the short 8.3 style file name.
10750 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10751 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10754 # Convert to MSYS style.
10755 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10758 # Convert to unix form, then to dos form, then back to unix form
10759 # but this time dos style (no spaces!) so that the unix form looks
10760 # like /cygdrive/c/PROGRA~1:/cygdr...
10761 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10762 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10763 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10766 sys_lib_search_path_spec="$LIB"
10767 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10768 # It is most probably a Windows format PATH.
10769 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10771 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10773 # FIXME: find the short name or the path components, as spaces are
10774 # common. (e.g. "Program Files" -> "PROGRA~1")
10778 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10779 postinstall_cmds='base_file=`basename \${file}`~
10780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10781 dldir=$destdir/`dirname \$dlpath`~
10782 test -d \$dldir || mkdir -p \$dldir~
10783 $install_prog $dir/$dlname \$dldir/$dlname'
10784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10785 dlpath=$dir/\$dldll~
10787 shlibpath_overrides_runpath=yes
10788 dynamic_linker='Win32 link.exe'
10792 # Assume MSVC wrapper
10793 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10794 dynamic_linker='Win32 ld.exe'
10797 # FIXME: first we should search . and the directory the executable is in
10801 darwin* | rhapsody*)
10802 dynamic_linker="$host_os dyld"
10803 version_type=darwin
10806 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10807 soname_spec='${libname}${release}${major}$shared_ext'
10808 shlibpath_overrides_runpath=yes
10809 shlibpath_var=DYLD_LIBRARY_PATH
10810 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10812 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10813 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10817 version_type=linux # correct to gnu/linux during the next big refactor
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10821 soname_spec='${libname}${release}${shared_ext}$major'
10822 shlibpath_var=LD_LIBRARY_PATH
10825 freebsd* | dragonfly*)
10826 # DragonFly does not have aout. When/if they implement a new
10827 # versioning mechanism, adjust this.
10828 if test -x /usr/bin/objformat; then
10829 objformat=`/usr/bin/objformat`
10832 freebsd[23].*) objformat=aout ;;
10833 *) objformat=elf ;;
10836 version_type=freebsd-$objformat
10837 case $version_type in
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10848 shlibpath_var=LD_LIBRARY_PATH
10851 shlibpath_overrides_runpath=yes
10853 freebsd3.[01]* | freebsdelf3.[01]*)
10854 shlibpath_overrides_runpath=yes
10855 hardcode_into_libs=yes
10857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10859 shlibpath_overrides_runpath=no
10860 hardcode_into_libs=yes
10862 *) # from 4.6 on, and DragonFly
10863 shlibpath_overrides_runpath=yes
10864 hardcode_into_libs=yes
10870 version_type=linux # correct to gnu/linux during the next big refactor
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=no
10877 hardcode_into_libs=yes
10881 version_type=linux # correct to gnu/linux during the next big refactor
10884 dynamic_linker="$host_os runtime_loader"
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 shlibpath_var=LIBRARY_PATH
10888 shlibpath_overrides_runpath=yes
10889 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10890 hardcode_into_libs=yes
10893 hpux9* | hpux10* | hpux11*)
10894 # Give a soname corresponding to the major version so that dld.sl refuses to
10895 # link against other versions.
10902 hardcode_into_libs=yes
10903 dynamic_linker="$host_os dld.so"
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 if test "X$HPUX_IA64_MODE" = X32; then
10909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10917 hardcode_into_libs=yes
10918 dynamic_linker="$host_os dld.sl"
10919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10928 dynamic_linker="$host_os dld.sl"
10929 shlibpath_var=SHLIB_PATH
10930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10935 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10936 postinstall_cmds='chmod 555 $lib'
10937 # or fails outright, so override atomically:
10938 install_override_mode=555
10942 version_type=linux # correct to gnu/linux during the next big refactor
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10946 soname_spec='${libname}${release}${shared_ext}$major'
10947 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 shlibpath_overrides_runpath=no
10950 hardcode_into_libs=yes
10953 irix5* | irix6* | nonstopux*)
10955 nonstopux*) version_type=nonstopux ;;
10957 if test "$lt_cv_prog_gnu_ld" = yes; then
10958 version_type=linux # correct to gnu/linux during the next big refactor
10965 soname_spec='${libname}${release}${shared_ext}$major'
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10968 irix5* | nonstopux*)
10969 libsuff= shlibsuff=
10972 case $LD in # libtool.m4 will add one of these switches to LD
10973 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10974 libsuff= shlibsuff= libmagic=32-bit;;
10975 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10976 libsuff=32 shlibsuff=N32 libmagic=N32;;
10977 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10978 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10979 *) libsuff= shlibsuff= libmagic=never-match;;
10983 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10984 shlibpath_overrides_runpath=no
10985 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10986 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10987 hardcode_into_libs=yes
10990 # No shared lib support for Linux oldld, aout, or coff.
10991 linux*oldld* | linux*aout* | linux*coff*)
10995 # This must be glibc/ELF.
10996 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10997 version_type=linux # correct to gnu/linux during the next big refactor
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 shlibpath_overrides_runpath=no
11006 # Some binutils ld are patched to set DT_RUNPATH
11007 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11008 $as_echo_n "(cached) " >&6
11010 lt_cv_shlibpath_overrides_runpath=no
11011 save_LDFLAGS=$LDFLAGS
11012 save_libdir=$libdir
11013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11026 if ac_fn_c_try_link "$LINENO"; then :
11027 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11028 lt_cv_shlibpath_overrides_runpath=yes
11031 rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
11033 LDFLAGS=$save_LDFLAGS
11034 libdir=$save_libdir
11038 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11040 # This implies no fast_install, which is unacceptable.
11041 # Some rework will be needed to allow for fast_install
11042 # before this can be enabled.
11043 hardcode_into_libs=yes
11045 # Append ld.so.conf contents to the search path
11046 if test -f /etc/ld.so.conf; then
11047 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' ' '`
11048 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11051 # We used to test for /lib/ld.so.1 and disable shared libraries on
11052 # powerpc, because MkLinux only supported shared libraries with the
11053 # GNU dynamic linker. Since this was broken with cross compilers,
11054 # most powerpc-linux boxes support dynamic linking these days and
11055 # people can always --disable-shared, the test was removed, and we
11056 # assume the GNU/Linux dynamic linker is in use.
11057 dynamic_linker='GNU/Linux ld.so'
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11065 soname_spec='${libname}${release}${shared_ext}$major'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=no
11068 hardcode_into_libs=yes
11069 dynamic_linker='NetBSD ld.elf_so'
11076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079 dynamic_linker='NetBSD (a.out) ld.so'
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11082 soname_spec='${libname}${release}${shared_ext}$major'
11083 dynamic_linker='NetBSD ld.elf_so'
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=yes
11087 hardcode_into_libs=yes
11091 version_type=linux # correct to gnu/linux during the next big refactor
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=yes
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=no
11105 hardcode_into_libs=yes
11106 dynamic_linker='ldqnx.so'
11111 sys_lib_dlsearch_path_spec="/usr/lib"
11113 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11115 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11116 *) need_version=no ;;
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11123 openbsd2.[89] | openbsd2.[89].*)
11124 shlibpath_overrides_runpath=no
11127 shlibpath_overrides_runpath=yes
11131 shlibpath_overrides_runpath=yes
11136 libname_spec='$name'
11139 library_names_spec='$libname${shared_ext} $libname.a'
11140 dynamic_linker='OS/2 ld.exe'
11141 shlibpath_var=LIBPATH
11144 osf3* | osf4* | osf5*)
11148 soname_spec='${libname}${release}${shared_ext}$major'
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11152 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11160 version_type=linux # correct to gnu/linux during the next big refactor
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11167 hardcode_into_libs=yes
11168 # ldd complains unless libraries are executable
11169 postinstall_cmds='chmod +x $lib'
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11175 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=yes
11178 if test "$with_gnu_ld" = yes; then
11185 version_type=linux # correct to gnu/linux during the next big refactor
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 case $host_vendor in
11191 shlibpath_overrides_runpath=no
11193 runpath_var=LD_RUN_PATH
11201 shlibpath_overrides_runpath=no
11202 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11208 if test -d /usr/nec ;then
11209 version_type=linux # correct to gnu/linux during the next big refactor
11210 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11211 soname_spec='$libname${shared_ext}.$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11217 version_type=freebsd-elf
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 shlibpath_overrides_runpath=yes
11224 hardcode_into_libs=yes
11225 if test "$with_gnu_ld" = yes; then
11226 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11228 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11231 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11235 sys_lib_dlsearch_path_spec='/usr/lib'
11239 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11240 version_type=linux # correct to gnu/linux during the next big refactor
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=no
11246 hardcode_into_libs=yes
11250 version_type=linux # correct to gnu/linux during the next big refactor
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 shlibpath_var=LD_LIBRARY_PATH
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11261 $as_echo "$dynamic_linker" >&6; }
11262 test "$dynamic_linker" = no && can_build_shared=no
11264 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11265 if test "$GCC" = yes; then
11266 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11269 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11270 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11272 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11273 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11368 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11370 if test -n "$hardcode_libdir_flag_spec" ||
11371 test -n "$runpath_var" ||
11372 test "X$hardcode_automatic" = "Xyes" ; then
11374 # We can hardcode non-existent directories.
11375 if test "$hardcode_direct" != no &&
11376 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11377 # have to relink, otherwise we might link with an installed library
11378 # when we should be linking with a yet-to-be-installed one
11379 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11380 test "$hardcode_minus_L" != no; then
11381 # Linking always hardcodes the temporary library directory.
11382 hardcode_action=relink
11384 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11385 hardcode_action=immediate
11388 # We cannot hardcode anything, or else we can only hardcode existing
11390 hardcode_action=unsupported
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11393 $as_echo "$hardcode_action" >&6; }
11395 if test "$hardcode_action" = relink ||
11396 test "$inherit_rpath" = yes; then
11397 # Fast installation is not supported
11398 enable_fast_install=no
11399 elif test "$shlibpath_overrides_runpath" = yes ||
11400 test "$enable_shared" = no; then
11401 # Fast installation is not necessary
11402 enable_fast_install=needless
11410 if test "x$enable_dlopen" != xyes; then
11411 enable_dlopen=unknown
11412 enable_dlopen_self=unknown
11413 enable_dlopen_self_static=unknown
11420 lt_cv_dlopen="load_add_on"
11422 lt_cv_dlopen_self=yes
11425 mingw* | pw32* | cegcc*)
11426 lt_cv_dlopen="LoadLibrary"
11431 lt_cv_dlopen="dlopen"
11436 # if libdl is installed we need to link against it
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11438 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11439 if ${ac_cv_lib_dl_dlopen+:} false; then :
11440 $as_echo_n "(cached) " >&6
11442 ac_check_lib_save_LIBS=$LIBS
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h. */
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11462 if ac_fn_c_try_link "$LINENO"; then :
11463 ac_cv_lib_dl_dlopen=yes
11465 ac_cv_lib_dl_dlopen=no
11467 rm -f core conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext conftest.$ac_ext
11469 LIBS=$ac_check_lib_save_LIBS
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11472 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11473 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11474 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11477 lt_cv_dlopen="dyld"
11479 lt_cv_dlopen_self=yes
11486 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11487 if test "x$ac_cv_func_shl_load" = xyes; then :
11488 lt_cv_dlopen="shl_load"
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11491 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11492 if ${ac_cv_lib_dld_shl_load+:} false; then :
11493 $as_echo_n "(cached) " >&6
11495 ac_check_lib_save_LIBS=$LIBS
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11500 /* Override any GCC internal prototype to avoid an error.
11501 Use char because int might match the return type of a GCC
11502 builtin and then its argument prototype would still apply. */
11510 return shl_load ();
11515 if ac_fn_c_try_link "$LINENO"; then :
11516 ac_cv_lib_dld_shl_load=yes
11518 ac_cv_lib_dld_shl_load=no
11520 rm -f core conftest.err conftest.$ac_objext \
11521 conftest$ac_exeext conftest.$ac_ext
11522 LIBS=$ac_check_lib_save_LIBS
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11525 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11526 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11527 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11529 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11530 if test "x$ac_cv_func_dlopen" = xyes; then :
11531 lt_cv_dlopen="dlopen"
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11534 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11535 if ${ac_cv_lib_dl_dlopen+:} false; then :
11536 $as_echo_n "(cached) " >&6
11538 ac_check_lib_save_LIBS=$LIBS
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11558 if ac_fn_c_try_link "$LINENO"; then :
11559 ac_cv_lib_dl_dlopen=yes
11561 ac_cv_lib_dl_dlopen=no
11563 rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11568 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11569 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11573 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11574 if ${ac_cv_lib_svld_dlopen+:} false; then :
11575 $as_echo_n "(cached) " >&6
11577 ac_check_lib_save_LIBS=$LIBS
11578 LIBS="-lsvld $LIBS"
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11582 /* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11597 if ac_fn_c_try_link "$LINENO"; then :
11598 ac_cv_lib_svld_dlopen=yes
11600 ac_cv_lib_svld_dlopen=no
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11607 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11608 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11612 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11613 if ${ac_cv_lib_dld_dld_link+:} false; then :
11614 $as_echo_n "(cached) " >&6
11616 ac_check_lib_save_LIBS=$LIBS
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11631 return dld_link ();
11636 if ac_fn_c_try_link "$LINENO"; then :
11637 ac_cv_lib_dld_dld_link=yes
11639 ac_cv_lib_dld_dld_link=no
11641 rm -f core conftest.err conftest.$ac_objext \
11642 conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11646 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11647 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11648 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11669 if test "x$lt_cv_dlopen" != xno; then
11675 case $lt_cv_dlopen in
11677 save_CPPFLAGS="$CPPFLAGS"
11678 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11680 save_LDFLAGS="$LDFLAGS"
11681 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11684 LIBS="$lt_cv_dlopen_libs $LIBS"
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11687 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11688 if ${lt_cv_dlopen_self+:} false; then :
11689 $as_echo_n "(cached) " >&6
11691 if test "$cross_compiling" = yes; then :
11692 lt_cv_dlopen_self=cross
11694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11695 lt_status=$lt_dlunknown
11696 cat > conftest.$ac_ext <<_LT_EOF
11697 #line $LINENO "configure"
11698 #include "confdefs.h"
11707 # define LT_DLGLOBAL RTLD_GLOBAL
11710 # define LT_DLGLOBAL DL_GLOBAL
11712 # define LT_DLGLOBAL 0
11716 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11717 find out it does not work in some platform. */
11718 #ifndef LT_DLLAZY_OR_NOW
11720 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11723 # define LT_DLLAZY_OR_NOW DL_LAZY
11726 # define LT_DLLAZY_OR_NOW RTLD_NOW
11729 # define LT_DLLAZY_OR_NOW DL_NOW
11731 # define LT_DLLAZY_OR_NOW 0
11738 /* When -fvisbility=hidden is used, assume the code has been annotated
11739 correspondingly for the symbols needed. */
11740 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11741 int fnord () __attribute__((visibility("default")));
11744 int fnord () { return 42; }
11747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11748 int status = $lt_dlunknown;
11752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11755 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11756 else puts (dlerror ());
11758 /* dlclose (self); */
11766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11767 (eval $ac_link) 2>&5
11769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11770 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11771 (./conftest; exit; ) >&5 2>/dev/null
11773 case x$lt_status in
11774 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11775 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11776 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11779 # compilation failed
11780 lt_cv_dlopen_self=no
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11788 $as_echo "$lt_cv_dlopen_self" >&6; }
11790 if test "x$lt_cv_dlopen_self" = xyes; then
11791 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11793 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11794 if ${lt_cv_dlopen_self_static+:} false; then :
11795 $as_echo_n "(cached) " >&6
11797 if test "$cross_compiling" = yes; then :
11798 lt_cv_dlopen_self_static=cross
11800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11801 lt_status=$lt_dlunknown
11802 cat > conftest.$ac_ext <<_LT_EOF
11803 #line $LINENO "configure"
11804 #include "confdefs.h"
11813 # define LT_DLGLOBAL RTLD_GLOBAL
11816 # define LT_DLGLOBAL DL_GLOBAL
11818 # define LT_DLGLOBAL 0
11822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11823 find out it does not work in some platform. */
11824 #ifndef LT_DLLAZY_OR_NOW
11826 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11829 # define LT_DLLAZY_OR_NOW DL_LAZY
11832 # define LT_DLLAZY_OR_NOW RTLD_NOW
11835 # define LT_DLLAZY_OR_NOW DL_NOW
11837 # define LT_DLLAZY_OR_NOW 0
11844 /* When -fvisbility=hidden is used, assume the code has been annotated
11845 correspondingly for the symbols needed. */
11846 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11847 int fnord () __attribute__((visibility("default")));
11850 int fnord () { return 42; }
11853 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11854 int status = $lt_dlunknown;
11858 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11861 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11862 else puts (dlerror ());
11864 /* dlclose (self); */
11872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11873 (eval $ac_link) 2>&5
11875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11876 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11877 (./conftest; exit; ) >&5 2>/dev/null
11879 case x$lt_status in
11880 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11881 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11882 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11885 # compilation failed
11886 lt_cv_dlopen_self_static=no
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11894 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11897 CPPFLAGS="$save_CPPFLAGS"
11898 LDFLAGS="$save_LDFLAGS"
11903 case $lt_cv_dlopen_self in
11904 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11905 *) enable_dlopen_self=unknown ;;
11908 case $lt_cv_dlopen_self_static in
11909 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11910 *) enable_dlopen_self_static=unknown ;;
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11933 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11934 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11935 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11936 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938 $as_echo "yes" >&6; }
11940 # FIXME - insert some real tests, host_os isn't really good enough
11943 if test -n "$STRIP" ; then
11944 striplib="$STRIP -x"
11945 old_striplib="$STRIP -S"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11947 $as_echo "yes" >&6; }
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11971 # Report which library types will actually be built
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11973 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11975 $as_echo "$can_build_shared" >&6; }
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11978 $as_echo_n "checking whether to build shared libraries... " >&6; }
11979 test "$can_build_shared" = "no" && enable_shared=no
11981 # On AIX, shared libraries and static libraries use the same namespace, and
11982 # are all built from PIC.
11985 test "$enable_shared" = yes && enable_static=no
11986 if test -n "$RANLIB"; then
11987 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11988 postinstall_cmds='$RANLIB $lib'
11993 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11994 test "$enable_shared" = yes && enable_static=no
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11999 $as_echo "$enable_shared" >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12002 $as_echo_n "checking whether to build static libraries... " >&6; }
12003 # Make sure either enable_shared or enable_static is yes.
12004 test "$enable_shared" = yes || enable_static=yes
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12006 $as_echo "$enable_static" >&6; }
12013 ac_cpp='$CPP $CPPFLAGS'
12014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12020 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12021 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12022 (test "X$CXX" != "Xg++"))) ; then
12024 ac_cpp='$CXXCPP $CPPFLAGS'
12025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12029 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12030 if test -z "$CXXCPP"; then
12031 if ${ac_cv_prog_CXXCPP+:} false; then :
12032 $as_echo_n "(cached) " >&6
12034 # Double quotes because CXXCPP needs to be expanded
12035 for CXXCPP in "$CXX -E" "/lib/cpp"
12037 ac_preproc_ok=false
12038 for ac_cxx_preproc_warn_flag in '' yes
12040 # Use a header file that comes with gcc, so configuring glibc
12041 # with a fresh cross-compiler works.
12042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12043 # <limits.h> exists even on freestanding compilers.
12044 # On the NeXT, cc -E runs the code through the compiler's parser,
12045 # not just through cpp. "Syntax error" is here to catch this case.
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12049 # include <limits.h>
12051 # include <assert.h>
12055 if ac_fn_cxx_try_cpp "$LINENO"; then :
12058 # Broken: fails on valid input.
12061 rm -f conftest.err conftest.i conftest.$ac_ext
12063 # OK, works on sane cases. Now check whether nonexistent headers
12064 # can be detected and how.
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067 #include <ac_nonexistent.h>
12069 if ac_fn_cxx_try_cpp "$LINENO"; then :
12070 # Broken: success on invalid input.
12073 # Passes both tests.
12077 rm -f conftest.err conftest.i conftest.$ac_ext
12080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12081 rm -f conftest.i conftest.err conftest.$ac_ext
12082 if $ac_preproc_ok; then :
12087 ac_cv_prog_CXXCPP=$CXXCPP
12090 CXXCPP=$ac_cv_prog_CXXCPP
12092 ac_cv_prog_CXXCPP=$CXXCPP
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12095 $as_echo "$CXXCPP" >&6; }
12096 ac_preproc_ok=false
12097 for ac_cxx_preproc_warn_flag in '' yes
12099 # Use a header file that comes with gcc, so configuring glibc
12100 # with a fresh cross-compiler works.
12101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12102 # <limits.h> exists even on freestanding compilers.
12103 # On the NeXT, cc -E runs the code through the compiler's parser,
12104 # not just through cpp. "Syntax error" is here to catch this case.
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12108 # include <limits.h>
12110 # include <assert.h>
12114 if ac_fn_cxx_try_cpp "$LINENO"; then :
12117 # Broken: fails on valid input.
12120 rm -f conftest.err conftest.i conftest.$ac_ext
12122 # OK, works on sane cases. Now check whether nonexistent headers
12123 # can be detected and how.
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126 #include <ac_nonexistent.h>
12128 if ac_fn_cxx_try_cpp "$LINENO"; then :
12129 # Broken: success on invalid input.
12132 # Passes both tests.
12136 rm -f conftest.err conftest.i conftest.$ac_ext
12139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12140 rm -f conftest.i conftest.err conftest.$ac_ext
12141 if $ac_preproc_ok; then :
12144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12146 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12147 See \`config.log' for more details" "$LINENO" 5; }
12151 ac_cpp='$CPP $CPPFLAGS'
12152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12157 _lt_caught_CXX_error=yes
12161 ac_cpp='$CXXCPP $CPPFLAGS'
12162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12166 archive_cmds_need_lc_CXX=no
12167 allow_undefined_flag_CXX=
12168 always_export_symbols_CXX=no
12169 archive_expsym_cmds_CXX=
12170 compiler_needs_object_CXX=no
12171 export_dynamic_flag_spec_CXX=
12172 hardcode_direct_CXX=no
12173 hardcode_direct_absolute_CXX=no
12174 hardcode_libdir_flag_spec_CXX=
12175 hardcode_libdir_separator_CXX=
12176 hardcode_minus_L_CXX=no
12177 hardcode_shlibpath_var_CXX=unsupported
12178 hardcode_automatic_CXX=no
12179 inherit_rpath_CXX=no
12181 module_expsym_cmds_CXX=
12182 link_all_deplibs_CXX=unknown
12183 old_archive_cmds_CXX=$old_archive_cmds
12184 reload_flag_CXX=$reload_flag
12185 reload_cmds_CXX=$reload_cmds
12186 no_undefined_flag_CXX=
12187 whole_archive_flag_spec_CXX=
12188 enable_shared_with_static_runtimes_CXX=no
12190 # Source file extension for C++ test sources.
12193 # Object file extension for compiled C++ test sources.
12197 # No sense in running all these tests if we already determined that
12198 # the CXX compiler isn't working. Some variables (like enable_shared)
12199 # are currently assumed to apply to all compilers on this platform,
12200 # and will be corrupted by setting them based on a non-working compiler.
12201 if test "$_lt_caught_CXX_error" != yes; then
12202 # Code to be used in simple compile tests
12203 lt_simple_compile_test_code="int some_variable = 0;"
12205 # Code to be used in simple link tests
12206 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12208 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12215 # If no C compiler was specified, use CC.
12218 # If no C compiler flags were specified, use CFLAGS.
12219 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12221 # Allow CC to be a program name with arguments.
12225 # save warnings/boilerplate of simple test code
12226 ac_outfile=conftest.$ac_objext
12227 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12228 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12229 _lt_compiler_boilerplate=`cat conftest.err`
12232 ac_outfile=conftest.$ac_objext
12233 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12234 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12235 _lt_linker_boilerplate=`cat conftest.err`
12239 # Allow CC to be a program name with arguments.
12241 lt_save_CFLAGS=$CFLAGS
12245 lt_save_with_gnu_ld=$with_gnu_ld
12246 lt_save_path_LD=$lt_cv_path_LD
12247 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12248 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12250 $as_unset lt_cv_prog_gnu_ld
12252 if test -n "${lt_cv_path_LDCXX+set}"; then
12253 lt_cv_path_LD=$lt_cv_path_LDCXX
12255 $as_unset lt_cv_path_LD
12257 test -z "${LDCXX+set}" || LD=$LDCXX
12262 for cc_temp in $compiler""; do
12264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12270 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12273 if test -n "$compiler"; then
12274 # We don't want -fno-exception when compiling C++ code, so set the
12275 # no_builtin_flag separately
12276 if test "$GXX" = yes; then
12277 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12279 lt_prog_compiler_no_builtin_flag_CXX=
12282 if test "$GXX" = yes; then
12283 # Set up default GNU C++ configuration
12287 # Check whether --with-gnu-ld was given.
12288 if test "${with_gnu_ld+set}" = set; then :
12289 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12295 if test "$GCC" = yes; then
12296 # Check if gcc -print-prog-name=ld gives a path.
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12298 $as_echo_n "checking for ld used by $CC... " >&6; }
12301 # gcc leaves a trailing carriage return which upsets mingw
12302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12307 # Accept absolute paths.
12309 re_direlt='/[^/][^/]*/\.\./'
12310 # Canonicalize the pathname of ld
12311 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12312 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12313 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12315 test -z "$LD" && LD="$ac_prog"
12318 # If it fails, then pretend we aren't using GCC.
12322 # If it is relative, then search for the first ld in PATH.
12323 with_gnu_ld=unknown
12326 elif test "$with_gnu_ld" = yes; then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12328 $as_echo_n "checking for GNU ld... " >&6; }
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12331 $as_echo_n "checking for non-GNU ld... " >&6; }
12333 if ${lt_cv_path_LD+:} false; then :
12334 $as_echo_n "(cached) " >&6
12336 if test -z "$LD"; then
12337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12338 for ac_dir in $PATH; do
12340 test -z "$ac_dir" && ac_dir=.
12341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12342 lt_cv_path_LD="$ac_dir/$ac_prog"
12343 # Check to see if the program is GNU ld. I'd rather use --version,
12344 # but apparently some variants of GNU ld only accept -v.
12345 # Break only if it was the GNU/non-GNU ld that we prefer.
12346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12347 *GNU* | *'with BFD'*)
12348 test "$with_gnu_ld" != no && break
12351 test "$with_gnu_ld" != yes && break
12358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12362 LD="$lt_cv_path_LD"
12363 if test -n "$LD"; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12365 $as_echo "$LD" >&6; }
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12370 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12372 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12373 if ${lt_cv_prog_gnu_ld+:} false; then :
12374 $as_echo_n "(cached) " >&6
12376 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12377 case `$LD -v 2>&1 </dev/null` in
12378 *GNU* | *'with BFD'*)
12379 lt_cv_prog_gnu_ld=yes
12382 lt_cv_prog_gnu_ld=no
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12387 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12388 with_gnu_ld=$lt_cv_prog_gnu_ld
12396 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12397 # archiving commands below assume that GNU ld is being used.
12398 if test "$with_gnu_ld" = yes; then
12399 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12400 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'
12402 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12405 # If archive_cmds runs LD, not CC, wlarc should be empty
12406 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12407 # investigate it a little bit more. (MM)
12410 # ancient GNU ld didn't support --whole-archive et. al.
12411 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12412 $GREP 'no-whole-archive' > /dev/null; then
12413 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12415 whole_archive_flag_spec_CXX=
12421 # A generic and very simple default shared library creation
12422 # command for GNU C++ for the case where it uses the native
12423 # linker, instead of GNU ld. If possible, this setting should
12424 # overridden to take advantage of the native linker features on
12425 # the platform it is being used on.
12426 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12429 # Commands to make compiler produce verbose output that lists
12430 # what "hidden" libraries, object files and flags are used when
12431 # linking a shared library.
12432 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12440 # PORTME: fill in a description of your system's C++ link characteristics
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12442 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12446 # FIXME: insert proper C++ library support
12450 if test "$host_cpu" = ia64; then
12451 # On IA64, the linker does run time linking by default, so we don't
12452 # have to do anything special.
12453 aix_use_runtimelinking=no
12454 exp_sym_flag='-Bexport'
12457 aix_use_runtimelinking=no
12459 # Test if we are trying to use run time linking or normal
12460 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12461 # need to do runtime linking.
12462 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12463 for ld_flag in $LDFLAGS; do
12466 aix_use_runtimelinking=yes
12474 exp_sym_flag='-bexport'
12475 no_entry_flag='-bnoentry'
12478 # When large executables or shared objects are built, AIX ld can
12479 # have problems creating the table of contents. If linking a library
12480 # or program results in "error TOC overflow" add -mminimal-toc to
12481 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12482 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12484 archive_cmds_CXX=''
12485 hardcode_direct_CXX=yes
12486 hardcode_direct_absolute_CXX=yes
12487 hardcode_libdir_separator_CXX=':'
12488 link_all_deplibs_CXX=yes
12489 file_list_spec_CXX='${wl}-f,'
12491 if test "$GXX" = yes; then
12492 case $host_os in aix4.[012]|aix4.[012].*)
12493 # We only want to do this on AIX 4.2 and lower, the check
12494 # below for broken collect2 doesn't work under 4.3+
12495 collect2name=`${CC} -print-prog-name=collect2`
12496 if test -f "$collect2name" &&
12497 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12499 # We have reworked collect2
12502 # We have old collect2
12503 hardcode_direct_CXX=unsupported
12504 # It fails to find uninstalled libraries when the uninstalled
12505 # path is not listed in the libpath. Setting hardcode_minus_L
12506 # to unsupported forces relinking
12507 hardcode_minus_L_CXX=yes
12508 hardcode_libdir_flag_spec_CXX='-L$libdir'
12509 hardcode_libdir_separator_CXX=
12512 shared_flag='-shared'
12513 if test "$aix_use_runtimelinking" = yes; then
12514 shared_flag="$shared_flag "'${wl}-G'
12518 if test "$host_cpu" = ia64; then
12519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12520 # chokes on -Wl,-G. The following line is correct:
12523 if test "$aix_use_runtimelinking" = yes; then
12524 shared_flag='${wl}-G'
12526 shared_flag='${wl}-bM:SRE'
12531 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12532 # It seems that -bexpall does not export symbols beginning with
12533 # underscore (_), so it is better to generate a list of symbols to
12535 always_export_symbols_CXX=yes
12536 if test "$aix_use_runtimelinking" = yes; then
12537 # Warning - without using the other runtime loading flags (-brtl),
12538 # -berok will link without error, but may produce a broken library.
12539 allow_undefined_flag_CXX='-berok'
12540 # Determine the default libpath from the value encoded in an empty
12542 if test "${lt_cv_aix_libpath+set}" = set; then
12543 aix_libpath=$lt_cv_aix_libpath
12545 if ${lt_cv_aix_libpath__CXX+:} false; then :
12546 $as_echo_n "(cached) " >&6
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12559 if ac_fn_cxx_try_link "$LINENO"; then :
12561 lt_aix_libpath_sed='
12562 /Import File Strings/,/^$/ {
12564 s/^0 *\([^ ]*\) *$/\1/
12568 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12569 # Check for a 64-bit object if we didn't find anything.
12570 if test -z "$lt_cv_aix_libpath__CXX"; then
12571 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 if test -z "$lt_cv_aix_libpath__CXX"; then
12577 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12582 aix_libpath=$lt_cv_aix_libpath__CXX
12585 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12587 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"
12589 if test "$host_cpu" = ia64; then
12590 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12591 allow_undefined_flag_CXX="-z nodefs"
12592 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"
12594 # Determine the default libpath from the value encoded in an
12595 # empty executable.
12596 if test "${lt_cv_aix_libpath+set}" = set; then
12597 aix_libpath=$lt_cv_aix_libpath
12599 if ${lt_cv_aix_libpath__CXX+:} false; then :
12600 $as_echo_n "(cached) " >&6
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12613 if ac_fn_cxx_try_link "$LINENO"; then :
12615 lt_aix_libpath_sed='
12616 /Import File Strings/,/^$/ {
12618 s/^0 *\([^ ]*\) *$/\1/
12622 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12623 # Check for a 64-bit object if we didn't find anything.
12624 if test -z "$lt_cv_aix_libpath__CXX"; then
12625 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12628 rm -f core conftest.err conftest.$ac_objext \
12629 conftest$ac_exeext conftest.$ac_ext
12630 if test -z "$lt_cv_aix_libpath__CXX"; then
12631 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12636 aix_libpath=$lt_cv_aix_libpath__CXX
12639 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12640 # Warning - without using the other run time loading flags,
12641 # -berok will link without error, but may produce a broken library.
12642 no_undefined_flag_CXX=' ${wl}-bernotok'
12643 allow_undefined_flag_CXX=' ${wl}-berok'
12644 if test "$with_gnu_ld" = yes; then
12645 # We only use this code for GNU lds that support --whole-archive.
12646 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12648 # Exported symbols can be pulled into shared objects from archives
12649 whole_archive_flag_spec_CXX='$convenience'
12651 archive_cmds_need_lc_CXX=yes
12652 # This is similar to how AIX traditionally builds its shared
12654 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'
12660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12661 allow_undefined_flag_CXX=unsupported
12662 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12663 # support --undefined. This deserves some investigation. FIXME
12664 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671 case $cc_basename in
12673 # FIXME: insert proper C++ library support
12679 cygwin* | mingw* | pw32* | cegcc*)
12680 case $GXX,$cc_basename in
12683 # hardcode_libdir_flag_spec is actually meaningless, as there is
12684 # no search path for DLLs.
12685 hardcode_libdir_flag_spec_CXX=' '
12686 allow_undefined_flag_CXX=unsupported
12687 always_export_symbols_CXX=yes
12688 file_list_spec_CXX='@'
12689 # Tell ltmain to make .lib files, not .a files.
12691 # Tell ltmain to make .dll files, not .so files.
12693 # FIXME: Setting linknames here is a bad hack.
12694 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12695 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12696 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12698 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12700 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12702 # The linker will not automatically build a static lib if we build a DLL.
12703 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12704 enable_shared_with_static_runtimes_CXX=yes
12706 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12707 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12708 lt_tool_outputfile="@TOOL_OUTPUT@"~
12709 case $lt_outputfile in
12712 lt_outputfile="$lt_outputfile.exe"
12713 lt_tool_outputfile="$lt_tool_outputfile.exe"
12716 func_to_tool_file "$lt_outputfile"~
12717 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12718 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12719 $RM "$lt_outputfile.manifest";
12724 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12725 # as there is no search path for DLLs.
12726 hardcode_libdir_flag_spec_CXX='-L$libdir'
12727 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12728 allow_undefined_flag_CXX=unsupported
12729 always_export_symbols_CXX=no
12730 enable_shared_with_static_runtimes_CXX=yes
12732 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12733 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'
12734 # If the export-symbols file already is a .def file (1st line
12735 # is EXPORTS), use it as is; otherwise, prepend...
12736 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12737 cp $export_symbols $output_objdir/$soname.def;
12739 echo EXPORTS > $output_objdir/$soname.def;
12740 cat $export_symbols >> $output_objdir/$soname.def;
12742 $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'
12749 darwin* | rhapsody*)
12752 archive_cmds_need_lc_CXX=no
12753 hardcode_direct_CXX=no
12754 hardcode_automatic_CXX=yes
12755 hardcode_shlibpath_var_CXX=unsupported
12756 if test "$lt_cv_ld_force_load" = "yes"; then
12757 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\"`'
12760 whole_archive_flag_spec_CXX=''
12762 link_all_deplibs_CXX=yes
12763 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12764 case $cc_basename in
12765 ifort*) _lt_dar_can_shared=yes ;;
12766 *) _lt_dar_can_shared=$GCC ;;
12768 if test "$_lt_dar_can_shared" = "yes"; then
12769 output_verbose_link_cmd=func_echo_all
12770 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}"
12771 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12772 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}"
12773 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}"
12774 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12775 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}"
12776 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}"
12786 case $cc_basename in
12788 # FIXME: insert proper C++ library support
12792 # Green Hills C++ Compiler
12793 # FIXME: insert proper C++ library support
12797 # FIXME: insert proper C++ library support
12804 # C++ shared libraries reported to be fairly broken before
12810 archive_cmds_need_lc_CXX=no
12813 freebsd* | dragonfly*)
12814 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12823 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12824 link_all_deplibs_CXX=yes
12828 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12829 hardcode_libdir_separator_CXX=:
12830 export_dynamic_flag_spec_CXX='${wl}-E'
12831 hardcode_direct_CXX=yes
12832 hardcode_minus_L_CXX=yes # Not in the search PATH,
12833 # but as the default
12834 # location of the library.
12836 case $cc_basename in
12838 # FIXME: insert proper C++ library support
12842 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'
12843 # Commands to make compiler produce verbose output that lists
12844 # what "hidden" libraries, object files and flags are used when
12845 # linking a shared library.
12847 # There doesn't appear to be a way to prevent this compiler from
12848 # explicitly linking system object files so we need to strip them
12849 # from the output so that they don't get included in the library
12851 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"'
12854 if test "$GXX" = yes; then
12855 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'
12857 # FIXME: insert proper C++ library support
12865 if test $with_gnu_ld = no; then
12866 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12867 hardcode_libdir_separator_CXX=:
12873 export_dynamic_flag_spec_CXX='${wl}-E'
12879 hardcode_direct_CXX=no
12880 hardcode_shlibpath_var_CXX=no
12883 hardcode_direct_CXX=yes
12884 hardcode_direct_absolute_CXX=yes
12885 hardcode_minus_L_CXX=yes # Not in the search PATH,
12886 # but as the default
12887 # location of the library.
12891 case $cc_basename in
12893 # FIXME: insert proper C++ library support
12899 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12902 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12905 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12908 # Commands to make compiler produce verbose output that lists
12909 # what "hidden" libraries, object files and flags are used when
12910 # linking a shared library.
12912 # There doesn't appear to be a way to prevent this compiler from
12913 # explicitly linking system object files so we need to strip them
12914 # from the output so that they don't get included in the library
12916 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"'
12919 if test "$GXX" = yes; then
12920 if test $with_gnu_ld = no; then
12923 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12926 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929 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'
12934 # FIXME: insert proper C++ library support
12942 hardcode_direct_CXX=no
12943 hardcode_shlibpath_var_CXX=no
12944 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12945 export_dynamic_flag_spec_CXX='${wl}-E'
12946 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12947 # Instead, shared libraries are loaded at an image base (0x10000000 by
12948 # default) and relocated if they conflict, which is a slow very memory
12949 # consuming and fragmenting process. To avoid this, we pick a random,
12950 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12951 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12952 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'
12953 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'
12956 case $cc_basename in
12959 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'
12961 # Archives containing C++ object files must be created using
12962 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12963 # necessary to make sure instantiated templates are included
12965 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12968 if test "$GXX" = yes; then
12969 if test "$with_gnu_ld" = no; then
12970 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'
12972 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'
12975 link_all_deplibs_CXX=yes
12978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12979 hardcode_libdir_separator_CXX=:
12980 inherit_rpath_CXX=yes
12983 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12984 case $cc_basename in
12986 # Kuck and Associates, Inc. (KAI) C++ Compiler
12988 # KCC will only create a shared library if the output file
12989 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12990 # to its proper name (with version) after linking.
12991 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'
12992 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'
12993 # Commands to make compiler produce verbose output that lists
12994 # what "hidden" libraries, object files and flags are used when
12995 # linking a shared library.
12997 # There doesn't appear to be a way to prevent this compiler from
12998 # explicitly linking system object files so we need to strip them
12999 # from the output so that they don't get included in the library
13001 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"'
13003 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13006 # Archives containing C++ object files must be created using
13007 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13008 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13013 # version 8.0 and above of icpc choke on multiply defined symbols
13014 # if we add $predep_objects and $postdep_objects, however 7.1 and
13015 # earlier do not add the objects themselves.
13016 case `$CC -V 2>&1` in
13018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019 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'
13021 *) # Version 8.0 or newer
13024 ia64*) tmp_idyn=' -i_dynamic';;
13026 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13027 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'
13030 archive_cmds_need_lc_CXX=no
13031 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13032 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13033 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13036 # Portland Group C++ compiler
13038 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13039 prelink_cmds_CXX='tpldir=Template.dir~
13041 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13042 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13043 old_archive_cmds_CXX='tpldir=Template.dir~
13045 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13046 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13048 archive_cmds_CXX='tpldir=Template.dir~
13050 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13051 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13052 archive_expsym_cmds_CXX='tpldir=Template.dir~
13054 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13055 $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'
13057 *) # Version 6 and above use weak symbols
13058 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13059 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'
13063 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13065 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'
13069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13070 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'
13072 runpath_var=LD_RUN_PATH
13073 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13074 hardcode_libdir_separator_CXX=:
13076 # Commands to make compiler produce verbose output that lists
13077 # what "hidden" libraries, object files and flags are used when
13078 # linking a shared library.
13080 # There doesn't appear to be a way to prevent this compiler from
13081 # explicitly linking system object files so we need to strip them
13082 # from the output so that they don't get included in the library
13084 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'
13086 xl* | mpixl* | bgxl*)
13087 # IBM XL 8.0 on PPC, with GNU ld
13088 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13089 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13090 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091 if test "x$supports_anon_versioning" = xyes; then
13092 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13094 echo "local: *; };" >> $output_objdir/$libname.ver~
13095 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13099 case `$CC -V 2>&1 | sed 5q` in
13102 no_undefined_flag_CXX=' -zdefs'
13103 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13104 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'
13105 hardcode_libdir_flag_spec_CXX='-R$libdir'
13106 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'
13107 compiler_needs_object_CXX=yes
13109 # Not sure whether something based on
13110 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13112 output_verbose_link_cmd='func_echo_all'
13114 # Archives containing C++ object files must be created using
13115 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13116 # necessary to make sure instantiated templates are included
13118 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13126 # FIXME: insert proper C++ library support
13131 # FIXME: insert proper C++ library support
13136 case $cc_basename in
13138 # FIXME: insert proper C++ library support
13142 # FIXME: insert proper C++ library support
13149 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13150 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13152 hardcode_libdir_flag_spec_CXX='-R$libdir'
13153 hardcode_direct_CXX=yes
13154 hardcode_shlibpath_var_CXX=no
13156 # Workaround some broken pre-1.5 toolchains
13157 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13165 # C++ shared libraries are fairly broken
13170 if test -f /usr/libexec/ld.so; then
13171 hardcode_direct_CXX=yes
13172 hardcode_shlibpath_var_CXX=no
13173 hardcode_direct_absolute_CXX=yes
13174 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13175 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13177 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13178 export_dynamic_flag_spec_CXX='${wl}-E'
13179 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13181 output_verbose_link_cmd=func_echo_all
13187 osf3* | osf4* | osf5*)
13188 case $cc_basename in
13190 # Kuck and Associates, Inc. (KAI) C++ Compiler
13192 # KCC will only create a shared library if the output file
13193 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13194 # to its proper name (with version) after linking.
13195 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'
13197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13198 hardcode_libdir_separator_CXX=:
13200 # Archives containing C++ object files must be created using
13201 # the KAI C++ compiler.
13203 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13204 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13208 # Rational C++ 2.4.1
13209 # FIXME: insert proper C++ library support
13215 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13216 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'
13217 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13220 allow_undefined_flag_CXX=' -expect_unresolved \*'
13221 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'
13222 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13223 echo "-hidden">> $lib.exp~
13224 $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~
13226 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13230 hardcode_libdir_separator_CXX=:
13232 # Commands to make compiler produce verbose output that lists
13233 # what "hidden" libraries, object files and flags are used when
13234 # linking a shared library.
13236 # There doesn't appear to be a way to prevent this compiler from
13237 # explicitly linking system object files so we need to strip them
13238 # from the output so that they don't get included in the library
13240 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"'
13243 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13244 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13247 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'
13250 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'
13254 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13255 hardcode_libdir_separator_CXX=:
13257 # Commands to make compiler produce verbose output that lists
13258 # what "hidden" libraries, object files and flags are used when
13259 # linking a shared library.
13260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13263 # FIXME: insert proper C++ library support
13271 # FIXME: insert proper C++ library support
13276 case $cc_basename in
13279 # FIXME: insert proper C++ library support
13284 # FIXME: insert proper C++ library support
13288 # FIXME: insert proper C++ library support
13295 case $cc_basename in
13297 # Sun C++ 4.2, 5.x and Centerline C++
13298 archive_cmds_need_lc_CXX=yes
13299 no_undefined_flag_CXX=' -zdefs'
13300 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13301 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13302 $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'
13304 hardcode_libdir_flag_spec_CXX='-R$libdir'
13305 hardcode_shlibpath_var_CXX=no
13307 solaris2.[0-5] | solaris2.[0-5].*) ;;
13309 # The compiler driver will combine and reorder linker options,
13310 # but understands `-z linker_flag'.
13311 # Supported since Solaris 2.6 (maybe 2.5.1?)
13312 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13315 link_all_deplibs_CXX=yes
13317 output_verbose_link_cmd='func_echo_all'
13319 # Archives containing C++ object files must be created using
13320 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13321 # necessary to make sure instantiated templates are included
13323 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13326 # Green Hills C++ Compiler
13327 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13329 # The C++ compiler must be used to create the archive.
13330 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13333 # GNU C++ compiler with Solaris linker
13334 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13335 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13336 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13337 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13338 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13339 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13341 # Commands to make compiler produce verbose output that lists
13342 # what "hidden" libraries, object files and flags are used when
13343 # linking a shared library.
13344 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13346 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13348 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13349 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13350 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13352 # Commands to make compiler produce verbose output that lists
13353 # what "hidden" libraries, object files and flags are used when
13354 # linking a shared library.
13355 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13358 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13360 solaris2.[0-5] | solaris2.[0-5].*) ;;
13362 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13371 no_undefined_flag_CXX='${wl}-z,text'
13372 archive_cmds_need_lc_CXX=no
13373 hardcode_shlibpath_var_CXX=no
13374 runpath_var='LD_RUN_PATH'
13376 case $cc_basename in
13378 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13382 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13383 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13388 sysv5* | sco3.2v5* | sco5v6*)
13389 # Note: We can NOT use -z defs as we might desire, because we do not
13390 # link with -lc, and that would cause any symbols used from libc to
13391 # always be unresolved, which means just about no library would
13392 # ever link correctly. If we're not using GNU ld we use -z text
13393 # though, which does catch some bad symbols but isn't as heavy-handed
13395 no_undefined_flag_CXX='${wl}-z,text'
13396 allow_undefined_flag_CXX='${wl}-z,nodefs'
13397 archive_cmds_need_lc_CXX=no
13398 hardcode_shlibpath_var_CXX=no
13399 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13400 hardcode_libdir_separator_CXX=':'
13401 link_all_deplibs_CXX=yes
13402 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13403 runpath_var='LD_RUN_PATH'
13405 case $cc_basename in
13407 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13408 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13409 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13410 '"$old_archive_cmds_CXX"
13411 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13412 '"$reload_cmds_CXX"
13415 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13416 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13422 case $cc_basename in
13424 # NonStop-UX NCC 3.20
13425 # FIXME: insert proper C++ library support
13429 # FIXME: insert proper C++ library support
13436 # FIXME: insert proper C++ library support
13441 # FIXME: insert proper C++ library support
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13447 $as_echo "$ld_shlibs_CXX" >&6; }
13448 test "$ld_shlibs_CXX" = no && can_build_shared=no
13454 ## There is no encapsulation within the following macros, do not change
13455 ## the running order or otherwise move them around unless you know exactly
13456 ## what you are doing...
13457 # Dependencies to place before and after the object being linked:
13458 predep_objects_CXX=
13459 postdep_objects_CXX=
13462 compiler_lib_search_path_CXX=
13464 cat > conftest.$ac_ext <<_LT_EOF
13468 Foo (void) { a = 0; }
13475 _lt_libdeps_save_CFLAGS=$CFLAGS
13476 case "$CC $CFLAGS " in #(
13477 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13478 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13479 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13483 (eval $ac_compile) 2>&5
13485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13486 test $ac_status = 0; }; then
13487 # Parse the compiler output and extract the necessary
13488 # objects, libraries and library flags.
13490 # Sentinel used to keep track of whether or not we are before
13491 # the conftest object file.
13492 pre_test_object_deps_done=no
13494 for p in `eval "$output_verbose_link_cmd"`; do
13495 case ${prev}${p} in
13498 # Some compilers place space between "-{L,R}" and the path.
13499 # Remove the space.
13500 if test $p = "-L" ||
13501 test $p = "-R"; then
13506 # Expand the sysroot to ease extracting the directories later.
13507 if test -z "$prev"; then
13509 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13510 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13511 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13515 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13517 if test "$pre_test_object_deps_done" = no; then
13520 # Internal compiler library paths should come after those
13521 # provided the user. The postdeps already come after the
13522 # user supplied libs so there is no need to process them.
13523 if test -z "$compiler_lib_search_path_CXX"; then
13524 compiler_lib_search_path_CXX="${prev}${p}"
13526 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13529 # The "-l" case would never come before the object being
13530 # linked, so don't bother handling this case.
13533 if test -z "$postdeps_CXX"; then
13534 postdeps_CXX="${prev}${p}"
13536 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13542 *.lto.$objext) ;; # Ignore GCC LTO objects
13544 # This assumes that the test object file only shows up
13545 # once in the compiler output.
13546 if test "$p" = "conftest.$objext"; then
13547 pre_test_object_deps_done=yes
13551 if test "$pre_test_object_deps_done" = no; then
13552 if test -z "$predep_objects_CXX"; then
13553 predep_objects_CXX="$p"
13555 predep_objects_CXX="$predep_objects_CXX $p"
13558 if test -z "$postdep_objects_CXX"; then
13559 postdep_objects_CXX="$p"
13561 postdep_objects_CXX="$postdep_objects_CXX $p"
13566 *) ;; # Ignore the rest.
13574 echo "libtool.m4: error: problem compiling CXX test program"
13577 $RM -f confest.$objext
13578 CFLAGS=$_lt_libdeps_save_CFLAGS
13580 # PORTME: override above test on systems where it is broken
13583 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13584 # hack all around it, let's just trust "g++" to DTRT.
13585 predep_objects_CXX=
13586 postdep_objects_CXX=
13591 case `$CC -V 2>&1 | sed 5q` in
13595 # The more standards-conforming stlport4 library is
13596 # incompatible with the Cstd library. Avoid specifying
13597 # it if it's in CXXFLAGS. Ignore libCrun as
13598 # -library=stlport4 depends on it.
13599 case " $CXX $CXXFLAGS " in
13600 *" -library=stlport4 "*)
13601 solaris_use_stlport4=yes
13605 if test "$solaris_use_stlport4" != yes; then
13606 postdeps_CXX='-library=Cstd -library=Crun'
13613 case $cc_basename in
13615 # The more standards-conforming stlport4 library is
13616 # incompatible with the Cstd library. Avoid specifying
13617 # it if it's in CXXFLAGS. Ignore libCrun as
13618 # -library=stlport4 depends on it.
13619 case " $CXX $CXXFLAGS " in
13620 *" -library=stlport4 "*)
13621 solaris_use_stlport4=yes
13625 # Adding this requires a known-good setup of shared libraries for
13626 # Sun compiler versions before 5.6, else PIC objects from an old
13627 # archive will be linked into the output, leading to subtle bugs.
13628 if test "$solaris_use_stlport4" != yes; then
13629 postdeps_CXX='-library=Cstd -library=Crun'
13637 case " $postdeps_CXX " in
13638 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13640 compiler_lib_search_dirs_CXX=
13641 if test -n "${compiler_lib_search_path_CXX}"; then
13642 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13675 lt_prog_compiler_wl_CXX=
13676 lt_prog_compiler_pic_CXX=
13677 lt_prog_compiler_static_CXX=
13680 # C++ specific cases for pic, static, wl, etc.
13681 if test "$GXX" = yes; then
13682 lt_prog_compiler_wl_CXX='-Wl,'
13683 lt_prog_compiler_static_CXX='-static'
13687 # All AIX code is PIC.
13688 if test "$host_cpu" = ia64; then
13689 # AIX 5 now supports IA64 processor
13690 lt_prog_compiler_static_CXX='-Bstatic'
13697 # see comment about AmigaOS4 .so support
13698 lt_prog_compiler_pic_CXX='-fPIC'
13701 # FIXME: we need at least 68020 code to build shared libraries, but
13702 # adding the `-m68020' flag to GCC prevents building anything better,
13704 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13709 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13710 # PIC is the default for these OSes.
13712 mingw* | cygwin* | os2* | pw32* | cegcc*)
13713 # This hack is so that the source file can tell whether it is being
13714 # built for inclusion in a dll (and should export symbols for example).
13715 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13716 # (--disable-auto-import) libraries
13717 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13719 darwin* | rhapsody*)
13720 # PIC is the default on this platform
13721 # Common symbols not allowed in MH_DYLIB files
13722 lt_prog_compiler_pic_CXX='-fno-common'
13725 # DJGPP does not support shared libraries at all
13726 lt_prog_compiler_pic_CXX=
13729 # PIC is the default for Haiku.
13730 # The "-static" flag exists, but is broken.
13731 lt_prog_compiler_static_CXX=
13734 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13735 # Instead, we relocate shared libraries at runtime.
13738 if test -d /usr/nec; then
13739 lt_prog_compiler_pic_CXX=-Kconform_pic
13743 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13744 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13745 # sets the default TLS model and affects inlining.
13750 lt_prog_compiler_pic_CXX='-fPIC'
13755 # QNX uses GNU C++, but need to define -shared option too, otherwise
13756 # it will coredump.
13757 lt_prog_compiler_pic_CXX='-fPIC -shared'
13760 lt_prog_compiler_pic_CXX='-fPIC'
13766 # All AIX code is PIC.
13767 if test "$host_cpu" = ia64; then
13768 # AIX 5 now supports IA64 processor
13769 lt_prog_compiler_static_CXX='-Bstatic'
13771 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13775 case $cc_basename in
13777 # Green Hills C++ Compiler
13778 # _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"
13782 mingw* | cygwin* | os2* | pw32* | cegcc*)
13783 # This hack is so that the source file can tell whether it is being
13784 # built for inclusion in a dll (and should export symbols for example).
13785 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13788 case $cc_basename in
13790 lt_prog_compiler_pic_CXX='-KPIC'
13793 # Green Hills C++ Compiler
13794 lt_prog_compiler_pic_CXX='-pic'
13800 freebsd* | dragonfly*)
13801 # FreeBSD uses GNU C++
13803 hpux9* | hpux10* | hpux11*)
13804 case $cc_basename in
13806 lt_prog_compiler_wl_CXX='-Wl,'
13807 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13808 if test "$host_cpu" != ia64; then
13809 lt_prog_compiler_pic_CXX='+Z'
13813 lt_prog_compiler_wl_CXX='-Wl,'
13814 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13820 lt_prog_compiler_pic_CXX='+Z'
13829 # This is c89, which is MS Visual C++ (no shared libs)
13830 # Anyone wants to do a port?
13832 irix5* | irix6* | nonstopux*)
13833 case $cc_basename in
13835 lt_prog_compiler_wl_CXX='-Wl,'
13836 lt_prog_compiler_static_CXX='-non_shared'
13837 # CC pic flag -KPIC is the default.
13843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13844 case $cc_basename in
13847 lt_prog_compiler_wl_CXX='--backend -Wl,'
13848 lt_prog_compiler_pic_CXX='-fPIC'
13851 # old Intel C++ for x86_64 which still supported -KPIC.
13852 lt_prog_compiler_wl_CXX='-Wl,'
13853 lt_prog_compiler_pic_CXX='-KPIC'
13854 lt_prog_compiler_static_CXX='-static'
13857 # Intel C++, used to be incompatible with GCC.
13858 # ICC 10 doesn't accept -KPIC any more.
13859 lt_prog_compiler_wl_CXX='-Wl,'
13860 lt_prog_compiler_pic_CXX='-fPIC'
13861 lt_prog_compiler_static_CXX='-static'
13864 # Portland Group C++ compiler
13865 lt_prog_compiler_wl_CXX='-Wl,'
13866 lt_prog_compiler_pic_CXX='-fpic'
13867 lt_prog_compiler_static_CXX='-Bstatic'
13871 # Make sure the PIC flag is empty. It appears that all Alpha
13872 # Linux and Compaq Tru64 Unix objects are PIC.
13873 lt_prog_compiler_pic_CXX=
13874 lt_prog_compiler_static_CXX='-non_shared'
13876 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13877 # IBM XL 8.0, 9.0 on PPC and BlueGene
13878 lt_prog_compiler_wl_CXX='-Wl,'
13879 lt_prog_compiler_pic_CXX='-qpic'
13880 lt_prog_compiler_static_CXX='-qstaticlink'
13883 case `$CC -V 2>&1 | sed 5q` in
13886 lt_prog_compiler_pic_CXX='-KPIC'
13887 lt_prog_compiler_static_CXX='-Bstatic'
13888 lt_prog_compiler_wl_CXX='-Qoption ld '
13899 case $cc_basename in
13901 lt_prog_compiler_pic_CXX='-W c,exportall'
13907 netbsd* | netbsdelf*-gnu)
13910 # QNX uses GNU C++, but need to define -shared option too, otherwise
13911 # it will coredump.
13912 lt_prog_compiler_pic_CXX='-fPIC -shared'
13914 osf3* | osf4* | osf5*)
13915 case $cc_basename in
13917 lt_prog_compiler_wl_CXX='--backend -Wl,'
13920 # Rational C++ 2.4.1
13921 lt_prog_compiler_pic_CXX='-pic'
13924 # Digital/Compaq C++
13925 lt_prog_compiler_wl_CXX='-Wl,'
13926 # Make sure the PIC flag is empty. It appears that all Alpha
13927 # Linux and Compaq Tru64 Unix objects are PIC.
13928 lt_prog_compiler_pic_CXX=
13929 lt_prog_compiler_static_CXX='-non_shared'
13938 case $cc_basename in
13940 # Sun C++ 4.2, 5.x and Centerline C++
13941 lt_prog_compiler_pic_CXX='-KPIC'
13942 lt_prog_compiler_static_CXX='-Bstatic'
13943 lt_prog_compiler_wl_CXX='-Qoption ld '
13946 # Green Hills C++ Compiler
13947 lt_prog_compiler_pic_CXX='-PIC'
13954 case $cc_basename in
13957 lt_prog_compiler_pic_CXX='-pic'
13958 lt_prog_compiler_static_CXX='-Bstatic'
13962 lt_prog_compiler_pic_CXX='-pic'
13968 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13969 case $cc_basename in
13971 lt_prog_compiler_wl_CXX='-Wl,'
13972 lt_prog_compiler_pic_CXX='-KPIC'
13973 lt_prog_compiler_static_CXX='-Bstatic'
13978 case $cc_basename in
13980 # NonStop-UX NCC 3.20
13981 lt_prog_compiler_pic_CXX='-KPIC'
13990 lt_prog_compiler_can_build_shared_CXX=no
13996 # For platforms which do not support PIC, -DPIC is meaningless:
13998 lt_prog_compiler_pic_CXX=
14001 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14006 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14007 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14008 $as_echo_n "(cached) " >&6
14010 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14013 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14014 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14017 # Check to make sure the PIC flag actually works.
14019 if test -n "$lt_prog_compiler_pic_CXX"; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14021 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14022 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14023 $as_echo_n "(cached) " >&6
14025 lt_cv_prog_compiler_pic_works_CXX=no
14026 ac_outfile=conftest.$ac_objext
14027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14028 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14029 # Insert the option either (1) after the last *FLAGS variable, or
14030 # (2) before a word containing "conftest.", or (3) at the end.
14031 # Note that $ac_compile itself does not contain backslashes and begins
14032 # with a dollar sign (not a hyphen), so the echo should work correctly.
14033 # The option is referenced via a variable to avoid confusing sed.
14034 lt_compile=`echo "$ac_compile" | $SED \
14035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14037 -e 's:$: $lt_compiler_flag:'`
14038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14039 (eval "$lt_compile" 2>conftest.err)
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 if (exit $ac_status) && test -s "$ac_outfile"; then
14044 # The compiler can only warn and ignore the option if not recognized
14045 # So say no if there are warnings other than the usual output.
14046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14048 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14049 lt_cv_prog_compiler_pic_works_CXX=yes
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14056 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14058 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14059 case $lt_prog_compiler_pic_CXX in
14061 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14064 lt_prog_compiler_pic_CXX=
14065 lt_prog_compiler_can_build_shared_CXX=no
14075 # Check to make sure the static flag actually works.
14077 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14079 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14080 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14081 $as_echo_n "(cached) " >&6
14083 lt_cv_prog_compiler_static_works_CXX=no
14084 save_LDFLAGS="$LDFLAGS"
14085 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14086 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14087 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14088 # The linker can only warn and ignore the option if not recognized
14089 # So say no if there are warnings
14090 if test -s conftest.err; then
14091 # Append any errors to the config.log.
14092 cat conftest.err 1>&5
14093 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14095 if diff conftest.exp conftest.er2 >/dev/null; then
14096 lt_cv_prog_compiler_static_works_CXX=yes
14099 lt_cv_prog_compiler_static_works_CXX=yes
14103 LDFLAGS="$save_LDFLAGS"
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14107 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14109 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14112 lt_prog_compiler_static_CXX=
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14119 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14120 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14121 $as_echo_n "(cached) " >&6
14123 lt_cv_prog_compiler_c_o_CXX=no
14124 $RM -r conftest 2>/dev/null
14128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14130 lt_compiler_flag="-o out/conftest2.$ac_objext"
14131 # Insert the option either (1) after the last *FLAGS variable, or
14132 # (2) before a word containing "conftest.", or (3) at the end.
14133 # Note that $ac_compile itself does not contain backslashes and begins
14134 # with a dollar sign (not a hyphen), so the echo should work correctly.
14135 lt_compile=`echo "$ac_compile" | $SED \
14136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14138 -e 's:$: $lt_compiler_flag:'`
14139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14140 (eval "$lt_compile" 2>out/conftest.err)
14142 cat out/conftest.err >&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14146 # The compiler can only warn and ignore the option if not recognized
14147 # So say no if there are warnings
14148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14151 lt_cv_prog_compiler_c_o_CXX=yes
14156 # SGI C++ compiler will create directory out/ii_files/ for
14157 # template instantiation
14158 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14159 $RM out/* && rmdir out
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14166 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14171 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14172 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14173 $as_echo_n "(cached) " >&6
14175 lt_cv_prog_compiler_c_o_CXX=no
14176 $RM -r conftest 2>/dev/null
14180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14182 lt_compiler_flag="-o out/conftest2.$ac_objext"
14183 # Insert the option either (1) after the last *FLAGS variable, or
14184 # (2) before a word containing "conftest.", or (3) at the end.
14185 # Note that $ac_compile itself does not contain backslashes and begins
14186 # with a dollar sign (not a hyphen), so the echo should work correctly.
14187 lt_compile=`echo "$ac_compile" | $SED \
14188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14190 -e 's:$: $lt_compiler_flag:'`
14191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14192 (eval "$lt_compile" 2>out/conftest.err)
14194 cat out/conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14198 # The compiler can only warn and ignore the option if not recognized
14199 # So say no if there are warnings
14200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14201 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14202 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14203 lt_cv_prog_compiler_c_o_CXX=yes
14208 # SGI C++ compiler will create directory out/ii_files/ for
14209 # template instantiation
14210 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14211 $RM out/* && rmdir out
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14218 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14223 hard_links="nottested"
14224 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14225 # do not overwrite the value of need_locks provided by the user
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14227 $as_echo_n "checking if we can lock with hard links... " >&6; }
14230 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14232 ln conftest.a conftest.b 2>&5 || hard_links=no
14233 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14235 $as_echo "$hard_links" >&6; }
14236 if test "$hard_links" = no; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14238 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14248 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14250 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14251 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14254 # If we're using GNU nm, then we don't want the "-C" option.
14255 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14256 # Also, AIX nm treats weak defined symbols like other global defined
14257 # symbols, whereas GNU nm marks them as "W".
14258 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14259 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'
14261 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'
14265 export_symbols_cmds_CXX="$ltdll_cmds"
14267 cygwin* | mingw* | cegcc*)
14268 case $cc_basename in
14270 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14273 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'
14274 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14278 linux* | k*bsd*-gnu | gnu*)
14279 link_all_deplibs_CXX=no
14282 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14287 $as_echo "$ld_shlibs_CXX" >&6; }
14288 test "$ld_shlibs_CXX" = no && can_build_shared=no
14290 with_gnu_ld_CXX=$with_gnu_ld
14298 # Do we need to explicitly link libc?
14300 case "x$archive_cmds_need_lc_CXX" in
14302 # Assume -lc should be added
14303 archive_cmds_need_lc_CXX=yes
14305 if test "$enable_shared" = yes && test "$GCC" = yes; then
14306 case $archive_cmds_CXX in
14308 # FIXME: we may have to deal with multi-command sequences.
14311 # Test whether the compiler implicitly links with -lc since on some
14312 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14313 # to ld, don't add -lc before -lgcc.
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14315 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14316 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14317 $as_echo_n "(cached) " >&6
14320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14323 (eval $ac_compile) 2>&5
14325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14326 test $ac_status = 0; } 2>conftest.err; then
14329 libobjs=conftest.$ac_objext
14331 wl=$lt_prog_compiler_wl_CXX
14332 pic_flag=$lt_prog_compiler_pic_CXX
14338 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14339 allow_undefined_flag_CXX=
14340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14341 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14344 test $ac_status = 0; }
14346 lt_cv_archive_cmds_need_lc_CXX=no
14348 lt_cv_archive_cmds_need_lc_CXX=yes
14350 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14352 cat conftest.err 1>&5
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14358 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14359 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14428 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14430 library_names_spec=
14431 libname_spec='lib$name'
14435 postuninstall_cmds=
14439 shlibpath_overrides_runpath=unknown
14441 dynamic_linker="$host_os ld.so"
14442 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14443 need_lib_prefix=unknown
14444 hardcode_into_libs=no
14446 # when you set need_version to no, make sure it does not cause -set_version
14447 # flags to be left without arguments
14448 need_version=unknown
14452 version_type=linux # correct to gnu/linux during the next big refactor
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14454 shlibpath_var=LIBPATH
14456 # AIX 3 has no versioning support, so we append a major version to the name.
14457 soname_spec='${libname}${release}${shared_ext}$major'
14461 version_type=linux # correct to gnu/linux during the next big refactor
14464 hardcode_into_libs=yes
14465 if test "$host_cpu" = ia64; then
14466 # AIX 5 supports IA64
14467 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14468 shlibpath_var=LD_LIBRARY_PATH
14470 # With GCC up to 2.95.x, collect2 would create an import file
14471 # for dependence libraries. The import file would start with
14472 # the line `#! .'. This would cause the generated library to
14473 # depend on `.', always an invalid library. This was fixed in
14474 # development snapshots of GCC prior to 3.0.
14476 aix4 | aix4.[01] | aix4.[01].*)
14477 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14479 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14482 can_build_shared=no
14486 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14487 # soname into executable. Probably we can add versioning support to
14488 # collect2, so additional links can be useful in future.
14489 if test "$aix_use_runtimelinking" = yes; then
14490 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14491 # instead of lib<name>.a to let people know that these are not
14492 # typical AIX shared libraries.
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495 # We preserve .a as extension for shared libraries through AIX4.2
14496 # and later when we are not doing run time linking.
14497 library_names_spec='${libname}${release}.a $libname.a'
14498 soname_spec='${libname}${release}${shared_ext}$major'
14500 shlibpath_var=LIBPATH
14507 # Since July 2007 AmigaOS4 officially supports .so libraries.
14508 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512 library_names_spec='$libname.ixlibrary $libname.a'
14513 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14514 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'
14520 library_names_spec='${libname}${shared_ext}'
14521 dynamic_linker="$host_os ld.so"
14522 shlibpath_var=LIBRARY_PATH
14526 version_type=linux # correct to gnu/linux during the next big refactor
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 $libdir'
14531 shlibpath_var=LD_LIBRARY_PATH
14532 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14533 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14534 # the default ld.so.conf also contains /usr/contrib/lib and
14535 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14536 # libtool to hard-code these into programs
14539 cygwin* | mingw* | pw32* | cegcc*)
14540 version_type=windows
14545 case $GCC,$cc_basename in
14548 library_names_spec='$libname.dll.a'
14549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14550 postinstall_cmds='base_file=`basename \${file}`~
14551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14552 dldir=$destdir/`dirname \$dlpath`~
14553 test -d \$dldir || mkdir -p \$dldir~
14554 $install_prog $dir/$dlname \$dldir/$dlname~
14555 chmod a+x \$dldir/$dlname~
14556 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14557 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14559 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14560 dlpath=$dir/\$dldll~
14562 shlibpath_overrides_runpath=yes
14566 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14567 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14571 # MinGW DLLs use traditional 'lib' prefix
14572 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14575 # pw32 DLLs use 'pw' prefix rather than 'lib'
14576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14579 dynamic_linker='Win32 ld.exe'
14584 libname_spec='$name'
14585 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14586 library_names_spec='${libname}.dll.lib'
14590 sys_lib_search_path_spec=
14593 for lt_path in $LIB
14596 # Let DOS variable expansion print the short 8.3 style file name.
14597 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14598 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14601 # Convert to MSYS style.
14602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14605 # Convert to unix form, then to dos form, then back to unix form
14606 # but this time dos style (no spaces!) so that the unix form looks
14607 # like /cygdrive/c/PROGRA~1:/cygdr...
14608 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14609 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14610 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14613 sys_lib_search_path_spec="$LIB"
14614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14615 # It is most probably a Windows format PATH.
14616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14620 # FIXME: find the short name or the path components, as spaces are
14621 # common. (e.g. "Program Files" -> "PROGRA~1")
14625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14626 postinstall_cmds='base_file=`basename \${file}`~
14627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14628 dldir=$destdir/`dirname \$dlpath`~
14629 test -d \$dldir || mkdir -p \$dldir~
14630 $install_prog $dir/$dlname \$dldir/$dlname'
14631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14632 dlpath=$dir/\$dldll~
14634 shlibpath_overrides_runpath=yes
14635 dynamic_linker='Win32 link.exe'
14639 # Assume MSVC wrapper
14640 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14641 dynamic_linker='Win32 ld.exe'
14644 # FIXME: first we should search . and the directory the executable is in
14648 darwin* | rhapsody*)
14649 dynamic_linker="$host_os dyld"
14650 version_type=darwin
14653 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14654 soname_spec='${libname}${release}${major}$shared_ext'
14655 shlibpath_overrides_runpath=yes
14656 shlibpath_var=DYLD_LIBRARY_PATH
14657 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14663 version_type=linux # correct to gnu/linux during the next big refactor
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14667 soname_spec='${libname}${release}${shared_ext}$major'
14668 shlibpath_var=LD_LIBRARY_PATH
14671 freebsd* | dragonfly*)
14672 # DragonFly does not have aout. When/if they implement a new
14673 # versioning mechanism, adjust this.
14674 if test -x /usr/bin/objformat; then
14675 objformat=`/usr/bin/objformat`
14678 freebsd[23].*) objformat=aout ;;
14679 *) objformat=elf ;;
14682 version_type=freebsd-$objformat
14683 case $version_type in
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14694 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=yes
14699 freebsd3.[01]* | freebsdelf3.[01]*)
14700 shlibpath_overrides_runpath=yes
14701 hardcode_into_libs=yes
14703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14705 shlibpath_overrides_runpath=no
14706 hardcode_into_libs=yes
14708 *) # from 4.6 on, and DragonFly
14709 shlibpath_overrides_runpath=yes
14710 hardcode_into_libs=yes
14716 version_type=linux # correct to gnu/linux during the next big refactor
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=no
14723 hardcode_into_libs=yes
14727 version_type=linux # correct to gnu/linux during the next big refactor
14730 dynamic_linker="$host_os runtime_loader"
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14732 soname_spec='${libname}${release}${shared_ext}$major'
14733 shlibpath_var=LIBRARY_PATH
14734 shlibpath_overrides_runpath=yes
14735 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14736 hardcode_into_libs=yes
14739 hpux9* | hpux10* | hpux11*)
14740 # Give a soname corresponding to the major version so that dld.sl refuses to
14741 # link against other versions.
14748 hardcode_into_libs=yes
14749 dynamic_linker="$host_os dld.so"
14750 shlibpath_var=LD_LIBRARY_PATH
14751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 if test "X$HPUX_IA64_MODE" = X32; then
14755 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14757 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14763 hardcode_into_libs=yes
14764 dynamic_linker="$host_os dld.sl"
14765 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14774 dynamic_linker="$host_os dld.sl"
14775 shlibpath_var=SHLIB_PATH
14776 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778 soname_spec='${libname}${release}${shared_ext}$major'
14781 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14782 postinstall_cmds='chmod 555 $lib'
14783 # or fails outright, so override atomically:
14784 install_override_mode=555
14788 version_type=linux # correct to gnu/linux during the next big refactor
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14794 shlibpath_var=LD_LIBRARY_PATH
14795 shlibpath_overrides_runpath=no
14796 hardcode_into_libs=yes
14799 irix5* | irix6* | nonstopux*)
14801 nonstopux*) version_type=nonstopux ;;
14803 if test "$lt_cv_prog_gnu_ld" = yes; then
14804 version_type=linux # correct to gnu/linux during the next big refactor
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14814 irix5* | nonstopux*)
14815 libsuff= shlibsuff=
14818 case $LD in # libtool.m4 will add one of these switches to LD
14819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14820 libsuff= shlibsuff= libmagic=32-bit;;
14821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14822 libsuff=32 shlibsuff=N32 libmagic=N32;;
14823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14825 *) libsuff= shlibsuff= libmagic=never-match;;
14829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14830 shlibpath_overrides_runpath=no
14831 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14832 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14833 hardcode_into_libs=yes
14836 # No shared lib support for Linux oldld, aout, or coff.
14837 linux*oldld* | linux*aout* | linux*coff*)
14841 # This must be glibc/ELF.
14842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14843 version_type=linux # correct to gnu/linux during the next big refactor
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14849 shlibpath_var=LD_LIBRARY_PATH
14850 shlibpath_overrides_runpath=no
14852 # Some binutils ld are patched to set DT_RUNPATH
14853 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14854 $as_echo_n "(cached) " >&6
14856 lt_cv_shlibpath_overrides_runpath=no
14857 save_LDFLAGS=$LDFLAGS
14858 save_libdir=$libdir
14859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14872 if ac_fn_cxx_try_link "$LINENO"; then :
14873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14874 lt_cv_shlibpath_overrides_runpath=yes
14877 rm -f core conftest.err conftest.$ac_objext \
14878 conftest$ac_exeext conftest.$ac_ext
14879 LDFLAGS=$save_LDFLAGS
14880 libdir=$save_libdir
14884 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14886 # This implies no fast_install, which is unacceptable.
14887 # Some rework will be needed to allow for fast_install
14888 # before this can be enabled.
14889 hardcode_into_libs=yes
14891 # Append ld.so.conf contents to the search path
14892 if test -f /etc/ld.so.conf; then
14893 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' ' '`
14894 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14897 # We used to test for /lib/ld.so.1 and disable shared libraries on
14898 # powerpc, because MkLinux only supported shared libraries with the
14899 # GNU dynamic linker. Since this was broken with cross compilers,
14900 # most powerpc-linux boxes support dynamic linking these days and
14901 # people can always --disable-shared, the test was removed, and we
14902 # assume the GNU/Linux dynamic linker is in use.
14903 dynamic_linker='GNU/Linux ld.so'
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 shlibpath_var=LD_LIBRARY_PATH
14913 shlibpath_overrides_runpath=no
14914 hardcode_into_libs=yes
14915 dynamic_linker='NetBSD ld.elf_so'
14922 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14925 dynamic_linker='NetBSD (a.out) ld.so'
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14928 soname_spec='${libname}${release}${shared_ext}$major'
14929 dynamic_linker='NetBSD ld.elf_so'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=yes
14933 hardcode_into_libs=yes
14937 version_type=linux # correct to gnu/linux during the next big refactor
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=yes
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 soname_spec='${libname}${release}${shared_ext}$major'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 shlibpath_overrides_runpath=no
14951 hardcode_into_libs=yes
14952 dynamic_linker='ldqnx.so'
14957 sys_lib_dlsearch_path_spec="/usr/lib"
14959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14962 *) need_version=no ;;
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14969 openbsd2.[89] | openbsd2.[89].*)
14970 shlibpath_overrides_runpath=no
14973 shlibpath_overrides_runpath=yes
14977 shlibpath_overrides_runpath=yes
14982 libname_spec='$name'
14985 library_names_spec='$libname${shared_ext} $libname.a'
14986 dynamic_linker='OS/2 ld.exe'
14987 shlibpath_var=LIBPATH
14990 osf3* | osf4* | osf5*)
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996 shlibpath_var=LD_LIBRARY_PATH
14997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15006 version_type=linux # correct to gnu/linux during the next big refactor
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010 soname_spec='${libname}${release}${shared_ext}$major'
15011 shlibpath_var=LD_LIBRARY_PATH
15012 shlibpath_overrides_runpath=yes
15013 hardcode_into_libs=yes
15014 # ldd complains unless libraries are executable
15015 postinstall_cmds='chmod +x $lib'
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15022 shlibpath_var=LD_LIBRARY_PATH
15023 shlibpath_overrides_runpath=yes
15024 if test "$with_gnu_ld" = yes; then
15031 version_type=linux # correct to gnu/linux during the next big refactor
15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15033 soname_spec='${libname}${release}${shared_ext}$major'
15034 shlibpath_var=LD_LIBRARY_PATH
15035 case $host_vendor in
15037 shlibpath_overrides_runpath=no
15039 runpath_var=LD_RUN_PATH
15047 shlibpath_overrides_runpath=no
15048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15054 if test -d /usr/nec ;then
15055 version_type=linux # correct to gnu/linux during the next big refactor
15056 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15057 soname_spec='$libname${shared_ext}.$major'
15058 shlibpath_var=LD_LIBRARY_PATH
15062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15063 version_type=freebsd-elf
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15067 soname_spec='${libname}${release}${shared_ext}$major'
15068 shlibpath_var=LD_LIBRARY_PATH
15069 shlibpath_overrides_runpath=yes
15070 hardcode_into_libs=yes
15071 if test "$with_gnu_ld" = yes; then
15072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15081 sys_lib_dlsearch_path_spec='/usr/lib'
15085 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15086 version_type=linux # correct to gnu/linux during the next big refactor
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 shlibpath_var=LD_LIBRARY_PATH
15091 shlibpath_overrides_runpath=no
15092 hardcode_into_libs=yes
15096 version_type=linux # correct to gnu/linux during the next big refactor
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098 soname_spec='${libname}${release}${shared_ext}$major'
15099 shlibpath_var=LD_LIBRARY_PATH
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15107 $as_echo "$dynamic_linker" >&6; }
15108 test "$dynamic_linker" = no && can_build_shared=no
15110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15111 if test "$GCC" = yes; then
15112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15115 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15116 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15118 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15119 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15160 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15161 hardcode_action_CXX=
15162 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15163 test -n "$runpath_var_CXX" ||
15164 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15166 # We can hardcode non-existent directories.
15167 if test "$hardcode_direct_CXX" != no &&
15168 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15169 # have to relink, otherwise we might link with an installed library
15170 # when we should be linking with a yet-to-be-installed one
15171 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15172 test "$hardcode_minus_L_CXX" != no; then
15173 # Linking always hardcodes the temporary library directory.
15174 hardcode_action_CXX=relink
15176 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15177 hardcode_action_CXX=immediate
15180 # We cannot hardcode anything, or else we can only hardcode existing
15182 hardcode_action_CXX=unsupported
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15185 $as_echo "$hardcode_action_CXX" >&6; }
15187 if test "$hardcode_action_CXX" = relink ||
15188 test "$inherit_rpath_CXX" = yes; then
15189 # Fast installation is not supported
15190 enable_fast_install=no
15191 elif test "$shlibpath_overrides_runpath" = yes ||
15192 test "$enable_shared" = no; then
15193 # Fast installation is not necessary
15194 enable_fast_install=needless
15203 fi # test -n "$compiler"
15206 CFLAGS=$lt_save_CFLAGS
15210 with_gnu_ld=$lt_save_with_gnu_ld
15211 lt_cv_path_LDCXX=$lt_cv_path_LD
15212 lt_cv_path_LD=$lt_save_path_LD
15213 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15214 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15215 fi # test "$_lt_caught_CXX_error" != yes
15218 ac_cpp='$CPP $CPPFLAGS'
15219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15237 ac_config_commands="$ac_config_commands libtool"
15242 # Only expand once:
15253 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15254 if test -n "$ac_tool_prefix"; then
15255 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15256 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15258 $as_echo_n "checking for $ac_word... " >&6; }
15259 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15260 $as_echo_n "(cached) " >&6
15262 case $PKG_CONFIG in
15264 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15268 for as_dir in $PATH
15271 test -z "$as_dir" && as_dir=.
15272 for ac_exec_ext in '' $ac_executable_extensions; do
15273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15274 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15285 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15286 if test -n "$PKG_CONFIG"; then
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15288 $as_echo "$PKG_CONFIG" >&6; }
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15291 $as_echo "no" >&6; }
15296 if test -z "$ac_cv_path_PKG_CONFIG"; then
15297 ac_pt_PKG_CONFIG=$PKG_CONFIG
15298 # Extract the first word of "pkg-config", so it can be a program name with args.
15299 set dummy pkg-config; ac_word=$2
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15301 $as_echo_n "checking for $ac_word... " >&6; }
15302 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15303 $as_echo_n "(cached) " >&6
15305 case $ac_pt_PKG_CONFIG in
15307 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15311 for as_dir in $PATH
15314 test -z "$as_dir" && as_dir=.
15315 for ac_exec_ext in '' $ac_executable_extensions; do
15316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15317 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15328 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15329 if test -n "$ac_pt_PKG_CONFIG"; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15331 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334 $as_echo "no" >&6; }
15337 if test "x$ac_pt_PKG_CONFIG" = x; then
15340 case $cross_compiling:$ac_tool_warned in
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15344 ac_tool_warned=yes ;;
15346 PKG_CONFIG=$ac_pt_PKG_CONFIG
15349 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15353 if test -n "$PKG_CONFIG"; then
15354 _pkg_min_version=0.9.0
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15356 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15357 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15359 $as_echo "yes" >&6; }
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15362 $as_echo "no" >&6; }
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGRE" >&5
15369 $as_echo_n "checking for OGRE... " >&6; }
15371 if test -n "$OGRE_CFLAGS"; then
15372 pkg_cv_OGRE_CFLAGS="$OGRE_CFLAGS"
15373 elif test -n "$PKG_CONFIG"; then
15374 if test -n "$PKG_CONFIG" && \
15375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OGRE >= 1.4.0\""; } >&5
15376 ($PKG_CONFIG --exists --print-errors "OGRE >= 1.4.0") 2>&5
15378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15379 test $ac_status = 0; }; then
15380 pkg_cv_OGRE_CFLAGS=`$PKG_CONFIG --cflags "OGRE >= 1.4.0" 2>/dev/null`
15381 test "x$?" != "x0" && pkg_failed=yes
15388 if test -n "$OGRE_LIBS"; then
15389 pkg_cv_OGRE_LIBS="$OGRE_LIBS"
15390 elif test -n "$PKG_CONFIG"; then
15391 if test -n "$PKG_CONFIG" && \
15392 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OGRE >= 1.4.0\""; } >&5
15393 ($PKG_CONFIG --exists --print-errors "OGRE >= 1.4.0") 2>&5
15395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15396 test $ac_status = 0; }; then
15397 pkg_cv_OGRE_LIBS=`$PKG_CONFIG --libs "OGRE >= 1.4.0" 2>/dev/null`
15398 test "x$?" != "x0" && pkg_failed=yes
15408 if test $pkg_failed = yes; then
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15410 $as_echo "no" >&6; }
15412 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15413 _pkg_short_errors_supported=yes
15415 _pkg_short_errors_supported=no
15417 if test $_pkg_short_errors_supported = yes; then
15418 OGRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OGRE >= 1.4.0" 2>&1`
15420 OGRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OGRE >= 1.4.0" 2>&1`
15422 # Put the nasty error message in config.log where it belongs
15423 echo "$OGRE_PKG_ERRORS" >&5
15425 as_fn_error $? "OGRE is required to compile OgreBullet" "$LINENO" 5
15426 elif test $pkg_failed = untried; then
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15428 $as_echo "no" >&6; }
15429 as_fn_error $? "OGRE is required to compile OgreBullet" "$LINENO" 5
15431 OGRE_CFLAGS=$pkg_cv_OGRE_CFLAGS
15432 OGRE_LIBS=$pkg_cv_OGRE_LIBS
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15434 $as_echo "yes" >&6; }
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bullet" >&5
15443 $as_echo_n "checking for bullet... " >&6; }
15445 if test -n "$bullet_CFLAGS"; then
15446 pkg_cv_bullet_CFLAGS="$bullet_CFLAGS"
15447 elif test -n "$PKG_CONFIG"; then
15448 if test -n "$PKG_CONFIG" && \
15449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bullet >= 2.6.0\""; } >&5
15450 ($PKG_CONFIG --exists --print-errors "bullet >= 2.6.0") 2>&5
15452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15453 test $ac_status = 0; }; then
15454 pkg_cv_bullet_CFLAGS=`$PKG_CONFIG --cflags "bullet >= 2.6.0" 2>/dev/null`
15455 test "x$?" != "x0" && pkg_failed=yes
15462 if test -n "$bullet_LIBS"; then
15463 pkg_cv_bullet_LIBS="$bullet_LIBS"
15464 elif test -n "$PKG_CONFIG"; then
15465 if test -n "$PKG_CONFIG" && \
15466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bullet >= 2.6.0\""; } >&5
15467 ($PKG_CONFIG --exists --print-errors "bullet >= 2.6.0") 2>&5
15469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15470 test $ac_status = 0; }; then
15471 pkg_cv_bullet_LIBS=`$PKG_CONFIG --libs "bullet >= 2.6.0" 2>/dev/null`
15472 test "x$?" != "x0" && pkg_failed=yes
15482 if test $pkg_failed = yes; then
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15484 $as_echo "no" >&6; }
15486 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15487 _pkg_short_errors_supported=yes
15489 _pkg_short_errors_supported=no
15491 if test $_pkg_short_errors_supported = yes; then
15492 bullet_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bullet >= 2.6.0" 2>&1`
15494 bullet_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bullet >= 2.6.0" 2>&1`
15496 # Put the nasty error message in config.log where it belongs
15497 echo "$bullet_PKG_ERRORS" >&5
15499 as_fn_error $? "Bullet is required to compile OgreBullet" "$LINENO" 5
15500 elif test $pkg_failed = untried; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15502 $as_echo "no" >&6; }
15503 as_fn_error $? "Bullet is required to compile OgreBullet" "$LINENO" 5
15505 bullet_CFLAGS=$pkg_cv_bullet_CFLAGS
15506 bullet_LIBS=$pkg_cv_bullet_LIBS
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15508 $as_echo "yes" >&6; }
15514 ac_config_files="$ac_config_files Makefile Collisions/Makefile Collisions/src/Makefile Collisions/include/Makefile Collisions/include/Debug/Makefile Collisions/include/Shapes/Makefile Collisions/include/Utils/Makefile Dynamics/Makefile Dynamics/src/Makefile Dynamics/include/Makefile Dynamics/include/Constraints/Makefile Dynamics/include/Prefab/Makefile OgreBullet.pc"
15517 cat >confcache <<\_ACEOF
15518 # This file is a shell script that caches the results of configure
15519 # tests run on this system so they can be shared between configure
15520 # scripts and configure runs, see configure's option --config-cache.
15521 # It is not useful on other systems. If it contains results you don't
15522 # want to keep, you may remove or edit it.
15524 # config.status only pays attention to the cache file if you give it
15525 # the --recheck option to rerun configure.
15527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15529 # following values.
15533 # The following way of writing the cache mishandles newlines in values,
15534 # but we know of no workaround that is simple, portable, and efficient.
15535 # So, we kill variables containing newlines.
15536 # Ultrix sh set writes to stderr and can't be redirected directly,
15537 # and sets the high bit in the cache file unless we assign to the vars.
15539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15540 eval ac_val=\$$ac_var
15544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15548 _ | IFS | as_nl) ;; #(
15549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15550 *) { eval $ac_var=; unset $ac_var;} ;;
15556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15557 *${as_nl}ac_space=\ *)
15558 # `set' does not quote correctly, so add quotes: double-quote
15559 # substitution turns \\\\ into \\, and sed turns \\ into \.
15562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15565 # `set' quotes correctly as required by POSIX, so do not add quotes.
15566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15580 if test -w "$cache_file"; then
15581 if test "x$cache_file" != "x/dev/null"; then
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15583 $as_echo "$as_me: updating cache $cache_file" >&6;}
15584 if test ! -f "$cache_file" || test -h "$cache_file"; then
15585 cat confcache >"$cache_file"
15587 case $cache_file in #(
15589 mv -f confcache "$cache_file"$$ &&
15590 mv -f "$cache_file"$$ "$cache_file" ;; #(
15592 mv -f confcache "$cache_file" ;;
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15598 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15603 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15604 # Let make expand exec_prefix.
15605 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15607 DEFS=-DHAVE_CONFIG_H
15612 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15613 # 1. Remove the extension, and $U if already installed.
15614 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15615 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15616 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15617 # will be set to the directory where LIBOBJS objects are built.
15618 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15619 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15621 LIBOBJS=$ac_libobjs
15623 LTLIBOBJS=$ac_ltlibobjs
15626 if test -n "$EXEEXT"; then
15628 am__EXEEXT_FALSE='#'
15630 am__EXEEXT_TRUE='#'
15634 if test -n "$EXEEXT"; then
15636 am__EXEEXT_FALSE='#'
15638 am__EXEEXT_TRUE='#'
15642 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15643 as_fn_error $? "conditional \"AMDEP\" was never defined.
15644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15647 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15651 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15655 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15659 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 : "${CONFIG_STATUS=./config.status}"
15665 ac_clean_files_save=$ac_clean_files
15666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15668 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15670 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15672 # Generated by $as_me.
15673 # Run this file to recreate the current configuration.
15674 # Compiler output produced by configure, useful for debugging
15675 # configure, is in config.log if it exists.
15678 ac_cs_recheck=false
15681 SHELL=\${CONFIG_SHELL-$SHELL}
15684 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15685 ## -------------------- ##
15686 ## M4sh Initialization. ##
15687 ## -------------------- ##
15689 # Be more Bourne compatible
15690 DUALCASE=1; export DUALCASE # for MKS sh
15691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15695 # is contrary to our usage. Disable this feature.
15696 alias -g '${1+"$@"}'='"$@"'
15697 setopt NO_GLOB_SUBST
15699 case `(set -o) 2>/dev/null` in #(
15711 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15712 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15715 # Prefer a ksh shell builtin over an external printf program on Solaris,
15716 # but without wasting forks for bash or zsh.
15717 if test -z "$BASH_VERSION$ZSH_VERSION" \
15718 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15719 as_echo='print -r --'
15720 as_echo_n='print -rn --'
15721 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15722 as_echo='printf %s\n'
15723 as_echo_n='printf %s'
15725 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15726 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15727 as_echo_n='/usr/ucb/echo -n'
15729 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15730 as_echo_n_body='eval
15734 expr "X$arg" : "X\\(.*\\)$as_nl";
15735 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15737 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15739 export as_echo_n_body
15740 as_echo_n='sh -c $as_echo_n_body as_echo'
15742 export as_echo_body
15743 as_echo='sh -c $as_echo_body as_echo'
15746 # The user is always right.
15747 if test "${PATH_SEPARATOR+set}" != set; then
15749 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15750 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15757 # We need space, tab and new line, in precisely that order. Quoting is
15758 # there to prevent editors from complaining about space-tab.
15759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15760 # splitting by setting IFS to empty value.)
15763 # Find who we are. Look in the path if we contain no directory separator.
15766 *[\\/]* ) as_myself=$0 ;;
15767 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15768 for as_dir in $PATH
15771 test -z "$as_dir" && as_dir=.
15772 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15778 # We did not find ourselves, most probably we were run as `sh COMMAND'
15779 # in which case we are not to be found in the path.
15780 if test "x$as_myself" = x; then
15783 if test ! -f "$as_myself"; then
15784 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15788 # Unset variables that we do not need and which cause bugs (e.g. in
15789 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15790 # suppresses any "Segmentation fault" message there. '((' could
15791 # trigger a bug in pdksh 5.2.14.
15792 for as_var in BASH_ENV ENV MAIL MAILPATH
15793 do eval test x\${$as_var+set} = xset \
15794 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15807 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15810 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15811 # ----------------------------------------
15812 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15813 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15814 # script with STATUS, using 1 if that was 0.
15817 as_status=$1; test $as_status -eq 0 && as_status=1
15819 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15820 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15822 $as_echo "$as_me: error: $2" >&2
15823 as_fn_exit $as_status
15827 # as_fn_set_status STATUS
15828 # -----------------------
15829 # Set $? to STATUS, without forking.
15830 as_fn_set_status ()
15833 } # as_fn_set_status
15835 # as_fn_exit STATUS
15836 # -----------------
15837 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15841 as_fn_set_status $1
15847 # Portably unset VAR.
15850 { eval $1=; unset $1;}
15852 as_unset=as_fn_unset
15853 # as_fn_append VAR VALUE
15854 # ----------------------
15855 # Append the text in VALUE to the end of the definition contained in VAR. Take
15856 # advantage of any shell optimizations that allow amortized linear growth over
15857 # repeated appends, instead of the typical quadratic growth present in naive
15859 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15860 eval 'as_fn_append ()
15871 # as_fn_arith ARG...
15872 # ------------------
15873 # Perform arithmetic evaluation on the ARGs, and store the result in the
15874 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15875 # must be portable across $(()) and expr.
15876 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15877 eval 'as_fn_arith ()
15884 as_val=`expr "$@" || test $? -eq 1`
15889 if expr a : '\(a\)' >/dev/null 2>&1 &&
15890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15896 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15897 as_basename=basename
15902 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15908 as_me=`$as_basename -- "$0" ||
15909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15910 X"$0" : 'X\(//\)$' \| \
15911 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15913 sed '/^.*\/\([^/][^/]*\)\/*$/{
15927 # Avoid depending upon Character Ranges.
15928 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15929 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15930 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15931 as_cr_digits='0123456789'
15932 as_cr_alnum=$as_cr_Letters$as_cr_digits
15934 ECHO_C= ECHO_N= ECHO_T=
15935 case `echo -n x` in #(((((
15937 case `echo 'xy\c'` in
15938 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15940 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15947 rm -f conf$$ conf$$.exe conf$$.file
15948 if test -d conf$$.dir; then
15949 rm -f conf$$.dir/conf$$.file
15952 mkdir conf$$.dir 2>/dev/null
15954 if (echo >conf$$.file) 2>/dev/null; then
15955 if ln -s conf$$.file conf$$ 2>/dev/null; then
15957 # ... but there are two gotchas:
15958 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15959 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15960 # In both cases, we have to default to `cp -p'.
15961 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15963 elif ln conf$$.file conf$$ 2>/dev/null; then
15971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15972 rmdir conf$$.dir 2>/dev/null
15977 # Create "$as_dir" as a directory, including parents if necessary.
15982 -*) as_dir=./$as_dir;;
15984 test -d "$as_dir" || eval $as_mkdir_p || {
15988 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15989 *) as_qdir=$as_dir;;
15991 as_dirs="'$as_qdir' $as_dirs"
15992 as_dir=`$as_dirname -- "$as_dir" ||
15993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15994 X"$as_dir" : 'X\(//\)[^/]' \| \
15995 X"$as_dir" : 'X\(//\)$' \| \
15996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15997 $as_echo X"$as_dir" |
15998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16002 /^X\(\/\/\)[^/].*/{
16015 test -d "$as_dir" && break
16017 test -z "$as_dirs" || eval "mkdir $as_dirs"
16018 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16022 if mkdir -p . 2>/dev/null; then
16023 as_mkdir_p='mkdir -p "$as_dir"'
16025 test -d ./-p && rmdir ./-p
16029 if test -x / >/dev/null 2>&1; then
16030 as_test_x='test -x'
16032 if ls -dL / >/dev/null 2>&1; then
16039 if test -d "$1"; then
16045 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16046 ???[sx]*):;;*)false;;esac;fi
16050 as_executable_p=$as_test_x
16052 # Sed expression to map a string onto a valid CPP name.
16053 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16055 # Sed expression to map a string onto a valid variable name.
16056 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16060 ## ----------------------------------- ##
16061 ## Main body of $CONFIG_STATUS script. ##
16062 ## ----------------------------------- ##
16064 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16067 # Save the log message, to keep $0 and so on meaningful, and to
16068 # report actual input values of CONFIG_FILES etc. instead of their
16069 # values after options handling.
16071 This file was extended by OgreBullet $as_me 0.2, which was
16072 generated by GNU Autoconf 2.68. Invocation command line was
16074 CONFIG_FILES = $CONFIG_FILES
16075 CONFIG_HEADERS = $CONFIG_HEADERS
16076 CONFIG_LINKS = $CONFIG_LINKS
16077 CONFIG_COMMANDS = $CONFIG_COMMANDS
16080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16085 case $ac_config_files in *"
16086 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16089 case $ac_config_headers in *"
16090 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16095 # Files that config.status was made for.
16096 config_files="$ac_config_files"
16097 config_headers="$ac_config_headers"
16098 config_commands="$ac_config_commands"
16102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16104 \`$as_me' instantiates files and other configuration actions
16105 from templates according to the current configuration. Unless the files
16106 and actions are specified as TAGs, all are instantiated by default.
16108 Usage: $0 [OPTION]... [TAG]...
16110 -h, --help print this help, then exit
16111 -V, --version print version number and configuration settings, then exit
16112 --config print configuration, then exit
16113 -q, --quiet, --silent
16114 do not print progress messages
16115 -d, --debug don't remove temporary files
16116 --recheck update $as_me by reconfiguring in the same conditions
16117 --file=FILE[:TEMPLATE]
16118 instantiate the configuration file FILE
16119 --header=FILE[:TEMPLATE]
16120 instantiate the configuration header FILE
16122 Configuration files:
16125 Configuration headers:
16128 Configuration commands:
16131 Report bugs to the package provider."
16134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16137 OgreBullet config.status 0.2
16138 configured by $0, generated by GNU Autoconf 2.68,
16139 with options \\"\$ac_cs_config\\"
16141 Copyright (C) 2010 Free Software Foundation, Inc.
16142 This config.status script is free software; the Free Software Foundation
16143 gives unlimited permission to copy, distribute and modify it."
16150 test -n "\$AWK" || AWK=awk
16153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16154 # The default lists apply if the user does not specify any file.
16160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16161 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16177 # Handling of the options.
16178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16180 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16181 $as_echo "$ac_cs_version"; exit ;;
16182 --config | --confi | --conf | --con | --co | --c )
16183 $as_echo "$ac_cs_config"; exit ;;
16184 --debug | --debu | --deb | --de | --d | -d )
16186 --file | --fil | --fi | --f )
16189 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16190 '') as_fn_error $? "missing file argument" ;;
16192 as_fn_append CONFIG_FILES " '$ac_optarg'"
16193 ac_need_defaults=false;;
16194 --header | --heade | --head | --hea )
16197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16199 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16200 ac_need_defaults=false;;
16202 # Conflict between --help and --header
16203 as_fn_error $? "ambiguous option: \`$1'
16204 Try \`$0 --help' for more information.";;
16205 --help | --hel | -h )
16206 $as_echo "$ac_cs_usage"; exit ;;
16207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16211 # This is an error.
16212 -*) as_fn_error $? "unrecognized option: \`$1'
16213 Try \`$0 --help' for more information." ;;
16215 *) as_fn_append ac_config_targets " $1"
16216 ac_need_defaults=false ;;
16222 ac_configure_extra_args=
16224 if $ac_cs_silent; then
16226 ac_configure_extra_args="$ac_configure_extra_args --silent"
16230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16231 if \$ac_cs_recheck; then
16232 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16235 CONFIG_SHELL='$SHELL'
16236 export CONFIG_SHELL
16241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16246 ## Running $as_me. ##
16252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16256 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16259 # The HP-UX ksh and POSIX shell print the target directory to stdout
16260 # if CDPATH is set.
16261 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16263 sed_quote_subst='$sed_quote_subst'
16264 double_quote_subst='$double_quote_subst'
16265 delay_variable_subst='$delay_variable_subst'
16266 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16267 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16268 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16269 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16270 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16271 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16272 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16273 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16274 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16275 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16276 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16277 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16278 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16279 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16280 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16281 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16282 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16283 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16284 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16285 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16286 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16287 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16288 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16289 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16290 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16291 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16292 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16293 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16294 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16295 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16296 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16297 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16298 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16299 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16300 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16301 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16302 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16303 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16304 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16305 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16306 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16307 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16308 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16309 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16310 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16311 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16312 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16313 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16314 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16315 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16316 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16317 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16318 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16319 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16320 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16321 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16322 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"`'
16323 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16324 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16325 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16326 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16327 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16328 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16329 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16330 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16331 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16332 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16333 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16334 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16335 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16336 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16337 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16338 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16339 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16340 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16341 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16342 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16343 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16344 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16345 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16346 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16347 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16348 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16349 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16350 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16351 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16352 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16353 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16354 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16355 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16356 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16357 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16358 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16359 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16360 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16361 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16362 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16363 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16364 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16365 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16366 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16367 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16368 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16369 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16370 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16371 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16372 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16373 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16374 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16375 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16376 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16377 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16378 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16379 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16380 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16381 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16382 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16383 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16384 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16385 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16386 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16387 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16388 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16389 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16390 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16391 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16392 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16393 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16394 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16395 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16396 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16397 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16398 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16399 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16400 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16401 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16402 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16403 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16404 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16405 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16406 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16407 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16408 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16409 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16410 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16411 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16412 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16413 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16414 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16415 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16416 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16417 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16418 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16419 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16420 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16421 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16422 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16423 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16424 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16425 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16426 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16427 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16428 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16429 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16430 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16431 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16432 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16433 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16434 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16435 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16436 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16437 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16438 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16439 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16440 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16441 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16442 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16443 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16444 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16445 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16446 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16447 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16448 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16449 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16452 LTCFLAGS='$LTCFLAGS'
16453 compiler='$compiler_DEFAULT'
16455 # A function that is used when there is no print builtin or printf.
16456 func_fallback_echo ()
16458 eval 'cat <<_LTECHO_EOF
16463 # Quote evaled strings.
16478 deplibs_check_method \
16483 sharedlib_from_linklib_cmd \
16486 archiver_list_spec \
16492 lt_cv_sys_global_symbol_pipe \
16493 lt_cv_sys_global_symbol_to_cdecl \
16494 lt_cv_sys_global_symbol_to_c_name_address \
16495 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16496 nm_file_list_spec \
16497 lt_prog_compiler_no_builtin_flag \
16498 lt_prog_compiler_pic \
16499 lt_prog_compiler_wl \
16500 lt_prog_compiler_static \
16501 lt_cv_prog_compiler_c_o \
16510 export_dynamic_flag_spec \
16511 whole_archive_flag_spec \
16512 compiler_needs_object \
16514 allow_undefined_flag \
16515 no_undefined_flag \
16516 hardcode_libdir_flag_spec \
16517 hardcode_libdir_separator \
16521 variables_saved_for_relink \
16523 library_names_spec \
16525 install_override_mode \
16529 compiler_lib_search_dirs \
16534 compiler_lib_search_path \
16538 lt_prog_compiler_no_builtin_flag_CXX \
16539 lt_prog_compiler_pic_CXX \
16540 lt_prog_compiler_wl_CXX \
16541 lt_prog_compiler_static_CXX \
16542 lt_cv_prog_compiler_c_o_CXX \
16543 export_dynamic_flag_spec_CXX \
16544 whole_archive_flag_spec_CXX \
16545 compiler_needs_object_CXX \
16547 allow_undefined_flag_CXX \
16548 no_undefined_flag_CXX \
16549 hardcode_libdir_flag_spec_CXX \
16550 hardcode_libdir_separator_CXX \
16551 exclude_expsyms_CXX \
16552 include_expsyms_CXX \
16553 file_list_spec_CXX \
16554 compiler_lib_search_dirs_CXX \
16555 predep_objects_CXX \
16556 postdep_objects_CXX \
16559 compiler_lib_search_path_CXX; do
16560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16561 *[\\\\\\\`\\"\\\$]*)
16562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16570 # Double-quote double-evaled strings.
16571 for var in reload_cmds \
16572 old_postinstall_cmds \
16573 old_postuninstall_cmds \
16575 extract_expsyms_cmds \
16576 old_archive_from_new_cmds \
16577 old_archive_from_expsyms_cmds \
16579 archive_expsym_cmds \
16581 module_expsym_cmds \
16582 export_symbols_cmds \
16586 postuninstall_cmds \
16588 sys_lib_search_path_spec \
16589 sys_lib_dlsearch_path_spec \
16591 old_archive_cmds_CXX \
16592 old_archive_from_new_cmds_CXX \
16593 old_archive_from_expsyms_cmds_CXX \
16595 archive_expsym_cmds_CXX \
16597 module_expsym_cmds_CXX \
16598 export_symbols_cmds_CXX \
16600 postlink_cmds_CXX; do
16601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16602 *[\\\\\\\`\\"\\\$]*)
16603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16606 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16611 ac_aux_dir='$ac_aux_dir'
16612 xsi_shell='$xsi_shell'
16613 lt_shell_append='$lt_shell_append'
16615 # See if we are running on zsh, and set the options which allow our
16616 # commands through without removal of \ escapes INIT.
16617 if test -n "\${ZSH_VERSION+set}" ; then
16618 setopt NO_GLOB_SUBST
16624 TIMESTAMP='$TIMESTAMP'
16635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16637 # Handling of arguments.
16638 for ac_config_target in $ac_config_targets
16640 case $ac_config_target in
16641 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16642 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16643 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16644 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16645 "Collisions/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/Makefile" ;;
16646 "Collisions/src/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/src/Makefile" ;;
16647 "Collisions/include/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/include/Makefile" ;;
16648 "Collisions/include/Debug/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/include/Debug/Makefile" ;;
16649 "Collisions/include/Shapes/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/include/Shapes/Makefile" ;;
16650 "Collisions/include/Utils/Makefile") CONFIG_FILES="$CONFIG_FILES Collisions/include/Utils/Makefile" ;;
16651 "Dynamics/Makefile") CONFIG_FILES="$CONFIG_FILES Dynamics/Makefile" ;;
16652 "Dynamics/src/Makefile") CONFIG_FILES="$CONFIG_FILES Dynamics/src/Makefile" ;;
16653 "Dynamics/include/Makefile") CONFIG_FILES="$CONFIG_FILES Dynamics/include/Makefile" ;;
16654 "Dynamics/include/Constraints/Makefile") CONFIG_FILES="$CONFIG_FILES Dynamics/include/Constraints/Makefile" ;;
16655 "Dynamics/include/Prefab/Makefile") CONFIG_FILES="$CONFIG_FILES Dynamics/include/Prefab/Makefile" ;;
16656 "OgreBullet.pc") CONFIG_FILES="$CONFIG_FILES OgreBullet.pc" ;;
16658 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16663 # If the user did not use the arguments to specify the items to instantiate,
16664 # then the envvar interface is used. Set only those that are not.
16665 # We use the long form for the default assignment because of an extremely
16666 # bizarre bug on SunOS 4.1.3.
16667 if $ac_need_defaults; then
16668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16673 # Have a temporary directory for convenience. Make it in the build tree
16674 # simply because there is no reason against having it here, and in addition,
16675 # creating and moving files from /tmp can sometimes cause problems.
16676 # Hook for its removal unless debugging.
16677 # Note that there is a small window in which the directory will not be cleaned:
16678 # after its creation but before its name has been assigned to `$tmp'.
16682 trap 'exit_status=$?
16683 : "${ac_tmp:=$tmp}"
16684 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16686 trap 'as_fn_exit 1' 1 2 13 15
16688 # Create a (secure) tmp directory for tmp files.
16691 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16695 tmp=./conf$$-$RANDOM
16696 (umask 077 && mkdir "$tmp")
16697 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16700 # Set up the scripts for CONFIG_FILES section.
16701 # No need to generate them if there are no CONFIG_FILES.
16702 # This happens for instance with `./config.status config.h'.
16703 if test -n "$CONFIG_FILES"; then
16706 ac_cr=`echo X | tr X '\015'`
16707 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16708 # But we know of no other shell where ac_cr would be empty at this
16709 # point, so we can use a bashism as a fallback.
16710 if test "x$ac_cr" = x; then
16711 eval ac_cr=\$\'\\r\'
16713 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16714 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16717 ac_cs_awk_cr=$ac_cr
16720 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16725 echo "cat >conf$$subs.awk <<_ACEOF" &&
16726 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16728 } >conf$$subs.sh ||
16729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16730 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16732 for ac_last_try in false false false false false :; do
16733 . ./conf$$subs.sh ||
16734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16736 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16737 if test $ac_delim_n = $ac_delim_num; then
16739 elif $ac_last_try; then
16740 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16745 rm -f conf$$subs.sh
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16752 s/^/S["/; s/!.*/"]=/
16762 s/\(.\{148\}\)..*/\1/
16764 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16776 s/\(.\{148\}\)..*/\1/
16778 s/["\\]/\\&/g; s/^/"/; s/$/"/
16782 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16787 ' <conf$$subs.awk | sed '
16792 ' >>$CONFIG_STATUS || ac_write_fail=1
16793 rm -f conf$$subs.awk
16794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16796 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16797 for (key in S) S_is_set[key] = 1
16803 nfields = split(line, field, "@")
16805 len = length(field[1])
16806 for (i = 2; i < nfields; i++) {
16808 keylen = length(key)
16809 if (S_is_set[key]) {
16811 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16812 len += length(value) + length(field[++i])
16823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16824 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16825 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16828 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16829 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16832 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16833 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16834 # trailing colons and then remove the whole line if VPATH becomes empty
16835 # (actually we leave an empty line to preserve line numbers).
16836 if test "x$srcdir" = x.; then
16837 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16856 fi # test -n "$CONFIG_FILES"
16858 # Set up the scripts for CONFIG_HEADERS section.
16859 # No need to generate them if there are no CONFIG_HEADERS.
16860 # This happens for instance with `./config.status Makefile'.
16861 if test -n "$CONFIG_HEADERS"; then
16862 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16866 # Transform confdefs.h into an awk script `defines.awk', embedded as
16867 # here-document in config.status, that substitutes the proper values into
16868 # config.h.in to produce config.h.
16870 # Create a delimiter string that does not exist in confdefs.h, to ease
16871 # handling of long lines.
16873 for ac_last_try in false false :; do
16874 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16875 if test -z "$ac_tt"; then
16877 elif $ac_last_try; then
16878 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16884 # For the awk script, D is an array of macro values keyed by name,
16885 # likewise P contains macro parameters if any. Preserve backslash
16886 # newline sequences.
16888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16890 s/.\{148\}/&'"$ac_delim"'/g
16893 s/^[ ]*#[ ]*define[ ][ ]*/ /
16900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16902 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16907 D["\1"]=" \3\\\\\\n"\\/p
16909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16914 s/.\{148\}/&'"$ac_delim"'/g
16919 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16922 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16924 ' <confdefs.h | sed '
16925 s/'"$ac_delim"'/"\\\
16926 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16929 for (key in D) D_is_set[key] = 1
16932 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16934 split(line, arg, " ")
16935 if (arg[1] == "#") {
16939 defundef = substr(arg[1], 2)
16942 split(mac1, mac2, "(") #)
16944 prefix = substr(line, 1, index(line, defundef) - 1)
16945 if (D_is_set[macro]) {
16946 # Preserve the white space surrounding the "#".
16947 print prefix "define", macro P[macro] D[macro]
16950 # Replace #undef with comments. This is necessary, for example,
16951 # in the case of _POSIX_SOURCE, which is predefined and required
16952 # on some systems where configure will not decide to define it.
16953 if (defundef == "undef") {
16954 print "/*", prefix defundef, macro, "*/"
16962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16963 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16964 fi # test -n "$CONFIG_HEADERS"
16967 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16972 :[FHLC]) ac_mode=$ac_tag; continue;;
16974 case $ac_mode$ac_tag in
16976 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16977 :[FH]-) ac_tag=-:-;;
16978 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16995 -) ac_f="$ac_tmp/stdin";;
16996 *) # Look for the file first in the build tree, then in the source tree
16997 # (if the path is not absolute). The absolute path cannot be DOS-style,
16998 # because $ac_f cannot contain `:'.
17002 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17004 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17007 as_fn_append ac_file_inputs " '$ac_f'"
17010 # Let's still pretend it is `configure' which instantiates (i.e., don't
17011 # use $as_me), people would be surprised to read:
17012 # /* config.h. Generated by config.status. */
17013 configure_input='Generated from '`
17014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17016 if test x"$ac_file" != x-; then
17017 configure_input="$ac_file. $configure_input"
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17019 $as_echo "$as_me: creating $ac_file" >&6;}
17021 # Neutralize special characters interpreted by sed in replacement strings.
17022 case $configure_input in #(
17023 *\&* | *\|* | *\\* )
17024 ac_sed_conf_input=`$as_echo "$configure_input" |
17025 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17026 *) ac_sed_conf_input=$configure_input;;
17030 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17036 ac_dir=`$as_dirname -- "$ac_file" ||
17037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17038 X"$ac_file" : 'X\(//\)[^/]' \| \
17039 X"$ac_file" : 'X\(//\)$' \| \
17040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17041 $as_echo X"$ac_file" |
17042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17046 /^X\(\/\/\)[^/].*/{
17059 as_dir="$ac_dir"; as_fn_mkdir_p
17063 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17066 # A ".." for each directory in $ac_dir_suffix.
17067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17068 case $ac_top_builddir_sub in
17069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17073 ac_abs_top_builddir=$ac_pwd
17074 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17075 # for backward compatibility:
17076 ac_top_builddir=$ac_top_build_prefix
17079 .) # We are building in place.
17081 ac_top_srcdir=$ac_top_builddir_sub
17082 ac_abs_top_srcdir=$ac_pwd ;;
17083 [\\/]* | ?:[\\/]* ) # Absolute name.
17084 ac_srcdir=$srcdir$ac_dir_suffix;
17085 ac_top_srcdir=$srcdir
17086 ac_abs_top_srcdir=$srcdir ;;
17087 *) # Relative name.
17088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17089 ac_top_srcdir=$ac_top_build_prefix$srcdir
17090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17092 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17103 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17105 ac_MKDIR_P=$MKDIR_P
17107 [\\/$]* | ?:[\\/]* ) ;;
17108 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17113 # If the template does not know about datarootdir, expand it.
17114 # FIXME: This hack should be removed a few years after 2.60.
17115 ac_datarootdir_hack=; ac_datarootdir_seen=
17126 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17127 *datarootdir*) ac_datarootdir_seen=yes;;
17128 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17130 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17133 ac_datarootdir_hack='
17134 s&@datadir@&$datadir&g
17135 s&@docdir@&$docdir&g
17136 s&@infodir@&$infodir&g
17137 s&@localedir@&$localedir&g
17138 s&@mandir@&$mandir&g
17139 s&\\\${datarootdir}&$datarootdir&g' ;;
17143 # Neutralize VPATH when `$srcdir' = `.'.
17144 # Shell code in configure.ac might set extrasub.
17145 # FIXME: do we really want to maintain this feature?
17146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17147 ac_sed_extra="$ac_vpsub
17150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17153 s|@configure_input@|$ac_sed_conf_input|;t t
17154 s&@top_builddir@&$ac_top_builddir_sub&;t t
17155 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17156 s&@srcdir@&$ac_srcdir&;t t
17157 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17158 s&@top_srcdir@&$ac_top_srcdir&;t t
17159 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17160 s&@builddir@&$ac_builddir&;t t
17161 s&@abs_builddir@&$ac_abs_builddir&;t t
17162 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17163 s&@INSTALL@&$ac_INSTALL&;t t
17164 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17165 $ac_datarootdir_hack
17167 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17168 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17170 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17171 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17172 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17173 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17175 which seems to be undefined. Please make sure it is defined" >&5
17176 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17177 which seems to be undefined. Please make sure it is defined" >&2;}
17179 rm -f "$ac_tmp/stdin"
17181 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17182 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17190 if test x"$ac_file" != x-; then
17192 $as_echo "/* $configure_input */" \
17193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17194 } >"$ac_tmp/config.h" \
17195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17196 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17198 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17201 mv "$ac_tmp/config.h" "$ac_file" \
17202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17205 $as_echo "/* $configure_input */" \
17206 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17207 || as_fn_error $? "could not create -" "$LINENO" 5
17209 # Compute "$ac_file"'s index in $config_headers.
17212 for _am_header in $config_headers :; do
17213 case $_am_header in
17214 $_am_arg | $_am_arg:* )
17217 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17220 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17221 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17222 X"$_am_arg" : 'X\(//\)[^/]' \| \
17223 X"$_am_arg" : 'X\(//\)$' \| \
17224 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17225 $as_echo X"$_am_arg" |
17226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17230 /^X\(\/\/\)[^/].*/{
17242 s/.*/./; q'`/stamp-h$_am_stamp_count
17245 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17246 $as_echo "$as_me: executing $ac_file commands" >&6;}
17251 case $ac_file$ac_mode in
17252 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17253 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17254 # are listed without --file. Let's play safe and only enable the eval
17255 # if we detect the quoting.
17256 case $CONFIG_FILES in
17257 *\'*) eval set x "$CONFIG_FILES" ;;
17258 *) set x $CONFIG_FILES ;;
17263 # Strip MF so we end up with the name of the file.
17264 mf=`echo "$mf" | sed -e 's/:.*$//'`
17265 # Check whether this is an Automake generated Makefile or not.
17266 # We used to match only the files named `Makefile.in', but
17267 # some people rename them; so instead we look at the file content.
17268 # Grep'ing the first line is not enough: some people post-process
17269 # each Makefile.in and add a new line on top of each file to say so.
17270 # Grep'ing the whole file is not good either: AIX grep has a line
17271 # limit of 2048, but all sed's we know have understand at least 4000.
17272 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17273 dirpart=`$as_dirname -- "$mf" ||
17274 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17275 X"$mf" : 'X\(//\)[^/]' \| \
17276 X"$mf" : 'X\(//\)$' \| \
17277 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17283 /^X\(\/\/\)[^/].*/{
17299 # Extract the definition of DEPDIR, am__include, and am__quote
17300 # from the Makefile without running `make'.
17301 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17302 test -z "$DEPDIR" && continue
17303 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17304 test -z "am__include" && continue
17305 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17306 # When using ansi2knr, U may be empty or an underscore; expand it
17307 U=`sed -n 's/^U = //p' < "$mf"`
17308 # Find all dependency output files, they are included files with
17309 # $(DEPDIR) in their names. We invoke sed twice because it is the
17310 # simplest approach to changing $(DEPDIR) to its actual value in the
17312 for file in `sed -n "
17313 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17314 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17315 # Make sure the directory exists.
17316 test -f "$dirpart/$file" && continue
17317 fdir=`$as_dirname -- "$file" ||
17318 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17319 X"$file" : 'X\(//\)[^/]' \| \
17320 X"$file" : 'X\(//\)$' \| \
17321 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17322 $as_echo X"$file" |
17323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17327 /^X\(\/\/\)[^/].*/{
17340 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17341 # echo "creating $dirpart/$file"
17342 echo '# dummy' > "$dirpart/$file"
17349 # See if we are running on zsh, and set the options which allow our
17350 # commands through without removal of \ escapes.
17351 if test -n "${ZSH_VERSION+set}" ; then
17352 setopt NO_GLOB_SUBST
17355 cfgfile="${ofile}T"
17356 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17359 cat <<_LT_EOF >> "$cfgfile"
17362 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17363 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17364 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17365 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17367 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17368 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17370 # Written by Gordon Matzigkeit, 1996
17372 # This file is part of GNU Libtool.
17374 # GNU Libtool is free software; you can redistribute it and/or
17375 # modify it under the terms of the GNU General Public License as
17376 # published by the Free Software Foundation; either version 2 of
17377 # the License, or (at your option) any later version.
17379 # As a special exception to the GNU General Public License,
17380 # if you distribute this file as part of a program or library that
17381 # is built using GNU Libtool, you may include this file under the
17382 # same distribution terms that you use for the rest of that program.
17384 # GNU Libtool is distributed in the hope that it will be useful,
17385 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17387 # GNU General Public License for more details.
17389 # You should have received a copy of the GNU General Public License
17390 # along with GNU Libtool; see the file COPYING. If not, a copy
17391 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17392 # obtained by writing to the Free Software Foundation, Inc.,
17393 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17396 # The names of the tagged configurations supported by this script.
17397 available_tags="CXX "
17399 # ### BEGIN LIBTOOL CONFIG
17401 # Which release of libtool.m4 was used?
17402 macro_version=$macro_version
17403 macro_revision=$macro_revision
17405 # Whether or not to build shared libraries.
17406 build_libtool_libs=$enable_shared
17408 # Whether or not to build static libraries.
17409 build_old_libs=$enable_static
17411 # What type of objects to build.
17414 # Whether or not to optimize for fast installation.
17415 fast_install=$enable_fast_install
17417 # Shell to use when invoking shell scripts.
17420 # An echo program that protects backslashes.
17423 # The PATH separator for the build system.
17424 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17427 host_alias=$host_alias
17431 # The build system.
17432 build_alias=$build_alias
17436 # A sed program that does not truncate output.
17439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17440 Xsed="\$SED -e 1s/^X//"
17442 # A grep program that handles long lines.
17448 # A literal string matcher.
17451 # A BSD- or MS-compatible name lister.
17454 # Whether we need soft or hard links.
17457 # What is the maximum length of a command?
17458 max_cmd_len=$max_cmd_len
17460 # Object file suffix (normally "o").
17463 # Executable file suffix (normally "").
17466 # whether the shell understands "unset".
17469 # turn spaces into newlines.
17472 # turn newlines into spaces.
17475 # convert \$build file names to \$host format.
17476 to_host_file_cmd=$lt_cv_to_host_file_cmd
17478 # convert \$build files to toolchain format.
17479 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17481 # An object symbol dumper.
17482 OBJDUMP=$lt_OBJDUMP
17484 # Method to check whether dependent libraries are shared objects.
17485 deplibs_check_method=$lt_deplibs_check_method
17487 # Command to use when deplibs_check_method = "file_magic".
17488 file_magic_cmd=$lt_file_magic_cmd
17490 # How to find potential files when deplibs_check_method = "file_magic".
17491 file_magic_glob=$lt_file_magic_glob
17493 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17494 want_nocaseglob=$lt_want_nocaseglob
17496 # DLL creation program.
17497 DLLTOOL=$lt_DLLTOOL
17499 # Command to associate shared and link libraries.
17500 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17505 # Flags to create an archive.
17506 AR_FLAGS=$lt_AR_FLAGS
17508 # How to feed a file listing to the archiver.
17509 archiver_list_spec=$lt_archiver_list_spec
17511 # A symbol stripping program.
17514 # Commands used to install an old-style archive.
17516 old_postinstall_cmds=$lt_old_postinstall_cmds
17517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17519 # Whether to use a lock for old archive extraction.
17520 lock_old_archive_extraction=$lock_old_archive_extraction
17525 # LTCC compiler flags.
17526 LTCFLAGS=$lt_CFLAGS
17528 # Take the output of nm and produce a listing of raw symbols and C names.
17529 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17531 # Transform the output of nm in a proper C declaration.
17532 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17534 # Transform the output of nm in a C name address pair.
17535 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17537 # Transform the output of nm in a C name address pair when lib prefix is needed.
17538 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17540 # Specify filename containing input files for \$NM.
17541 nm_file_list_spec=$lt_nm_file_list_spec
17543 # The root where to search for dependent libraries,and in which our libraries should be installed.
17544 lt_sysroot=$lt_sysroot
17546 # The name of the directory that contains temporary libtool files.
17549 # Used to examine libraries when file_magic_cmd begins with "file".
17550 MAGIC_CMD=$MAGIC_CMD
17552 # Must we lock files when doing compilation?
17553 need_locks=$lt_need_locks
17556 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17558 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17559 DSYMUTIL=$lt_DSYMUTIL
17561 # Tool to change global to local symbols on Mac OS X.
17564 # Tool to manipulate fat objects and archives on Mac OS X.
17567 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17570 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17571 OTOOL64=$lt_OTOOL64
17573 # Old archive suffix (normally "a").
17576 # Shared library suffix (normally ".so").
17577 shrext_cmds=$lt_shrext_cmds
17579 # The commands to extract the exported symbol list from a shared archive.
17580 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17582 # Variables whose values should be saved in libtool wrapper scripts and
17583 # restored at link time.
17584 variables_saved_for_relink=$lt_variables_saved_for_relink
17586 # Do we need the "lib" prefix for modules?
17587 need_lib_prefix=$need_lib_prefix
17589 # Do we need a version for libraries?
17590 need_version=$need_version
17592 # Library versioning type.
17593 version_type=$version_type
17595 # Shared library runtime path variable.
17596 runpath_var=$runpath_var
17598 # Shared library path variable.
17599 shlibpath_var=$shlibpath_var
17601 # Is shlibpath searched before the hard-coded library search path?
17602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17604 # Format of library name prefix.
17605 libname_spec=$lt_libname_spec
17607 # List of archive names. First name is the real one, the rest are links.
17608 # The last name is the one that the linker finds with -lNAME
17609 library_names_spec=$lt_library_names_spec
17611 # The coded name of the library, if different from the real name.
17612 soname_spec=$lt_soname_spec
17614 # Permission mode override for installation of shared libraries.
17615 install_override_mode=$lt_install_override_mode
17617 # Command to use after installation of a shared archive.
17618 postinstall_cmds=$lt_postinstall_cmds
17620 # Command to use after uninstallation of a shared archive.
17621 postuninstall_cmds=$lt_postuninstall_cmds
17623 # Commands used to finish a libtool library installation in a directory.
17624 finish_cmds=$lt_finish_cmds
17626 # As "finish_cmds", except a single script fragment to be evaled but
17628 finish_eval=$lt_finish_eval
17630 # Whether we should hardcode library paths into libraries.
17631 hardcode_into_libs=$hardcode_into_libs
17633 # Compile-time system search path for libraries.
17634 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17636 # Run-time system search path for libraries.
17637 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17639 # Whether dlopen is supported.
17640 dlopen_support=$enable_dlopen
17642 # Whether dlopen of programs is supported.
17643 dlopen_self=$enable_dlopen_self
17645 # Whether dlopen of statically linked programs is supported.
17646 dlopen_self_static=$enable_dlopen_self_static
17648 # Commands to strip libraries.
17649 old_striplib=$lt_old_striplib
17650 striplib=$lt_striplib
17653 # The linker used to build libraries.
17656 # How to create reloadable object files.
17657 reload_flag=$lt_reload_flag
17658 reload_cmds=$lt_reload_cmds
17660 # Commands used to build an old-style archive.
17661 old_archive_cmds=$lt_old_archive_cmds
17663 # A language specific compiler.
17666 # Is the compiler the GNU compiler?
17669 # Compiler flag to turn off builtin functions.
17670 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17672 # Additional compiler flags for building library objects.
17673 pic_flag=$lt_lt_prog_compiler_pic
17675 # How to pass a linker flag through the compiler.
17676 wl=$lt_lt_prog_compiler_wl
17678 # Compiler flag to prevent dynamic linking.
17679 link_static_flag=$lt_lt_prog_compiler_static
17681 # Does compiler simultaneously support -c and -o options?
17682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17684 # Whether or not to add -lc for building shared libraries.
17685 build_libtool_need_lc=$archive_cmds_need_lc
17687 # Whether or not to disallow shared libs when runtime libs are static.
17688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17690 # Compiler flag to allow reflexive dlopens.
17691 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17693 # Compiler flag to generate shared objects directly from archives.
17694 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17696 # Whether the compiler copes with passing no objects directly.
17697 compiler_needs_object=$lt_compiler_needs_object
17699 # Create an old-style archive from a shared archive.
17700 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17702 # Create a temporary old-style archive to link instead of a shared archive.
17703 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17705 # Commands used to build a shared archive.
17706 archive_cmds=$lt_archive_cmds
17707 archive_expsym_cmds=$lt_archive_expsym_cmds
17709 # Commands used to build a loadable module if different from building
17710 # a shared archive.
17711 module_cmds=$lt_module_cmds
17712 module_expsym_cmds=$lt_module_expsym_cmds
17714 # Whether we are building with GNU ld or not.
17715 with_gnu_ld=$lt_with_gnu_ld
17717 # Flag that allows shared libraries with undefined symbols to be built.
17718 allow_undefined_flag=$lt_allow_undefined_flag
17720 # Flag that enforces no undefined symbols.
17721 no_undefined_flag=$lt_no_undefined_flag
17723 # Flag to hardcode \$libdir into a binary during linking.
17724 # This must work even if \$libdir does not exist
17725 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17727 # Whether we need a single "-rpath" flag with a separated argument.
17728 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17731 # DIR into the resulting binary.
17732 hardcode_direct=$hardcode_direct
17734 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17735 # DIR into the resulting binary and the resulting library dependency is
17736 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17737 # library is relocated.
17738 hardcode_direct_absolute=$hardcode_direct_absolute
17740 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17741 # into the resulting binary.
17742 hardcode_minus_L=$hardcode_minus_L
17744 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17745 # into the resulting binary.
17746 hardcode_shlibpath_var=$hardcode_shlibpath_var
17748 # Set to "yes" if building a shared library automatically hardcodes DIR
17749 # into the library and all subsequent libraries and executables linked
17751 hardcode_automatic=$hardcode_automatic
17753 # Set to yes if linker adds runtime paths of dependent libraries
17754 # to runtime path list.
17755 inherit_rpath=$inherit_rpath
17757 # Whether libtool must link a program against all its dependency libraries.
17758 link_all_deplibs=$link_all_deplibs
17760 # Set to "yes" if exported symbols are required.
17761 always_export_symbols=$always_export_symbols
17763 # The commands to list exported symbols.
17764 export_symbols_cmds=$lt_export_symbols_cmds
17766 # Symbols that should not be listed in the preloaded symbols.
17767 exclude_expsyms=$lt_exclude_expsyms
17769 # Symbols that must always be exported.
17770 include_expsyms=$lt_include_expsyms
17772 # Commands necessary for linking programs (against libraries) with templates.
17773 prelink_cmds=$lt_prelink_cmds
17775 # Commands necessary for finishing linking programs.
17776 postlink_cmds=$lt_postlink_cmds
17778 # Specify filename containing input files.
17779 file_list_spec=$lt_file_list_spec
17781 # How to hardcode a shared library path into an executable.
17782 hardcode_action=$hardcode_action
17784 # The directories searched by this compiler when creating a shared library.
17785 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17787 # Dependencies to place before and after the objects being linked to
17788 # create a shared library.
17789 predep_objects=$lt_predep_objects
17790 postdep_objects=$lt_postdep_objects
17791 predeps=$lt_predeps
17792 postdeps=$lt_postdeps
17794 # The library search path used internally by the compiler when linking
17795 # a shared library.
17796 compiler_lib_search_path=$lt_compiler_lib_search_path
17798 # ### END LIBTOOL CONFIG
17804 cat <<\_LT_EOF >> "$cfgfile"
17805 # AIX sometimes has problems with the GCC collect2 program. For some
17806 # reason, if we set the COLLECT_NAMES environment variable, the problems
17807 # vanish in a puff of smoke.
17808 if test "X${COLLECT_NAMES+set}" != Xset; then
17810 export COLLECT_NAMES
17817 ltmain="$ac_aux_dir/ltmain.sh"
17820 # We use sed instead of cat because bash on DJGPP gets confused if
17821 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17822 # text mode, it properly converts lines to CR/LF. This bash problem
17823 # is reportedly fixed, but why not run on old versions too?
17824 sed '$q' "$ltmain" >> "$cfgfile" \
17825 || (rm -f "$cfgfile"; exit 1)
17827 if test x"$xsi_shell" = xyes; then
17828 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17832 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17833 \ * ) func_dirname_result="${3}" ;;\
17835 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17836 && mv -f "$cfgfile.tmp" "$cfgfile" \
17837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17838 test 0 -eq $? || _lt_function_replace_fail=:
17841 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17844 \ func_basename_result="${1##*/}"\
17845 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17846 && mv -f "$cfgfile.tmp" "$cfgfile" \
17847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17848 test 0 -eq $? || _lt_function_replace_fail=:
17851 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17852 func_dirname_and_basename ()\
17855 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17856 \ * ) func_dirname_result="${3}" ;;\
17858 \ func_basename_result="${1##*/}"\
17859 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17860 && mv -f "$cfgfile.tmp" "$cfgfile" \
17861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17862 test 0 -eq $? || _lt_function_replace_fail=:
17865 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17868 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17869 \ # positional parameters, so assign one to ordinary parameter first.\
17870 \ func_stripname_result=${3}\
17871 \ func_stripname_result=${func_stripname_result#"${1}"}\
17872 \ func_stripname_result=${func_stripname_result%"${2}"}\
17873 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17874 && mv -f "$cfgfile.tmp" "$cfgfile" \
17875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17876 test 0 -eq $? || _lt_function_replace_fail=:
17879 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17880 func_split_long_opt ()\
17882 \ func_split_long_opt_name=${1%%=*}\
17883 \ func_split_long_opt_arg=${1#*=}\
17884 } # Extended-shell func_split_long_opt 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_split_short_opt ()$/,/^} # func_split_short_opt /c\
17891 func_split_short_opt ()\
17893 \ func_split_short_opt_arg=${1#??}\
17894 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17895 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17896 && mv -f "$cfgfile.tmp" "$cfgfile" \
17897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17898 test 0 -eq $? || _lt_function_replace_fail=:
17901 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17905 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17906 \ *) func_lo2o_result=${1} ;;\
17908 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17909 && mv -f "$cfgfile.tmp" "$cfgfile" \
17910 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17911 test 0 -eq $? || _lt_function_replace_fail=:
17914 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17917 func_xform_result=${1%.*}.lo\
17918 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17919 && mv -f "$cfgfile.tmp" "$cfgfile" \
17920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17921 test 0 -eq $? || _lt_function_replace_fail=:
17924 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17927 func_arith_result=$(( $* ))\
17928 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17929 && mv -f "$cfgfile.tmp" "$cfgfile" \
17930 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17931 test 0 -eq $? || _lt_function_replace_fail=:
17934 sed -e '/^func_len ()$/,/^} # func_len /c\
17937 func_len_result=${#1}\
17938 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17939 && mv -f "$cfgfile.tmp" "$cfgfile" \
17940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17941 test 0 -eq $? || _lt_function_replace_fail=:
17945 if test x"$lt_shell_append" = xyes; then
17946 sed -e '/^func_append ()$/,/^} # func_append /c\
17949 eval "${1}+=\\${2}"\
17950 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17951 && mv -f "$cfgfile.tmp" "$cfgfile" \
17952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17953 test 0 -eq $? || _lt_function_replace_fail=:
17956 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17957 func_append_quoted ()\
17959 \ func_quote_for_eval "${2}"\
17960 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17961 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17962 && mv -f "$cfgfile.tmp" "$cfgfile" \
17963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17964 test 0 -eq $? || _lt_function_replace_fail=:
17967 # Save a `func_append' function call where possible by direct use of '+='
17968 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17969 && mv -f "$cfgfile.tmp" "$cfgfile" \
17970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17971 test 0 -eq $? || _lt_function_replace_fail=:
17973 # Save a `func_append' function call even when '+=' is not available
17974 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17975 && mv -f "$cfgfile.tmp" "$cfgfile" \
17976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17977 test 0 -eq $? || _lt_function_replace_fail=:
17980 if test x"$_lt_function_replace_fail" = x":"; then
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17982 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17986 mv -f "$cfgfile" "$ofile" ||
17987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17991 cat <<_LT_EOF >> "$ofile"
17993 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17995 # The linker used to build libraries.
17998 # How to create reloadable object files.
17999 reload_flag=$lt_reload_flag_CXX
18000 reload_cmds=$lt_reload_cmds_CXX
18002 # Commands used to build an old-style archive.
18003 old_archive_cmds=$lt_old_archive_cmds_CXX
18005 # A language specific compiler.
18006 CC=$lt_compiler_CXX
18008 # Is the compiler the GNU compiler?
18011 # Compiler flag to turn off builtin functions.
18012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18014 # Additional compiler flags for building library objects.
18015 pic_flag=$lt_lt_prog_compiler_pic_CXX
18017 # How to pass a linker flag through the compiler.
18018 wl=$lt_lt_prog_compiler_wl_CXX
18020 # Compiler flag to prevent dynamic linking.
18021 link_static_flag=$lt_lt_prog_compiler_static_CXX
18023 # Does compiler simultaneously support -c and -o options?
18024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18026 # Whether or not to add -lc for building shared libraries.
18027 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18029 # Whether or not to disallow shared libs when runtime libs are static.
18030 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18032 # Compiler flag to allow reflexive dlopens.
18033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18035 # Compiler flag to generate shared objects directly from archives.
18036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18038 # Whether the compiler copes with passing no objects directly.
18039 compiler_needs_object=$lt_compiler_needs_object_CXX
18041 # Create an old-style archive from a shared archive.
18042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18044 # Create a temporary old-style archive to link instead of a shared archive.
18045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18047 # Commands used to build a shared archive.
18048 archive_cmds=$lt_archive_cmds_CXX
18049 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18051 # Commands used to build a loadable module if different from building
18052 # a shared archive.
18053 module_cmds=$lt_module_cmds_CXX
18054 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18056 # Whether we are building with GNU ld or not.
18057 with_gnu_ld=$lt_with_gnu_ld_CXX
18059 # Flag that allows shared libraries with undefined symbols to be built.
18060 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18062 # Flag that enforces no undefined symbols.
18063 no_undefined_flag=$lt_no_undefined_flag_CXX
18065 # Flag to hardcode \$libdir into a binary during linking.
18066 # This must work even if \$libdir does not exist
18067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18069 # Whether we need a single "-rpath" flag with a separated argument.
18070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18072 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18073 # DIR into the resulting binary.
18074 hardcode_direct=$hardcode_direct_CXX
18076 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18077 # DIR into the resulting binary and the resulting library dependency is
18078 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18079 # library is relocated.
18080 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18082 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18083 # into the resulting binary.
18084 hardcode_minus_L=$hardcode_minus_L_CXX
18086 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18087 # into the resulting binary.
18088 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18090 # Set to "yes" if building a shared library automatically hardcodes DIR
18091 # into the library and all subsequent libraries and executables linked
18093 hardcode_automatic=$hardcode_automatic_CXX
18095 # Set to yes if linker adds runtime paths of dependent libraries
18096 # to runtime path list.
18097 inherit_rpath=$inherit_rpath_CXX
18099 # Whether libtool must link a program against all its dependency libraries.
18100 link_all_deplibs=$link_all_deplibs_CXX
18102 # Set to "yes" if exported symbols are required.
18103 always_export_symbols=$always_export_symbols_CXX
18105 # The commands to list exported symbols.
18106 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18108 # Symbols that should not be listed in the preloaded symbols.
18109 exclude_expsyms=$lt_exclude_expsyms_CXX
18111 # Symbols that must always be exported.
18112 include_expsyms=$lt_include_expsyms_CXX
18114 # Commands necessary for linking programs (against libraries) with templates.
18115 prelink_cmds=$lt_prelink_cmds_CXX
18117 # Commands necessary for finishing linking programs.
18118 postlink_cmds=$lt_postlink_cmds_CXX
18120 # Specify filename containing input files.
18121 file_list_spec=$lt_file_list_spec_CXX
18123 # How to hardcode a shared library path into an executable.
18124 hardcode_action=$hardcode_action_CXX
18126 # The directories searched by this compiler when creating a shared library.
18127 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18129 # Dependencies to place before and after the objects being linked to
18130 # create a shared library.
18131 predep_objects=$lt_predep_objects_CXX
18132 postdep_objects=$lt_postdep_objects_CXX
18133 predeps=$lt_predeps_CXX
18134 postdeps=$lt_postdeps_CXX
18136 # The library search path used internally by the compiler when linking
18137 # a shared library.
18138 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18140 # ### END LIBTOOL TAG CONFIG: CXX
18151 ac_clean_files=$ac_clean_files_save
18153 test $ac_write_fail = 0 ||
18154 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18157 # configure is writing to config.log, and then calls config.status.
18158 # config.status does its own redirection, appending to config.log.
18159 # Unfortunately, on DOS this fails, as config.log is still kept open
18160 # by configure, so config.status won't be able to write to it; its
18161 # output is simply discarded. So we exec the FD to /dev/null,
18162 # effectively closing config.log, so it can be properly (re)opened and
18163 # appended to by config.status. When coming back to configure, we
18164 # need to make the FD available again.
18165 if test "$no_create" != yes; then
18167 ac_config_status_args=
18168 test "$silent" = yes &&
18169 ac_config_status_args="$ac_config_status_args --quiet"
18171 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18173 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18174 # would make configure fail if this is the last instruction.
18175 $ac_cs_success || as_fn_exit 1
18177 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18179 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}