comparison configure @ 1:c230e6da3ff6

Discovered LiveJournal endpoint
author Adam Chlipala <adam@chlipala.net>
date Sun, 26 Dec 2010 13:10:36 -0500
parents 3c209338e596
children b416b9b9dc38
comparison
equal deleted inserted replaced
0:3c209338e596 1:c230e6da3ff6
743 am__EXEEXT_TRUE 743 am__EXEEXT_TRUE
744 LTLIBOBJS 744 LTLIBOBJS
745 LIBOBJS 745 LIBOBJS
746 INCLUDE 746 INCLUDE
747 LIB 747 LIB
748 EXPAT_VERSION
749 EXPAT_LDFLAGS
750 EXPAT_CFLAGS
751 CXXCPP
752 am__fastdepCXX_FALSE
753 am__fastdepCXX_TRUE
754 CXXDEPMODE
755 ac_ct_CXX
756 CXXFLAGS
757 CXX
748 LIBCURL 758 LIBCURL
749 LIBCURL_CPPFLAGS 759 LIBCURL_CPPFLAGS
750 _libcurl_config 760 _libcurl_config
751 OPENSSL_LDFLAGS 761 OPENSSL_LDFLAGS
752 OPENSSL_LIBS 762 OPENSSL_LIBS
867 enable_fast_install 877 enable_fast_install
868 with_gnu_ld 878 with_gnu_ld
869 enable_libtool_lock 879 enable_libtool_lock
870 with_openssl 880 with_openssl
871 with_libcurl 881 with_libcurl
882 with_expat
883 with_expat_inc
884 with_expat_lib
872 ' 885 '
873 ac_precious_vars='build_alias 886 ac_precious_vars='build_alias
874 host_alias 887 host_alias
875 target_alias 888 target_alias
876 CC 889 CC
877 CFLAGS 890 CFLAGS
878 LDFLAGS 891 LDFLAGS
879 LIBS 892 LIBS
880 CPPFLAGS 893 CPPFLAGS
881 CPP' 894 CPP
895 CXX
896 CXXFLAGS
897 CCC
898 CXXCPP'
882 899
883 900
884 # Initialize some variables set by options. 901 # Initialize some variables set by options.
885 ac_init_help= 902 ac_init_help=
886 ac_init_version=false 903 ac_init_version=false
1513 --with-pic try to use only PIC/non-PIC objects [default=use 1530 --with-pic try to use only PIC/non-PIC objects [default=use
1514 both] 1531 both]
1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1516 --with-openssl=DIR root of the OpenSSL directory 1533 --with-openssl=DIR root of the OpenSSL directory
1517 --with-libcurl=DIR look for the curl library in DIR 1534 --with-libcurl=DIR look for the curl library in DIR
1535 --with-expat=[ARG] use Expat XML Parser from given prefix (ARG=path);
1536 check standard prefixes (ARG=yes); disable (ARG=no)
1537 --with-expat-inc=[DIR] path to Expat XML Parser headers
1538 --with-expat-lib=[ARG] link options for Expat XML Parser libraries
1518 1539
1519 Some influential environment variables: 1540 Some influential environment variables:
1520 CC C compiler command 1541 CC C compiler command
1521 CFLAGS C compiler flags 1542 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir> 1544 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library> 1545 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1546 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir> 1547 you have headers in a nonstandard directory <include dir>
1527 CPP C preprocessor 1548 CPP C preprocessor
1549 CXX C++ compiler command
1550 CXXFLAGS C++ compiler flags
1551 CXXCPP C++ preprocessor
1528 1552
1529 Use these variables to override the choices made by `configure' or to help 1553 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations. 1554 it to find libraries and programs with nonstandard names/locations.
1531 1555
1532 Report bugs to the package provider. 1556 Report bugs to the package provider.
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; } 1976 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954 1978
1955 } # ac_fn_c_check_func 1979 } # ac_fn_c_check_func
1980
1981 # ac_fn_cxx_try_compile LINENO
1982 # ----------------------------
1983 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_cxx_try_compile ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext
1988 if { { ac_try="$ac_compile"
1989 case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_compile") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2001 fi
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_cxx_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest.$ac_objext; then :
2007 ac_retval=0
2008 else
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011
2012 ac_retval=1
2013 fi
2014 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 as_fn_set_status $ac_retval
2016
2017 } # ac_fn_cxx_try_compile
2018
2019 # ac_fn_cxx_try_cpp LINENO
2020 # ------------------------
2021 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2022 ac_fn_cxx_try_cpp ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 if { { ac_try="$ac_cpp conftest.$ac_ext"
2026 case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2029 esac
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2033 ac_status=$?
2034 if test -s conftest.err; then
2035 grep -v '^ *+' conftest.err >conftest.er1
2036 cat conftest.er1 >&5
2037 mv -f conftest.er1 conftest.err
2038 fi
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; } > conftest.i && {
2041 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2042 test ! -s conftest.err
2043 }; then :
2044 ac_retval=0
2045 else
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_retval=1
2050 fi
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052 as_fn_set_status $ac_retval
2053
2054 } # ac_fn_cxx_try_cpp
2055
2056 # ac_fn_cxx_try_link LINENO
2057 # -------------------------
2058 # Try to link conftest.$ac_ext, and return whether this succeeded.
2059 ac_fn_cxx_try_link ()
2060 {
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 rm -f conftest.$ac_objext conftest$ac_exeext
2063 if { { ac_try="$ac_link"
2064 case "(($ac_try" in
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066 *) ac_try_echo=$ac_try;;
2067 esac
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070 (eval "$ac_link") 2>conftest.err
2071 ac_status=$?
2072 if test -s conftest.err; then
2073 grep -v '^ *+' conftest.err >conftest.er1
2074 cat conftest.er1 >&5
2075 mv -f conftest.er1 conftest.err
2076 fi
2077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078 test $ac_status = 0; } && {
2079 test -z "$ac_cxx_werror_flag" ||
2080 test ! -s conftest.err
2081 } && test -s conftest$ac_exeext && {
2082 test "$cross_compiling" = yes ||
2083 $as_test_x conftest$ac_exeext
2084 }; then :
2085 ac_retval=0
2086 else
2087 $as_echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2089
2090 ac_retval=1
2091 fi
2092 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2093 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2094 # interfere with the next link command; also delete a directory that is
2095 # left behind by Apple's compiler. We do this before executing the actions.
2096 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2097 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2098 as_fn_set_status $ac_retval
2099
2100 } # ac_fn_cxx_try_link
1956 cat >config.log <<_ACEOF 2101 cat >config.log <<_ACEOF
1957 This file contains any messages produced by compilers while 2102 This file contains any messages produced by compilers while
1958 running configure, to aid debugging if configure makes a mistake. 2103 running configure, to aid debugging if configure makes a mistake.
1959 2104
1960 It was created by urweb_openid $as_me 1.0, which was 2105 It was created by urweb_openid $as_me 1.0, which was
5329 if test "${lt_cv_nm_interface+set}" = set; then : 5474 if test "${lt_cv_nm_interface+set}" = set; then :
5330 $as_echo_n "(cached) " >&6 5475 $as_echo_n "(cached) " >&6
5331 else 5476 else
5332 lt_cv_nm_interface="BSD nm" 5477 lt_cv_nm_interface="BSD nm"
5333 echo "int some_variable = 0;" > conftest.$ac_ext 5478 echo "int some_variable = 0;" > conftest.$ac_ext
5334 (eval echo "\"\$as_me:5334: $ac_compile\"" >&5) 5479 (eval echo "\"\$as_me:5479: $ac_compile\"" >&5)
5335 (eval "$ac_compile" 2>conftest.err) 5480 (eval "$ac_compile" 2>conftest.err)
5336 cat conftest.err >&5 5481 cat conftest.err >&5
5337 (eval echo "\"\$as_me:5337: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5482 (eval echo "\"\$as_me:5482: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5338 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5483 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5339 cat conftest.err >&5 5484 cat conftest.err >&5
5340 (eval echo "\"\$as_me:5340: output\"" >&5) 5485 (eval echo "\"\$as_me:5485: output\"" >&5)
5341 cat conftest.out >&5 5486 cat conftest.out >&5
5342 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5487 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5343 lt_cv_nm_interface="MS dumpbin" 5488 lt_cv_nm_interface="MS dumpbin"
5344 fi 5489 fi
5345 rm -f conftest* 5490 rm -f conftest*
6540 fi 6685 fi
6541 rm -rf conftest* 6686 rm -rf conftest*
6542 ;; 6687 ;;
6543 *-*-irix6*) 6688 *-*-irix6*)
6544 # Find out which ABI we are using. 6689 # Find out which ABI we are using.
6545 echo '#line 6545 "configure"' > conftest.$ac_ext 6690 echo '#line 6690 "configure"' > conftest.$ac_ext
6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6547 (eval $ac_compile) 2>&5 6692 (eval $ac_compile) 2>&5
6548 ac_status=$? 6693 ac_status=$?
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; }; then 6695 test $ac_status = 0; }; then
7802 # The option is referenced via a variable to avoid confusing sed. 7947 # The option is referenced via a variable to avoid confusing sed.
7803 lt_compile=`echo "$ac_compile" | $SED \ 7948 lt_compile=`echo "$ac_compile" | $SED \
7804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7806 -e 's:$: $lt_compiler_flag:'` 7951 -e 's:$: $lt_compiler_flag:'`
7807 (eval echo "\"\$as_me:7807: $lt_compile\"" >&5) 7952 (eval echo "\"\$as_me:7952: $lt_compile\"" >&5)
7808 (eval "$lt_compile" 2>conftest.err) 7953 (eval "$lt_compile" 2>conftest.err)
7809 ac_status=$? 7954 ac_status=$?
7810 cat conftest.err >&5 7955 cat conftest.err >&5
7811 echo "$as_me:7811: \$? = $ac_status" >&5 7956 echo "$as_me:7956: \$? = $ac_status" >&5
7812 if (exit $ac_status) && test -s "$ac_outfile"; then 7957 if (exit $ac_status) && test -s "$ac_outfile"; then
7813 # The compiler can only warn and ignore the option if not recognized 7958 # The compiler can only warn and ignore the option if not recognized
7814 # So say no if there are warnings other than the usual output. 7959 # So say no if there are warnings other than the usual output.
7815 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7960 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8141 # The option is referenced via a variable to avoid confusing sed. 8286 # The option is referenced via a variable to avoid confusing sed.
8142 lt_compile=`echo "$ac_compile" | $SED \ 8287 lt_compile=`echo "$ac_compile" | $SED \
8143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8145 -e 's:$: $lt_compiler_flag:'` 8290 -e 's:$: $lt_compiler_flag:'`
8146 (eval echo "\"\$as_me:8146: $lt_compile\"" >&5) 8291 (eval echo "\"\$as_me:8291: $lt_compile\"" >&5)
8147 (eval "$lt_compile" 2>conftest.err) 8292 (eval "$lt_compile" 2>conftest.err)
8148 ac_status=$? 8293 ac_status=$?
8149 cat conftest.err >&5 8294 cat conftest.err >&5
8150 echo "$as_me:8150: \$? = $ac_status" >&5 8295 echo "$as_me:8295: \$? = $ac_status" >&5
8151 if (exit $ac_status) && test -s "$ac_outfile"; then 8296 if (exit $ac_status) && test -s "$ac_outfile"; then
8152 # The compiler can only warn and ignore the option if not recognized 8297 # The compiler can only warn and ignore the option if not recognized
8153 # So say no if there are warnings other than the usual output. 8298 # So say no if there are warnings other than the usual output.
8154 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8299 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8246 # with a dollar sign (not a hyphen), so the echo should work correctly. 8391 # with a dollar sign (not a hyphen), so the echo should work correctly.
8247 lt_compile=`echo "$ac_compile" | $SED \ 8392 lt_compile=`echo "$ac_compile" | $SED \
8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250 -e 's:$: $lt_compiler_flag:'` 8395 -e 's:$: $lt_compiler_flag:'`
8251 (eval echo "\"\$as_me:8251: $lt_compile\"" >&5) 8396 (eval echo "\"\$as_me:8396: $lt_compile\"" >&5)
8252 (eval "$lt_compile" 2>out/conftest.err) 8397 (eval "$lt_compile" 2>out/conftest.err)
8253 ac_status=$? 8398 ac_status=$?
8254 cat out/conftest.err >&5 8399 cat out/conftest.err >&5
8255 echo "$as_me:8255: \$? = $ac_status" >&5 8400 echo "$as_me:8400: \$? = $ac_status" >&5
8256 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8257 then 8402 then
8258 # The compiler can only warn and ignore the option if not recognized 8403 # The compiler can only warn and ignore the option if not recognized
8259 # So say no if there are warnings 8404 # So say no if there are warnings
8260 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8405 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8301 # with a dollar sign (not a hyphen), so the echo should work correctly. 8446 # with a dollar sign (not a hyphen), so the echo should work correctly.
8302 lt_compile=`echo "$ac_compile" | $SED \ 8447 lt_compile=`echo "$ac_compile" | $SED \
8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305 -e 's:$: $lt_compiler_flag:'` 8450 -e 's:$: $lt_compiler_flag:'`
8306 (eval echo "\"\$as_me:8306: $lt_compile\"" >&5) 8451 (eval echo "\"\$as_me:8451: $lt_compile\"" >&5)
8307 (eval "$lt_compile" 2>out/conftest.err) 8452 (eval "$lt_compile" 2>out/conftest.err)
8308 ac_status=$? 8453 ac_status=$?
8309 cat out/conftest.err >&5 8454 cat out/conftest.err >&5
8310 echo "$as_me:8310: \$? = $ac_status" >&5 8455 echo "$as_me:8455: \$? = $ac_status" >&5
8311 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8456 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8312 then 8457 then
8313 # The compiler can only warn and ignore the option if not recognized 8458 # The compiler can only warn and ignore the option if not recognized
8314 # So say no if there are warnings 8459 # So say no if there are warnings
8315 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8460 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10685 lt_cv_dlopen_self=cross 10830 lt_cv_dlopen_self=cross
10686 else 10831 else
10687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10832 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10688 lt_status=$lt_dlunknown 10833 lt_status=$lt_dlunknown
10689 cat > conftest.$ac_ext <<_LT_EOF 10834 cat > conftest.$ac_ext <<_LT_EOF
10690 #line 10690 "configure" 10835 #line 10835 "configure"
10691 #include "confdefs.h" 10836 #include "confdefs.h"
10692 10837
10693 #if HAVE_DLFCN_H 10838 #if HAVE_DLFCN_H
10694 #include <dlfcn.h> 10839 #include <dlfcn.h>
10695 #endif 10840 #endif
10781 lt_cv_dlopen_self_static=cross 10926 lt_cv_dlopen_self_static=cross
10782 else 10927 else
10783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10928 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10784 lt_status=$lt_dlunknown 10929 lt_status=$lt_dlunknown
10785 cat > conftest.$ac_ext <<_LT_EOF 10930 cat > conftest.$ac_ext <<_LT_EOF
10786 #line 10786 "configure" 10931 #line 10931 "configure"
10787 #include "confdefs.h" 10932 #include "confdefs.h"
10788 10933
10789 #if HAVE_DLFCN_H 10934 #if HAVE_DLFCN_H
10790 #include <dlfcn.h> 10935 #include <dlfcn.h>
10791 #endif 10936 #endif
11545 # This is the IF-YES path 11690 # This is the IF-YES path
11546 echo >/dev/null 11691 echo >/dev/null
11547 fi 11692 fi
11548 11693
11549 unset _libcurl_with 11694 unset _libcurl_with
11695
11696
11697 ac_ext=cpp
11698 ac_cpp='$CXXCPP $CPPFLAGS'
11699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11702 if test -z "$CXX"; then
11703 if test -n "$CCC"; then
11704 CXX=$CCC
11705 else
11706 if test -n "$ac_tool_prefix"; then
11707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11708 do
11709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if test "${ac_cv_prog_CXX+set}" = set; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 if test -n "$CXX"; then
11717 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11729 fi
11730 done
11731 done
11732 IFS=$as_save_IFS
11733
11734 fi
11735 fi
11736 CXX=$ac_cv_prog_CXX
11737 if test -n "$CXX"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11739 $as_echo "$CXX" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743 fi
11744
11745
11746 test -n "$CXX" && break
11747 done
11748 fi
11749 if test -z "$CXX"; then
11750 ac_ct_CXX=$CXX
11751 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11752 do
11753 # Extract the first word of "$ac_prog", so it can be a program name with args.
11754 set dummy $ac_prog; ac_word=$2
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756 $as_echo_n "checking for $ac_word... " >&6; }
11757 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 if test -n "$ac_ct_CXX"; then
11761 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11762 else
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11765 do
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11770 ac_cv_prog_ac_ct_CXX="$ac_prog"
11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772 break 2
11773 fi
11774 done
11775 done
11776 IFS=$as_save_IFS
11777
11778 fi
11779 fi
11780 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11781 if test -n "$ac_ct_CXX"; then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11783 $as_echo "$ac_ct_CXX" >&6; }
11784 else
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11787 fi
11788
11789
11790 test -n "$ac_ct_CXX" && break
11791 done
11792
11793 if test "x$ac_ct_CXX" = x; then
11794 CXX="g++"
11795 else
11796 case $cross_compiling:$ac_tool_warned in
11797 yes:)
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11800 ac_tool_warned=yes ;;
11801 esac
11802 CXX=$ac_ct_CXX
11803 fi
11804 fi
11805
11806 fi
11807 fi
11808 # Provide some information about the compiler.
11809 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11810 set X $ac_compile
11811 ac_compiler=$2
11812 for ac_option in --version -v -V -qversion; do
11813 { { ac_try="$ac_compiler $ac_option >&5"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817 esac
11818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11819 $as_echo "$ac_try_echo"; } >&5
11820 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11821 ac_status=$?
11822 if test -s conftest.err; then
11823 sed '10a\
11824 ... rest of stderr output deleted ...
11825 10q' conftest.err >conftest.er1
11826 cat conftest.er1 >&5
11827 fi
11828 rm -f conftest.er1 conftest.err
11829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11830 test $ac_status = 0; }
11831 done
11832
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11834 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11835 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11836 $as_echo_n "(cached) " >&6
11837 else
11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h. */
11840
11841 int
11842 main ()
11843 {
11844 #ifndef __GNUC__
11845 choke me
11846 #endif
11847
11848 ;
11849 return 0;
11850 }
11851 _ACEOF
11852 if ac_fn_cxx_try_compile "$LINENO"; then :
11853 ac_compiler_gnu=yes
11854 else
11855 ac_compiler_gnu=no
11856 fi
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11859
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11862 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11863 if test $ac_compiler_gnu = yes; then
11864 GXX=yes
11865 else
11866 GXX=
11867 fi
11868 ac_test_CXXFLAGS=${CXXFLAGS+set}
11869 ac_save_CXXFLAGS=$CXXFLAGS
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11871 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11872 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11876 ac_cxx_werror_flag=yes
11877 ac_cv_prog_cxx_g=no
11878 CXXFLAGS="-g"
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11881
11882 int
11883 main ()
11884 {
11885
11886 ;
11887 return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_cxx_try_compile "$LINENO"; then :
11891 ac_cv_prog_cxx_g=yes
11892 else
11893 CXXFLAGS=""
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896
11897 int
11898 main ()
11899 {
11900
11901 ;
11902 return 0;
11903 }
11904 _ACEOF
11905 if ac_fn_cxx_try_compile "$LINENO"; then :
11906
11907 else
11908 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11909 CXXFLAGS="-g"
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11912
11913 int
11914 main ()
11915 {
11916
11917 ;
11918 return 0;
11919 }
11920 _ACEOF
11921 if ac_fn_cxx_try_compile "$LINENO"; then :
11922 ac_cv_prog_cxx_g=yes
11923 fi
11924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11925 fi
11926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 fi
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11929 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11930 fi
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11932 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11933 if test "$ac_test_CXXFLAGS" = set; then
11934 CXXFLAGS=$ac_save_CXXFLAGS
11935 elif test $ac_cv_prog_cxx_g = yes; then
11936 if test "$GXX" = yes; then
11937 CXXFLAGS="-g -O2"
11938 else
11939 CXXFLAGS="-g"
11940 fi
11941 else
11942 if test "$GXX" = yes; then
11943 CXXFLAGS="-O2"
11944 else
11945 CXXFLAGS=
11946 fi
11947 fi
11948 ac_ext=c
11949 ac_cpp='$CPP $CPPFLAGS'
11950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11953
11954 depcc="$CXX" am_compiler_list=
11955
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11957 $as_echo_n "checking dependency style of $depcc... " >&6; }
11958 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11962 # We make a subdir and do the tests there. Otherwise we can end up
11963 # making bogus files that we don't know about and never remove. For
11964 # instance it was reported that on HP-UX the gcc test will end up
11965 # making a dummy file named `D' -- because `-MD' means `put the output
11966 # in D'.
11967 mkdir conftest.dir
11968 # Copy depcomp to subdir because otherwise we won't find it if we're
11969 # using a relative directory.
11970 cp "$am_depcomp" conftest.dir
11971 cd conftest.dir
11972 # We will build objects and dependencies in a subdirectory because
11973 # it helps to detect inapplicable dependency modes. For instance
11974 # both Tru64's cc and ICC support -MD to output dependencies as a
11975 # side effect of compilation, but ICC will put the dependencies in
11976 # the current directory while Tru64 will put them in the object
11977 # directory.
11978 mkdir sub
11979
11980 am_cv_CXX_dependencies_compiler_type=none
11981 if test "$am_compiler_list" = ""; then
11982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11983 fi
11984 am__universal=false
11985 case " $depcc " in #(
11986 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11987 esac
11988
11989 for depmode in $am_compiler_list; do
11990 # Setup a source with many dependencies, because some compilers
11991 # like to wrap large dependency lists on column 80 (with \), and
11992 # we should not choose a depcomp mode which is confused by this.
11993 #
11994 # We need to recreate these files for each test, as the compiler may
11995 # overwrite some of them when testing with obscure command lines.
11996 # This happens at least with the AIX C compiler.
11997 : > sub/conftest.c
11998 for i in 1 2 3 4 5 6; do
11999 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12000 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12001 # Solaris 8's {/usr,}/bin/sh.
12002 touch sub/conftst$i.h
12003 done
12004 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12005
12006 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12007 # mode. It turns out that the SunPro C++ compiler does not properly
12008 # handle `-M -o', and we need to detect this. Also, some Intel
12009 # versions had trouble with output in subdirs
12010 am__obj=sub/conftest.${OBJEXT-o}
12011 am__minus_obj="-o $am__obj"
12012 case $depmode in
12013 gcc)
12014 # This depmode causes a compiler race in universal mode.
12015 test "$am__universal" = false || continue
12016 ;;
12017 nosideeffect)
12018 # after this tag, mechanisms are not by side-effect, so they'll
12019 # only be used when explicitly requested
12020 if test "x$enable_dependency_tracking" = xyes; then
12021 continue
12022 else
12023 break
12024 fi
12025 ;;
12026 msvisualcpp | msvcmsys)
12027 # This compiler won't grok `-c -o', but also, the minuso test has
12028 # not run yet. These depmodes are late enough in the game, and
12029 # so weak that their functioning should not be impacted.
12030 am__obj=conftest.${OBJEXT-o}
12031 am__minus_obj=
12032 ;;
12033 none) break ;;
12034 esac
12035 if depmode=$depmode \
12036 source=sub/conftest.c object=$am__obj \
12037 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12038 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12039 >/dev/null 2>conftest.err &&
12040 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12041 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12042 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12043 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12044 # icc doesn't choke on unknown options, it will just issue warnings
12045 # or remarks (even with -Werror). So we grep stderr for any message
12046 # that says an option was ignored or not supported.
12047 # When given -MP, icc 7.0 and 7.1 complain thusly:
12048 # icc: Command line warning: ignoring option '-M'; no argument required
12049 # The diagnosis changed in icc 8.0:
12050 # icc: Command line remark: option '-MP' not supported
12051 if (grep 'ignoring option' conftest.err ||
12052 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12053 am_cv_CXX_dependencies_compiler_type=$depmode
12054 break
12055 fi
12056 fi
12057 done
12058
12059 cd ..
12060 rm -rf conftest.dir
12061 else
12062 am_cv_CXX_dependencies_compiler_type=none
12063 fi
12064
12065 fi
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12067 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12068 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12069
12070 if
12071 test "x$enable_dependency_tracking" != xno \
12072 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12073 am__fastdepCXX_TRUE=
12074 am__fastdepCXX_FALSE='#'
12075 else
12076 am__fastdepCXX_TRUE='#'
12077 am__fastdepCXX_FALSE=
12078 fi
12079
12080
12081
12082 ac_ext=cpp
12083 ac_cpp='$CXXCPP $CPPFLAGS'
12084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12087 if test -z "$CXX"; then
12088 if test -n "$CCC"; then
12089 CXX=$CCC
12090 else
12091 if test -n "$ac_tool_prefix"; then
12092 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12093 do
12094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if test "${ac_cv_prog_CXX+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 if test -n "$CXX"; then
12102 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12103 else
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12106 do
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12111 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12114 fi
12115 done
12116 done
12117 IFS=$as_save_IFS
12118
12119 fi
12120 fi
12121 CXX=$ac_cv_prog_CXX
12122 if test -n "$CXX"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12124 $as_echo "$CXX" >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12128 fi
12129
12130
12131 test -n "$CXX" && break
12132 done
12133 fi
12134 if test -z "$CXX"; then
12135 ac_ct_CXX=$CXX
12136 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12137 do
12138 # Extract the first word of "$ac_prog", so it can be a program name with args.
12139 set dummy $ac_prog; ac_word=$2
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141 $as_echo_n "checking for $ac_word... " >&6; }
12142 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 if test -n "$ac_ct_CXX"; then
12146 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12147 else
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12150 do
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12155 ac_cv_prog_ac_ct_CXX="$ac_prog"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12158 fi
12159 done
12160 done
12161 IFS=$as_save_IFS
12162
12163 fi
12164 fi
12165 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12166 if test -n "$ac_ct_CXX"; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12168 $as_echo "$ac_ct_CXX" >&6; }
12169 else
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171 $as_echo "no" >&6; }
12172 fi
12173
12174
12175 test -n "$ac_ct_CXX" && break
12176 done
12177
12178 if test "x$ac_ct_CXX" = x; then
12179 CXX="g++"
12180 else
12181 case $cross_compiling:$ac_tool_warned in
12182 yes:)
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12185 ac_tool_warned=yes ;;
12186 esac
12187 CXX=$ac_ct_CXX
12188 fi
12189 fi
12190
12191 fi
12192 fi
12193 # Provide some information about the compiler.
12194 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12195 set X $ac_compile
12196 ac_compiler=$2
12197 for ac_option in --version -v -V -qversion; do
12198 { { ac_try="$ac_compiler $ac_option >&5"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202 esac
12203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12204 $as_echo "$ac_try_echo"; } >&5
12205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12206 ac_status=$?
12207 if test -s conftest.err; then
12208 sed '10a\
12209 ... rest of stderr output deleted ...
12210 10q' conftest.err >conftest.er1
12211 cat conftest.er1 >&5
12212 fi
12213 rm -f conftest.er1 conftest.err
12214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12215 test $ac_status = 0; }
12216 done
12217
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12219 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12220 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12225
12226 int
12227 main ()
12228 {
12229 #ifndef __GNUC__
12230 choke me
12231 #endif
12232
12233 ;
12234 return 0;
12235 }
12236 _ACEOF
12237 if ac_fn_cxx_try_compile "$LINENO"; then :
12238 ac_compiler_gnu=yes
12239 else
12240 ac_compiler_gnu=no
12241 fi
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12244
12245 fi
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12247 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12248 if test $ac_compiler_gnu = yes; then
12249 GXX=yes
12250 else
12251 GXX=
12252 fi
12253 ac_test_CXXFLAGS=${CXXFLAGS+set}
12254 ac_save_CXXFLAGS=$CXXFLAGS
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12256 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12257 if test "${ac_cv_prog_cxx_g+set}" = set; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12261 ac_cxx_werror_flag=yes
12262 ac_cv_prog_cxx_g=no
12263 CXXFLAGS="-g"
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12266
12267 int
12268 main ()
12269 {
12270
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_cxx_try_compile "$LINENO"; then :
12276 ac_cv_prog_cxx_g=yes
12277 else
12278 CXXFLAGS=""
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281
12282 int
12283 main ()
12284 {
12285
12286 ;
12287 return 0;
12288 }
12289 _ACEOF
12290 if ac_fn_cxx_try_compile "$LINENO"; then :
12291
12292 else
12293 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12294 CXXFLAGS="-g"
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297
12298 int
12299 main ()
12300 {
12301
12302 ;
12303 return 0;
12304 }
12305 _ACEOF
12306 if ac_fn_cxx_try_compile "$LINENO"; then :
12307 ac_cv_prog_cxx_g=yes
12308 fi
12309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310 fi
12311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12315 fi
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12317 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12318 if test "$ac_test_CXXFLAGS" = set; then
12319 CXXFLAGS=$ac_save_CXXFLAGS
12320 elif test $ac_cv_prog_cxx_g = yes; then
12321 if test "$GXX" = yes; then
12322 CXXFLAGS="-g -O2"
12323 else
12324 CXXFLAGS="-g"
12325 fi
12326 else
12327 if test "$GXX" = yes; then
12328 CXXFLAGS="-O2"
12329 else
12330 CXXFLAGS=
12331 fi
12332 fi
12333 ac_ext=c
12334 ac_cpp='$CPP $CPPFLAGS'
12335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338
12339 depcc="$CXX" am_compiler_list=
12340
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12342 $as_echo_n "checking dependency style of $depcc... " >&6; }
12343 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12347 # We make a subdir and do the tests there. Otherwise we can end up
12348 # making bogus files that we don't know about and never remove. For
12349 # instance it was reported that on HP-UX the gcc test will end up
12350 # making a dummy file named `D' -- because `-MD' means `put the output
12351 # in D'.
12352 mkdir conftest.dir
12353 # Copy depcomp to subdir because otherwise we won't find it if we're
12354 # using a relative directory.
12355 cp "$am_depcomp" conftest.dir
12356 cd conftest.dir
12357 # We will build objects and dependencies in a subdirectory because
12358 # it helps to detect inapplicable dependency modes. For instance
12359 # both Tru64's cc and ICC support -MD to output dependencies as a
12360 # side effect of compilation, but ICC will put the dependencies in
12361 # the current directory while Tru64 will put them in the object
12362 # directory.
12363 mkdir sub
12364
12365 am_cv_CXX_dependencies_compiler_type=none
12366 if test "$am_compiler_list" = ""; then
12367 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12368 fi
12369 am__universal=false
12370 case " $depcc " in #(
12371 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12372 esac
12373
12374 for depmode in $am_compiler_list; do
12375 # Setup a source with many dependencies, because some compilers
12376 # like to wrap large dependency lists on column 80 (with \), and
12377 # we should not choose a depcomp mode which is confused by this.
12378 #
12379 # We need to recreate these files for each test, as the compiler may
12380 # overwrite some of them when testing with obscure command lines.
12381 # This happens at least with the AIX C compiler.
12382 : > sub/conftest.c
12383 for i in 1 2 3 4 5 6; do
12384 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12385 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12386 # Solaris 8's {/usr,}/bin/sh.
12387 touch sub/conftst$i.h
12388 done
12389 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12390
12391 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12392 # mode. It turns out that the SunPro C++ compiler does not properly
12393 # handle `-M -o', and we need to detect this. Also, some Intel
12394 # versions had trouble with output in subdirs
12395 am__obj=sub/conftest.${OBJEXT-o}
12396 am__minus_obj="-o $am__obj"
12397 case $depmode in
12398 gcc)
12399 # This depmode causes a compiler race in universal mode.
12400 test "$am__universal" = false || continue
12401 ;;
12402 nosideeffect)
12403 # after this tag, mechanisms are not by side-effect, so they'll
12404 # only be used when explicitly requested
12405 if test "x$enable_dependency_tracking" = xyes; then
12406 continue
12407 else
12408 break
12409 fi
12410 ;;
12411 msvisualcpp | msvcmsys)
12412 # This compiler won't grok `-c -o', but also, the minuso test has
12413 # not run yet. These depmodes are late enough in the game, and
12414 # so weak that their functioning should not be impacted.
12415 am__obj=conftest.${OBJEXT-o}
12416 am__minus_obj=
12417 ;;
12418 none) break ;;
12419 esac
12420 if depmode=$depmode \
12421 source=sub/conftest.c object=$am__obj \
12422 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12423 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12424 >/dev/null 2>conftest.err &&
12425 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12426 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12427 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12428 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12429 # icc doesn't choke on unknown options, it will just issue warnings
12430 # or remarks (even with -Werror). So we grep stderr for any message
12431 # that says an option was ignored or not supported.
12432 # When given -MP, icc 7.0 and 7.1 complain thusly:
12433 # icc: Command line warning: ignoring option '-M'; no argument required
12434 # The diagnosis changed in icc 8.0:
12435 # icc: Command line remark: option '-MP' not supported
12436 if (grep 'ignoring option' conftest.err ||
12437 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12438 am_cv_CXX_dependencies_compiler_type=$depmode
12439 break
12440 fi
12441 fi
12442 done
12443
12444 cd ..
12445 rm -rf conftest.dir
12446 else
12447 am_cv_CXX_dependencies_compiler_type=none
12448 fi
12449
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12452 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12453 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12454
12455 if
12456 test "x$enable_dependency_tracking" != xno \
12457 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12458 am__fastdepCXX_TRUE=
12459 am__fastdepCXX_FALSE='#'
12460 else
12461 am__fastdepCXX_TRUE='#'
12462 am__fastdepCXX_FALSE=
12463 fi
12464
12465
12466 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12467 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12468 (test "X$CXX" != "Xg++"))) ; then
12469 ac_ext=cpp
12470 ac_cpp='$CXXCPP $CPPFLAGS'
12471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12475 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12476 if test -z "$CXXCPP"; then
12477 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 # Double quotes because CXXCPP needs to be expanded
12481 for CXXCPP in "$CXX -E" "/lib/cpp"
12482 do
12483 ac_preproc_ok=false
12484 for ac_cxx_preproc_warn_flag in '' yes
12485 do
12486 # Use a header file that comes with gcc, so configuring glibc
12487 # with a fresh cross-compiler works.
12488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12489 # <limits.h> exists even on freestanding compilers.
12490 # On the NeXT, cc -E runs the code through the compiler's parser,
12491 # not just through cpp. "Syntax error" is here to catch this case.
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12494 #ifdef __STDC__
12495 # include <limits.h>
12496 #else
12497 # include <assert.h>
12498 #endif
12499 Syntax error
12500 _ACEOF
12501 if ac_fn_cxx_try_cpp "$LINENO"; then :
12502
12503 else
12504 # Broken: fails on valid input.
12505 continue
12506 fi
12507 rm -f conftest.err conftest.i conftest.$ac_ext
12508
12509 # OK, works on sane cases. Now check whether nonexistent headers
12510 # can be detected and how.
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12513 #include <ac_nonexistent.h>
12514 _ACEOF
12515 if ac_fn_cxx_try_cpp "$LINENO"; then :
12516 # Broken: success on invalid input.
12517 continue
12518 else
12519 # Passes both tests.
12520 ac_preproc_ok=:
12521 break
12522 fi
12523 rm -f conftest.err conftest.i conftest.$ac_ext
12524
12525 done
12526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12527 rm -f conftest.i conftest.err conftest.$ac_ext
12528 if $ac_preproc_ok; then :
12529 break
12530 fi
12531
12532 done
12533 ac_cv_prog_CXXCPP=$CXXCPP
12534
12535 fi
12536 CXXCPP=$ac_cv_prog_CXXCPP
12537 else
12538 ac_cv_prog_CXXCPP=$CXXCPP
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12541 $as_echo "$CXXCPP" >&6; }
12542 ac_preproc_ok=false
12543 for ac_cxx_preproc_warn_flag in '' yes
12544 do
12545 # Use a header file that comes with gcc, so configuring glibc
12546 # with a fresh cross-compiler works.
12547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12548 # <limits.h> exists even on freestanding compilers.
12549 # On the NeXT, cc -E runs the code through the compiler's parser,
12550 # not just through cpp. "Syntax error" is here to catch this case.
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 #ifdef __STDC__
12554 # include <limits.h>
12555 #else
12556 # include <assert.h>
12557 #endif
12558 Syntax error
12559 _ACEOF
12560 if ac_fn_cxx_try_cpp "$LINENO"; then :
12561
12562 else
12563 # Broken: fails on valid input.
12564 continue
12565 fi
12566 rm -f conftest.err conftest.i conftest.$ac_ext
12567
12568 # OK, works on sane cases. Now check whether nonexistent headers
12569 # can be detected and how.
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12572 #include <ac_nonexistent.h>
12573 _ACEOF
12574 if ac_fn_cxx_try_cpp "$LINENO"; then :
12575 # Broken: success on invalid input.
12576 continue
12577 else
12578 # Passes both tests.
12579 ac_preproc_ok=:
12580 break
12581 fi
12582 rm -f conftest.err conftest.i conftest.$ac_ext
12583
12584 done
12585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12586 rm -f conftest.i conftest.err conftest.$ac_ext
12587 if $ac_preproc_ok; then :
12588
12589 else
12590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12592 _lt_caught_CXX_error=yes; }
12593 fi
12594
12595 ac_ext=c
12596 ac_cpp='$CPP $CPPFLAGS'
12597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12600
12601 else
12602 _lt_caught_CXX_error=yes
12603 fi
12604
12605
12606
12607
12608 ac_ext=cpp
12609 ac_cpp='$CXXCPP $CPPFLAGS'
12610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12613
12614 archive_cmds_need_lc_CXX=no
12615 allow_undefined_flag_CXX=
12616 always_export_symbols_CXX=no
12617 archive_expsym_cmds_CXX=
12618 compiler_needs_object_CXX=no
12619 export_dynamic_flag_spec_CXX=
12620 hardcode_direct_CXX=no
12621 hardcode_direct_absolute_CXX=no
12622 hardcode_libdir_flag_spec_CXX=
12623 hardcode_libdir_flag_spec_ld_CXX=
12624 hardcode_libdir_separator_CXX=
12625 hardcode_minus_L_CXX=no
12626 hardcode_shlibpath_var_CXX=unsupported
12627 hardcode_automatic_CXX=no
12628 inherit_rpath_CXX=no
12629 module_cmds_CXX=
12630 module_expsym_cmds_CXX=
12631 link_all_deplibs_CXX=unknown
12632 old_archive_cmds_CXX=$old_archive_cmds
12633 no_undefined_flag_CXX=
12634 whole_archive_flag_spec_CXX=
12635 enable_shared_with_static_runtimes_CXX=no
12636
12637 # Source file extension for C++ test sources.
12638 ac_ext=cpp
12639
12640 # Object file extension for compiled C++ test sources.
12641 objext=o
12642 objext_CXX=$objext
12643
12644 # No sense in running all these tests if we already determined that
12645 # the CXX compiler isn't working. Some variables (like enable_shared)
12646 # are currently assumed to apply to all compilers on this platform,
12647 # and will be corrupted by setting them based on a non-working compiler.
12648 if test "$_lt_caught_CXX_error" != yes; then
12649 # Code to be used in simple compile tests
12650 lt_simple_compile_test_code="int some_variable = 0;"
12651
12652 # Code to be used in simple link tests
12653 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12654
12655 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12656
12657
12658
12659
12660
12661
12662 # If no C compiler was specified, use CC.
12663 LTCC=${LTCC-"$CC"}
12664
12665 # If no C compiler flags were specified, use CFLAGS.
12666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12667
12668 # Allow CC to be a program name with arguments.
12669 compiler=$CC
12670
12671
12672 # save warnings/boilerplate of simple test code
12673 ac_outfile=conftest.$ac_objext
12674 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12675 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12676 _lt_compiler_boilerplate=`cat conftest.err`
12677 $RM conftest*
12678
12679 ac_outfile=conftest.$ac_objext
12680 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12681 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12682 _lt_linker_boilerplate=`cat conftest.err`
12683 $RM -r conftest*
12684
12685
12686 # Allow CC to be a program name with arguments.
12687 lt_save_CC=$CC
12688 lt_save_LD=$LD
12689 lt_save_GCC=$GCC
12690 GCC=$GXX
12691 lt_save_with_gnu_ld=$with_gnu_ld
12692 lt_save_path_LD=$lt_cv_path_LD
12693 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12694 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12695 else
12696 $as_unset lt_cv_prog_gnu_ld
12697 fi
12698 if test -n "${lt_cv_path_LDCXX+set}"; then
12699 lt_cv_path_LD=$lt_cv_path_LDCXX
12700 else
12701 $as_unset lt_cv_path_LD
12702 fi
12703 test -z "${LDCXX+set}" || LD=$LDCXX
12704 CC=${CXX-"c++"}
12705 compiler=$CC
12706 compiler_CXX=$CC
12707 for cc_temp in $compiler""; do
12708 case $cc_temp in
12709 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12710 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12711 \-*) ;;
12712 *) break;;
12713 esac
12714 done
12715 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12716
12717
12718 if test -n "$compiler"; then
12719 # We don't want -fno-exception when compiling C++ code, so set the
12720 # no_builtin_flag separately
12721 if test "$GXX" = yes; then
12722 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12723 else
12724 lt_prog_compiler_no_builtin_flag_CXX=
12725 fi
12726
12727 if test "$GXX" = yes; then
12728 # Set up default GNU C++ configuration
12729
12730
12731
12732 # Check whether --with-gnu-ld was given.
12733 if test "${with_gnu_ld+set}" = set; then :
12734 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12735 else
12736 with_gnu_ld=no
12737 fi
12738
12739 ac_prog=ld
12740 if test "$GCC" = yes; then
12741 # Check if gcc -print-prog-name=ld gives a path.
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12743 $as_echo_n "checking for ld used by $CC... " >&6; }
12744 case $host in
12745 *-*-mingw*)
12746 # gcc leaves a trailing carriage return which upsets mingw
12747 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12748 *)
12749 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12750 esac
12751 case $ac_prog in
12752 # Accept absolute paths.
12753 [\\/]* | ?:[\\/]*)
12754 re_direlt='/[^/][^/]*/\.\./'
12755 # Canonicalize the pathname of ld
12756 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12757 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12758 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12759 done
12760 test -z "$LD" && LD="$ac_prog"
12761 ;;
12762 "")
12763 # If it fails, then pretend we aren't using GCC.
12764 ac_prog=ld
12765 ;;
12766 *)
12767 # If it is relative, then search for the first ld in PATH.
12768 with_gnu_ld=unknown
12769 ;;
12770 esac
12771 elif test "$with_gnu_ld" = yes; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12773 $as_echo_n "checking for GNU ld... " >&6; }
12774 else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12776 $as_echo_n "checking for non-GNU ld... " >&6; }
12777 fi
12778 if test "${lt_cv_path_LD+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 if test -z "$LD"; then
12782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12783 for ac_dir in $PATH; do
12784 IFS="$lt_save_ifs"
12785 test -z "$ac_dir" && ac_dir=.
12786 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12787 lt_cv_path_LD="$ac_dir/$ac_prog"
12788 # Check to see if the program is GNU ld. I'd rather use --version,
12789 # but apparently some variants of GNU ld only accept -v.
12790 # Break only if it was the GNU/non-GNU ld that we prefer.
12791 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12792 *GNU* | *'with BFD'*)
12793 test "$with_gnu_ld" != no && break
12794 ;;
12795 *)
12796 test "$with_gnu_ld" != yes && break
12797 ;;
12798 esac
12799 fi
12800 done
12801 IFS="$lt_save_ifs"
12802 else
12803 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12804 fi
12805 fi
12806
12807 LD="$lt_cv_path_LD"
12808 if test -n "$LD"; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12810 $as_echo "$LD" >&6; }
12811 else
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813 $as_echo "no" >&6; }
12814 fi
12815 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12817 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12818 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12822 case `$LD -v 2>&1 </dev/null` in
12823 *GNU* | *'with BFD'*)
12824 lt_cv_prog_gnu_ld=yes
12825 ;;
12826 *)
12827 lt_cv_prog_gnu_ld=no
12828 ;;
12829 esac
12830 fi
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12832 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12833 with_gnu_ld=$lt_cv_prog_gnu_ld
12834
12835
12836
12837
12838
12839
12840
12841 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12842 # archiving commands below assume that GNU ld is being used.
12843 if test "$with_gnu_ld" = yes; then
12844 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12846
12847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12848 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12849
12850 # If archive_cmds runs LD, not CC, wlarc should be empty
12851 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12852 # investigate it a little bit more. (MM)
12853 wlarc='${wl}'
12854
12855 # ancient GNU ld didn't support --whole-archive et. al.
12856 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12857 $GREP 'no-whole-archive' > /dev/null; then
12858 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12859 else
12860 whole_archive_flag_spec_CXX=
12861 fi
12862 else
12863 with_gnu_ld=no
12864 wlarc=
12865
12866 # A generic and very simple default shared library creation
12867 # command for GNU C++ for the case where it uses the native
12868 # linker, instead of GNU ld. If possible, this setting should
12869 # overridden to take advantage of the native linker features on
12870 # the platform it is being used on.
12871 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12872 fi
12873
12874 # Commands to make compiler produce verbose output that lists
12875 # what "hidden" libraries, object files and flags are used when
12876 # linking a shared library.
12877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12878
12879 else
12880 GXX=no
12881 with_gnu_ld=no
12882 wlarc=
12883 fi
12884
12885 # PORTME: fill in a description of your system's C++ link characteristics
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12887 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12888 ld_shlibs_CXX=yes
12889 case $host_os in
12890 aix3*)
12891 # FIXME: insert proper C++ library support
12892 ld_shlibs_CXX=no
12893 ;;
12894 aix[4-9]*)
12895 if test "$host_cpu" = ia64; then
12896 # On IA64, the linker does run time linking by default, so we don't
12897 # have to do anything special.
12898 aix_use_runtimelinking=no
12899 exp_sym_flag='-Bexport'
12900 no_entry_flag=""
12901 else
12902 aix_use_runtimelinking=no
12903
12904 # Test if we are trying to use run time linking or normal
12905 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12906 # need to do runtime linking.
12907 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12908 for ld_flag in $LDFLAGS; do
12909 case $ld_flag in
12910 *-brtl*)
12911 aix_use_runtimelinking=yes
12912 break
12913 ;;
12914 esac
12915 done
12916 ;;
12917 esac
12918
12919 exp_sym_flag='-bexport'
12920 no_entry_flag='-bnoentry'
12921 fi
12922
12923 # When large executables or shared objects are built, AIX ld can
12924 # have problems creating the table of contents. If linking a library
12925 # or program results in "error TOC overflow" add -mminimal-toc to
12926 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12927 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12928
12929 archive_cmds_CXX=''
12930 hardcode_direct_CXX=yes
12931 hardcode_direct_absolute_CXX=yes
12932 hardcode_libdir_separator_CXX=':'
12933 link_all_deplibs_CXX=yes
12934 file_list_spec_CXX='${wl}-f,'
12935
12936 if test "$GXX" = yes; then
12937 case $host_os in aix4.[012]|aix4.[012].*)
12938 # We only want to do this on AIX 4.2 and lower, the check
12939 # below for broken collect2 doesn't work under 4.3+
12940 collect2name=`${CC} -print-prog-name=collect2`
12941 if test -f "$collect2name" &&
12942 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12943 then
12944 # We have reworked collect2
12945 :
12946 else
12947 # We have old collect2
12948 hardcode_direct_CXX=unsupported
12949 # It fails to find uninstalled libraries when the uninstalled
12950 # path is not listed in the libpath. Setting hardcode_minus_L
12951 # to unsupported forces relinking
12952 hardcode_minus_L_CXX=yes
12953 hardcode_libdir_flag_spec_CXX='-L$libdir'
12954 hardcode_libdir_separator_CXX=
12955 fi
12956 esac
12957 shared_flag='-shared'
12958 if test "$aix_use_runtimelinking" = yes; then
12959 shared_flag="$shared_flag "'${wl}-G'
12960 fi
12961 else
12962 # not using gcc
12963 if test "$host_cpu" = ia64; then
12964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12965 # chokes on -Wl,-G. The following line is correct:
12966 shared_flag='-G'
12967 else
12968 if test "$aix_use_runtimelinking" = yes; then
12969 shared_flag='${wl}-G'
12970 else
12971 shared_flag='${wl}-bM:SRE'
12972 fi
12973 fi
12974 fi
12975
12976 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12977 # It seems that -bexpall does not export symbols beginning with
12978 # underscore (_), so it is better to generate a list of symbols to
12979 # export.
12980 always_export_symbols_CXX=yes
12981 if test "$aix_use_runtimelinking" = yes; then
12982 # Warning - without using the other runtime loading flags (-brtl),
12983 # -berok will link without error, but may produce a broken library.
12984 allow_undefined_flag_CXX='-berok'
12985 # Determine the default libpath from the value encoded in an empty
12986 # executable.
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12989
12990 int
12991 main ()
12992 {
12993
12994 ;
12995 return 0;
12996 }
12997 _ACEOF
12998 if ac_fn_cxx_try_link "$LINENO"; then :
12999
13000 lt_aix_libpath_sed='
13001 /Import File Strings/,/^$/ {
13002 /^0/ {
13003 s/^0 *\(.*\)$/\1/
13004 p
13005 }
13006 }'
13007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13008 # Check for a 64-bit object if we didn't find anything.
13009 if test -z "$aix_libpath"; then
13010 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13011 fi
13012 fi
13013 rm -f core conftest.err conftest.$ac_objext \
13014 conftest$ac_exeext conftest.$ac_ext
13015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13016
13017 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13018
13019 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13020 else
13021 if test "$host_cpu" = ia64; then
13022 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13023 allow_undefined_flag_CXX="-z nodefs"
13024 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"
13025 else
13026 # Determine the default libpath from the value encoded in an
13027 # empty executable.
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13030
13031 int
13032 main ()
13033 {
13034
13035 ;
13036 return 0;
13037 }
13038 _ACEOF
13039 if ac_fn_cxx_try_link "$LINENO"; then :
13040
13041 lt_aix_libpath_sed='
13042 /Import File Strings/,/^$/ {
13043 /^0/ {
13044 s/^0 *\(.*\)$/\1/
13045 p
13046 }
13047 }'
13048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13049 # Check for a 64-bit object if we didn't find anything.
13050 if test -z "$aix_libpath"; then
13051 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13052 fi
13053 fi
13054 rm -f core conftest.err conftest.$ac_objext \
13055 conftest$ac_exeext conftest.$ac_ext
13056 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13057
13058 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13059 # Warning - without using the other run time loading flags,
13060 # -berok will link without error, but may produce a broken library.
13061 no_undefined_flag_CXX=' ${wl}-bernotok'
13062 allow_undefined_flag_CXX=' ${wl}-berok'
13063 # Exported symbols can be pulled into shared objects from archives
13064 whole_archive_flag_spec_CXX='$convenience'
13065 archive_cmds_need_lc_CXX=yes
13066 # This is similar to how AIX traditionally builds its shared
13067 # libraries.
13068 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'
13069 fi
13070 fi
13071 ;;
13072
13073 beos*)
13074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13075 allow_undefined_flag_CXX=unsupported
13076 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13077 # support --undefined. This deserves some investigation. FIXME
13078 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13079 else
13080 ld_shlibs_CXX=no
13081 fi
13082 ;;
13083
13084 chorus*)
13085 case $cc_basename in
13086 *)
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 ;;
13090 esac
13091 ;;
13092
13093 cygwin* | mingw* | pw32* | cegcc*)
13094 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13095 # as there is no search path for DLLs.
13096 hardcode_libdir_flag_spec_CXX='-L$libdir'
13097 allow_undefined_flag_CXX=unsupported
13098 always_export_symbols_CXX=no
13099 enable_shared_with_static_runtimes_CXX=yes
13100
13101 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13102 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'
13103 # If the export-symbols file already is a .def file (1st line
13104 # is EXPORTS), use it as is; otherwise, prepend...
13105 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13106 cp $export_symbols $output_objdir/$soname.def;
13107 else
13108 echo EXPORTS > $output_objdir/$soname.def;
13109 cat $export_symbols >> $output_objdir/$soname.def;
13110 fi~
13111 $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'
13112 else
13113 ld_shlibs_CXX=no
13114 fi
13115 ;;
13116 darwin* | rhapsody*)
13117
13118
13119 archive_cmds_need_lc_CXX=no
13120 hardcode_direct_CXX=no
13121 hardcode_automatic_CXX=yes
13122 hardcode_shlibpath_var_CXX=unsupported
13123 whole_archive_flag_spec_CXX=''
13124 link_all_deplibs_CXX=yes
13125 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13126 case $cc_basename in
13127 ifort*) _lt_dar_can_shared=yes ;;
13128 *) _lt_dar_can_shared=$GCC ;;
13129 esac
13130 if test "$_lt_dar_can_shared" = "yes"; then
13131 output_verbose_link_cmd=echo
13132 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}"
13133 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13134 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}"
13135 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}"
13136 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13137 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}"
13138 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}"
13139 fi
13140
13141 else
13142 ld_shlibs_CXX=no
13143 fi
13144
13145 ;;
13146
13147 dgux*)
13148 case $cc_basename in
13149 ec++*)
13150 # FIXME: insert proper C++ library support
13151 ld_shlibs_CXX=no
13152 ;;
13153 ghcx*)
13154 # Green Hills C++ Compiler
13155 # FIXME: insert proper C++ library support
13156 ld_shlibs_CXX=no
13157 ;;
13158 *)
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13161 ;;
13162 esac
13163 ;;
13164
13165 freebsd[12]*)
13166 # C++ shared libraries reported to be fairly broken before
13167 # switch to ELF
13168 ld_shlibs_CXX=no
13169 ;;
13170
13171 freebsd-elf*)
13172 archive_cmds_need_lc_CXX=no
13173 ;;
13174
13175 freebsd* | dragonfly*)
13176 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13177 # conventions
13178 ld_shlibs_CXX=yes
13179 ;;
13180
13181 gnu*)
13182 ;;
13183
13184 hpux9*)
13185 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13186 hardcode_libdir_separator_CXX=:
13187 export_dynamic_flag_spec_CXX='${wl}-E'
13188 hardcode_direct_CXX=yes
13189 hardcode_minus_L_CXX=yes # Not in the search PATH,
13190 # but as the default
13191 # location of the library.
13192
13193 case $cc_basename in
13194 CC*)
13195 # FIXME: insert proper C++ library support
13196 ld_shlibs_CXX=no
13197 ;;
13198 aCC*)
13199 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'
13200 # Commands to make compiler produce verbose output that lists
13201 # what "hidden" libraries, object files and flags are used when
13202 # linking a shared library.
13203 #
13204 # There doesn't appear to be a way to prevent this compiler from
13205 # explicitly linking system object files so we need to strip them
13206 # from the output so that they don't get included in the library
13207 # dependencies.
13208 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; $ECHO "X$list" | $Xsed'
13209 ;;
13210 *)
13211 if test "$GXX" = yes; then
13212 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
13213 else
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13216 fi
13217 ;;
13218 esac
13219 ;;
13220
13221 hpux10*|hpux11*)
13222 if test $with_gnu_ld = no; then
13223 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13224 hardcode_libdir_separator_CXX=:
13225
13226 case $host_cpu in
13227 hppa*64*|ia64*)
13228 ;;
13229 *)
13230 export_dynamic_flag_spec_CXX='${wl}-E'
13231 ;;
13232 esac
13233 fi
13234 case $host_cpu in
13235 hppa*64*|ia64*)
13236 hardcode_direct_CXX=no
13237 hardcode_shlibpath_var_CXX=no
13238 ;;
13239 *)
13240 hardcode_direct_CXX=yes
13241 hardcode_direct_absolute_CXX=yes
13242 hardcode_minus_L_CXX=yes # Not in the search PATH,
13243 # but as the default
13244 # location of the library.
13245 ;;
13246 esac
13247
13248 case $cc_basename in
13249 CC*)
13250 # FIXME: insert proper C++ library support
13251 ld_shlibs_CXX=no
13252 ;;
13253 aCC*)
13254 case $host_cpu in
13255 hppa*64*)
13256 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13257 ;;
13258 ia64*)
13259 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13260 ;;
13261 *)
13262 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13263 ;;
13264 esac
13265 # Commands to make compiler produce verbose output that lists
13266 # what "hidden" libraries, object files and flags are used when
13267 # linking a shared library.
13268 #
13269 # There doesn't appear to be a way to prevent this compiler from
13270 # explicitly linking system object files so we need to strip them
13271 # from the output so that they don't get included in the library
13272 # dependencies.
13273 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; $ECHO "X$list" | $Xsed'
13274 ;;
13275 *)
13276 if test "$GXX" = yes; then
13277 if test $with_gnu_ld = no; then
13278 case $host_cpu in
13279 hppa*64*)
13280 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13281 ;;
13282 ia64*)
13283 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13284 ;;
13285 *)
13286 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13287 ;;
13288 esac
13289 fi
13290 else
13291 # FIXME: insert proper C++ library support
13292 ld_shlibs_CXX=no
13293 fi
13294 ;;
13295 esac
13296 ;;
13297
13298 interix[3-9]*)
13299 hardcode_direct_CXX=no
13300 hardcode_shlibpath_var_CXX=no
13301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13302 export_dynamic_flag_spec_CXX='${wl}-E'
13303 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13304 # Instead, shared libraries are loaded at an image base (0x10000000 by
13305 # default) and relocated if they conflict, which is a slow very memory
13306 # consuming and fragmenting process. To avoid this, we pick a random,
13307 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13308 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13309 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'
13310 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'
13311 ;;
13312 irix5* | irix6*)
13313 case $cc_basename in
13314 CC*)
13315 # SGI C++
13316 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13317
13318 # Archives containing C++ object files must be created using
13319 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13320 # necessary to make sure instantiated templates are included
13321 # in the archive.
13322 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13323 ;;
13324 *)
13325 if test "$GXX" = yes; then
13326 if test "$with_gnu_ld" = no; then
13327 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13328 else
13329 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13330 fi
13331 fi
13332 link_all_deplibs_CXX=yes
13333 ;;
13334 esac
13335 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13336 hardcode_libdir_separator_CXX=:
13337 inherit_rpath_CXX=yes
13338 ;;
13339
13340 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13341 case $cc_basename in
13342 KCC*)
13343 # Kuck and Associates, Inc. (KAI) C++ Compiler
13344
13345 # KCC will only create a shared library if the output file
13346 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13347 # to its proper name (with version) after linking.
13348 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'
13349 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'
13350 # Commands to make compiler produce verbose output that lists
13351 # what "hidden" libraries, object files and flags are used when
13352 # linking a shared library.
13353 #
13354 # There doesn't appear to be a way to prevent this compiler from
13355 # explicitly linking system object files so we need to strip them
13356 # from the output so that they don't get included in the library
13357 # dependencies.
13358 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; $ECHO "X$list" | $Xsed'
13359
13360 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13362
13363 # Archives containing C++ object files must be created using
13364 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13365 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13366 ;;
13367 icpc* | ecpc* )
13368 # Intel C++
13369 with_gnu_ld=yes
13370 # version 8.0 and above of icpc choke on multiply defined symbols
13371 # if we add $predep_objects and $postdep_objects, however 7.1 and
13372 # earlier do not add the objects themselves.
13373 case `$CC -V 2>&1` in
13374 *"Version 7."*)
13375 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13376 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'
13377 ;;
13378 *) # Version 8.0 or newer
13379 tmp_idyn=
13380 case $host_cpu in
13381 ia64*) tmp_idyn=' -i_dynamic';;
13382 esac
13383 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13384 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'
13385 ;;
13386 esac
13387 archive_cmds_need_lc_CXX=no
13388 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13389 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13390 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13391 ;;
13392 pgCC* | pgcpp*)
13393 # Portland Group C++ compiler
13394 case `$CC -V` in
13395 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13396 prelink_cmds_CXX='tpldir=Template.dir~
13397 rm -rf $tpldir~
13398 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13399 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13400 old_archive_cmds_CXX='tpldir=Template.dir~
13401 rm -rf $tpldir~
13402 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13403 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13404 $RANLIB $oldlib'
13405 archive_cmds_CXX='tpldir=Template.dir~
13406 rm -rf $tpldir~
13407 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13408 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13409 archive_expsym_cmds_CXX='tpldir=Template.dir~
13410 rm -rf $tpldir~
13411 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13412 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13413 ;;
13414 *) # Version 6 will use weak symbols
13415 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13416 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'
13417 ;;
13418 esac
13419
13420 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13422 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13423 ;;
13424 cxx*)
13425 # Compaq C++
13426 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13427 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'
13428
13429 runpath_var=LD_RUN_PATH
13430 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13431 hardcode_libdir_separator_CXX=:
13432
13433 # Commands to make compiler produce verbose output that lists
13434 # what "hidden" libraries, object files and flags are used when
13435 # linking a shared library.
13436 #
13437 # There doesn't appear to be a way to prevent this compiler from
13438 # explicitly linking system object files so we need to strip them
13439 # from the output so that they don't get included in the library
13440 # dependencies.
13441 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13442 ;;
13443 xl*)
13444 # IBM XL 8.0 on PPC, with GNU ld
13445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13447 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13448 if test "x$supports_anon_versioning" = xyes; then
13449 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13450 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13451 echo "local: *; };" >> $output_objdir/$libname.ver~
13452 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13453 fi
13454 ;;
13455 *)
13456 case `$CC -V 2>&1 | sed 5q` in
13457 *Sun\ C*)
13458 # Sun C++ 5.9
13459 no_undefined_flag_CXX=' -zdefs'
13460 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13461 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'
13462 hardcode_libdir_flag_spec_CXX='-R$libdir'
13463 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13464 compiler_needs_object_CXX=yes
13465
13466 # Not sure whether something based on
13467 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13468 # would be better.
13469 output_verbose_link_cmd='echo'
13470
13471 # Archives containing C++ object files must be created using
13472 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13473 # necessary to make sure instantiated templates are included
13474 # in the archive.
13475 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13476 ;;
13477 esac
13478 ;;
13479 esac
13480 ;;
13481
13482 lynxos*)
13483 # FIXME: insert proper C++ library support
13484 ld_shlibs_CXX=no
13485 ;;
13486
13487 m88k*)
13488 # FIXME: insert proper C++ library support
13489 ld_shlibs_CXX=no
13490 ;;
13491
13492 mvs*)
13493 case $cc_basename in
13494 cxx*)
13495 # FIXME: insert proper C++ library support
13496 ld_shlibs_CXX=no
13497 ;;
13498 *)
13499 # FIXME: insert proper C++ library support
13500 ld_shlibs_CXX=no
13501 ;;
13502 esac
13503 ;;
13504
13505 netbsd*)
13506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13507 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13508 wlarc=
13509 hardcode_libdir_flag_spec_CXX='-R$libdir'
13510 hardcode_direct_CXX=yes
13511 hardcode_shlibpath_var_CXX=no
13512 fi
13513 # Workaround some broken pre-1.5 toolchains
13514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13515 ;;
13516
13517 *nto* | *qnx*)
13518 ld_shlibs_CXX=yes
13519 ;;
13520
13521 openbsd2*)
13522 # C++ shared libraries are fairly broken
13523 ld_shlibs_CXX=no
13524 ;;
13525
13526 openbsd*)
13527 if test -f /usr/libexec/ld.so; then
13528 hardcode_direct_CXX=yes
13529 hardcode_shlibpath_var_CXX=no
13530 hardcode_direct_absolute_CXX=yes
13531 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13532 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13534 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13535 export_dynamic_flag_spec_CXX='${wl}-E'
13536 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13537 fi
13538 output_verbose_link_cmd=echo
13539 else
13540 ld_shlibs_CXX=no
13541 fi
13542 ;;
13543
13544 osf3* | osf4* | osf5*)
13545 case $cc_basename in
13546 KCC*)
13547 # Kuck and Associates, Inc. (KAI) C++ Compiler
13548
13549 # KCC will only create a shared library if the output file
13550 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13551 # to its proper name (with version) after linking.
13552 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'
13553
13554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13555 hardcode_libdir_separator_CXX=:
13556
13557 # Archives containing C++ object files must be created using
13558 # the KAI C++ compiler.
13559 case $host in
13560 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13561 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13562 esac
13563 ;;
13564 RCC*)
13565 # Rational C++ 2.4.1
13566 # FIXME: insert proper C++ library support
13567 ld_shlibs_CXX=no
13568 ;;
13569 cxx*)
13570 case $host in
13571 osf3*)
13572 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13573 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13574 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13575 ;;
13576 *)
13577 allow_undefined_flag_CXX=' -expect_unresolved \*'
13578 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13579 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13580 echo "-hidden">> $lib.exp~
13581 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13582 $RM $lib.exp'
13583 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13584 ;;
13585 esac
13586
13587 hardcode_libdir_separator_CXX=:
13588
13589 # Commands to make compiler produce verbose output that lists
13590 # what "hidden" libraries, object files and flags are used when
13591 # linking a shared library.
13592 #
13593 # There doesn't appear to be a way to prevent this compiler from
13594 # explicitly linking system object files so we need to strip them
13595 # from the output so that they don't get included in the library
13596 # dependencies.
13597 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13598 ;;
13599 *)
13600 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13601 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13602 case $host in
13603 osf3*)
13604 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13605 ;;
13606 *)
13607 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13608 ;;
13609 esac
13610
13611 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13612 hardcode_libdir_separator_CXX=:
13613
13614 # Commands to make compiler produce verbose output that lists
13615 # what "hidden" libraries, object files and flags are used when
13616 # linking a shared library.
13617 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13618
13619 else
13620 # FIXME: insert proper C++ library support
13621 ld_shlibs_CXX=no
13622 fi
13623 ;;
13624 esac
13625 ;;
13626
13627 psos*)
13628 # FIXME: insert proper C++ library support
13629 ld_shlibs_CXX=no
13630 ;;
13631
13632 sunos4*)
13633 case $cc_basename in
13634 CC*)
13635 # Sun C++ 4.x
13636 # FIXME: insert proper C++ library support
13637 ld_shlibs_CXX=no
13638 ;;
13639 lcc*)
13640 # Lucid
13641 # FIXME: insert proper C++ library support
13642 ld_shlibs_CXX=no
13643 ;;
13644 *)
13645 # FIXME: insert proper C++ library support
13646 ld_shlibs_CXX=no
13647 ;;
13648 esac
13649 ;;
13650
13651 solaris*)
13652 case $cc_basename in
13653 CC*)
13654 # Sun C++ 4.2, 5.x and Centerline C++
13655 archive_cmds_need_lc_CXX=yes
13656 no_undefined_flag_CXX=' -zdefs'
13657 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13658 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13659 $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'
13660
13661 hardcode_libdir_flag_spec_CXX='-R$libdir'
13662 hardcode_shlibpath_var_CXX=no
13663 case $host_os in
13664 solaris2.[0-5] | solaris2.[0-5].*) ;;
13665 *)
13666 # The compiler driver will combine and reorder linker options,
13667 # but understands `-z linker_flag'.
13668 # Supported since Solaris 2.6 (maybe 2.5.1?)
13669 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13670 ;;
13671 esac
13672 link_all_deplibs_CXX=yes
13673
13674 output_verbose_link_cmd='echo'
13675
13676 # Archives containing C++ object files must be created using
13677 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13678 # necessary to make sure instantiated templates are included
13679 # in the archive.
13680 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13681 ;;
13682 gcx*)
13683 # Green Hills C++ Compiler
13684 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13685
13686 # The C++ compiler must be used to create the archive.
13687 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13688 ;;
13689 *)
13690 # GNU C++ compiler with Solaris linker
13691 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13692 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13693 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13694 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13695 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13696 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13697
13698 # Commands to make compiler produce verbose output that lists
13699 # what "hidden" libraries, object files and flags are used when
13700 # linking a shared library.
13701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13702 else
13703 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13704 # platform.
13705 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13706 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13707 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13708
13709 # Commands to make compiler produce verbose output that lists
13710 # what "hidden" libraries, object files and flags are used when
13711 # linking a shared library.
13712 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13713 fi
13714
13715 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13716 case $host_os in
13717 solaris2.[0-5] | solaris2.[0-5].*) ;;
13718 *)
13719 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13720 ;;
13721 esac
13722 fi
13723 ;;
13724 esac
13725 ;;
13726
13727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13728 no_undefined_flag_CXX='${wl}-z,text'
13729 archive_cmds_need_lc_CXX=no
13730 hardcode_shlibpath_var_CXX=no
13731 runpath_var='LD_RUN_PATH'
13732
13733 case $cc_basename in
13734 CC*)
13735 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737 ;;
13738 *)
13739 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13741 ;;
13742 esac
13743 ;;
13744
13745 sysv5* | sco3.2v5* | sco5v6*)
13746 # Note: We can NOT use -z defs as we might desire, because we do not
13747 # link with -lc, and that would cause any symbols used from libc to
13748 # always be unresolved, which means just about no library would
13749 # ever link correctly. If we're not using GNU ld we use -z text
13750 # though, which does catch some bad symbols but isn't as heavy-handed
13751 # as -z defs.
13752 no_undefined_flag_CXX='${wl}-z,text'
13753 allow_undefined_flag_CXX='${wl}-z,nodefs'
13754 archive_cmds_need_lc_CXX=no
13755 hardcode_shlibpath_var_CXX=no
13756 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13757 hardcode_libdir_separator_CXX=':'
13758 link_all_deplibs_CXX=yes
13759 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13760 runpath_var='LD_RUN_PATH'
13761
13762 case $cc_basename in
13763 CC*)
13764 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13766 ;;
13767 *)
13768 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 ;;
13771 esac
13772 ;;
13773
13774 tandem*)
13775 case $cc_basename in
13776 NCC*)
13777 # NonStop-UX NCC 3.20
13778 # FIXME: insert proper C++ library support
13779 ld_shlibs_CXX=no
13780 ;;
13781 *)
13782 # FIXME: insert proper C++ library support
13783 ld_shlibs_CXX=no
13784 ;;
13785 esac
13786 ;;
13787
13788 vxworks*)
13789 # FIXME: insert proper C++ library support
13790 ld_shlibs_CXX=no
13791 ;;
13792
13793 *)
13794 # FIXME: insert proper C++ library support
13795 ld_shlibs_CXX=no
13796 ;;
13797 esac
13798
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13800 $as_echo "$ld_shlibs_CXX" >&6; }
13801 test "$ld_shlibs_CXX" = no && can_build_shared=no
13802
13803 GCC_CXX="$GXX"
13804 LD_CXX="$LD"
13805
13806 ## CAVEAT EMPTOR:
13807 ## There is no encapsulation within the following macros, do not change
13808 ## the running order or otherwise move them around unless you know exactly
13809 ## what you are doing...
13810 # Dependencies to place before and after the object being linked:
13811 predep_objects_CXX=
13812 postdep_objects_CXX=
13813 predeps_CXX=
13814 postdeps_CXX=
13815 compiler_lib_search_path_CXX=
13816
13817 cat > conftest.$ac_ext <<_LT_EOF
13818 class Foo
13819 {
13820 public:
13821 Foo (void) { a = 0; }
13822 private:
13823 int a;
13824 };
13825 _LT_EOF
13826
13827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13828 (eval $ac_compile) 2>&5
13829 ac_status=$?
13830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13831 test $ac_status = 0; }; then
13832 # Parse the compiler output and extract the necessary
13833 # objects, libraries and library flags.
13834
13835 # Sentinel used to keep track of whether or not we are before
13836 # the conftest object file.
13837 pre_test_object_deps_done=no
13838
13839 for p in `eval "$output_verbose_link_cmd"`; do
13840 case $p in
13841
13842 -L* | -R* | -l*)
13843 # Some compilers place space between "-{L,R}" and the path.
13844 # Remove the space.
13845 if test $p = "-L" ||
13846 test $p = "-R"; then
13847 prev=$p
13848 continue
13849 else
13850 prev=
13851 fi
13852
13853 if test "$pre_test_object_deps_done" = no; then
13854 case $p in
13855 -L* | -R*)
13856 # Internal compiler library paths should come after those
13857 # provided the user. The postdeps already come after the
13858 # user supplied libs so there is no need to process them.
13859 if test -z "$compiler_lib_search_path_CXX"; then
13860 compiler_lib_search_path_CXX="${prev}${p}"
13861 else
13862 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13863 fi
13864 ;;
13865 # The "-l" case would never come before the object being
13866 # linked, so don't bother handling this case.
13867 esac
13868 else
13869 if test -z "$postdeps_CXX"; then
13870 postdeps_CXX="${prev}${p}"
13871 else
13872 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13873 fi
13874 fi
13875 ;;
13876
13877 *.$objext)
13878 # This assumes that the test object file only shows up
13879 # once in the compiler output.
13880 if test "$p" = "conftest.$objext"; then
13881 pre_test_object_deps_done=yes
13882 continue
13883 fi
13884
13885 if test "$pre_test_object_deps_done" = no; then
13886 if test -z "$predep_objects_CXX"; then
13887 predep_objects_CXX="$p"
13888 else
13889 predep_objects_CXX="$predep_objects_CXX $p"
13890 fi
13891 else
13892 if test -z "$postdep_objects_CXX"; then
13893 postdep_objects_CXX="$p"
13894 else
13895 postdep_objects_CXX="$postdep_objects_CXX $p"
13896 fi
13897 fi
13898 ;;
13899
13900 *) ;; # Ignore the rest.
13901
13902 esac
13903 done
13904
13905 # Clean up.
13906 rm -f a.out a.exe
13907 else
13908 echo "libtool.m4: error: problem compiling CXX test program"
13909 fi
13910
13911 $RM -f confest.$objext
13912
13913 # PORTME: override above test on systems where it is broken
13914 case $host_os in
13915 interix[3-9]*)
13916 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13917 # hack all around it, let's just trust "g++" to DTRT.
13918 predep_objects_CXX=
13919 postdep_objects_CXX=
13920 postdeps_CXX=
13921 ;;
13922
13923 linux*)
13924 case `$CC -V 2>&1 | sed 5q` in
13925 *Sun\ C*)
13926 # Sun C++ 5.9
13927
13928 # The more standards-conforming stlport4 library is
13929 # incompatible with the Cstd library. Avoid specifying
13930 # it if it's in CXXFLAGS. Ignore libCrun as
13931 # -library=stlport4 depends on it.
13932 case " $CXX $CXXFLAGS " in
13933 *" -library=stlport4 "*)
13934 solaris_use_stlport4=yes
13935 ;;
13936 esac
13937
13938 if test "$solaris_use_stlport4" != yes; then
13939 postdeps_CXX='-library=Cstd -library=Crun'
13940 fi
13941 ;;
13942 esac
13943 ;;
13944
13945 solaris*)
13946 case $cc_basename in
13947 CC*)
13948 # The more standards-conforming stlport4 library is
13949 # incompatible with the Cstd library. Avoid specifying
13950 # it if it's in CXXFLAGS. Ignore libCrun as
13951 # -library=stlport4 depends on it.
13952 case " $CXX $CXXFLAGS " in
13953 *" -library=stlport4 "*)
13954 solaris_use_stlport4=yes
13955 ;;
13956 esac
13957
13958 # Adding this requires a known-good setup of shared libraries for
13959 # Sun compiler versions before 5.6, else PIC objects from an old
13960 # archive will be linked into the output, leading to subtle bugs.
13961 if test "$solaris_use_stlport4" != yes; then
13962 postdeps_CXX='-library=Cstd -library=Crun'
13963 fi
13964 ;;
13965 esac
13966 ;;
13967 esac
13968
13969
13970 case " $postdeps_CXX " in
13971 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13972 esac
13973 compiler_lib_search_dirs_CXX=
13974 if test -n "${compiler_lib_search_path_CXX}"; then
13975 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13976 fi
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008 lt_prog_compiler_wl_CXX=
14009 lt_prog_compiler_pic_CXX=
14010 lt_prog_compiler_static_CXX=
14011
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14013 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14014
14015 # C++ specific cases for pic, static, wl, etc.
14016 if test "$GXX" = yes; then
14017 lt_prog_compiler_wl_CXX='-Wl,'
14018 lt_prog_compiler_static_CXX='-static'
14019
14020 case $host_os in
14021 aix*)
14022 # All AIX code is PIC.
14023 if test "$host_cpu" = ia64; then
14024 # AIX 5 now supports IA64 processor
14025 lt_prog_compiler_static_CXX='-Bstatic'
14026 fi
14027 ;;
14028
14029 amigaos*)
14030 case $host_cpu in
14031 powerpc)
14032 # see comment about AmigaOS4 .so support
14033 lt_prog_compiler_pic_CXX='-fPIC'
14034 ;;
14035 m68k)
14036 # FIXME: we need at least 68020 code to build shared libraries, but
14037 # adding the `-m68020' flag to GCC prevents building anything better,
14038 # like `-m68040'.
14039 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14040 ;;
14041 esac
14042 ;;
14043
14044 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14045 # PIC is the default for these OSes.
14046 ;;
14047 mingw* | cygwin* | os2* | pw32* | cegcc*)
14048 # This hack is so that the source file can tell whether it is being
14049 # built for inclusion in a dll (and should export symbols for example).
14050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14051 # (--disable-auto-import) libraries
14052 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14053 ;;
14054 darwin* | rhapsody*)
14055 # PIC is the default on this platform
14056 # Common symbols not allowed in MH_DYLIB files
14057 lt_prog_compiler_pic_CXX='-fno-common'
14058 ;;
14059 *djgpp*)
14060 # DJGPP does not support shared libraries at all
14061 lt_prog_compiler_pic_CXX=
14062 ;;
14063 interix[3-9]*)
14064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14065 # Instead, we relocate shared libraries at runtime.
14066 ;;
14067 sysv4*MP*)
14068 if test -d /usr/nec; then
14069 lt_prog_compiler_pic_CXX=-Kconform_pic
14070 fi
14071 ;;
14072 hpux*)
14073 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14074 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14075 # sets the default TLS model and affects inlining.
14076 case $host_cpu in
14077 hppa*64*)
14078 ;;
14079 *)
14080 lt_prog_compiler_pic_CXX='-fPIC'
14081 ;;
14082 esac
14083 ;;
14084 *qnx* | *nto*)
14085 # QNX uses GNU C++, but need to define -shared option too, otherwise
14086 # it will coredump.
14087 lt_prog_compiler_pic_CXX='-fPIC -shared'
14088 ;;
14089 *)
14090 lt_prog_compiler_pic_CXX='-fPIC'
14091 ;;
14092 esac
14093 else
14094 case $host_os in
14095 aix[4-9]*)
14096 # All AIX code is PIC.
14097 if test "$host_cpu" = ia64; then
14098 # AIX 5 now supports IA64 processor
14099 lt_prog_compiler_static_CXX='-Bstatic'
14100 else
14101 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14102 fi
14103 ;;
14104 chorus*)
14105 case $cc_basename in
14106 cxch68*)
14107 # Green Hills C++ Compiler
14108 # _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"
14109 ;;
14110 esac
14111 ;;
14112 dgux*)
14113 case $cc_basename in
14114 ec++*)
14115 lt_prog_compiler_pic_CXX='-KPIC'
14116 ;;
14117 ghcx*)
14118 # Green Hills C++ Compiler
14119 lt_prog_compiler_pic_CXX='-pic'
14120 ;;
14121 *)
14122 ;;
14123 esac
14124 ;;
14125 freebsd* | dragonfly*)
14126 # FreeBSD uses GNU C++
14127 ;;
14128 hpux9* | hpux10* | hpux11*)
14129 case $cc_basename in
14130 CC*)
14131 lt_prog_compiler_wl_CXX='-Wl,'
14132 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14133 if test "$host_cpu" != ia64; then
14134 lt_prog_compiler_pic_CXX='+Z'
14135 fi
14136 ;;
14137 aCC*)
14138 lt_prog_compiler_wl_CXX='-Wl,'
14139 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14140 case $host_cpu in
14141 hppa*64*|ia64*)
14142 # +Z the default
14143 ;;
14144 *)
14145 lt_prog_compiler_pic_CXX='+Z'
14146 ;;
14147 esac
14148 ;;
14149 *)
14150 ;;
14151 esac
14152 ;;
14153 interix*)
14154 # This is c89, which is MS Visual C++ (no shared libs)
14155 # Anyone wants to do a port?
14156 ;;
14157 irix5* | irix6* | nonstopux*)
14158 case $cc_basename in
14159 CC*)
14160 lt_prog_compiler_wl_CXX='-Wl,'
14161 lt_prog_compiler_static_CXX='-non_shared'
14162 # CC pic flag -KPIC is the default.
14163 ;;
14164 *)
14165 ;;
14166 esac
14167 ;;
14168 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14169 case $cc_basename in
14170 KCC*)
14171 # KAI C++ Compiler
14172 lt_prog_compiler_wl_CXX='--backend -Wl,'
14173 lt_prog_compiler_pic_CXX='-fPIC'
14174 ;;
14175 ecpc* )
14176 # old Intel C++ for x86_64 which still supported -KPIC.
14177 lt_prog_compiler_wl_CXX='-Wl,'
14178 lt_prog_compiler_pic_CXX='-KPIC'
14179 lt_prog_compiler_static_CXX='-static'
14180 ;;
14181 icpc* )
14182 # Intel C++, used to be incompatible with GCC.
14183 # ICC 10 doesn't accept -KPIC any more.
14184 lt_prog_compiler_wl_CXX='-Wl,'
14185 lt_prog_compiler_pic_CXX='-fPIC'
14186 lt_prog_compiler_static_CXX='-static'
14187 ;;
14188 pgCC* | pgcpp*)
14189 # Portland Group C++ compiler
14190 lt_prog_compiler_wl_CXX='-Wl,'
14191 lt_prog_compiler_pic_CXX='-fpic'
14192 lt_prog_compiler_static_CXX='-Bstatic'
14193 ;;
14194 cxx*)
14195 # Compaq C++
14196 # Make sure the PIC flag is empty. It appears that all Alpha
14197 # Linux and Compaq Tru64 Unix objects are PIC.
14198 lt_prog_compiler_pic_CXX=
14199 lt_prog_compiler_static_CXX='-non_shared'
14200 ;;
14201 xlc* | xlC*)
14202 # IBM XL 8.0 on PPC
14203 lt_prog_compiler_wl_CXX='-Wl,'
14204 lt_prog_compiler_pic_CXX='-qpic'
14205 lt_prog_compiler_static_CXX='-qstaticlink'
14206 ;;
14207 *)
14208 case `$CC -V 2>&1 | sed 5q` in
14209 *Sun\ C*)
14210 # Sun C++ 5.9
14211 lt_prog_compiler_pic_CXX='-KPIC'
14212 lt_prog_compiler_static_CXX='-Bstatic'
14213 lt_prog_compiler_wl_CXX='-Qoption ld '
14214 ;;
14215 esac
14216 ;;
14217 esac
14218 ;;
14219 lynxos*)
14220 ;;
14221 m88k*)
14222 ;;
14223 mvs*)
14224 case $cc_basename in
14225 cxx*)
14226 lt_prog_compiler_pic_CXX='-W c,exportall'
14227 ;;
14228 *)
14229 ;;
14230 esac
14231 ;;
14232 netbsd* | netbsdelf*-gnu)
14233 ;;
14234 *qnx* | *nto*)
14235 # QNX uses GNU C++, but need to define -shared option too, otherwise
14236 # it will coredump.
14237 lt_prog_compiler_pic_CXX='-fPIC -shared'
14238 ;;
14239 osf3* | osf4* | osf5*)
14240 case $cc_basename in
14241 KCC*)
14242 lt_prog_compiler_wl_CXX='--backend -Wl,'
14243 ;;
14244 RCC*)
14245 # Rational C++ 2.4.1
14246 lt_prog_compiler_pic_CXX='-pic'
14247 ;;
14248 cxx*)
14249 # Digital/Compaq C++
14250 lt_prog_compiler_wl_CXX='-Wl,'
14251 # Make sure the PIC flag is empty. It appears that all Alpha
14252 # Linux and Compaq Tru64 Unix objects are PIC.
14253 lt_prog_compiler_pic_CXX=
14254 lt_prog_compiler_static_CXX='-non_shared'
14255 ;;
14256 *)
14257 ;;
14258 esac
14259 ;;
14260 psos*)
14261 ;;
14262 solaris*)
14263 case $cc_basename in
14264 CC*)
14265 # Sun C++ 4.2, 5.x and Centerline C++
14266 lt_prog_compiler_pic_CXX='-KPIC'
14267 lt_prog_compiler_static_CXX='-Bstatic'
14268 lt_prog_compiler_wl_CXX='-Qoption ld '
14269 ;;
14270 gcx*)
14271 # Green Hills C++ Compiler
14272 lt_prog_compiler_pic_CXX='-PIC'
14273 ;;
14274 *)
14275 ;;
14276 esac
14277 ;;
14278 sunos4*)
14279 case $cc_basename in
14280 CC*)
14281 # Sun C++ 4.x
14282 lt_prog_compiler_pic_CXX='-pic'
14283 lt_prog_compiler_static_CXX='-Bstatic'
14284 ;;
14285 lcc*)
14286 # Lucid
14287 lt_prog_compiler_pic_CXX='-pic'
14288 ;;
14289 *)
14290 ;;
14291 esac
14292 ;;
14293 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14294 case $cc_basename in
14295 CC*)
14296 lt_prog_compiler_wl_CXX='-Wl,'
14297 lt_prog_compiler_pic_CXX='-KPIC'
14298 lt_prog_compiler_static_CXX='-Bstatic'
14299 ;;
14300 esac
14301 ;;
14302 tandem*)
14303 case $cc_basename in
14304 NCC*)
14305 # NonStop-UX NCC 3.20
14306 lt_prog_compiler_pic_CXX='-KPIC'
14307 ;;
14308 *)
14309 ;;
14310 esac
14311 ;;
14312 vxworks*)
14313 ;;
14314 *)
14315 lt_prog_compiler_can_build_shared_CXX=no
14316 ;;
14317 esac
14318 fi
14319
14320 case $host_os in
14321 # For platforms which do not support PIC, -DPIC is meaningless:
14322 *djgpp*)
14323 lt_prog_compiler_pic_CXX=
14324 ;;
14325 *)
14326 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14327 ;;
14328 esac
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14330 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14331
14332
14333
14334 #
14335 # Check to make sure the PIC flag actually works.
14336 #
14337 if test -n "$lt_prog_compiler_pic_CXX"; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14339 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14340 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343 lt_cv_prog_compiler_pic_works_CXX=no
14344 ac_outfile=conftest.$ac_objext
14345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14346 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14347 # Insert the option either (1) after the last *FLAGS variable, or
14348 # (2) before a word containing "conftest.", or (3) at the end.
14349 # Note that $ac_compile itself does not contain backslashes and begins
14350 # with a dollar sign (not a hyphen), so the echo should work correctly.
14351 # The option is referenced via a variable to avoid confusing sed.
14352 lt_compile=`echo "$ac_compile" | $SED \
14353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14355 -e 's:$: $lt_compiler_flag:'`
14356 (eval echo "\"\$as_me:14356: $lt_compile\"" >&5)
14357 (eval "$lt_compile" 2>conftest.err)
14358 ac_status=$?
14359 cat conftest.err >&5
14360 echo "$as_me:14360: \$? = $ac_status" >&5
14361 if (exit $ac_status) && test -s "$ac_outfile"; then
14362 # The compiler can only warn and ignore the option if not recognized
14363 # So say no if there are warnings other than the usual output.
14364 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14366 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14367 lt_cv_prog_compiler_pic_works_CXX=yes
14368 fi
14369 fi
14370 $RM conftest*
14371
14372 fi
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14374 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14375
14376 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14377 case $lt_prog_compiler_pic_CXX in
14378 "" | " "*) ;;
14379 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14380 esac
14381 else
14382 lt_prog_compiler_pic_CXX=
14383 lt_prog_compiler_can_build_shared_CXX=no
14384 fi
14385
14386 fi
14387
14388
14389
14390 #
14391 # Check to make sure the static flag actually works.
14392 #
14393 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14395 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14396 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14397 $as_echo_n "(cached) " >&6
14398 else
14399 lt_cv_prog_compiler_static_works_CXX=no
14400 save_LDFLAGS="$LDFLAGS"
14401 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14402 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14404 # The linker can only warn and ignore the option if not recognized
14405 # So say no if there are warnings
14406 if test -s conftest.err; then
14407 # Append any errors to the config.log.
14408 cat conftest.err 1>&5
14409 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14411 if diff conftest.exp conftest.er2 >/dev/null; then
14412 lt_cv_prog_compiler_static_works_CXX=yes
14413 fi
14414 else
14415 lt_cv_prog_compiler_static_works_CXX=yes
14416 fi
14417 fi
14418 $RM -r conftest*
14419 LDFLAGS="$save_LDFLAGS"
14420
14421 fi
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14423 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14424
14425 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14426 :
14427 else
14428 lt_prog_compiler_static_CXX=
14429 fi
14430
14431
14432
14433
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14435 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14436 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14437 $as_echo_n "(cached) " >&6
14438 else
14439 lt_cv_prog_compiler_c_o_CXX=no
14440 $RM -r conftest 2>/dev/null
14441 mkdir conftest
14442 cd conftest
14443 mkdir out
14444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14445
14446 lt_compiler_flag="-o out/conftest2.$ac_objext"
14447 # Insert the option either (1) after the last *FLAGS variable, or
14448 # (2) before a word containing "conftest.", or (3) at the end.
14449 # Note that $ac_compile itself does not contain backslashes and begins
14450 # with a dollar sign (not a hyphen), so the echo should work correctly.
14451 lt_compile=`echo "$ac_compile" | $SED \
14452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14454 -e 's:$: $lt_compiler_flag:'`
14455 (eval echo "\"\$as_me:14455: $lt_compile\"" >&5)
14456 (eval "$lt_compile" 2>out/conftest.err)
14457 ac_status=$?
14458 cat out/conftest.err >&5
14459 echo "$as_me:14459: \$? = $ac_status" >&5
14460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14461 then
14462 # The compiler can only warn and ignore the option if not recognized
14463 # So say no if there are warnings
14464 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14467 lt_cv_prog_compiler_c_o_CXX=yes
14468 fi
14469 fi
14470 chmod u+w . 2>&5
14471 $RM conftest*
14472 # SGI C++ compiler will create directory out/ii_files/ for
14473 # template instantiation
14474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14475 $RM out/* && rmdir out
14476 cd ..
14477 $RM -r conftest
14478 $RM conftest*
14479
14480 fi
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14482 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14483
14484
14485
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14487 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14488 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 lt_cv_prog_compiler_c_o_CXX=no
14492 $RM -r conftest 2>/dev/null
14493 mkdir conftest
14494 cd conftest
14495 mkdir out
14496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14497
14498 lt_compiler_flag="-o out/conftest2.$ac_objext"
14499 # Insert the option either (1) after the last *FLAGS variable, or
14500 # (2) before a word containing "conftest.", or (3) at the end.
14501 # Note that $ac_compile itself does not contain backslashes and begins
14502 # with a dollar sign (not a hyphen), so the echo should work correctly.
14503 lt_compile=`echo "$ac_compile" | $SED \
14504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506 -e 's:$: $lt_compiler_flag:'`
14507 (eval echo "\"\$as_me:14507: $lt_compile\"" >&5)
14508 (eval "$lt_compile" 2>out/conftest.err)
14509 ac_status=$?
14510 cat out/conftest.err >&5
14511 echo "$as_me:14511: \$? = $ac_status" >&5
14512 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14513 then
14514 # The compiler can only warn and ignore the option if not recognized
14515 # So say no if there are warnings
14516 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14517 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14518 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14519 lt_cv_prog_compiler_c_o_CXX=yes
14520 fi
14521 fi
14522 chmod u+w . 2>&5
14523 $RM conftest*
14524 # SGI C++ compiler will create directory out/ii_files/ for
14525 # template instantiation
14526 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14527 $RM out/* && rmdir out
14528 cd ..
14529 $RM -r conftest
14530 $RM conftest*
14531
14532 fi
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14534 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14535
14536
14537
14538
14539 hard_links="nottested"
14540 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14541 # do not overwrite the value of need_locks provided by the user
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14543 $as_echo_n "checking if we can lock with hard links... " >&6; }
14544 hard_links=yes
14545 $RM conftest*
14546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14547 touch conftest.a
14548 ln conftest.a conftest.b 2>&5 || hard_links=no
14549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14551 $as_echo "$hard_links" >&6; }
14552 if test "$hard_links" = no; then
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14554 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14555 need_locks=warn
14556 fi
14557 else
14558 need_locks=no
14559 fi
14560
14561
14562
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14564 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14565
14566 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14567 case $host_os in
14568 aix[4-9]*)
14569 # If we're using GNU nm, then we don't want the "-C" option.
14570 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14571 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14572 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14573 else
14574 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'
14575 fi
14576 ;;
14577 pw32*)
14578 export_symbols_cmds_CXX="$ltdll_cmds"
14579 ;;
14580 cygwin* | mingw* | cegcc*)
14581 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14582 ;;
14583 linux* | k*bsd*-gnu)
14584 link_all_deplibs_CXX=no
14585 ;;
14586 *)
14587 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14588 ;;
14589 esac
14590 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14591
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14593 $as_echo "$ld_shlibs_CXX" >&6; }
14594 test "$ld_shlibs_CXX" = no && can_build_shared=no
14595
14596 with_gnu_ld_CXX=$with_gnu_ld
14597
14598
14599
14600
14601
14602
14603 #
14604 # Do we need to explicitly link libc?
14605 #
14606 case "x$archive_cmds_need_lc_CXX" in
14607 x|xyes)
14608 # Assume -lc should be added
14609 archive_cmds_need_lc_CXX=yes
14610
14611 if test "$enable_shared" = yes && test "$GCC" = yes; then
14612 case $archive_cmds_CXX in
14613 *'~'*)
14614 # FIXME: we may have to deal with multi-command sequences.
14615 ;;
14616 '$CC '*)
14617 # Test whether the compiler implicitly links with -lc since on some
14618 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14619 # to ld, don't add -lc before -lgcc.
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14621 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14622 $RM conftest*
14623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14624
14625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14626 (eval $ac_compile) 2>&5
14627 ac_status=$?
14628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14629 test $ac_status = 0; } 2>conftest.err; then
14630 soname=conftest
14631 lib=conftest
14632 libobjs=conftest.$ac_objext
14633 deplibs=
14634 wl=$lt_prog_compiler_wl_CXX
14635 pic_flag=$lt_prog_compiler_pic_CXX
14636 compiler_flags=-v
14637 linker_flags=-v
14638 verstring=
14639 output_objdir=.
14640 libname=conftest
14641 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14642 allow_undefined_flag_CXX=
14643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14644 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14645 ac_status=$?
14646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14647 test $ac_status = 0; }
14648 then
14649 archive_cmds_need_lc_CXX=no
14650 else
14651 archive_cmds_need_lc_CXX=yes
14652 fi
14653 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14654 else
14655 cat conftest.err 1>&5
14656 fi
14657 $RM conftest*
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14659 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14660 ;;
14661 esac
14662 fi
14663 ;;
14664 esac
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14730 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14731
14732 library_names_spec=
14733 libname_spec='lib$name'
14734 soname_spec=
14735 shrext_cmds=".so"
14736 postinstall_cmds=
14737 postuninstall_cmds=
14738 finish_cmds=
14739 finish_eval=
14740 shlibpath_var=
14741 shlibpath_overrides_runpath=unknown
14742 version_type=none
14743 dynamic_linker="$host_os ld.so"
14744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14745 need_lib_prefix=unknown
14746 hardcode_into_libs=no
14747
14748 # when you set need_version to no, make sure it does not cause -set_version
14749 # flags to be left without arguments
14750 need_version=unknown
14751
14752 case $host_os in
14753 aix3*)
14754 version_type=linux
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14756 shlibpath_var=LIBPATH
14757
14758 # AIX 3 has no versioning support, so we append a major version to the name.
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 ;;
14761
14762 aix[4-9]*)
14763 version_type=linux
14764 need_lib_prefix=no
14765 need_version=no
14766 hardcode_into_libs=yes
14767 if test "$host_cpu" = ia64; then
14768 # AIX 5 supports IA64
14769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 else
14772 # With GCC up to 2.95.x, collect2 would create an import file
14773 # for dependence libraries. The import file would start with
14774 # the line `#! .'. This would cause the generated library to
14775 # depend on `.', always an invalid library. This was fixed in
14776 # development snapshots of GCC prior to 3.0.
14777 case $host_os in
14778 aix4 | aix4.[01] | aix4.[01].*)
14779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14780 echo ' yes '
14781 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14782 :
14783 else
14784 can_build_shared=no
14785 fi
14786 ;;
14787 esac
14788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14789 # soname into executable. Probably we can add versioning support to
14790 # collect2, so additional links can be useful in future.
14791 if test "$aix_use_runtimelinking" = yes; then
14792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14793 # instead of lib<name>.a to let people know that these are not
14794 # typical AIX shared libraries.
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796 else
14797 # We preserve .a as extension for shared libraries through AIX4.2
14798 # and later when we are not doing run time linking.
14799 library_names_spec='${libname}${release}.a $libname.a'
14800 soname_spec='${libname}${release}${shared_ext}$major'
14801 fi
14802 shlibpath_var=LIBPATH
14803 fi
14804 ;;
14805
14806 amigaos*)
14807 case $host_cpu in
14808 powerpc)
14809 # Since July 2007 AmigaOS4 officially supports .so libraries.
14810 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14812 ;;
14813 m68k)
14814 library_names_spec='$libname.ixlibrary $libname.a'
14815 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14816 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14817 ;;
14818 esac
14819 ;;
14820
14821 beos*)
14822 library_names_spec='${libname}${shared_ext}'
14823 dynamic_linker="$host_os ld.so"
14824 shlibpath_var=LIBRARY_PATH
14825 ;;
14826
14827 bsdi[45]*)
14828 version_type=linux
14829 need_version=no
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14831 soname_spec='${libname}${release}${shared_ext}$major'
14832 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14835 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14836 # the default ld.so.conf also contains /usr/contrib/lib and
14837 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14838 # libtool to hard-code these into programs
14839 ;;
14840
14841 cygwin* | mingw* | pw32* | cegcc*)
14842 version_type=windows
14843 shrext_cmds=".dll"
14844 need_version=no
14845 need_lib_prefix=no
14846
14847 case $GCC,$host_os in
14848 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14849 library_names_spec='$libname.dll.a'
14850 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14851 postinstall_cmds='base_file=`basename \${file}`~
14852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14853 dldir=$destdir/`dirname \$dlpath`~
14854 test -d \$dldir || mkdir -p \$dldir~
14855 $install_prog $dir/$dlname \$dldir/$dlname~
14856 chmod a+x \$dldir/$dlname~
14857 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14858 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14859 fi'
14860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14861 dlpath=$dir/\$dldll~
14862 $RM \$dlpath'
14863 shlibpath_overrides_runpath=yes
14864
14865 case $host_os in
14866 cygwin*)
14867 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14868 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14869 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14870 ;;
14871 mingw* | cegcc*)
14872 # MinGW DLLs use traditional 'lib' prefix
14873 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14874 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14875 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14876 # It is most probably a Windows format PATH printed by
14877 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14878 # path with ; separators, and with drive letters. We can handle the
14879 # drive letters (cygwin fileutils understands them), so leave them,
14880 # especially as we might pass files found there to a mingw objdump,
14881 # which wouldn't understand a cygwinified path. Ahh.
14882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14883 else
14884 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14885 fi
14886 ;;
14887 pw32*)
14888 # pw32 DLLs use 'pw' prefix rather than 'lib'
14889 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14890 ;;
14891 esac
14892 ;;
14893
14894 *)
14895 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14896 ;;
14897 esac
14898 dynamic_linker='Win32 ld.exe'
14899 # FIXME: first we should search . and the directory the executable is in
14900 shlibpath_var=PATH
14901 ;;
14902
14903 darwin* | rhapsody*)
14904 dynamic_linker="$host_os dyld"
14905 version_type=darwin
14906 need_lib_prefix=no
14907 need_version=no
14908 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14909 soname_spec='${libname}${release}${major}$shared_ext'
14910 shlibpath_overrides_runpath=yes
14911 shlibpath_var=DYLD_LIBRARY_PATH
14912 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14913
14914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14915 ;;
14916
14917 dgux*)
14918 version_type=linux
14919 need_lib_prefix=no
14920 need_version=no
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 ;;
14925
14926 freebsd1*)
14927 dynamic_linker=no
14928 ;;
14929
14930 freebsd* | dragonfly*)
14931 # DragonFly does not have aout. When/if they implement a new
14932 # versioning mechanism, adjust this.
14933 if test -x /usr/bin/objformat; then
14934 objformat=`/usr/bin/objformat`
14935 else
14936 case $host_os in
14937 freebsd[123]*) objformat=aout ;;
14938 *) objformat=elf ;;
14939 esac
14940 fi
14941 version_type=freebsd-$objformat
14942 case $version_type in
14943 freebsd-elf*)
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14945 need_version=no
14946 need_lib_prefix=no
14947 ;;
14948 freebsd-*)
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14950 need_version=yes
14951 ;;
14952 esac
14953 shlibpath_var=LD_LIBRARY_PATH
14954 case $host_os in
14955 freebsd2*)
14956 shlibpath_overrides_runpath=yes
14957 ;;
14958 freebsd3.[01]* | freebsdelf3.[01]*)
14959 shlibpath_overrides_runpath=yes
14960 hardcode_into_libs=yes
14961 ;;
14962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14964 shlibpath_overrides_runpath=no
14965 hardcode_into_libs=yes
14966 ;;
14967 *) # from 4.6 on, and DragonFly
14968 shlibpath_overrides_runpath=yes
14969 hardcode_into_libs=yes
14970 ;;
14971 esac
14972 ;;
14973
14974 gnu*)
14975 version_type=linux
14976 need_lib_prefix=no
14977 need_version=no
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14980 shlibpath_var=LD_LIBRARY_PATH
14981 hardcode_into_libs=yes
14982 ;;
14983
14984 hpux9* | hpux10* | hpux11*)
14985 # Give a soname corresponding to the major version so that dld.sl refuses to
14986 # link against other versions.
14987 version_type=sunos
14988 need_lib_prefix=no
14989 need_version=no
14990 case $host_cpu in
14991 ia64*)
14992 shrext_cmds='.so'
14993 hardcode_into_libs=yes
14994 dynamic_linker="$host_os dld.so"
14995 shlibpath_var=LD_LIBRARY_PATH
14996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 if test "X$HPUX_IA64_MODE" = X32; then
15000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15001 else
15002 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15003 fi
15004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15005 ;;
15006 hppa*64*)
15007 shrext_cmds='.sl'
15008 hardcode_into_libs=yes
15009 dynamic_linker="$host_os dld.sl"
15010 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15013 soname_spec='${libname}${release}${shared_ext}$major'
15014 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15016 ;;
15017 *)
15018 shrext_cmds='.sl'
15019 dynamic_linker="$host_os dld.sl"
15020 shlibpath_var=SHLIB_PATH
15021 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 ;;
15025 esac
15026 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15027 postinstall_cmds='chmod 555 $lib'
15028 ;;
15029
15030 interix[3-9]*)
15031 version_type=linux
15032 need_lib_prefix=no
15033 need_version=no
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15037 shlibpath_var=LD_LIBRARY_PATH
15038 shlibpath_overrides_runpath=no
15039 hardcode_into_libs=yes
15040 ;;
15041
15042 irix5* | irix6* | nonstopux*)
15043 case $host_os in
15044 nonstopux*) version_type=nonstopux ;;
15045 *)
15046 if test "$lt_cv_prog_gnu_ld" = yes; then
15047 version_type=linux
15048 else
15049 version_type=irix
15050 fi ;;
15051 esac
15052 need_lib_prefix=no
15053 need_version=no
15054 soname_spec='${libname}${release}${shared_ext}$major'
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15056 case $host_os in
15057 irix5* | nonstopux*)
15058 libsuff= shlibsuff=
15059 ;;
15060 *)
15061 case $LD in # libtool.m4 will add one of these switches to LD
15062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15063 libsuff= shlibsuff= libmagic=32-bit;;
15064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15065 libsuff=32 shlibsuff=N32 libmagic=N32;;
15066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15068 *) libsuff= shlibsuff= libmagic=never-match;;
15069 esac
15070 ;;
15071 esac
15072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15073 shlibpath_overrides_runpath=no
15074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15076 hardcode_into_libs=yes
15077 ;;
15078
15079 # No shared lib support for Linux oldld, aout, or coff.
15080 linux*oldld* | linux*aout* | linux*coff*)
15081 dynamic_linker=no
15082 ;;
15083
15084 # This must be Linux ELF.
15085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15086 version_type=linux
15087 need_lib_prefix=no
15088 need_version=no
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15092 shlibpath_var=LD_LIBRARY_PATH
15093 shlibpath_overrides_runpath=no
15094 # Some binutils ld are patched to set DT_RUNPATH
15095 save_LDFLAGS=$LDFLAGS
15096 save_libdir=$libdir
15097 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15098 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h. */
15101
15102 int
15103 main ()
15104 {
15105
15106 ;
15107 return 0;
15108 }
15109 _ACEOF
15110 if ac_fn_cxx_try_link "$LINENO"; then :
15111 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15112 shlibpath_overrides_runpath=yes
15113 fi
15114 fi
15115 rm -f core conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
15117 LDFLAGS=$save_LDFLAGS
15118 libdir=$save_libdir
15119
15120 # This implies no fast_install, which is unacceptable.
15121 # Some rework will be needed to allow for fast_install
15122 # before this can be enabled.
15123 hardcode_into_libs=yes
15124
15125 # Append ld.so.conf contents to the search path
15126 if test -f /etc/ld.so.conf; then
15127 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;/^$/d' | tr '\n' ' '`
15128 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15129 fi
15130
15131 # We used to test for /lib/ld.so.1 and disable shared libraries on
15132 # powerpc, because MkLinux only supported shared libraries with the
15133 # GNU dynamic linker. Since this was broken with cross compilers,
15134 # most powerpc-linux boxes support dynamic linking these days and
15135 # people can always --disable-shared, the test was removed, and we
15136 # assume the GNU/Linux dynamic linker is in use.
15137 dynamic_linker='GNU/Linux ld.so'
15138 ;;
15139
15140 netbsdelf*-gnu)
15141 version_type=linux
15142 need_lib_prefix=no
15143 need_version=no
15144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15145 soname_spec='${libname}${release}${shared_ext}$major'
15146 shlibpath_var=LD_LIBRARY_PATH
15147 shlibpath_overrides_runpath=no
15148 hardcode_into_libs=yes
15149 dynamic_linker='NetBSD ld.elf_so'
15150 ;;
15151
15152 netbsd*)
15153 version_type=sunos
15154 need_lib_prefix=no
15155 need_version=no
15156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15159 dynamic_linker='NetBSD (a.out) ld.so'
15160 else
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15162 soname_spec='${libname}${release}${shared_ext}$major'
15163 dynamic_linker='NetBSD ld.elf_so'
15164 fi
15165 shlibpath_var=LD_LIBRARY_PATH
15166 shlibpath_overrides_runpath=yes
15167 hardcode_into_libs=yes
15168 ;;
15169
15170 newsos6)
15171 version_type=linux
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 shlibpath_overrides_runpath=yes
15175 ;;
15176
15177 *nto* | *qnx*)
15178 version_type=qnx
15179 need_lib_prefix=no
15180 need_version=no
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 shlibpath_var=LD_LIBRARY_PATH
15184 shlibpath_overrides_runpath=no
15185 hardcode_into_libs=yes
15186 dynamic_linker='ldqnx.so'
15187 ;;
15188
15189 openbsd*)
15190 version_type=sunos
15191 sys_lib_dlsearch_path_spec="/usr/lib"
15192 need_lib_prefix=no
15193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15194 case $host_os in
15195 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15196 *) need_version=no ;;
15197 esac
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15202 case $host_os in
15203 openbsd2.[89] | openbsd2.[89].*)
15204 shlibpath_overrides_runpath=no
15205 ;;
15206 *)
15207 shlibpath_overrides_runpath=yes
15208 ;;
15209 esac
15210 else
15211 shlibpath_overrides_runpath=yes
15212 fi
15213 ;;
15214
15215 os2*)
15216 libname_spec='$name'
15217 shrext_cmds=".dll"
15218 need_lib_prefix=no
15219 library_names_spec='$libname${shared_ext} $libname.a'
15220 dynamic_linker='OS/2 ld.exe'
15221 shlibpath_var=LIBPATH
15222 ;;
15223
15224 osf3* | osf4* | osf5*)
15225 version_type=osf
15226 need_lib_prefix=no
15227 need_version=no
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230 shlibpath_var=LD_LIBRARY_PATH
15231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15233 ;;
15234
15235 rdos*)
15236 dynamic_linker=no
15237 ;;
15238
15239 solaris*)
15240 version_type=linux
15241 need_lib_prefix=no
15242 need_version=no
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244 soname_spec='${libname}${release}${shared_ext}$major'
15245 shlibpath_var=LD_LIBRARY_PATH
15246 shlibpath_overrides_runpath=yes
15247 hardcode_into_libs=yes
15248 # ldd complains unless libraries are executable
15249 postinstall_cmds='chmod +x $lib'
15250 ;;
15251
15252 sunos4*)
15253 version_type=sunos
15254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=yes
15258 if test "$with_gnu_ld" = yes; then
15259 need_lib_prefix=no
15260 fi
15261 need_version=yes
15262 ;;
15263
15264 sysv4 | sysv4.3*)
15265 version_type=linux
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 case $host_vendor in
15270 sni)
15271 shlibpath_overrides_runpath=no
15272 need_lib_prefix=no
15273 runpath_var=LD_RUN_PATH
15274 ;;
15275 siemens)
15276 need_lib_prefix=no
15277 ;;
15278 motorola)
15279 need_lib_prefix=no
15280 need_version=no
15281 shlibpath_overrides_runpath=no
15282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15283 ;;
15284 esac
15285 ;;
15286
15287 sysv4*MP*)
15288 if test -d /usr/nec ;then
15289 version_type=linux
15290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15291 soname_spec='$libname${shared_ext}.$major'
15292 shlibpath_var=LD_LIBRARY_PATH
15293 fi
15294 ;;
15295
15296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15297 version_type=freebsd-elf
15298 need_lib_prefix=no
15299 need_version=no
15300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15301 soname_spec='${libname}${release}${shared_ext}$major'
15302 shlibpath_var=LD_LIBRARY_PATH
15303 shlibpath_overrides_runpath=yes
15304 hardcode_into_libs=yes
15305 if test "$with_gnu_ld" = yes; then
15306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15307 else
15308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15309 case $host_os in
15310 sco3.2v5*)
15311 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15312 ;;
15313 esac
15314 fi
15315 sys_lib_dlsearch_path_spec='/usr/lib'
15316 ;;
15317
15318 tpf*)
15319 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15320 version_type=linux
15321 need_lib_prefix=no
15322 need_version=no
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324 shlibpath_var=LD_LIBRARY_PATH
15325 shlibpath_overrides_runpath=no
15326 hardcode_into_libs=yes
15327 ;;
15328
15329 uts4*)
15330 version_type=linux
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15332 soname_spec='${libname}${release}${shared_ext}$major'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 ;;
15335
15336 *)
15337 dynamic_linker=no
15338 ;;
15339 esac
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15341 $as_echo "$dynamic_linker" >&6; }
15342 test "$dynamic_linker" = no && can_build_shared=no
15343
15344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15345 if test "$GCC" = yes; then
15346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15347 fi
15348
15349 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15350 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15351 fi
15352 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15353 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15354 fi
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15392 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15393 hardcode_action_CXX=
15394 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15395 test -n "$runpath_var_CXX" ||
15396 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15397
15398 # We can hardcode non-existent directories.
15399 if test "$hardcode_direct_CXX" != no &&
15400 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15401 # have to relink, otherwise we might link with an installed library
15402 # when we should be linking with a yet-to-be-installed one
15403 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15404 test "$hardcode_minus_L_CXX" != no; then
15405 # Linking always hardcodes the temporary library directory.
15406 hardcode_action_CXX=relink
15407 else
15408 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15409 hardcode_action_CXX=immediate
15410 fi
15411 else
15412 # We cannot hardcode anything, or else we can only hardcode existing
15413 # directories.
15414 hardcode_action_CXX=unsupported
15415 fi
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15417 $as_echo "$hardcode_action_CXX" >&6; }
15418
15419 if test "$hardcode_action_CXX" = relink ||
15420 test "$inherit_rpath_CXX" = yes; then
15421 # Fast installation is not supported
15422 enable_fast_install=no
15423 elif test "$shlibpath_overrides_runpath" = yes ||
15424 test "$enable_shared" = no; then
15425 # Fast installation is not necessary
15426 enable_fast_install=needless
15427 fi
15428
15429
15430
15431
15432
15433
15434
15435 fi # test -n "$compiler"
15436
15437 CC=$lt_save_CC
15438 LDCXX=$LD
15439 LD=$lt_save_LD
15440 GCC=$lt_save_GCC
15441 with_gnu_ld=$lt_save_with_gnu_ld
15442 lt_cv_path_LDCXX=$lt_cv_path_LD
15443 lt_cv_path_LD=$lt_save_path_LD
15444 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15445 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15446 fi # test "$_lt_caught_CXX_error" != yes
15447
15448 ac_ext=c
15449 ac_cpp='$CPP $CPPFLAGS'
15450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15453
15454
15455
15456
15457 # Check whether --with-expat was given.
15458 if test "${with_expat+set}" = set; then :
15459 withval=$with_expat;
15460 if test "$withval" = "yes"; then
15461 if test -f /usr/local/include/expat.h ; then
15462 expat_prefix=/usr/local
15463 elif test -f /usr/include/expat.h ; then
15464 expat_prefix=/usr
15465 else
15466 expat_prefix=""
15467 fi
15468 expat_requested="yes"
15469 elif test -d "$withval"; then
15470 expat_prefix="$withval"
15471 expat_requested="yes"
15472 else
15473 expat_prefix=""
15474 expat_requested="no"
15475 fi
15476
15477 else
15478
15479 if test -f /usr/local/include/expat.h ; then
15480 expat_prefix=/usr/local
15481 elif test -f /usr/include/expat.h ; then
15482 expat_prefix=/usr
15483 else
15484 expat_prefix=""
15485 fi
15486
15487
15488 fi
15489
15490
15491
15492 # Check whether --with-expat-inc was given.
15493 if test "${with_expat_inc+set}" = set; then :
15494 withval=$with_expat_inc; expat_include_dir="$withval"
15495 else
15496 expat_include_dir=""
15497
15498 fi
15499
15500
15501 # Check whether --with-expat-lib was given.
15502 if test "${with_expat_lib+set}" = set; then :
15503 withval=$with_expat_lib; expat_lib_flags="$withval"
15504 else
15505 expat_lib_flags=""
15506
15507 fi
15508
15509
15510 EXPAT_CFLAGS=""
15511 EXPAT_LDFLAGS=""
15512 EXPAT_VERSION=""
15513
15514 run_expat_test="no"
15515
15516 if test -n "$expat_prefix"; then
15517 expat_include_dir="$expat_prefix/include"
15518 expat_lib_flags="-L$expat_prefix/lib -lexpat"
15519 run_expat_test="yes"
15520 elif test "$expat_requested" = "yes"; then
15521 if test -n "$expat_include_dir" -a -n "$expat_lib_flags"; then
15522 run_expat_test="yes"
15523 fi
15524 else
15525 run_expat_test="no"
15526 fi
15527
15528 if test "$run_expat_test" = "yes"; then
15529
15530 saved_CPPFLAGS="$CPPFLAGS"
15531 CPPFLAGS="$CPPFLAGS -I$expat_include_dir"
15532
15533 saved_LDFLAGS="$LDFLAGS"
15534 LDFLAGS="$LDFLAGS $expat_lib_flags"
15535
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser headers in $expat_include_dir" >&5
15537 $as_echo_n "checking for Expat XML Parser headers in $expat_include_dir... " >&6; }
15538
15539 ac_ext=cpp
15540 ac_cpp='$CXXCPP $CPPFLAGS'
15541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15544
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547
15548
15549 #include <expat.h>
15550
15551 int
15552 main ()
15553 {
15554
15555
15556 ;
15557 return 0;
15558 }
15559 _ACEOF
15560 if ac_fn_cxx_try_compile "$LINENO"; then :
15561
15562 EXPAT_CFLAGS="-I$expat_include_dir"
15563 expat_header_found="yes"
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15565 $as_echo "found" >&6; }
15566
15567 else
15568
15569 expat_header_found="no"
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15571 $as_echo "not found" >&6; }
15572
15573
15574 fi
15575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15576 ac_ext=c
15577 ac_cpp='$CPP $CPPFLAGS'
15578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15581
15582
15583 if test "$expat_header_found" = "yes"; then
15584
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser libraries" >&5
15586 $as_echo_n "checking for Expat XML Parser libraries... " >&6; }
15587
15588 ac_ext=cpp
15589 ac_cpp='$CXXCPP $CPPFLAGS'
15590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15593
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15596
15597
15598 #include <expat.h>
15599
15600 int
15601 main ()
15602 {
15603
15604 XML_Parser p = XML_ParserCreate(NULL);
15605 XML_ParserFree(p);
15606 p = NULL;
15607
15608
15609 ;
15610 return 0;
15611 }
15612 _ACEOF
15613 if ac_fn_cxx_try_link "$LINENO"; then :
15614
15615 EXPAT_LDFLAGS="$expat_lib_flags"
15616 expat_lib_found="yes"
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15618 $as_echo "found" >&6; }
15619
15620 else
15621
15622 expat_lib_found="no"
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15624 $as_echo "not found" >&6; }
15625
15626
15627 fi
15628 rm -f core conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
15630 ac_ext=c
15631 ac_cpp='$CPP $CPPFLAGS'
15632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15635
15636 fi
15637
15638 CPPFLAGS="$saved_CPPFLAGS"
15639 LDFLAGS="$saved_LDFLAGS"
15640 fi
15641
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser" >&5
15643 $as_echo_n "checking for Expat XML Parser... " >&6; }
15644
15645 if test "$run_expat_test" = "yes"; then
15646 if test "$expat_header_found" = "yes" -a "$expat_lib_found" = "yes"; then
15647
15648
15649
15650
15651 HAVE_EXPAT="yes"
15652 else
15653 HAVE_EXPAT="no"
15654 fi
15655
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_EXPAT" >&5
15657 $as_echo "$HAVE_EXPAT" >&6; }
15658
15659 if test "$HAVE_EXPAT" = "yes"; then
15660
15661 expat_version_req=
15662
15663 if test -n "$expat_version_req"; then
15664
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Expat XML Parser version is >= $expat_version_req" >&5
15666 $as_echo_n "checking if Expat XML Parser version is >= $expat_version_req... " >&6; }
15667
15668 if test -f "$expat_include_dir/expat.h"; then
15669
15670 expat_major=`cat $expat_include_dir/expat.h | \
15671 grep '^#define.*XML_MAJOR_VERSION.*[0-9]$' | \
15672 sed -e 's/#define XML_MAJOR_VERSION.//'`
15673
15674 expat_minor=`cat $expat_include_dir/expat.h | \
15675 grep '^#define.*XML_MINOR_VERSION.*[0-9]$' | \
15676 sed -e 's/#define XML_MINOR_VERSION.//'`
15677
15678 expat_revision=`cat $expat_include_dir/expat.h | \
15679 grep '^#define.*XML_MICRO_VERSION.*[0-9]$' | \
15680 sed -e 's/#define XML_MICRO_VERSION.//'`
15681
15682 EXPAT_VERSION="$expat_major.$expat_minor.$expat_revision"
15683
15684
15685 expat_version_req_major=`expr $expat_version_req : '\([0-9]*\)'`
15686 expat_version_req_minor=`expr $expat_version_req : '[0-9]*\.\([0-9]*\)'`
15687 expat_version_req_revision=`expr $expat_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15688 if test "x$expat_version_req_revision" = "x"; then
15689 expat_version_req_revision="0"
15690 fi
15691
15692 expat_version_req_number=`expr $expat_version_req_major \* 10000 \
15693 \+ $expat_version_req_minor \* 100 \
15694 \+ $expat_version_req_revision`
15695
15696 expat_version_number=`expr $expat_major \* 10000 \
15697 \+ $expat_minor \* 100 \
15698 \+ $expat_revision`
15699
15700 expat_version_check=`expr $expat_version_number \>\= $expat_version_req_number`
15701 if test "$expat_version_check" = "1"; then
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15703 $as_echo "yes" >&6; }
15704 else
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15706 $as_echo "no" >&6; }
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Expat XML Parser $EXPAT_VERSION, which is older than required. Possible compilation failure." >&5
15708 $as_echo "$as_me: WARNING: Found Expat XML Parser $EXPAT_VERSION, which is older than required. Possible compilation failure." >&2;}
15709 fi
15710 else
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15712 $as_echo "no" >&6; }
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing expat.h header. Unable to determine Expat version." >&5
15714 $as_echo "$as_me: WARNING: Missing expat.h header. Unable to determine Expat version." >&2;}
15715 fi
15716 fi
15717 fi
15718
15719 else
15720 HAVE_EXPAT="no"
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_EXPAT" >&5
15722 $as_echo "$HAVE_EXPAT" >&6; }
15723
15724 if test "$expat_requested" = "yes"; then
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expat XML Parser support requested but headers or library not found. Specify valid prefix of Expat using --with-expat=[DIR] or provide include directory and linker flags using --with-expat-inc and --with-expat-lib" >&5
15726 $as_echo "$as_me: WARNING: Expat XML Parser support requested but headers or library not found. Specify valid prefix of Expat using --with-expat=[DIR] or provide include directory and linker flags using --with-expat-inc and --with-expat-lib" >&2;}
15727 fi
15728 fi
11550 15729
11551 15730
11552 if test $prefix = "NONE"; then 15731 if test $prefix = "NONE"; then
11553 prefix=/usr/local 15732 prefix=/usr/local
11554 fi 15733 fi
11715 else 15894 else
11716 am__EXEEXT_TRUE='#' 15895 am__EXEEXT_TRUE='#'
11717 am__EXEEXT_FALSE= 15896 am__EXEEXT_FALSE=
11718 fi 15897 fi
11719 15898
15899 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15900 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15902 fi
15903 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15904 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15906 fi
11720 15907
11721 : ${CONFIG_STATUS=./config.status} 15908 : ${CONFIG_STATUS=./config.status}
11722 ac_write_fail=0 15909 ac_write_fail=0
11723 ac_clean_files_save=$ac_clean_files 15910 ac_clean_files_save=$ac_clean_files
11724 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15911 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12416 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 16603 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12417 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 16604 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12418 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 16605 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12419 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 16606 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12420 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 16607 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16608 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16609 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16610 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16611 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16612 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16613 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16614 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16615 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16616 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16617 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16618 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16619 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16620 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16621 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16622 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16623 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16624 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16625 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16626 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16627 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16628 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16629 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16630 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16631 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16632 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16633 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16634 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16635 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16636 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16637 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16638 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16639 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16640 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16641 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16642 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16643 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16644 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16645 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16646 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16647 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16648 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16649 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16650 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16651 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16652 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16653 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16654 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16655 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16656 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16657 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16658 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16659 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16660 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
12421 16661
12422 LTCC='$LTCC' 16662 LTCC='$LTCC'
12423 LTCFLAGS='$LTCFLAGS' 16663 LTCFLAGS='$LTCFLAGS'
12424 compiler='$compiler_DEFAULT' 16664 compiler='$compiler_DEFAULT'
12425 16665
12479 libname_spec \ 16719 libname_spec \
12480 library_names_spec \ 16720 library_names_spec \
12481 soname_spec \ 16721 soname_spec \
12482 finish_eval \ 16722 finish_eval \
12483 old_striplib \ 16723 old_striplib \
12484 striplib; do 16724 striplib \
16725 compiler_lib_search_dirs \
16726 predep_objects \
16727 postdep_objects \
16728 predeps \
16729 postdeps \
16730 compiler_lib_search_path \
16731 LD_CXX \
16732 compiler_CXX \
16733 lt_prog_compiler_no_builtin_flag_CXX \
16734 lt_prog_compiler_wl_CXX \
16735 lt_prog_compiler_pic_CXX \
16736 lt_prog_compiler_static_CXX \
16737 lt_cv_prog_compiler_c_o_CXX \
16738 export_dynamic_flag_spec_CXX \
16739 whole_archive_flag_spec_CXX \
16740 compiler_needs_object_CXX \
16741 with_gnu_ld_CXX \
16742 allow_undefined_flag_CXX \
16743 no_undefined_flag_CXX \
16744 hardcode_libdir_flag_spec_CXX \
16745 hardcode_libdir_flag_spec_ld_CXX \
16746 hardcode_libdir_separator_CXX \
16747 fix_srcfile_path_CXX \
16748 exclude_expsyms_CXX \
16749 include_expsyms_CXX \
16750 file_list_spec_CXX \
16751 compiler_lib_search_dirs_CXX \
16752 predep_objects_CXX \
16753 postdep_objects_CXX \
16754 predeps_CXX \
16755 postdeps_CXX \
16756 compiler_lib_search_path_CXX; do
12485 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16757 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12486 *[\\\\\\\`\\"\\\$]*) 16758 *[\\\\\\\`\\"\\\$]*)
12487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16759 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12488 ;; 16760 ;;
12489 *) 16761 *)
12508 prelink_cmds \ 16780 prelink_cmds \
12509 postinstall_cmds \ 16781 postinstall_cmds \
12510 postuninstall_cmds \ 16782 postuninstall_cmds \
12511 finish_cmds \ 16783 finish_cmds \
12512 sys_lib_search_path_spec \ 16784 sys_lib_search_path_spec \
12513 sys_lib_dlsearch_path_spec; do 16785 sys_lib_dlsearch_path_spec \
16786 old_archive_cmds_CXX \
16787 old_archive_from_new_cmds_CXX \
16788 old_archive_from_expsyms_cmds_CXX \
16789 archive_cmds_CXX \
16790 archive_expsym_cmds_CXX \
16791 module_cmds_CXX \
16792 module_expsym_cmds_CXX \
16793 export_symbols_cmds_CXX \
16794 prelink_cmds_CXX; do
12514 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16795 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12515 *[\\\\\\\`\\"\\\$]*) 16796 *[\\\\\\\`\\"\\\$]*)
12516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12517 ;; 16798 ;;
12518 *) 16799 *)
12541 PACKAGE='$PACKAGE' 16822 PACKAGE='$PACKAGE'
12542 VERSION='$VERSION' 16823 VERSION='$VERSION'
12543 TIMESTAMP='$TIMESTAMP' 16824 TIMESTAMP='$TIMESTAMP'
12544 RM='$RM' 16825 RM='$RM'
12545 ofile='$ofile' 16826 ofile='$ofile'
16827
16828
12546 16829
12547 16830
12548 16831
12549 16832
12550 _ACEOF 16833 _ACEOF
13128 # obtained by writing to the Free Software Foundation, Inc., 17411 # obtained by writing to the Free Software Foundation, Inc.,
13129 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17412 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13130 17413
13131 17414
13132 # The names of the tagged configurations supported by this script. 17415 # The names of the tagged configurations supported by this script.
13133 available_tags="" 17416 available_tags="CXX "
13134 17417
13135 # ### BEGIN LIBTOOL CONFIG 17418 # ### BEGIN LIBTOOL CONFIG
13136 17419
13137 # Which release of libtool.m4 was used? 17420 # Which release of libtool.m4 was used?
13138 macro_version=$macro_version 17421 macro_version=$macro_version
13477 # Specify filename containing input files. 17760 # Specify filename containing input files.
13478 file_list_spec=$lt_file_list_spec 17761 file_list_spec=$lt_file_list_spec
13479 17762
13480 # How to hardcode a shared library path into an executable. 17763 # How to hardcode a shared library path into an executable.
13481 hardcode_action=$hardcode_action 17764 hardcode_action=$hardcode_action
17765
17766 # The directories searched by this compiler when creating a shared library.
17767 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17768
17769 # Dependencies to place before and after the objects being linked to
17770 # create a shared library.
17771 predep_objects=$lt_predep_objects
17772 postdep_objects=$lt_postdep_objects
17773 predeps=$lt_predeps
17774 postdeps=$lt_postdeps
17775
17776 # The library search path used internally by the compiler when linking
17777 # a shared library.
17778 compiler_lib_search_path=$lt_compiler_lib_search_path
13482 17779
13483 # ### END LIBTOOL CONFIG 17780 # ### END LIBTOOL CONFIG
13484 17781
13485 _LT_EOF 17782 _LT_EOF
13486 17783
13713 18010
13714 mv -f "$cfgfile" "$ofile" || 18011 mv -f "$cfgfile" "$ofile" ||
13715 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18012 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13716 chmod +x "$ofile" 18013 chmod +x "$ofile"
13717 18014
18015
18016 cat <<_LT_EOF >> "$ofile"
18017
18018 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18019
18020 # The linker used to build libraries.
18021 LD=$lt_LD_CXX
18022
18023 # Commands used to build an old-style archive.
18024 old_archive_cmds=$lt_old_archive_cmds_CXX
18025
18026 # A language specific compiler.
18027 CC=$lt_compiler_CXX
18028
18029 # Is the compiler the GNU compiler?
18030 with_gcc=$GCC_CXX
18031
18032 # Compiler flag to turn off builtin functions.
18033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18034
18035 # How to pass a linker flag through the compiler.
18036 wl=$lt_lt_prog_compiler_wl_CXX
18037
18038 # Additional compiler flags for building library objects.
18039 pic_flag=$lt_lt_prog_compiler_pic_CXX
18040
18041 # Compiler flag to prevent dynamic linking.
18042 link_static_flag=$lt_lt_prog_compiler_static_CXX
18043
18044 # Does compiler simultaneously support -c and -o options?
18045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18046
18047 # Whether or not to add -lc for building shared libraries.
18048 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18049
18050 # Whether or not to disallow shared libs when runtime libs are static.
18051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18052
18053 # Compiler flag to allow reflexive dlopens.
18054 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18055
18056 # Compiler flag to generate shared objects directly from archives.
18057 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18058
18059 # Whether the compiler copes with passing no objects directly.
18060 compiler_needs_object=$lt_compiler_needs_object_CXX
18061
18062 # Create an old-style archive from a shared archive.
18063 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18064
18065 # Create a temporary old-style archive to link instead of a shared archive.
18066 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18067
18068 # Commands used to build a shared archive.
18069 archive_cmds=$lt_archive_cmds_CXX
18070 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18071
18072 # Commands used to build a loadable module if different from building
18073 # a shared archive.
18074 module_cmds=$lt_module_cmds_CXX
18075 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18076
18077 # Whether we are building with GNU ld or not.
18078 with_gnu_ld=$lt_with_gnu_ld_CXX
18079
18080 # Flag that allows shared libraries with undefined symbols to be built.
18081 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18082
18083 # Flag that enforces no undefined symbols.
18084 no_undefined_flag=$lt_no_undefined_flag_CXX
18085
18086 # Flag to hardcode \$libdir into a binary during linking.
18087 # This must work even if \$libdir does not exist
18088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18089
18090 # If ld is used when linking, flag to hardcode \$libdir into a binary
18091 # during linking. This must work even if \$libdir does not exist.
18092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18093
18094 # Whether we need a single "-rpath" flag with a separated argument.
18095 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18096
18097 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18098 # DIR into the resulting binary.
18099 hardcode_direct=$hardcode_direct_CXX
18100
18101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18102 # DIR into the resulting binary and the resulting library dependency is
18103 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18104 # library is relocated.
18105 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18106
18107 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18108 # into the resulting binary.
18109 hardcode_minus_L=$hardcode_minus_L_CXX
18110
18111 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18112 # into the resulting binary.
18113 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18114
18115 # Set to "yes" if building a shared library automatically hardcodes DIR
18116 # into the library and all subsequent libraries and executables linked
18117 # against it.
18118 hardcode_automatic=$hardcode_automatic_CXX
18119
18120 # Set to yes if linker adds runtime paths of dependent libraries
18121 # to runtime path list.
18122 inherit_rpath=$inherit_rpath_CXX
18123
18124 # Whether libtool must link a program against all its dependency libraries.
18125 link_all_deplibs=$link_all_deplibs_CXX
18126
18127 # Fix the shell variable \$srcfile for the compiler.
18128 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18129
18130 # Set to "yes" if exported symbols are required.
18131 always_export_symbols=$always_export_symbols_CXX
18132
18133 # The commands to list exported symbols.
18134 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18135
18136 # Symbols that should not be listed in the preloaded symbols.
18137 exclude_expsyms=$lt_exclude_expsyms_CXX
18138
18139 # Symbols that must always be exported.
18140 include_expsyms=$lt_include_expsyms_CXX
18141
18142 # Commands necessary for linking programs (against libraries) with templates.
18143 prelink_cmds=$lt_prelink_cmds_CXX
18144
18145 # Specify filename containing input files.
18146 file_list_spec=$lt_file_list_spec_CXX
18147
18148 # How to hardcode a shared library path into an executable.
18149 hardcode_action=$hardcode_action_CXX
18150
18151 # The directories searched by this compiler when creating a shared library.
18152 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18153
18154 # Dependencies to place before and after the objects being linked to
18155 # create a shared library.
18156 predep_objects=$lt_predep_objects_CXX
18157 postdep_objects=$lt_postdep_objects_CXX
18158 predeps=$lt_predeps_CXX
18159 postdeps=$lt_postdeps_CXX
18160
18161 # The library search path used internally by the compiler when linking
18162 # a shared library.
18163 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18164
18165 # ### END LIBTOOL TAG CONFIG: CXX
18166 _LT_EOF
18167
13718 ;; 18168 ;;
13719 18169
13720 esac 18170 esac
13721 done # for ac_tag 18171 done # for ac_tag
13722 18172