ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/configure
(Generate patch)

Comparing deliantra/server/configure (file contents):
Revision 1.1.1.2 by elmex, Wed Mar 15 14:04:35 2006 UTC vs.
Revision 1.6 by pippijn, Sun Jul 2 15:09:12 2006 UTC

1#! /bin/sh 1#! /bin/sh
2# From configure.ac Id: configure.ac.
3# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for crossfire 1.9.0. 3# Generated by GNU Autoconf 2.59 for crossfire 1.9.0.
5# 4#
6# Report bugs to <crossfire-devel@listserv.real-time.com>. 5# Report bugs to <crossfire-devel@listserv.real-time.com>.
7# 6#
271fi 270fi
272 271
273if test "X$1" = X--fallback-echo; then 272if test "X$1" = X--fallback-echo; then
274 # used as fallback echo 273 # used as fallback echo
275 shift 274 shift
276 cat <<EOF 275 cat <<_LT_EOF
277$* 276$*
278EOF 277_LT_EOF
279 exit 0 278 exit 0
280fi 279fi
281 280
282# The HP-UX ksh and POSIX shell print the target directory to stdout 281# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set. 282# if CDPATH is set.
392fi 391fi
393 392
394 393
395 394
396 395
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
401# Name of the host. 396# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 397# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too. 398# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 399ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 400
465#endif 460#endif
466#if HAVE_UNISTD_H 461#if HAVE_UNISTD_H
467# include <unistd.h> 462# include <unistd.h>
468#endif" 463#endif"
469 464
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LEX LEXLIB LEX_OUTPUT_ROOT LATEX GZIP GUNZIP TAR PERL BASENAME COMPRESS UNCOMPRESS BZIP BUNZIP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS x_includes x_libraries no_x HAVE_X_TRUE HAVE_X_FALSE X11LIBS pkgstatedir pkgconfdir HAVE_LIBDL_TRUE HAVE_LIBDL_FALSE PYTHON_LIB PY_LIBS PY_INCLUDES PYTHON_PLUGIN_TRUE PYTHON_PLUGIN_FALSE PLUGIN_PYTHON LTLIBOBJS' 465ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LD NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB ECHO CPP LEX LEXLIB LEX_OUTPUT_ROOT LATEX GZIP GUNZIP TAR PERL BASENAME COMPRESS UNCOMPRESS BZIP BUNZIP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS x_includes x_libraries no_x HAVE_X_TRUE HAVE_X_FALSE X11LIBS pkgstatedir pkgconfdir PERLLIB PERLFLAGS PERLPRIVLIBEXP PERL_PLUGIN_TRUE PERL_PLUGIN_FALSE PERL_PLUGIN HAVE_LIBDL_TRUE HAVE_LIBDL_FALSE PYTHON_LIB PY_LIBS PY_INCLUDES PYTHON_PLUGIN_TRUE PYTHON_PLUGIN_FALSE PLUGIN_PYTHON CROSSEDIT LTLIBOBJS'
471ac_subst_files='' 466ac_subst_files=''
472 467
473# Initialize some variables set by options. 468# Initialize some variables set by options.
474ac_init_help= 469ac_init_help=
475ac_init_version=false 470ac_init_version=false
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set} 922ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP 923ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set} 924ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP 925ac_cv_env_CPP_value=$CPP
931ac_env_CXX_set=${CXX+set}
932ac_env_CXX_value=$CXX
933ac_cv_env_CXX_set=${CXX+set}
934ac_cv_env_CXX_value=$CXX
935ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_env_CXXFLAGS_value=$CXXFLAGS
937ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
951 926
952# 927#
953# Report the --help message. 928# Report the --help message.
954# 929#
955if test "$ac_init_help" = "long"; then 930if test "$ac_init_help" = "long"; then
1031 cat <<\_ACEOF 1006 cat <<\_ACEOF
1032 1007
1033Optional Features: 1008Optional Features:
1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1009 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1010 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1036 --enable-maintainer-mode enable make rules and dependencies not useful 1011 --enable-maintainer-mode enable make rules and dependencies not useful
1037 (and sometimes confusing) to the casual installer 1012 (and sometimes confusing) to the casual installer
1038 --enable-shared[=PKGS] 1013 --enable-shared[=PKGS]
1039 build shared libraries [default=yes] 1014 build shared libraries [default=yes]
1040 --enable-static[=PKGS] 1015 --enable-static[=PKGS]
1041 build static libraries [default=yes] 1016 build static libraries [default=yes]
1042 --enable-fast-install[=PKGS] 1017 --enable-fast-install[=PKGS]
1043 optimize for fast installation [default=yes] 1018 optimize for fast installation [default=yes]
1044 --disable-dependency-tracking speeds up one-time build 1019 --disable-dependency-tracking Speeds up one-time builds
1045 --enable-dependency-tracking do not reject slow dependency extractors 1020 --enable-dependency-tracking Do not reject slow dependency extractors
1046 --disable-libtool-lock avoid locking (might break parallel builds) 1021 --disable-libtool-lock avoid locking (might break parallel builds)
1047 --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working 1022 --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working
1048 1023
1049Optional Packages: 1024Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1025 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1026 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1053 --with-pic try to use only PIC/non-PIC objects [default=use 1027 --with-pic try to use only PIC/non-PIC objects [default=use
1054 both] 1028 both]
1055 --with-tags[=TAGS] 1029 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 include additional configurations [automatic]
1057 --with-python=dir Directory to look for python headers/library (default=standard system location) 1030 --with-python=dir Directory to look for python headers/library (default=standard system location)
1058 --with-x use the X Window System 1031 --with-x use the X Window System
1059 1032
1060Some influential environment variables: 1033Some influential environment variables:
1061 CC C compiler command 1034 CC C compiler command
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir> 1037 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir> 1039 headers in a nonstandard directory <include dir>
1067 CPP C preprocessor 1040 CPP C preprocessor
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
1073 1041
1074Use these variables to override the choices made by `configure' or to help 1042Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations. 1043it to find libraries and programs with nonstandard names/locations.
1076 1044
1077Report bugs to <crossfire-devel@listserv.real-time.com>. 1045Report bugs to <crossfire-devel@listserv.real-time.com>.
1161 echo 1129 echo
1162 $ac_configure --help 1130 $ac_configure --help
1163 else 1131 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1132 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi 1133 fi
1166 cd $ac_popdir 1134 cd "$ac_popdir"
1167 done 1135 done
1168fi 1136fi
1169 1137
1170test -n "$ac_init_help" && exit 0 1138test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then 1139if $ac_init_version; then
1544ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1512ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1545ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1513ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1546ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1514ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1547 1515
1548 1516
1549am__api_version="1.9" 1517am__api_version="1.7"
1550# Find a good install program. We prefer a C program (faster), 1518# Find a good install program. We prefer a C program (faster),
1551# so one script is as good as another. But avoid the broken or 1519# so one script is as good as another. But avoid the broken or
1552# incompatible versions: 1520# incompatible versions:
1553# SysV /etc/install, /usr/sbin/install 1521# SysV /etc/install, /usr/sbin/install
1554# SunOS /usr/etc/install 1522# SunOS /usr/etc/install
1682s/[\\$]/&&/g;s/;s,x,x,$// 1650s/[\\$]/&&/g;s/;s,x,x,$//
1683_ACEOF 1651_ACEOF
1684program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1652program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1685rm conftest.sed 1653rm conftest.sed
1686 1654
1655
1687# expand $ac_aux_dir to an absolute path 1656# expand $ac_aux_dir to an absolute path
1688am_aux_dir=`cd $ac_aux_dir && pwd` 1657am_aux_dir=`cd $ac_aux_dir && pwd`
1689 1658
1690test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1659test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1691# Use eval to expand $SHELL 1660# Use eval to expand $SHELL
1693 am_missing_run="$MISSING --run " 1662 am_missing_run="$MISSING --run "
1694else 1663else
1695 am_missing_run= 1664 am_missing_run=
1696 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1665 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1697echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1666echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1698fi
1699
1700if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1701 # We used to keeping the `.' as first argument, in order to
1702 # allow $(mkdir_p) to be used without argument. As in
1703 # $(mkdir_p) $(somedir)
1704 # where $(somedir) is conditionally defined. However this is wrong
1705 # for two reasons:
1706 # 1. if the package is installed by a user who cannot write `.'
1707 # make install will fail,
1708 # 2. the above comment should most certainly read
1709 # $(mkdir_p) $(DESTDIR)$(somedir)
1710 # so it does not work when $(somedir) is undefined and
1711 # $(DESTDIR) is not.
1712 # To support the latter case, we have to write
1713 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1714 # so the `.' trick is pointless.
1715 mkdir_p='mkdir -p --'
1716else
1717 # On NextStep and OpenStep, the `mkdir' command does not
1718 # recognize any option. It will interpret all options as
1719 # directories to create, and then abort because `.' already
1720 # exists.
1721 for d in ./-p ./--version;
1722 do
1723 test -d $d && rmdir $d
1724 done
1725 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1726 if test -f "$ac_aux_dir/mkinstalldirs"; then
1727 mkdir_p='$(mkinstalldirs)'
1728 else
1729 mkdir_p='$(install_sh) -d'
1730 fi
1731fi 1667fi
1732 1668
1733for ac_prog in gawk mawk nawk awk 1669for ac_prog in gawk mawk nawk awk
1734do 1670do
1735 # Extract the first word of "$ac_prog", so it can be a program name with args. 1671 # Extract the first word of "$ac_prog", so it can be a program name with args.
1806else 1742else
1807 am__leading_dot=_ 1743 am__leading_dot=_
1808fi 1744fi
1809rmdir .tst 2>/dev/null 1745rmdir .tst 2>/dev/null
1810 1746
1811# test to see if srcdir already configured 1747 # test to see if srcdir already configured
1812if test "`cd $srcdir && pwd`" != "`pwd`" && 1748if test "`cd $srcdir && pwd`" != "`pwd`" &&
1813 test -f $srcdir/config.status; then 1749 test -f $srcdir/config.status; then
1814 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1750 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1815echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1751echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1816 { (exit 1); exit 1; }; } 1752 { (exit 1); exit 1; }; }
1853 1789
1854AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1790AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1855 1791
1856 1792
1857MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1793MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1794
1795
1796AMTAR=${AMTAR-"${am_missing_run}tar"}
1858 1797
1859install_sh=${install_sh-"$am_aux_dir/install-sh"} 1798install_sh=${install_sh-"$am_aux_dir/install-sh"}
1860 1799
1861# Installed binaries are usually stripped using `strip' when the user 1800# Installed binaries are usually stripped using `strip' when the user
1862# run `make install-strip'. However `strip' might not be the right 1801# run `make install-strip'. However `strip' might not be the right
1946fi 1885fi
1947INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1886INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1948 1887
1949# We need awk for the "check" target. The system "awk" is bad on 1888# We need awk for the "check" target. The system "awk" is bad on
1950# some platforms. 1889# some platforms.
1951# Always define AMTAR for backward compatibility.
1952
1953AMTAR=${AMTAR-"${am_missing_run}tar"}
1954
1955am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1956
1957
1958 1890
1959 1891
1960 1892
1961 ac_config_headers="$ac_config_headers include/autoconf.h" 1893 ac_config_headers="$ac_config_headers include/autoconf.h"
1962 1894
1987 1919
1988 1920
1989 1921
1990 1922
1991 1923
1992# Check whether --enable-shared or --disable-shared was given.
1993if test "${enable_shared+set}" = set; then
1994 enableval="$enable_shared"
1995 p=${PACKAGE-default}
1996 case $enableval in
1997 yes) enable_shared=yes ;;
1998 no) enable_shared=no ;;
1999 *)
2000 enable_shared=no
2001 # Look at the argument we got. We use all the common list separators.
2002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2003 for pkg in $enableval; do
2004 IFS="$lt_save_ifs"
2005 if test "X$pkg" = "X$p"; then
2006 enable_shared=yes
2007 fi
2008 done
2009 IFS="$lt_save_ifs"
2010 ;;
2011 esac
2012else
2013 enable_shared=yes
2014fi;
2015 1924
2016# Check whether --enable-static or --disable-static was given.
2017if test "${enable_static+set}" = set; then
2018 enableval="$enable_static"
2019 p=${PACKAGE-default}
2020 case $enableval in
2021 yes) enable_static=yes ;;
2022 no) enable_static=no ;;
2023 *)
2024 enable_static=no
2025 # Look at the argument we got. We use all the common list separators.
2026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2027 for pkg in $enableval; do
2028 IFS="$lt_save_ifs"
2029 if test "X$pkg" = "X$p"; then
2030 enable_static=yes
2031 fi
2032 done
2033 IFS="$lt_save_ifs"
2034 ;;
2035 esac
2036else
2037 enable_static=yes
2038fi;
2039 1925
2040# Check whether --enable-fast-install or --disable-fast-install was given. 1926macro_version=''
2041if test "${enable_fast_install+set}" = set; then 1927macro_revision='1.1467'
2042 enableval="$enable_fast_install" 1928
2043 p=${PACKAGE-default} 1929
2044 case $enableval in 1930
2045 yes) enable_fast_install=yes ;; 1931
2046 no) enable_fast_install=no ;; 1932
2047 *) 1933
2048 enable_fast_install=no 1934
2049 # Look at the argument we got. We use all the common list separators. 1935
2050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1936
2051 for pkg in $enableval; do 1937
2052 IFS="$lt_save_ifs" 1938
2053 if test "X$pkg" = "X$p"; then 1939
2054 enable_fast_install=yes 1940case $ac_aux_dir in
2055 fi 1941 $srcdir) ltmain=./ltmain.sh ;;
2056 done 1942 $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
2057 IFS="$lt_save_ifs" 1943esac
2058 ;; 1944test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
2059 esac
2060else
2061 enable_fast_install=yes
2062fi;
2063 1945
2064# Make sure we can run config.sub. 1946# Make sure we can run config.sub.
2065$ac_config_sub sun4 >/dev/null 2>&1 || 1947$ac_config_sub sun4 >/dev/null 2>&1 ||
2066 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1948 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2067echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1949echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2746 grep -v '^ *+' conftest.er1 >conftest.err 2628 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1 2629 rm -f conftest.er1
2748 cat conftest.err >&5 2630 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && 2632 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag" 2633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752 || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5 2635 (eval $ac_try) 2>&5
2755 ac_status=$? 2636 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } && 2638 (exit $ac_status); }; } &&
2805 grep -v '^ *+' conftest.er1 >conftest.err 2686 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1 2687 rm -f conftest.er1
2807 cat conftest.err >&5 2688 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } && 2690 (exit $ac_status); } &&
2810 { ac_try='test -z "$ac_c_werror_flag" 2691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2811 || test ! -s conftest.err'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5 2693 (eval $ac_try) 2>&5
2814 ac_status=$? 2694 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } && 2696 (exit $ac_status); }; } &&
2922 grep -v '^ *+' conftest.er1 >conftest.err 2802 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1 2803 rm -f conftest.er1
2924 cat conftest.err >&5 2804 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } && 2806 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag" 2807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5 2809 (eval $ac_try) 2>&5
2931 ac_status=$? 2810 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } && 2812 (exit $ac_status); }; } &&
2977 grep -v '^ *+' conftest.er1 >conftest.err 2856 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1 2857 rm -f conftest.er1
2979 cat conftest.err >&5 2858 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } && 2860 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag" 2861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2983 || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 (eval $ac_try) 2>&5 2863 (eval $ac_try) 2>&5
2986 ac_status=$? 2864 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } && 2866 (exit $ac_status); }; } &&
3023 grep -v '^ *+' conftest.er1 >conftest.err 2901 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1 2902 rm -f conftest.er1
3025 cat conftest.err >&5 2903 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } && 2905 (exit $ac_status); } &&
3028 { ac_try='test -z "$ac_c_werror_flag" 2906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3029 || test ! -s conftest.err'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5 2908 (eval $ac_try) 2>&5
3032 ac_status=$? 2909 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } && 2911 (exit $ac_status); }; } &&
3068 grep -v '^ *+' conftest.er1 >conftest.err 2945 grep -v '^ *+' conftest.er1 >conftest.err
3069 rm -f conftest.er1 2946 rm -f conftest.er1
3070 cat conftest.err >&5 2947 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } && 2949 (exit $ac_status); } &&
3073 { ac_try='test -z "$ac_c_werror_flag" 2950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3074 || test ! -s conftest.err'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 (eval $ac_try) 2>&5 2952 (eval $ac_try) 2>&5
3077 ac_status=$? 2953 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } && 2955 (exit $ac_status); }; } &&
3149 # overwrite some of them when testing with obscure command lines. 3025 # overwrite some of them when testing with obscure command lines.
3150 # This happens at least with the AIX C compiler. 3026 # This happens at least with the AIX C compiler.
3151 : > sub/conftest.c 3027 : > sub/conftest.c
3152 for i in 1 2 3 4 5 6; do 3028 for i in 1 2 3 4 5 6; do
3153 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3154 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3155 # Solaris 8's {/usr,}/bin/sh.
3156 touch sub/conftst$i.h 3030 : > sub/conftst$i.h
3157 done 3031 done
3158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3159 3033
3160 case $depmode in 3034 case $depmode in
3161 nosideeffect) 3035 nosideeffect)
3179 >/dev/null 2>conftest.err && 3053 >/dev/null 2>conftest.err &&
3180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3181 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3055 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3182 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3183 # icc doesn't choke on unknown options, it will just issue warnings 3057 # icc doesn't choke on unknown options, it will just issue warnings
3184 # or remarks (even with -Werror). So we grep stderr for any message 3058 # (even with -Werror). So we grep stderr for any message
3185 # that says an option was ignored or not supported. 3059 # that says an option was ignored.
3186 # When given -MP, icc 7.0 and 7.1 complain thusly:
3187 # icc: Command line warning: ignoring option '-M'; no argument required
3188 # The diagnosis changed in icc 8.0:
3189 # icc: Command line remark: option '-MP' not supported
3190 if (grep 'ignoring option' conftest.err ||
3191 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3060 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3192 am_cv_CC_dependencies_compiler_type=$depmode 3061 am_cv_CC_dependencies_compiler_type=$depmode
3193 break 3062 break
3194 fi 3063 fi
3195 fi 3064 fi
3196 done 3065 done
3269 fi 3138 fi
3270 done 3139 done
3271done 3140done
3272SED=$lt_cv_path_SED 3141SED=$lt_cv_path_SED
3273 3142
3143
3274fi 3144fi
3275 3145
3276echo "$as_me:$LINENO: result: $SED" >&5 3146echo "$as_me:$LINENO: result: $SED" >&5
3277echo "${ECHO_T}$SED" >&6 3147echo "${ECHO_T}$SED" >&6
3148
3149test -z "$SED" && SED=sed
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3278 3160
3279echo "$as_me:$LINENO: checking for egrep" >&5 3161echo "$as_me:$LINENO: checking for egrep" >&5
3280echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3162echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3281if test "${ac_cv_prog_egrep+set}" = set; then 3163if test "${ac_cv_prog_egrep+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6 3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3290echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3172echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3291 EGREP=$ac_cv_prog_egrep 3173 EGREP=$ac_cv_prog_egrep
3292 3174
3293 3175
3294 3176
3177test -z "$GREP" && GREP=grep
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3295# Check whether --with-gnu-ld or --without-gnu-ld was given. 3190# Check whether --with-gnu-ld or --without-gnu-ld was given.
3296if test "${with_gnu_ld+set}" = set; then 3191if test "${with_gnu_ld+set}" = set; then
3297 withval="$with_gnu_ld" 3192 withval="$with_gnu_ld"
3298 test "$withval" = no || with_gnu_ld=yes 3193 test "$withval" = no || with_gnu_ld=yes
3299else 3194else
3300 with_gnu_ld=no 3195 with_gnu_ld=no
3301fi; 3196fi;
3197
3302ac_prog=ld 3198ac_prog=ld
3303if test "$GCC" = yes; then 3199if test "$GCC" = yes; then
3304 # Check if gcc -print-prog-name=ld gives a path. 3200 # Check if gcc -print-prog-name=ld gives a path.
3305 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3201 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3306echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3202echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3315 # Accept absolute paths. 3211 # Accept absolute paths.
3316 [\\/]* | ?:[\\/]*) 3212 [\\/]* | ?:[\\/]*)
3317 re_direlt='/[^/][^/]*/\.\./' 3213 re_direlt='/[^/][^/]*/\.\./'
3318 # Canonicalize the pathname of ld 3214 # Canonicalize the pathname of ld
3319 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3215 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3320 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3216 while echo $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do
3321 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3217 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3322 done 3218 done
3323 test -z "$LD" && LD="$ac_prog" 3219 test -z "$LD" && LD="$ac_prog"
3324 ;; 3220 ;;
3325 "") 3221 "")
3396echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3292echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3397echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3293echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3398with_gnu_ld=$lt_cv_prog_gnu_ld 3294with_gnu_ld=$lt_cv_prog_gnu_ld
3399 3295
3400 3296
3297
3298
3299
3300
3301
3302
3303
3401echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3304echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3402echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3305echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3403if test "${lt_cv_ld_reload_flag+set}" = set; then 3306if test "${lt_cv_ld_reload_flag+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6 3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3405else 3308else
3411case $reload_flag in 3314case $reload_flag in
3412"" | " "*) ;; 3315"" | " "*) ;;
3413*) reload_flag=" $reload_flag" ;; 3316*) reload_flag=" $reload_flag" ;;
3414esac 3317esac
3415reload_cmds='$LD$reload_flag -o $output$reload_objs' 3318reload_cmds='$LD$reload_flag -o $output$reload_objs'
3319case $host_os in
3320 darwin*)
3321 if test "$GCC" = yes; then
3322 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3323 else
3324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3325 fi
3326 ;;
3327esac
3328
3329
3330
3331
3332
3333
3334
3335
3416 3336
3417echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3337echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3338echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419if test "${lt_cv_path_NM+set}" = set; then 3339if test "${lt_cv_path_NM+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6 3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3457fi 3377fi
3458fi 3378fi
3459echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3379echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3460echo "${ECHO_T}$lt_cv_path_NM" >&6 3380echo "${ECHO_T}$lt_cv_path_NM" >&6
3461NM="$lt_cv_path_NM" 3381NM="$lt_cv_path_NM"
3382test -z "$NM" && NM=nm
3383
3384
3385
3386
3387
3462 3388
3463echo "$as_me:$LINENO: checking whether ln -s works" >&5 3389echo "$as_me:$LINENO: checking whether ln -s works" >&5
3464echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3390echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3465LN_S=$as_ln_s 3391LN_S=$as_ln_s
3466if test "$LN_S" = "ln -s"; then 3392if test "$LN_S" = "ln -s"; then
3468echo "${ECHO_T}yes" >&6 3394echo "${ECHO_T}yes" >&6
3469else 3395else
3470 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3396 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3471echo "${ECHO_T}no, using $LN_S" >&6 3397echo "${ECHO_T}no, using $LN_S" >&6
3472fi 3398fi
3399
3473 3400
3474echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3401echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3475echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3402echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3476if test "${lt_cv_deplibs_check_method+set}" = set; then 3403if test "${lt_cv_deplibs_check_method+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6 3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 # func_win32_libid is a shell function defined in ltmain.sh 3436 # func_win32_libid is a shell function defined in ltmain.sh
3510 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3511 lt_cv_file_magic_cmd='func_win32_libid' 3438 lt_cv_file_magic_cmd='func_win32_libid'
3512 ;; 3439 ;;
3513 3440
3514mingw* | pw32*)
3515 # Base MSYS/MinGW do not provide the 'file' command needed by 3441 # Base MSYS/MinGW do not provide the 'file' command needed by
3516 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3442 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3443mingw* | pw32*)
3517 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3444 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3518 lt_cv_file_magic_cmd='$OBJDUMP -f' 3445 lt_cv_file_magic_cmd='$OBJDUMP -f'
3519 ;; 3446 ;;
3520 3447
3521darwin* | rhapsody*) 3448darwin* | rhapsody*)
3522 lt_cv_deplibs_check_method=pass_all 3449 lt_cv_deplibs_check_method=pass_all
3523 ;; 3450 ;;
3524 3451
3525freebsd* | kfreebsd*-gnu) 3452freebsd* | kfreebsd*-gnu)
3526 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3527 case $host_cpu in 3454 case $host_cpu in
3528 i*86 ) 3455 i*86 )
3529 # Not sure whether the presence of OpenBSD here was a mistake. 3456 # Not sure whether the presence of OpenBSD here was a mistake.
3530 # Let's accept both of them until this is cleared up. 3457 # Let's accept both of them until this is cleared up.
3531 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3458 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3570 lt_cv_deplibs_check_method=pass_all 3497 lt_cv_deplibs_check_method=pass_all
3571 ;; 3498 ;;
3572 3499
3573# This must be Linux ELF. 3500# This must be Linux ELF.
3574linux*) 3501linux*)
3502 case $host_cpu in
3503 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3504 lt_cv_deplibs_check_method=pass_all ;;
3505 *)
3506 # glibc up to 2.1.1 does not perform some relocations on ARM
3507 # this will be overridden with pass_all, but let us keep it just in case
3508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3509 esac
3510 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3575 lt_cv_deplibs_check_method=pass_all 3511 lt_cv_deplibs_check_method=pass_all
3576 ;; 3512 ;;
3577 3513
3578netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 3514netbsd* | knetbsd*-gnu)
3579 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3515 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3581 else 3517 else
3582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3583 fi 3519 fi
3584 ;; 3520 ;;
3594 ;; 3530 ;;
3595 3531
3596openbsd*) 3532openbsd*)
3597 lt_cv_file_magic_cmd=/usr/bin/file 3533 lt_cv_file_magic_cmd=/usr/bin/file
3598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3534 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3601 else 3537 else
3602 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3538 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3603 fi 3539 fi
3604 ;; 3540 ;;
3652test -z "$deplibs_check_method" && deplibs_check_method=unknown 3588test -z "$deplibs_check_method" && deplibs_check_method=unknown
3653 3589
3654 3590
3655 3591
3656 3592
3593
3594
3595
3596
3597
3598
3599
3600
3601if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3603set dummy ${ac_tool_prefix}ar; ac_word=$2
3604echo "$as_me:$LINENO: checking for $ac_word" >&5
3605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606if test "${ac_cv_prog_AR+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 if test -n "$AR"; then
3610 ac_cv_prog_AR="$AR" # Let the user override the test.
3611else
3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_AR="${ac_tool_prefix}ar"
3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623done
3624done
3625
3626fi
3627fi
3628AR=$ac_cv_prog_AR
3629if test -n "$AR"; then
3630 echo "$as_me:$LINENO: result: $AR" >&5
3631echo "${ECHO_T}$AR" >&6
3632else
3633 echo "$as_me:$LINENO: result: no" >&5
3634echo "${ECHO_T}no" >&6
3635fi
3636
3637fi
3638if test -z "$ac_cv_prog_AR"; then
3639 ac_ct_AR=$AR
3640 # Extract the first word of "ar", so it can be a program name with args.
3641set dummy ar; ac_word=$2
3642echo "$as_me:$LINENO: checking for $ac_word" >&5
3643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647 if test -n "$ac_ct_AR"; then
3648 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3649else
3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651for as_dir in $PATH
3652do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_ac_ct_AR="ar"
3658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661done
3662done
3663
3664 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
3665fi
3666fi
3667ac_ct_AR=$ac_cv_prog_ac_ct_AR
3668if test -n "$ac_ct_AR"; then
3669 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3670echo "${ECHO_T}$ac_ct_AR" >&6
3671else
3672 echo "$as_me:$LINENO: result: no" >&5
3673echo "${ECHO_T}no" >&6
3674fi
3675
3676 AR=$ac_ct_AR
3677else
3678 AR="$ac_cv_prog_AR"
3679fi
3680
3681test -z "$AR" && AR=ar
3682test -z "$AR_FLAGS" && AR_FLAGS=cru
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3696set dummy ${ac_tool_prefix}strip; ac_word=$2
3697echo "$as_me:$LINENO: checking for $ac_word" >&5
3698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699if test "${ac_cv_prog_STRIP+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 if test -n "$STRIP"; then
3703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716done
3717done
3718
3719fi
3720fi
3721STRIP=$ac_cv_prog_STRIP
3722if test -n "$STRIP"; then
3723 echo "$as_me:$LINENO: result: $STRIP" >&5
3724echo "${ECHO_T}$STRIP" >&6
3725else
3726 echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6
3728fi
3729
3730fi
3731if test -z "$ac_cv_prog_STRIP"; then
3732 ac_ct_STRIP=$STRIP
3733 # Extract the first word of "strip", so it can be a program name with args.
3734set dummy strip; ac_word=$2
3735echo "$as_me:$LINENO: checking for $ac_word" >&5
3736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if test -n "$ac_ct_STRIP"; then
3741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_STRIP="strip"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754done
3755done
3756
3757 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3758fi
3759fi
3760ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3761if test -n "$ac_ct_STRIP"; then
3762 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3763echo "${ECHO_T}$ac_ct_STRIP" >&6
3764else
3765 echo "$as_me:$LINENO: result: no" >&5
3766echo "${ECHO_T}no" >&6
3767fi
3768
3769 STRIP=$ac_ct_STRIP
3770else
3771 STRIP="$ac_cv_prog_STRIP"
3772fi
3773
3774test -z "$STRIP" && STRIP=:
3775
3776
3777
3778
3779
3780
3781if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3783set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3784echo "$as_me:$LINENO: checking for $ac_word" >&5
3785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786if test "${ac_cv_prog_RANLIB+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789 if test -n "$RANLIB"; then
3790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803done
3804done
3805
3806fi
3807fi
3808RANLIB=$ac_cv_prog_RANLIB
3809if test -n "$RANLIB"; then
3810 echo "$as_me:$LINENO: result: $RANLIB" >&5
3811echo "${ECHO_T}$RANLIB" >&6
3812else
3813 echo "$as_me:$LINENO: result: no" >&5
3814echo "${ECHO_T}no" >&6
3815fi
3816
3817fi
3818if test -z "$ac_cv_prog_RANLIB"; then
3819 ac_ct_RANLIB=$RANLIB
3820 # Extract the first word of "ranlib", so it can be a program name with args.
3821set dummy ranlib; ac_word=$2
3822echo "$as_me:$LINENO: checking for $ac_word" >&5
3823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
3827 if test -n "$ac_ct_RANLIB"; then
3828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3829else
3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831for as_dir in $PATH
3832do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_ac_ct_RANLIB="ranlib"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3840 fi
3841done
3842done
3843
3844 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3845fi
3846fi
3847ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3848if test -n "$ac_ct_RANLIB"; then
3849 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3850echo "${ECHO_T}$ac_ct_RANLIB" >&6
3851else
3852 echo "$as_me:$LINENO: result: no" >&5
3853echo "${ECHO_T}no" >&6
3854fi
3855
3856 RANLIB=$ac_ct_RANLIB
3857else
3858 RANLIB="$ac_cv_prog_RANLIB"
3859fi
3860
3861test -z "$RANLIB" && RANLIB=:
3862
3863
3864
3865
3866
3867
3868# Determine commands to create old-style static archives.
3869old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3870old_postinstall_cmds='chmod 644 $oldlib'
3871old_postuninstall_cmds=
3872
3873if test -n "$RANLIB"; then
3874 case $host_os in
3875 openbsd*)
3876 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3877 ;;
3878 *)
3879 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3880 ;;
3881 esac
3882 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3883fi
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900# find the maximum length of command line arguments
3901echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3902echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3903if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906 i=0
3907 teststring="ABCD"
3908
3909 case $build_os in
3910 msdosdjgpp*)
3911 # On DJGPP, this test can blow up pretty badly due to problems in libc
3912 # (any single argument exceeding 2000 bytes causes a buffer overrun
3913 # during glob expansion). Even if it were fixed, the result of this
3914 # check would be larger than it should be.
3915 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3916 ;;
3917
3918 gnu*)
3919 # Under GNU Hurd, this test is not required because there is
3920 # no limit to the length of command line arguments.
3921 # Libtool will interpret -1 as no limit whatsoever
3922 lt_cv_sys_max_cmd_len=-1;
3923 ;;
3924
3925 cygwin* | mingw*)
3926 # On Win9x/ME, this test blows up -- it succeeds, but takes
3927 # about 5 minutes as the teststring grows exponentially.
3928 # Worse, since 9x/ME are not pre-emptively multitasking,
3929 # you end up with a "frozen" computer, even though with patience
3930 # the test eventually succeeds (with a max line length of 256k).
3931 # Instead, let's just punt: use the minimum linelength reported by
3932 # all of the supported platforms: 8192 (on NT/2K/XP).
3933 lt_cv_sys_max_cmd_len=8192;
3934 ;;
3935
3936 amigaos*)
3937 # On AmigaOS with pdksh, this test takes hours, literally.
3938 # So we just punt and use a minimum line length of 8192.
3939 lt_cv_sys_max_cmd_len=8192;
3940 ;;
3941
3942 *)
3943 # Make teststring a little bigger before we do anything with it.
3944 # a 1K string should be a reasonable start.
3945 for i in 1 2 3 4 5 6 7 8 ; do
3946 teststring=$teststring$teststring
3947 done
3948 # If test is not a shell built-in, we'll probably end up computing a
3949 # maximum length that is only half of the actual maximum length, but
3950 # we can't tell.
3951 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3952 = "XX$teststring$teststring") >/dev/null 2>&1 &&
3953 test $i != 17 # 1/2 MB should be enough
3954 do
3955 i=`expr $i + 1`
3956 teststring=$teststring$teststring
3957 done
3958 # Only check the string length outside the loop.
3959 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3960 teststring=
3961 # Add a significant safety factor because C++ compilers can tack on massive
3962 # amounts of additional arguments before passing them to the linker.
3963 # It appears as though 1/2 is a usable value.
3964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3965 ;;
3966 esac
3967
3968fi
3969
3970if test -n $lt_cv_sys_max_cmd_len ; then
3971 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3972echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3973else
3974 echo "$as_me:$LINENO: result: none" >&5
3975echo "${ECHO_T}none" >&6
3976fi
3977
3978
3979
3980
3981
3982
3983
3984# Check for command to grab the raw symbol name followed by C symbol from nm.
3985echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
3986echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
3987if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990
3991# These are sane defaults that work on at least a few old systems.
3992# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3993
3994# Character class describing NM global symbol codes.
3995symcode='[BCDEGRST]'
3996
3997# Regexp to match symbols that can be accessed directly from C.
3998sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3999
4000# Transform the above into a raw symbol and a C symbol.
4001symxfrm='\1 \2\3 \3'
4002
4003# Transform an extracted symbol line into a proper C declaration
4004lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4005
4006# Transform an extracted symbol line into symbol name and symbol address
4007lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4008
4009# Define system-specific variables.
4010case $host_os in
4011aix*)
4012 symcode='[BCDT]'
4013 ;;
4014cygwin* | mingw* | pw32*)
4015 symcode='[ABCDGISTW]'
4016 ;;
4017hpux*) # Its linker distinguishes data from code symbols
4018 if test "$host_cpu" = ia64; then
4019 symcode='[ABCDEGRST]'
4020 fi
4021 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4022 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4023 ;;
4024irix* | nonstopux*)
4025 symcode='[BCDEGRST]'
4026 ;;
4027osf*)
4028 symcode='[BCDEGQRST]'
4029 ;;
4030solaris* | sysv5*)
4031 symcode='[BDRT]'
4032 ;;
4033sysv4)
4034 symcode='[DFNSTU]'
4035 ;;
4036esac
4037
4038# Handle CRLF in mingw tool chain
4039opt_cr=
4040case $build_os in
4041mingw*)
4042 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4043 ;;
4044esac
4045
4046# If we're using GNU nm, then use its standard symbol codes.
4047case `$NM -V 2>&1` in
4048*GNU* | *'with BFD'*)
4049 symcode='[ABCDGIRSTW]' ;;
4050esac
4051
4052# Try without a prefix undercore, then with it.
4053for ac_symprfx in "" "_"; do
4054
4055 # Write the raw and C identifiers.
4056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4057
4058 # Check to see that the pipe works correctly.
4059 pipe_works=no
4060
4061 rm -f conftest*
4062 cat > conftest.$ac_ext <<_LT_EOF
4063#ifdef __cplusplus
4064extern "C" {
4065#endif
4066char nm_test_var;
4067void nm_test_func(){}
4068#ifdef __cplusplus
4069}
4070#endif
4071int main(){nm_test_var='a';nm_test_func();return(0);}
4072_LT_EOF
4073
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; then
4079 # Now try to grab the symbols.
4080 nlist=conftest.nm
4081 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4082 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } && test -s "$nlist"; then
4086 # Try sorting and uniquifying the output.
4087 if sort "$nlist" | uniq > "$nlist"T; then
4088 mv -f "$nlist"T "$nlist"
4089 else
4090 rm -f "$nlist"T
4091 fi
4092
4093 # Make sure that we snagged all the symbols we need.
4094 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4095 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4096 cat <<_LT_EOF > conftest.$ac_ext
4097#ifdef __cplusplus
4098extern "C" {
4099#endif
4100
4101_LT_EOF
4102 # Now generate the symbol file.
4103 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4104
4105 cat <<_LT_EOF >> conftest.$ac_ext
4106#if defined (__STDC__) && __STDC__
4107# define lt_ptr_t void *
4108#else
4109# define lt_ptr_t char *
4110# define const
4111#endif
4112
4113/* The mapping between symbol names and symbols. */
4114const struct {
4115 const char *name;
4116 lt_ptr_t address;
4117}
4118lt_preloaded_symbols[] =
4119{
4120_LT_EOF
4121 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4122 cat <<\_LT_EOF >> conftest.$ac_ext
4123 {0, (lt_ptr_t) 0}
4124};
4125
4126#ifdef __cplusplus
4127}
4128#endif
4129_LT_EOF
4130 # Now try linking the two files.
4131 mv conftest.$ac_objext conftstm.$ac_objext
4132 lt_save_LIBS="$LIBS"
4133 lt_save_CFLAGS="$CFLAGS"
4134 LIBS="conftstm.$ac_objext"
4135 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4137 (eval $ac_link) 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4141 pipe_works=yes
4142 fi
4143 LIBS="$lt_save_LIBS"
4144 CFLAGS="$lt_save_CFLAGS"
4145 else
4146 echo "cannot find nm_test_func in $nlist" >&5
4147 fi
4148 else
4149 echo "cannot find nm_test_var in $nlist" >&5
4150 fi
4151 else
4152 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4153 fi
4154 else
4155 echo "$progname: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4157 fi
4158 rm -f conftest* conftst*
4159
4160 # Do not use the global_symbol_pipe unless it works.
4161 if test "$pipe_works" = yes; then
4162 break
4163 else
4164 lt_cv_sys_global_symbol_pipe=
4165 fi
4166done
4167
4168fi
4169
4170if test -z "$lt_cv_sys_global_symbol_pipe"; then
4171 lt_cv_sys_global_symbol_to_cdecl=
4172fi
4173if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4174 echo "$as_me:$LINENO: result: failed" >&5
4175echo "${ECHO_T}failed" >&6
4176else
4177 echo "$as_me:$LINENO: result: ok" >&5
4178echo "${ECHO_T}ok" >&6
4179fi
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
3657# If no C compiler was specified, use CC. 4214# If no C compiler was specified, use CC.
3658LTCC=${LTCC-"$CC"} 4215LTCC=${LTCC-"$CC"}
3659 4216
3660# Allow CC to be a program name with arguments. 4217# Allow CC to be a program name with arguments.
3661compiler=$CC 4218compiler=$CC
3690 fi 4247 fi
3691 rm -rf conftest* 4248 rm -rf conftest*
3692 ;; 4249 ;;
3693*-*-irix6*) 4250*-*-irix6*)
3694 # Find out which ABI we are using. 4251 # Find out which ABI we are using.
3695 echo '#line 3695 "configure"' > conftest.$ac_ext 4252 echo '#line 4252 "configure"' > conftest.$ac_ext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>&5 4254 (eval $ac_compile) 2>&5
3698 ac_status=$? 4255 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; then 4257 (exit $ac_status); }; then
3810 grep -v '^ *+' conftest.er1 >conftest.err 4367 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1 4368 rm -f conftest.er1
3812 cat conftest.err >&5 4369 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } && 4371 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag" 4372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5 4374 (eval $ac_try) 2>&5
3819 ac_status=$? 4375 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } && 4377 (exit $ac_status); }; } &&
3846 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4402 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3847 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4403 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3848 CFLAGS="$SAVE_CFLAGS" 4404 CFLAGS="$SAVE_CFLAGS"
3849 fi 4405 fi
3850 ;; 4406 ;;
3851
3852esac 4407esac
3853 4408
3854need_locks="$enable_libtool_lock" 4409need_locks="$enable_libtool_lock"
3855
3856 4410
3857ac_ext=c 4411ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS' 4412ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 grep -v '^ *+' conftest.er1 >conftest.err 4674 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1 4675 rm -f conftest.er1
4122 cat conftest.err >&5 4676 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && 4678 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" 4679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 || test ! -s conftest.err'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5 4681 (eval $ac_try) 2>&5
4129 ac_status=$? 4682 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; } && 4684 (exit $ac_status); }; } &&
4291 grep -v '^ *+' conftest.er1 >conftest.err 4844 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1 4845 rm -f conftest.er1
4293 cat conftest.err >&5 4846 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && 4848 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag" 4849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5 4851 (eval $ac_try) 2>&5
4300 ac_status=$? 4852 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } && 4854 (exit $ac_status); }; } &&
4329 4881
4330 4882
4331for ac_header in dlfcn.h 4883for ac_header in dlfcn.h
4332do 4884do
4333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334if eval "test \"\${$as_ac_Header+set}\" = set"; then
4335 echo "$as_me:$LINENO: checking for $ac_header" >&5 4886echo "$as_me:$LINENO: checking for $ac_header" >&5
4336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4337if eval "test \"\${$as_ac_Header+set}\" = set"; then 4888if eval "test \"\${$as_ac_Header+set}\" = set"; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6 4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4339fi
4340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4342else 4890else
4343 # Is the header compilable?
4344echo "$as_me:$LINENO: checking $ac_header usability" >&5
4345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4346cat >conftest.$ac_ext <<_ACEOF 4891 cat >conftest.$ac_ext <<_ACEOF
4347/* confdefs.h. */ 4892/* confdefs.h. */
4348_ACEOF 4893_ACEOF
4349cat confdefs.h >>conftest.$ac_ext 4894cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF 4895cat >>conftest.$ac_ext <<_ACEOF
4351/* end confdefs.h. */ 4896/* end confdefs.h. */
4352$ac_includes_default 4897$ac_includes_default
4898
4353#include <$ac_header> 4899#include <$ac_header>
4354_ACEOF 4900_ACEOF
4355rm -f conftest.$ac_objext 4901rm -f conftest.$ac_objext
4356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>conftest.er1 4903 (eval $ac_compile) 2>conftest.er1
4359 grep -v '^ *+' conftest.er1 >conftest.err 4905 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1 4906 rm -f conftest.er1
4361 cat conftest.err >&5 4907 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && 4909 (exit $ac_status); } &&
4364 { ac_try='test -z "$ac_c_werror_flag" 4910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4365 || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5 4912 (eval $ac_try) 2>&5
4368 ac_status=$? 4913 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } && 4915 (exit $ac_status); }; } &&
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5 4918 (eval $ac_try) 2>&5
4374 ac_status=$? 4919 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then 4921 (exit $ac_status); }; }; then
4377 ac_header_compiler=yes 4922 eval "$as_ac_Header=yes"
4378else 4923else
4379 echo "$as_me: failed program was:" >&5 4924 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5 4925sed 's/^/| /' conftest.$ac_ext >&5
4381 4926
4382ac_header_compiler=no 4927eval "$as_ac_Header=no"
4383fi 4928fi
4384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4386echo "${ECHO_T}$ac_header_compiler" >&6
4387
4388# Is the header present?
4389echo "$as_me:$LINENO: checking $ac_header presence" >&5
4390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4391cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
4397#include <$ac_header>
4398_ACEOF
4399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4401 ac_status=$?
4402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } >/dev/null; then
4407 if test -s conftest.err; then
4408 ac_cpp_err=$ac_c_preproc_warn_flag
4409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4410 else
4411 ac_cpp_err=
4412 fi
4413else
4414 ac_cpp_err=yes
4415fi
4416if test -z "$ac_cpp_err"; then
4417 ac_header_preproc=yes
4418else
4419 echo "$as_me: failed program was:" >&5
4420sed 's/^/| /' conftest.$ac_ext >&5
4421
4422 ac_header_preproc=no
4423fi
4424rm -f conftest.err conftest.$ac_ext
4425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4426echo "${ECHO_T}$ac_header_preproc" >&6
4427
4428# So? What about this header?
4429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4430 yes:no: )
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4435 ac_header_preproc=yes
4436 ;;
4437 no:yes:* )
4438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4450 (
4451 cat <<\_ASBOX
4452## ----------------------------------------------------- ##
4453## Report this to crossfire-devel@listserv.real-time.com ##
4454## ----------------------------------------------------- ##
4455_ASBOX
4456 ) |
4457 sed "s/^/$as_me: WARNING: /" >&2
4458 ;;
4459esac
4460echo "$as_me:$LINENO: checking for $ac_header" >&5
4461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4462if eval "test \"\${$as_ac_Header+set}\" = set"; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465 eval "$as_ac_Header=\$ac_header_preproc"
4466fi 4930fi
4467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4469
4470fi
4471if test `eval echo '${'$as_ac_Header'}'` = yes; then 4933if test `eval echo '${'$as_ac_Header'}'` = yes; then
4472 cat >>confdefs.h <<_ACEOF 4934 cat >>confdefs.h <<_ACEOF
4473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4474_ACEOF 4936_ACEOF
4475 4937
4476fi 4938fi
4477 4939
4478done 4940done
4479 4941
4480ac_ext=cc 4942
4481ac_cpp='$CXXCPP $CPPFLAGS' 4943# This can be used to rebuild libtool when needed
4482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4944LIBTOOL_DEPS="$ltmain"
4483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4945
4484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4946# Always use our own libtool.
4485if test -n "$ac_tool_prefix"; then 4947LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4486 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4948
4487 do 4949# Set options
4488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4950enable_dlopen=no
4489set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4951
4490echo "$as_me:$LINENO: checking for $ac_word" >&5 4952enable_win32_dll=no
4491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4953
4954# Check whether --enable-shared or --disable-shared was given.
4492if test "${ac_cv_prog_CXX+set}" = set; then 4955if test "${enable_shared+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6 4956 enableval="$enable_shared"
4494else 4957 p=${PACKAGE-default}
4495 if test -n "$CXX"; then 4958 case $enableval in
4496 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4959 yes) enable_shared=yes ;;
4497else 4960 no) enable_shared=no ;;
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4961 *)
4499for as_dir in $PATH 4962 enable_shared=no
4500do 4963 # Look at the argument we got. We use all the common list separators.
4501 IFS=$as_save_IFS 4964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4502 test -z "$as_dir" && as_dir=. 4965 for pkg in $enableval; do
4503 for ac_exec_ext in '' $ac_executable_extensions; do 4966 IFS="$lt_save_ifs"
4504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4967 if test "X$pkg" = "X$p"; then
4505 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4968 enable_shared=yes
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
4510done
4511
4512fi 4969 fi
4513fi
4514CXX=$ac_cv_prog_CXX
4515if test -n "$CXX"; then
4516 echo "$as_me:$LINENO: result: $CXX" >&5
4517echo "${ECHO_T}$CXX" >&6
4518else
4519 echo "$as_me:$LINENO: result: no" >&5
4520echo "${ECHO_T}no" >&6
4521fi
4522
4523 test -n "$CXX" && break
4524 done
4525fi
4526if test -z "$CXX"; then
4527 ac_ct_CXX=$CXX
4528 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4529do
4530 # Extract the first word of "$ac_prog", so it can be a program name with args.
4531set dummy $ac_prog; ac_word=$2
4532echo "$as_me:$LINENO: checking for $ac_word" >&5
4533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537 if test -n "$ac_ct_CXX"; then
4538 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4539else
4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547 ac_cv_prog_ac_ct_CXX="$ac_prog"
4548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551done
4552done
4553
4554fi
4555fi
4556ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4557if test -n "$ac_ct_CXX"; then
4558 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4559echo "${ECHO_T}$ac_ct_CXX" >&6
4560else
4561 echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
4563fi
4564
4565 test -n "$ac_ct_CXX" && break
4566done
4567test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4568
4569 CXX=$ac_ct_CXX
4570fi
4571
4572
4573# Provide some information about the compiler.
4574echo "$as_me:$LINENO:" \
4575 "checking for C++ compiler version" >&5
4576ac_compiler=`set X $ac_compile; echo $2`
4577{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4578 (eval $ac_compiler --version </dev/null >&5) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }
4582{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4583 (eval $ac_compiler -v </dev/null >&5) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }
4587{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4588 (eval $ac_compiler -V </dev/null >&5) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }
4592
4593echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4594echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4595if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598 cat >conftest.$ac_ext <<_ACEOF
4599/* confdefs.h. */
4600_ACEOF
4601cat confdefs.h >>conftest.$ac_ext
4602cat >>conftest.$ac_ext <<_ACEOF
4603/* end confdefs.h. */
4604
4605int
4606main ()
4607{
4608#ifndef __GNUC__
4609 choke me
4610#endif
4611
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext
4617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_cxx_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_compiler_gnu=yes
4639else
4640 echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
4643ac_compiler_gnu=no
4644fi
4645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4647
4648fi
4649echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4650echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4651GXX=`test $ac_compiler_gnu = yes && echo yes`
4652ac_test_CXXFLAGS=${CXXFLAGS+set}
4653ac_save_CXXFLAGS=$CXXFLAGS
4654CXXFLAGS="-g"
4655echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4656echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4657if test "${ac_cv_prog_cxx_g+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 cat >conftest.$ac_ext <<_ACEOF
4661/* confdefs.h. */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h. */
4666
4667int
4668main ()
4669{
4670
4671 ;
4672 return 0;
4673}
4674_ACEOF
4675rm -f conftest.$ac_objext
4676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677 (eval $ac_compile) 2>conftest.er1
4678 ac_status=$?
4679 grep -v '^ *+' conftest.er1 >conftest.err
4680 rm -f conftest.er1
4681 cat conftest.err >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -z "$ac_cxx_werror_flag"
4685 || test ! -s conftest.err'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; } &&
4691 { ac_try='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_cv_prog_cxx_g=yes
4698else
4699 echo "$as_me: failed program was:" >&5
4700sed 's/^/| /' conftest.$ac_ext >&5
4701
4702ac_cv_prog_cxx_g=no
4703fi
4704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4705fi
4706echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4707echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4708if test "$ac_test_CXXFLAGS" = set; then
4709 CXXFLAGS=$ac_save_CXXFLAGS
4710elif test $ac_cv_prog_cxx_g = yes; then
4711 if test "$GXX" = yes; then
4712 CXXFLAGS="-g -O2"
4713 else
4714 CXXFLAGS="-g"
4715 fi
4716else
4717 if test "$GXX" = yes; then
4718 CXXFLAGS="-O2"
4719 else
4720 CXXFLAGS=
4721 fi
4722fi
4723for ac_declaration in \
4724 '' \
4725 'extern "C" void std::exit (int) throw (); using std::exit;' \
4726 'extern "C" void std::exit (int); using std::exit;' \
4727 'extern "C" void exit (int) throw ();' \
4728 'extern "C" void exit (int);' \
4729 'void exit (int);'
4730do
4731 cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
4737$ac_declaration
4738#include <stdlib.h>
4739int
4740main ()
4741{
4742exit (42);
4743 ;
4744 return 0;
4745}
4746_ACEOF
4747rm -f conftest.$ac_objext
4748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>conftest.er1
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_cxx_werror_flag"
4757 || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 :
4770else
4771 echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774continue
4775fi
4776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777 cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h. */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h. */
4783$ac_declaration
4784int
4785main ()
4786{
4787exit (42);
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792rm -f conftest.$ac_objext
4793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_cxx_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 break
4815else
4816 echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819fi
4820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821done
4822rm -f conftest*
4823if test -n "$ac_declaration"; then
4824 echo '#ifdef __cplusplus' >>confdefs.h
4825 echo $ac_declaration >>confdefs.h
4826 echo '#endif' >>confdefs.h
4827fi
4828
4829ac_ext=cc
4830ac_cpp='$CXXCPP $CPPFLAGS'
4831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4834
4835depcc="$CXX" am_compiler_list=
4836
4837echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4838echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4839if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4843 # We make a subdir and do the tests there. Otherwise we can end up
4844 # making bogus files that we don't know about and never remove. For
4845 # instance it was reported that on HP-UX the gcc test will end up
4846 # making a dummy file named `D' -- because `-MD' means `put the output
4847 # in D'.
4848 mkdir conftest.dir
4849 # Copy depcomp to subdir because otherwise we won't find it if we're
4850 # using a relative directory.
4851 cp "$am_depcomp" conftest.dir
4852 cd conftest.dir
4853 # We will build objects and dependencies in a subdirectory because
4854 # it helps to detect inapplicable dependency modes. For instance
4855 # both Tru64's cc and ICC support -MD to output dependencies as a
4856 # side effect of compilation, but ICC will put the dependencies in
4857 # the current directory while Tru64 will put them in the object
4858 # directory.
4859 mkdir sub
4860
4861 am_cv_CXX_dependencies_compiler_type=none
4862 if test "$am_compiler_list" = ""; then
4863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4864 fi
4865 for depmode in $am_compiler_list; do
4866 # Setup a source with many dependencies, because some compilers
4867 # like to wrap large dependency lists on column 80 (with \), and
4868 # we should not choose a depcomp mode which is confused by this.
4869 #
4870 # We need to recreate these files for each test, as the compiler may
4871 # overwrite some of them when testing with obscure command lines.
4872 # This happens at least with the AIX C compiler.
4873 : > sub/conftest.c
4874 for i in 1 2 3 4 5 6; do
4875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4876 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4877 # Solaris 8's {/usr,}/bin/sh.
4878 touch sub/conftst$i.h
4879 done 4970 done
4880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4971 IFS="$lt_save_ifs"
4881
4882 case $depmode in
4883 nosideeffect)
4884 # after this tag, mechanisms are not by side-effect, so they'll
4885 # only be used when explicitly requested
4886 if test "x$enable_dependency_tracking" = xyes; then
4887 continue
4888 else
4889 break
4890 fi
4891 ;; 4972 ;;
4892 none) break ;;
4893 esac 4973 esac
4894 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4895 # mode. It turns out that the SunPro C++ compiler does not properly
4896 # handle `-M -o', and we need to detect this.
4897 if depmode=$depmode \
4898 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4900 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4901 >/dev/null 2>conftest.err &&
4902 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4903 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4904 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4905 # icc doesn't choke on unknown options, it will just issue warnings
4906 # or remarks (even with -Werror). So we grep stderr for any message
4907 # that says an option was ignored or not supported.
4908 # When given -MP, icc 7.0 and 7.1 complain thusly:
4909 # icc: Command line warning: ignoring option '-M'; no argument required
4910 # The diagnosis changed in icc 8.0:
4911 # icc: Command line remark: option '-MP' not supported
4912 if (grep 'ignoring option' conftest.err ||
4913 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4914 am_cv_CXX_dependencies_compiler_type=$depmode
4915 break
4916 fi
4917 fi
4918 done
4919
4920 cd ..
4921 rm -rf conftest.dir
4922else
4923 am_cv_CXX_dependencies_compiler_type=none
4924fi
4925
4926fi
4927echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4928echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4929CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4930
4931
4932
4933if
4934 test "x$enable_dependency_tracking" != xno \
4935 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4936 am__fastdepCXX_TRUE=
4937 am__fastdepCXX_FALSE='#'
4938else
4939 am__fastdepCXX_TRUE='#'
4940 am__fastdepCXX_FALSE=
4941fi
4942
4943
4944ac_ext=cc
4945ac_cpp='$CXXCPP $CPPFLAGS'
4946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4950echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4951if test -z "$CXXCPP"; then
4952 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955 # Double quotes because CXXCPP needs to be expanded
4956 for CXXCPP in "$CXX -E" "/lib/cpp"
4957 do
4958 ac_preproc_ok=false
4959for ac_cxx_preproc_warn_flag in '' yes
4960do
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat >conftest.$ac_ext <<_ACEOF
4968/* confdefs.h. */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h. */
4973#ifdef __STDC__
4974# include <limits.h>
4975#else 4974else
4976# include <assert.h> 4975 enable_shared=yes
4977#endif
4978 Syntax error
4979_ACEOF
4980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null; then
4988 if test -s conftest.err; then
4989 ac_cpp_err=$ac_cxx_preproc_warn_flag
4990 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4991 else
4992 ac_cpp_err=
4993 fi
4994else
4995 ac_cpp_err=yes
4996fi 4976fi;
4997if test -z "$ac_cpp_err"; then
4998 :
4999else
5000 echo "$as_me: failed program was:" >&5
5001sed 's/^/| /' conftest.$ac_ext >&5
5002 4977
5003 # Broken: fails on valid input.
5004continue
5005fi
5006rm -f conftest.err conftest.$ac_ext
5007 4978
5008 # OK, works on sane cases. Now check whether non-existent headers
5009 # can be detected and how.
5010 cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h. */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h. */
5016#include <ac_nonexistent.h>
5017_ACEOF
5018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_cxx_preproc_warn_flag
5028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5029 else
5030 ac_cpp_err=
5031 fi
5032else
5033 ac_cpp_err=yes
5034fi
5035if test -z "$ac_cpp_err"; then
5036 # Broken: success on invalid input.
5037continue
5038else
5039 echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041 4979
5042 # Passes both tests.
5043ac_preproc_ok=:
5044break
5045fi
5046rm -f conftest.err conftest.$ac_ext
5047 4980
5048done
5049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050rm -f conftest.err conftest.$ac_ext
5051if $ac_preproc_ok; then
5052 break
5053fi
5054 4981
5055 done
5056 ac_cv_prog_CXXCPP=$CXXCPP
5057 4982
5058fi
5059 CXXCPP=$ac_cv_prog_CXXCPP
5060else
5061 ac_cv_prog_CXXCPP=$CXXCPP
5062fi
5063echo "$as_me:$LINENO: result: $CXXCPP" >&5
5064echo "${ECHO_T}$CXXCPP" >&6
5065ac_preproc_ok=false
5066for ac_cxx_preproc_warn_flag in '' yes
5067do
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
5070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
5072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080#ifdef __STDC__
5081# include <limits.h>
5082#else
5083# include <assert.h>
5084#endif
5085 Syntax error
5086_ACEOF
5087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null; then
5095 if test -s conftest.err; then
5096 ac_cpp_err=$ac_cxx_preproc_warn_flag
5097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5098 else
5099 ac_cpp_err=
5100 fi
5101else
5102 ac_cpp_err=yes
5103fi
5104if test -z "$ac_cpp_err"; then
5105 :
5106else
5107 echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109 4983
5110 # Broken: fails on valid input.
5111continue
5112fi
5113rm -f conftest.err conftest.$ac_ext
5114 4984
5115 # OK, works on sane cases. Now check whether non-existent headers 4985# Check whether --enable-static or --disable-static was given.
5116 # can be detected and how. 4986if test "${enable_static+set}" = set; then
5117 cat >conftest.$ac_ext <<_ACEOF 4987 enableval="$enable_static"
5118/* confdefs.h. */ 4988 p=${PACKAGE-default}
5119_ACEOF 4989 case $enableval in
5120cat confdefs.h >>conftest.$ac_ext 4990 yes) enable_static=yes ;;
5121cat >>conftest.$ac_ext <<_ACEOF 4991 no) enable_static=no ;;
5122/* end confdefs.h. */ 4992 *)
5123#include <ac_nonexistent.h> 4993 enable_static=no
5124_ACEOF 4994 # Look at the argument we got. We use all the common list separators.
5125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4996 for pkg in $enableval; do
5127 ac_status=$? 4997 IFS="$lt_save_ifs"
5128 grep -v '^ *+' conftest.er1 >conftest.err 4998 if test "X$pkg" = "X$p"; then
5129 rm -f conftest.er1 4999 enable_static=yes
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null; then
5133 if test -s conftest.err; then
5134 ac_cpp_err=$ac_cxx_preproc_warn_flag
5135 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5136 else
5137 ac_cpp_err=
5138 fi
5139else
5140 ac_cpp_err=yes
5141fi
5142if test -z "$ac_cpp_err"; then
5143 # Broken: success on invalid input.
5144continue
5145else
5146 echo "$as_me: failed program was:" >&5
5147sed 's/^/| /' conftest.$ac_ext >&5
5148
5149 # Passes both tests.
5150ac_preproc_ok=:
5151break
5152fi
5153rm -f conftest.err conftest.$ac_ext
5154
5155done
5156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5157rm -f conftest.err conftest.$ac_ext
5158if $ac_preproc_ok; then
5159 :
5160else
5161 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5162See \`config.log' for more details." >&5
5163echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5164See \`config.log' for more details." >&2;}
5165 { (exit 1); exit 1; }; }
5166fi
5167
5168ac_ext=cc
5169ac_cpp='$CXXCPP $CPPFLAGS'
5170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173
5174
5175ac_ext=f
5176ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5177ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5179if test -n "$ac_tool_prefix"; then
5180 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5181 do
5182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_prog_F77+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 if test -n "$F77"; then
5190 ac_cv_prog_F77="$F77" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204done
5205
5206fi
5207fi
5208F77=$ac_cv_prog_F77
5209if test -n "$F77"; then
5210 echo "$as_me:$LINENO: result: $F77" >&5
5211echo "${ECHO_T}$F77" >&6
5212else
5213 echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
5215fi
5216
5217 test -n "$F77" && break
5218 done
5219fi
5220if test -z "$F77"; then
5221 ac_ct_F77=$F77
5222 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5223do
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225set dummy $ac_prog; ac_word=$2
5226echo "$as_me:$LINENO: checking for $ac_word" >&5
5227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231 if test -n "$ac_ct_F77"; then
5232 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_ac_ct_F77="$ac_prog"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245done
5246done
5247
5248fi
5249fi
5250ac_ct_F77=$ac_cv_prog_ac_ct_F77
5251if test -n "$ac_ct_F77"; then
5252 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5253echo "${ECHO_T}$ac_ct_F77" >&6
5254else
5255 echo "$as_me:$LINENO: result: no" >&5
5256echo "${ECHO_T}no" >&6
5257fi
5258
5259 test -n "$ac_ct_F77" && break
5260done
5261
5262 F77=$ac_ct_F77
5263fi
5264
5265
5266# Provide some information about the compiler.
5267echo "$as_me:5267:" \
5268 "checking for Fortran 77 compiler version" >&5
5269ac_compiler=`set X $ac_compile; echo $2`
5270{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5271 (eval $ac_compiler --version </dev/null >&5) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }
5275{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5276 (eval $ac_compiler -v </dev/null >&5) 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }
5280{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5281 (eval $ac_compiler -V </dev/null >&5) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }
5285rm -f a.out
5286
5287# If we don't use `.F' as extension, the preprocessor is not run on the
5288# input file. (Note that this only needs to work for GNU compilers.)
5289ac_save_ext=$ac_ext
5290ac_ext=F
5291echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5292echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5293if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295else
5296 cat >conftest.$ac_ext <<_ACEOF
5297 program main
5298#ifndef __GNUC__
5299 choke me
5300#endif
5301
5302 end
5303_ACEOF
5304rm -f conftest.$ac_objext
5305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_f77_werror_flag"
5314 || test ! -s conftest.err'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; } &&
5320 { ac_try='test -s conftest.$ac_objext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5326 ac_compiler_gnu=yes
5327else
5328 echo "$as_me: failed program was:" >&5
5329sed 's/^/| /' conftest.$ac_ext >&5
5330
5331ac_compiler_gnu=no
5332fi
5333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5335
5336fi
5337echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5338echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5339ac_ext=$ac_save_ext
5340ac_test_FFLAGS=${FFLAGS+set}
5341ac_save_FFLAGS=$FFLAGS
5342FFLAGS=
5343echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5344echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5345if test "${ac_cv_prog_f77_g+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347else
5348 FFLAGS=-g
5349cat >conftest.$ac_ext <<_ACEOF
5350 program main
5351
5352 end
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_f77_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_cv_prog_f77_g=yes
5377else
5378 echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381ac_cv_prog_f77_g=no
5382fi
5383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384
5385fi
5386echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5387echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5388if test "$ac_test_FFLAGS" = set; then
5389 FFLAGS=$ac_save_FFLAGS
5390elif test $ac_cv_prog_f77_g = yes; then
5391 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5392 FFLAGS="-g -O2"
5393 else
5394 FFLAGS="-g"
5395 fi
5396else
5397 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5398 FFLAGS="-O2"
5399 else
5400 FFLAGS=
5401 fi
5402fi
5403
5404G77=`test $ac_compiler_gnu = yes && echo yes`
5405ac_ext=c
5406ac_cpp='$CPP $CPPFLAGS'
5407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410
5411
5412
5413# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5414
5415# find the maximum length of command line arguments
5416echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5417echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5418if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421 i=0
5422 teststring="ABCD"
5423
5424 case $build_os in
5425 msdosdjgpp*)
5426 # On DJGPP, this test can blow up pretty badly due to problems in libc
5427 # (any single argument exceeding 2000 bytes causes a buffer overrun
5428 # during glob expansion). Even if it were fixed, the result of this
5429 # check would be larger than it should be.
5430 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5431 ;;
5432
5433 gnu*)
5434 # Under GNU Hurd, this test is not required because there is
5435 # no limit to the length of command line arguments.
5436 # Libtool will interpret -1 as no limit whatsoever
5437 lt_cv_sys_max_cmd_len=-1;
5438 ;;
5439
5440 cygwin* | mingw*)
5441 # On Win9x/ME, this test blows up -- it succeeds, but takes
5442 # about 5 minutes as the teststring grows exponentially.
5443 # Worse, since 9x/ME are not pre-emptively multitasking,
5444 # you end up with a "frozen" computer, even though with patience
5445 # the test eventually succeeds (with a max line length of 256k).
5446 # Instead, let's just punt: use the minimum linelength reported by
5447 # all of the supported platforms: 8192 (on NT/2K/XP).
5448 lt_cv_sys_max_cmd_len=8192;
5449 ;;
5450
5451 amigaos*)
5452 # On AmigaOS with pdksh, this test takes hours, literally.
5453 # So we just punt and use a minimum line length of 8192.
5454 lt_cv_sys_max_cmd_len=8192;
5455 ;;
5456
5457 *)
5458 # If test is not a shell built-in, we'll probably end up computing a
5459 # maximum length that is only half of the actual maximum length, but
5460 # we can't tell.
5461 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5462 = "XX$teststring") >/dev/null 2>&1 &&
5463 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5464 lt_cv_sys_max_cmd_len=$new_result &&
5465 test $i != 17 # 1/2 MB should be enough
5466 do
5467 i=`expr $i + 1`
5468 teststring=$teststring$teststring
5469 done
5470 teststring=
5471 # Add a significant safety factor because C++ compilers can tack on massive
5472 # amounts of additional arguments before passing them to the linker.
5473 # It appears as though 1/2 is a usable value.
5474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5475 ;;
5476 esac
5477
5478fi
5479
5480if test -n $lt_cv_sys_max_cmd_len ; then
5481 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5482echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5483else
5484 echo "$as_me:$LINENO: result: none" >&5
5485echo "${ECHO_T}none" >&6
5486fi
5487
5488
5489
5490
5491# Check for command to grab the raw symbol name followed by C symbol from nm.
5492echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5493echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5494if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496else
5497
5498# These are sane defaults that work on at least a few old systems.
5499# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5500
5501# Character class describing NM global symbol codes.
5502symcode='[BCDEGRST]'
5503
5504# Regexp to match symbols that can be accessed directly from C.
5505sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5506
5507# Transform the above into a raw symbol and a C symbol.
5508symxfrm='\1 \2\3 \3'
5509
5510# Transform an extracted symbol line into a proper C declaration
5511lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5512
5513# Transform an extracted symbol line into symbol name and symbol address
5514lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5515
5516# Define system-specific variables.
5517case $host_os in
5518aix*)
5519 symcode='[BCDT]'
5520 ;;
5521cygwin* | mingw* | pw32*)
5522 symcode='[ABCDGISTW]'
5523 ;;
5524hpux*) # Its linker distinguishes data from code symbols
5525 if test "$host_cpu" = ia64; then
5526 symcode='[ABCDEGRST]'
5527 fi
5528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5529 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5530 ;;
5531irix* | nonstopux*)
5532 symcode='[BCDEGRST]'
5533 ;;
5534osf*)
5535 symcode='[BCDEGQRST]'
5536 ;;
5537solaris* | sysv5*)
5538 symcode='[BDRT]'
5539 ;;
5540sysv4)
5541 symcode='[DFNSTU]'
5542 ;;
5543esac
5544
5545# Handle CRLF in mingw tool chain
5546opt_cr=
5547case $build_os in
5548mingw*)
5549 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5550 ;;
5551esac
5552
5553# If we're using GNU nm, then use its standard symbol codes.
5554case `$NM -V 2>&1` in
5555*GNU* | *'with BFD'*)
5556 symcode='[ABCDGIRSTW]' ;;
5557esac
5558
5559# Try without a prefix undercore, then with it.
5560for ac_symprfx in "" "_"; do
5561
5562 # Write the raw and C identifiers.
5563 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5564
5565 # Check to see that the pipe works correctly.
5566 pipe_works=no
5567
5568 rm -f conftest*
5569 cat > conftest.$ac_ext <<EOF
5570#ifdef __cplusplus
5571extern "C" {
5572#endif
5573char nm_test_var;
5574void nm_test_func(){}
5575#ifdef __cplusplus
5576}
5577#endif
5578int main(){nm_test_var='a';nm_test_func();return(0);}
5579EOF
5580
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; then
5586 # Now try to grab the symbols.
5587 nlist=conftest.nm
5588 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5589 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && test -s "$nlist"; then
5593 # Try sorting and uniquifying the output.
5594 if sort "$nlist" | uniq > "$nlist"T; then
5595 mv -f "$nlist"T "$nlist"
5596 else
5597 rm -f "$nlist"T
5598 fi
5599
5600 # Make sure that we snagged all the symbols we need.
5601 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5602 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5603 cat <<EOF > conftest.$ac_ext
5604#ifdef __cplusplus
5605extern "C" {
5606#endif
5607
5608EOF
5609 # Now generate the symbol file.
5610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5611
5612 cat <<EOF >> conftest.$ac_ext
5613#if defined (__STDC__) && __STDC__
5614# define lt_ptr_t void *
5615#else
5616# define lt_ptr_t char *
5617# define const
5618#endif
5619
5620/* The mapping between symbol names and symbols. */
5621const struct {
5622 const char *name;
5623 lt_ptr_t address;
5624}
5625lt_preloaded_symbols[] =
5626{
5627EOF
5628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5629 cat <<\EOF >> conftest.$ac_ext
5630 {0, (lt_ptr_t) 0}
5631};
5632
5633#ifdef __cplusplus
5634}
5635#endif
5636EOF
5637 # Now try linking the two files.
5638 mv conftest.$ac_objext conftstm.$ac_objext
5639 lt_save_LIBS="$LIBS"
5640 lt_save_CFLAGS="$CFLAGS"
5641 LIBS="conftstm.$ac_objext"
5642 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5648 pipe_works=yes
5649 fi
5650 LIBS="$lt_save_LIBS"
5651 CFLAGS="$lt_save_CFLAGS"
5652 else
5653 echo "cannot find nm_test_func in $nlist" >&5
5654 fi 5000 fi
5655 else 5001 done
5656 echo "cannot find nm_test_var in $nlist" >&5 5002 IFS="$lt_save_ifs"
5657 fi 5003 ;;
5658 else 5004 esac
5659 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5660 fi
5661 else 5005else
5662 echo "$progname: failed program was:" >&5 5006 enable_static=yes
5663 cat conftest.$ac_ext >&5
5664 fi
5665 rm -f conftest* conftst*
5666
5667 # Do not use the global_symbol_pipe unless it works.
5668 if test "$pipe_works" = yes; then
5669 break
5670 else
5671 lt_cv_sys_global_symbol_pipe=
5672 fi
5673done
5674
5675fi 5007fi;
5676 5008
5677if test -z "$lt_cv_sys_global_symbol_pipe"; then 5009
5678 lt_cv_sys_global_symbol_to_cdecl= 5010
5011
5012
5013
5014
5015
5016
5017# Check whether --with-pic or --without-pic was given.
5018if test "${with_pic+set}" = set; then
5019 withval="$with_pic"
5020 pic_mode="$withval"
5021else
5022 pic_mode=default
5679fi 5023fi;
5680if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5024
5681 echo "$as_me:$LINENO: result: failed" >&5 5025test -z "$pic_mode" && pic_mode=default
5682echo "${ECHO_T}failed" >&6 5026
5027
5028
5029
5030
5031
5032
5033# Check whether --enable-fast-install or --disable-fast-install was given.
5034if test "${enable_fast_install+set}" = set; then
5035 enableval="$enable_fast_install"
5036 p=${PACKAGE-default}
5037 case $enableval in
5038 yes) enable_fast_install=yes ;;
5039 no) enable_fast_install=no ;;
5040 *)
5041 enable_fast_install=no
5042 # Look at the argument we got. We use all the common list separators.
5043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5044 for pkg in $enableval; do
5045 IFS="$lt_save_ifs"
5046 if test "X$pkg" = "X$p"; then
5047 enable_fast_install=yes
5048 fi
5049 done
5050 IFS="$lt_save_ifs"
5051 ;;
5052 esac
5683else 5053else
5684 echo "$as_me:$LINENO: result: ok" >&5 5054 enable_fast_install=yes
5685echo "${ECHO_T}ok" >&6 5055fi;
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072test -z "$LN_S" && LN_S="ln -s"
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087if test -n "${ZSH_VERSION+set}" ; then
5088 setopt NO_GLOB_SUBST
5686fi 5089fi
5687 5090
5688echo "$as_me:$LINENO: checking for objdir" >&5 5091echo "$as_me:$LINENO: checking for objdir" >&5
5689echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5092echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5690if test "${lt_cv_objdir+set}" = set; then 5093if test "${lt_cv_objdir+set}" = set; then
5701rmdir .libs 2>/dev/null 5104rmdir .libs 2>/dev/null
5702fi 5105fi
5703echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5106echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5704echo "${ECHO_T}$lt_cv_objdir" >&6 5107echo "${ECHO_T}$lt_cv_objdir" >&6
5705objdir=$lt_cv_objdir 5108objdir=$lt_cv_objdir
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5706 5124
5707 5125
5708 5126
5709 5127
5710 5128
5730 5148
5731# Sed substitution to delay expansion of an escaped shell variable in a 5149# Sed substitution to delay expansion of an escaped shell variable in a
5732# double_quote_subst'ed string. 5150# double_quote_subst'ed string.
5733delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5151delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5734 5152
5153# Sed substitution to delay expansion of an escaped single quote.
5154delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5155
5735# Sed substitution to avoid accidental globbing in evaled expressions 5156# Sed substitution to avoid accidental globbing in evaled expressions
5736no_glob_subst='s/\*/\\\*/g' 5157no_glob_subst='s/\*/\\\*/g'
5737 5158
5738# Constants: 5159# Constants:
5739rm="rm -f" 5160rm="rm -f"
5740 5161
5741# Global variables: 5162# Global variables:
5742default_ofile=libtool 5163default_ofile=libtool
5164ofile="$default_ofile"
5743can_build_shared=yes 5165can_build_shared=yes
5744 5166
5745# All known linkers require a `.a' archive for static linking (except M$VC, 5167# All known linkers require a `.a' archive for static linking (except M$VC,
5746# which needs '.lib'). 5168# which needs '.lib').
5747libext=a 5169libext=a
5748ltmain="$ac_aux_dir/ltmain.sh" 5170
5749ofile="$default_ofile"
5750with_gnu_ld="$lt_cv_prog_gnu_ld" 5171with_gnu_ld="$lt_cv_prog_gnu_ld"
5751
5752if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5754set dummy ${ac_tool_prefix}ar; ac_word=$2
5755echo "$as_me:$LINENO: checking for $ac_word" >&5
5756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757if test "${ac_cv_prog_AR+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760 if test -n "$AR"; then
5761 ac_cv_prog_AR="$AR" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_AR="${ac_tool_prefix}ar"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774done
5775done
5776
5777fi
5778fi
5779AR=$ac_cv_prog_AR
5780if test -n "$AR"; then
5781 echo "$as_me:$LINENO: result: $AR" >&5
5782echo "${ECHO_T}$AR" >&6
5783else
5784 echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6
5786fi
5787
5788fi
5789if test -z "$ac_cv_prog_AR"; then
5790 ac_ct_AR=$AR
5791 # Extract the first word of "ar", so it can be a program name with args.
5792set dummy ar; ac_word=$2
5793echo "$as_me:$LINENO: checking for $ac_word" >&5
5794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5795if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
5798 if test -n "$ac_ct_AR"; then
5799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5800else
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_ac_ct_AR="ar"
5809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812done
5813done
5814
5815 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5816fi
5817fi
5818ac_ct_AR=$ac_cv_prog_ac_ct_AR
5819if test -n "$ac_ct_AR"; then
5820 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5821echo "${ECHO_T}$ac_ct_AR" >&6
5822else
5823 echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
5825fi
5826
5827 AR=$ac_ct_AR
5828else
5829 AR="$ac_cv_prog_AR"
5830fi
5831
5832if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5834set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5835echo "$as_me:$LINENO: checking for $ac_word" >&5
5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837if test "${ac_cv_prog_RANLIB+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840 if test -n "$RANLIB"; then
5841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854done
5855done
5856
5857fi
5858fi
5859RANLIB=$ac_cv_prog_RANLIB
5860if test -n "$RANLIB"; then
5861 echo "$as_me:$LINENO: result: $RANLIB" >&5
5862echo "${ECHO_T}$RANLIB" >&6
5863else
5864 echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6
5866fi
5867
5868fi
5869if test -z "$ac_cv_prog_RANLIB"; then
5870 ac_ct_RANLIB=$RANLIB
5871 # Extract the first word of "ranlib", so it can be a program name with args.
5872set dummy ranlib; ac_word=$2
5873echo "$as_me:$LINENO: checking for $ac_word" >&5
5874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878 if test -n "$ac_ct_RANLIB"; then
5879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_ac_ct_RANLIB="ranlib"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893done
5894
5895 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5896fi
5897fi
5898ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5899if test -n "$ac_ct_RANLIB"; then
5900 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5901echo "${ECHO_T}$ac_ct_RANLIB" >&6
5902else
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905fi
5906
5907 RANLIB=$ac_ct_RANLIB
5908else
5909 RANLIB="$ac_cv_prog_RANLIB"
5910fi
5911
5912if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5914set dummy ${ac_tool_prefix}strip; ac_word=$2
5915echo "$as_me:$LINENO: checking for $ac_word" >&5
5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917if test "${ac_cv_prog_STRIP+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920 if test -n "$STRIP"; then
5921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934done
5935done
5936
5937fi
5938fi
5939STRIP=$ac_cv_prog_STRIP
5940if test -n "$STRIP"; then
5941 echo "$as_me:$LINENO: result: $STRIP" >&5
5942echo "${ECHO_T}$STRIP" >&6
5943else
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
5946fi
5947
5948fi
5949if test -z "$ac_cv_prog_STRIP"; then
5950 ac_ct_STRIP=$STRIP
5951 # Extract the first word of "strip", so it can be a program name with args.
5952set dummy strip; ac_word=$2
5953echo "$as_me:$LINENO: checking for $ac_word" >&5
5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958 if test -n "$ac_ct_STRIP"; then
5959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5960else
5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_ac_ct_STRIP="strip"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972done
5973done
5974
5975 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5976fi
5977fi
5978ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5979if test -n "$ac_ct_STRIP"; then
5980 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5981echo "${ECHO_T}$ac_ct_STRIP" >&6
5982else
5983 echo "$as_me:$LINENO: result: no" >&5
5984echo "${ECHO_T}no" >&6
5985fi
5986
5987 STRIP=$ac_ct_STRIP
5988else
5989 STRIP="$ac_cv_prog_STRIP"
5990fi
5991
5992 5172
5993old_CC="$CC" 5173old_CC="$CC"
5994old_CFLAGS="$CFLAGS" 5174old_CFLAGS="$CFLAGS"
5995 5175
5996# Set sane defaults for various variables 5176# Set sane defaults for various variables
5997test -z "$AR" && AR=ar
5998test -z "$AR_FLAGS" && AR_FLAGS=cru
5999test -z "$AS" && AS=as
6000test -z "$CC" && CC=cc 5177test -z "$CC" && CC=cc
6001test -z "$LTCC" && LTCC=$CC 5178test -z "$LTCC" && LTCC=$CC
6002test -z "$DLLTOOL" && DLLTOOL=dlltool
6003test -z "$LD" && LD=ld 5179test -z "$LD" && LD=ld
6004test -z "$LN_S" && LN_S="ln -s" 5180test -z "$ac_objext" && ac_objext=o
5181
5182cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5183
5184# Only perform the check for file, if the check method requires it
6005test -z "$MAGIC_CMD" && MAGIC_CMD=file 5185test -z "$MAGIC_CMD" && MAGIC_CMD=file
6006test -z "$NM" && NM=nm
6007test -z "$SED" && SED=sed
6008test -z "$OBJDUMP" && OBJDUMP=objdump
6009test -z "$RANLIB" && RANLIB=:
6010test -z "$STRIP" && STRIP=:
6011test -z "$ac_objext" && ac_objext=o
6012
6013# Determine commands to create old-style static archives.
6014old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6015old_postinstall_cmds='chmod 644 $oldlib'
6016old_postuninstall_cmds=
6017
6018if test -n "$RANLIB"; then
6019 case $host_os in
6020 openbsd*)
6021 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6022 ;;
6023 *)
6024 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6025 ;;
6026 esac
6027 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6028fi
6029
6030# Only perform the check for file, if the check method requires it
6031case $deplibs_check_method in 5186case $deplibs_check_method in
6032file_magic*) 5187file_magic*)
6033 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5188 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6034 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5189 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6035echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5190echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6058 $EGREP "$file_magic_regex" > /dev/null; then 5213 $EGREP "$file_magic_regex" > /dev/null; then
6059 : 5214 :
6060 else 5215 else
6061 cat <<EOF 1>&2 5216 cat <<_LT_EOF 1>&2
6062 5217
6063*** Warning: the command libtool uses to detect shared libraries, 5218*** Warning: the command libtool uses to detect shared libraries,
6064*** $file_magic_cmd, produces output that libtool cannot recognize. 5219*** $file_magic_cmd, produces output that libtool cannot recognize.
6065*** The result is that libtool may fail to recognize shared libraries 5220*** The result is that libtool may fail to recognize shared libraries
6066*** as such. This will affect the creation of libtool libraries that 5221*** as such. This will affect the creation of libtool libraries that
6067*** depend on shared libraries, but programs linked with such libtool 5222*** depend on shared libraries, but programs linked with such libtool
6068*** libraries will work regardless of this problem. Nevertheless, you 5223*** libraries will work regardless of this problem. Nevertheless, you
6069*** may want to report the problem to your system manager and/or to 5224*** may want to report the problem to your system manager and/or to
6070*** bug-libtool@gnu.org 5225*** bug-libtool@gnu.org
6071 5226
6072EOF 5227_LT_EOF
6073 fi ;; 5228 fi ;;
6074 esac 5229 esac
6075 fi 5230 fi
6076 break 5231 break
6077 fi 5232 fi
6088echo "${ECHO_T}$MAGIC_CMD" >&6 5243echo "${ECHO_T}$MAGIC_CMD" >&6
6089else 5244else
6090 echo "$as_me:$LINENO: result: no" >&5 5245 echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6 5246echo "${ECHO_T}no" >&6
6092fi 5247fi
5248
5249
5250
5251
6093 5252
6094if test -z "$lt_cv_path_MAGIC_CMD"; then 5253if test -z "$lt_cv_path_MAGIC_CMD"; then
6095 if test -n "$ac_tool_prefix"; then 5254 if test -n "$ac_tool_prefix"; then
6096 echo "$as_me:$LINENO: checking for file" >&5 5255 echo "$as_me:$LINENO: checking for file" >&5
6097echo $ECHO_N "checking for file... $ECHO_C" >&6 5256echo $ECHO_N "checking for file... $ECHO_C" >&6
6118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6120 $EGREP "$file_magic_regex" > /dev/null; then 5279 $EGREP "$file_magic_regex" > /dev/null; then
6121 : 5280 :
6122 else 5281 else
6123 cat <<EOF 1>&2 5282 cat <<_LT_EOF 1>&2
6124 5283
6125*** Warning: the command libtool uses to detect shared libraries, 5284*** Warning: the command libtool uses to detect shared libraries,
6126*** $file_magic_cmd, produces output that libtool cannot recognize. 5285*** $file_magic_cmd, produces output that libtool cannot recognize.
6127*** The result is that libtool may fail to recognize shared libraries 5286*** The result is that libtool may fail to recognize shared libraries
6128*** as such. This will affect the creation of libtool libraries that 5287*** as such. This will affect the creation of libtool libraries that
6129*** depend on shared libraries, but programs linked with such libtool 5288*** depend on shared libraries, but programs linked with such libtool
6130*** libraries will work regardless of this problem. Nevertheless, you 5289*** libraries will work regardless of this problem. Nevertheless, you
6131*** may want to report the problem to your system manager and/or to 5290*** may want to report the problem to your system manager and/or to
6132*** bug-libtool@gnu.org 5291*** bug-libtool@gnu.org
6133 5292
6134EOF 5293_LT_EOF
6135 fi ;; 5294 fi ;;
6136 esac 5295 esac
6137 fi 5296 fi
6138 break 5297 break
6139 fi 5298 fi
6151else 5310else
6152 echo "$as_me:$LINENO: result: no" >&5 5311 echo "$as_me:$LINENO: result: no" >&5
6153echo "${ECHO_T}no" >&6 5312echo "${ECHO_T}no" >&6
6154fi 5313fi
6155 5314
5315
6156 else 5316 else
6157 MAGIC_CMD=: 5317 MAGIC_CMD=:
6158 fi 5318 fi
6159fi 5319fi
6160 5320
6161 fi 5321 fi
6162 ;; 5322 ;;
6163esac 5323esac
6164 5324
6165enable_dlopen=no
6166enable_win32_dll=no
6167
6168# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5325# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6169if test "${enable_libtool_lock+set}" = set; then 5326if test "${enable_libtool_lock+set}" = set; then
6170 enableval="$enable_libtool_lock" 5327 enableval="$enable_libtool_lock"
6171 5328
6172fi; 5329fi;
6173test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5330test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6174 5331
6175
6176# Check whether --with-pic or --without-pic was given.
6177if test "${with_pic+set}" = set; then
6178 withval="$with_pic"
6179 pic_mode="$withval"
6180else
6181 pic_mode=default
6182fi;
6183test -z "$pic_mode" && pic_mode=default
6184
6185# Use C for the default configuration in the libtool script 5332# Use C for the default configuration in the libtool script
6186tagname= 5333
6187lt_save_CC="$CC" 5334lt_save_CC="$CC"
6188ac_ext=c 5335ac_ext=c
6189ac_cpp='$CPP $CPPFLAGS' 5336ac_cpp='$CPP $CPPFLAGS'
6190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204 5351
6205# Code to be used in simple link tests 5352# Code to be used in simple link tests
6206lt_simple_link_test_code='int main(){return(0);}\n' 5353lt_simple_link_test_code='int main(){return(0);}\n'
6207 5354
6208 5355
5356
5357
5358
5359
5360
5361
6209# If no C compiler was specified, use CC. 5362# If no C compiler was specified, use CC.
6210LTCC=${LTCC-"$CC"} 5363LTCC=${LTCC-"$CC"}
6211 5364
6212# Allow CC to be a program name with arguments. 5365# Allow CC to be a program name with arguments.
6213compiler=$CC 5366compiler=$CC
6214 5367
5368# Save the default compiler, since it gets overwritten when the other
5369# tags are being tested, and _LT_AC_TAGVAR(compiler, []) is a NOP.
5370compiler_DEFAULT=$CC
6215 5371
6216# 5372#
6217# Check for any special shared library compilation flags. 5373# Check for any special shared library compilation flags.
6218# 5374#
6219lt_prog_cc_shlib= 5375lt_prog_cc_shlib=
6225 esac 5381 esac
6226fi 5382fi
6227if test -n "$lt_prog_cc_shlib"; then 5383if test -n "$lt_prog_cc_shlib"; then
6228 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5384 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6229echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5385echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6230 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5386 if echo "$old_CC $old_CFLAGS " | $GREP "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6231 else 5387 else
6232 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5388 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6233echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5389echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6234 lt_cv_prog_cc_can_build_shared=no 5390 lt_cv_prog_cc_can_build_shared=no
6235 fi 5391 fi
6236fi 5392fi
5393
5394
5395if test -n "$compiler"; then
5396
5397lt_prog_compiler_no_builtin_flag=
5398
5399if test "$GCC" = yes; then
5400 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5401
5402 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5403echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5404if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407 lt_cv_prog_compiler_rtti_exceptions=no
5408 ac_outfile=conftest.$ac_objext
5409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5410 lt_compiler_flag="-fno-rtti -fno-exceptions"
5411 # Insert the option either (1) after the last *FLAGS variable, or
5412 # (2) before a word containing "conftest.", or (3) at the end.
5413 # Note that $ac_compile itself does not contain backslashes and begins
5414 # with a dollar sign (not a hyphen), so the echo should work correctly.
5415 # The option is referenced via a variable to avoid confusing sed.
5416 lt_compile=`echo "$ac_compile" | $SED \
5417 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5419 -e 's:$: $lt_compiler_flag:'`
5420 (eval echo "\"\$as_me:5420: $lt_compile\"" >&5)
5421 (eval "$lt_compile" 2>conftest.err)
5422 ac_status=$?
5423 cat conftest.err >&5
5424 echo "$as_me:5424: \$? = $ac_status" >&5
5425 if (exit $ac_status) && test -s "$ac_outfile"; then
5426 # The compiler can only warn and ignore the option if not recognized
5427 # So say no if there are warnings
5428 if test ! -s conftest.err; then
5429 lt_cv_prog_compiler_rtti_exceptions=yes
5430 fi
5431 fi
5432 $rm conftest*
5433
5434fi
5435echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5436echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5437
5438if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5440else
5441 :
5442fi
5443
5444fi
5445
5446
5447
5448
5449
5450
5451 lt_prog_compiler_wl=
5452lt_prog_compiler_pic=
5453lt_prog_compiler_static=
5454
5455echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5456echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5457
5458 if test "$GCC" = yes; then
5459 lt_prog_compiler_wl='-Wl,'
5460 lt_prog_compiler_static='-static'
5461
5462 case $host_os in
5463 aix*)
5464 # All AIX code is PIC.
5465 if test "$host_cpu" = ia64; then
5466 # AIX 5 now supports IA64 processor
5467 lt_prog_compiler_static='-Bstatic'
5468 fi
5469 ;;
5470
5471 amigaos*)
5472 if test "$host_cpu" = m68k; then
5473 # FIXME: we need at least 68020 code to build shared libraries, but
5474 # adding the `-m68020' flag to GCC prevents building anything better,
5475 # like `-m68040'.
5476 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5477 fi
5478 ;;
5479
5480 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5481 # PIC is the default for these OSes.
5482 ;;
5483
5484 mingw* | pw32* | os2*)
5485 # This hack is so that the source file can tell whether it is being
5486 # built for inclusion in a dll (and should export symbols for example).
5487 lt_prog_compiler_pic='-DDLL_EXPORT'
5488 ;;
5489
5490 darwin* | rhapsody*)
5491 # PIC is the default on this platform
5492 # Common symbols not allowed in MH_DYLIB files
5493 lt_prog_compiler_pic='-fno-common'
5494 ;;
5495
5496 msdosdjgpp*)
5497 # Just because we use GCC doesn't mean we suddenly get shared libraries
5498 # on systems that don't support them.
5499 lt_prog_compiler_can_build_shared=no
5500 enable_shared=no
5501 ;;
5502
5503 sysv4*MP*)
5504 if test -d /usr/nec; then
5505 lt_prog_compiler_pic=-Kconform_pic
5506 fi
5507 ;;
5508
5509 hpux*)
5510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5511 # not for PA HP-UX.
5512 case "$host_cpu" in
5513 hppa*64*|ia64*)
5514 # +Z the default
5515 ;;
5516 *)
5517 lt_prog_compiler_pic='-fPIC'
5518 ;;
5519 esac
5520 ;;
5521
5522 *)
5523 lt_prog_compiler_pic='-fPIC'
5524 ;;
5525 esac
5526 else
5527 # PORTME Check for flag to pass linker flags through the system compiler.
5528 case $host_os in
5529 aix*)
5530 lt_prog_compiler_wl='-Wl,'
5531 if test "$host_cpu" = ia64; then
5532 # AIX 5 now supports IA64 processor
5533 lt_prog_compiler_static='-Bstatic'
5534 else
5535 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5536 fi
5537 ;;
5538 darwin*)
5539 # PIC is the default on this platform
5540 # Common symbols not allowed in MH_DYLIB files
5541 case "$cc_basename" in
5542 xlc*)
5543 lt_prog_compiler_pic='-qnocommon'
5544 lt_prog_compiler_wl='-Wl,'
5545 ;;
5546 esac
5547 ;;
5548
5549 mingw* | pw32* | os2*)
5550 # This hack is so that the source file can tell whether it is being
5551 # built for inclusion in a dll (and should export symbols for example).
5552 lt_prog_compiler_pic='-DDLL_EXPORT'
5553 ;;
5554
5555 hpux9* | hpux10* | hpux11*)
5556 lt_prog_compiler_wl='-Wl,'
5557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5558 # not for PA HP-UX.
5559 case "$host_cpu" in
5560 hppa*64*|ia64*)
5561 # +Z the default
5562 ;;
5563 *)
5564 lt_prog_compiler_pic='+Z'
5565 ;;
5566 esac
5567 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5568 lt_prog_compiler_static='${wl}-a ${wl}archive'
5569 ;;
5570
5571 irix5* | irix6* | nonstopux*)
5572 lt_prog_compiler_wl='-Wl,'
5573 # PIC (with -KPIC) is the default.
5574 lt_prog_compiler_static='-non_shared'
5575 ;;
5576
5577 newsos6)
5578 lt_prog_compiler_pic='-KPIC'
5579 lt_prog_compiler_static='-Bstatic'
5580 ;;
5581
5582 linux*)
5583 case $CC in
5584 icc* | ecc*)
5585 lt_prog_compiler_wl='-Wl,'
5586 lt_prog_compiler_pic='-KPIC'
5587 lt_prog_compiler_static='-static'
5588 ;;
5589 ccc*)
5590 lt_prog_compiler_wl='-Wl,'
5591 # All Alpha code is PIC.
5592 lt_prog_compiler_static='-non_shared'
5593 ;;
5594 esac
5595 ;;
5596
5597 osf3* | osf4* | osf5*)
5598 lt_prog_compiler_wl='-Wl,'
5599 # All OSF/1 code is PIC.
5600 lt_prog_compiler_static='-non_shared'
5601 ;;
5602
5603 sco3.2v5*)
5604 lt_prog_compiler_pic='-Kpic'
5605 lt_prog_compiler_static='-dn'
5606 ;;
5607
5608 solaris*)
5609 lt_prog_compiler_wl='-Wl,'
5610 lt_prog_compiler_pic='-KPIC'
5611 lt_prog_compiler_static='-Bstatic'
5612 ;;
5613
5614 sunos4*)
5615 lt_prog_compiler_wl='-Qoption ld '
5616 lt_prog_compiler_pic='-PIC'
5617 lt_prog_compiler_static='-Bstatic'
5618 ;;
5619
5620 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5621 lt_prog_compiler_wl='-Wl,'
5622 lt_prog_compiler_pic='-KPIC'
5623 lt_prog_compiler_static='-Bstatic'
5624 ;;
5625
5626 sysv4*MP*)
5627 if test -d /usr/nec ;then
5628 lt_prog_compiler_pic='-Kconform_pic'
5629 lt_prog_compiler_static='-Bstatic'
5630 fi
5631 ;;
5632
5633 uts4*)
5634 lt_prog_compiler_pic='-pic'
5635 lt_prog_compiler_static='-Bstatic'
5636 ;;
5637
5638 *)
5639 lt_prog_compiler_can_build_shared=no
5640 ;;
5641 esac
5642 fi
5643
5644case "$host_os" in
5645 # For platforms which do not support PIC, -DPIC is meaningless:
5646 *djgpp*)
5647 lt_prog_compiler_pic=
5648 ;;
5649 *)
5650 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5651 ;;
5652esac
5653echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5654echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5655
5656
5657
5658
5659
5660
5661#
5662# Check to make sure the PIC flag actually works.
5663#
5664if test -n "$lt_prog_compiler_pic"; then
5665 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5666echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5667if test "${lt_prog_compiler_pic_works+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670 lt_prog_compiler_pic_works=no
5671 ac_outfile=conftest.$ac_objext
5672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5673 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5674 # Insert the option either (1) after the last *FLAGS variable, or
5675 # (2) before a word containing "conftest.", or (3) at the end.
5676 # Note that $ac_compile itself does not contain backslashes and begins
5677 # with a dollar sign (not a hyphen), so the echo should work correctly.
5678 # The option is referenced via a variable to avoid confusing sed.
5679 lt_compile=`echo "$ac_compile" | $SED \
5680 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5682 -e 's:$: $lt_compiler_flag:'`
5683 (eval echo "\"\$as_me:5683: $lt_compile\"" >&5)
5684 (eval "$lt_compile" 2>conftest.err)
5685 ac_status=$?
5686 cat conftest.err >&5
5687 echo "$as_me:5687: \$? = $ac_status" >&5
5688 if (exit $ac_status) && test -s "$ac_outfile"; then
5689 # The compiler can only warn and ignore the option if not recognized
5690 # So say no if there are warnings
5691 if test ! -s conftest.err; then
5692 lt_prog_compiler_pic_works=yes
5693 fi
5694 fi
5695 $rm conftest*
5696
5697fi
5698echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5699echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5700
5701if test x"$lt_prog_compiler_pic_works" = xyes; then
5702 case $lt_prog_compiler_pic in
5703 "" | " "*) ;;
5704 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5705 esac
5706else
5707 lt_prog_compiler_pic=
5708 lt_prog_compiler_can_build_shared=no
5709fi
5710
5711fi
5712
5713
5714
5715
6237 5716
6238 5717
6239# 5718#
6240# Check to make sure the static flag actually works. 5719# Check to make sure the static flag actually works.
6241# 5720#
6272fi 5751fi
6273 5752
6274 5753
6275 5754
6276 5755
6277lt_prog_compiler_no_builtin_flag=
6278 5756
6279if test "$GCC" = yes; then
6280 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6281 5757
6282 5758
6283echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6284echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6285if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288 lt_cv_prog_compiler_rtti_exceptions=no
6289 ac_outfile=conftest.$ac_objext
6290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6291 lt_compiler_flag="-fno-rtti -fno-exceptions"
6292 # Insert the option either (1) after the last *FLAGS variable, or
6293 # (2) before a word containing "conftest.", or (3) at the end.
6294 # Note that $ac_compile itself does not contain backslashes and begins
6295 # with a dollar sign (not a hyphen), so the echo should work correctly.
6296 # The option is referenced via a variable to avoid confusing sed.
6297 lt_compile=`echo "$ac_compile" | $SED \
6298 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6300 -e 's:$: $lt_compiler_flag:'`
6301 (eval echo "\"\$as_me:6301: $lt_compile\"" >&5)
6302 (eval "$lt_compile" 2>conftest.err)
6303 ac_status=$?
6304 cat conftest.err >&5
6305 echo "$as_me:6305: \$? = $ac_status" >&5
6306 if (exit $ac_status) && test -s "$ac_outfile"; then
6307 # The compiler can only warn and ignore the option if not recognized
6308 # So say no if there are warnings
6309 if test ! -s conftest.err; then
6310 lt_cv_prog_compiler_rtti_exceptions=yes
6311 fi
6312 fi
6313 $rm conftest*
6314
6315fi
6316echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6317echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6318
6319if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6320 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6321else
6322 :
6323fi
6324
6325fi
6326
6327lt_prog_compiler_wl=
6328lt_prog_compiler_pic=
6329lt_prog_compiler_static=
6330
6331echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6332echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6333
6334 if test "$GCC" = yes; then
6335 lt_prog_compiler_wl='-Wl,'
6336 lt_prog_compiler_static='-static'
6337
6338 case $host_os in
6339 aix*)
6340 # All AIX code is PIC.
6341 if test "$host_cpu" = ia64; then
6342 # AIX 5 now supports IA64 processor
6343 lt_prog_compiler_static='-Bstatic'
6344 fi
6345 ;;
6346
6347 amigaos*)
6348 # FIXME: we need at least 68020 code to build shared libraries, but
6349 # adding the `-m68020' flag to GCC prevents building anything better,
6350 # like `-m68040'.
6351 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6352 ;;
6353
6354 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6355 # PIC is the default for these OSes.
6356 ;;
6357
6358 mingw* | pw32* | os2*)
6359 # This hack is so that the source file can tell whether it is being
6360 # built for inclusion in a dll (and should export symbols for example).
6361 lt_prog_compiler_pic='-DDLL_EXPORT'
6362 ;;
6363
6364 darwin* | rhapsody*)
6365 # PIC is the default on this platform
6366 # Common symbols not allowed in MH_DYLIB files
6367 lt_prog_compiler_pic='-fno-common'
6368 ;;
6369
6370 msdosdjgpp*)
6371 # Just because we use GCC doesn't mean we suddenly get shared libraries
6372 # on systems that don't support them.
6373 lt_prog_compiler_can_build_shared=no
6374 enable_shared=no
6375 ;;
6376
6377 sysv4*MP*)
6378 if test -d /usr/nec; then
6379 lt_prog_compiler_pic=-Kconform_pic
6380 fi
6381 ;;
6382
6383 hpux*)
6384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6385 # not for PA HP-UX.
6386 case "$host_cpu" in
6387 hppa*64*|ia64*)
6388 # +Z the default
6389 ;;
6390 *)
6391 lt_prog_compiler_pic='-fPIC'
6392 ;;
6393 esac
6394 ;;
6395
6396 *)
6397 lt_prog_compiler_pic='-fPIC'
6398 ;;
6399 esac
6400 else
6401 # PORTME Check for flag to pass linker flags through the system compiler.
6402 case $host_os in
6403 aix*)
6404 lt_prog_compiler_wl='-Wl,'
6405 if test "$host_cpu" = ia64; then
6406 # AIX 5 now supports IA64 processor
6407 lt_prog_compiler_static='-Bstatic'
6408 else
6409 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6410 fi
6411 ;;
6412
6413 mingw* | pw32* | os2*)
6414 # This hack is so that the source file can tell whether it is being
6415 # built for inclusion in a dll (and should export symbols for example).
6416 lt_prog_compiler_pic='-DDLL_EXPORT'
6417 ;;
6418
6419 hpux9* | hpux10* | hpux11*)
6420 lt_prog_compiler_wl='-Wl,'
6421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6422 # not for PA HP-UX.
6423 case "$host_cpu" in
6424 hppa*64*|ia64*)
6425 # +Z the default
6426 ;;
6427 *)
6428 lt_prog_compiler_pic='+Z'
6429 ;;
6430 esac
6431 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6432 lt_prog_compiler_static='${wl}-a ${wl}archive'
6433 ;;
6434
6435 irix5* | irix6* | nonstopux*)
6436 lt_prog_compiler_wl='-Wl,'
6437 # PIC (with -KPIC) is the default.
6438 lt_prog_compiler_static='-non_shared'
6439 ;;
6440
6441 newsos6)
6442 lt_prog_compiler_pic='-KPIC'
6443 lt_prog_compiler_static='-Bstatic'
6444 ;;
6445
6446 linux*)
6447 case $CC in
6448 icc* | ecc*)
6449 lt_prog_compiler_wl='-Wl,'
6450 lt_prog_compiler_pic='-KPIC'
6451 lt_prog_compiler_static='-static'
6452 ;;
6453 ccc*)
6454 lt_prog_compiler_wl='-Wl,'
6455 # All Alpha code is PIC.
6456 lt_prog_compiler_static='-non_shared'
6457 ;;
6458 esac
6459 ;;
6460
6461 osf3* | osf4* | osf5*)
6462 lt_prog_compiler_wl='-Wl,'
6463 # All OSF/1 code is PIC.
6464 lt_prog_compiler_static='-non_shared'
6465 ;;
6466
6467 sco3.2v5*)
6468 lt_prog_compiler_pic='-Kpic'
6469 lt_prog_compiler_static='-dn'
6470 ;;
6471
6472 solaris*)
6473 lt_prog_compiler_wl='-Wl,'
6474 lt_prog_compiler_pic='-KPIC'
6475 lt_prog_compiler_static='-Bstatic'
6476 ;;
6477
6478 sunos4*)
6479 lt_prog_compiler_wl='-Qoption ld '
6480 lt_prog_compiler_pic='-PIC'
6481 lt_prog_compiler_static='-Bstatic'
6482 ;;
6483
6484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6485 lt_prog_compiler_wl='-Wl,'
6486 lt_prog_compiler_pic='-KPIC'
6487 lt_prog_compiler_static='-Bstatic'
6488 ;;
6489
6490 sysv4*MP*)
6491 if test -d /usr/nec ;then
6492 lt_prog_compiler_pic='-Kconform_pic'
6493 lt_prog_compiler_static='-Bstatic'
6494 fi
6495 ;;
6496
6497 uts4*)
6498 lt_prog_compiler_pic='-pic'
6499 lt_prog_compiler_static='-Bstatic'
6500 ;;
6501
6502 *)
6503 lt_prog_compiler_can_build_shared=no
6504 ;;
6505 esac
6506 fi
6507
6508echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6509echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6510
6511#
6512# Check to make sure the PIC flag actually works.
6513#
6514if test -n "$lt_prog_compiler_pic"; then
6515
6516echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6517echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6518if test "${lt_prog_compiler_pic_works+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521 lt_prog_compiler_pic_works=no
6522 ac_outfile=conftest.$ac_objext
6523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6524 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6525 # Insert the option either (1) after the last *FLAGS variable, or
6526 # (2) before a word containing "conftest.", or (3) at the end.
6527 # Note that $ac_compile itself does not contain backslashes and begins
6528 # with a dollar sign (not a hyphen), so the echo should work correctly.
6529 # The option is referenced via a variable to avoid confusing sed.
6530 lt_compile=`echo "$ac_compile" | $SED \
6531 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6533 -e 's:$: $lt_compiler_flag:'`
6534 (eval echo "\"\$as_me:6534: $lt_compile\"" >&5)
6535 (eval "$lt_compile" 2>conftest.err)
6536 ac_status=$?
6537 cat conftest.err >&5
6538 echo "$as_me:6538: \$? = $ac_status" >&5
6539 if (exit $ac_status) && test -s "$ac_outfile"; then
6540 # The compiler can only warn and ignore the option if not recognized
6541 # So say no if there are warnings
6542 if test ! -s conftest.err; then
6543 lt_prog_compiler_pic_works=yes
6544 fi
6545 fi
6546 $rm conftest*
6547
6548fi
6549echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6550echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6551
6552if test x"$lt_prog_compiler_pic_works" = xyes; then
6553 case $lt_prog_compiler_pic in
6554 "" | " "*) ;;
6555 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6556 esac
6557else
6558 lt_prog_compiler_pic=
6559 lt_prog_compiler_can_build_shared=no
6560fi
6561
6562fi
6563case "$host_os" in
6564 # For platforms which do not support PIC, -DPIC is meaningless:
6565 *djgpp*)
6566 lt_prog_compiler_pic=
6567 ;;
6568 *)
6569 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6570 ;;
6571esac
6572
6573echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 5759 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6574echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 5760echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6575if test "${lt_cv_prog_compiler_c_o+set}" = set; then 5761if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6 5762 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else 5763else
6578 lt_cv_prog_compiler_c_o=no 5764 lt_cv_prog_compiler_c_o=no
6589 # with a dollar sign (not a hyphen), so the echo should work correctly. 5775 # with a dollar sign (not a hyphen), so the echo should work correctly.
6590 lt_compile=`echo "$ac_compile" | $SED \ 5776 lt_compile=`echo "$ac_compile" | $SED \
6591 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5777 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6593 -e 's:$: $lt_compiler_flag:'` 5779 -e 's:$: $lt_compiler_flag:'`
6594 (eval echo "\"\$as_me:6594: $lt_compile\"" >&5) 5780 (eval echo "\"\$as_me:5780: $lt_compile\"" >&5)
6595 (eval "$lt_compile" 2>out/conftest.err) 5781 (eval "$lt_compile" 2>out/conftest.err)
6596 ac_status=$? 5782 ac_status=$?
6597 cat out/conftest.err >&5 5783 cat out/conftest.err >&5
6598 echo "$as_me:6598: \$? = $ac_status" >&5 5784 echo "$as_me:5784: \$? = $ac_status" >&5
6599 if (exit $ac_status) && test -s out/conftest2.$ac_objext 5785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6600 then 5786 then
6601 # The compiler can only warn and ignore the option if not recognized 5787 # The compiler can only warn and ignore the option if not recognized
6602 # So say no if there are warnings 5788 # So say no if there are warnings
6603 if test ! -s out/conftest.err; then 5789 if test ! -s out/conftest.err; then
6615 $rm conftest* 5801 $rm conftest*
6616 5802
6617fi 5803fi
6618echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 5804echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6619echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 5805echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5806
5807
5808
5809
5810
6620 5811
6621 5812
6622hard_links="nottested" 5813hard_links="nottested"
6623if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 5814if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6624 # do not overwrite the value of need_locks provided by the user 5815 # do not overwrite the value of need_locks provided by the user
6639 fi 5830 fi
6640else 5831else
6641 need_locks=no 5832 need_locks=no
6642fi 5833fi
6643 5834
5835
5836
5837
5838
5839
6644echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 5840 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6645echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 5841echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6646 5842
6647 runpath_var= 5843 runpath_var=
6648 allow_undefined_flag= 5844 allow_undefined_flag=
6649 enable_shared_with_static_runtimes=no 5845 always_export_symbols=no
6650 archive_cmds= 5846 archive_cmds=
6651 archive_expsym_cmds= 5847 archive_expsym_cmds=
6652 old_archive_From_new_cmds= 5848 enable_shared_with_static_runtimes=no
6653 old_archive_from_expsyms_cmds=
6654 export_dynamic_flag_spec= 5849 export_dynamic_flag_spec=
6655 whole_archive_flag_spec= 5850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6656 thread_safe_flag_spec= 5851 hardcode_automatic=no
5852 hardcode_direct=no
6657 hardcode_libdir_flag_spec= 5853 hardcode_libdir_flag_spec=
6658 hardcode_libdir_flag_spec_ld= 5854 hardcode_libdir_flag_spec_ld=
6659 hardcode_libdir_separator= 5855 hardcode_libdir_separator=
6660 hardcode_direct=no
6661 hardcode_minus_L=no 5856 hardcode_minus_L=no
6662 hardcode_shlibpath_var=unsupported 5857 hardcode_shlibpath_var=unsupported
5858 inherit_rpath=no
6663 link_all_deplibs=unknown 5859 link_all_deplibs=unknown
6664 hardcode_automatic=no
6665 module_cmds= 5860 module_cmds=
6666 module_expsym_cmds= 5861 module_expsym_cmds=
6667 always_export_symbols=no 5862 old_archive_from_new_cmds=
6668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5863 old_archive_from_expsyms_cmds=
5864 thread_safe_flag_spec=
5865 whole_archive_flag_spec=
6669 # include_expsyms should be a list of space-separated symbols to be *always* 5866 # include_expsyms should be a list of space-separated symbols to be *always*
6670 # included in the symbol list 5867 # included in the symbol list
6671 include_expsyms= 5868 include_expsyms=
6672 # exclude_expsyms can be an extended regexp of symbols to exclude 5869 # exclude_expsyms can be an extended regexp of symbols to exclude
6673 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5870 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6704 case $host_os in 5901 case $host_os in
6705 aix3* | aix4* | aix5*) 5902 aix3* | aix4* | aix5*)
6706 # On AIX/PPC, the GNU linker is very broken 5903 # On AIX/PPC, the GNU linker is very broken
6707 if test "$host_cpu" != ia64; then 5904 if test "$host_cpu" != ia64; then
6708 ld_shlibs=no 5905 ld_shlibs=no
6709 cat <<EOF 1>&2 5906 cat <<_LT_EOF 1>&2
6710 5907
6711*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5908*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6712*** to be unable to reliably create shared libraries on AIX. 5909*** to be unable to reliably create shared libraries on AIX.
6713*** Therefore, libtool is disabling shared libraries support. If you 5910*** Therefore, libtool is disabling shared libraries support. If you
6714*** really care for shared libraries, you may want to modify your PATH 5911*** really care for shared libraries, you may want to modify your PATH
6715*** so that a non-GNU linker is found, and then restart. 5912*** so that a non-GNU linker is found, and then restart.
6716 5913
6717EOF 5914_LT_EOF
6718 fi 5915 fi
6719 ;; 5916 ;;
6720 5917
6721 amigaos*) 5918 amigaos*)
5919 if test "$host_cpu" = m68k; then
6722 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5920 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6723 hardcode_libdir_flag_spec='-L$libdir' 5921 hardcode_libdir_flag_spec='-L$libdir'
6724 hardcode_minus_L=yes 5922 hardcode_minus_L=yes
5923 fi
6725 5924
6726 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5925 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6727 # that the semantics of dynamic libraries on AmigaOS, at least up 5926 # that the semantics of dynamic libraries on AmigaOS, at least up
6728 # to version 4, is to share data among multiple programs linked 5927 # to version 4, is to share data among multiple programs linked
6729 # with the same dynamic library. Since this doesn't match the 5928 # with the same dynamic library. Since this doesn't match the
6731 # them. 5930 # them.
6732 ld_shlibs=no 5931 ld_shlibs=no
6733 ;; 5932 ;;
6734 5933
6735 beos*) 5934 beos*)
6736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6737 allow_undefined_flag=unsupported 5936 allow_undefined_flag=unsupported
6738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6739 # support --undefined. This deserves some investigation. FIXME 5938 # support --undefined. This deserves some investigation. FIXME
6740 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5939 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6741 else 5940 else
6750 allow_undefined_flag=unsupported 5949 allow_undefined_flag=unsupported
6751 always_export_symbols=no 5950 always_export_symbols=no
6752 enable_shared_with_static_runtimes=yes 5951 enable_shared_with_static_runtimes=yes
6753 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 5952 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6754 5953
6755 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5954 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6757 # If the export-symbols file already is a .def file (1st line 5956 # If the export-symbols file already is a .def file (1st line
6758 # is EXPORTS), use it as is; otherwise, prepend... 5957 # is EXPORTS), use it as is; otherwise, prepend...
6759 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5958 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6760 cp $export_symbols $output_objdir/$soname.def; 5959 cp $export_symbols $output_objdir/$soname.def;
6766 else 5965 else
6767 ld_shlibs=no 5966 ld_shlibs=no
6768 fi 5967 fi
6769 ;; 5968 ;;
6770 5969
6771 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5970 netbsd*)
6772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6773 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5972 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6774 wlarc= 5973 wlarc=
6775 else 5974 else
6776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6778 fi 5977 fi
6779 ;; 5978 ;;
6780 5979
6781 solaris* | sysv5*) 5980 solaris* | sysv5*)
6782 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5981 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6783 ld_shlibs=no 5982 ld_shlibs=no
6784 cat <<EOF 1>&2 5983 cat <<_LT_EOF 1>&2
6785 5984
6786*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5985*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6787*** create shared libraries on Solaris systems. Therefore, libtool 5986*** create shared libraries on Solaris systems. Therefore, libtool
6788*** is disabling shared libraries support. We urge you to upgrade GNU 5987*** is disabling shared libraries support. We urge you to upgrade GNU
6789*** binutils to release 2.9.1 or newer. Another option is to modify 5988*** binutils to release 2.9.1 or newer. Another option is to modify
6790*** your PATH or compiler configuration so that the native linker is 5989*** your PATH or compiler configuration so that the native linker is
6791*** used, and then restart. 5990*** used, and then restart.
6792 5991
6793EOF 5992_LT_EOF
6794 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5993 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5995 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6797 else 5996 else
6798 ld_shlibs=no 5997 ld_shlibs=no
6799 fi 5998 fi
6805 hardcode_direct=yes 6004 hardcode_direct=yes
6806 hardcode_shlibpath_var=no 6005 hardcode_shlibpath_var=no
6807 ;; 6006 ;;
6808 6007
6809 linux*) 6008 linux*)
6810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6009 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then
6811 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812 archive_cmds="$tmp_archive_cmds"
6813 supports_anon_versioning=no
6814 case `$LD -v 2>/dev/null` in 6011 case `$LD -v 2>&1` in
6815 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6012 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6013 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6014 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6818 *\ 2.11.*) ;; # other 2.11 versions 6015 *\ 2.11.*) ;; # other 2.11 versions
6819 *) supports_anon_versioning=yes ;; 6016 *) supports_anon_versioning=yes ;;
6820 esac 6017 esac
6821 if test $supports_anon_versioning = yes; then 6018 if test "x$supports_anon_versioning" = xyes; then
6822 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6019 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6823cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6824$echo "local: *; };" >> $output_objdir/$libname.ver~
6825 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6826 else 6020 else
6827 archive_expsym_cmds="$tmp_archive_cmds" 6021 archive_expsym_cmds=$archive_cmds
6828 fi 6022 fi
6829 link_all_deplibs=no
6830 else 6023 else
6831 ld_shlibs=no 6024 ld_shlibs=no
6832 fi 6025 fi
6833 ;; 6026 ;;
6834 6027
6835 *) 6028 *)
6836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6839 else 6032 else
6840 ld_shlibs=no 6033 ld_shlibs=no
6841 fi 6034 fi
6845 if test "$ld_shlibs" = yes; then 6038 if test "$ld_shlibs" = yes; then
6846 runpath_var=LD_RUN_PATH 6039 runpath_var=LD_RUN_PATH
6847 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6040 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6848 export_dynamic_flag_spec='${wl}--export-dynamic' 6041 export_dynamic_flag_spec='${wl}--export-dynamic'
6849 # ancient GNU ld didn't support --whole-archive et. al. 6042 # ancient GNU ld didn't support --whole-archive et. al.
6850 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6043 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6851 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6044 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6852 else 6045 else
6853 whole_archive_flag_spec= 6046 whole_archive_flag_spec=
6854 fi 6047 fi
6855 fi 6048 fi
6878 exp_sym_flag='-Bexport' 6071 exp_sym_flag='-Bexport'
6879 no_entry_flag="" 6072 no_entry_flag=""
6880 else 6073 else
6881 # If we're using GNU nm, then we don't want the "-C" option. 6074 # If we're using GNU nm, then we don't want the "-C" option.
6882 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6884 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 6077 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6885 else 6078 else
6886 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 6079 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6887 fi 6080 fi
6888 aix_use_runtimelinking=no 6081 aix_use_runtimelinking=no
6917 if test "$GCC" = yes; then 6110 if test "$GCC" = yes; then
6918 case $host_os in aix4.012|aix4.012.*) 6111 case $host_os in aix4.012|aix4.012.*)
6919 # We only want to do this on AIX 4.2 and lower, the check 6112 # We only want to do this on AIX 4.2 and lower, the check
6920 # below for broken collect2 doesn't work under 4.3+ 6113 # below for broken collect2 doesn't work under 4.3+
6921 collect2name=`${CC} -print-prog-name=collect2` 6114 collect2name=`${CC} -print-prog-name=collect2`
6922 if test -f "$collect2name" && \ 6115 if test -f "$collect2name" &&
6923 strings "$collect2name" | grep resolve_lib_name >/dev/null 6116 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6924 then 6117 then
6925 # We have reworked collect2 6118 # We have reworked collect2
6926 hardcode_direct=yes 6119 hardcode_direct=yes
6927 else 6120 else
6928 # We have old collect2 6121 # We have old collect2
6956 always_export_symbols=yes 6149 always_export_symbols=yes
6957 if test "$aix_use_runtimelinking" = yes; then 6150 if test "$aix_use_runtimelinking" = yes; then
6958 # Warning - without using the other runtime loading flags (-brtl), 6151 # Warning - without using the other runtime loading flags (-brtl),
6959 # -berok will link without error, but may produce a broken library. 6152 # -berok will link without error, but may produce a broken library.
6960 allow_undefined_flag='-berok' 6153 allow_undefined_flag='-berok'
6961 # Determine the default libpath from the value encoded in an empty executable. 6154 # Determine the default libpath from the value encoded in an
6155 # empty executable.
6962 cat >conftest.$ac_ext <<_ACEOF 6156 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */ 6157/* confdefs.h. */
6964_ACEOF 6158_ACEOF
6965cat confdefs.h >>conftest.$ac_ext 6159cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF 6160cat >>conftest.$ac_ext <<_ACEOF
6981 grep -v '^ *+' conftest.er1 >conftest.err 6175 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1 6176 rm -f conftest.er1
6983 cat conftest.err >&5 6177 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && 6179 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag" 6180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5 6182 (eval $ac_try) 2>&5
6990 ac_status=$? 6183 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } && 6185 (exit $ac_status); }; } &&
7011 conftest$ac_exeext conftest.$ac_ext 6204 conftest$ac_exeext conftest.$ac_ext
7012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6205if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7013 6206
7014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7015 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6208 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7016 else 6209 else
7017 if test "$host_cpu" = ia64; then 6210 if test "$host_cpu" = ia64; then
7018 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6211 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7019 allow_undefined_flag="-z nodefs" 6212 allow_undefined_flag="-z nodefs"
7020 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6213 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7021 else 6214 else
7022 # Determine the default libpath from the value encoded in an empty executable. 6215 # Determine the default libpath from the value encoded in an
6216 # empty executable.
7023 cat >conftest.$ac_ext <<_ACEOF 6217 cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h. */ 6218/* confdefs.h. */
7025_ACEOF 6219_ACEOF
7026cat confdefs.h >>conftest.$ac_ext 6220cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF 6221cat >>conftest.$ac_ext <<_ACEOF
7042 grep -v '^ *+' conftest.er1 >conftest.err 6236 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1 6237 rm -f conftest.er1
7044 cat conftest.err >&5 6238 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && 6240 (exit $ac_status); } &&
7047 { ac_try='test -z "$ac_c_werror_flag" 6241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7048 || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5 6243 (eval $ac_try) 2>&5
7051 ac_status=$? 6244 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } && 6246 (exit $ac_status); }; } &&
7087 fi 6280 fi
7088 fi 6281 fi
7089 ;; 6282 ;;
7090 6283
7091 amigaos*) 6284 amigaos*)
6285 if test "$host_cpu" = m68k; then
7092 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 6286 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7093 hardcode_libdir_flag_spec='-L$libdir' 6287 hardcode_libdir_flag_spec='-L$libdir'
7094 hardcode_minus_L=yes 6288 hardcode_minus_L=yes
6289 fi
7095 # see comment about different semantics on the GNU ld section 6290 # see comment about different semantics on the GNU ld section
7096 ld_shlibs=no 6291 ld_shlibs=no
7097 ;; 6292 ;;
7098 6293
7099 bsdi4*) 6294 bsdi4*)
7112 # Tell ltmain to make .dll files, not .so files. 6307 # Tell ltmain to make .dll files, not .so files.
7113 shrext_cmds=".dll" 6308 shrext_cmds=".dll"
7114 # FIXME: Setting linknames here is a bad hack. 6309 # FIXME: Setting linknames here is a bad hack.
7115 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6310 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7116 # The linker will automatically build a .lib file if we build a DLL. 6311 # The linker will automatically build a .lib file if we build a DLL.
7117 old_archive_From_new_cmds='true' 6312 old_archive_from_new_cmds='true'
7118 # FIXME: Should let the user specify the lib program. 6313 # FIXME: Should let the user specify the lib program.
7119 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6314 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7120 fix_srcfile_path='`cygpath -w "$srcfile"`' 6315 fix_srcfile_path='`cygpath -w "$srcfile"`'
7121 enable_shared_with_static_runtimes=yes 6316 enable_shared_with_static_runtimes=yes
7122 ;; 6317 ;;
7123 6318
7124 darwin* | rhapsody*) 6319 darwin* | rhapsody*)
7125 if test "$GXX" = yes ; then 6320 case "$host_os" in
6321 rhapsody* | darwin1.[012])
6322 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6323 ;;
6324 *) # Darwin 1.3 on
6325 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6326 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${Wl}suppress'
6327 else
6328 case ${MACOSX_DEPLOYMENT_TARGET} in
6329 10.[012])
6330 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6331 ;;
6332 10.*)
6333 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6334 ;;
6335 esac
6336 fi
6337 ;;
6338 esac
7126 archive_cmds_need_lc=no 6339 archive_cmds_need_lc=no
7127 case "$host_os" in
7128 rhapsody* | darwin1.[012])
7129 allow_undefined_flag='-undefined suppress'
7130 ;;
7131 *) # Darwin 1.3 on
7132 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7133 allow_undefined_flag='-flat_namespace -undefined suppress'
7134 else
7135 case ${MACOSX_DEPLOYMENT_TARGET} in
7136 10.[012])
7137 allow_undefined_flag='-flat_namespace -undefined suppress'
7138 ;;
7139 10.*)
7140 allow_undefined_flag='-undefined dynamic_lookup'
7141 ;;
7142 esac
7143 fi
7144 ;;
7145 esac
7146 lt_int_apple_cc_single_mod=no
7147 output_verbose_link_cmd='echo'
7148 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7149 lt_int_apple_cc_single_mod=yes
7150 fi
7151 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7152 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7153 else
7154 archive_cmds='$CC -r ${wl}-bind_at_load -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'
7155 fi
7156 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7157 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7158 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7159 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7160 else
7161 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7162 fi
7163 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7164 hardcode_direct=no 6340 hardcode_direct=no
7165 hardcode_automatic=yes 6341 hardcode_automatic=yes
7166 hardcode_shlibpath_var=unsupported 6342 hardcode_shlibpath_var=unsupported
7167 whole_archive_flag_spec='-all_load $convenience' 6343 whole_archive_flag_spec='-all_load $convenience'
7168 link_all_deplibs=yes 6344 link_all_deplibs=yes
6345 if test "$GCC" = yes ; then
6346 output_verbose_link_cmd='echo'
6347 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6348 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6349 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6350 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6351 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7169 else 6352 else
6353 case "$cc_basename" in
6354 xlc*)
6355 output_verbose_link_cmd='echo'
6356 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6357 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6358 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6359 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6360 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6361 ;;
6362 *)
7170 ld_shlibs=no 6363 ld_shlibs=no
6364 ;;
6365 esac
7171 fi 6366 fi
7172 ;; 6367 ;;
7173
7174 dgux*) 6368 dgux*)
7175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7176 hardcode_libdir_flag_spec='-L$libdir' 6370 hardcode_libdir_flag_spec='-L$libdir'
7177 hardcode_shlibpath_var=no 6371 hardcode_shlibpath_var=no
7178 ;; 6372 ;;
7277 ;; 6471 ;;
7278 6472
7279 irix5* | irix6* | nonstopux*) 6473 irix5* | irix6* | nonstopux*)
7280 if test "$GCC" = yes; then 6474 if test "$GCC" = yes; then
7281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6476 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7282 else 6477 else
7283 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6478 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6479 archive_expsym_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7284 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6480 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7285 fi 6481 fi
7286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7287 hardcode_libdir_separator=: 6483 hardcode_libdir_separator=:
6484 inherit_rpath=yes
7288 link_all_deplibs=yes 6485 link_all_deplibs=yes
7289 ;; 6486 ;;
7290 6487
7291 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6488 netbsd*)
7292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7293 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7294 else 6491 else
7295 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6492 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7296 fi 6493 fi
7297 hardcode_libdir_flag_spec='-R$libdir' 6494 hardcode_libdir_flag_spec='-R$libdir'
7308 ;; 6505 ;;
7309 6506
7310 openbsd*) 6507 openbsd*)
7311 hardcode_direct=yes 6508 hardcode_direct=yes
7312 hardcode_shlibpath_var=no 6509 hardcode_shlibpath_var=no
7313 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6512 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7316 export_dynamic_flag_spec='${wl}-E' 6513 export_dynamic_flag_spec='${wl}-E'
7317 else 6514 else
7318 case $host_os in 6515 case $host_os in
7331 os2*) 6528 os2*)
7332 hardcode_libdir_flag_spec='-L$libdir' 6529 hardcode_libdir_flag_spec='-L$libdir'
7333 hardcode_minus_L=yes 6530 hardcode_minus_L=yes
7334 allow_undefined_flag=unsupported 6531 allow_undefined_flag=unsupported
7335 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 6532 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7336 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6533 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7337 ;; 6534 ;;
7338 6535
7339 osf3*) 6536 osf3*)
7340 if test "$GCC" = yes; then 6537 if test "$GCC" = yes; then
7341 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6538 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7486 6683
7487 *) 6684 *)
7488 ld_shlibs=no 6685 ld_shlibs=no
7489 ;; 6686 ;;
7490 esac 6687 esac
6688
6689 if test x$host_vendor = xsni; then
6690 case $host in
6691 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6692 export_dynamic_flag_spec='${wl}-Blargedynsym'
6693 ;;
6694 esac
6695 fi
7491 fi 6696 fi
7492 6697
7493echo "$as_me:$LINENO: result: $ld_shlibs" >&5 6698echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7494echo "${ECHO_T}$ld_shlibs" >&6 6699echo "${ECHO_T}$ld_shlibs" >&6
7495test "$ld_shlibs" = no && can_build_shared=no 6700test "$ld_shlibs" = no && can_build_shared=no
7496 6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
7497variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6716variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7498if test "$GCC" = yes; then 6717if test "$GCC" = yes; then
7499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7500fi 6719fi
6720
6721
6722
6723
6724
7501 6725
7502# 6726#
7503# Do we need to explicitly link libc? 6727# Do we need to explicitly link libc?
7504# 6728#
7505case "x$archive_cmds_need_lc" in 6729case "x$archive_cmds_need_lc" in
7536 verstring= 6760 verstring=
7537 output_objdir=. 6761 output_objdir=.
7538 libname=conftest 6762 libname=conftest
7539 lt_save_allow_undefined_flag=$allow_undefined_flag 6763 lt_save_allow_undefined_flag=$allow_undefined_flag
7540 allow_undefined_flag= 6764 allow_undefined_flag=
7541 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 6765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7542 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 6766 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7543 ac_status=$? 6767 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } 6769 (exit $ac_status); }
7546 then 6770 then
7547 archive_cmds_need_lc=no 6771 archive_cmds_need_lc=no
7559 esac 6783 esac
7560 fi 6784 fi
7561 ;; 6785 ;;
7562esac 6786esac
7563 6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
7564echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 6920echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7565echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 6921echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7566library_names_spec= 6922library_names_spec=
7567libname_spec='lib$name' 6923libname_spec='lib$name'
7568soname_spec= 6924soname_spec=
7575shlibpath_overrides_runpath=unknown 6931shlibpath_overrides_runpath=unknown
7576version_type=none 6932version_type=none
7577dynamic_linker="$host_os ld.so" 6933dynamic_linker="$host_os ld.so"
7578sys_lib_dlsearch_path_spec="/lib /usr/lib" 6934sys_lib_dlsearch_path_spec="/lib /usr/lib"
7579if test "$GCC" = yes; then 6935if test "$GCC" = yes; then
7580 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 6936 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7581 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 6937 if echo "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
7582 # if the path contains ";" then we assume it to be the separator 6938 # if the path contains ";" then we assume it to be the separator
7583 # otherwise default to the standard path separator (i.e. ":") - it is 6939 # otherwise default to the standard path separator (i.e. ":") - it is
7584 # assumed that no part of a normal pathname contains ";" but that should 6940 # assumed that no part of a normal pathname contains ";" but that should
7585 # okay in the real world where ";" in dirpaths is itself problematic. 6941 # okay in the real world where ";" in dirpaths is itself problematic.
7586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 6942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7624 # development snapshots of GCC prior to 3.0. 6980 # development snapshots of GCC prior to 3.0.
7625 case $host_os in 6981 case $host_os in
7626 aix4 | aix4.[01] | aix4.[01].*) 6982 aix4 | aix4.[01] | aix4.[01].*)
7627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 6983 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7628 echo ' yes ' 6984 echo ' yes '
7629 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 6985 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7630 : 6986 :
7631 else 6987 else
7632 can_build_shared=no 6988 can_build_shared=no
7633 fi 6989 fi
7634 ;; 6990 ;;
7650 shlibpath_var=LIBPATH 7006 shlibpath_var=LIBPATH
7651 fi 7007 fi
7652 ;; 7008 ;;
7653 7009
7654amigaos*) 7010amigaos*)
7011 if test "$host_cpu" = m68k; then
7655 library_names_spec='$libname.ixlibrary $libname.a' 7012 library_names_spec='$libname.ixlibrary $libname.a'
7656 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7013 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7657 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' 7014 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'
7015 else
7016 dynamic_linker=no
7017 fi
7658 ;; 7018 ;;
7659 7019
7660beos*) 7020beos*)
7661 library_names_spec='${libname}${shared_ext}' 7021 library_names_spec='${libname}${shared_ext}'
7662 dynamic_linker="$host_os ld.so" 7022 dynamic_linker="$host_os ld.so"
7704 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7064 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7705 ;; 7065 ;;
7706 mingw*) 7066 mingw*)
7707 # MinGW DLLs use traditional 'lib' prefix 7067 # MinGW DLLs use traditional 'lib' prefix
7708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7068 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7069 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7710 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7070 if echo "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7711 # It is most probably a Windows format PATH printed by 7071 # It is most probably a Windows format PATH printed by
7712 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7072 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7713 # path with ; separators, and with drive letters. We can handle the 7073 # path with ; separators, and with drive letters. We can handle the
7714 # drive letters (cygwin fileutils understands them), so leave them, 7074 # drive letters (cygwin fileutils understands them), so leave them,
7715 # especially as we might pass files found there to a mingw objdump, 7075 # especially as we might pass files found there to a mingw objdump,
7745 shlibpath_overrides_runpath=yes 7105 shlibpath_overrides_runpath=yes
7746 shlibpath_var=DYLD_LIBRARY_PATH 7106 shlibpath_var=DYLD_LIBRARY_PATH
7747 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7107 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7748 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7108 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7749 if test "$GCC" = yes; then 7109 if test "$GCC" = yes; then
7750 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 7110 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | $GREP "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7751 else 7111 else
7752 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7112 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7753 fi 7113 fi
7754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7755 ;; 7115 ;;
7935 # people can always --disable-shared, the test was removed, and we 7295 # people can always --disable-shared, the test was removed, and we
7936 # assume the GNU/Linux dynamic linker is in use. 7296 # assume the GNU/Linux dynamic linker is in use.
7937 dynamic_linker='GNU/Linux ld.so' 7297 dynamic_linker='GNU/Linux ld.so'
7938 ;; 7298 ;;
7939 7299
7940netbsdelf*-gnu)
7941 version_type=linux
7942 need_lib_prefix=no
7943 need_version=no
7944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7945 soname_spec='${libname}${release}${shared_ext}$major'
7946 shlibpath_var=LD_LIBRARY_PATH
7947 shlibpath_overrides_runpath=no
7948 hardcode_into_libs=yes
7949 dynamic_linker='NetBSD ld.elf_so'
7950 ;;
7951
7952knetbsd*-gnu) 7300knetbsd*-gnu)
7953 version_type=linux 7301 version_type=linux
7954 need_lib_prefix=no 7302 need_lib_prefix=no
7955 need_version=no 7303 need_version=no
7956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7963 7311
7964netbsd*) 7312netbsd*)
7965 version_type=sunos 7313 version_type=sunos
7966 need_lib_prefix=no 7314 need_lib_prefix=no
7967 need_version=no 7315 need_version=no
7968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7971 dynamic_linker='NetBSD (a.out) ld.so' 7319 dynamic_linker='NetBSD (a.out) ld.so'
7972 else 7320 else
7973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8001 need_lib_prefix=no 7349 need_lib_prefix=no
8002 need_version=yes 7350 need_version=yes
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8005 shlibpath_var=LD_LIBRARY_PATH 7353 shlibpath_var=LD_LIBRARY_PATH
8006 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8007 case $host_os in 7355 case $host_os in
8008 openbsd2.[89] | openbsd2.[89].*) 7356 openbsd2.[89] | openbsd2.[89].*)
8009 shlibpath_overrides_runpath=no 7357 shlibpath_overrides_runpath=no
8010 ;; 7358 ;;
8011 *) 7359 *)
8076 shlibpath_var=LD_LIBRARY_PATH 7424 shlibpath_var=LD_LIBRARY_PATH
8077 case $host_vendor in 7425 case $host_vendor in
8078 sni) 7426 sni)
8079 shlibpath_overrides_runpath=no 7427 shlibpath_overrides_runpath=no
8080 need_lib_prefix=no 7428 need_lib_prefix=no
8081 export_dynamic_flag_spec='${wl}-Blargedynsym'
8082 runpath_var=LD_RUN_PATH 7429 runpath_var=LD_RUN_PATH
8083 ;; 7430 ;;
8084 siemens) 7431 siemens)
8085 need_lib_prefix=no 7432 need_lib_prefix=no
8086 ;; 7433 ;;
8115esac 7462esac
8116echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7463echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8117echo "${ECHO_T}$dynamic_linker" >&6 7464echo "${ECHO_T}$dynamic_linker" >&6
8118test "$dynamic_linker" = no && can_build_shared=no 7465test "$dynamic_linker" = no && can_build_shared=no
8119 7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
8120echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7547 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8121echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7548echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8122hardcode_action= 7549hardcode_action=
8123if test -n "$hardcode_libdir_flag_spec" || \ 7550if test -n "$hardcode_libdir_flag_spec" ||
8124 test -n "$runpath_var " || \ 7551 test -n "$runpath_var " ||
8125 test "X$hardcode_automatic"="Xyes" ; then 7552 test "X$hardcode_automatic"="Xyes" ; then
8126 7553
8127 # We can hardcode non-existant directories. 7554 # We can hardcode non-existant directories.
8128 if test "$hardcode_direct" != no && 7555 if test "$hardcode_direct" != no &&
8129 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8143 hardcode_action=unsupported 7570 hardcode_action=unsupported
8144fi 7571fi
8145echo "$as_me:$LINENO: result: $hardcode_action" >&5 7572echo "$as_me:$LINENO: result: $hardcode_action" >&5
8146echo "${ECHO_T}$hardcode_action" >&6 7573echo "${ECHO_T}$hardcode_action" >&6
8147 7574
8148if test "$hardcode_action" = relink; then 7575if test "$hardcode_action" = relink ||
7576 test "$inherit_rpath" = yes; then
8149 # Fast installation is not supported 7577 # Fast installation is not supported
8150 enable_fast_install=no 7578 enable_fast_install=no
8151elif test "$shlibpath_overrides_runpath" = yes || 7579elif test "$shlibpath_overrides_runpath" = yes ||
8152 test "$enable_shared" = no; then 7580 test "$enable_shared" = no; then
8153 # Fast installation is not necessary 7581 # Fast installation is not necessary
8154 enable_fast_install=needless 7582 enable_fast_install=needless
8155fi 7583fi
8156 7584
7585
7586
7587
7588
7589
7590
8157striplib= 7591striplib=
8158old_striplib= 7592old_striplib=
8159echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7593echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8160echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7594echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8161if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7595if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
8162 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8163 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7597 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8164 echo "$as_me:$LINENO: result: yes" >&5 7598 echo "$as_me:$LINENO: result: yes" >&5
8165echo "${ECHO_T}yes" >&6 7599echo "${ECHO_T}yes" >&6
8166else 7600else
8181echo "${ECHO_T}no" >&6 7615echo "${ECHO_T}no" >&6
8182 ;; 7616 ;;
8183 esac 7617 esac
8184fi 7618fi
8185 7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
8186if test "x$enable_dlopen" != xyes; then 7630 if test "x$enable_dlopen" != xyes; then
8187 enable_dlopen=unknown 7631 enable_dlopen=unknown
8188 enable_dlopen_self=unknown 7632 enable_dlopen_self=unknown
8189 enable_dlopen_self_static=unknown 7633 enable_dlopen_self_static=unknown
8190else 7634else
8191 lt_cv_dlopen=no 7635 lt_cv_dlopen=no
8246 grep -v '^ *+' conftest.er1 >conftest.err 7690 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1 7691 rm -f conftest.er1
8248 cat conftest.err >&5 7692 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && 7694 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag" 7695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5 7697 (eval $ac_try) 2>&5
8255 ac_status=$? 7698 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } && 7700 (exit $ac_status); }; } &&
8350 grep -v '^ *+' conftest.er1 >conftest.err 7793 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1 7794 rm -f conftest.er1
8352 cat conftest.err >&5 7795 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } && 7797 (exit $ac_status); } &&
8355 { ac_try='test -z "$ac_c_werror_flag" 7798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356 || test ! -s conftest.err'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5 7800 (eval $ac_try) 2>&5
8359 ac_status=$? 7801 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } && 7803 (exit $ac_status); }; } &&
8416 grep -v '^ *+' conftest.er1 >conftest.err 7858 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1 7859 rm -f conftest.er1
8418 cat conftest.err >&5 7860 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && 7862 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag" 7863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5 7865 (eval $ac_try) 2>&5
8425 ac_status=$? 7866 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } && 7868 (exit $ac_status); }; } &&
8510 grep -v '^ *+' conftest.er1 >conftest.err 7951 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1 7952 rm -f conftest.er1
8512 cat conftest.err >&5 7953 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } && 7955 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_c_werror_flag" 7956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5 7958 (eval $ac_try) 2>&5
8519 ac_status=$? 7959 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } && 7961 (exit $ac_status); }; } &&
8576 grep -v '^ *+' conftest.er1 >conftest.err 8016 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1 8017 rm -f conftest.er1
8578 cat conftest.err >&5 8018 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && 8020 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" 8021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5 8023 (eval $ac_try) 2>&5
8585 ac_status=$? 8024 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } && 8026 (exit $ac_status); }; } &&
8643 grep -v '^ *+' conftest.er1 >conftest.err 8082 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1 8083 rm -f conftest.er1
8645 cat conftest.err >&5 8084 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && 8086 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag" 8087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8649 || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5 8089 (eval $ac_try) 2>&5
8652 ac_status=$? 8090 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } && 8092 (exit $ac_status); }; } &&
8710 grep -v '^ *+' conftest.er1 >conftest.err 8148 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1 8149 rm -f conftest.er1
8712 cat conftest.err >&5 8150 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && 8152 (exit $ac_status); } &&
8715 { ac_try='test -z "$ac_c_werror_flag" 8153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8716 || test ! -s conftest.err'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5 8155 (eval $ac_try) 2>&5
8719 ac_status=$? 8156 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } && 8158 (exit $ac_status); }; } &&
8785 if test "$cross_compiling" = yes; then : 8222 if test "$cross_compiling" = yes; then :
8786 lt_cv_dlopen_self=cross 8223 lt_cv_dlopen_self=cross
8787else 8224else
8788 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8789 lt_status=$lt_dlunknown 8226 lt_status=$lt_dlunknown
8790 cat > conftest.$ac_ext <<EOF 8227 cat > conftest.$ac_ext <<_LT_EOF
8791#line 8791 "configure" 8228#line 8228 "configure"
8792#include "confdefs.h" 8229#include "confdefs.h"
8793 8230
8794#if HAVE_DLFCN_H 8231#if HAVE_DLFCN_H
8795#include <dlfcn.h> 8232#include <dlfcn.h>
8796#endif 8233#endif
8846 /* dlclose (self); */ 8283 /* dlclose (self); */
8847 } 8284 }
8848 8285
8849 exit (status); 8286 exit (status);
8850} 8287}
8851EOF 8288_LT_EOF
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853 (eval $ac_link) 2>&5 8290 (eval $ac_link) 2>&5
8854 ac_status=$? 8291 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8293 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8883 if test "$cross_compiling" = yes; then : 8320 if test "$cross_compiling" = yes; then :
8884 lt_cv_dlopen_self_static=cross 8321 lt_cv_dlopen_self_static=cross
8885else 8322else
8886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8887 lt_status=$lt_dlunknown 8324 lt_status=$lt_dlunknown
8888 cat > conftest.$ac_ext <<EOF 8325 cat > conftest.$ac_ext <<_LT_EOF
8889#line 8889 "configure" 8326#line 8326 "configure"
8890#include "confdefs.h" 8327#include "confdefs.h"
8891 8328
8892#if HAVE_DLFCN_H 8329#if HAVE_DLFCN_H
8893#include <dlfcn.h> 8330#include <dlfcn.h>
8894#endif 8331#endif
8944 /* dlclose (self); */ 8381 /* dlclose (self); */
8945 } 8382 }
8946 8383
8947 exit (status); 8384 exit (status);
8948} 8385}
8949EOF 8386_LT_EOF
8950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8951 (eval $ac_link) 2>&5 8388 (eval $ac_link) 2>&5
8952 ac_status=$? 8389 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8391 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8988 *) enable_dlopen_self_static=unknown ;; 8425 *) enable_dlopen_self_static=unknown ;;
8989 esac 8426 esac
8990fi 8427fi
8991 8428
8992 8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8993# Report which librarie types wil actually be built 8445 # Report which library types will actually be built
8994echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8446 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8995echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8447echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8996echo "$as_me:$LINENO: result: $can_build_shared" >&5 8448 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8997echo "${ECHO_T}$can_build_shared" >&6 8449echo "${ECHO_T}$can_build_shared" >&6
8998 8450
8999echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8451 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9000echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8452echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9001test "$can_build_shared" = "no" && enable_shared=no 8453 test "$can_build_shared" = "no" && enable_shared=no
9002 8454
9003# On AIX, shared libraries and static libraries use the same namespace, and 8455 # On AIX, shared libraries and static libraries use the same namespace, and
9004# are all built from PIC. 8456 # are all built from PIC.
9005case "$host_os" in 8457 case "$host_os" in
9006aix3*) 8458 aix3*)
9007 test "$enable_shared" = yes && enable_static=no
9008 if test -n "$RANLIB"; then
9009 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9010 postinstall_cmds='$RANLIB $lib'
9011 fi
9012 ;;
9013
9014aix4* | aix5*)
9015 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9016 test "$enable_shared" = yes && enable_static=no 8459 test "$enable_shared" = yes && enable_static=no
9017 fi 8460 if test -n "$RANLIB"; then
9018 ;; 8461 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9019 darwin* | rhapsody*) 8462 postinstall_cmds='$RANLIB $lib'
9020 if test "$GCC" = yes; then
9021 archive_cmds_need_lc=no
9022 case "$host_os" in
9023 rhapsody* | darwin1.[012])
9024 allow_undefined_flag='-undefined suppress'
9025 ;;
9026 *) # Darwin 1.3 on
9027 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9028 allow_undefined_flag='-flat_namespace -undefined suppress'
9029 else
9030 case ${MACOSX_DEPLOYMENT_TARGET} in
9031 10.[012])
9032 allow_undefined_flag='-flat_namespace -undefined suppress'
9033 ;;
9034 10.*)
9035 allow_undefined_flag='-undefined dynamic_lookup'
9036 ;;
9037 esac
9038 fi 8463 fi
9039 ;;
9040 esac
9041 output_verbose_link_cmd='echo'
9042 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9043 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9045 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9046 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9047 hardcode_direct=no
9048 hardcode_automatic=yes
9049 hardcode_shlibpath_var=unsupported
9050 whole_archive_flag_spec='-all_load $convenience'
9051 link_all_deplibs=yes
9052 else
9053 ld_shlibs=no
9054 fi
9055 ;; 8464 ;;
9056esac
9057echo "$as_me:$LINENO: result: $enable_shared" >&5
9058echo "${ECHO_T}$enable_shared" >&6
9059 8465
9060echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8466 aix4* | aix5*)
9061echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8467 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9062# Make sure either enable_shared or enable_static is yes.
9063test "$enable_shared" = yes || enable_static=yes 8468 test "$enable_shared" = yes && enable_static=no
9064echo "$as_me:$LINENO: result: $enable_static" >&5
9065echo "${ECHO_T}$enable_static" >&6
9066
9067# The else clause should only fire when bootstrapping the
9068# libtool distribution, otherwise you forgot to ship ltmain.sh
9069# with your package, and you will get complaints that there are
9070# no rules to generate ltmain.sh.
9071if test -f "$ltmain"; then
9072 # See if we are running on zsh, and set the options which allow our commands through
9073 # without removal of \ escapes.
9074 if test -n "${ZSH_VERSION+set}" ; then
9075 setopt NO_GLOB_SUBST
9076 fi 8469 fi
9077 # Now quote all the things that may contain metacharacters while being
9078 # careful not to overquote the AC_SUBSTed values. We take copies of the
9079 # variables and quote the copies for generation of the libtool script.
9080 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9081 SED SHELL STRIP \
9082 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9083 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9084 deplibs_check_method reload_flag reload_cmds need_locks \
9085 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9086 lt_cv_sys_global_symbol_to_c_name_address \
9087 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9088 old_postinstall_cmds old_postuninstall_cmds \
9089 compiler \
9090 CC \
9091 LD \
9092 lt_prog_compiler_wl \
9093 lt_prog_compiler_pic \
9094 lt_prog_compiler_static \
9095 lt_prog_compiler_no_builtin_flag \
9096 export_dynamic_flag_spec \
9097 thread_safe_flag_spec \
9098 whole_archive_flag_spec \
9099 enable_shared_with_static_runtimes \
9100 old_archive_cmds \
9101 old_archive_from_new_cmds \
9102 predep_objects \
9103 postdep_objects \
9104 predeps \
9105 postdeps \
9106 compiler_lib_search_path \
9107 archive_cmds \
9108 archive_expsym_cmds \
9109 postinstall_cmds \
9110 postuninstall_cmds \
9111 old_archive_from_expsyms_cmds \
9112 allow_undefined_flag \
9113 no_undefined_flag \
9114 export_symbols_cmds \
9115 hardcode_libdir_flag_spec \
9116 hardcode_libdir_flag_spec_ld \
9117 hardcode_libdir_separator \
9118 hardcode_automatic \
9119 module_cmds \
9120 module_expsym_cmds \
9121 lt_cv_prog_compiler_c_o \
9122 exclude_expsyms \
9123 include_expsyms; do
9124
9125 case $var in
9126 old_archive_cmds | \
9127 old_archive_from_new_cmds | \
9128 archive_cmds | \
9129 archive_expsym_cmds | \
9130 module_cmds | \
9131 module_expsym_cmds | \
9132 old_archive_from_expsyms_cmds | \
9133 export_symbols_cmds | \
9134 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9135 postinstall_cmds | postuninstall_cmds | \
9136 old_postinstall_cmds | old_postuninstall_cmds | \
9137 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9138 # Double-quote double-evaled strings.
9139 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9140 ;;
9141 *)
9142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9143 ;;
9144 esac
9145 done
9146
9147 case $lt_echo in
9148 *'\$0 --fallback-echo"')
9149 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9150 ;; 8470 ;;
9151 esac 8471 esac
8472 echo "$as_me:$LINENO: result: $enable_shared" >&5
8473echo "${ECHO_T}$enable_shared" >&6
9152 8474
9153cfgfile="${ofile}T" 8475 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9154 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8476echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9155 $rm -f "$cfgfile" 8477 # Make sure either enable_shared or enable_static is yes.
9156 { echo "$as_me:$LINENO: creating $ofile" >&5 8478 test "$enable_shared" = yes || enable_static=yes
9157echo "$as_me: creating $ofile" >&6;} 8479 echo "$as_me:$LINENO: result: $enable_static" >&5
8480echo "${ECHO_T}$enable_static" >&6
9158 8481
9159 cat <<__EOF__ >> "$cfgfile"
9160#! $SHELL
9161 8482
9162# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9163# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9164# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9165#
9166# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9167# Free Software Foundation, Inc.
9168#
9169# This file is part of GNU Libtool:
9170# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9171#
9172# This program is free software; you can redistribute it and/or modify
9173# it under the terms of the GNU General Public License as published by
9174# the Free Software Foundation; either version 2 of the License, or
9175# (at your option) any later version.
9176#
9177# This program is distributed in the hope that it will be useful, but
9178# WITHOUT ANY WARRANTY; without even the implied warranty of
9179# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9180# General Public License for more details.
9181#
9182# You should have received a copy of the GNU General Public License
9183# along with this program; if not, write to the Free Software
9184# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9185#
9186# As a special exception to the GNU General Public License, if you
9187# distribute this file as part of a program that contains a
9188# configuration script generated by Autoconf, you may include it under
9189# the same distribution terms that you use for the rest of that program.
9190 8483
9191# A sed program that does not truncate output.
9192SED=$lt_SED
9193 8484
9194# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9195Xsed="$SED -e s/^X//"
9196
9197# The HP-UX ksh and POSIX shell print the target directory to stdout
9198# if CDPATH is set.
9199if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9200
9201# The names of the tagged configurations supported by this script.
9202available_tags=
9203
9204# ### BEGIN LIBTOOL CONFIG
9205
9206# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9207
9208# Shell to use when invoking shell scripts.
9209SHELL=$lt_SHELL
9210
9211# Whether or not to build shared libraries.
9212build_libtool_libs=$enable_shared
9213
9214# Whether or not to build static libraries.
9215build_old_libs=$enable_static
9216
9217# Whether or not to add -lc for building shared libraries.
9218build_libtool_need_lc=$archive_cmds_need_lc
9219
9220# Whether or not to disallow shared libs when runtime libs are static
9221allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9222
9223# Whether or not to optimize for fast installation.
9224fast_install=$enable_fast_install
9225
9226# The host system.
9227host_alias=$host_alias
9228host=$host
9229
9230# An echo program that does not interpret backslashes.
9231echo=$lt_echo
9232
9233# The archiver.
9234AR=$lt_AR
9235AR_FLAGS=$lt_AR_FLAGS
9236
9237# A C compiler.
9238LTCC=$lt_LTCC
9239
9240# A language-specific compiler.
9241CC=$lt_compiler
9242
9243# Is the compiler the GNU C compiler?
9244with_gcc=$GCC
9245
9246# An ERE matcher.
9247EGREP=$lt_EGREP
9248
9249# The linker used to build libraries.
9250LD=$lt_LD
9251
9252# Whether we need hard or soft links.
9253LN_S=$lt_LN_S
9254
9255# A BSD-compatible nm program.
9256NM=$lt_NM
9257
9258# A symbol stripping program
9259STRIP=$lt_STRIP
9260
9261# Used to examine libraries when file_magic_cmd begins "file"
9262MAGIC_CMD=$MAGIC_CMD
9263
9264# Used on cygwin: DLL creation program.
9265DLLTOOL="$DLLTOOL"
9266
9267# Used on cygwin: object dumper.
9268OBJDUMP="$OBJDUMP"
9269
9270# Used on cygwin: assembler.
9271AS="$AS"
9272
9273# The name of the directory that contains temporary libtool files.
9274objdir=$objdir
9275
9276# How to create reloadable object files.
9277reload_flag=$lt_reload_flag
9278reload_cmds=$lt_reload_cmds
9279
9280# How to pass a linker flag through the compiler.
9281wl=$lt_lt_prog_compiler_wl
9282
9283# Object file suffix (normally "o").
9284objext="$ac_objext"
9285
9286# Old archive suffix (normally "a").
9287libext="$libext"
9288
9289# Shared library suffix (normally ".so").
9290shrext_cmds='$shrext_cmds'
9291
9292# Executable file suffix (normally "").
9293exeext="$exeext"
9294
9295# Additional compiler flags for building library objects.
9296pic_flag=$lt_lt_prog_compiler_pic
9297pic_mode=$pic_mode
9298
9299# What is the maximum length of a command?
9300max_cmd_len=$lt_cv_sys_max_cmd_len
9301
9302# Does compiler simultaneously support -c and -o options?
9303compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9304
9305# Must we lock files when doing compilation ?
9306need_locks=$lt_need_locks
9307
9308# Do we need the lib prefix for modules?
9309need_lib_prefix=$need_lib_prefix
9310
9311# Do we need a version for libraries?
9312need_version=$need_version
9313
9314# Whether dlopen is supported.
9315dlopen_support=$enable_dlopen
9316
9317# Whether dlopen of programs is supported.
9318dlopen_self=$enable_dlopen_self
9319
9320# Whether dlopen of statically linked programs is supported.
9321dlopen_self_static=$enable_dlopen_self_static
9322
9323# Compiler flag to prevent dynamic linking.
9324link_static_flag=$lt_lt_prog_compiler_static
9325
9326# Compiler flag to turn off builtin functions.
9327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9328
9329# Compiler flag to allow reflexive dlopens.
9330export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9331
9332# Compiler flag to generate shared objects directly from archives.
9333whole_archive_flag_spec=$lt_whole_archive_flag_spec
9334
9335# Compiler flag to generate thread-safe objects.
9336thread_safe_flag_spec=$lt_thread_safe_flag_spec
9337
9338# Library versioning type.
9339version_type=$version_type
9340
9341# Format of library name prefix.
9342libname_spec=$lt_libname_spec
9343
9344# List of archive names. First name is the real one, the rest are links.
9345# The last name is the one that the linker finds with -lNAME.
9346library_names_spec=$lt_library_names_spec
9347
9348# The coded name of the library, if different from the real name.
9349soname_spec=$lt_soname_spec
9350
9351# Commands used to build and install an old-style archive.
9352RANLIB=$lt_RANLIB
9353old_archive_cmds=$lt_old_archive_cmds
9354old_postinstall_cmds=$lt_old_postinstall_cmds
9355old_postuninstall_cmds=$lt_old_postuninstall_cmds
9356
9357# Create an old-style archive from a shared archive.
9358old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9359
9360# Create a temporary old-style archive to link instead of a shared archive.
9361old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9362
9363# Commands used to build and install a shared archive.
9364archive_cmds=$lt_archive_cmds
9365archive_expsym_cmds=$lt_archive_expsym_cmds
9366postinstall_cmds=$lt_postinstall_cmds
9367postuninstall_cmds=$lt_postuninstall_cmds
9368
9369# Commands used to build a loadable module (assumed same as above if empty)
9370module_cmds=$lt_module_cmds
9371module_expsym_cmds=$lt_module_expsym_cmds
9372
9373# Commands to strip libraries.
9374old_striplib=$lt_old_striplib
9375striplib=$lt_striplib
9376
9377# Dependencies to place before the objects being linked to create a
9378# shared library.
9379predep_objects=$lt_predep_objects
9380
9381# Dependencies to place after the objects being linked to create a
9382# shared library.
9383postdep_objects=$lt_postdep_objects
9384
9385# Dependencies to place before the objects being linked to create a
9386# shared library.
9387predeps=$lt_predeps
9388
9389# Dependencies to place after the objects being linked to create a
9390# shared library.
9391postdeps=$lt_postdeps
9392
9393# The library search path used internally by the compiler when linking
9394# a shared library.
9395compiler_lib_search_path=$lt_compiler_lib_search_path
9396
9397# Method to check whether dependent libraries are shared objects.
9398deplibs_check_method=$lt_deplibs_check_method
9399
9400# Command to use when deplibs_check_method == file_magic.
9401file_magic_cmd=$lt_file_magic_cmd
9402
9403# Flag that allows shared libraries with undefined symbols to be built.
9404allow_undefined_flag=$lt_allow_undefined_flag
9405
9406# Flag that forces no undefined symbols.
9407no_undefined_flag=$lt_no_undefined_flag
9408
9409# Commands used to finish a libtool library installation in a directory.
9410finish_cmds=$lt_finish_cmds
9411
9412# Same as above, but a single script fragment to be evaled but not shown.
9413finish_eval=$lt_finish_eval
9414
9415# Take the output of nm and produce a listing of raw symbols and C names.
9416global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9417
9418# Transform the output of nm in a proper C declaration
9419global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9420
9421# Transform the output of nm in a C name address pair
9422global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9423
9424# This is the shared library runtime path variable.
9425runpath_var=$runpath_var
9426
9427# This is the shared library path variable.
9428shlibpath_var=$shlibpath_var
9429
9430# Is shlibpath searched before the hard-coded library search path?
9431shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9432
9433# How to hardcode a shared library path into an executable.
9434hardcode_action=$hardcode_action
9435
9436# Whether we should hardcode library paths into libraries.
9437hardcode_into_libs=$hardcode_into_libs
9438
9439# Flag to hardcode \$libdir into a binary during linking.
9440# This must work even if \$libdir does not exist.
9441hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9442
9443# If ld is used when linking, flag to hardcode \$libdir into
9444# a binary during linking. This must work even if \$libdir does
9445# not exist.
9446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9447
9448# Whether we need a single -rpath flag with a separated argument.
9449hardcode_libdir_separator=$lt_hardcode_libdir_separator
9450
9451# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9452# resulting binary.
9453hardcode_direct=$hardcode_direct
9454
9455# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9456# resulting binary.
9457hardcode_minus_L=$hardcode_minus_L
9458
9459# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9460# the resulting binary.
9461hardcode_shlibpath_var=$hardcode_shlibpath_var
9462
9463# Set to yes if building a shared library automatically hardcodes DIR into the library
9464# and all subsequent libraries and executables linked against it.
9465hardcode_automatic=$hardcode_automatic
9466
9467# Variables whose values should be saved in libtool wrapper scripts and
9468# restored at relink time.
9469variables_saved_for_relink="$variables_saved_for_relink"
9470
9471# Whether libtool must link a program against all its dependency libraries.
9472link_all_deplibs=$link_all_deplibs
9473
9474# Compile-time system search path for libraries
9475sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9476
9477# Run-time system search path for libraries
9478sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9479
9480# Fix the shell variable \$srcfile for the compiler.
9481fix_srcfile_path="$fix_srcfile_path"
9482
9483# Set to yes if exported symbols are required.
9484always_export_symbols=$always_export_symbols
9485
9486# The commands to list exported symbols.
9487export_symbols_cmds=$lt_export_symbols_cmds
9488
9489# The commands to extract the exported symbol list from a shared archive.
9490extract_expsyms_cmds=$lt_extract_expsyms_cmds
9491
9492# Symbols that should not be listed in the preloaded symbols.
9493exclude_expsyms=$lt_exclude_expsyms
9494
9495# Symbols that must always be exported.
9496include_expsyms=$lt_include_expsyms
9497
9498# ### END LIBTOOL CONFIG
9499
9500__EOF__
9501
9502
9503 case $host_os in
9504 aix3*)
9505 cat <<\EOF >> "$cfgfile"
9506
9507# AIX sometimes has problems with the GCC collect2 program. For some
9508# reason, if we set the COLLECT_NAMES environment variable, the problems
9509# vanish in a puff of smoke.
9510if test "X${COLLECT_NAMES+set}" != Xset; then
9511 COLLECT_NAMES=
9512 export COLLECT_NAMES
9513fi 8485fi
9514EOF
9515 ;;
9516 esac
9517
9518 # We use sed instead of cat because bash on DJGPP gets confused if
9519 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9520 # text mode, it properly converts lines to CR/LF. This bash problem
9521 # is reportedly fixed, but why not run on old versions too?
9522 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9523
9524 mv -f "$cfgfile" "$ofile" || \
9525 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9526 chmod +x "$ofile"
9527
9528else
9529 # If there is no Makefile yet, we rely on a make rule to execute
9530 # `config.status --recheck' to rerun these tests and create the
9531 # libtool script then.
9532 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9533 if test -f "$ltmain_in"; then
9534 test -f Makefile && make "$ltmain"
9535 fi
9536fi
9537
9538
9539ac_ext=c 8486ac_ext=c
9540ac_cpp='$CPP $CPPFLAGS' 8487ac_cpp='$CPP $CPPFLAGS'
9541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9543ac_compiler_gnu=$ac_cv_c_compiler_gnu 8490ac_compiler_gnu=$ac_cv_c_compiler_gnu
9544 8491
9545CC="$lt_save_CC" 8492CC="$lt_save_CC"
9546 8493
9547 8494
9548# Check whether --with-tags or --without-tags was given.
9549if test "${with_tags+set}" = set; then
9550 withval="$with_tags"
9551 tagnames="$withval"
9552fi;
9553 8495
9554if test -f "$ltmain" && test -n "$tagnames"; then
9555 if test ! -f "${ofile}"; then
9556 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9557echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9558 fi
9559 8496
9560 if test -z "$LTCC"; then
9561 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9562 if test -z "$LTCC"; then
9563 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9564echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9565 else
9566 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9567echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9568 fi
9569 fi
9570 8497
9571 # Extract list of available tagged configurations in $ofile.
9572 # Note that this assumes the entire list is on one line.
9573 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9574 8498
9575 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9576 for tagname in $tagnames; do
9577 IFS="$lt_save_ifs"
9578 # Check whether tagname contains only valid characters
9579 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9580 "") ;;
9581 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9582echo "$as_me: error: invalid tag name: $tagname" >&2;}
9583 { (exit 1); exit 1; }; }
9584 ;;
9585 esac
9586 8499
9587 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9588 then
9589 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9590echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9591 { (exit 1); exit 1; }; }
9592 fi
9593 8500
9594 # Update the list of available tags.
9595 if test -n "$tagname"; then
9596 echo appending configuration tag \"$tagname\" to $ofile
9597 8501
9598 case $tagname in
9599 CXX)
9600 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9601 ac_ext=cc
9602ac_cpp='$CXXCPP $CPPFLAGS'
9603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9606 8502
9607 8503
8504 ac_config_commands="$ac_config_commands libtool"
9608 8505
9609 8506
9610archive_cmds_need_lc_CXX=no
9611allow_undefined_flag_CXX=
9612always_export_symbols_CXX=no
9613archive_expsym_cmds_CXX=
9614export_dynamic_flag_spec_CXX=
9615hardcode_direct_CXX=no
9616hardcode_libdir_flag_spec_CXX=
9617hardcode_libdir_flag_spec_ld_CXX=
9618hardcode_libdir_separator_CXX=
9619hardcode_minus_L_CXX=no
9620hardcode_automatic_CXX=no
9621module_cmds_CXX=
9622module_expsym_cmds_CXX=
9623link_all_deplibs_CXX=unknown
9624old_archive_cmds_CXX=$old_archive_cmds
9625no_undefined_flag_CXX=
9626whole_archive_flag_spec_CXX=
9627enable_shared_with_static_runtimes_CXX=no
9628 8507
9629# Dependencies to place before and after the object being linked:
9630predep_objects_CXX=
9631postdep_objects_CXX=
9632predeps_CXX=
9633postdeps_CXX=
9634compiler_lib_search_path_CXX=
9635 8508
9636# Source file extension for C++ test sources. 8509# Only expand once:
9637ac_ext=cc
9638
9639# Object file extension for compiled C++ test sources.
9640objext=o
9641objext_CXX=$objext
9642
9643# Code to be used in simple compile tests
9644lt_simple_compile_test_code="int some_variable = 0;\n"
9645
9646# Code to be used in simple link tests
9647lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9648
9649# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9650
9651# If no C compiler was specified, use CC.
9652LTCC=${LTCC-"$CC"}
9653
9654# Allow CC to be a program name with arguments.
9655compiler=$CC
9656
9657
9658# Allow CC to be a program name with arguments.
9659lt_save_CC=$CC
9660lt_save_LD=$LD
9661lt_save_GCC=$GCC
9662GCC=$GXX
9663lt_save_with_gnu_ld=$with_gnu_ld
9664lt_save_path_LD=$lt_cv_path_LD
9665if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9666 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9667else
9668 unset lt_cv_prog_gnu_ld
9669fi
9670if test -n "${lt_cv_path_LDCXX+set}"; then
9671 lt_cv_path_LD=$lt_cv_path_LDCXX
9672else
9673 unset lt_cv_path_LD
9674fi
9675test -z "${LDCXX+set}" || LD=$LDCXX
9676CC=${CXX-"c++"}
9677compiler=$CC
9678compiler_CXX=$CC
9679cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9680
9681# We don't want -fno-exception wen compiling C++ code, so set the
9682# no_builtin_flag separately
9683if test "$GXX" = yes; then
9684 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9685else
9686 lt_prog_compiler_no_builtin_flag_CXX=
9687fi
9688
9689if test "$GXX" = yes; then
9690 # Set up default GNU C++ configuration
9691
9692
9693# Check whether --with-gnu-ld or --without-gnu-ld was given.
9694if test "${with_gnu_ld+set}" = set; then
9695 withval="$with_gnu_ld"
9696 test "$withval" = no || with_gnu_ld=yes
9697else
9698 with_gnu_ld=no
9699fi;
9700ac_prog=ld
9701if test "$GCC" = yes; then
9702 # Check if gcc -print-prog-name=ld gives a path.
9703 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9704echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9705 case $host in
9706 *-*-mingw*)
9707 # gcc leaves a trailing carriage return which upsets mingw
9708 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9709 *)
9710 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9711 esac
9712 case $ac_prog in
9713 # Accept absolute paths.
9714 [\\/]* | ?:[\\/]*)
9715 re_direlt='/[^/][^/]*/\.\./'
9716 # Canonicalize the pathname of ld
9717 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9718 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9719 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9720 done
9721 test -z "$LD" && LD="$ac_prog"
9722 ;;
9723 "")
9724 # If it fails, then pretend we aren't using GCC.
9725 ac_prog=ld
9726 ;;
9727 *)
9728 # If it is relative, then search for the first ld in PATH.
9729 with_gnu_ld=unknown
9730 ;;
9731 esac
9732elif test "$with_gnu_ld" = yes; then
9733 echo "$as_me:$LINENO: checking for GNU ld" >&5
9734echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9735else
9736 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9737echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9738fi
9739if test "${lt_cv_path_LD+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741else
9742 if test -z "$LD"; then
9743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9744 for ac_dir in $PATH; do
9745 IFS="$lt_save_ifs"
9746 test -z "$ac_dir" && ac_dir=.
9747 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9748 lt_cv_path_LD="$ac_dir/$ac_prog"
9749 # Check to see if the program is GNU ld. I'd rather use --version,
9750 # but apparently some GNU ld's only accept -v.
9751 # Break only if it was the GNU/non-GNU ld that we prefer.
9752 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9753 *GNU* | *'with BFD'*)
9754 test "$with_gnu_ld" != no && break
9755 ;;
9756 *)
9757 test "$with_gnu_ld" != yes && break
9758 ;;
9759 esac
9760 fi
9761 done
9762 IFS="$lt_save_ifs"
9763else
9764 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9765fi
9766fi
9767
9768LD="$lt_cv_path_LD"
9769if test -n "$LD"; then
9770 echo "$as_me:$LINENO: result: $LD" >&5
9771echo "${ECHO_T}$LD" >&6
9772else
9773 echo "$as_me:$LINENO: result: no" >&5
9774echo "${ECHO_T}no" >&6
9775fi
9776test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9777echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9778 { (exit 1); exit 1; }; }
9779echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9780echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9781if test "${lt_cv_prog_gnu_ld+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783else
9784 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9785case `$LD -v 2>&1 </dev/null` in
9786*GNU* | *'with BFD'*)
9787 lt_cv_prog_gnu_ld=yes
9788 ;;
9789*)
9790 lt_cv_prog_gnu_ld=no
9791 ;;
9792esac
9793fi
9794echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9795echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9796with_gnu_ld=$lt_cv_prog_gnu_ld
9797
9798
9799
9800 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9801 # archiving commands below assume that GNU ld is being used.
9802 if test "$with_gnu_ld" = yes; then
9803 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9804 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'
9805
9806 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9808
9809 # If archive_cmds runs LD, not CC, wlarc should be empty
9810 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9811 # investigate it a little bit more. (MM)
9812 wlarc='${wl}'
9813
9814 # ancient GNU ld didn't support --whole-archive et. al.
9815 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9816 grep 'no-whole-archive' > /dev/null; then
9817 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9818 else
9819 whole_archive_flag_spec_CXX=
9820 fi
9821 else
9822 with_gnu_ld=no
9823 wlarc=
9824
9825 # A generic and very simple default shared library creation
9826 # command for GNU C++ for the case where it uses the native
9827 # linker, instead of GNU ld. If possible, this setting should
9828 # overridden to take advantage of the native linker features on
9829 # the platform it is being used on.
9830 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9831 fi
9832
9833 # Commands to make compiler produce verbose output that lists
9834 # what "hidden" libraries, object files and flags are used when
9835 # linking a shared library.
9836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9837
9838else
9839 GXX=no
9840 with_gnu_ld=no
9841 wlarc=
9842fi
9843
9844# PORTME: fill in a description of your system's C++ link characteristics
9845echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9846echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9847ld_shlibs_CXX=yes
9848case $host_os in
9849 aix3*)
9850 # FIXME: insert proper C++ library support
9851 ld_shlibs_CXX=no
9852 ;;
9853 aix4* | aix5*)
9854 if test "$host_cpu" = ia64; then
9855 # On IA64, the linker does run time linking by default, so we don't
9856 # have to do anything special.
9857 aix_use_runtimelinking=no
9858 exp_sym_flag='-Bexport'
9859 no_entry_flag=""
9860 else
9861 aix_use_runtimelinking=no
9862
9863 # Test if we are trying to use run time linking or normal
9864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9865 # need to do runtime linking.
9866 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9867 for ld_flag in $LDFLAGS; do
9868 case $ld_flag in
9869 *-brtl*)
9870 aix_use_runtimelinking=yes
9871 break
9872 ;;
9873 esac
9874 done
9875 esac
9876
9877 exp_sym_flag='-bexport'
9878 no_entry_flag='-bnoentry'
9879 fi
9880
9881 # When large executables or shared objects are built, AIX ld can
9882 # have problems creating the table of contents. If linking a library
9883 # or program results in "error TOC overflow" add -mminimal-toc to
9884 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9885 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9886
9887 archive_cmds_CXX=''
9888 hardcode_direct_CXX=yes
9889 hardcode_libdir_separator_CXX=':'
9890 link_all_deplibs_CXX=yes
9891
9892 if test "$GXX" = yes; then
9893 case $host_os in aix4.012|aix4.012.*)
9894 # We only want to do this on AIX 4.2 and lower, the check
9895 # below for broken collect2 doesn't work under 4.3+
9896 collect2name=`${CC} -print-prog-name=collect2`
9897 if test -f "$collect2name" && \
9898 strings "$collect2name" | grep resolve_lib_name >/dev/null
9899 then
9900 # We have reworked collect2
9901 hardcode_direct_CXX=yes
9902 else
9903 # We have old collect2
9904 hardcode_direct_CXX=unsupported
9905 # It fails to find uninstalled libraries when the uninstalled
9906 # path is not listed in the libpath. Setting hardcode_minus_L
9907 # to unsupported forces relinking
9908 hardcode_minus_L_CXX=yes
9909 hardcode_libdir_flag_spec_CXX='-L$libdir'
9910 hardcode_libdir_separator_CXX=
9911 fi
9912 esac
9913 shared_flag='-shared'
9914 else
9915 # not using gcc
9916 if test "$host_cpu" = ia64; then
9917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9918 # chokes on -Wl,-G. The following line is correct:
9919 shared_flag='-G'
9920 else
9921 if test "$aix_use_runtimelinking" = yes; then
9922 shared_flag='${wl}-G'
9923 else
9924 shared_flag='${wl}-bM:SRE'
9925 fi
9926 fi
9927 fi
9928
9929 # It seems that -bexpall does not export symbols beginning with
9930 # underscore (_), so it is better to generate a list of symbols to export.
9931 always_export_symbols_CXX=yes
9932 if test "$aix_use_runtimelinking" = yes; then
9933 # Warning - without using the other runtime loading flags (-brtl),
9934 # -berok will link without error, but may produce a broken library.
9935 allow_undefined_flag_CXX='-berok'
9936 # Determine the default libpath from the value encoded in an empty executable.
9937 cat >conftest.$ac_ext <<_ACEOF
9938/* confdefs.h. */
9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h. */
9943
9944int
9945main ()
9946{
9947
9948 ;
9949 return 0;
9950}
9951_ACEOF
9952rm -f conftest.$ac_objext conftest$ac_exeext
9953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954 (eval $ac_link) 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_cxx_werror_flag"
9962 || test ! -s conftest.err'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 (eval $ac_try) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974
9975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9976}'`
9977# Check for a 64-bit object if we didn't find anything.
9978if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9979}'`; fi
9980else
9981 echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984fi
9985rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9988
9989 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9990
9991 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9992 else
9993 if test "$host_cpu" = ia64; then
9994 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9995 allow_undefined_flag_CXX="-z nodefs"
9996 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9997 else
9998 # Determine the default libpath from the value encoded in an empty executable.
9999 cat >conftest.$ac_ext <<_ACEOF
10000/* confdefs.h. */
10001_ACEOF
10002cat confdefs.h >>conftest.$ac_ext
10003cat >>conftest.$ac_ext <<_ACEOF
10004/* end confdefs.h. */
10005
10006int
10007main ()
10008{
10009
10010 ;
10011 return 0;
10012}
10013_ACEOF
10014rm -f conftest.$ac_objext conftest$ac_exeext
10015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_cxx_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036
10037aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10038}'`
10039# Check for a 64-bit object if we didn't find anything.
10040if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10041}'`; fi
10042else
10043 echo "$as_me: failed program was:" >&5
10044sed 's/^/| /' conftest.$ac_ext >&5
10045
10046fi
10047rm -f conftest.err conftest.$ac_objext \
10048 conftest$ac_exeext conftest.$ac_ext
10049if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10050
10051 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10052 # Warning - without using the other run time loading flags,
10053 # -berok will link without error, but may produce a broken library.
10054 no_undefined_flag_CXX=' ${wl}-bernotok'
10055 allow_undefined_flag_CXX=' ${wl}-berok'
10056 # -bexpall does not export symbols beginning with underscore (_)
10057 always_export_symbols_CXX=yes
10058 # Exported symbols can be pulled into shared objects from archives
10059 whole_archive_flag_spec_CXX=' '
10060 archive_cmds_need_lc_CXX=yes
10061 # This is similar to how AIX traditionally builds it's shared libraries.
10062 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10063 fi
10064 fi
10065 ;;
10066 chorus*)
10067 case $cc_basename in
10068 *)
10069 # FIXME: insert proper C++ library support
10070 ld_shlibs_CXX=no
10071 ;;
10072 esac
10073 ;;
10074
10075 cygwin* | mingw* | pw32*)
10076 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10077 # as there is no search path for DLLs.
10078 hardcode_libdir_flag_spec_CXX='-L$libdir'
10079 allow_undefined_flag_CXX=unsupported
10080 always_export_symbols_CXX=no
10081 enable_shared_with_static_runtimes_CXX=yes
10082
10083 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10084 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10085 # If the export-symbols file already is a .def file (1st line
10086 # is EXPORTS), use it as is; otherwise, prepend...
10087 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10088 cp $export_symbols $output_objdir/$soname.def;
10089 else
10090 echo EXPORTS > $output_objdir/$soname.def;
10091 cat $export_symbols >> $output_objdir/$soname.def;
10092 fi~
10093 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10094 else
10095 ld_shlibs_CXX=no
10096 fi
10097 ;;
10098
10099 darwin* | rhapsody*)
10100 if test "$GXX" = yes; then
10101 archive_cmds_need_lc_CXX=no
10102 case "$host_os" in
10103 rhapsody* | darwin1.[012])
10104 allow_undefined_flag_CXX='-undefined suppress'
10105 ;;
10106 *) # Darwin 1.3 on
10107 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10108 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10109 else
10110 case ${MACOSX_DEPLOYMENT_TARGET} in
10111 10.[012])
10112 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10113 ;;
10114 10.*)
10115 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10116 ;;
10117 esac
10118 fi
10119 ;;
10120 esac
10121 lt_int_apple_cc_single_mod=no
10122 output_verbose_link_cmd='echo'
10123 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10124 lt_int_apple_cc_single_mod=yes
10125 fi
10126 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10127 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10128 else
10129 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10130 fi
10131 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10132
10133 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10134 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10135 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10136 else
10137 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10138 fi
10139 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10140 hardcode_direct_CXX=no
10141 hardcode_automatic_CXX=yes
10142 hardcode_shlibpath_var_CXX=unsupported
10143 whole_archive_flag_spec_CXX='-all_load $convenience'
10144 link_all_deplibs_CXX=yes
10145 else
10146 ld_shlibs_CXX=no
10147 fi
10148 ;;
10149
10150 dgux*)
10151 case $cc_basename in
10152 ec++)
10153 # FIXME: insert proper C++ library support
10154 ld_shlibs_CXX=no
10155 ;;
10156 ghcx)
10157 # Green Hills C++ Compiler
10158 # FIXME: insert proper C++ library support
10159 ld_shlibs_CXX=no
10160 ;;
10161 *)
10162 # FIXME: insert proper C++ library support
10163 ld_shlibs_CXX=no
10164 ;;
10165 esac
10166 ;;
10167 freebsd12*)
10168 # C++ shared libraries reported to be fairly broken before switch to ELF
10169 ld_shlibs_CXX=no
10170 ;;
10171 freebsd-elf*)
10172 archive_cmds_need_lc_CXX=no
10173 ;;
10174 freebsd* | kfreebsd*-gnu)
10175 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10176 # conventions
10177 ld_shlibs_CXX=yes
10178 ;;
10179 gnu*)
10180 ;;
10181 hpux9*)
10182 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10183 hardcode_libdir_separator_CXX=:
10184 export_dynamic_flag_spec_CXX='${wl}-E'
10185 hardcode_direct_CXX=yes
10186 hardcode_minus_L_CXX=yes # Not in the search PATH,
10187 # but as the default
10188 # location of the library.
10189
10190 case $cc_basename in
10191 CC)
10192 # FIXME: insert proper C++ library support
10193 ld_shlibs_CXX=no
10194 ;;
10195 aCC)
10196 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'
10197 # Commands to make compiler produce verbose output that lists
10198 # what "hidden" libraries, object files and flags are used when
10199 # linking a shared library.
10200 #
10201 # There doesn't appear to be a way to prevent this compiler from
10202 # explicitly linking system object files so we need to strip them
10203 # from the output so that they don't get included in the library
10204 # dependencies.
10205 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 $list'
10206 ;;
10207 *)
10208 if test "$GXX" = yes; then
10209 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'
10210 else
10211 # FIXME: insert proper C++ library support
10212 ld_shlibs_CXX=no
10213 fi
10214 ;;
10215 esac
10216 ;;
10217 hpux10*|hpux11*)
10218 if test $with_gnu_ld = no; then
10219 case "$host_cpu" in
10220 hppa*64*)
10221 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10222 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10223 hardcode_libdir_separator_CXX=:
10224 ;;
10225 ia64*)
10226 hardcode_libdir_flag_spec_CXX='-L$libdir'
10227 ;;
10228 *)
10229 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10230 hardcode_libdir_separator_CXX=:
10231 export_dynamic_flag_spec_CXX='${wl}-E'
10232 ;;
10233 esac
10234 fi
10235 case "$host_cpu" in
10236 hppa*64*)
10237 hardcode_direct_CXX=no
10238 hardcode_shlibpath_var_CXX=no
10239 ;;
10240 ia64*)
10241 hardcode_direct_CXX=no
10242 hardcode_shlibpath_var_CXX=no
10243 hardcode_minus_L_CXX=yes # Not in the search PATH,
10244 # but as the default
10245 # location of the library.
10246 ;;
10247 *)
10248 hardcode_direct_CXX=yes
10249 hardcode_minus_L_CXX=yes # Not in the search PATH,
10250 # but as the default
10251 # location of the library.
10252 ;;
10253 esac
10254
10255 case $cc_basename in
10256 CC)
10257 # FIXME: insert proper C++ library support
10258 ld_shlibs_CXX=no
10259 ;;
10260 aCC)
10261 case "$host_cpu" in
10262 hppa*64*|ia64*)
10263 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10264 ;;
10265 *)
10266 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10267 ;;
10268 esac
10269 # Commands to make compiler produce verbose output that lists
10270 # what "hidden" libraries, object files and flags are used when
10271 # linking a shared library.
10272 #
10273 # There doesn't appear to be a way to prevent this compiler from
10274 # explicitly linking system object files so we need to strip them
10275 # from the output so that they don't get included in the library
10276 # dependencies.
10277 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 $list'
10278 ;;
10279 *)
10280 if test "$GXX" = yes; then
10281 if test $with_gnu_ld = no; then
10282 case "$host_cpu" in
10283 ia64*|hppa*64*)
10284 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10285 ;;
10286 *)
10287 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'
10288 ;;
10289 esac
10290 fi
10291 else
10292 # FIXME: insert proper C++ library support
10293 ld_shlibs_CXX=no
10294 fi
10295 ;;
10296 esac
10297 ;;
10298 irix5* | irix6*)
10299 case $cc_basename in
10300 CC)
10301 # SGI C++
10302 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10303
10304 # Archives containing C++ object files must be created using
10305 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10306 # necessary to make sure instantiated templates are included
10307 # in the archive.
10308 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10309 ;;
10310 *)
10311 if test "$GXX" = yes; then
10312 if test "$with_gnu_ld" = no; then
10313 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10314 else
10315 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10316 fi
10317 fi
10318 link_all_deplibs_CXX=yes
10319 ;;
10320 esac
10321 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10322 hardcode_libdir_separator_CXX=:
10323 ;;
10324 linux*)
10325 case $cc_basename in
10326 KCC)
10327 # Kuck and Associates, Inc. (KAI) C++ Compiler
10328
10329 # KCC will only create a shared library if the output file
10330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10331 # to its proper name (with version) after linking.
10332 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'
10333 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'
10334 # Commands to make compiler produce verbose output that lists
10335 # what "hidden" libraries, object files and flags are used when
10336 # linking a shared library.
10337 #
10338 # There doesn't appear to be a way to prevent this compiler from
10339 # explicitly linking system object files so we need to strip them
10340 # from the output so that they don't get included in the library
10341 # dependencies.
10342 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 $list'
10343
10344 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10346
10347 # Archives containing C++ object files must be created using
10348 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10349 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10350 ;;
10351 icpc)
10352 # Intel C++
10353 with_gnu_ld=yes
10354 archive_cmds_need_lc_CXX=no
10355 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10356 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'
10357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10358 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10359 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10360 ;;
10361 cxx)
10362 # Compaq C++
10363 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10364 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'
10365
10366 runpath_var=LD_RUN_PATH
10367 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10368 hardcode_libdir_separator_CXX=:
10369
10370 # Commands to make compiler produce verbose output that lists
10371 # what "hidden" libraries, object files and flags are used when
10372 # linking a shared library.
10373 #
10374 # There doesn't appear to be a way to prevent this compiler from
10375 # explicitly linking system object files so we need to strip them
10376 # from the output so that they don't get included in the library
10377 # dependencies.
10378 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10379 ;;
10380 esac
10381 ;;
10382 lynxos*)
10383 # FIXME: insert proper C++ library support
10384 ld_shlibs_CXX=no
10385 ;;
10386 m88k*)
10387 # FIXME: insert proper C++ library support
10388 ld_shlibs_CXX=no
10389 ;;
10390 mvs*)
10391 case $cc_basename in
10392 cxx)
10393 # FIXME: insert proper C++ library support
10394 ld_shlibs_CXX=no
10395 ;;
10396 *)
10397 # FIXME: insert proper C++ library support
10398 ld_shlibs_CXX=no
10399 ;;
10400 esac
10401 ;;
10402 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10404 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10405 wlarc=
10406 hardcode_libdir_flag_spec_CXX='-R$libdir'
10407 hardcode_direct_CXX=yes
10408 hardcode_shlibpath_var_CXX=no
10409 fi
10410 # Workaround some broken pre-1.5 toolchains
10411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10412 ;;
10413 osf3*)
10414 case $cc_basename in
10415 KCC)
10416 # Kuck and Associates, Inc. (KAI) C++ Compiler
10417
10418 # KCC will only create a shared library if the output file
10419 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10420 # to its proper name (with version) after linking.
10421 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'
10422
10423 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10424 hardcode_libdir_separator_CXX=:
10425
10426 # Archives containing C++ object files must be created using
10427 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10428 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10429
10430 ;;
10431 RCC)
10432 # Rational C++ 2.4.1
10433 # FIXME: insert proper C++ library support
10434 ld_shlibs_CXX=no
10435 ;;
10436 cxx)
10437 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10438 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10439
10440 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10441 hardcode_libdir_separator_CXX=:
10442
10443 # Commands to make compiler produce verbose output that lists
10444 # what "hidden" libraries, object files and flags are used when
10445 # linking a shared library.
10446 #
10447 # There doesn't appear to be a way to prevent this compiler from
10448 # explicitly linking system object files so we need to strip them
10449 # from the output so that they don't get included in the library
10450 # dependencies.
10451 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10452 ;;
10453 *)
10454 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10455 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10456 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10457
10458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10459 hardcode_libdir_separator_CXX=:
10460
10461 # Commands to make compiler produce verbose output that lists
10462 # what "hidden" libraries, object files and flags are used when
10463 # linking a shared library.
10464 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10465
10466 else
10467 # FIXME: insert proper C++ library support
10468 ld_shlibs_CXX=no
10469 fi
10470 ;;
10471 esac
10472 ;;
10473 osf4* | osf5*)
10474 case $cc_basename in
10475 KCC)
10476 # Kuck and Associates, Inc. (KAI) C++ Compiler
10477
10478 # KCC will only create a shared library if the output file
10479 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10480 # to its proper name (with version) after linking.
10481 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'
10482
10483 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10484 hardcode_libdir_separator_CXX=:
10485
10486 # Archives containing C++ object files must be created using
10487 # the KAI C++ compiler.
10488 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10489 ;;
10490 RCC)
10491 # Rational C++ 2.4.1
10492 # FIXME: insert proper C++ library support
10493 ld_shlibs_CXX=no
10494 ;;
10495 cxx)
10496 allow_undefined_flag_CXX=' -expect_unresolved \*'
10497 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10498 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10499 echo "-hidden">> $lib.exp~
10500 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10501 $rm $lib.exp'
10502
10503 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10504 hardcode_libdir_separator_CXX=:
10505
10506 # Commands to make compiler produce verbose output that lists
10507 # what "hidden" libraries, object files and flags are used when
10508 # linking a shared library.
10509 #
10510 # There doesn't appear to be a way to prevent this compiler from
10511 # explicitly linking system object files so we need to strip them
10512 # from the output so that they don't get included in the library
10513 # dependencies.
10514 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10515 ;;
10516 *)
10517 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10518 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10519 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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10520
10521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10522 hardcode_libdir_separator_CXX=:
10523
10524 # Commands to make compiler produce verbose output that lists
10525 # what "hidden" libraries, object files and flags are used when
10526 # linking a shared library.
10527 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10528
10529 else
10530 # FIXME: insert proper C++ library support
10531 ld_shlibs_CXX=no
10532 fi
10533 ;;
10534 esac
10535 ;;
10536 psos*)
10537 # FIXME: insert proper C++ library support
10538 ld_shlibs_CXX=no
10539 ;;
10540 sco*)
10541 archive_cmds_need_lc_CXX=no
10542 case $cc_basename in
10543 CC)
10544 # FIXME: insert proper C++ library support
10545 ld_shlibs_CXX=no
10546 ;;
10547 *)
10548 # FIXME: insert proper C++ library support
10549 ld_shlibs_CXX=no
10550 ;;
10551 esac
10552 ;;
10553 sunos4*)
10554 case $cc_basename in
10555 CC)
10556 # Sun C++ 4.x
10557 # FIXME: insert proper C++ library support
10558 ld_shlibs_CXX=no
10559 ;;
10560 lcc)
10561 # Lucid
10562 # FIXME: insert proper C++ library support
10563 ld_shlibs_CXX=no
10564 ;;
10565 *)
10566 # FIXME: insert proper C++ library support
10567 ld_shlibs_CXX=no
10568 ;;
10569 esac
10570 ;;
10571 solaris*)
10572 case $cc_basename in
10573 CC)
10574 # Sun C++ 4.2, 5.x and Centerline C++
10575 no_undefined_flag_CXX=' -zdefs'
10576 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10577 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10578 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10579
10580 hardcode_libdir_flag_spec_CXX='-R$libdir'
10581 hardcode_shlibpath_var_CXX=no
10582 case $host_os in
10583 solaris2.0-5 | solaris2.0-5.*) ;;
10584 *)
10585 # The C++ compiler is used as linker so we must use $wl
10586 # flag to pass the commands to the underlying system
10587 # linker.
10588 # Supported since Solaris 2.6 (maybe 2.5.1?)
10589 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10590 ;;
10591 esac
10592 link_all_deplibs_CXX=yes
10593
10594 # Commands to make compiler produce verbose output that lists
10595 # what "hidden" libraries, object files and flags are used when
10596 # linking a shared library.
10597 #
10598 # There doesn't appear to be a way to prevent this compiler from
10599 # explicitly linking system object files so we need to strip them
10600 # from the output so that they don't get included in the library
10601 # dependencies.
10602 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10603
10604 # Archives containing C++ object files must be created using
10605 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10606 # necessary to make sure instantiated templates are included
10607 # in the archive.
10608 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10609 ;;
10610 gcx)
10611 # Green Hills C++ Compiler
10612 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10613
10614 # The C++ compiler must be used to create the archive.
10615 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10616 ;;
10617 *)
10618 # GNU C++ compiler with Solaris linker
10619 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10620 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10621 if $CC --version | grep -v '^2\.7' > /dev/null; then
10622 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10623 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10624 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10625
10626 # Commands to make compiler produce verbose output that lists
10627 # what "hidden" libraries, object files and flags are used when
10628 # linking a shared library.
10629 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10630 else
10631 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10632 # platform.
10633 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10634 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10635 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10636
10637 # Commands to make compiler produce verbose output that lists
10638 # what "hidden" libraries, object files and flags are used when
10639 # linking a shared library.
10640 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10641 fi
10642
10643 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10644 fi
10645 ;;
10646 esac
10647 ;;
10648 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10649 archive_cmds_need_lc_CXX=no
10650 ;;
10651 tandem*)
10652 case $cc_basename in
10653 NCC)
10654 # NonStop-UX NCC 3.20
10655 # FIXME: insert proper C++ library support
10656 ld_shlibs_CXX=no
10657 ;;
10658 *)
10659 # FIXME: insert proper C++ library support
10660 ld_shlibs_CXX=no
10661 ;;
10662 esac
10663 ;;
10664 vxworks*)
10665 # FIXME: insert proper C++ library support
10666 ld_shlibs_CXX=no
10667 ;;
10668 *)
10669 # FIXME: insert proper C++ library support
10670 ld_shlibs_CXX=no
10671 ;;
10672esac
10673echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10674echo "${ECHO_T}$ld_shlibs_CXX" >&6
10675test "$ld_shlibs_CXX" = no && can_build_shared=no
10676
10677GCC_CXX="$GXX"
10678LD_CXX="$LD"
10679
10680
10681cat > conftest.$ac_ext <<EOF
10682class Foo
10683{
10684public:
10685 Foo (void) { a = 0; }
10686private:
10687 int a;
10688};
10689EOF
10690
10691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10692 (eval $ac_compile) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; then
10696 # Parse the compiler output and extract the necessary
10697 # objects, libraries and library flags.
10698
10699 # Sentinel used to keep track of whether or not we are before
10700 # the conftest object file.
10701 pre_test_object_deps_done=no
10702
10703 # The `*' in the case matches for architectures that use `case' in
10704 # $output_verbose_cmd can trigger glob expansion during the loop
10705 # eval without this substitution.
10706 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10707
10708 for p in `eval $output_verbose_link_cmd`; do
10709 case $p in
10710
10711 -L* | -R* | -l*)
10712 # Some compilers place space between "-{L,R}" and the path.
10713 # Remove the space.
10714 if test $p = "-L" \
10715 || test $p = "-R"; then
10716 prev=$p
10717 continue
10718 else
10719 prev=
10720 fi
10721
10722 if test "$pre_test_object_deps_done" = no; then
10723 case $p in
10724 -L* | -R*)
10725 # Internal compiler library paths should come after those
10726 # provided the user. The postdeps already come after the
10727 # user supplied libs so there is no need to process them.
10728 if test -z "$compiler_lib_search_path_CXX"; then
10729 compiler_lib_search_path_CXX="${prev}${p}"
10730 else
10731 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10732 fi
10733 ;;
10734 # The "-l" case would never come before the object being
10735 # linked, so don't bother handling this case.
10736 esac
10737 else
10738 if test -z "$postdeps_CXX"; then
10739 postdeps_CXX="${prev}${p}"
10740 else
10741 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10742 fi
10743 fi
10744 ;;
10745
10746 *.$objext)
10747 # This assumes that the test object file only shows up
10748 # once in the compiler output.
10749 if test "$p" = "conftest.$objext"; then
10750 pre_test_object_deps_done=yes
10751 continue
10752 fi
10753
10754 if test "$pre_test_object_deps_done" = no; then
10755 if test -z "$predep_objects_CXX"; then
10756 predep_objects_CXX="$p"
10757 else
10758 predep_objects_CXX="$predep_objects_CXX $p"
10759 fi
10760 else
10761 if test -z "$postdep_objects_CXX"; then
10762 postdep_objects_CXX="$p"
10763 else
10764 postdep_objects_CXX="$postdep_objects_CXX $p"
10765 fi
10766 fi
10767 ;;
10768
10769 *) ;; # Ignore the rest.
10770
10771 esac
10772 done
10773
10774 # Clean up.
10775 rm -f a.out a.exe
10776else
10777 echo "libtool.m4: error: problem compiling CXX test program"
10778fi
10779
10780$rm -f confest.$objext
10781
10782case " $postdeps_CXX " in
10783*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10784esac
10785
10786lt_prog_compiler_wl_CXX=
10787lt_prog_compiler_pic_CXX=
10788lt_prog_compiler_static_CXX=
10789
10790echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10791echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10792
10793 # C++ specific cases for pic, static, wl, etc.
10794 if test "$GXX" = yes; then
10795 lt_prog_compiler_wl_CXX='-Wl,'
10796 lt_prog_compiler_static_CXX='-static'
10797
10798 case $host_os in
10799 aix*)
10800 # All AIX code is PIC.
10801 if test "$host_cpu" = ia64; then
10802 # AIX 5 now supports IA64 processor
10803 lt_prog_compiler_static_CXX='-Bstatic'
10804 fi
10805 ;;
10806 amigaos*)
10807 # FIXME: we need at least 68020 code to build shared libraries, but
10808 # adding the `-m68020' flag to GCC prevents building anything better,
10809 # like `-m68040'.
10810 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10811 ;;
10812 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10813 # PIC is the default for these OSes.
10814 ;;
10815 mingw* | os2* | pw32*)
10816 # This hack is so that the source file can tell whether it is being
10817 # built for inclusion in a dll (and should export symbols for example).
10818 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10819 ;;
10820 darwin* | rhapsody*)
10821 # PIC is the default on this platform
10822 # Common symbols not allowed in MH_DYLIB files
10823 lt_prog_compiler_pic_CXX='-fno-common'
10824 ;;
10825 *djgpp*)
10826 # DJGPP does not support shared libraries at all
10827 lt_prog_compiler_pic_CXX=
10828 ;;
10829 sysv4*MP*)
10830 if test -d /usr/nec; then
10831 lt_prog_compiler_pic_CXX=-Kconform_pic
10832 fi
10833 ;;
10834 hpux*)
10835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10836 # not for PA HP-UX.
10837 case "$host_cpu" in
10838 hppa*64*|ia64*)
10839 ;;
10840 *)
10841 lt_prog_compiler_pic_CXX='-fPIC'
10842 ;;
10843 esac
10844 ;;
10845 *)
10846 lt_prog_compiler_pic_CXX='-fPIC'
10847 ;;
10848 esac
10849 else
10850 case $host_os in
10851 aix4* | aix5*)
10852 # All AIX code is PIC.
10853 if test "$host_cpu" = ia64; then
10854 # AIX 5 now supports IA64 processor
10855 lt_prog_compiler_static_CXX='-Bstatic'
10856 else
10857 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10858 fi
10859 ;;
10860 chorus*)
10861 case $cc_basename in
10862 cxch68)
10863 # Green Hills C++ Compiler
10864 # _LT_AC_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"
10865 ;;
10866 esac
10867 ;;
10868 dgux*)
10869 case $cc_basename in
10870 ec++)
10871 lt_prog_compiler_pic_CXX='-KPIC'
10872 ;;
10873 ghcx)
10874 # Green Hills C++ Compiler
10875 lt_prog_compiler_pic_CXX='-pic'
10876 ;;
10877 *)
10878 ;;
10879 esac
10880 ;;
10881 freebsd* | kfreebsd*-gnu)
10882 # FreeBSD uses GNU C++
10883 ;;
10884 hpux9* | hpux10* | hpux11*)
10885 case $cc_basename in
10886 CC)
10887 lt_prog_compiler_wl_CXX='-Wl,'
10888 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10889 if test "$host_cpu" != ia64; then
10890 lt_prog_compiler_pic_CXX='+Z'
10891 fi
10892 ;;
10893 aCC)
10894 lt_prog_compiler_wl_CXX='-Wl,'
10895 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10896 case "$host_cpu" in
10897 hppa*64*|ia64*)
10898 # +Z the default
10899 ;;
10900 *)
10901 lt_prog_compiler_pic_CXX='+Z'
10902 ;;
10903 esac
10904 ;;
10905 *)
10906 ;;
10907 esac
10908 ;;
10909 irix5* | irix6* | nonstopux*)
10910 case $cc_basename in
10911 CC)
10912 lt_prog_compiler_wl_CXX='-Wl,'
10913 lt_prog_compiler_static_CXX='-non_shared'
10914 # CC pic flag -KPIC is the default.
10915 ;;
10916 *)
10917 ;;
10918 esac
10919 ;;
10920 linux*)
10921 case $cc_basename in
10922 KCC)
10923 # KAI C++ Compiler
10924 lt_prog_compiler_wl_CXX='--backend -Wl,'
10925 lt_prog_compiler_pic_CXX='-fPIC'
10926 ;;
10927 icpc)
10928 # Intel C++
10929 lt_prog_compiler_wl_CXX='-Wl,'
10930 lt_prog_compiler_pic_CXX='-KPIC'
10931 lt_prog_compiler_static_CXX='-static'
10932 ;;
10933 cxx)
10934 # Compaq C++
10935 # Make sure the PIC flag is empty. It appears that all Alpha
10936 # Linux and Compaq Tru64 Unix objects are PIC.
10937 lt_prog_compiler_pic_CXX=
10938 lt_prog_compiler_static_CXX='-non_shared'
10939 ;;
10940 *)
10941 ;;
10942 esac
10943 ;;
10944 lynxos*)
10945 ;;
10946 m88k*)
10947 ;;
10948 mvs*)
10949 case $cc_basename in
10950 cxx)
10951 lt_prog_compiler_pic_CXX='-W c,exportall'
10952 ;;
10953 *)
10954 ;;
10955 esac
10956 ;;
10957 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10958 ;;
10959 osf3* | osf4* | osf5*)
10960 case $cc_basename in
10961 KCC)
10962 lt_prog_compiler_wl_CXX='--backend -Wl,'
10963 ;;
10964 RCC)
10965 # Rational C++ 2.4.1
10966 lt_prog_compiler_pic_CXX='-pic'
10967 ;;
10968 cxx)
10969 # Digital/Compaq C++
10970 lt_prog_compiler_wl_CXX='-Wl,'
10971 # Make sure the PIC flag is empty. It appears that all Alpha
10972 # Linux and Compaq Tru64 Unix objects are PIC.
10973 lt_prog_compiler_pic_CXX=
10974 lt_prog_compiler_static_CXX='-non_shared'
10975 ;;
10976 *)
10977 ;;
10978 esac
10979 ;;
10980 psos*)
10981 ;;
10982 sco*)
10983 case $cc_basename in
10984 CC)
10985 lt_prog_compiler_pic_CXX='-fPIC'
10986 ;;
10987 *)
10988 ;;
10989 esac
10990 ;;
10991 solaris*)
10992 case $cc_basename in
10993 CC)
10994 # Sun C++ 4.2, 5.x and Centerline C++
10995 lt_prog_compiler_pic_CXX='-KPIC'
10996 lt_prog_compiler_static_CXX='-Bstatic'
10997 lt_prog_compiler_wl_CXX='-Qoption ld '
10998 ;;
10999 gcx)
11000 # Green Hills C++ Compiler
11001 lt_prog_compiler_pic_CXX='-PIC'
11002 ;;
11003 *)
11004 ;;
11005 esac
11006 ;;
11007 sunos4*)
11008 case $cc_basename in
11009 CC)
11010 # Sun C++ 4.x
11011 lt_prog_compiler_pic_CXX='-pic'
11012 lt_prog_compiler_static_CXX='-Bstatic'
11013 ;;
11014 lcc)
11015 # Lucid
11016 lt_prog_compiler_pic_CXX='-pic'
11017 ;;
11018 *)
11019 ;;
11020 esac
11021 ;;
11022 tandem*)
11023 case $cc_basename in
11024 NCC)
11025 # NonStop-UX NCC 3.20
11026 lt_prog_compiler_pic_CXX='-KPIC'
11027 ;;
11028 *)
11029 ;;
11030 esac
11031 ;;
11032 unixware*)
11033 ;;
11034 vxworks*)
11035 ;;
11036 *)
11037 lt_prog_compiler_can_build_shared_CXX=no
11038 ;;
11039 esac
11040 fi
11041
11042echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11043echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11044
11045#
11046# Check to make sure the PIC flag actually works.
11047#
11048if test -n "$lt_prog_compiler_pic_CXX"; then
11049
11050echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11051echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11052if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054else
11055 lt_prog_compiler_pic_works_CXX=no
11056 ac_outfile=conftest.$ac_objext
11057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11058 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11059 # Insert the option either (1) after the last *FLAGS variable, or
11060 # (2) before a word containing "conftest.", or (3) at the end.
11061 # Note that $ac_compile itself does not contain backslashes and begins
11062 # with a dollar sign (not a hyphen), so the echo should work correctly.
11063 # The option is referenced via a variable to avoid confusing sed.
11064 lt_compile=`echo "$ac_compile" | $SED \
11065 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11067 -e 's:$: $lt_compiler_flag:'`
11068 (eval echo "\"\$as_me:11068: $lt_compile\"" >&5)
11069 (eval "$lt_compile" 2>conftest.err)
11070 ac_status=$?
11071 cat conftest.err >&5
11072 echo "$as_me:11072: \$? = $ac_status" >&5
11073 if (exit $ac_status) && test -s "$ac_outfile"; then
11074 # The compiler can only warn and ignore the option if not recognized
11075 # So say no if there are warnings
11076 if test ! -s conftest.err; then
11077 lt_prog_compiler_pic_works_CXX=yes
11078 fi
11079 fi
11080 $rm conftest*
11081
11082fi
11083echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11084echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11085
11086if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11087 case $lt_prog_compiler_pic_CXX in
11088 "" | " "*) ;;
11089 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11090 esac
11091else
11092 lt_prog_compiler_pic_CXX=
11093 lt_prog_compiler_can_build_shared_CXX=no
11094fi
11095
11096fi
11097case "$host_os" in
11098 # For platforms which do not support PIC, -DPIC is meaningless:
11099 *djgpp*)
11100 lt_prog_compiler_pic_CXX=
11101 ;;
11102 *)
11103 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11104 ;;
11105esac
11106
11107echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11108echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11109if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112 lt_cv_prog_compiler_c_o_CXX=no
11113 $rm -r conftest 2>/dev/null
11114 mkdir conftest
11115 cd conftest
11116 mkdir out
11117 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11118
11119 lt_compiler_flag="-o out/conftest2.$ac_objext"
11120 # Insert the option either (1) after the last *FLAGS variable, or
11121 # (2) before a word containing "conftest.", or (3) at the end.
11122 # Note that $ac_compile itself does not contain backslashes and begins
11123 # with a dollar sign (not a hyphen), so the echo should work correctly.
11124 lt_compile=`echo "$ac_compile" | $SED \
11125 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11127 -e 's:$: $lt_compiler_flag:'`
11128 (eval echo "\"\$as_me:11128: $lt_compile\"" >&5)
11129 (eval "$lt_compile" 2>out/conftest.err)
11130 ac_status=$?
11131 cat out/conftest.err >&5
11132 echo "$as_me:11132: \$? = $ac_status" >&5
11133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11134 then
11135 # The compiler can only warn and ignore the option if not recognized
11136 # So say no if there are warnings
11137 if test ! -s out/conftest.err; then
11138 lt_cv_prog_compiler_c_o_CXX=yes
11139 fi
11140 fi
11141 chmod u+w .
11142 $rm conftest*
11143 # SGI C++ compiler will create directory out/ii_files/ for
11144 # template instantiation
11145 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11146 $rm out/* && rmdir out
11147 cd ..
11148 rmdir conftest
11149 $rm conftest*
11150
11151fi
11152echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11153echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11154
11155
11156hard_links="nottested"
11157if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11158 # do not overwrite the value of need_locks provided by the user
11159 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11160echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11161 hard_links=yes
11162 $rm conftest*
11163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11164 touch conftest.a
11165 ln conftest.a conftest.b 2>&5 || hard_links=no
11166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11167 echo "$as_me:$LINENO: result: $hard_links" >&5
11168echo "${ECHO_T}$hard_links" >&6
11169 if test "$hard_links" = no; then
11170 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11171echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11172 need_locks=warn
11173 fi
11174else
11175 need_locks=no
11176fi
11177
11178echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11179echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11180
11181 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11182 case $host_os in
11183 aix4* | aix5*)
11184 # If we're using GNU nm, then we don't want the "-C" option.
11185 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11186 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11187 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'
11188 else
11189 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'
11190 fi
11191 ;;
11192 pw32*)
11193 export_symbols_cmds_CXX="$ltdll_cmds"
11194 ;;
11195 cygwin* | mingw*)
11196 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11197 ;;
11198 linux*)
11199 link_all_deplibs_CXX=no
11200 ;;
11201 *)
11202 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11203 ;;
11204 esac
11205
11206echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11207echo "${ECHO_T}$ld_shlibs_CXX" >&6
11208test "$ld_shlibs_CXX" = no && can_build_shared=no
11209
11210variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11211if test "$GCC" = yes; then
11212 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11213fi
11214
11215#
11216# Do we need to explicitly link libc?
11217#
11218case "x$archive_cmds_need_lc_CXX" in
11219x|xyes)
11220 # Assume -lc should be added
11221 archive_cmds_need_lc_CXX=yes
11222
11223 if test "$enable_shared" = yes && test "$GCC" = yes; then
11224 case $archive_cmds_CXX in
11225 *'~'*)
11226 # FIXME: we may have to deal with multi-command sequences.
11227 ;;
11228 '$CC '*)
11229 # Test whether the compiler implicitly links with -lc since on some
11230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11231 # to ld, don't add -lc before -lgcc.
11232 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11233echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11234 $rm conftest*
11235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11236
11237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11238 (eval $ac_compile) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } 2>conftest.err; then
11242 soname=conftest
11243 lib=conftest
11244 libobjs=conftest.$ac_objext
11245 deplibs=
11246 wl=$lt_prog_compiler_wl_CXX
11247 compiler_flags=-v
11248 linker_flags=-v
11249 verstring=
11250 output_objdir=.
11251 libname=conftest
11252 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11253 allow_undefined_flag_CXX=
11254 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11255 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }
11259 then
11260 archive_cmds_need_lc_CXX=no
11261 else
11262 archive_cmds_need_lc_CXX=yes
11263 fi
11264 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11265 else
11266 cat conftest.err 1>&5
11267 fi
11268 $rm conftest*
11269 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11270echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11271 ;;
11272 esac
11273 fi
11274 ;;
11275esac
11276
11277echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11278echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11279library_names_spec=
11280libname_spec='lib$name'
11281soname_spec=
11282shrext_cmds=".so"
11283postinstall_cmds=
11284postuninstall_cmds=
11285finish_cmds=
11286finish_eval=
11287shlibpath_var=
11288shlibpath_overrides_runpath=unknown
11289version_type=none
11290dynamic_linker="$host_os ld.so"
11291sys_lib_dlsearch_path_spec="/lib /usr/lib"
11292if test "$GCC" = yes; then
11293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11294 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11295 # if the path contains ";" then we assume it to be the separator
11296 # otherwise default to the standard path separator (i.e. ":") - it is
11297 # assumed that no part of a normal pathname contains ";" but that should
11298 # okay in the real world where ";" in dirpaths is itself problematic.
11299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11300 else
11301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11302 fi
11303else
11304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11305fi
11306need_lib_prefix=unknown
11307hardcode_into_libs=no
11308
11309# when you set need_version to no, make sure it does not cause -set_version
11310# flags to be left without arguments
11311need_version=unknown
11312
11313case $host_os in
11314aix3*)
11315 version_type=linux
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11317 shlibpath_var=LIBPATH
11318
11319 # AIX 3 has no versioning support, so we append a major version to the name.
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 ;;
11322
11323aix4* | aix5*)
11324 version_type=linux
11325 need_lib_prefix=no
11326 need_version=no
11327 hardcode_into_libs=yes
11328 if test "$host_cpu" = ia64; then
11329 # AIX 5 supports IA64
11330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 else
11333 # With GCC up to 2.95.x, collect2 would create an import file
11334 # for dependence libraries. The import file would start with
11335 # the line `#! .'. This would cause the generated library to
11336 # depend on `.', always an invalid library. This was fixed in
11337 # development snapshots of GCC prior to 3.0.
11338 case $host_os in
11339 aix4 | aix4.[01] | aix4.[01].*)
11340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11341 echo ' yes '
11342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11343 :
11344 else
11345 can_build_shared=no
11346 fi
11347 ;;
11348 esac
11349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11350 # soname into executable. Probably we can add versioning support to
11351 # collect2, so additional links can be useful in future.
11352 if test "$aix_use_runtimelinking" = yes; then
11353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11354 # instead of lib<name>.a to let people know that these are not
11355 # typical AIX shared libraries.
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 else
11358 # We preserve .a as extension for shared libraries through AIX4.2
11359 # and later when we are not doing run time linking.
11360 library_names_spec='${libname}${release}.a $libname.a'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 fi
11363 shlibpath_var=LIBPATH
11364 fi
11365 ;;
11366
11367amigaos*)
11368 library_names_spec='$libname.ixlibrary $libname.a'
11369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11370 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'
11371 ;;
11372
11373beos*)
11374 library_names_spec='${libname}${shared_ext}'
11375 dynamic_linker="$host_os ld.so"
11376 shlibpath_var=LIBRARY_PATH
11377 ;;
11378
11379bsdi4*)
11380 version_type=linux
11381 need_version=no
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11388 # the default ld.so.conf also contains /usr/contrib/lib and
11389 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11390 # libtool to hard-code these into programs
11391 ;;
11392
11393cygwin* | mingw* | pw32*)
11394 version_type=windows
11395 shrext_cmds=".dll"
11396 need_version=no
11397 need_lib_prefix=no
11398
11399 case $GCC,$host_os in
11400 yes,cygwin* | yes,mingw* | yes,pw32*)
11401 library_names_spec='$libname.dll.a'
11402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11403 postinstall_cmds='base_file=`basename \${file}`~
11404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11405 dldir=$destdir/`dirname \$dlpath`~
11406 test -d \$dldir || mkdir -p \$dldir~
11407 $install_prog $dir/$dlname \$dldir/$dlname'
11408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11409 dlpath=$dir/\$dldll~
11410 $rm \$dlpath'
11411 shlibpath_overrides_runpath=yes
11412
11413 case $host_os in
11414 cygwin*)
11415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11418 ;;
11419 mingw*)
11420 # MinGW DLLs use traditional 'lib' prefix
11421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11423 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11424 # It is most probably a Windows format PATH printed by
11425 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11426 # path with ; separators, and with drive letters. We can handle the
11427 # drive letters (cygwin fileutils understands them), so leave them,
11428 # especially as we might pass files found there to a mingw objdump,
11429 # which wouldn't understand a cygwinified path. Ahh.
11430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11431 else
11432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11433 fi
11434 ;;
11435 pw32*)
11436 # pw32 DLLs use 'pw' prefix rather than 'lib'
11437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11438 ;;
11439 esac
11440 ;;
11441
11442 *)
11443 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11444 ;;
11445 esac
11446 dynamic_linker='Win32 ld.exe'
11447 # FIXME: first we should search . and the directory the executable is in
11448 shlibpath_var=PATH
11449 ;;
11450
11451darwin* | rhapsody*)
11452 dynamic_linker="$host_os dyld"
11453 version_type=darwin
11454 need_lib_prefix=no
11455 need_version=no
11456 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11457 soname_spec='${libname}${release}${major}$shared_ext'
11458 shlibpath_overrides_runpath=yes
11459 shlibpath_var=DYLD_LIBRARY_PATH
11460 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11461 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11462 if test "$GCC" = yes; then
11463 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11464 else
11465 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11466 fi
11467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11468 ;;
11469
11470dgux*)
11471 version_type=linux
11472 need_lib_prefix=no
11473 need_version=no
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 ;;
11478
11479freebsd1*)
11480 dynamic_linker=no
11481 ;;
11482
11483kfreebsd*-gnu)
11484 version_type=linux
11485 need_lib_prefix=no
11486 need_version=no
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 shlibpath_overrides_runpath=no
11491 hardcode_into_libs=yes
11492 dynamic_linker='GNU ld.so'
11493 ;;
11494
11495freebsd*)
11496 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11497 version_type=freebsd-$objformat
11498 case $version_type in
11499 freebsd-elf*)
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11501 need_version=no
11502 need_lib_prefix=no
11503 ;;
11504 freebsd-*)
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11506 need_version=yes
11507 ;;
11508 esac
11509 shlibpath_var=LD_LIBRARY_PATH
11510 case $host_os in
11511 freebsd2*)
11512 shlibpath_overrides_runpath=yes
11513 ;;
11514 freebsd3.01* | freebsdelf3.01*)
11515 shlibpath_overrides_runpath=yes
11516 hardcode_into_libs=yes
11517 ;;
11518 *) # from 3.2 on
11519 shlibpath_overrides_runpath=no
11520 hardcode_into_libs=yes
11521 ;;
11522 esac
11523 ;;
11524
11525gnu*)
11526 version_type=linux
11527 need_lib_prefix=no
11528 need_version=no
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 hardcode_into_libs=yes
11533 ;;
11534
11535hpux9* | hpux10* | hpux11*)
11536 # Give a soname corresponding to the major version so that dld.sl refuses to
11537 # link against other versions.
11538 version_type=sunos
11539 need_lib_prefix=no
11540 need_version=no
11541 case "$host_cpu" in
11542 ia64*)
11543 shrext_cmds='.so'
11544 hardcode_into_libs=yes
11545 dynamic_linker="$host_os dld.so"
11546 shlibpath_var=LD_LIBRARY_PATH
11547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 if test "X$HPUX_IA64_MODE" = X32; then
11551 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11552 else
11553 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11554 fi
11555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11556 ;;
11557 hppa*64*)
11558 shrext_cmds='.sl'
11559 hardcode_into_libs=yes
11560 dynamic_linker="$host_os dld.sl"
11561 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11567 ;;
11568 *)
11569 shrext_cmds='.sl'
11570 dynamic_linker="$host_os dld.sl"
11571 shlibpath_var=SHLIB_PATH
11572 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 ;;
11576 esac
11577 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11578 postinstall_cmds='chmod 555 $lib'
11579 ;;
11580
11581irix5* | irix6* | nonstopux*)
11582 case $host_os in
11583 nonstopux*) version_type=nonstopux ;;
11584 *)
11585 if test "$lt_cv_prog_gnu_ld" = yes; then
11586 version_type=linux
11587 else
11588 version_type=irix
11589 fi ;;
11590 esac
11591 need_lib_prefix=no
11592 need_version=no
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11595 case $host_os in
11596 irix5* | nonstopux*)
11597 libsuff= shlibsuff=
11598 ;;
11599 *)
11600 case $LD in # libtool.m4 will add one of these switches to LD
11601 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11602 libsuff= shlibsuff= libmagic=32-bit;;
11603 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11604 libsuff=32 shlibsuff=N32 libmagic=N32;;
11605 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11606 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11607 *) libsuff= shlibsuff= libmagic=never-match;;
11608 esac
11609 ;;
11610 esac
11611 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11612 shlibpath_overrides_runpath=no
11613 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11614 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11615 hardcode_into_libs=yes
11616 ;;
11617
11618# No shared lib support for Linux oldld, aout, or coff.
11619linux*oldld* | linux*aout* | linux*coff*)
11620 dynamic_linker=no
11621 ;;
11622
11623# This must be Linux ELF.
11624linux*)
11625 version_type=linux
11626 need_lib_prefix=no
11627 need_version=no
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=no
11633 # This implies no fast_install, which is unacceptable.
11634 # Some rework will be needed to allow for fast_install
11635 # before this can be enabled.
11636 hardcode_into_libs=yes
11637
11638 # Append ld.so.conf contents to the search path
11639 if test -f /etc/ld.so.conf; then
11640 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11642 fi
11643
11644 # We used to test for /lib/ld.so.1 and disable shared libraries on
11645 # powerpc, because MkLinux only supported shared libraries with the
11646 # GNU dynamic linker. Since this was broken with cross compilers,
11647 # most powerpc-linux boxes support dynamic linking these days and
11648 # people can always --disable-shared, the test was removed, and we
11649 # assume the GNU/Linux dynamic linker is in use.
11650 dynamic_linker='GNU/Linux ld.so'
11651 ;;
11652
11653netbsdelf*-gnu)
11654 version_type=linux
11655 need_lib_prefix=no
11656 need_version=no
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=no
11661 hardcode_into_libs=yes
11662 dynamic_linker='NetBSD ld.elf_so'
11663 ;;
11664
11665knetbsd*-gnu)
11666 version_type=linux
11667 need_lib_prefix=no
11668 need_version=no
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=no
11673 hardcode_into_libs=yes
11674 dynamic_linker='GNU ld.so'
11675 ;;
11676
11677netbsd*)
11678 version_type=sunos
11679 need_lib_prefix=no
11680 need_version=no
11681 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11684 dynamic_linker='NetBSD (a.out) ld.so'
11685 else
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11687 soname_spec='${libname}${release}${shared_ext}$major'
11688 dynamic_linker='NetBSD ld.elf_so'
11689 fi
11690 shlibpath_var=LD_LIBRARY_PATH
11691 shlibpath_overrides_runpath=yes
11692 hardcode_into_libs=yes
11693 ;;
11694
11695newsos6)
11696 version_type=linux
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698 shlibpath_var=LD_LIBRARY_PATH
11699 shlibpath_overrides_runpath=yes
11700 ;;
11701
11702nto-qnx*)
11703 version_type=linux
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 ;;
11711
11712openbsd*)
11713 version_type=sunos
11714 need_lib_prefix=no
11715 need_version=yes
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11720 case $host_os in
11721 openbsd2.[89] | openbsd2.[89].*)
11722 shlibpath_overrides_runpath=no
11723 ;;
11724 *)
11725 shlibpath_overrides_runpath=yes
11726 ;;
11727 esac
11728 else
11729 shlibpath_overrides_runpath=yes
11730 fi
11731 ;;
11732
11733os2*)
11734 libname_spec='$name'
11735 shrext_cmds=".dll"
11736 need_lib_prefix=no
11737 library_names_spec='$libname${shared_ext} $libname.a'
11738 dynamic_linker='OS/2 ld.exe'
11739 shlibpath_var=LIBPATH
11740 ;;
11741
11742osf3* | osf4* | osf5*)
11743 version_type=osf
11744 need_lib_prefix=no
11745 need_version=no
11746 soname_spec='${libname}${release}${shared_ext}$major'
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11750 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11751 ;;
11752
11753sco3.2v5*)
11754 version_type=osf
11755 soname_spec='${libname}${release}${shared_ext}$major'
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 ;;
11759
11760solaris*)
11761 version_type=linux
11762 need_lib_prefix=no
11763 need_version=no
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11765 soname_spec='${libname}${release}${shared_ext}$major'
11766 shlibpath_var=LD_LIBRARY_PATH
11767 shlibpath_overrides_runpath=yes
11768 hardcode_into_libs=yes
11769 # ldd complains unless libraries are executable
11770 postinstall_cmds='chmod +x $lib'
11771 ;;
11772
11773sunos4*)
11774 version_type=sunos
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11776 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 shlibpath_overrides_runpath=yes
11779 if test "$with_gnu_ld" = yes; then
11780 need_lib_prefix=no
11781 fi
11782 need_version=yes
11783 ;;
11784
11785sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11786 version_type=linux
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 case $host_vendor in
11791 sni)
11792 shlibpath_overrides_runpath=no
11793 need_lib_prefix=no
11794 export_dynamic_flag_spec='${wl}-Blargedynsym'
11795 runpath_var=LD_RUN_PATH
11796 ;;
11797 siemens)
11798 need_lib_prefix=no
11799 ;;
11800 motorola)
11801 need_lib_prefix=no
11802 need_version=no
11803 shlibpath_overrides_runpath=no
11804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11805 ;;
11806 esac
11807 ;;
11808
11809sysv4*MP*)
11810 if test -d /usr/nec ;then
11811 version_type=linux
11812 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11813 soname_spec='$libname${shared_ext}.$major'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 fi
11816 ;;
11817
11818uts4*)
11819 version_type=linux
11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821 soname_spec='${libname}${release}${shared_ext}$major'
11822 shlibpath_var=LD_LIBRARY_PATH
11823 ;;
11824
11825*)
11826 dynamic_linker=no
11827 ;;
11828esac
11829echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11830echo "${ECHO_T}$dynamic_linker" >&6
11831test "$dynamic_linker" = no && can_build_shared=no
11832
11833echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11834echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11835hardcode_action_CXX=
11836if test -n "$hardcode_libdir_flag_spec_CXX" || \
11837 test -n "$runpath_var CXX" || \
11838 test "X$hardcode_automatic_CXX"="Xyes" ; then
11839
11840 # We can hardcode non-existant directories.
11841 if test "$hardcode_direct_CXX" != no &&
11842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11843 # have to relink, otherwise we might link with an installed library
11844 # when we should be linking with a yet-to-be-installed one
11845 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11846 test "$hardcode_minus_L_CXX" != no; then
11847 # Linking always hardcodes the temporary library directory.
11848 hardcode_action_CXX=relink
11849 else
11850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11851 hardcode_action_CXX=immediate
11852 fi
11853else
11854 # We cannot hardcode anything, or else we can only hardcode existing
11855 # directories.
11856 hardcode_action_CXX=unsupported
11857fi
11858echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11859echo "${ECHO_T}$hardcode_action_CXX" >&6
11860
11861if test "$hardcode_action_CXX" = relink; then
11862 # Fast installation is not supported
11863 enable_fast_install=no
11864elif test "$shlibpath_overrides_runpath" = yes ||
11865 test "$enable_shared" = no; then
11866 # Fast installation is not necessary
11867 enable_fast_install=needless
11868fi
11869
11870striplib=
11871old_striplib=
11872echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11873echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11874if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11875 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11876 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11877 echo "$as_me:$LINENO: result: yes" >&5
11878echo "${ECHO_T}yes" >&6
11879else
11880# FIXME - insert some real tests, host_os isn't really good enough
11881 case $host_os in
11882 darwin*)
11883 if test -n "$STRIP" ; then
11884 striplib="$STRIP -x"
11885 echo "$as_me:$LINENO: result: yes" >&5
11886echo "${ECHO_T}yes" >&6
11887 else
11888 echo "$as_me:$LINENO: result: no" >&5
11889echo "${ECHO_T}no" >&6
11890fi
11891 ;;
11892 *)
11893 echo "$as_me:$LINENO: result: no" >&5
11894echo "${ECHO_T}no" >&6
11895 ;;
11896 esac
11897fi
11898
11899if test "x$enable_dlopen" != xyes; then
11900 enable_dlopen=unknown
11901 enable_dlopen_self=unknown
11902 enable_dlopen_self_static=unknown
11903else
11904 lt_cv_dlopen=no
11905 lt_cv_dlopen_libs=
11906
11907 case $host_os in
11908 beos*)
11909 lt_cv_dlopen="load_add_on"
11910 lt_cv_dlopen_libs=
11911 lt_cv_dlopen_self=yes
11912 ;;
11913
11914 mingw* | pw32*)
11915 lt_cv_dlopen="LoadLibrary"
11916 lt_cv_dlopen_libs=
11917 ;;
11918
11919 cygwin*)
11920 lt_cv_dlopen="dlopen"
11921 lt_cv_dlopen_libs=
11922 ;;
11923
11924 darwin*)
11925 # if libdl is installed we need to link against it
11926 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11927echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11928if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930else
11931 ac_check_lib_save_LIBS=$LIBS
11932LIBS="-ldl $LIBS"
11933cat >conftest.$ac_ext <<_ACEOF
11934/* confdefs.h. */
11935_ACEOF
11936cat confdefs.h >>conftest.$ac_ext
11937cat >>conftest.$ac_ext <<_ACEOF
11938/* end confdefs.h. */
11939
11940/* Override any gcc2 internal prototype to avoid an error. */
11941#ifdef __cplusplus
11942extern "C"
11943#endif
11944/* We use char because int might match the return type of a gcc2
11945 builtin and then its argument prototype would still apply. */
11946char dlopen ();
11947int
11948main ()
11949{
11950dlopen ();
11951 ;
11952 return 0;
11953}
11954_ACEOF
11955rm -f conftest.$ac_objext conftest$ac_exeext
11956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_cxx_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_lib_dl_dlopen=yes
11978else
11979 echo "$as_me: failed program was:" >&5
11980sed 's/^/| /' conftest.$ac_ext >&5
11981
11982ac_cv_lib_dl_dlopen=no
11983fi
11984rm -f conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986LIBS=$ac_check_lib_save_LIBS
11987fi
11988echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11989echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11990if test $ac_cv_lib_dl_dlopen = yes; then
11991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11992else
11993
11994 lt_cv_dlopen="dyld"
11995 lt_cv_dlopen_libs=
11996 lt_cv_dlopen_self=yes
11997
11998fi
11999
12000 ;;
12001
12002 *)
12003 echo "$as_me:$LINENO: checking for shl_load" >&5
12004echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12005if test "${ac_cv_func_shl_load+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008 cat >conftest.$ac_ext <<_ACEOF
12009/* confdefs.h. */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h. */
12014/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12016#define shl_load innocuous_shl_load
12017
12018/* System header to define __stub macros and hopefully few prototypes,
12019 which can conflict with char shl_load (); below.
12020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021 <limits.h> exists even on freestanding compilers. */
12022
12023#ifdef __STDC__
12024# include <limits.h>
12025#else
12026# include <assert.h>
12027#endif
12028
12029#undef shl_load
12030
12031/* Override any gcc2 internal prototype to avoid an error. */
12032#ifdef __cplusplus
12033extern "C"
12034{
12035#endif
12036/* We use char because int might match the return type of a gcc2
12037 builtin and then its argument prototype would still apply. */
12038char shl_load ();
12039/* The GNU C library defines this for functions which it implements
12040 to always fail with ENOSYS. Some functions are actually named
12041 something starting with __ and the normal name is an alias. */
12042#if defined (__stub_shl_load) || defined (__stub___shl_load)
12043choke me
12044#else
12045char (*f) () = shl_load;
12046#endif
12047#ifdef __cplusplus
12048}
12049#endif
12050
12051int
12052main ()
12053{
12054return f != shl_load;
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext conftest$ac_exeext
12060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_cxx_werror_flag"
12069 || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_func_shl_load=yes
12082else
12083 echo "$as_me: failed program was:" >&5
12084sed 's/^/| /' conftest.$ac_ext >&5
12085
12086ac_cv_func_shl_load=no
12087fi
12088rm -f conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090fi
12091echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12092echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12093if test $ac_cv_func_shl_load = yes; then
12094 lt_cv_dlopen="shl_load"
12095else
12096 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12097echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12098if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100else
12101 ac_check_lib_save_LIBS=$LIBS
12102LIBS="-ldld $LIBS"
12103cat >conftest.$ac_ext <<_ACEOF
12104/* confdefs.h. */
12105_ACEOF
12106cat confdefs.h >>conftest.$ac_ext
12107cat >>conftest.$ac_ext <<_ACEOF
12108/* end confdefs.h. */
12109
12110/* Override any gcc2 internal prototype to avoid an error. */
12111#ifdef __cplusplus
12112extern "C"
12113#endif
12114/* We use char because int might match the return type of a gcc2
12115 builtin and then its argument prototype would still apply. */
12116char shl_load ();
12117int
12118main ()
12119{
12120shl_load ();
12121 ;
12122 return 0;
12123}
12124_ACEOF
12125rm -f conftest.$ac_objext conftest$ac_exeext
12126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12127 (eval $ac_link) 2>conftest.er1
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -z "$ac_cxx_werror_flag"
12135 || test ! -s conftest.err'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest$ac_exeext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_lib_dld_shl_load=yes
12148else
12149 echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
12152ac_cv_lib_dld_shl_load=no
12153fi
12154rm -f conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156LIBS=$ac_check_lib_save_LIBS
12157fi
12158echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12159echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12160if test $ac_cv_lib_dld_shl_load = yes; then
12161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12162else
12163 echo "$as_me:$LINENO: checking for dlopen" >&5
12164echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12165if test "${ac_cv_func_dlopen+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167else
12168 cat >conftest.$ac_ext <<_ACEOF
12169/* confdefs.h. */
12170_ACEOF
12171cat confdefs.h >>conftest.$ac_ext
12172cat >>conftest.$ac_ext <<_ACEOF
12173/* end confdefs.h. */
12174/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12176#define dlopen innocuous_dlopen
12177
12178/* System header to define __stub macros and hopefully few prototypes,
12179 which can conflict with char dlopen (); below.
12180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181 <limits.h> exists even on freestanding compilers. */
12182
12183#ifdef __STDC__
12184# include <limits.h>
12185#else
12186# include <assert.h>
12187#endif
12188
12189#undef dlopen
12190
12191/* Override any gcc2 internal prototype to avoid an error. */
12192#ifdef __cplusplus
12193extern "C"
12194{
12195#endif
12196/* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12198char dlopen ();
12199/* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202#if defined (__stub_dlopen) || defined (__stub___dlopen)
12203choke me
12204#else
12205char (*f) () = dlopen;
12206#endif
12207#ifdef __cplusplus
12208}
12209#endif
12210
12211int
12212main ()
12213{
12214return f != dlopen;
12215 ;
12216 return 0;
12217}
12218_ACEOF
12219rm -f conftest.$ac_objext conftest$ac_exeext
12220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_cxx_werror_flag"
12229 || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_cv_func_dlopen=yes
12242else
12243 echo "$as_me: failed program was:" >&5
12244sed 's/^/| /' conftest.$ac_ext >&5
12245
12246ac_cv_func_dlopen=no
12247fi
12248rm -f conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250fi
12251echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12252echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12253if test $ac_cv_func_dlopen = yes; then
12254 lt_cv_dlopen="dlopen"
12255else
12256 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12257echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12258if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12260else
12261 ac_check_lib_save_LIBS=$LIBS
12262LIBS="-ldl $LIBS"
12263cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h. */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h. */
12269
12270/* Override any gcc2 internal prototype to avoid an error. */
12271#ifdef __cplusplus
12272extern "C"
12273#endif
12274/* We use char because int might match the return type of a gcc2
12275 builtin and then its argument prototype would still apply. */
12276char dlopen ();
12277int
12278main ()
12279{
12280dlopen ();
12281 ;
12282 return 0;
12283}
12284_ACEOF
12285rm -f conftest.$ac_objext conftest$ac_exeext
12286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287 (eval $ac_link) 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_cxx_werror_flag"
12295 || test ! -s conftest.err'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
12301 { ac_try='test -s conftest$ac_exeext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_lib_dl_dlopen=yes
12308else
12309 echo "$as_me: failed program was:" >&5
12310sed 's/^/| /' conftest.$ac_ext >&5
12311
12312ac_cv_lib_dl_dlopen=no
12313fi
12314rm -f conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12316LIBS=$ac_check_lib_save_LIBS
12317fi
12318echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12319echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12320if test $ac_cv_lib_dl_dlopen = yes; then
12321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12322else
12323 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12324echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12325if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12327else
12328 ac_check_lib_save_LIBS=$LIBS
12329LIBS="-lsvld $LIBS"
12330cat >conftest.$ac_ext <<_ACEOF
12331/* confdefs.h. */
12332_ACEOF
12333cat confdefs.h >>conftest.$ac_ext
12334cat >>conftest.$ac_ext <<_ACEOF
12335/* end confdefs.h. */
12336
12337/* Override any gcc2 internal prototype to avoid an error. */
12338#ifdef __cplusplus
12339extern "C"
12340#endif
12341/* We use char because int might match the return type of a gcc2
12342 builtin and then its argument prototype would still apply. */
12343char dlopen ();
12344int
12345main ()
12346{
12347dlopen ();
12348 ;
12349 return 0;
12350}
12351_ACEOF
12352rm -f conftest.$ac_objext conftest$ac_exeext
12353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_cxx_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_cv_lib_svld_dlopen=yes
12375else
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
12379ac_cv_lib_svld_dlopen=no
12380fi
12381rm -f conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383LIBS=$ac_check_lib_save_LIBS
12384fi
12385echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12386echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12387if test $ac_cv_lib_svld_dlopen = yes; then
12388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12389else
12390 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12391echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12392if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394else
12395 ac_check_lib_save_LIBS=$LIBS
12396LIBS="-ldld $LIBS"
12397cat >conftest.$ac_ext <<_ACEOF
12398/* confdefs.h. */
12399_ACEOF
12400cat confdefs.h >>conftest.$ac_ext
12401cat >>conftest.$ac_ext <<_ACEOF
12402/* end confdefs.h. */
12403
12404/* Override any gcc2 internal prototype to avoid an error. */
12405#ifdef __cplusplus
12406extern "C"
12407#endif
12408/* We use char because int might match the return type of a gcc2
12409 builtin and then its argument prototype would still apply. */
12410char dld_link ();
12411int
12412main ()
12413{
12414dld_link ();
12415 ;
12416 return 0;
12417}
12418_ACEOF
12419rm -f conftest.$ac_objext conftest$ac_exeext
12420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421 (eval $ac_link) 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_cxx_werror_flag"
12429 || test ! -s conftest.err'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest$ac_exeext'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 ac_cv_lib_dld_dld_link=yes
12442else
12443 echo "$as_me: failed program was:" >&5
12444sed 's/^/| /' conftest.$ac_ext >&5
12445
12446ac_cv_lib_dld_dld_link=no
12447fi
12448rm -f conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450LIBS=$ac_check_lib_save_LIBS
12451fi
12452echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12453echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12454if test $ac_cv_lib_dld_dld_link = yes; then
12455 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12456fi
12457
12458
12459fi
12460
12461
12462fi
12463
12464
12465fi
12466
12467
12468fi
12469
12470
12471fi
12472
12473 ;;
12474 esac
12475
12476 if test "x$lt_cv_dlopen" != xno; then
12477 enable_dlopen=yes
12478 else
12479 enable_dlopen=no
12480 fi
12481
12482 case $lt_cv_dlopen in
12483 dlopen)
12484 save_CPPFLAGS="$CPPFLAGS"
12485 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12486
12487 save_LDFLAGS="$LDFLAGS"
12488 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12489
12490 save_LIBS="$LIBS"
12491 LIBS="$lt_cv_dlopen_libs $LIBS"
12492
12493 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12494echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12495if test "${lt_cv_dlopen_self+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497else
12498 if test "$cross_compiling" = yes; then :
12499 lt_cv_dlopen_self=cross
12500else
12501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12502 lt_status=$lt_dlunknown
12503 cat > conftest.$ac_ext <<EOF
12504#line 12504 "configure"
12505#include "confdefs.h"
12506
12507#if HAVE_DLFCN_H
12508#include <dlfcn.h>
12509#endif
12510
12511#include <stdio.h>
12512
12513#ifdef RTLD_GLOBAL
12514# define LT_DLGLOBAL RTLD_GLOBAL
12515#else
12516# ifdef DL_GLOBAL
12517# define LT_DLGLOBAL DL_GLOBAL
12518# else
12519# define LT_DLGLOBAL 0
12520# endif
12521#endif
12522
12523/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12524 find out it does not work in some platform. */
12525#ifndef LT_DLLAZY_OR_NOW
12526# ifdef RTLD_LAZY
12527# define LT_DLLAZY_OR_NOW RTLD_LAZY
12528# else
12529# ifdef DL_LAZY
12530# define LT_DLLAZY_OR_NOW DL_LAZY
12531# else
12532# ifdef RTLD_NOW
12533# define LT_DLLAZY_OR_NOW RTLD_NOW
12534# else
12535# ifdef DL_NOW
12536# define LT_DLLAZY_OR_NOW DL_NOW
12537# else
12538# define LT_DLLAZY_OR_NOW 0
12539# endif
12540# endif
12541# endif
12542# endif
12543#endif
12544
12545#ifdef __cplusplus
12546extern "C" void exit (int);
12547#endif
12548
12549void fnord() { int i=42;}
12550int main ()
12551{
12552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12553 int status = $lt_dlunknown;
12554
12555 if (self)
12556 {
12557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12559 /* dlclose (self); */
12560 }
12561
12562 exit (status);
12563}
12564EOF
12565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12570 (./conftest; exit; ) 2>/dev/null
12571 lt_status=$?
12572 case x$lt_status in
12573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12575 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12576 esac
12577 else :
12578 # compilation failed
12579 lt_cv_dlopen_self=no
12580 fi
12581fi
12582rm -fr conftest*
12583
12584
12585fi
12586echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12587echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12588
12589 if test "x$lt_cv_dlopen_self" = xyes; then
12590 LDFLAGS="$LDFLAGS $link_static_flag"
12591 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12592echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12593if test "${lt_cv_dlopen_self_static+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595else
12596 if test "$cross_compiling" = yes; then :
12597 lt_cv_dlopen_self_static=cross
12598else
12599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12600 lt_status=$lt_dlunknown
12601 cat > conftest.$ac_ext <<EOF
12602#line 12602 "configure"
12603#include "confdefs.h"
12604
12605#if HAVE_DLFCN_H
12606#include <dlfcn.h>
12607#endif
12608
12609#include <stdio.h>
12610
12611#ifdef RTLD_GLOBAL
12612# define LT_DLGLOBAL RTLD_GLOBAL
12613#else
12614# ifdef DL_GLOBAL
12615# define LT_DLGLOBAL DL_GLOBAL
12616# else
12617# define LT_DLGLOBAL 0
12618# endif
12619#endif
12620
12621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12622 find out it does not work in some platform. */
12623#ifndef LT_DLLAZY_OR_NOW
12624# ifdef RTLD_LAZY
12625# define LT_DLLAZY_OR_NOW RTLD_LAZY
12626# else
12627# ifdef DL_LAZY
12628# define LT_DLLAZY_OR_NOW DL_LAZY
12629# else
12630# ifdef RTLD_NOW
12631# define LT_DLLAZY_OR_NOW RTLD_NOW
12632# else
12633# ifdef DL_NOW
12634# define LT_DLLAZY_OR_NOW DL_NOW
12635# else
12636# define LT_DLLAZY_OR_NOW 0
12637# endif
12638# endif
12639# endif
12640# endif
12641#endif
12642
12643#ifdef __cplusplus
12644extern "C" void exit (int);
12645#endif
12646
12647void fnord() { int i=42;}
12648int main ()
12649{
12650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12651 int status = $lt_dlunknown;
12652
12653 if (self)
12654 {
12655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12657 /* dlclose (self); */
12658 }
12659
12660 exit (status);
12661}
12662EOF
12663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12668 (./conftest; exit; ) 2>/dev/null
12669 lt_status=$?
12670 case x$lt_status in
12671 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12672 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12673 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12674 esac
12675 else :
12676 # compilation failed
12677 lt_cv_dlopen_self_static=no
12678 fi
12679fi
12680rm -fr conftest*
12681
12682
12683fi
12684echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12685echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12686 fi
12687
12688 CPPFLAGS="$save_CPPFLAGS"
12689 LDFLAGS="$save_LDFLAGS"
12690 LIBS="$save_LIBS"
12691 ;;
12692 esac
12693
12694 case $lt_cv_dlopen_self in
12695 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12696 *) enable_dlopen_self=unknown ;;
12697 esac
12698
12699 case $lt_cv_dlopen_self_static in
12700 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12701 *) enable_dlopen_self_static=unknown ;;
12702 esac
12703fi
12704
12705
12706# The else clause should only fire when bootstrapping the
12707# libtool distribution, otherwise you forgot to ship ltmain.sh
12708# with your package, and you will get complaints that there are
12709# no rules to generate ltmain.sh.
12710if test -f "$ltmain"; then
12711 # See if we are running on zsh, and set the options which allow our commands through
12712 # without removal of \ escapes.
12713 if test -n "${ZSH_VERSION+set}" ; then
12714 setopt NO_GLOB_SUBST
12715 fi
12716 # Now quote all the things that may contain metacharacters while being
12717 # careful not to overquote the AC_SUBSTed values. We take copies of the
12718 # variables and quote the copies for generation of the libtool script.
12719 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12720 SED SHELL STRIP \
12721 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12722 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12723 deplibs_check_method reload_flag reload_cmds need_locks \
12724 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12725 lt_cv_sys_global_symbol_to_c_name_address \
12726 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12727 old_postinstall_cmds old_postuninstall_cmds \
12728 compiler_CXX \
12729 CC_CXX \
12730 LD_CXX \
12731 lt_prog_compiler_wl_CXX \
12732 lt_prog_compiler_pic_CXX \
12733 lt_prog_compiler_static_CXX \
12734 lt_prog_compiler_no_builtin_flag_CXX \
12735 export_dynamic_flag_spec_CXX \
12736 thread_safe_flag_spec_CXX \
12737 whole_archive_flag_spec_CXX \
12738 enable_shared_with_static_runtimes_CXX \
12739 old_archive_cmds_CXX \
12740 old_archive_from_new_cmds_CXX \
12741 predep_objects_CXX \
12742 postdep_objects_CXX \
12743 predeps_CXX \
12744 postdeps_CXX \
12745 compiler_lib_search_path_CXX \
12746 archive_cmds_CXX \
12747 archive_expsym_cmds_CXX \
12748 postinstall_cmds_CXX \
12749 postuninstall_cmds_CXX \
12750 old_archive_from_expsyms_cmds_CXX \
12751 allow_undefined_flag_CXX \
12752 no_undefined_flag_CXX \
12753 export_symbols_cmds_CXX \
12754 hardcode_libdir_flag_spec_CXX \
12755 hardcode_libdir_flag_spec_ld_CXX \
12756 hardcode_libdir_separator_CXX \
12757 hardcode_automatic_CXX \
12758 module_cmds_CXX \
12759 module_expsym_cmds_CXX \
12760 lt_cv_prog_compiler_c_o_CXX \
12761 exclude_expsyms_CXX \
12762 include_expsyms_CXX; do
12763
12764 case $var in
12765 old_archive_cmds_CXX | \
12766 old_archive_from_new_cmds_CXX | \
12767 archive_cmds_CXX | \
12768 archive_expsym_cmds_CXX | \
12769 module_cmds_CXX | \
12770 module_expsym_cmds_CXX | \
12771 old_archive_from_expsyms_cmds_CXX | \
12772 export_symbols_cmds_CXX | \
12773 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12774 postinstall_cmds | postuninstall_cmds | \
12775 old_postinstall_cmds | old_postuninstall_cmds | \
12776 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12777 # Double-quote double-evaled strings.
12778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12779 ;;
12780 *)
12781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12782 ;;
12783 esac
12784 done
12785
12786 case $lt_echo in
12787 *'\$0 --fallback-echo"')
12788 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12789 ;;
12790 esac
12791
12792cfgfile="$ofile"
12793
12794 cat <<__EOF__ >> "$cfgfile"
12795# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12796
12797# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12798
12799# Shell to use when invoking shell scripts.
12800SHELL=$lt_SHELL
12801
12802# Whether or not to build shared libraries.
12803build_libtool_libs=$enable_shared
12804
12805# Whether or not to build static libraries.
12806build_old_libs=$enable_static
12807
12808# Whether or not to add -lc for building shared libraries.
12809build_libtool_need_lc=$archive_cmds_need_lc_CXX
12810
12811# Whether or not to disallow shared libs when runtime libs are static
12812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12813
12814# Whether or not to optimize for fast installation.
12815fast_install=$enable_fast_install
12816
12817# The host system.
12818host_alias=$host_alias
12819host=$host
12820
12821# An echo program that does not interpret backslashes.
12822echo=$lt_echo
12823
12824# The archiver.
12825AR=$lt_AR
12826AR_FLAGS=$lt_AR_FLAGS
12827
12828# A C compiler.
12829LTCC=$lt_LTCC
12830
12831# A language-specific compiler.
12832CC=$lt_compiler_CXX
12833
12834# Is the compiler the GNU C compiler?
12835with_gcc=$GCC_CXX
12836
12837# An ERE matcher.
12838EGREP=$lt_EGREP
12839
12840# The linker used to build libraries.
12841LD=$lt_LD_CXX
12842
12843# Whether we need hard or soft links.
12844LN_S=$lt_LN_S
12845
12846# A BSD-compatible nm program.
12847NM=$lt_NM
12848
12849# A symbol stripping program
12850STRIP=$lt_STRIP
12851
12852# Used to examine libraries when file_magic_cmd begins "file"
12853MAGIC_CMD=$MAGIC_CMD
12854
12855# Used on cygwin: DLL creation program.
12856DLLTOOL="$DLLTOOL"
12857
12858# Used on cygwin: object dumper.
12859OBJDUMP="$OBJDUMP"
12860
12861# Used on cygwin: assembler.
12862AS="$AS"
12863
12864# The name of the directory that contains temporary libtool files.
12865objdir=$objdir
12866
12867# How to create reloadable object files.
12868reload_flag=$lt_reload_flag
12869reload_cmds=$lt_reload_cmds
12870
12871# How to pass a linker flag through the compiler.
12872wl=$lt_lt_prog_compiler_wl_CXX
12873
12874# Object file suffix (normally "o").
12875objext="$ac_objext"
12876
12877# Old archive suffix (normally "a").
12878libext="$libext"
12879
12880# Shared library suffix (normally ".so").
12881shrext_cmds='$shrext_cmds'
12882
12883# Executable file suffix (normally "").
12884exeext="$exeext"
12885
12886# Additional compiler flags for building library objects.
12887pic_flag=$lt_lt_prog_compiler_pic_CXX
12888pic_mode=$pic_mode
12889
12890# What is the maximum length of a command?
12891max_cmd_len=$lt_cv_sys_max_cmd_len
12892
12893# Does compiler simultaneously support -c and -o options?
12894compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12895
12896# Must we lock files when doing compilation ?
12897need_locks=$lt_need_locks
12898
12899# Do we need the lib prefix for modules?
12900need_lib_prefix=$need_lib_prefix
12901
12902# Do we need a version for libraries?
12903need_version=$need_version
12904
12905# Whether dlopen is supported.
12906dlopen_support=$enable_dlopen
12907
12908# Whether dlopen of programs is supported.
12909dlopen_self=$enable_dlopen_self
12910
12911# Whether dlopen of statically linked programs is supported.
12912dlopen_self_static=$enable_dlopen_self_static
12913
12914# Compiler flag to prevent dynamic linking.
12915link_static_flag=$lt_lt_prog_compiler_static_CXX
12916
12917# Compiler flag to turn off builtin functions.
12918no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12919
12920# Compiler flag to allow reflexive dlopens.
12921export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12922
12923# Compiler flag to generate shared objects directly from archives.
12924whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12925
12926# Compiler flag to generate thread-safe objects.
12927thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12928
12929# Library versioning type.
12930version_type=$version_type
12931
12932# Format of library name prefix.
12933libname_spec=$lt_libname_spec
12934
12935# List of archive names. First name is the real one, the rest are links.
12936# The last name is the one that the linker finds with -lNAME.
12937library_names_spec=$lt_library_names_spec
12938
12939# The coded name of the library, if different from the real name.
12940soname_spec=$lt_soname_spec
12941
12942# Commands used to build and install an old-style archive.
12943RANLIB=$lt_RANLIB
12944old_archive_cmds=$lt_old_archive_cmds_CXX
12945old_postinstall_cmds=$lt_old_postinstall_cmds
12946old_postuninstall_cmds=$lt_old_postuninstall_cmds
12947
12948# Create an old-style archive from a shared archive.
12949old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12950
12951# Create a temporary old-style archive to link instead of a shared archive.
12952old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12953
12954# Commands used to build and install a shared archive.
12955archive_cmds=$lt_archive_cmds_CXX
12956archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12957postinstall_cmds=$lt_postinstall_cmds
12958postuninstall_cmds=$lt_postuninstall_cmds
12959
12960# Commands used to build a loadable module (assumed same as above if empty)
12961module_cmds=$lt_module_cmds_CXX
12962module_expsym_cmds=$lt_module_expsym_cmds_CXX
12963
12964# Commands to strip libraries.
12965old_striplib=$lt_old_striplib
12966striplib=$lt_striplib
12967
12968# Dependencies to place before the objects being linked to create a
12969# shared library.
12970predep_objects=$lt_predep_objects_CXX
12971
12972# Dependencies to place after the objects being linked to create a
12973# shared library.
12974postdep_objects=$lt_postdep_objects_CXX
12975
12976# Dependencies to place before the objects being linked to create a
12977# shared library.
12978predeps=$lt_predeps_CXX
12979
12980# Dependencies to place after the objects being linked to create a
12981# shared library.
12982postdeps=$lt_postdeps_CXX
12983
12984# The library search path used internally by the compiler when linking
12985# a shared library.
12986compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12987
12988# Method to check whether dependent libraries are shared objects.
12989deplibs_check_method=$lt_deplibs_check_method
12990
12991# Command to use when deplibs_check_method == file_magic.
12992file_magic_cmd=$lt_file_magic_cmd
12993
12994# Flag that allows shared libraries with undefined symbols to be built.
12995allow_undefined_flag=$lt_allow_undefined_flag_CXX
12996
12997# Flag that forces no undefined symbols.
12998no_undefined_flag=$lt_no_undefined_flag_CXX
12999
13000# Commands used to finish a libtool library installation in a directory.
13001finish_cmds=$lt_finish_cmds
13002
13003# Same as above, but a single script fragment to be evaled but not shown.
13004finish_eval=$lt_finish_eval
13005
13006# Take the output of nm and produce a listing of raw symbols and C names.
13007global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13008
13009# Transform the output of nm in a proper C declaration
13010global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13011
13012# Transform the output of nm in a C name address pair
13013global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13014
13015# This is the shared library runtime path variable.
13016runpath_var=$runpath_var
13017
13018# This is the shared library path variable.
13019shlibpath_var=$shlibpath_var
13020
13021# Is shlibpath searched before the hard-coded library search path?
13022shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13023
13024# How to hardcode a shared library path into an executable.
13025hardcode_action=$hardcode_action_CXX
13026
13027# Whether we should hardcode library paths into libraries.
13028hardcode_into_libs=$hardcode_into_libs
13029
13030# Flag to hardcode \$libdir into a binary during linking.
13031# This must work even if \$libdir does not exist.
13032hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13033
13034# If ld is used when linking, flag to hardcode \$libdir into
13035# a binary during linking. This must work even if \$libdir does
13036# not exist.
13037hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13038
13039# Whether we need a single -rpath flag with a separated argument.
13040hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13041
13042# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13043# resulting binary.
13044hardcode_direct=$hardcode_direct_CXX
13045
13046# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13047# resulting binary.
13048hardcode_minus_L=$hardcode_minus_L_CXX
13049
13050# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13051# the resulting binary.
13052hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13053
13054# Set to yes if building a shared library automatically hardcodes DIR into the library
13055# and all subsequent libraries and executables linked against it.
13056hardcode_automatic=$hardcode_automatic_CXX
13057
13058# Variables whose values should be saved in libtool wrapper scripts and
13059# restored at relink time.
13060variables_saved_for_relink="$variables_saved_for_relink"
13061
13062# Whether libtool must link a program against all its dependency libraries.
13063link_all_deplibs=$link_all_deplibs_CXX
13064
13065# Compile-time system search path for libraries
13066sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13067
13068# Run-time system search path for libraries
13069sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13070
13071# Fix the shell variable \$srcfile for the compiler.
13072fix_srcfile_path="$fix_srcfile_path_CXX"
13073
13074# Set to yes if exported symbols are required.
13075always_export_symbols=$always_export_symbols_CXX
13076
13077# The commands to list exported symbols.
13078export_symbols_cmds=$lt_export_symbols_cmds_CXX
13079
13080# The commands to extract the exported symbol list from a shared archive.
13081extract_expsyms_cmds=$lt_extract_expsyms_cmds
13082
13083# Symbols that should not be listed in the preloaded symbols.
13084exclude_expsyms=$lt_exclude_expsyms_CXX
13085
13086# Symbols that must always be exported.
13087include_expsyms=$lt_include_expsyms_CXX
13088
13089# ### END LIBTOOL TAG CONFIG: $tagname
13090
13091__EOF__
13092
13093
13094else
13095 # If there is no Makefile yet, we rely on a make rule to execute
13096 # `config.status --recheck' to rerun these tests and create the
13097 # libtool script then.
13098 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13099 if test -f "$ltmain_in"; then
13100 test -f Makefile && make "$ltmain"
13101 fi
13102fi
13103
13104
13105ac_ext=c
13106ac_cpp='$CPP $CPPFLAGS'
13107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109ac_compiler_gnu=$ac_cv_c_compiler_gnu
13110
13111CC=$lt_save_CC
13112LDCXX=$LD
13113LD=$lt_save_LD
13114GCC=$lt_save_GCC
13115with_gnu_ldcxx=$with_gnu_ld
13116with_gnu_ld=$lt_save_with_gnu_ld
13117lt_cv_path_LDCXX=$lt_cv_path_LD
13118lt_cv_path_LD=$lt_save_path_LD
13119lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13120lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13121
13122 else
13123 tagname=""
13124 fi
13125 ;;
13126
13127 F77)
13128 if test -n "$F77" && test "X$F77" != "Xno"; then
13129
13130ac_ext=f
13131ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13132ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13134
13135
13136archive_cmds_need_lc_F77=no
13137allow_undefined_flag_F77=
13138always_export_symbols_F77=no
13139archive_expsym_cmds_F77=
13140export_dynamic_flag_spec_F77=
13141hardcode_direct_F77=no
13142hardcode_libdir_flag_spec_F77=
13143hardcode_libdir_flag_spec_ld_F77=
13144hardcode_libdir_separator_F77=
13145hardcode_minus_L_F77=no
13146hardcode_automatic_F77=no
13147module_cmds_F77=
13148module_expsym_cmds_F77=
13149link_all_deplibs_F77=unknown
13150old_archive_cmds_F77=$old_archive_cmds
13151no_undefined_flag_F77=
13152whole_archive_flag_spec_F77=
13153enable_shared_with_static_runtimes_F77=no
13154
13155# Source file extension for f77 test sources.
13156ac_ext=f
13157
13158# Object file extension for compiled f77 test sources.
13159objext=o
13160objext_F77=$objext
13161
13162# Code to be used in simple compile tests
13163lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13164
13165# Code to be used in simple link tests
13166lt_simple_link_test_code=" program t\n end\n"
13167
13168# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13169
13170# If no C compiler was specified, use CC.
13171LTCC=${LTCC-"$CC"}
13172
13173# Allow CC to be a program name with arguments.
13174compiler=$CC
13175
13176
13177# Allow CC to be a program name with arguments.
13178lt_save_CC="$CC"
13179CC=${F77-"f77"}
13180compiler=$CC
13181compiler_F77=$CC
13182cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13183
13184echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13185echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13186echo "$as_me:$LINENO: result: $can_build_shared" >&5
13187echo "${ECHO_T}$can_build_shared" >&6
13188
13189echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13190echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13191test "$can_build_shared" = "no" && enable_shared=no
13192
13193# On AIX, shared libraries and static libraries use the same namespace, and
13194# are all built from PIC.
13195case "$host_os" in
13196aix3*)
13197 test "$enable_shared" = yes && enable_static=no
13198 if test -n "$RANLIB"; then
13199 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13200 postinstall_cmds='$RANLIB $lib'
13201 fi
13202 ;;
13203aix4* | aix5*)
13204 test "$enable_shared" = yes && enable_static=no
13205 ;;
13206esac
13207echo "$as_me:$LINENO: result: $enable_shared" >&5
13208echo "${ECHO_T}$enable_shared" >&6
13209
13210echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13211echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13212# Make sure either enable_shared or enable_static is yes.
13213test "$enable_shared" = yes || enable_static=yes
13214echo "$as_me:$LINENO: result: $enable_static" >&5
13215echo "${ECHO_T}$enable_static" >&6
13216
13217test "$ld_shlibs_F77" = no && can_build_shared=no
13218
13219GCC_F77="$G77"
13220LD_F77="$LD"
13221
13222lt_prog_compiler_wl_F77=
13223lt_prog_compiler_pic_F77=
13224lt_prog_compiler_static_F77=
13225
13226echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13227echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13228
13229 if test "$GCC" = yes; then
13230 lt_prog_compiler_wl_F77='-Wl,'
13231 lt_prog_compiler_static_F77='-static'
13232
13233 case $host_os in
13234 aix*)
13235 # All AIX code is PIC.
13236 if test "$host_cpu" = ia64; then
13237 # AIX 5 now supports IA64 processor
13238 lt_prog_compiler_static_F77='-Bstatic'
13239 fi
13240 ;;
13241
13242 amigaos*)
13243 # FIXME: we need at least 68020 code to build shared libraries, but
13244 # adding the `-m68020' flag to GCC prevents building anything better,
13245 # like `-m68040'.
13246 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13247 ;;
13248
13249 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13250 # PIC is the default for these OSes.
13251 ;;
13252
13253 mingw* | pw32* | os2*)
13254 # This hack is so that the source file can tell whether it is being
13255 # built for inclusion in a dll (and should export symbols for example).
13256 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13257 ;;
13258
13259 darwin* | rhapsody*)
13260 # PIC is the default on this platform
13261 # Common symbols not allowed in MH_DYLIB files
13262 lt_prog_compiler_pic_F77='-fno-common'
13263 ;;
13264
13265 msdosdjgpp*)
13266 # Just because we use GCC doesn't mean we suddenly get shared libraries
13267 # on systems that don't support them.
13268 lt_prog_compiler_can_build_shared_F77=no
13269 enable_shared=no
13270 ;;
13271
13272 sysv4*MP*)
13273 if test -d /usr/nec; then
13274 lt_prog_compiler_pic_F77=-Kconform_pic
13275 fi
13276 ;;
13277
13278 hpux*)
13279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13280 # not for PA HP-UX.
13281 case "$host_cpu" in
13282 hppa*64*|ia64*)
13283 # +Z the default
13284 ;;
13285 *)
13286 lt_prog_compiler_pic_F77='-fPIC'
13287 ;;
13288 esac
13289 ;;
13290
13291 *)
13292 lt_prog_compiler_pic_F77='-fPIC'
13293 ;;
13294 esac
13295 else
13296 # PORTME Check for flag to pass linker flags through the system compiler.
13297 case $host_os in
13298 aix*)
13299 lt_prog_compiler_wl_F77='-Wl,'
13300 if test "$host_cpu" = ia64; then
13301 # AIX 5 now supports IA64 processor
13302 lt_prog_compiler_static_F77='-Bstatic'
13303 else
13304 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13305 fi
13306 ;;
13307
13308 mingw* | pw32* | os2*)
13309 # This hack is so that the source file can tell whether it is being
13310 # built for inclusion in a dll (and should export symbols for example).
13311 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13312 ;;
13313
13314 hpux9* | hpux10* | hpux11*)
13315 lt_prog_compiler_wl_F77='-Wl,'
13316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13317 # not for PA HP-UX.
13318 case "$host_cpu" in
13319 hppa*64*|ia64*)
13320 # +Z the default
13321 ;;
13322 *)
13323 lt_prog_compiler_pic_F77='+Z'
13324 ;;
13325 esac
13326 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13327 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13328 ;;
13329
13330 irix5* | irix6* | nonstopux*)
13331 lt_prog_compiler_wl_F77='-Wl,'
13332 # PIC (with -KPIC) is the default.
13333 lt_prog_compiler_static_F77='-non_shared'
13334 ;;
13335
13336 newsos6)
13337 lt_prog_compiler_pic_F77='-KPIC'
13338 lt_prog_compiler_static_F77='-Bstatic'
13339 ;;
13340
13341 linux*)
13342 case $CC in
13343 icc* | ecc*)
13344 lt_prog_compiler_wl_F77='-Wl,'
13345 lt_prog_compiler_pic_F77='-KPIC'
13346 lt_prog_compiler_static_F77='-static'
13347 ;;
13348 ccc*)
13349 lt_prog_compiler_wl_F77='-Wl,'
13350 # All Alpha code is PIC.
13351 lt_prog_compiler_static_F77='-non_shared'
13352 ;;
13353 esac
13354 ;;
13355
13356 osf3* | osf4* | osf5*)
13357 lt_prog_compiler_wl_F77='-Wl,'
13358 # All OSF/1 code is PIC.
13359 lt_prog_compiler_static_F77='-non_shared'
13360 ;;
13361
13362 sco3.2v5*)
13363 lt_prog_compiler_pic_F77='-Kpic'
13364 lt_prog_compiler_static_F77='-dn'
13365 ;;
13366
13367 solaris*)
13368 lt_prog_compiler_wl_F77='-Wl,'
13369 lt_prog_compiler_pic_F77='-KPIC'
13370 lt_prog_compiler_static_F77='-Bstatic'
13371 ;;
13372
13373 sunos4*)
13374 lt_prog_compiler_wl_F77='-Qoption ld '
13375 lt_prog_compiler_pic_F77='-PIC'
13376 lt_prog_compiler_static_F77='-Bstatic'
13377 ;;
13378
13379 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13380 lt_prog_compiler_wl_F77='-Wl,'
13381 lt_prog_compiler_pic_F77='-KPIC'
13382 lt_prog_compiler_static_F77='-Bstatic'
13383 ;;
13384
13385 sysv4*MP*)
13386 if test -d /usr/nec ;then
13387 lt_prog_compiler_pic_F77='-Kconform_pic'
13388 lt_prog_compiler_static_F77='-Bstatic'
13389 fi
13390 ;;
13391
13392 uts4*)
13393 lt_prog_compiler_pic_F77='-pic'
13394 lt_prog_compiler_static_F77='-Bstatic'
13395 ;;
13396
13397 *)
13398 lt_prog_compiler_can_build_shared_F77=no
13399 ;;
13400 esac
13401 fi
13402
13403echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13404echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13405
13406#
13407# Check to make sure the PIC flag actually works.
13408#
13409if test -n "$lt_prog_compiler_pic_F77"; then
13410
13411echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13412echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13413if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415else
13416 lt_prog_compiler_pic_works_F77=no
13417 ac_outfile=conftest.$ac_objext
13418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13419 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13420 # Insert the option either (1) after the last *FLAGS variable, or
13421 # (2) before a word containing "conftest.", or (3) at the end.
13422 # Note that $ac_compile itself does not contain backslashes and begins
13423 # with a dollar sign (not a hyphen), so the echo should work correctly.
13424 # The option is referenced via a variable to avoid confusing sed.
13425 lt_compile=`echo "$ac_compile" | $SED \
13426 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13428 -e 's:$: $lt_compiler_flag:'`
13429 (eval echo "\"\$as_me:13429: $lt_compile\"" >&5)
13430 (eval "$lt_compile" 2>conftest.err)
13431 ac_status=$?
13432 cat conftest.err >&5
13433 echo "$as_me:13433: \$? = $ac_status" >&5
13434 if (exit $ac_status) && test -s "$ac_outfile"; then
13435 # The compiler can only warn and ignore the option if not recognized
13436 # So say no if there are warnings
13437 if test ! -s conftest.err; then
13438 lt_prog_compiler_pic_works_F77=yes
13439 fi
13440 fi
13441 $rm conftest*
13442
13443fi
13444echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13445echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13446
13447if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13448 case $lt_prog_compiler_pic_F77 in
13449 "" | " "*) ;;
13450 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13451 esac
13452else
13453 lt_prog_compiler_pic_F77=
13454 lt_prog_compiler_can_build_shared_F77=no
13455fi
13456
13457fi
13458case "$host_os" in
13459 # For platforms which do not support PIC, -DPIC is meaningless:
13460 *djgpp*)
13461 lt_prog_compiler_pic_F77=
13462 ;;
13463 *)
13464 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13465 ;;
13466esac
13467
13468echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13469echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13470if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13472else
13473 lt_cv_prog_compiler_c_o_F77=no
13474 $rm -r conftest 2>/dev/null
13475 mkdir conftest
13476 cd conftest
13477 mkdir out
13478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13479
13480 lt_compiler_flag="-o out/conftest2.$ac_objext"
13481 # Insert the option either (1) after the last *FLAGS variable, or
13482 # (2) before a word containing "conftest.", or (3) at the end.
13483 # Note that $ac_compile itself does not contain backslashes and begins
13484 # with a dollar sign (not a hyphen), so the echo should work correctly.
13485 lt_compile=`echo "$ac_compile" | $SED \
13486 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488 -e 's:$: $lt_compiler_flag:'`
13489 (eval echo "\"\$as_me:13489: $lt_compile\"" >&5)
13490 (eval "$lt_compile" 2>out/conftest.err)
13491 ac_status=$?
13492 cat out/conftest.err >&5
13493 echo "$as_me:13493: \$? = $ac_status" >&5
13494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13495 then
13496 # The compiler can only warn and ignore the option if not recognized
13497 # So say no if there are warnings
13498 if test ! -s out/conftest.err; then
13499 lt_cv_prog_compiler_c_o_F77=yes
13500 fi
13501 fi
13502 chmod u+w .
13503 $rm conftest*
13504 # SGI C++ compiler will create directory out/ii_files/ for
13505 # template instantiation
13506 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13507 $rm out/* && rmdir out
13508 cd ..
13509 rmdir conftest
13510 $rm conftest*
13511
13512fi
13513echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13514echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13515
13516
13517hard_links="nottested"
13518if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13519 # do not overwrite the value of need_locks provided by the user
13520 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13521echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13522 hard_links=yes
13523 $rm conftest*
13524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13525 touch conftest.a
13526 ln conftest.a conftest.b 2>&5 || hard_links=no
13527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13528 echo "$as_me:$LINENO: result: $hard_links" >&5
13529echo "${ECHO_T}$hard_links" >&6
13530 if test "$hard_links" = no; then
13531 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13532echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13533 need_locks=warn
13534 fi
13535else
13536 need_locks=no
13537fi
13538
13539echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13540echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13541
13542 runpath_var=
13543 allow_undefined_flag_F77=
13544 enable_shared_with_static_runtimes_F77=no
13545 archive_cmds_F77=
13546 archive_expsym_cmds_F77=
13547 old_archive_From_new_cmds_F77=
13548 old_archive_from_expsyms_cmds_F77=
13549 export_dynamic_flag_spec_F77=
13550 whole_archive_flag_spec_F77=
13551 thread_safe_flag_spec_F77=
13552 hardcode_libdir_flag_spec_F77=
13553 hardcode_libdir_flag_spec_ld_F77=
13554 hardcode_libdir_separator_F77=
13555 hardcode_direct_F77=no
13556 hardcode_minus_L_F77=no
13557 hardcode_shlibpath_var_F77=unsupported
13558 link_all_deplibs_F77=unknown
13559 hardcode_automatic_F77=no
13560 module_cmds_F77=
13561 module_expsym_cmds_F77=
13562 always_export_symbols_F77=no
13563 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13564 # include_expsyms should be a list of space-separated symbols to be *always*
13565 # included in the symbol list
13566 include_expsyms_F77=
13567 # exclude_expsyms can be an extended regexp of symbols to exclude
13568 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13570 # as well as any symbol that contains `d'.
13571 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13573 # platforms (ab)use it in PIC code, but their linkers get confused if
13574 # the symbol is explicitly referenced. Since portable code cannot
13575 # rely on this symbol name, it's probably fine to never include it in
13576 # preloaded symbol tables.
13577 extract_expsyms_cmds=
13578
13579 case $host_os in
13580 cygwin* | mingw* | pw32*)
13581 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13582 # When not using gcc, we currently assume that we are using
13583 # Microsoft Visual C++.
13584 if test "$GCC" != yes; then
13585 with_gnu_ld=no
13586 fi
13587 ;;
13588 openbsd*)
13589 with_gnu_ld=no
13590 ;;
13591 esac
13592
13593 ld_shlibs_F77=yes
13594 if test "$with_gnu_ld" = yes; then
13595 # If archive_cmds runs LD, not CC, wlarc should be empty
13596 wlarc='${wl}'
13597
13598 # See if GNU ld supports shared libraries.
13599 case $host_os in
13600 aix3* | aix4* | aix5*)
13601 # On AIX/PPC, the GNU linker is very broken
13602 if test "$host_cpu" != ia64; then
13603 ld_shlibs_F77=no
13604 cat <<EOF 1>&2
13605
13606*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13607*** to be unable to reliably create shared libraries on AIX.
13608*** Therefore, libtool is disabling shared libraries support. If you
13609*** really care for shared libraries, you may want to modify your PATH
13610*** so that a non-GNU linker is found, and then restart.
13611
13612EOF
13613 fi
13614 ;;
13615
13616 amigaos*)
13617 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13618 hardcode_libdir_flag_spec_F77='-L$libdir'
13619 hardcode_minus_L_F77=yes
13620
13621 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13622 # that the semantics of dynamic libraries on AmigaOS, at least up
13623 # to version 4, is to share data among multiple programs linked
13624 # with the same dynamic library. Since this doesn't match the
13625 # behavior of shared libraries on other platforms, we can't use
13626 # them.
13627 ld_shlibs_F77=no
13628 ;;
13629
13630 beos*)
13631 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13632 allow_undefined_flag_F77=unsupported
13633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13634 # support --undefined. This deserves some investigation. FIXME
13635 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636 else
13637 ld_shlibs_F77=no
13638 fi
13639 ;;
13640
13641 cygwin* | mingw* | pw32*)
13642 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13643 # as there is no search path for DLLs.
13644 hardcode_libdir_flag_spec_F77='-L$libdir'
13645 allow_undefined_flag_F77=unsupported
13646 always_export_symbols_F77=no
13647 enable_shared_with_static_runtimes_F77=yes
13648 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13649
13650 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13651 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13652 # If the export-symbols file already is a .def file (1st line
13653 # is EXPORTS), use it as is; otherwise, prepend...
13654 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13655 cp $export_symbols $output_objdir/$soname.def;
13656 else
13657 echo EXPORTS > $output_objdir/$soname.def;
13658 cat $export_symbols >> $output_objdir/$soname.def;
13659 fi~
13660 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13661 else
13662 ld_shlibs=no
13663 fi
13664 ;;
13665
13666 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13668 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13669 wlarc=
13670 else
13671 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13673 fi
13674 ;;
13675
13676 solaris* | sysv5*)
13677 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13678 ld_shlibs_F77=no
13679 cat <<EOF 1>&2
13680
13681*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13682*** create shared libraries on Solaris systems. Therefore, libtool
13683*** is disabling shared libraries support. We urge you to upgrade GNU
13684*** binutils to release 2.9.1 or newer. Another option is to modify
13685*** your PATH or compiler configuration so that the native linker is
13686*** used, and then restart.
13687
13688EOF
13689 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13690 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13691 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13692 else
13693 ld_shlibs_F77=no
13694 fi
13695 ;;
13696
13697 sunos4*)
13698 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13699 wlarc=
13700 hardcode_direct_F77=yes
13701 hardcode_shlibpath_var_F77=no
13702 ;;
13703
13704 linux*)
13705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13706 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13707 archive_cmds_F77="$tmp_archive_cmds"
13708 supports_anon_versioning=no
13709 case `$LD -v 2>/dev/null` in
13710 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13713 *\ 2.11.*) ;; # other 2.11 versions
13714 *) supports_anon_versioning=yes ;;
13715 esac
13716 if test $supports_anon_versioning = yes; then
13717 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13718cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13719$echo "local: *; };" >> $output_objdir/$libname.ver~
13720 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13721 else
13722 archive_expsym_cmds_F77="$tmp_archive_cmds"
13723 fi
13724 link_all_deplibs_F77=no
13725 else
13726 ld_shlibs_F77=no
13727 fi
13728 ;;
13729
13730 *)
13731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13732 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13733 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13734 else
13735 ld_shlibs_F77=no
13736 fi
13737 ;;
13738 esac
13739
13740 if test "$ld_shlibs_F77" = yes; then
13741 runpath_var=LD_RUN_PATH
13742 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13743 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13744 # ancient GNU ld didn't support --whole-archive et. al.
13745 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13746 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13747 else
13748 whole_archive_flag_spec_F77=
13749 fi
13750 fi
13751 else
13752 # PORTME fill in a description of your system's linker (not GNU ld)
13753 case $host_os in
13754 aix3*)
13755 allow_undefined_flag_F77=unsupported
13756 always_export_symbols_F77=yes
13757 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13758 # Note: this linker hardcodes the directories in LIBPATH if there
13759 # are no directories specified by -L.
13760 hardcode_minus_L_F77=yes
13761 if test "$GCC" = yes && test -z "$link_static_flag"; then
13762 # Neither direct hardcoding nor static linking is supported with a
13763 # broken collect2.
13764 hardcode_direct_F77=unsupported
13765 fi
13766 ;;
13767
13768 aix4* | aix5*)
13769 if test "$host_cpu" = ia64; then
13770 # On IA64, the linker does run time linking by default, so we don't
13771 # have to do anything special.
13772 aix_use_runtimelinking=no
13773 exp_sym_flag='-Bexport'
13774 no_entry_flag=""
13775 else
13776 # If we're using GNU nm, then we don't want the "-C" option.
13777 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13778 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13779 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13780 else
13781 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13782 fi
13783 aix_use_runtimelinking=no
13784
13785 # Test if we are trying to use run time linking or normal
13786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13787 # need to do runtime linking.
13788 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13789 for ld_flag in $LDFLAGS; do
13790 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13791 aix_use_runtimelinking=yes
13792 break
13793 fi
13794 done
13795 esac
13796
13797 exp_sym_flag='-bexport'
13798 no_entry_flag='-bnoentry'
13799 fi
13800
13801 # When large executables or shared objects are built, AIX ld can
13802 # have problems creating the table of contents. If linking a library
13803 # or program results in "error TOC overflow" add -mminimal-toc to
13804 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13805 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13806
13807 archive_cmds_F77=''
13808 hardcode_direct_F77=yes
13809 hardcode_libdir_separator_F77=':'
13810 link_all_deplibs_F77=yes
13811
13812 if test "$GCC" = yes; then
13813 case $host_os in aix4.012|aix4.012.*)
13814 # We only want to do this on AIX 4.2 and lower, the check
13815 # below for broken collect2 doesn't work under 4.3+
13816 collect2name=`${CC} -print-prog-name=collect2`
13817 if test -f "$collect2name" && \
13818 strings "$collect2name" | grep resolve_lib_name >/dev/null
13819 then
13820 # We have reworked collect2
13821 hardcode_direct_F77=yes
13822 else
13823 # We have old collect2
13824 hardcode_direct_F77=unsupported
13825 # It fails to find uninstalled libraries when the uninstalled
13826 # path is not listed in the libpath. Setting hardcode_minus_L
13827 # to unsupported forces relinking
13828 hardcode_minus_L_F77=yes
13829 hardcode_libdir_flag_spec_F77='-L$libdir'
13830 hardcode_libdir_separator_F77=
13831 fi
13832 esac
13833 shared_flag='-shared'
13834 else
13835 # not using gcc
13836 if test "$host_cpu" = ia64; then
13837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13838 # chokes on -Wl,-G. The following line is correct:
13839 shared_flag='-G'
13840 else
13841 if test "$aix_use_runtimelinking" = yes; then
13842 shared_flag='${wl}-G'
13843 else
13844 shared_flag='${wl}-bM:SRE'
13845 fi
13846 fi
13847 fi
13848
13849 # It seems that -bexpall does not export symbols beginning with
13850 # underscore (_), so it is better to generate a list of symbols to export.
13851 always_export_symbols_F77=yes
13852 if test "$aix_use_runtimelinking" = yes; then
13853 # Warning - without using the other runtime loading flags (-brtl),
13854 # -berok will link without error, but may produce a broken library.
13855 allow_undefined_flag_F77='-berok'
13856 # Determine the default libpath from the value encoded in an empty executable.
13857 cat >conftest.$ac_ext <<_ACEOF
13858 program main
13859
13860 end
13861_ACEOF
13862rm -f conftest.$ac_objext conftest$ac_exeext
13863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13864 (eval $ac_link) 2>conftest.er1
13865 ac_status=$?
13866 grep -v '^ *+' conftest.er1 >conftest.err
13867 rm -f conftest.er1
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
13871 { ac_try='test -z "$ac_f77_werror_flag"
13872 || test ! -s conftest.err'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest$ac_exeext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884
13885aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13886}'`
13887# Check for a 64-bit object if we didn't find anything.
13888if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13889}'`; fi
13890else
13891 echo "$as_me: failed program was:" >&5
13892sed 's/^/| /' conftest.$ac_ext >&5
13893
13894fi
13895rm -f conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13898
13899 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13900 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13901 else
13902 if test "$host_cpu" = ia64; then
13903 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13904 allow_undefined_flag_F77="-z nodefs"
13905 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13906 else
13907 # Determine the default libpath from the value encoded in an empty executable.
13908 cat >conftest.$ac_ext <<_ACEOF
13909 program main
13910
13911 end
13912_ACEOF
13913rm -f conftest.$ac_objext conftest$ac_exeext
13914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915 (eval $ac_link) 2>conftest.er1
13916 ac_status=$?
13917 grep -v '^ *+' conftest.er1 >conftest.err
13918 rm -f conftest.er1
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
13922 { ac_try='test -z "$ac_f77_werror_flag"
13923 || test ! -s conftest.err'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } &&
13929 { ac_try='test -s conftest$ac_exeext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935
13936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13937}'`
13938# Check for a 64-bit object if we didn't find anything.
13939if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13940}'`; fi
13941else
13942 echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
13945fi
13946rm -f conftest.err conftest.$ac_objext \
13947 conftest$ac_exeext conftest.$ac_ext
13948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13949
13950 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13951 # Warning - without using the other run time loading flags,
13952 # -berok will link without error, but may produce a broken library.
13953 no_undefined_flag_F77=' ${wl}-bernotok'
13954 allow_undefined_flag_F77=' ${wl}-berok'
13955 # -bexpall does not export symbols beginning with underscore (_)
13956 always_export_symbols_F77=yes
13957 # Exported symbols can be pulled into shared objects from archives
13958 whole_archive_flag_spec_F77=' '
13959 archive_cmds_need_lc_F77=yes
13960 # This is similar to how AIX traditionally builds it's shared libraries.
13961 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13962 fi
13963 fi
13964 ;;
13965
13966 amigaos*)
13967 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13968 hardcode_libdir_flag_spec_F77='-L$libdir'
13969 hardcode_minus_L_F77=yes
13970 # see comment about different semantics on the GNU ld section
13971 ld_shlibs_F77=no
13972 ;;
13973
13974 bsdi4*)
13975 export_dynamic_flag_spec_F77=-rdynamic
13976 ;;
13977
13978 cygwin* | mingw* | pw32*)
13979 # When not using gcc, we currently assume that we are using
13980 # Microsoft Visual C++.
13981 # hardcode_libdir_flag_spec is actually meaningless, as there is
13982 # no search path for DLLs.
13983 hardcode_libdir_flag_spec_F77=' '
13984 allow_undefined_flag_F77=unsupported
13985 # Tell ltmain to make .lib files, not .a files.
13986 libext=lib
13987 # Tell ltmain to make .dll files, not .so files.
13988 shrext_cmds=".dll"
13989 # FIXME: Setting linknames here is a bad hack.
13990 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13991 # The linker will automatically build a .lib file if we build a DLL.
13992 old_archive_From_new_cmds_F77='true'
13993 # FIXME: Should let the user specify the lib program.
13994 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13995 fix_srcfile_path='`cygpath -w "$srcfile"`'
13996 enable_shared_with_static_runtimes_F77=yes
13997 ;;
13998
13999 darwin* | rhapsody*)
14000 if test "$GXX" = yes ; then
14001 archive_cmds_need_lc_F77=no
14002 case "$host_os" in
14003 rhapsody* | darwin1.[012])
14004 allow_undefined_flag_F77='-undefined suppress'
14005 ;;
14006 *) # Darwin 1.3 on
14007 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14008 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14009 else
14010 case ${MACOSX_DEPLOYMENT_TARGET} in
14011 10.[012])
14012 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14013 ;;
14014 10.*)
14015 allow_undefined_flag_F77='-undefined dynamic_lookup'
14016 ;;
14017 esac
14018 fi
14019 ;;
14020 esac
14021 lt_int_apple_cc_single_mod=no
14022 output_verbose_link_cmd='echo'
14023 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14024 lt_int_apple_cc_single_mod=yes
14025 fi
14026 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14027 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14028 else
14029 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14030 fi
14031 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14032 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14033 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14034 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14035 else
14036 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14037 fi
14038 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14039 hardcode_direct_F77=no
14040 hardcode_automatic_F77=yes
14041 hardcode_shlibpath_var_F77=unsupported
14042 whole_archive_flag_spec_F77='-all_load $convenience'
14043 link_all_deplibs_F77=yes
14044 else
14045 ld_shlibs_F77=no
14046 fi
14047 ;;
14048
14049 dgux*)
14050 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14051 hardcode_libdir_flag_spec_F77='-L$libdir'
14052 hardcode_shlibpath_var_F77=no
14053 ;;
14054
14055 freebsd1*)
14056 ld_shlibs_F77=no
14057 ;;
14058
14059 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14060 # support. Future versions do this automatically, but an explicit c++rt0.o
14061 # does not break anything, and helps significantly (at the cost of a little
14062 # extra space).
14063 freebsd2.2*)
14064 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14065 hardcode_libdir_flag_spec_F77='-R$libdir'
14066 hardcode_direct_F77=yes
14067 hardcode_shlibpath_var_F77=no
14068 ;;
14069
14070 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14071 freebsd2*)
14072 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14073 hardcode_direct_F77=yes
14074 hardcode_minus_L_F77=yes
14075 hardcode_shlibpath_var_F77=no
14076 ;;
14077
14078 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14079 freebsd* | kfreebsd*-gnu)
14080 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14081 hardcode_libdir_flag_spec_F77='-R$libdir'
14082 hardcode_direct_F77=yes
14083 hardcode_shlibpath_var_F77=no
14084 ;;
14085
14086 hpux9*)
14087 if test "$GCC" = yes; then
14088 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14089 else
14090 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14091 fi
14092 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14093 hardcode_libdir_separator_F77=:
14094 hardcode_direct_F77=yes
14095
14096 # hardcode_minus_L: Not really in the search PATH,
14097 # but as the default location of the library.
14098 hardcode_minus_L_F77=yes
14099 export_dynamic_flag_spec_F77='${wl}-E'
14100 ;;
14101
14102 hpux10* | hpux11*)
14103 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14104 case "$host_cpu" in
14105 hppa*64*|ia64*)
14106 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14107 ;;
14108 *)
14109 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14110 ;;
14111 esac
14112 else
14113 case "$host_cpu" in
14114 hppa*64*|ia64*)
14115 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14116 ;;
14117 *)
14118 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14119 ;;
14120 esac
14121 fi
14122 if test "$with_gnu_ld" = no; then
14123 case "$host_cpu" in
14124 hppa*64*)
14125 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14126 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14127 hardcode_libdir_separator_F77=:
14128 hardcode_direct_F77=no
14129 hardcode_shlibpath_var_F77=no
14130 ;;
14131 ia64*)
14132 hardcode_libdir_flag_spec_F77='-L$libdir'
14133 hardcode_direct_F77=no
14134 hardcode_shlibpath_var_F77=no
14135
14136 # hardcode_minus_L: Not really in the search PATH,
14137 # but as the default location of the library.
14138 hardcode_minus_L_F77=yes
14139 ;;
14140 *)
14141 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14142 hardcode_libdir_separator_F77=:
14143 hardcode_direct_F77=yes
14144 export_dynamic_flag_spec_F77='${wl}-E'
14145
14146 # hardcode_minus_L: Not really in the search PATH,
14147 # but as the default location of the library.
14148 hardcode_minus_L_F77=yes
14149 ;;
14150 esac
14151 fi
14152 ;;
14153
14154 irix5* | irix6* | nonstopux*)
14155 if test "$GCC" = yes; then
14156 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14157 else
14158 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14159 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14160 fi
14161 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14162 hardcode_libdir_separator_F77=:
14163 link_all_deplibs_F77=yes
14164 ;;
14165
14166 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14168 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14169 else
14170 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14171 fi
14172 hardcode_libdir_flag_spec_F77='-R$libdir'
14173 hardcode_direct_F77=yes
14174 hardcode_shlibpath_var_F77=no
14175 ;;
14176
14177 newsos6)
14178 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14179 hardcode_direct_F77=yes
14180 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14181 hardcode_libdir_separator_F77=:
14182 hardcode_shlibpath_var_F77=no
14183 ;;
14184
14185 openbsd*)
14186 hardcode_direct_F77=yes
14187 hardcode_shlibpath_var_F77=no
14188 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14189 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14190 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14191 export_dynamic_flag_spec_F77='${wl}-E'
14192 else
14193 case $host_os in
14194 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14195 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14196 hardcode_libdir_flag_spec_F77='-R$libdir'
14197 ;;
14198 *)
14199 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14200 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14201 ;;
14202 esac
14203 fi
14204 ;;
14205
14206 os2*)
14207 hardcode_libdir_flag_spec_F77='-L$libdir'
14208 hardcode_minus_L_F77=yes
14209 allow_undefined_flag_F77=unsupported
14210 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14211 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14212 ;;
14213
14214 osf3*)
14215 if test "$GCC" = yes; then
14216 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14217 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14218 else
14219 allow_undefined_flag_F77=' -expect_unresolved \*'
14220 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14221 fi
14222 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14223 hardcode_libdir_separator_F77=:
14224 ;;
14225
14226 osf4* | osf5*) # as osf3* with the addition of -msym flag
14227 if test "$GCC" = yes; then
14228 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14229 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14230 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14231 else
14232 allow_undefined_flag_F77=' -expect_unresolved \*'
14233 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14234 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14235 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14236
14237 # Both c and cxx compiler support -rpath directly
14238 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14239 fi
14240 hardcode_libdir_separator_F77=:
14241 ;;
14242
14243 sco3.2v5*)
14244 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14245 hardcode_shlibpath_var_F77=no
14246 export_dynamic_flag_spec_F77='${wl}-Bexport'
14247 runpath_var=LD_RUN_PATH
14248 hardcode_runpath_var=yes
14249 ;;
14250
14251 solaris*)
14252 no_undefined_flag_F77=' -z text'
14253 if test "$GCC" = yes; then
14254 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14255 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14256 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14257 else
14258 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14260 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14261 fi
14262 hardcode_libdir_flag_spec_F77='-R$libdir'
14263 hardcode_shlibpath_var_F77=no
14264 case $host_os in
14265 solaris2.[0-5] | solaris2.[0-5].*) ;;
14266 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14267 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14268 esac
14269 link_all_deplibs_F77=yes
14270 ;;
14271
14272 sunos4*)
14273 if test "x$host_vendor" = xsequent; then
14274 # Use $CC to link under sequent, because it throws in some extra .o
14275 # files that make .init and .fini sections work.
14276 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14277 else
14278 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14279 fi
14280 hardcode_libdir_flag_spec_F77='-L$libdir'
14281 hardcode_direct_F77=yes
14282 hardcode_minus_L_F77=yes
14283 hardcode_shlibpath_var_F77=no
14284 ;;
14285
14286 sysv4)
14287 case $host_vendor in
14288 sni)
14289 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14290 hardcode_direct_F77=yes # is this really true???
14291 ;;
14292 siemens)
14293 ## LD is ld it makes a PLAMLIB
14294 ## CC just makes a GrossModule.
14295 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14296 reload_cmds_F77='$CC -r -o $output$reload_objs'
14297 hardcode_direct_F77=no
14298 ;;
14299 motorola)
14300 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14301 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14302 ;;
14303 esac
14304 runpath_var='LD_RUN_PATH'
14305 hardcode_shlibpath_var_F77=no
14306 ;;
14307
14308 sysv4.3*)
14309 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14310 hardcode_shlibpath_var_F77=no
14311 export_dynamic_flag_spec_F77='-Bexport'
14312 ;;
14313
14314 sysv4*MP*)
14315 if test -d /usr/nec; then
14316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14317 hardcode_shlibpath_var_F77=no
14318 runpath_var=LD_RUN_PATH
14319 hardcode_runpath_var=yes
14320 ld_shlibs_F77=yes
14321 fi
14322 ;;
14323
14324 sysv4.2uw2*)
14325 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14326 hardcode_direct_F77=yes
14327 hardcode_minus_L_F77=no
14328 hardcode_shlibpath_var_F77=no
14329 hardcode_runpath_var=yes
14330 runpath_var=LD_RUN_PATH
14331 ;;
14332
14333 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14334 no_undefined_flag_F77='${wl}-z ${wl}text'
14335 if test "$GCC" = yes; then
14336 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14337 else
14338 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14339 fi
14340 runpath_var='LD_RUN_PATH'
14341 hardcode_shlibpath_var_F77=no
14342 ;;
14343
14344 sysv5*)
14345 no_undefined_flag_F77=' -z text'
14346 # $CC -shared without GNU ld will not create a library from C++
14347 # object files and a static libstdc++, better avoid it by now
14348 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14350 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14351 hardcode_libdir_flag_spec_F77=
14352 hardcode_shlibpath_var_F77=no
14353 runpath_var='LD_RUN_PATH'
14354 ;;
14355
14356 uts4*)
14357 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358 hardcode_libdir_flag_spec_F77='-L$libdir'
14359 hardcode_shlibpath_var_F77=no
14360 ;;
14361
14362 *)
14363 ld_shlibs_F77=no
14364 ;;
14365 esac
14366 fi
14367
14368echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14369echo "${ECHO_T}$ld_shlibs_F77" >&6
14370test "$ld_shlibs_F77" = no && can_build_shared=no
14371
14372variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14373if test "$GCC" = yes; then
14374 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14375fi
14376
14377#
14378# Do we need to explicitly link libc?
14379#
14380case "x$archive_cmds_need_lc_F77" in
14381x|xyes)
14382 # Assume -lc should be added
14383 archive_cmds_need_lc_F77=yes
14384
14385 if test "$enable_shared" = yes && test "$GCC" = yes; then
14386 case $archive_cmds_F77 in
14387 *'~'*)
14388 # FIXME: we may have to deal with multi-command sequences.
14389 ;;
14390 '$CC '*)
14391 # Test whether the compiler implicitly links with -lc since on some
14392 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14393 # to ld, don't add -lc before -lgcc.
14394 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14395echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14396 $rm conftest*
14397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14398
14399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14400 (eval $ac_compile) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } 2>conftest.err; then
14404 soname=conftest
14405 lib=conftest
14406 libobjs=conftest.$ac_objext
14407 deplibs=
14408 wl=$lt_prog_compiler_wl_F77
14409 compiler_flags=-v
14410 linker_flags=-v
14411 verstring=
14412 output_objdir=.
14413 libname=conftest
14414 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14415 allow_undefined_flag_F77=
14416 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14417 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }
14421 then
14422 archive_cmds_need_lc_F77=no
14423 else
14424 archive_cmds_need_lc_F77=yes
14425 fi
14426 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14427 else
14428 cat conftest.err 1>&5
14429 fi
14430 $rm conftest*
14431 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14432echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14433 ;;
14434 esac
14435 fi
14436 ;;
14437esac
14438
14439echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14440echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14441library_names_spec=
14442libname_spec='lib$name'
14443soname_spec=
14444shrext_cmds=".so"
14445postinstall_cmds=
14446postuninstall_cmds=
14447finish_cmds=
14448finish_eval=
14449shlibpath_var=
14450shlibpath_overrides_runpath=unknown
14451version_type=none
14452dynamic_linker="$host_os ld.so"
14453sys_lib_dlsearch_path_spec="/lib /usr/lib"
14454if test "$GCC" = yes; then
14455 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14456 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14457 # if the path contains ";" then we assume it to be the separator
14458 # otherwise default to the standard path separator (i.e. ":") - it is
14459 # assumed that no part of a normal pathname contains ";" but that should
14460 # okay in the real world where ";" in dirpaths is itself problematic.
14461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14462 else
14463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14464 fi
14465else
14466 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14467fi
14468need_lib_prefix=unknown
14469hardcode_into_libs=no
14470
14471# when you set need_version to no, make sure it does not cause -set_version
14472# flags to be left without arguments
14473need_version=unknown
14474
14475case $host_os in
14476aix3*)
14477 version_type=linux
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14479 shlibpath_var=LIBPATH
14480
14481 # AIX 3 has no versioning support, so we append a major version to the name.
14482 soname_spec='${libname}${release}${shared_ext}$major'
14483 ;;
14484
14485aix4* | aix5*)
14486 version_type=linux
14487 need_lib_prefix=no
14488 need_version=no
14489 hardcode_into_libs=yes
14490 if test "$host_cpu" = ia64; then
14491 # AIX 5 supports IA64
14492 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 else
14495 # With GCC up to 2.95.x, collect2 would create an import file
14496 # for dependence libraries. The import file would start with
14497 # the line `#! .'. This would cause the generated library to
14498 # depend on `.', always an invalid library. This was fixed in
14499 # development snapshots of GCC prior to 3.0.
14500 case $host_os in
14501 aix4 | aix4.[01] | aix4.[01].*)
14502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14503 echo ' yes '
14504 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14505 :
14506 else
14507 can_build_shared=no
14508 fi
14509 ;;
14510 esac
14511 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14512 # soname into executable. Probably we can add versioning support to
14513 # collect2, so additional links can be useful in future.
14514 if test "$aix_use_runtimelinking" = yes; then
14515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14516 # instead of lib<name>.a to let people know that these are not
14517 # typical AIX shared libraries.
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 else
14520 # We preserve .a as extension for shared libraries through AIX4.2
14521 # and later when we are not doing run time linking.
14522 library_names_spec='${libname}${release}.a $libname.a'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 fi
14525 shlibpath_var=LIBPATH
14526 fi
14527 ;;
14528
14529amigaos*)
14530 library_names_spec='$libname.ixlibrary $libname.a'
14531 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14532 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'
14533 ;;
14534
14535beos*)
14536 library_names_spec='${libname}${shared_ext}'
14537 dynamic_linker="$host_os ld.so"
14538 shlibpath_var=LIBRARY_PATH
14539 ;;
14540
14541bsdi4*)
14542 version_type=linux
14543 need_version=no
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14550 # the default ld.so.conf also contains /usr/contrib/lib and
14551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14552 # libtool to hard-code these into programs
14553 ;;
14554
14555cygwin* | mingw* | pw32*)
14556 version_type=windows
14557 shrext_cmds=".dll"
14558 need_version=no
14559 need_lib_prefix=no
14560
14561 case $GCC,$host_os in
14562 yes,cygwin* | yes,mingw* | yes,pw32*)
14563 library_names_spec='$libname.dll.a'
14564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14565 postinstall_cmds='base_file=`basename \${file}`~
14566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14567 dldir=$destdir/`dirname \$dlpath`~
14568 test -d \$dldir || mkdir -p \$dldir~
14569 $install_prog $dir/$dlname \$dldir/$dlname'
14570 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14571 dlpath=$dir/\$dldll~
14572 $rm \$dlpath'
14573 shlibpath_overrides_runpath=yes
14574
14575 case $host_os in
14576 cygwin*)
14577 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14578 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14579 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14580 ;;
14581 mingw*)
14582 # MinGW DLLs use traditional 'lib' prefix
14583 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14584 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14585 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14586 # It is most probably a Windows format PATH printed by
14587 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14588 # path with ; separators, and with drive letters. We can handle the
14589 # drive letters (cygwin fileutils understands them), so leave them,
14590 # especially as we might pass files found there to a mingw objdump,
14591 # which wouldn't understand a cygwinified path. Ahh.
14592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14593 else
14594 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14595 fi
14596 ;;
14597 pw32*)
14598 # pw32 DLLs use 'pw' prefix rather than 'lib'
14599 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14600 ;;
14601 esac
14602 ;;
14603
14604 *)
14605 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14606 ;;
14607 esac
14608 dynamic_linker='Win32 ld.exe'
14609 # FIXME: first we should search . and the directory the executable is in
14610 shlibpath_var=PATH
14611 ;;
14612
14613darwin* | rhapsody*)
14614 dynamic_linker="$host_os dyld"
14615 version_type=darwin
14616 need_lib_prefix=no
14617 need_version=no
14618 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14619 soname_spec='${libname}${release}${major}$shared_ext'
14620 shlibpath_overrides_runpath=yes
14621 shlibpath_var=DYLD_LIBRARY_PATH
14622 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14623 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14624 if test "$GCC" = yes; then
14625 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14626 else
14627 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14628 fi
14629 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14630 ;;
14631
14632dgux*)
14633 version_type=linux
14634 need_lib_prefix=no
14635 need_version=no
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 ;;
14640
14641freebsd1*)
14642 dynamic_linker=no
14643 ;;
14644
14645kfreebsd*-gnu)
14646 version_type=linux
14647 need_lib_prefix=no
14648 need_version=no
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14650 soname_spec='${libname}${release}${shared_ext}$major'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 shlibpath_overrides_runpath=no
14653 hardcode_into_libs=yes
14654 dynamic_linker='GNU ld.so'
14655 ;;
14656
14657freebsd*)
14658 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14659 version_type=freebsd-$objformat
14660 case $version_type in
14661 freebsd-elf*)
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14663 need_version=no
14664 need_lib_prefix=no
14665 ;;
14666 freebsd-*)
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14668 need_version=yes
14669 ;;
14670 esac
14671 shlibpath_var=LD_LIBRARY_PATH
14672 case $host_os in
14673 freebsd2*)
14674 shlibpath_overrides_runpath=yes
14675 ;;
14676 freebsd3.01* | freebsdelf3.01*)
14677 shlibpath_overrides_runpath=yes
14678 hardcode_into_libs=yes
14679 ;;
14680 *) # from 3.2 on
14681 shlibpath_overrides_runpath=no
14682 hardcode_into_libs=yes
14683 ;;
14684 esac
14685 ;;
14686
14687gnu*)
14688 version_type=linux
14689 need_lib_prefix=no
14690 need_version=no
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 hardcode_into_libs=yes
14695 ;;
14696
14697hpux9* | hpux10* | hpux11*)
14698 # Give a soname corresponding to the major version so that dld.sl refuses to
14699 # link against other versions.
14700 version_type=sunos
14701 need_lib_prefix=no
14702 need_version=no
14703 case "$host_cpu" in
14704 ia64*)
14705 shrext_cmds='.so'
14706 hardcode_into_libs=yes
14707 dynamic_linker="$host_os dld.so"
14708 shlibpath_var=LD_LIBRARY_PATH
14709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14712 if test "X$HPUX_IA64_MODE" = X32; then
14713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14714 else
14715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14716 fi
14717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14718 ;;
14719 hppa*64*)
14720 shrext_cmds='.sl'
14721 hardcode_into_libs=yes
14722 dynamic_linker="$host_os dld.sl"
14723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14729 ;;
14730 *)
14731 shrext_cmds='.sl'
14732 dynamic_linker="$host_os dld.sl"
14733 shlibpath_var=SHLIB_PATH
14734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 ;;
14738 esac
14739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14740 postinstall_cmds='chmod 555 $lib'
14741 ;;
14742
14743irix5* | irix6* | nonstopux*)
14744 case $host_os in
14745 nonstopux*) version_type=nonstopux ;;
14746 *)
14747 if test "$lt_cv_prog_gnu_ld" = yes; then
14748 version_type=linux
14749 else
14750 version_type=irix
14751 fi ;;
14752 esac
14753 need_lib_prefix=no
14754 need_version=no
14755 soname_spec='${libname}${release}${shared_ext}$major'
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14757 case $host_os in
14758 irix5* | nonstopux*)
14759 libsuff= shlibsuff=
14760 ;;
14761 *)
14762 case $LD in # libtool.m4 will add one of these switches to LD
14763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14764 libsuff= shlibsuff= libmagic=32-bit;;
14765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14766 libsuff=32 shlibsuff=N32 libmagic=N32;;
14767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14768 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14769 *) libsuff= shlibsuff= libmagic=never-match;;
14770 esac
14771 ;;
14772 esac
14773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14774 shlibpath_overrides_runpath=no
14775 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14776 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14777 hardcode_into_libs=yes
14778 ;;
14779
14780# No shared lib support for Linux oldld, aout, or coff.
14781linux*oldld* | linux*aout* | linux*coff*)
14782 dynamic_linker=no
14783 ;;
14784
14785# This must be Linux ELF.
14786linux*)
14787 version_type=linux
14788 need_lib_prefix=no
14789 need_version=no
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 shlibpath_overrides_runpath=no
14795 # This implies no fast_install, which is unacceptable.
14796 # Some rework will be needed to allow for fast_install
14797 # before this can be enabled.
14798 hardcode_into_libs=yes
14799
14800 # Append ld.so.conf contents to the search path
14801 if test -f /etc/ld.so.conf; then
14802 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14803 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14804 fi
14805
14806 # We used to test for /lib/ld.so.1 and disable shared libraries on
14807 # powerpc, because MkLinux only supported shared libraries with the
14808 # GNU dynamic linker. Since this was broken with cross compilers,
14809 # most powerpc-linux boxes support dynamic linking these days and
14810 # people can always --disable-shared, the test was removed, and we
14811 # assume the GNU/Linux dynamic linker is in use.
14812 dynamic_linker='GNU/Linux ld.so'
14813 ;;
14814
14815netbsdelf*-gnu)
14816 version_type=linux
14817 need_lib_prefix=no
14818 need_version=no
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14820 soname_spec='${libname}${release}${shared_ext}$major'
14821 shlibpath_var=LD_LIBRARY_PATH
14822 shlibpath_overrides_runpath=no
14823 hardcode_into_libs=yes
14824 dynamic_linker='NetBSD ld.elf_so'
14825 ;;
14826
14827knetbsd*-gnu)
14828 version_type=linux
14829 need_lib_prefix=no
14830 need_version=no
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 shlibpath_overrides_runpath=no
14835 hardcode_into_libs=yes
14836 dynamic_linker='GNU ld.so'
14837 ;;
14838
14839netbsd*)
14840 version_type=sunos
14841 need_lib_prefix=no
14842 need_version=no
14843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14846 dynamic_linker='NetBSD (a.out) ld.so'
14847 else
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 dynamic_linker='NetBSD ld.elf_so'
14851 fi
14852 shlibpath_var=LD_LIBRARY_PATH
14853 shlibpath_overrides_runpath=yes
14854 hardcode_into_libs=yes
14855 ;;
14856
14857newsos6)
14858 version_type=linux
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=yes
14862 ;;
14863
14864nto-qnx*)
14865 version_type=linux
14866 need_lib_prefix=no
14867 need_version=no
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath=yes
14872 ;;
14873
14874openbsd*)
14875 version_type=sunos
14876 need_lib_prefix=no
14877 need_version=yes
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14880 shlibpath_var=LD_LIBRARY_PATH
14881 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14882 case $host_os in
14883 openbsd2.[89] | openbsd2.[89].*)
14884 shlibpath_overrides_runpath=no
14885 ;;
14886 *)
14887 shlibpath_overrides_runpath=yes
14888 ;;
14889 esac
14890 else
14891 shlibpath_overrides_runpath=yes
14892 fi
14893 ;;
14894
14895os2*)
14896 libname_spec='$name'
14897 shrext_cmds=".dll"
14898 need_lib_prefix=no
14899 library_names_spec='$libname${shared_ext} $libname.a'
14900 dynamic_linker='OS/2 ld.exe'
14901 shlibpath_var=LIBPATH
14902 ;;
14903
14904osf3* | osf4* | osf5*)
14905 version_type=osf
14906 need_lib_prefix=no
14907 need_version=no
14908 soname_spec='${libname}${release}${shared_ext}$major'
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 shlibpath_var=LD_LIBRARY_PATH
14911 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14912 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14913 ;;
14914
14915sco3.2v5*)
14916 version_type=osf
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919 shlibpath_var=LD_LIBRARY_PATH
14920 ;;
14921
14922solaris*)
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 shlibpath_overrides_runpath=yes
14930 hardcode_into_libs=yes
14931 # ldd complains unless libraries are executable
14932 postinstall_cmds='chmod +x $lib'
14933 ;;
14934
14935sunos4*)
14936 version_type=sunos
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=yes
14941 if test "$with_gnu_ld" = yes; then
14942 need_lib_prefix=no
14943 fi
14944 need_version=yes
14945 ;;
14946
14947sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14948 version_type=linux
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 case $host_vendor in
14953 sni)
14954 shlibpath_overrides_runpath=no
14955 need_lib_prefix=no
14956 export_dynamic_flag_spec='${wl}-Blargedynsym'
14957 runpath_var=LD_RUN_PATH
14958 ;;
14959 siemens)
14960 need_lib_prefix=no
14961 ;;
14962 motorola)
14963 need_lib_prefix=no
14964 need_version=no
14965 shlibpath_overrides_runpath=no
14966 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14967 ;;
14968 esac
14969 ;;
14970
14971sysv4*MP*)
14972 if test -d /usr/nec ;then
14973 version_type=linux
14974 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14975 soname_spec='$libname${shared_ext}.$major'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 fi
14978 ;;
14979
14980uts4*)
14981 version_type=linux
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 ;;
14986
14987*)
14988 dynamic_linker=no
14989 ;;
14990esac
14991echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14992echo "${ECHO_T}$dynamic_linker" >&6
14993test "$dynamic_linker" = no && can_build_shared=no
14994
14995echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14996echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14997hardcode_action_F77=
14998if test -n "$hardcode_libdir_flag_spec_F77" || \
14999 test -n "$runpath_var F77" || \
15000 test "X$hardcode_automatic_F77"="Xyes" ; then
15001
15002 # We can hardcode non-existant directories.
15003 if test "$hardcode_direct_F77" != no &&
15004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15005 # have to relink, otherwise we might link with an installed library
15006 # when we should be linking with a yet-to-be-installed one
15007 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15008 test "$hardcode_minus_L_F77" != no; then
15009 # Linking always hardcodes the temporary library directory.
15010 hardcode_action_F77=relink
15011 else
15012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15013 hardcode_action_F77=immediate
15014 fi
15015else
15016 # We cannot hardcode anything, or else we can only hardcode existing
15017 # directories.
15018 hardcode_action_F77=unsupported
15019fi
15020echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15021echo "${ECHO_T}$hardcode_action_F77" >&6
15022
15023if test "$hardcode_action_F77" = relink; then
15024 # Fast installation is not supported
15025 enable_fast_install=no
15026elif test "$shlibpath_overrides_runpath" = yes ||
15027 test "$enable_shared" = no; then
15028 # Fast installation is not necessary
15029 enable_fast_install=needless
15030fi
15031
15032striplib=
15033old_striplib=
15034echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15035echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15036if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15037 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15038 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15039 echo "$as_me:$LINENO: result: yes" >&5
15040echo "${ECHO_T}yes" >&6
15041else
15042# FIXME - insert some real tests, host_os isn't really good enough
15043 case $host_os in
15044 darwin*)
15045 if test -n "$STRIP" ; then
15046 striplib="$STRIP -x"
15047 echo "$as_me:$LINENO: result: yes" >&5
15048echo "${ECHO_T}yes" >&6
15049 else
15050 echo "$as_me:$LINENO: result: no" >&5
15051echo "${ECHO_T}no" >&6
15052fi
15053 ;;
15054 *)
15055 echo "$as_me:$LINENO: result: no" >&5
15056echo "${ECHO_T}no" >&6
15057 ;;
15058 esac
15059fi
15060
15061
15062
15063# The else clause should only fire when bootstrapping the
15064# libtool distribution, otherwise you forgot to ship ltmain.sh
15065# with your package, and you will get complaints that there are
15066# no rules to generate ltmain.sh.
15067if test -f "$ltmain"; then
15068 # See if we are running on zsh, and set the options which allow our commands through
15069 # without removal of \ escapes.
15070 if test -n "${ZSH_VERSION+set}" ; then
15071 setopt NO_GLOB_SUBST
15072 fi
15073 # Now quote all the things that may contain metacharacters while being
15074 # careful not to overquote the AC_SUBSTed values. We take copies of the
15075 # variables and quote the copies for generation of the libtool script.
15076 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15077 SED SHELL STRIP \
15078 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15079 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15080 deplibs_check_method reload_flag reload_cmds need_locks \
15081 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15082 lt_cv_sys_global_symbol_to_c_name_address \
15083 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15084 old_postinstall_cmds old_postuninstall_cmds \
15085 compiler_F77 \
15086 CC_F77 \
15087 LD_F77 \
15088 lt_prog_compiler_wl_F77 \
15089 lt_prog_compiler_pic_F77 \
15090 lt_prog_compiler_static_F77 \
15091 lt_prog_compiler_no_builtin_flag_F77 \
15092 export_dynamic_flag_spec_F77 \
15093 thread_safe_flag_spec_F77 \
15094 whole_archive_flag_spec_F77 \
15095 enable_shared_with_static_runtimes_F77 \
15096 old_archive_cmds_F77 \
15097 old_archive_from_new_cmds_F77 \
15098 predep_objects_F77 \
15099 postdep_objects_F77 \
15100 predeps_F77 \
15101 postdeps_F77 \
15102 compiler_lib_search_path_F77 \
15103 archive_cmds_F77 \
15104 archive_expsym_cmds_F77 \
15105 postinstall_cmds_F77 \
15106 postuninstall_cmds_F77 \
15107 old_archive_from_expsyms_cmds_F77 \
15108 allow_undefined_flag_F77 \
15109 no_undefined_flag_F77 \
15110 export_symbols_cmds_F77 \
15111 hardcode_libdir_flag_spec_F77 \
15112 hardcode_libdir_flag_spec_ld_F77 \
15113 hardcode_libdir_separator_F77 \
15114 hardcode_automatic_F77 \
15115 module_cmds_F77 \
15116 module_expsym_cmds_F77 \
15117 lt_cv_prog_compiler_c_o_F77 \
15118 exclude_expsyms_F77 \
15119 include_expsyms_F77; do
15120
15121 case $var in
15122 old_archive_cmds_F77 | \
15123 old_archive_from_new_cmds_F77 | \
15124 archive_cmds_F77 | \
15125 archive_expsym_cmds_F77 | \
15126 module_cmds_F77 | \
15127 module_expsym_cmds_F77 | \
15128 old_archive_from_expsyms_cmds_F77 | \
15129 export_symbols_cmds_F77 | \
15130 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15131 postinstall_cmds | postuninstall_cmds | \
15132 old_postinstall_cmds | old_postuninstall_cmds | \
15133 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15134 # Double-quote double-evaled strings.
15135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15136 ;;
15137 *)
15138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15139 ;;
15140 esac
15141 done
15142
15143 case $lt_echo in
15144 *'\$0 --fallback-echo"')
15145 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15146 ;;
15147 esac
15148
15149cfgfile="$ofile"
15150
15151 cat <<__EOF__ >> "$cfgfile"
15152# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15153
15154# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15155
15156# Shell to use when invoking shell scripts.
15157SHELL=$lt_SHELL
15158
15159# Whether or not to build shared libraries.
15160build_libtool_libs=$enable_shared
15161
15162# Whether or not to build static libraries.
15163build_old_libs=$enable_static
15164
15165# Whether or not to add -lc for building shared libraries.
15166build_libtool_need_lc=$archive_cmds_need_lc_F77
15167
15168# Whether or not to disallow shared libs when runtime libs are static
15169allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15170
15171# Whether or not to optimize for fast installation.
15172fast_install=$enable_fast_install
15173
15174# The host system.
15175host_alias=$host_alias
15176host=$host
15177
15178# An echo program that does not interpret backslashes.
15179echo=$lt_echo
15180
15181# The archiver.
15182AR=$lt_AR
15183AR_FLAGS=$lt_AR_FLAGS
15184
15185# A C compiler.
15186LTCC=$lt_LTCC
15187
15188# A language-specific compiler.
15189CC=$lt_compiler_F77
15190
15191# Is the compiler the GNU C compiler?
15192with_gcc=$GCC_F77
15193
15194# An ERE matcher.
15195EGREP=$lt_EGREP
15196
15197# The linker used to build libraries.
15198LD=$lt_LD_F77
15199
15200# Whether we need hard or soft links.
15201LN_S=$lt_LN_S
15202
15203# A BSD-compatible nm program.
15204NM=$lt_NM
15205
15206# A symbol stripping program
15207STRIP=$lt_STRIP
15208
15209# Used to examine libraries when file_magic_cmd begins "file"
15210MAGIC_CMD=$MAGIC_CMD
15211
15212# Used on cygwin: DLL creation program.
15213DLLTOOL="$DLLTOOL"
15214
15215# Used on cygwin: object dumper.
15216OBJDUMP="$OBJDUMP"
15217
15218# Used on cygwin: assembler.
15219AS="$AS"
15220
15221# The name of the directory that contains temporary libtool files.
15222objdir=$objdir
15223
15224# How to create reloadable object files.
15225reload_flag=$lt_reload_flag
15226reload_cmds=$lt_reload_cmds
15227
15228# How to pass a linker flag through the compiler.
15229wl=$lt_lt_prog_compiler_wl_F77
15230
15231# Object file suffix (normally "o").
15232objext="$ac_objext"
15233
15234# Old archive suffix (normally "a").
15235libext="$libext"
15236
15237# Shared library suffix (normally ".so").
15238shrext_cmds='$shrext_cmds'
15239
15240# Executable file suffix (normally "").
15241exeext="$exeext"
15242
15243# Additional compiler flags for building library objects.
15244pic_flag=$lt_lt_prog_compiler_pic_F77
15245pic_mode=$pic_mode
15246
15247# What is the maximum length of a command?
15248max_cmd_len=$lt_cv_sys_max_cmd_len
15249
15250# Does compiler simultaneously support -c and -o options?
15251compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15252
15253# Must we lock files when doing compilation ?
15254need_locks=$lt_need_locks
15255
15256# Do we need the lib prefix for modules?
15257need_lib_prefix=$need_lib_prefix
15258
15259# Do we need a version for libraries?
15260need_version=$need_version
15261
15262# Whether dlopen is supported.
15263dlopen_support=$enable_dlopen
15264
15265# Whether dlopen of programs is supported.
15266dlopen_self=$enable_dlopen_self
15267
15268# Whether dlopen of statically linked programs is supported.
15269dlopen_self_static=$enable_dlopen_self_static
15270
15271# Compiler flag to prevent dynamic linking.
15272link_static_flag=$lt_lt_prog_compiler_static_F77
15273
15274# Compiler flag to turn off builtin functions.
15275no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15276
15277# Compiler flag to allow reflexive dlopens.
15278export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15279
15280# Compiler flag to generate shared objects directly from archives.
15281whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15282
15283# Compiler flag to generate thread-safe objects.
15284thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15285
15286# Library versioning type.
15287version_type=$version_type
15288
15289# Format of library name prefix.
15290libname_spec=$lt_libname_spec
15291
15292# List of archive names. First name is the real one, the rest are links.
15293# The last name is the one that the linker finds with -lNAME.
15294library_names_spec=$lt_library_names_spec
15295
15296# The coded name of the library, if different from the real name.
15297soname_spec=$lt_soname_spec
15298
15299# Commands used to build and install an old-style archive.
15300RANLIB=$lt_RANLIB
15301old_archive_cmds=$lt_old_archive_cmds_F77
15302old_postinstall_cmds=$lt_old_postinstall_cmds
15303old_postuninstall_cmds=$lt_old_postuninstall_cmds
15304
15305# Create an old-style archive from a shared archive.
15306old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15307
15308# Create a temporary old-style archive to link instead of a shared archive.
15309old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15310
15311# Commands used to build and install a shared archive.
15312archive_cmds=$lt_archive_cmds_F77
15313archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15314postinstall_cmds=$lt_postinstall_cmds
15315postuninstall_cmds=$lt_postuninstall_cmds
15316
15317# Commands used to build a loadable module (assumed same as above if empty)
15318module_cmds=$lt_module_cmds_F77
15319module_expsym_cmds=$lt_module_expsym_cmds_F77
15320
15321# Commands to strip libraries.
15322old_striplib=$lt_old_striplib
15323striplib=$lt_striplib
15324
15325# Dependencies to place before the objects being linked to create a
15326# shared library.
15327predep_objects=$lt_predep_objects_F77
15328
15329# Dependencies to place after the objects being linked to create a
15330# shared library.
15331postdep_objects=$lt_postdep_objects_F77
15332
15333# Dependencies to place before the objects being linked to create a
15334# shared library.
15335predeps=$lt_predeps_F77
15336
15337# Dependencies to place after the objects being linked to create a
15338# shared library.
15339postdeps=$lt_postdeps_F77
15340
15341# The library search path used internally by the compiler when linking
15342# a shared library.
15343compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15344
15345# Method to check whether dependent libraries are shared objects.
15346deplibs_check_method=$lt_deplibs_check_method
15347
15348# Command to use when deplibs_check_method == file_magic.
15349file_magic_cmd=$lt_file_magic_cmd
15350
15351# Flag that allows shared libraries with undefined symbols to be built.
15352allow_undefined_flag=$lt_allow_undefined_flag_F77
15353
15354# Flag that forces no undefined symbols.
15355no_undefined_flag=$lt_no_undefined_flag_F77
15356
15357# Commands used to finish a libtool library installation in a directory.
15358finish_cmds=$lt_finish_cmds
15359
15360# Same as above, but a single script fragment to be evaled but not shown.
15361finish_eval=$lt_finish_eval
15362
15363# Take the output of nm and produce a listing of raw symbols and C names.
15364global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15365
15366# Transform the output of nm in a proper C declaration
15367global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15368
15369# Transform the output of nm in a C name address pair
15370global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15371
15372# This is the shared library runtime path variable.
15373runpath_var=$runpath_var
15374
15375# This is the shared library path variable.
15376shlibpath_var=$shlibpath_var
15377
15378# Is shlibpath searched before the hard-coded library search path?
15379shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15380
15381# How to hardcode a shared library path into an executable.
15382hardcode_action=$hardcode_action_F77
15383
15384# Whether we should hardcode library paths into libraries.
15385hardcode_into_libs=$hardcode_into_libs
15386
15387# Flag to hardcode \$libdir into a binary during linking.
15388# This must work even if \$libdir does not exist.
15389hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15390
15391# If ld is used when linking, flag to hardcode \$libdir into
15392# a binary during linking. This must work even if \$libdir does
15393# not exist.
15394hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15395
15396# Whether we need a single -rpath flag with a separated argument.
15397hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15398
15399# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15400# resulting binary.
15401hardcode_direct=$hardcode_direct_F77
15402
15403# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15404# resulting binary.
15405hardcode_minus_L=$hardcode_minus_L_F77
15406
15407# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15408# the resulting binary.
15409hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15410
15411# Set to yes if building a shared library automatically hardcodes DIR into the library
15412# and all subsequent libraries and executables linked against it.
15413hardcode_automatic=$hardcode_automatic_F77
15414
15415# Variables whose values should be saved in libtool wrapper scripts and
15416# restored at relink time.
15417variables_saved_for_relink="$variables_saved_for_relink"
15418
15419# Whether libtool must link a program against all its dependency libraries.
15420link_all_deplibs=$link_all_deplibs_F77
15421
15422# Compile-time system search path for libraries
15423sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15424
15425# Run-time system search path for libraries
15426sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15427
15428# Fix the shell variable \$srcfile for the compiler.
15429fix_srcfile_path="$fix_srcfile_path_F77"
15430
15431# Set to yes if exported symbols are required.
15432always_export_symbols=$always_export_symbols_F77
15433
15434# The commands to list exported symbols.
15435export_symbols_cmds=$lt_export_symbols_cmds_F77
15436
15437# The commands to extract the exported symbol list from a shared archive.
15438extract_expsyms_cmds=$lt_extract_expsyms_cmds
15439
15440# Symbols that should not be listed in the preloaded symbols.
15441exclude_expsyms=$lt_exclude_expsyms_F77
15442
15443# Symbols that must always be exported.
15444include_expsyms=$lt_include_expsyms_F77
15445
15446# ### END LIBTOOL TAG CONFIG: $tagname
15447
15448__EOF__
15449
15450
15451else
15452 # If there is no Makefile yet, we rely on a make rule to execute
15453 # `config.status --recheck' to rerun these tests and create the
15454 # libtool script then.
15455 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15456 if test -f "$ltmain_in"; then
15457 test -f Makefile && make "$ltmain"
15458 fi
15459fi
15460
15461
15462ac_ext=c
15463ac_cpp='$CPP $CPPFLAGS'
15464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15466ac_compiler_gnu=$ac_cv_c_compiler_gnu
15467
15468CC="$lt_save_CC"
15469
15470 else
15471 tagname=""
15472 fi
15473 ;;
15474
15475 GCJ)
15476 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15477
15478
15479
15480# Source file extension for Java test sources.
15481ac_ext=java
15482
15483# Object file extension for compiled Java test sources.
15484objext=o
15485objext_GCJ=$objext
15486
15487# Code to be used in simple compile tests
15488lt_simple_compile_test_code="class foo {}\n"
15489
15490# Code to be used in simple link tests
15491lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15492
15493# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15494
15495# If no C compiler was specified, use CC.
15496LTCC=${LTCC-"$CC"}
15497
15498# Allow CC to be a program name with arguments.
15499compiler=$CC
15500
15501
15502# Allow CC to be a program name with arguments.
15503lt_save_CC="$CC"
15504CC=${GCJ-"gcj"}
15505compiler=$CC
15506compiler_GCJ=$CC
15507
15508# GCJ did not exist at the time GCC didn't implicitly link libc in.
15509archive_cmds_need_lc_GCJ=no
15510
15511
15512lt_prog_compiler_no_builtin_flag_GCJ=
15513
15514if test "$GCC" = yes; then
15515 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15516
15517
15518echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15519echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15520if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15522else
15523 lt_cv_prog_compiler_rtti_exceptions=no
15524 ac_outfile=conftest.$ac_objext
15525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15526 lt_compiler_flag="-fno-rtti -fno-exceptions"
15527 # Insert the option either (1) after the last *FLAGS variable, or
15528 # (2) before a word containing "conftest.", or (3) at the end.
15529 # Note that $ac_compile itself does not contain backslashes and begins
15530 # with a dollar sign (not a hyphen), so the echo should work correctly.
15531 # The option is referenced via a variable to avoid confusing sed.
15532 lt_compile=`echo "$ac_compile" | $SED \
15533 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15535 -e 's:$: $lt_compiler_flag:'`
15536 (eval echo "\"\$as_me:15536: $lt_compile\"" >&5)
15537 (eval "$lt_compile" 2>conftest.err)
15538 ac_status=$?
15539 cat conftest.err >&5
15540 echo "$as_me:15540: \$? = $ac_status" >&5
15541 if (exit $ac_status) && test -s "$ac_outfile"; then
15542 # The compiler can only warn and ignore the option if not recognized
15543 # So say no if there are warnings
15544 if test ! -s conftest.err; then
15545 lt_cv_prog_compiler_rtti_exceptions=yes
15546 fi
15547 fi
15548 $rm conftest*
15549
15550fi
15551echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15552echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15553
15554if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15555 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15556else
15557 :
15558fi
15559
15560fi
15561
15562lt_prog_compiler_wl_GCJ=
15563lt_prog_compiler_pic_GCJ=
15564lt_prog_compiler_static_GCJ=
15565
15566echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15567echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15568
15569 if test "$GCC" = yes; then
15570 lt_prog_compiler_wl_GCJ='-Wl,'
15571 lt_prog_compiler_static_GCJ='-static'
15572
15573 case $host_os in
15574 aix*)
15575 # All AIX code is PIC.
15576 if test "$host_cpu" = ia64; then
15577 # AIX 5 now supports IA64 processor
15578 lt_prog_compiler_static_GCJ='-Bstatic'
15579 fi
15580 ;;
15581
15582 amigaos*)
15583 # FIXME: we need at least 68020 code to build shared libraries, but
15584 # adding the `-m68020' flag to GCC prevents building anything better,
15585 # like `-m68040'.
15586 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15587 ;;
15588
15589 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15590 # PIC is the default for these OSes.
15591 ;;
15592
15593 mingw* | pw32* | os2*)
15594 # This hack is so that the source file can tell whether it is being
15595 # built for inclusion in a dll (and should export symbols for example).
15596 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15597 ;;
15598
15599 darwin* | rhapsody*)
15600 # PIC is the default on this platform
15601 # Common symbols not allowed in MH_DYLIB files
15602 lt_prog_compiler_pic_GCJ='-fno-common'
15603 ;;
15604
15605 msdosdjgpp*)
15606 # Just because we use GCC doesn't mean we suddenly get shared libraries
15607 # on systems that don't support them.
15608 lt_prog_compiler_can_build_shared_GCJ=no
15609 enable_shared=no
15610 ;;
15611
15612 sysv4*MP*)
15613 if test -d /usr/nec; then
15614 lt_prog_compiler_pic_GCJ=-Kconform_pic
15615 fi
15616 ;;
15617
15618 hpux*)
15619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15620 # not for PA HP-UX.
15621 case "$host_cpu" in
15622 hppa*64*|ia64*)
15623 # +Z the default
15624 ;;
15625 *)
15626 lt_prog_compiler_pic_GCJ='-fPIC'
15627 ;;
15628 esac
15629 ;;
15630
15631 *)
15632 lt_prog_compiler_pic_GCJ='-fPIC'
15633 ;;
15634 esac
15635 else
15636 # PORTME Check for flag to pass linker flags through the system compiler.
15637 case $host_os in
15638 aix*)
15639 lt_prog_compiler_wl_GCJ='-Wl,'
15640 if test "$host_cpu" = ia64; then
15641 # AIX 5 now supports IA64 processor
15642 lt_prog_compiler_static_GCJ='-Bstatic'
15643 else
15644 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15645 fi
15646 ;;
15647
15648 mingw* | pw32* | os2*)
15649 # This hack is so that the source file can tell whether it is being
15650 # built for inclusion in a dll (and should export symbols for example).
15651 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15652 ;;
15653
15654 hpux9* | hpux10* | hpux11*)
15655 lt_prog_compiler_wl_GCJ='-Wl,'
15656 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15657 # not for PA HP-UX.
15658 case "$host_cpu" in
15659 hppa*64*|ia64*)
15660 # +Z the default
15661 ;;
15662 *)
15663 lt_prog_compiler_pic_GCJ='+Z'
15664 ;;
15665 esac
15666 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15667 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15668 ;;
15669
15670 irix5* | irix6* | nonstopux*)
15671 lt_prog_compiler_wl_GCJ='-Wl,'
15672 # PIC (with -KPIC) is the default.
15673 lt_prog_compiler_static_GCJ='-non_shared'
15674 ;;
15675
15676 newsos6)
15677 lt_prog_compiler_pic_GCJ='-KPIC'
15678 lt_prog_compiler_static_GCJ='-Bstatic'
15679 ;;
15680
15681 linux*)
15682 case $CC in
15683 icc* | ecc*)
15684 lt_prog_compiler_wl_GCJ='-Wl,'
15685 lt_prog_compiler_pic_GCJ='-KPIC'
15686 lt_prog_compiler_static_GCJ='-static'
15687 ;;
15688 ccc*)
15689 lt_prog_compiler_wl_GCJ='-Wl,'
15690 # All Alpha code is PIC.
15691 lt_prog_compiler_static_GCJ='-non_shared'
15692 ;;
15693 esac
15694 ;;
15695
15696 osf3* | osf4* | osf5*)
15697 lt_prog_compiler_wl_GCJ='-Wl,'
15698 # All OSF/1 code is PIC.
15699 lt_prog_compiler_static_GCJ='-non_shared'
15700 ;;
15701
15702 sco3.2v5*)
15703 lt_prog_compiler_pic_GCJ='-Kpic'
15704 lt_prog_compiler_static_GCJ='-dn'
15705 ;;
15706
15707 solaris*)
15708 lt_prog_compiler_wl_GCJ='-Wl,'
15709 lt_prog_compiler_pic_GCJ='-KPIC'
15710 lt_prog_compiler_static_GCJ='-Bstatic'
15711 ;;
15712
15713 sunos4*)
15714 lt_prog_compiler_wl_GCJ='-Qoption ld '
15715 lt_prog_compiler_pic_GCJ='-PIC'
15716 lt_prog_compiler_static_GCJ='-Bstatic'
15717 ;;
15718
15719 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15720 lt_prog_compiler_wl_GCJ='-Wl,'
15721 lt_prog_compiler_pic_GCJ='-KPIC'
15722 lt_prog_compiler_static_GCJ='-Bstatic'
15723 ;;
15724
15725 sysv4*MP*)
15726 if test -d /usr/nec ;then
15727 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15728 lt_prog_compiler_static_GCJ='-Bstatic'
15729 fi
15730 ;;
15731
15732 uts4*)
15733 lt_prog_compiler_pic_GCJ='-pic'
15734 lt_prog_compiler_static_GCJ='-Bstatic'
15735 ;;
15736
15737 *)
15738 lt_prog_compiler_can_build_shared_GCJ=no
15739 ;;
15740 esac
15741 fi
15742
15743echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15744echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15745
15746#
15747# Check to make sure the PIC flag actually works.
15748#
15749if test -n "$lt_prog_compiler_pic_GCJ"; then
15750
15751echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15752echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15753if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15755else
15756 lt_prog_compiler_pic_works_GCJ=no
15757 ac_outfile=conftest.$ac_objext
15758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15759 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15760 # Insert the option either (1) after the last *FLAGS variable, or
15761 # (2) before a word containing "conftest.", or (3) at the end.
15762 # Note that $ac_compile itself does not contain backslashes and begins
15763 # with a dollar sign (not a hyphen), so the echo should work correctly.
15764 # The option is referenced via a variable to avoid confusing sed.
15765 lt_compile=`echo "$ac_compile" | $SED \
15766 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15768 -e 's:$: $lt_compiler_flag:'`
15769 (eval echo "\"\$as_me:15769: $lt_compile\"" >&5)
15770 (eval "$lt_compile" 2>conftest.err)
15771 ac_status=$?
15772 cat conftest.err >&5
15773 echo "$as_me:15773: \$? = $ac_status" >&5
15774 if (exit $ac_status) && test -s "$ac_outfile"; then
15775 # The compiler can only warn and ignore the option if not recognized
15776 # So say no if there are warnings
15777 if test ! -s conftest.err; then
15778 lt_prog_compiler_pic_works_GCJ=yes
15779 fi
15780 fi
15781 $rm conftest*
15782
15783fi
15784echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15785echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15786
15787if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15788 case $lt_prog_compiler_pic_GCJ in
15789 "" | " "*) ;;
15790 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15791 esac
15792else
15793 lt_prog_compiler_pic_GCJ=
15794 lt_prog_compiler_can_build_shared_GCJ=no
15795fi
15796
15797fi
15798case "$host_os" in
15799 # For platforms which do not support PIC, -DPIC is meaningless:
15800 *djgpp*)
15801 lt_prog_compiler_pic_GCJ=
15802 ;;
15803 *)
15804 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15805 ;;
15806esac
15807
15808echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15809echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15810if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812else
15813 lt_cv_prog_compiler_c_o_GCJ=no
15814 $rm -r conftest 2>/dev/null
15815 mkdir conftest
15816 cd conftest
15817 mkdir out
15818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15819
15820 lt_compiler_flag="-o out/conftest2.$ac_objext"
15821 # Insert the option either (1) after the last *FLAGS variable, or
15822 # (2) before a word containing "conftest.", or (3) at the end.
15823 # Note that $ac_compile itself does not contain backslashes and begins
15824 # with a dollar sign (not a hyphen), so the echo should work correctly.
15825 lt_compile=`echo "$ac_compile" | $SED \
15826 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15828 -e 's:$: $lt_compiler_flag:'`
15829 (eval echo "\"\$as_me:15829: $lt_compile\"" >&5)
15830 (eval "$lt_compile" 2>out/conftest.err)
15831 ac_status=$?
15832 cat out/conftest.err >&5
15833 echo "$as_me:15833: \$? = $ac_status" >&5
15834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15835 then
15836 # The compiler can only warn and ignore the option if not recognized
15837 # So say no if there are warnings
15838 if test ! -s out/conftest.err; then
15839 lt_cv_prog_compiler_c_o_GCJ=yes
15840 fi
15841 fi
15842 chmod u+w .
15843 $rm conftest*
15844 # SGI C++ compiler will create directory out/ii_files/ for
15845 # template instantiation
15846 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15847 $rm out/* && rmdir out
15848 cd ..
15849 rmdir conftest
15850 $rm conftest*
15851
15852fi
15853echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15854echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15855
15856
15857hard_links="nottested"
15858if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15859 # do not overwrite the value of need_locks provided by the user
15860 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15861echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15862 hard_links=yes
15863 $rm conftest*
15864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15865 touch conftest.a
15866 ln conftest.a conftest.b 2>&5 || hard_links=no
15867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15868 echo "$as_me:$LINENO: result: $hard_links" >&5
15869echo "${ECHO_T}$hard_links" >&6
15870 if test "$hard_links" = no; then
15871 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15872echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15873 need_locks=warn
15874 fi
15875else
15876 need_locks=no
15877fi
15878
15879echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15880echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15881
15882 runpath_var=
15883 allow_undefined_flag_GCJ=
15884 enable_shared_with_static_runtimes_GCJ=no
15885 archive_cmds_GCJ=
15886 archive_expsym_cmds_GCJ=
15887 old_archive_From_new_cmds_GCJ=
15888 old_archive_from_expsyms_cmds_GCJ=
15889 export_dynamic_flag_spec_GCJ=
15890 whole_archive_flag_spec_GCJ=
15891 thread_safe_flag_spec_GCJ=
15892 hardcode_libdir_flag_spec_GCJ=
15893 hardcode_libdir_flag_spec_ld_GCJ=
15894 hardcode_libdir_separator_GCJ=
15895 hardcode_direct_GCJ=no
15896 hardcode_minus_L_GCJ=no
15897 hardcode_shlibpath_var_GCJ=unsupported
15898 link_all_deplibs_GCJ=unknown
15899 hardcode_automatic_GCJ=no
15900 module_cmds_GCJ=
15901 module_expsym_cmds_GCJ=
15902 always_export_symbols_GCJ=no
15903 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15904 # include_expsyms should be a list of space-separated symbols to be *always*
15905 # included in the symbol list
15906 include_expsyms_GCJ=
15907 # exclude_expsyms can be an extended regexp of symbols to exclude
15908 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15909 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15910 # as well as any symbol that contains `d'.
15911 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15913 # platforms (ab)use it in PIC code, but their linkers get confused if
15914 # the symbol is explicitly referenced. Since portable code cannot
15915 # rely on this symbol name, it's probably fine to never include it in
15916 # preloaded symbol tables.
15917 extract_expsyms_cmds=
15918
15919 case $host_os in
15920 cygwin* | mingw* | pw32*)
15921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15922 # When not using gcc, we currently assume that we are using
15923 # Microsoft Visual C++.
15924 if test "$GCC" != yes; then
15925 with_gnu_ld=no
15926 fi
15927 ;;
15928 openbsd*)
15929 with_gnu_ld=no
15930 ;;
15931 esac
15932
15933 ld_shlibs_GCJ=yes
15934 if test "$with_gnu_ld" = yes; then
15935 # If archive_cmds runs LD, not CC, wlarc should be empty
15936 wlarc='${wl}'
15937
15938 # See if GNU ld supports shared libraries.
15939 case $host_os in
15940 aix3* | aix4* | aix5*)
15941 # On AIX/PPC, the GNU linker is very broken
15942 if test "$host_cpu" != ia64; then
15943 ld_shlibs_GCJ=no
15944 cat <<EOF 1>&2
15945
15946*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15947*** to be unable to reliably create shared libraries on AIX.
15948*** Therefore, libtool is disabling shared libraries support. If you
15949*** really care for shared libraries, you may want to modify your PATH
15950*** so that a non-GNU linker is found, and then restart.
15951
15952EOF
15953 fi
15954 ;;
15955
15956 amigaos*)
15957 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15958 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15959 hardcode_minus_L_GCJ=yes
15960
15961 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15962 # that the semantics of dynamic libraries on AmigaOS, at least up
15963 # to version 4, is to share data among multiple programs linked
15964 # with the same dynamic library. Since this doesn't match the
15965 # behavior of shared libraries on other platforms, we can't use
15966 # them.
15967 ld_shlibs_GCJ=no
15968 ;;
15969
15970 beos*)
15971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15972 allow_undefined_flag_GCJ=unsupported
15973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15974 # support --undefined. This deserves some investigation. FIXME
15975 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976 else
15977 ld_shlibs_GCJ=no
15978 fi
15979 ;;
15980
15981 cygwin* | mingw* | pw32*)
15982 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15983 # as there is no search path for DLLs.
15984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15985 allow_undefined_flag_GCJ=unsupported
15986 always_export_symbols_GCJ=no
15987 enable_shared_with_static_runtimes_GCJ=yes
15988 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15989
15990 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15991 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15992 # If the export-symbols file already is a .def file (1st line
15993 # is EXPORTS), use it as is; otherwise, prepend...
15994 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15995 cp $export_symbols $output_objdir/$soname.def;
15996 else
15997 echo EXPORTS > $output_objdir/$soname.def;
15998 cat $export_symbols >> $output_objdir/$soname.def;
15999 fi~
16000 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16001 else
16002 ld_shlibs=no
16003 fi
16004 ;;
16005
16006 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16008 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16009 wlarc=
16010 else
16011 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16012 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16013 fi
16014 ;;
16015
16016 solaris* | sysv5*)
16017 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16018 ld_shlibs_GCJ=no
16019 cat <<EOF 1>&2
16020
16021*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16022*** create shared libraries on Solaris systems. Therefore, libtool
16023*** is disabling shared libraries support. We urge you to upgrade GNU
16024*** binutils to release 2.9.1 or newer. Another option is to modify
16025*** your PATH or compiler configuration so that the native linker is
16026*** used, and then restart.
16027
16028EOF
16029 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16031 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16032 else
16033 ld_shlibs_GCJ=no
16034 fi
16035 ;;
16036
16037 sunos4*)
16038 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16039 wlarc=
16040 hardcode_direct_GCJ=yes
16041 hardcode_shlibpath_var_GCJ=no
16042 ;;
16043
16044 linux*)
16045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16046 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16047 archive_cmds_GCJ="$tmp_archive_cmds"
16048 supports_anon_versioning=no
16049 case `$LD -v 2>/dev/null` in
16050 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16051 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16052 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16053 *\ 2.11.*) ;; # other 2.11 versions
16054 *) supports_anon_versioning=yes ;;
16055 esac
16056 if test $supports_anon_versioning = yes; then
16057 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16058cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16059$echo "local: *; };" >> $output_objdir/$libname.ver~
16060 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16061 else
16062 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16063 fi
16064 link_all_deplibs_GCJ=no
16065 else
16066 ld_shlibs_GCJ=no
16067 fi
16068 ;;
16069
16070 *)
16071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16072 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16073 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16074 else
16075 ld_shlibs_GCJ=no
16076 fi
16077 ;;
16078 esac
16079
16080 if test "$ld_shlibs_GCJ" = yes; then
16081 runpath_var=LD_RUN_PATH
16082 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16083 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16084 # ancient GNU ld didn't support --whole-archive et. al.
16085 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16086 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16087 else
16088 whole_archive_flag_spec_GCJ=
16089 fi
16090 fi
16091 else
16092 # PORTME fill in a description of your system's linker (not GNU ld)
16093 case $host_os in
16094 aix3*)
16095 allow_undefined_flag_GCJ=unsupported
16096 always_export_symbols_GCJ=yes
16097 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16098 # Note: this linker hardcodes the directories in LIBPATH if there
16099 # are no directories specified by -L.
16100 hardcode_minus_L_GCJ=yes
16101 if test "$GCC" = yes && test -z "$link_static_flag"; then
16102 # Neither direct hardcoding nor static linking is supported with a
16103 # broken collect2.
16104 hardcode_direct_GCJ=unsupported
16105 fi
16106 ;;
16107
16108 aix4* | aix5*)
16109 if test "$host_cpu" = ia64; then
16110 # On IA64, the linker does run time linking by default, so we don't
16111 # have to do anything special.
16112 aix_use_runtimelinking=no
16113 exp_sym_flag='-Bexport'
16114 no_entry_flag=""
16115 else
16116 # If we're using GNU nm, then we don't want the "-C" option.
16117 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16118 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16119 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16120 else
16121 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16122 fi
16123 aix_use_runtimelinking=no
16124
16125 # Test if we are trying to use run time linking or normal
16126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16127 # need to do runtime linking.
16128 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16129 for ld_flag in $LDFLAGS; do
16130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16131 aix_use_runtimelinking=yes
16132 break
16133 fi
16134 done
16135 esac
16136
16137 exp_sym_flag='-bexport'
16138 no_entry_flag='-bnoentry'
16139 fi
16140
16141 # When large executables or shared objects are built, AIX ld can
16142 # have problems creating the table of contents. If linking a library
16143 # or program results in "error TOC overflow" add -mminimal-toc to
16144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16146
16147 archive_cmds_GCJ=''
16148 hardcode_direct_GCJ=yes
16149 hardcode_libdir_separator_GCJ=':'
16150 link_all_deplibs_GCJ=yes
16151
16152 if test "$GCC" = yes; then
16153 case $host_os in aix4.012|aix4.012.*)
16154 # We only want to do this on AIX 4.2 and lower, the check
16155 # below for broken collect2 doesn't work under 4.3+
16156 collect2name=`${CC} -print-prog-name=collect2`
16157 if test -f "$collect2name" && \
16158 strings "$collect2name" | grep resolve_lib_name >/dev/null
16159 then
16160 # We have reworked collect2
16161 hardcode_direct_GCJ=yes
16162 else
16163 # We have old collect2
16164 hardcode_direct_GCJ=unsupported
16165 # It fails to find uninstalled libraries when the uninstalled
16166 # path is not listed in the libpath. Setting hardcode_minus_L
16167 # to unsupported forces relinking
16168 hardcode_minus_L_GCJ=yes
16169 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16170 hardcode_libdir_separator_GCJ=
16171 fi
16172 esac
16173 shared_flag='-shared'
16174 else
16175 # not using gcc
16176 if test "$host_cpu" = ia64; then
16177 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16178 # chokes on -Wl,-G. The following line is correct:
16179 shared_flag='-G'
16180 else
16181 if test "$aix_use_runtimelinking" = yes; then
16182 shared_flag='${wl}-G'
16183 else
16184 shared_flag='${wl}-bM:SRE'
16185 fi
16186 fi
16187 fi
16188
16189 # It seems that -bexpall does not export symbols beginning with
16190 # underscore (_), so it is better to generate a list of symbols to export.
16191 always_export_symbols_GCJ=yes
16192 if test "$aix_use_runtimelinking" = yes; then
16193 # Warning - without using the other runtime loading flags (-brtl),
16194 # -berok will link without error, but may produce a broken library.
16195 allow_undefined_flag_GCJ='-berok'
16196 # Determine the default libpath from the value encoded in an empty executable.
16197 cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
16203
16204int
16205main ()
16206{
16207
16208 ;
16209 return 0;
16210}
16211_ACEOF
16212rm -f conftest.$ac_objext conftest$ac_exeext
16213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16214 (eval $ac_link) 2>conftest.er1
16215 ac_status=$?
16216 grep -v '^ *+' conftest.er1 >conftest.err
16217 rm -f conftest.er1
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag"
16222 || test ! -s conftest.err'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; } &&
16228 { ac_try='test -s conftest$ac_exeext'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234
16235aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16236}'`
16237# Check for a 64-bit object if we didn't find anything.
16238if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16239}'`; fi
16240else
16241 echo "$as_me: failed program was:" >&5
16242sed 's/^/| /' conftest.$ac_ext >&5
16243
16244fi
16245rm -f conftest.err conftest.$ac_objext \
16246 conftest$ac_exeext conftest.$ac_ext
16247if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16248
16249 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16250 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16251 else
16252 if test "$host_cpu" = ia64; then
16253 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16254 allow_undefined_flag_GCJ="-z nodefs"
16255 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16256 else
16257 # Determine the default libpath from the value encoded in an empty executable.
16258 cat >conftest.$ac_ext <<_ACEOF
16259/* confdefs.h. */
16260_ACEOF
16261cat confdefs.h >>conftest.$ac_ext
16262cat >>conftest.$ac_ext <<_ACEOF
16263/* end confdefs.h. */
16264
16265int
16266main ()
16267{
16268
16269 ;
16270 return 0;
16271}
16272_ACEOF
16273rm -f conftest.$ac_objext conftest$ac_exeext
16274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag"
16283 || test ! -s conftest.err'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest$ac_exeext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295
16296aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16297}'`
16298# Check for a 64-bit object if we didn't find anything.
16299if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16300}'`; fi
16301else
16302 echo "$as_me: failed program was:" >&5
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
16305fi
16306rm -f conftest.err conftest.$ac_objext \
16307 conftest$ac_exeext conftest.$ac_ext
16308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16309
16310 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16311 # Warning - without using the other run time loading flags,
16312 # -berok will link without error, but may produce a broken library.
16313 no_undefined_flag_GCJ=' ${wl}-bernotok'
16314 allow_undefined_flag_GCJ=' ${wl}-berok'
16315 # -bexpall does not export symbols beginning with underscore (_)
16316 always_export_symbols_GCJ=yes
16317 # Exported symbols can be pulled into shared objects from archives
16318 whole_archive_flag_spec_GCJ=' '
16319 archive_cmds_need_lc_GCJ=yes
16320 # This is similar to how AIX traditionally builds it's shared libraries.
16321 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16322 fi
16323 fi
16324 ;;
16325
16326 amigaos*)
16327 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16328 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16329 hardcode_minus_L_GCJ=yes
16330 # see comment about different semantics on the GNU ld section
16331 ld_shlibs_GCJ=no
16332 ;;
16333
16334 bsdi4*)
16335 export_dynamic_flag_spec_GCJ=-rdynamic
16336 ;;
16337
16338 cygwin* | mingw* | pw32*)
16339 # When not using gcc, we currently assume that we are using
16340 # Microsoft Visual C++.
16341 # hardcode_libdir_flag_spec is actually meaningless, as there is
16342 # no search path for DLLs.
16343 hardcode_libdir_flag_spec_GCJ=' '
16344 allow_undefined_flag_GCJ=unsupported
16345 # Tell ltmain to make .lib files, not .a files.
16346 libext=lib
16347 # Tell ltmain to make .dll files, not .so files.
16348 shrext_cmds=".dll"
16349 # FIXME: Setting linknames here is a bad hack.
16350 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16351 # The linker will automatically build a .lib file if we build a DLL.
16352 old_archive_From_new_cmds_GCJ='true'
16353 # FIXME: Should let the user specify the lib program.
16354 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16355 fix_srcfile_path='`cygpath -w "$srcfile"`'
16356 enable_shared_with_static_runtimes_GCJ=yes
16357 ;;
16358
16359 darwin* | rhapsody*)
16360 if test "$GXX" = yes ; then
16361 archive_cmds_need_lc_GCJ=no
16362 case "$host_os" in
16363 rhapsody* | darwin1.[012])
16364 allow_undefined_flag_GCJ='-undefined suppress'
16365 ;;
16366 *) # Darwin 1.3 on
16367 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16368 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16369 else
16370 case ${MACOSX_DEPLOYMENT_TARGET} in
16371 10.[012])
16372 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16373 ;;
16374 10.*)
16375 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16376 ;;
16377 esac
16378 fi
16379 ;;
16380 esac
16381 lt_int_apple_cc_single_mod=no
16382 output_verbose_link_cmd='echo'
16383 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16384 lt_int_apple_cc_single_mod=yes
16385 fi
16386 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16387 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16388 else
16389 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16390 fi
16391 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16392 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16393 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16394 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16395 else
16396 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16397 fi
16398 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16399 hardcode_direct_GCJ=no
16400 hardcode_automatic_GCJ=yes
16401 hardcode_shlibpath_var_GCJ=unsupported
16402 whole_archive_flag_spec_GCJ='-all_load $convenience'
16403 link_all_deplibs_GCJ=yes
16404 else
16405 ld_shlibs_GCJ=no
16406 fi
16407 ;;
16408
16409 dgux*)
16410 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16412 hardcode_shlibpath_var_GCJ=no
16413 ;;
16414
16415 freebsd1*)
16416 ld_shlibs_GCJ=no
16417 ;;
16418
16419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16420 # support. Future versions do this automatically, but an explicit c++rt0.o
16421 # does not break anything, and helps significantly (at the cost of a little
16422 # extra space).
16423 freebsd2.2*)
16424 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16425 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16426 hardcode_direct_GCJ=yes
16427 hardcode_shlibpath_var_GCJ=no
16428 ;;
16429
16430 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16431 freebsd2*)
16432 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16433 hardcode_direct_GCJ=yes
16434 hardcode_minus_L_GCJ=yes
16435 hardcode_shlibpath_var_GCJ=no
16436 ;;
16437
16438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16439 freebsd* | kfreebsd*-gnu)
16440 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16441 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16442 hardcode_direct_GCJ=yes
16443 hardcode_shlibpath_var_GCJ=no
16444 ;;
16445
16446 hpux9*)
16447 if test "$GCC" = yes; then
16448 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16449 else
16450 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16451 fi
16452 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16453 hardcode_libdir_separator_GCJ=:
16454 hardcode_direct_GCJ=yes
16455
16456 # hardcode_minus_L: Not really in the search PATH,
16457 # but as the default location of the library.
16458 hardcode_minus_L_GCJ=yes
16459 export_dynamic_flag_spec_GCJ='${wl}-E'
16460 ;;
16461
16462 hpux10* | hpux11*)
16463 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16464 case "$host_cpu" in
16465 hppa*64*|ia64*)
16466 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16467 ;;
16468 *)
16469 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16470 ;;
16471 esac
16472 else
16473 case "$host_cpu" in
16474 hppa*64*|ia64*)
16475 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 ;;
16477 *)
16478 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16479 ;;
16480 esac
16481 fi
16482 if test "$with_gnu_ld" = no; then
16483 case "$host_cpu" in
16484 hppa*64*)
16485 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16486 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16487 hardcode_libdir_separator_GCJ=:
16488 hardcode_direct_GCJ=no
16489 hardcode_shlibpath_var_GCJ=no
16490 ;;
16491 ia64*)
16492 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16493 hardcode_direct_GCJ=no
16494 hardcode_shlibpath_var_GCJ=no
16495
16496 # hardcode_minus_L: Not really in the search PATH,
16497 # but as the default location of the library.
16498 hardcode_minus_L_GCJ=yes
16499 ;;
16500 *)
16501 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16502 hardcode_libdir_separator_GCJ=:
16503 hardcode_direct_GCJ=yes
16504 export_dynamic_flag_spec_GCJ='${wl}-E'
16505
16506 # hardcode_minus_L: Not really in the search PATH,
16507 # but as the default location of the library.
16508 hardcode_minus_L_GCJ=yes
16509 ;;
16510 esac
16511 fi
16512 ;;
16513
16514 irix5* | irix6* | nonstopux*)
16515 if test "$GCC" = yes; then
16516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16517 else
16518 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16519 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16520 fi
16521 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16522 hardcode_libdir_separator_GCJ=:
16523 link_all_deplibs_GCJ=yes
16524 ;;
16525
16526 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16528 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16529 else
16530 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16531 fi
16532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16533 hardcode_direct_GCJ=yes
16534 hardcode_shlibpath_var_GCJ=no
16535 ;;
16536
16537 newsos6)
16538 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16539 hardcode_direct_GCJ=yes
16540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16541 hardcode_libdir_separator_GCJ=:
16542 hardcode_shlibpath_var_GCJ=no
16543 ;;
16544
16545 openbsd*)
16546 hardcode_direct_GCJ=yes
16547 hardcode_shlibpath_var_GCJ=no
16548 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16549 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16550 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16551 export_dynamic_flag_spec_GCJ='${wl}-E'
16552 else
16553 case $host_os in
16554 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16555 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16557 ;;
16558 *)
16559 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16560 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16561 ;;
16562 esac
16563 fi
16564 ;;
16565
16566 os2*)
16567 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16568 hardcode_minus_L_GCJ=yes
16569 allow_undefined_flag_GCJ=unsupported
16570 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16571 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16572 ;;
16573
16574 osf3*)
16575 if test "$GCC" = yes; then
16576 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16577 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16578 else
16579 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16580 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16581 fi
16582 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16583 hardcode_libdir_separator_GCJ=:
16584 ;;
16585
16586 osf4* | osf5*) # as osf3* with the addition of -msym flag
16587 if test "$GCC" = yes; then
16588 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16589 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16590 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16591 else
16592 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16593 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16594 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16595 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16596
16597 # Both c and cxx compiler support -rpath directly
16598 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16599 fi
16600 hardcode_libdir_separator_GCJ=:
16601 ;;
16602
16603 sco3.2v5*)
16604 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605 hardcode_shlibpath_var_GCJ=no
16606 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16607 runpath_var=LD_RUN_PATH
16608 hardcode_runpath_var=yes
16609 ;;
16610
16611 solaris*)
16612 no_undefined_flag_GCJ=' -z text'
16613 if test "$GCC" = yes; then
16614 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16615 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16616 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16617 else
16618 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16619 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16620 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16621 fi
16622 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16623 hardcode_shlibpath_var_GCJ=no
16624 case $host_os in
16625 solaris2.[0-5] | solaris2.[0-5].*) ;;
16626 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16627 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16628 esac
16629 link_all_deplibs_GCJ=yes
16630 ;;
16631
16632 sunos4*)
16633 if test "x$host_vendor" = xsequent; then
16634 # Use $CC to link under sequent, because it throws in some extra .o
16635 # files that make .init and .fini sections work.
16636 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16637 else
16638 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16639 fi
16640 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16641 hardcode_direct_GCJ=yes
16642 hardcode_minus_L_GCJ=yes
16643 hardcode_shlibpath_var_GCJ=no
16644 ;;
16645
16646 sysv4)
16647 case $host_vendor in
16648 sni)
16649 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16650 hardcode_direct_GCJ=yes # is this really true???
16651 ;;
16652 siemens)
16653 ## LD is ld it makes a PLAMLIB
16654 ## CC just makes a GrossModule.
16655 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16656 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16657 hardcode_direct_GCJ=no
16658 ;;
16659 motorola)
16660 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16661 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16662 ;;
16663 esac
16664 runpath_var='LD_RUN_PATH'
16665 hardcode_shlibpath_var_GCJ=no
16666 ;;
16667
16668 sysv4.3*)
16669 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_shlibpath_var_GCJ=no
16671 export_dynamic_flag_spec_GCJ='-Bexport'
16672 ;;
16673
16674 sysv4*MP*)
16675 if test -d /usr/nec; then
16676 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16677 hardcode_shlibpath_var_GCJ=no
16678 runpath_var=LD_RUN_PATH
16679 hardcode_runpath_var=yes
16680 ld_shlibs_GCJ=yes
16681 fi
16682 ;;
16683
16684 sysv4.2uw2*)
16685 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16686 hardcode_direct_GCJ=yes
16687 hardcode_minus_L_GCJ=no
16688 hardcode_shlibpath_var_GCJ=no
16689 hardcode_runpath_var=yes
16690 runpath_var=LD_RUN_PATH
16691 ;;
16692
16693 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16694 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16695 if test "$GCC" = yes; then
16696 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16697 else
16698 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16699 fi
16700 runpath_var='LD_RUN_PATH'
16701 hardcode_shlibpath_var_GCJ=no
16702 ;;
16703
16704 sysv5*)
16705 no_undefined_flag_GCJ=' -z text'
16706 # $CC -shared without GNU ld will not create a library from C++
16707 # object files and a static libstdc++, better avoid it by now
16708 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16710 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16711 hardcode_libdir_flag_spec_GCJ=
16712 hardcode_shlibpath_var_GCJ=no
16713 runpath_var='LD_RUN_PATH'
16714 ;;
16715
16716 uts4*)
16717 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16718 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16719 hardcode_shlibpath_var_GCJ=no
16720 ;;
16721
16722 *)
16723 ld_shlibs_GCJ=no
16724 ;;
16725 esac
16726 fi
16727
16728echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16729echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16730test "$ld_shlibs_GCJ" = no && can_build_shared=no
16731
16732variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16733if test "$GCC" = yes; then
16734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16735fi
16736
16737#
16738# Do we need to explicitly link libc?
16739#
16740case "x$archive_cmds_need_lc_GCJ" in
16741x|xyes)
16742 # Assume -lc should be added
16743 archive_cmds_need_lc_GCJ=yes
16744
16745 if test "$enable_shared" = yes && test "$GCC" = yes; then
16746 case $archive_cmds_GCJ in
16747 *'~'*)
16748 # FIXME: we may have to deal with multi-command sequences.
16749 ;;
16750 '$CC '*)
16751 # Test whether the compiler implicitly links with -lc since on some
16752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16753 # to ld, don't add -lc before -lgcc.
16754 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16755echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16756 $rm conftest*
16757 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16758
16759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } 2>conftest.err; then
16764 soname=conftest
16765 lib=conftest
16766 libobjs=conftest.$ac_objext
16767 deplibs=
16768 wl=$lt_prog_compiler_wl_GCJ
16769 compiler_flags=-v
16770 linker_flags=-v
16771 verstring=
16772 output_objdir=.
16773 libname=conftest
16774 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16775 allow_undefined_flag_GCJ=
16776 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16777 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }
16781 then
16782 archive_cmds_need_lc_GCJ=no
16783 else
16784 archive_cmds_need_lc_GCJ=yes
16785 fi
16786 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16787 else
16788 cat conftest.err 1>&5
16789 fi
16790 $rm conftest*
16791 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16792echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16793 ;;
16794 esac
16795 fi
16796 ;;
16797esac
16798
16799echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16800echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16801library_names_spec=
16802libname_spec='lib$name'
16803soname_spec=
16804shrext_cmds=".so"
16805postinstall_cmds=
16806postuninstall_cmds=
16807finish_cmds=
16808finish_eval=
16809shlibpath_var=
16810shlibpath_overrides_runpath=unknown
16811version_type=none
16812dynamic_linker="$host_os ld.so"
16813sys_lib_dlsearch_path_spec="/lib /usr/lib"
16814if test "$GCC" = yes; then
16815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16816 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16817 # if the path contains ";" then we assume it to be the separator
16818 # otherwise default to the standard path separator (i.e. ":") - it is
16819 # assumed that no part of a normal pathname contains ";" but that should
16820 # okay in the real world where ";" in dirpaths is itself problematic.
16821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16822 else
16823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16824 fi
16825else
16826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16827fi
16828need_lib_prefix=unknown
16829hardcode_into_libs=no
16830
16831# when you set need_version to no, make sure it does not cause -set_version
16832# flags to be left without arguments
16833need_version=unknown
16834
16835case $host_os in
16836aix3*)
16837 version_type=linux
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16839 shlibpath_var=LIBPATH
16840
16841 # AIX 3 has no versioning support, so we append a major version to the name.
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 ;;
16844
16845aix4* | aix5*)
16846 version_type=linux
16847 need_lib_prefix=no
16848 need_version=no
16849 hardcode_into_libs=yes
16850 if test "$host_cpu" = ia64; then
16851 # AIX 5 supports IA64
16852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 else
16855 # With GCC up to 2.95.x, collect2 would create an import file
16856 # for dependence libraries. The import file would start with
16857 # the line `#! .'. This would cause the generated library to
16858 # depend on `.', always an invalid library. This was fixed in
16859 # development snapshots of GCC prior to 3.0.
16860 case $host_os in
16861 aix4 | aix4.[01] | aix4.[01].*)
16862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16863 echo ' yes '
16864 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16865 :
16866 else
16867 can_build_shared=no
16868 fi
16869 ;;
16870 esac
16871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16872 # soname into executable. Probably we can add versioning support to
16873 # collect2, so additional links can be useful in future.
16874 if test "$aix_use_runtimelinking" = yes; then
16875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16876 # instead of lib<name>.a to let people know that these are not
16877 # typical AIX shared libraries.
16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16879 else
16880 # We preserve .a as extension for shared libraries through AIX4.2
16881 # and later when we are not doing run time linking.
16882 library_names_spec='${libname}${release}.a $libname.a'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 fi
16885 shlibpath_var=LIBPATH
16886 fi
16887 ;;
16888
16889amigaos*)
16890 library_names_spec='$libname.ixlibrary $libname.a'
16891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16892 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'
16893 ;;
16894
16895beos*)
16896 library_names_spec='${libname}${shared_ext}'
16897 dynamic_linker="$host_os ld.so"
16898 shlibpath_var=LIBRARY_PATH
16899 ;;
16900
16901bsdi4*)
16902 version_type=linux
16903 need_version=no
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16905 soname_spec='${libname}${release}${shared_ext}$major'
16906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16907 shlibpath_var=LD_LIBRARY_PATH
16908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16910 # the default ld.so.conf also contains /usr/contrib/lib and
16911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16912 # libtool to hard-code these into programs
16913 ;;
16914
16915cygwin* | mingw* | pw32*)
16916 version_type=windows
16917 shrext_cmds=".dll"
16918 need_version=no
16919 need_lib_prefix=no
16920
16921 case $GCC,$host_os in
16922 yes,cygwin* | yes,mingw* | yes,pw32*)
16923 library_names_spec='$libname.dll.a'
16924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16925 postinstall_cmds='base_file=`basename \${file}`~
16926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16927 dldir=$destdir/`dirname \$dlpath`~
16928 test -d \$dldir || mkdir -p \$dldir~
16929 $install_prog $dir/$dlname \$dldir/$dlname'
16930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16931 dlpath=$dir/\$dldll~
16932 $rm \$dlpath'
16933 shlibpath_overrides_runpath=yes
16934
16935 case $host_os in
16936 cygwin*)
16937 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16938 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16939 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16940 ;;
16941 mingw*)
16942 # MinGW DLLs use traditional 'lib' prefix
16943 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16945 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16946 # It is most probably a Windows format PATH printed by
16947 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16948 # path with ; separators, and with drive letters. We can handle the
16949 # drive letters (cygwin fileutils understands them), so leave them,
16950 # especially as we might pass files found there to a mingw objdump,
16951 # which wouldn't understand a cygwinified path. Ahh.
16952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16953 else
16954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16955 fi
16956 ;;
16957 pw32*)
16958 # pw32 DLLs use 'pw' prefix rather than 'lib'
16959 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16960 ;;
16961 esac
16962 ;;
16963
16964 *)
16965 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16966 ;;
16967 esac
16968 dynamic_linker='Win32 ld.exe'
16969 # FIXME: first we should search . and the directory the executable is in
16970 shlibpath_var=PATH
16971 ;;
16972
16973darwin* | rhapsody*)
16974 dynamic_linker="$host_os dyld"
16975 version_type=darwin
16976 need_lib_prefix=no
16977 need_version=no
16978 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16979 soname_spec='${libname}${release}${major}$shared_ext'
16980 shlibpath_overrides_runpath=yes
16981 shlibpath_var=DYLD_LIBRARY_PATH
16982 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16983 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16984 if test "$GCC" = yes; then
16985 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16986 else
16987 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16988 fi
16989 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16990 ;;
16991
16992dgux*)
16993 version_type=linux
16994 need_lib_prefix=no
16995 need_version=no
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16997 soname_spec='${libname}${release}${shared_ext}$major'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 ;;
17000
17001freebsd1*)
17002 dynamic_linker=no
17003 ;;
17004
17005kfreebsd*-gnu)
17006 version_type=linux
17007 need_lib_prefix=no
17008 need_version=no
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 shlibpath_var=LD_LIBRARY_PATH
17012 shlibpath_overrides_runpath=no
17013 hardcode_into_libs=yes
17014 dynamic_linker='GNU ld.so'
17015 ;;
17016
17017freebsd*)
17018 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17019 version_type=freebsd-$objformat
17020 case $version_type in
17021 freebsd-elf*)
17022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17023 need_version=no
17024 need_lib_prefix=no
17025 ;;
17026 freebsd-*)
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17028 need_version=yes
17029 ;;
17030 esac
17031 shlibpath_var=LD_LIBRARY_PATH
17032 case $host_os in
17033 freebsd2*)
17034 shlibpath_overrides_runpath=yes
17035 ;;
17036 freebsd3.01* | freebsdelf3.01*)
17037 shlibpath_overrides_runpath=yes
17038 hardcode_into_libs=yes
17039 ;;
17040 *) # from 3.2 on
17041 shlibpath_overrides_runpath=no
17042 hardcode_into_libs=yes
17043 ;;
17044 esac
17045 ;;
17046
17047gnu*)
17048 version_type=linux
17049 need_lib_prefix=no
17050 need_version=no
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17053 shlibpath_var=LD_LIBRARY_PATH
17054 hardcode_into_libs=yes
17055 ;;
17056
17057hpux9* | hpux10* | hpux11*)
17058 # Give a soname corresponding to the major version so that dld.sl refuses to
17059 # link against other versions.
17060 version_type=sunos
17061 need_lib_prefix=no
17062 need_version=no
17063 case "$host_cpu" in
17064 ia64*)
17065 shrext_cmds='.so'
17066 hardcode_into_libs=yes
17067 dynamic_linker="$host_os dld.so"
17068 shlibpath_var=LD_LIBRARY_PATH
17069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 if test "X$HPUX_IA64_MODE" = X32; then
17073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17074 else
17075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17076 fi
17077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17078 ;;
17079 hppa*64*)
17080 shrext_cmds='.sl'
17081 hardcode_into_libs=yes
17082 dynamic_linker="$host_os dld.sl"
17083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17089 ;;
17090 *)
17091 shrext_cmds='.sl'
17092 dynamic_linker="$host_os dld.sl"
17093 shlibpath_var=SHLIB_PATH
17094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 ;;
17098 esac
17099 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17100 postinstall_cmds='chmod 555 $lib'
17101 ;;
17102
17103irix5* | irix6* | nonstopux*)
17104 case $host_os in
17105 nonstopux*) version_type=nonstopux ;;
17106 *)
17107 if test "$lt_cv_prog_gnu_ld" = yes; then
17108 version_type=linux
17109 else
17110 version_type=irix
17111 fi ;;
17112 esac
17113 need_lib_prefix=no
17114 need_version=no
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17117 case $host_os in
17118 irix5* | nonstopux*)
17119 libsuff= shlibsuff=
17120 ;;
17121 *)
17122 case $LD in # libtool.m4 will add one of these switches to LD
17123 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17124 libsuff= shlibsuff= libmagic=32-bit;;
17125 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17126 libsuff=32 shlibsuff=N32 libmagic=N32;;
17127 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17128 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17129 *) libsuff= shlibsuff= libmagic=never-match;;
17130 esac
17131 ;;
17132 esac
17133 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17134 shlibpath_overrides_runpath=no
17135 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17136 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17137 hardcode_into_libs=yes
17138 ;;
17139
17140# No shared lib support for Linux oldld, aout, or coff.
17141linux*oldld* | linux*aout* | linux*coff*)
17142 dynamic_linker=no
17143 ;;
17144
17145# This must be Linux ELF.
17146linux*)
17147 version_type=linux
17148 need_lib_prefix=no
17149 need_version=no
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17153 shlibpath_var=LD_LIBRARY_PATH
17154 shlibpath_overrides_runpath=no
17155 # This implies no fast_install, which is unacceptable.
17156 # Some rework will be needed to allow for fast_install
17157 # before this can be enabled.
17158 hardcode_into_libs=yes
17159
17160 # Append ld.so.conf contents to the search path
17161 if test -f /etc/ld.so.conf; then
17162 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17163 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17164 fi
17165
17166 # We used to test for /lib/ld.so.1 and disable shared libraries on
17167 # powerpc, because MkLinux only supported shared libraries with the
17168 # GNU dynamic linker. Since this was broken with cross compilers,
17169 # most powerpc-linux boxes support dynamic linking these days and
17170 # people can always --disable-shared, the test was removed, and we
17171 # assume the GNU/Linux dynamic linker is in use.
17172 dynamic_linker='GNU/Linux ld.so'
17173 ;;
17174
17175netbsdelf*-gnu)
17176 version_type=linux
17177 need_lib_prefix=no
17178 need_version=no
17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17180 soname_spec='${libname}${release}${shared_ext}$major'
17181 shlibpath_var=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath=no
17183 hardcode_into_libs=yes
17184 dynamic_linker='NetBSD ld.elf_so'
17185 ;;
17186
17187knetbsd*-gnu)
17188 version_type=linux
17189 need_lib_prefix=no
17190 need_version=no
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 shlibpath_var=LD_LIBRARY_PATH
17194 shlibpath_overrides_runpath=no
17195 hardcode_into_libs=yes
17196 dynamic_linker='GNU ld.so'
17197 ;;
17198
17199netbsd*)
17200 version_type=sunos
17201 need_lib_prefix=no
17202 need_version=no
17203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17206 dynamic_linker='NetBSD (a.out) ld.so'
17207 else
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17209 soname_spec='${libname}${release}${shared_ext}$major'
17210 dynamic_linker='NetBSD ld.elf_so'
17211 fi
17212 shlibpath_var=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath=yes
17214 hardcode_into_libs=yes
17215 ;;
17216
17217newsos6)
17218 version_type=linux
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 shlibpath_var=LD_LIBRARY_PATH
17221 shlibpath_overrides_runpath=yes
17222 ;;
17223
17224nto-qnx*)
17225 version_type=linux
17226 need_lib_prefix=no
17227 need_version=no
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 shlibpath_var=LD_LIBRARY_PATH
17231 shlibpath_overrides_runpath=yes
17232 ;;
17233
17234openbsd*)
17235 version_type=sunos
17236 need_lib_prefix=no
17237 need_version=yes
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17242 case $host_os in
17243 openbsd2.[89] | openbsd2.[89].*)
17244 shlibpath_overrides_runpath=no
17245 ;;
17246 *)
17247 shlibpath_overrides_runpath=yes
17248 ;;
17249 esac
17250 else
17251 shlibpath_overrides_runpath=yes
17252 fi
17253 ;;
17254
17255os2*)
17256 libname_spec='$name'
17257 shrext_cmds=".dll"
17258 need_lib_prefix=no
17259 library_names_spec='$libname${shared_ext} $libname.a'
17260 dynamic_linker='OS/2 ld.exe'
17261 shlibpath_var=LIBPATH
17262 ;;
17263
17264osf3* | osf4* | osf5*)
17265 version_type=osf
17266 need_lib_prefix=no
17267 need_version=no
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17273 ;;
17274
17275sco3.2v5*)
17276 version_type=osf
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 ;;
17281
17282solaris*)
17283 version_type=linux
17284 need_lib_prefix=no
17285 need_version=no
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 shlibpath_overrides_runpath=yes
17290 hardcode_into_libs=yes
17291 # ldd complains unless libraries are executable
17292 postinstall_cmds='chmod +x $lib'
17293 ;;
17294
17295sunos4*)
17296 version_type=sunos
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath=yes
17301 if test "$with_gnu_ld" = yes; then
17302 need_lib_prefix=no
17303 fi
17304 need_version=yes
17305 ;;
17306
17307sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17308 version_type=linux
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 case $host_vendor in
17313 sni)
17314 shlibpath_overrides_runpath=no
17315 need_lib_prefix=no
17316 export_dynamic_flag_spec='${wl}-Blargedynsym'
17317 runpath_var=LD_RUN_PATH
17318 ;;
17319 siemens)
17320 need_lib_prefix=no
17321 ;;
17322 motorola)
17323 need_lib_prefix=no
17324 need_version=no
17325 shlibpath_overrides_runpath=no
17326 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17327 ;;
17328 esac
17329 ;;
17330
17331sysv4*MP*)
17332 if test -d /usr/nec ;then
17333 version_type=linux
17334 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17335 soname_spec='$libname${shared_ext}.$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 fi
17338 ;;
17339
17340uts4*)
17341 version_type=linux
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343 soname_spec='${libname}${release}${shared_ext}$major'
17344 shlibpath_var=LD_LIBRARY_PATH
17345 ;;
17346
17347*)
17348 dynamic_linker=no
17349 ;;
17350esac
17351echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17352echo "${ECHO_T}$dynamic_linker" >&6
17353test "$dynamic_linker" = no && can_build_shared=no
17354
17355echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17356echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17357hardcode_action_GCJ=
17358if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17359 test -n "$runpath_var GCJ" || \
17360 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17361
17362 # We can hardcode non-existant directories.
17363 if test "$hardcode_direct_GCJ" != no &&
17364 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17365 # have to relink, otherwise we might link with an installed library
17366 # when we should be linking with a yet-to-be-installed one
17367 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17368 test "$hardcode_minus_L_GCJ" != no; then
17369 # Linking always hardcodes the temporary library directory.
17370 hardcode_action_GCJ=relink
17371 else
17372 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17373 hardcode_action_GCJ=immediate
17374 fi
17375else
17376 # We cannot hardcode anything, or else we can only hardcode existing
17377 # directories.
17378 hardcode_action_GCJ=unsupported
17379fi
17380echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17381echo "${ECHO_T}$hardcode_action_GCJ" >&6
17382
17383if test "$hardcode_action_GCJ" = relink; then
17384 # Fast installation is not supported
17385 enable_fast_install=no
17386elif test "$shlibpath_overrides_runpath" = yes ||
17387 test "$enable_shared" = no; then
17388 # Fast installation is not necessary
17389 enable_fast_install=needless
17390fi
17391
17392striplib=
17393old_striplib=
17394echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17395echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17396if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17397 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17398 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17399 echo "$as_me:$LINENO: result: yes" >&5
17400echo "${ECHO_T}yes" >&6
17401else
17402# FIXME - insert some real tests, host_os isn't really good enough
17403 case $host_os in
17404 darwin*)
17405 if test -n "$STRIP" ; then
17406 striplib="$STRIP -x"
17407 echo "$as_me:$LINENO: result: yes" >&5
17408echo "${ECHO_T}yes" >&6
17409 else
17410 echo "$as_me:$LINENO: result: no" >&5
17411echo "${ECHO_T}no" >&6
17412fi
17413 ;;
17414 *)
17415 echo "$as_me:$LINENO: result: no" >&5
17416echo "${ECHO_T}no" >&6
17417 ;;
17418 esac
17419fi
17420
17421if test "x$enable_dlopen" != xyes; then
17422 enable_dlopen=unknown
17423 enable_dlopen_self=unknown
17424 enable_dlopen_self_static=unknown
17425else
17426 lt_cv_dlopen=no
17427 lt_cv_dlopen_libs=
17428
17429 case $host_os in
17430 beos*)
17431 lt_cv_dlopen="load_add_on"
17432 lt_cv_dlopen_libs=
17433 lt_cv_dlopen_self=yes
17434 ;;
17435
17436 mingw* | pw32*)
17437 lt_cv_dlopen="LoadLibrary"
17438 lt_cv_dlopen_libs=
17439 ;;
17440
17441 cygwin*)
17442 lt_cv_dlopen="dlopen"
17443 lt_cv_dlopen_libs=
17444 ;;
17445
17446 darwin*)
17447 # if libdl is installed we need to link against it
17448 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17449echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17450if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452else
17453 ac_check_lib_save_LIBS=$LIBS
17454LIBS="-ldl $LIBS"
17455cat >conftest.$ac_ext <<_ACEOF
17456/* confdefs.h. */
17457_ACEOF
17458cat confdefs.h >>conftest.$ac_ext
17459cat >>conftest.$ac_ext <<_ACEOF
17460/* end confdefs.h. */
17461
17462/* Override any gcc2 internal prototype to avoid an error. */
17463#ifdef __cplusplus
17464extern "C"
17465#endif
17466/* We use char because int might match the return type of a gcc2
17467 builtin and then its argument prototype would still apply. */
17468char dlopen ();
17469int
17470main ()
17471{
17472dlopen ();
17473 ;
17474 return 0;
17475}
17476_ACEOF
17477rm -f conftest.$ac_objext conftest$ac_exeext
17478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17479 (eval $ac_link) 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag"
17487 || test ! -s conftest.err'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest$ac_exeext'
17494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 ac_cv_lib_dl_dlopen=yes
17500else
17501 echo "$as_me: failed program was:" >&5
17502sed 's/^/| /' conftest.$ac_ext >&5
17503
17504ac_cv_lib_dl_dlopen=no
17505fi
17506rm -f conftest.err conftest.$ac_objext \
17507 conftest$ac_exeext conftest.$ac_ext
17508LIBS=$ac_check_lib_save_LIBS
17509fi
17510echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17511echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17512if test $ac_cv_lib_dl_dlopen = yes; then
17513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17514else
17515
17516 lt_cv_dlopen="dyld"
17517 lt_cv_dlopen_libs=
17518 lt_cv_dlopen_self=yes
17519
17520fi
17521
17522 ;;
17523
17524 *)
17525 echo "$as_me:$LINENO: checking for shl_load" >&5
17526echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17527if test "${ac_cv_func_shl_load+set}" = set; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17529else
17530 cat >conftest.$ac_ext <<_ACEOF
17531/* confdefs.h. */
17532_ACEOF
17533cat confdefs.h >>conftest.$ac_ext
17534cat >>conftest.$ac_ext <<_ACEOF
17535/* end confdefs.h. */
17536/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17538#define shl_load innocuous_shl_load
17539
17540/* System header to define __stub macros and hopefully few prototypes,
17541 which can conflict with char shl_load (); below.
17542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17543 <limits.h> exists even on freestanding compilers. */
17544
17545#ifdef __STDC__
17546# include <limits.h>
17547#else
17548# include <assert.h>
17549#endif
17550
17551#undef shl_load
17552
17553/* Override any gcc2 internal prototype to avoid an error. */
17554#ifdef __cplusplus
17555extern "C"
17556{
17557#endif
17558/* We use char because int might match the return type of a gcc2
17559 builtin and then its argument prototype would still apply. */
17560char shl_load ();
17561/* The GNU C library defines this for functions which it implements
17562 to always fail with ENOSYS. Some functions are actually named
17563 something starting with __ and the normal name is an alias. */
17564#if defined (__stub_shl_load) || defined (__stub___shl_load)
17565choke me
17566#else
17567char (*f) () = shl_load;
17568#endif
17569#ifdef __cplusplus
17570}
17571#endif
17572
17573int
17574main ()
17575{
17576return f != shl_load;
17577 ;
17578 return 0;
17579}
17580_ACEOF
17581rm -f conftest.$ac_objext conftest$ac_exeext
17582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17583 (eval $ac_link) 2>conftest.er1
17584 ac_status=$?
17585 grep -v '^ *+' conftest.er1 >conftest.err
17586 rm -f conftest.er1
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
17590 { ac_try='test -z "$ac_c_werror_flag"
17591 || test ! -s conftest.err'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try='test -s conftest$ac_exeext'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_cv_func_shl_load=yes
17604else
17605 echo "$as_me: failed program was:" >&5
17606sed 's/^/| /' conftest.$ac_ext >&5
17607
17608ac_cv_func_shl_load=no
17609fi
17610rm -f conftest.err conftest.$ac_objext \
17611 conftest$ac_exeext conftest.$ac_ext
17612fi
17613echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17614echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17615if test $ac_cv_func_shl_load = yes; then
17616 lt_cv_dlopen="shl_load"
17617else
17618 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17619echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17620if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17622else
17623 ac_check_lib_save_LIBS=$LIBS
17624LIBS="-ldld $LIBS"
17625cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631
17632/* Override any gcc2 internal prototype to avoid an error. */
17633#ifdef __cplusplus
17634extern "C"
17635#endif
17636/* We use char because int might match the return type of a gcc2
17637 builtin and then its argument prototype would still apply. */
17638char shl_load ();
17639int
17640main ()
17641{
17642shl_load ();
17643 ;
17644 return 0;
17645}
17646_ACEOF
17647rm -f conftest.$ac_objext conftest$ac_exeext
17648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649 (eval $ac_link) 2>conftest.er1
17650 ac_status=$?
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -z "$ac_c_werror_flag"
17657 || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest$ac_exeext'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 ac_cv_lib_dld_shl_load=yes
17670else
17671 echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
17674ac_cv_lib_dld_shl_load=no
17675fi
17676rm -f conftest.err conftest.$ac_objext \
17677 conftest$ac_exeext conftest.$ac_ext
17678LIBS=$ac_check_lib_save_LIBS
17679fi
17680echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17681echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17682if test $ac_cv_lib_dld_shl_load = yes; then
17683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17684else
17685 echo "$as_me:$LINENO: checking for dlopen" >&5
17686echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17687if test "${ac_cv_func_dlopen+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17689else
17690 cat >conftest.$ac_ext <<_ACEOF
17691/* confdefs.h. */
17692_ACEOF
17693cat confdefs.h >>conftest.$ac_ext
17694cat >>conftest.$ac_ext <<_ACEOF
17695/* end confdefs.h. */
17696/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17698#define dlopen innocuous_dlopen
17699
17700/* System header to define __stub macros and hopefully few prototypes,
17701 which can conflict with char dlopen (); below.
17702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17703 <limits.h> exists even on freestanding compilers. */
17704
17705#ifdef __STDC__
17706# include <limits.h>
17707#else
17708# include <assert.h>
17709#endif
17710
17711#undef dlopen
17712
17713/* Override any gcc2 internal prototype to avoid an error. */
17714#ifdef __cplusplus
17715extern "C"
17716{
17717#endif
17718/* We use char because int might match the return type of a gcc2
17719 builtin and then its argument prototype would still apply. */
17720char dlopen ();
17721/* The GNU C library defines this for functions which it implements
17722 to always fail with ENOSYS. Some functions are actually named
17723 something starting with __ and the normal name is an alias. */
17724#if defined (__stub_dlopen) || defined (__stub___dlopen)
17725choke me
17726#else
17727char (*f) () = dlopen;
17728#endif
17729#ifdef __cplusplus
17730}
17731#endif
17732
17733int
17734main ()
17735{
17736return f != dlopen;
17737 ;
17738 return 0;
17739}
17740_ACEOF
17741rm -f conftest.$ac_objext conftest$ac_exeext
17742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>conftest.er1
17744 ac_status=$?
17745 grep -v '^ *+' conftest.er1 >conftest.err
17746 rm -f conftest.er1
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
17750 { ac_try='test -z "$ac_c_werror_flag"
17751 || test ! -s conftest.err'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; } &&
17757 { ac_try='test -s conftest$ac_exeext'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ac_cv_func_dlopen=yes
17764else
17765 echo "$as_me: failed program was:" >&5
17766sed 's/^/| /' conftest.$ac_ext >&5
17767
17768ac_cv_func_dlopen=no
17769fi
17770rm -f conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
17772fi
17773echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17774echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17775if test $ac_cv_func_dlopen = yes; then
17776 lt_cv_dlopen="dlopen"
17777else
17778 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17779echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17780if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782else
17783 ac_check_lib_save_LIBS=$LIBS
17784LIBS="-ldl $LIBS"
17785cat >conftest.$ac_ext <<_ACEOF
17786/* confdefs.h. */
17787_ACEOF
17788cat confdefs.h >>conftest.$ac_ext
17789cat >>conftest.$ac_ext <<_ACEOF
17790/* end confdefs.h. */
17791
17792/* Override any gcc2 internal prototype to avoid an error. */
17793#ifdef __cplusplus
17794extern "C"
17795#endif
17796/* We use char because int might match the return type of a gcc2
17797 builtin and then its argument prototype would still apply. */
17798char dlopen ();
17799int
17800main ()
17801{
17802dlopen ();
17803 ;
17804 return 0;
17805}
17806_ACEOF
17807rm -f conftest.$ac_objext conftest$ac_exeext
17808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17809 (eval $ac_link) 2>conftest.er1
17810 ac_status=$?
17811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
17816 { ac_try='test -z "$ac_c_werror_flag"
17817 || test ! -s conftest.err'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; } &&
17823 { ac_try='test -s conftest$ac_exeext'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; }; then
17829 ac_cv_lib_dl_dlopen=yes
17830else
17831 echo "$as_me: failed program was:" >&5
17832sed 's/^/| /' conftest.$ac_ext >&5
17833
17834ac_cv_lib_dl_dlopen=no
17835fi
17836rm -f conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17838LIBS=$ac_check_lib_save_LIBS
17839fi
17840echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17841echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17842if test $ac_cv_lib_dl_dlopen = yes; then
17843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17844else
17845 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17846echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17847if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17849else
17850 ac_check_lib_save_LIBS=$LIBS
17851LIBS="-lsvld $LIBS"
17852cat >conftest.$ac_ext <<_ACEOF
17853/* confdefs.h. */
17854_ACEOF
17855cat confdefs.h >>conftest.$ac_ext
17856cat >>conftest.$ac_ext <<_ACEOF
17857/* end confdefs.h. */
17858
17859/* Override any gcc2 internal prototype to avoid an error. */
17860#ifdef __cplusplus
17861extern "C"
17862#endif
17863/* We use char because int might match the return type of a gcc2
17864 builtin and then its argument prototype would still apply. */
17865char dlopen ();
17866int
17867main ()
17868{
17869dlopen ();
17870 ;
17871 return 0;
17872}
17873_ACEOF
17874rm -f conftest.$ac_objext conftest$ac_exeext
17875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17876 (eval $ac_link) 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest$ac_exeext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_lib_svld_dlopen=yes
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901ac_cv_lib_svld_dlopen=no
17902fi
17903rm -f conftest.err conftest.$ac_objext \
17904 conftest$ac_exeext conftest.$ac_ext
17905LIBS=$ac_check_lib_save_LIBS
17906fi
17907echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17908echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17909if test $ac_cv_lib_svld_dlopen = yes; then
17910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17911else
17912 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17913echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17914if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916else
17917 ac_check_lib_save_LIBS=$LIBS
17918LIBS="-ldld $LIBS"
17919cat >conftest.$ac_ext <<_ACEOF
17920/* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
17925
17926/* Override any gcc2 internal prototype to avoid an error. */
17927#ifdef __cplusplus
17928extern "C"
17929#endif
17930/* We use char because int might match the return type of a gcc2
17931 builtin and then its argument prototype would still apply. */
17932char dld_link ();
17933int
17934main ()
17935{
17936dld_link ();
17937 ;
17938 return 0;
17939}
17940_ACEOF
17941rm -f conftest.$ac_objext conftest$ac_exeext
17942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17943 (eval $ac_link) 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest$ac_exeext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_cv_lib_dld_dld_link=yes
17964else
17965 echo "$as_me: failed program was:" >&5
17966sed 's/^/| /' conftest.$ac_ext >&5
17967
17968ac_cv_lib_dld_dld_link=no
17969fi
17970rm -f conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
17972LIBS=$ac_check_lib_save_LIBS
17973fi
17974echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17975echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17976if test $ac_cv_lib_dld_dld_link = yes; then
17977 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17978fi
17979
17980
17981fi
17982
17983
17984fi
17985
17986
17987fi
17988
17989
17990fi
17991
17992
17993fi
17994
17995 ;;
17996 esac
17997
17998 if test "x$lt_cv_dlopen" != xno; then
17999 enable_dlopen=yes
18000 else
18001 enable_dlopen=no
18002 fi
18003
18004 case $lt_cv_dlopen in
18005 dlopen)
18006 save_CPPFLAGS="$CPPFLAGS"
18007 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18008
18009 save_LDFLAGS="$LDFLAGS"
18010 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18011
18012 save_LIBS="$LIBS"
18013 LIBS="$lt_cv_dlopen_libs $LIBS"
18014
18015 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18016echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18017if test "${lt_cv_dlopen_self+set}" = set; then
18018 echo $ECHO_N "(cached) $ECHO_C" >&6
18019else
18020 if test "$cross_compiling" = yes; then :
18021 lt_cv_dlopen_self=cross
18022else
18023 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18024 lt_status=$lt_dlunknown
18025 cat > conftest.$ac_ext <<EOF
18026#line 18026 "configure"
18027#include "confdefs.h"
18028
18029#if HAVE_DLFCN_H
18030#include <dlfcn.h>
18031#endif
18032
18033#include <stdio.h>
18034
18035#ifdef RTLD_GLOBAL
18036# define LT_DLGLOBAL RTLD_GLOBAL
18037#else
18038# ifdef DL_GLOBAL
18039# define LT_DLGLOBAL DL_GLOBAL
18040# else
18041# define LT_DLGLOBAL 0
18042# endif
18043#endif
18044
18045/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18046 find out it does not work in some platform. */
18047#ifndef LT_DLLAZY_OR_NOW
18048# ifdef RTLD_LAZY
18049# define LT_DLLAZY_OR_NOW RTLD_LAZY
18050# else
18051# ifdef DL_LAZY
18052# define LT_DLLAZY_OR_NOW DL_LAZY
18053# else
18054# ifdef RTLD_NOW
18055# define LT_DLLAZY_OR_NOW RTLD_NOW
18056# else
18057# ifdef DL_NOW
18058# define LT_DLLAZY_OR_NOW DL_NOW
18059# else
18060# define LT_DLLAZY_OR_NOW 0
18061# endif
18062# endif
18063# endif
18064# endif
18065#endif
18066
18067#ifdef __cplusplus
18068extern "C" void exit (int);
18069#endif
18070
18071void fnord() { int i=42;}
18072int main ()
18073{
18074 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18075 int status = $lt_dlunknown;
18076
18077 if (self)
18078 {
18079 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18080 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18081 /* dlclose (self); */
18082 }
18083
18084 exit (status);
18085}
18086EOF
18087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18088 (eval $ac_link) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18092 (./conftest; exit; ) 2>/dev/null
18093 lt_status=$?
18094 case x$lt_status in
18095 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18096 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18097 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18098 esac
18099 else :
18100 # compilation failed
18101 lt_cv_dlopen_self=no
18102 fi
18103fi
18104rm -fr conftest*
18105
18106
18107fi
18108echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18109echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18110
18111 if test "x$lt_cv_dlopen_self" = xyes; then
18112 LDFLAGS="$LDFLAGS $link_static_flag"
18113 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18114echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18115if test "${lt_cv_dlopen_self_static+set}" = set; then
18116 echo $ECHO_N "(cached) $ECHO_C" >&6
18117else
18118 if test "$cross_compiling" = yes; then :
18119 lt_cv_dlopen_self_static=cross
18120else
18121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18122 lt_status=$lt_dlunknown
18123 cat > conftest.$ac_ext <<EOF
18124#line 18124 "configure"
18125#include "confdefs.h"
18126
18127#if HAVE_DLFCN_H
18128#include <dlfcn.h>
18129#endif
18130
18131#include <stdio.h>
18132
18133#ifdef RTLD_GLOBAL
18134# define LT_DLGLOBAL RTLD_GLOBAL
18135#else
18136# ifdef DL_GLOBAL
18137# define LT_DLGLOBAL DL_GLOBAL
18138# else
18139# define LT_DLGLOBAL 0
18140# endif
18141#endif
18142
18143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18144 find out it does not work in some platform. */
18145#ifndef LT_DLLAZY_OR_NOW
18146# ifdef RTLD_LAZY
18147# define LT_DLLAZY_OR_NOW RTLD_LAZY
18148# else
18149# ifdef DL_LAZY
18150# define LT_DLLAZY_OR_NOW DL_LAZY
18151# else
18152# ifdef RTLD_NOW
18153# define LT_DLLAZY_OR_NOW RTLD_NOW
18154# else
18155# ifdef DL_NOW
18156# define LT_DLLAZY_OR_NOW DL_NOW
18157# else
18158# define LT_DLLAZY_OR_NOW 0
18159# endif
18160# endif
18161# endif
18162# endif
18163#endif
18164
18165#ifdef __cplusplus
18166extern "C" void exit (int);
18167#endif
18168
18169void fnord() { int i=42;}
18170int main ()
18171{
18172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18173 int status = $lt_dlunknown;
18174
18175 if (self)
18176 {
18177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18178 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18179 /* dlclose (self); */
18180 }
18181
18182 exit (status);
18183}
18184EOF
18185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18186 (eval $ac_link) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18190 (./conftest; exit; ) 2>/dev/null
18191 lt_status=$?
18192 case x$lt_status in
18193 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18194 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18195 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18196 esac
18197 else :
18198 # compilation failed
18199 lt_cv_dlopen_self_static=no
18200 fi
18201fi
18202rm -fr conftest*
18203
18204
18205fi
18206echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18207echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18208 fi
18209
18210 CPPFLAGS="$save_CPPFLAGS"
18211 LDFLAGS="$save_LDFLAGS"
18212 LIBS="$save_LIBS"
18213 ;;
18214 esac
18215
18216 case $lt_cv_dlopen_self in
18217 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18218 *) enable_dlopen_self=unknown ;;
18219 esac
18220
18221 case $lt_cv_dlopen_self_static in
18222 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18223 *) enable_dlopen_self_static=unknown ;;
18224 esac
18225fi
18226
18227
18228# The else clause should only fire when bootstrapping the
18229# libtool distribution, otherwise you forgot to ship ltmain.sh
18230# with your package, and you will get complaints that there are
18231# no rules to generate ltmain.sh.
18232if test -f "$ltmain"; then
18233 # See if we are running on zsh, and set the options which allow our commands through
18234 # without removal of \ escapes.
18235 if test -n "${ZSH_VERSION+set}" ; then
18236 setopt NO_GLOB_SUBST
18237 fi
18238 # Now quote all the things that may contain metacharacters while being
18239 # careful not to overquote the AC_SUBSTed values. We take copies of the
18240 # variables and quote the copies for generation of the libtool script.
18241 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18242 SED SHELL STRIP \
18243 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18244 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18245 deplibs_check_method reload_flag reload_cmds need_locks \
18246 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18247 lt_cv_sys_global_symbol_to_c_name_address \
18248 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18249 old_postinstall_cmds old_postuninstall_cmds \
18250 compiler_GCJ \
18251 CC_GCJ \
18252 LD_GCJ \
18253 lt_prog_compiler_wl_GCJ \
18254 lt_prog_compiler_pic_GCJ \
18255 lt_prog_compiler_static_GCJ \
18256 lt_prog_compiler_no_builtin_flag_GCJ \
18257 export_dynamic_flag_spec_GCJ \
18258 thread_safe_flag_spec_GCJ \
18259 whole_archive_flag_spec_GCJ \
18260 enable_shared_with_static_runtimes_GCJ \
18261 old_archive_cmds_GCJ \
18262 old_archive_from_new_cmds_GCJ \
18263 predep_objects_GCJ \
18264 postdep_objects_GCJ \
18265 predeps_GCJ \
18266 postdeps_GCJ \
18267 compiler_lib_search_path_GCJ \
18268 archive_cmds_GCJ \
18269 archive_expsym_cmds_GCJ \
18270 postinstall_cmds_GCJ \
18271 postuninstall_cmds_GCJ \
18272 old_archive_from_expsyms_cmds_GCJ \
18273 allow_undefined_flag_GCJ \
18274 no_undefined_flag_GCJ \
18275 export_symbols_cmds_GCJ \
18276 hardcode_libdir_flag_spec_GCJ \
18277 hardcode_libdir_flag_spec_ld_GCJ \
18278 hardcode_libdir_separator_GCJ \
18279 hardcode_automatic_GCJ \
18280 module_cmds_GCJ \
18281 module_expsym_cmds_GCJ \
18282 lt_cv_prog_compiler_c_o_GCJ \
18283 exclude_expsyms_GCJ \
18284 include_expsyms_GCJ; do
18285
18286 case $var in
18287 old_archive_cmds_GCJ | \
18288 old_archive_from_new_cmds_GCJ | \
18289 archive_cmds_GCJ | \
18290 archive_expsym_cmds_GCJ | \
18291 module_cmds_GCJ | \
18292 module_expsym_cmds_GCJ | \
18293 old_archive_from_expsyms_cmds_GCJ | \
18294 export_symbols_cmds_GCJ | \
18295 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18296 postinstall_cmds | postuninstall_cmds | \
18297 old_postinstall_cmds | old_postuninstall_cmds | \
18298 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18299 # Double-quote double-evaled strings.
18300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18301 ;;
18302 *)
18303 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18304 ;;
18305 esac
18306 done
18307
18308 case $lt_echo in
18309 *'\$0 --fallback-echo"')
18310 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18311 ;;
18312 esac
18313
18314cfgfile="$ofile"
18315
18316 cat <<__EOF__ >> "$cfgfile"
18317# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18318
18319# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18320
18321# Shell to use when invoking shell scripts.
18322SHELL=$lt_SHELL
18323
18324# Whether or not to build shared libraries.
18325build_libtool_libs=$enable_shared
18326
18327# Whether or not to build static libraries.
18328build_old_libs=$enable_static
18329
18330# Whether or not to add -lc for building shared libraries.
18331build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18332
18333# Whether or not to disallow shared libs when runtime libs are static
18334allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18335
18336# Whether or not to optimize for fast installation.
18337fast_install=$enable_fast_install
18338
18339# The host system.
18340host_alias=$host_alias
18341host=$host
18342
18343# An echo program that does not interpret backslashes.
18344echo=$lt_echo
18345
18346# The archiver.
18347AR=$lt_AR
18348AR_FLAGS=$lt_AR_FLAGS
18349
18350# A C compiler.
18351LTCC=$lt_LTCC
18352
18353# A language-specific compiler.
18354CC=$lt_compiler_GCJ
18355
18356# Is the compiler the GNU C compiler?
18357with_gcc=$GCC_GCJ
18358
18359# An ERE matcher.
18360EGREP=$lt_EGREP
18361
18362# The linker used to build libraries.
18363LD=$lt_LD_GCJ
18364
18365# Whether we need hard or soft links.
18366LN_S=$lt_LN_S
18367
18368# A BSD-compatible nm program.
18369NM=$lt_NM
18370
18371# A symbol stripping program
18372STRIP=$lt_STRIP
18373
18374# Used to examine libraries when file_magic_cmd begins "file"
18375MAGIC_CMD=$MAGIC_CMD
18376
18377# Used on cygwin: DLL creation program.
18378DLLTOOL="$DLLTOOL"
18379
18380# Used on cygwin: object dumper.
18381OBJDUMP="$OBJDUMP"
18382
18383# Used on cygwin: assembler.
18384AS="$AS"
18385
18386# The name of the directory that contains temporary libtool files.
18387objdir=$objdir
18388
18389# How to create reloadable object files.
18390reload_flag=$lt_reload_flag
18391reload_cmds=$lt_reload_cmds
18392
18393# How to pass a linker flag through the compiler.
18394wl=$lt_lt_prog_compiler_wl_GCJ
18395
18396# Object file suffix (normally "o").
18397objext="$ac_objext"
18398
18399# Old archive suffix (normally "a").
18400libext="$libext"
18401
18402# Shared library suffix (normally ".so").
18403shrext_cmds='$shrext_cmds'
18404
18405# Executable file suffix (normally "").
18406exeext="$exeext"
18407
18408# Additional compiler flags for building library objects.
18409pic_flag=$lt_lt_prog_compiler_pic_GCJ
18410pic_mode=$pic_mode
18411
18412# What is the maximum length of a command?
18413max_cmd_len=$lt_cv_sys_max_cmd_len
18414
18415# Does compiler simultaneously support -c and -o options?
18416compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18417
18418# Must we lock files when doing compilation ?
18419need_locks=$lt_need_locks
18420
18421# Do we need the lib prefix for modules?
18422need_lib_prefix=$need_lib_prefix
18423
18424# Do we need a version for libraries?
18425need_version=$need_version
18426
18427# Whether dlopen is supported.
18428dlopen_support=$enable_dlopen
18429
18430# Whether dlopen of programs is supported.
18431dlopen_self=$enable_dlopen_self
18432
18433# Whether dlopen of statically linked programs is supported.
18434dlopen_self_static=$enable_dlopen_self_static
18435
18436# Compiler flag to prevent dynamic linking.
18437link_static_flag=$lt_lt_prog_compiler_static_GCJ
18438
18439# Compiler flag to turn off builtin functions.
18440no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18441
18442# Compiler flag to allow reflexive dlopens.
18443export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18444
18445# Compiler flag to generate shared objects directly from archives.
18446whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18447
18448# Compiler flag to generate thread-safe objects.
18449thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18450
18451# Library versioning type.
18452version_type=$version_type
18453
18454# Format of library name prefix.
18455libname_spec=$lt_libname_spec
18456
18457# List of archive names. First name is the real one, the rest are links.
18458# The last name is the one that the linker finds with -lNAME.
18459library_names_spec=$lt_library_names_spec
18460
18461# The coded name of the library, if different from the real name.
18462soname_spec=$lt_soname_spec
18463
18464# Commands used to build and install an old-style archive.
18465RANLIB=$lt_RANLIB
18466old_archive_cmds=$lt_old_archive_cmds_GCJ
18467old_postinstall_cmds=$lt_old_postinstall_cmds
18468old_postuninstall_cmds=$lt_old_postuninstall_cmds
18469
18470# Create an old-style archive from a shared archive.
18471old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18472
18473# Create a temporary old-style archive to link instead of a shared archive.
18474old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18475
18476# Commands used to build and install a shared archive.
18477archive_cmds=$lt_archive_cmds_GCJ
18478archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18479postinstall_cmds=$lt_postinstall_cmds
18480postuninstall_cmds=$lt_postuninstall_cmds
18481
18482# Commands used to build a loadable module (assumed same as above if empty)
18483module_cmds=$lt_module_cmds_GCJ
18484module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18485
18486# Commands to strip libraries.
18487old_striplib=$lt_old_striplib
18488striplib=$lt_striplib
18489
18490# Dependencies to place before the objects being linked to create a
18491# shared library.
18492predep_objects=$lt_predep_objects_GCJ
18493
18494# Dependencies to place after the objects being linked to create a
18495# shared library.
18496postdep_objects=$lt_postdep_objects_GCJ
18497
18498# Dependencies to place before the objects being linked to create a
18499# shared library.
18500predeps=$lt_predeps_GCJ
18501
18502# Dependencies to place after the objects being linked to create a
18503# shared library.
18504postdeps=$lt_postdeps_GCJ
18505
18506# The library search path used internally by the compiler when linking
18507# a shared library.
18508compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18509
18510# Method to check whether dependent libraries are shared objects.
18511deplibs_check_method=$lt_deplibs_check_method
18512
18513# Command to use when deplibs_check_method == file_magic.
18514file_magic_cmd=$lt_file_magic_cmd
18515
18516# Flag that allows shared libraries with undefined symbols to be built.
18517allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18518
18519# Flag that forces no undefined symbols.
18520no_undefined_flag=$lt_no_undefined_flag_GCJ
18521
18522# Commands used to finish a libtool library installation in a directory.
18523finish_cmds=$lt_finish_cmds
18524
18525# Same as above, but a single script fragment to be evaled but not shown.
18526finish_eval=$lt_finish_eval
18527
18528# Take the output of nm and produce a listing of raw symbols and C names.
18529global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18530
18531# Transform the output of nm in a proper C declaration
18532global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18533
18534# Transform the output of nm in a C name address pair
18535global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18536
18537# This is the shared library runtime path variable.
18538runpath_var=$runpath_var
18539
18540# This is the shared library path variable.
18541shlibpath_var=$shlibpath_var
18542
18543# Is shlibpath searched before the hard-coded library search path?
18544shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18545
18546# How to hardcode a shared library path into an executable.
18547hardcode_action=$hardcode_action_GCJ
18548
18549# Whether we should hardcode library paths into libraries.
18550hardcode_into_libs=$hardcode_into_libs
18551
18552# Flag to hardcode \$libdir into a binary during linking.
18553# This must work even if \$libdir does not exist.
18554hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18555
18556# If ld is used when linking, flag to hardcode \$libdir into
18557# a binary during linking. This must work even if \$libdir does
18558# not exist.
18559hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18560
18561# Whether we need a single -rpath flag with a separated argument.
18562hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18563
18564# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18565# resulting binary.
18566hardcode_direct=$hardcode_direct_GCJ
18567
18568# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18569# resulting binary.
18570hardcode_minus_L=$hardcode_minus_L_GCJ
18571
18572# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18573# the resulting binary.
18574hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18575
18576# Set to yes if building a shared library automatically hardcodes DIR into the library
18577# and all subsequent libraries and executables linked against it.
18578hardcode_automatic=$hardcode_automatic_GCJ
18579
18580# Variables whose values should be saved in libtool wrapper scripts and
18581# restored at relink time.
18582variables_saved_for_relink="$variables_saved_for_relink"
18583
18584# Whether libtool must link a program against all its dependency libraries.
18585link_all_deplibs=$link_all_deplibs_GCJ
18586
18587# Compile-time system search path for libraries
18588sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18589
18590# Run-time system search path for libraries
18591sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18592
18593# Fix the shell variable \$srcfile for the compiler.
18594fix_srcfile_path="$fix_srcfile_path_GCJ"
18595
18596# Set to yes if exported symbols are required.
18597always_export_symbols=$always_export_symbols_GCJ
18598
18599# The commands to list exported symbols.
18600export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18601
18602# The commands to extract the exported symbol list from a shared archive.
18603extract_expsyms_cmds=$lt_extract_expsyms_cmds
18604
18605# Symbols that should not be listed in the preloaded symbols.
18606exclude_expsyms=$lt_exclude_expsyms_GCJ
18607
18608# Symbols that must always be exported.
18609include_expsyms=$lt_include_expsyms_GCJ
18610
18611# ### END LIBTOOL TAG CONFIG: $tagname
18612
18613__EOF__
18614
18615
18616else
18617 # If there is no Makefile yet, we rely on a make rule to execute
18618 # `config.status --recheck' to rerun these tests and create the
18619 # libtool script then.
18620 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18621 if test -f "$ltmain_in"; then
18622 test -f Makefile && make "$ltmain"
18623 fi
18624fi
18625
18626
18627ac_ext=c
18628ac_cpp='$CPP $CPPFLAGS'
18629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18631ac_compiler_gnu=$ac_cv_c_compiler_gnu
18632
18633CC="$lt_save_CC"
18634
18635 else
18636 tagname=""
18637 fi
18638 ;;
18639
18640 RC)
18641
18642
18643
18644# Source file extension for RC test sources.
18645ac_ext=rc
18646
18647# Object file extension for compiled RC test sources.
18648objext=o
18649objext_RC=$objext
18650
18651# Code to be used in simple compile tests
18652lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18653
18654# Code to be used in simple link tests
18655lt_simple_link_test_code="$lt_simple_compile_test_code"
18656
18657# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18658
18659# If no C compiler was specified, use CC.
18660LTCC=${LTCC-"$CC"}
18661
18662# Allow CC to be a program name with arguments.
18663compiler=$CC
18664
18665
18666# Allow CC to be a program name with arguments.
18667lt_save_CC="$CC"
18668CC=${RC-"windres"}
18669compiler=$CC
18670compiler_RC=$CC
18671lt_cv_prog_compiler_c_o_RC=yes
18672
18673# The else clause should only fire when bootstrapping the
18674# libtool distribution, otherwise you forgot to ship ltmain.sh
18675# with your package, and you will get complaints that there are
18676# no rules to generate ltmain.sh.
18677if test -f "$ltmain"; then
18678 # See if we are running on zsh, and set the options which allow our commands through
18679 # without removal of \ escapes.
18680 if test -n "${ZSH_VERSION+set}" ; then
18681 setopt NO_GLOB_SUBST
18682 fi
18683 # Now quote all the things that may contain metacharacters while being
18684 # careful not to overquote the AC_SUBSTed values. We take copies of the
18685 # variables and quote the copies for generation of the libtool script.
18686 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18687 SED SHELL STRIP \
18688 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18689 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18690 deplibs_check_method reload_flag reload_cmds need_locks \
18691 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18692 lt_cv_sys_global_symbol_to_c_name_address \
18693 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18694 old_postinstall_cmds old_postuninstall_cmds \
18695 compiler_RC \
18696 CC_RC \
18697 LD_RC \
18698 lt_prog_compiler_wl_RC \
18699 lt_prog_compiler_pic_RC \
18700 lt_prog_compiler_static_RC \
18701 lt_prog_compiler_no_builtin_flag_RC \
18702 export_dynamic_flag_spec_RC \
18703 thread_safe_flag_spec_RC \
18704 whole_archive_flag_spec_RC \
18705 enable_shared_with_static_runtimes_RC \
18706 old_archive_cmds_RC \
18707 old_archive_from_new_cmds_RC \
18708 predep_objects_RC \
18709 postdep_objects_RC \
18710 predeps_RC \
18711 postdeps_RC \
18712 compiler_lib_search_path_RC \
18713 archive_cmds_RC \
18714 archive_expsym_cmds_RC \
18715 postinstall_cmds_RC \
18716 postuninstall_cmds_RC \
18717 old_archive_from_expsyms_cmds_RC \
18718 allow_undefined_flag_RC \
18719 no_undefined_flag_RC \
18720 export_symbols_cmds_RC \
18721 hardcode_libdir_flag_spec_RC \
18722 hardcode_libdir_flag_spec_ld_RC \
18723 hardcode_libdir_separator_RC \
18724 hardcode_automatic_RC \
18725 module_cmds_RC \
18726 module_expsym_cmds_RC \
18727 lt_cv_prog_compiler_c_o_RC \
18728 exclude_expsyms_RC \
18729 include_expsyms_RC; do
18730
18731 case $var in
18732 old_archive_cmds_RC | \
18733 old_archive_from_new_cmds_RC | \
18734 archive_cmds_RC | \
18735 archive_expsym_cmds_RC | \
18736 module_cmds_RC | \
18737 module_expsym_cmds_RC | \
18738 old_archive_from_expsyms_cmds_RC | \
18739 export_symbols_cmds_RC | \
18740 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18741 postinstall_cmds | postuninstall_cmds | \
18742 old_postinstall_cmds | old_postuninstall_cmds | \
18743 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18744 # Double-quote double-evaled strings.
18745 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18746 ;;
18747 *)
18748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18749 ;;
18750 esac
18751 done
18752
18753 case $lt_echo in
18754 *'\$0 --fallback-echo"')
18755 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18756 ;;
18757 esac
18758
18759cfgfile="$ofile"
18760
18761 cat <<__EOF__ >> "$cfgfile"
18762# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18763
18764# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18765
18766# Shell to use when invoking shell scripts.
18767SHELL=$lt_SHELL
18768
18769# Whether or not to build shared libraries.
18770build_libtool_libs=$enable_shared
18771
18772# Whether or not to build static libraries.
18773build_old_libs=$enable_static
18774
18775# Whether or not to add -lc for building shared libraries.
18776build_libtool_need_lc=$archive_cmds_need_lc_RC
18777
18778# Whether or not to disallow shared libs when runtime libs are static
18779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18780
18781# Whether or not to optimize for fast installation.
18782fast_install=$enable_fast_install
18783
18784# The host system.
18785host_alias=$host_alias
18786host=$host
18787
18788# An echo program that does not interpret backslashes.
18789echo=$lt_echo
18790
18791# The archiver.
18792AR=$lt_AR
18793AR_FLAGS=$lt_AR_FLAGS
18794
18795# A C compiler.
18796LTCC=$lt_LTCC
18797
18798# A language-specific compiler.
18799CC=$lt_compiler_RC
18800
18801# Is the compiler the GNU C compiler?
18802with_gcc=$GCC_RC
18803
18804# An ERE matcher.
18805EGREP=$lt_EGREP
18806
18807# The linker used to build libraries.
18808LD=$lt_LD_RC
18809
18810# Whether we need hard or soft links.
18811LN_S=$lt_LN_S
18812
18813# A BSD-compatible nm program.
18814NM=$lt_NM
18815
18816# A symbol stripping program
18817STRIP=$lt_STRIP
18818
18819# Used to examine libraries when file_magic_cmd begins "file"
18820MAGIC_CMD=$MAGIC_CMD
18821
18822# Used on cygwin: DLL creation program.
18823DLLTOOL="$DLLTOOL"
18824
18825# Used on cygwin: object dumper.
18826OBJDUMP="$OBJDUMP"
18827
18828# Used on cygwin: assembler.
18829AS="$AS"
18830
18831# The name of the directory that contains temporary libtool files.
18832objdir=$objdir
18833
18834# How to create reloadable object files.
18835reload_flag=$lt_reload_flag
18836reload_cmds=$lt_reload_cmds
18837
18838# How to pass a linker flag through the compiler.
18839wl=$lt_lt_prog_compiler_wl_RC
18840
18841# Object file suffix (normally "o").
18842objext="$ac_objext"
18843
18844# Old archive suffix (normally "a").
18845libext="$libext"
18846
18847# Shared library suffix (normally ".so").
18848shrext_cmds='$shrext_cmds'
18849
18850# Executable file suffix (normally "").
18851exeext="$exeext"
18852
18853# Additional compiler flags for building library objects.
18854pic_flag=$lt_lt_prog_compiler_pic_RC
18855pic_mode=$pic_mode
18856
18857# What is the maximum length of a command?
18858max_cmd_len=$lt_cv_sys_max_cmd_len
18859
18860# Does compiler simultaneously support -c and -o options?
18861compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18862
18863# Must we lock files when doing compilation ?
18864need_locks=$lt_need_locks
18865
18866# Do we need the lib prefix for modules?
18867need_lib_prefix=$need_lib_prefix
18868
18869# Do we need a version for libraries?
18870need_version=$need_version
18871
18872# Whether dlopen is supported.
18873dlopen_support=$enable_dlopen
18874
18875# Whether dlopen of programs is supported.
18876dlopen_self=$enable_dlopen_self
18877
18878# Whether dlopen of statically linked programs is supported.
18879dlopen_self_static=$enable_dlopen_self_static
18880
18881# Compiler flag to prevent dynamic linking.
18882link_static_flag=$lt_lt_prog_compiler_static_RC
18883
18884# Compiler flag to turn off builtin functions.
18885no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18886
18887# Compiler flag to allow reflexive dlopens.
18888export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18889
18890# Compiler flag to generate shared objects directly from archives.
18891whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18892
18893# Compiler flag to generate thread-safe objects.
18894thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18895
18896# Library versioning type.
18897version_type=$version_type
18898
18899# Format of library name prefix.
18900libname_spec=$lt_libname_spec
18901
18902# List of archive names. First name is the real one, the rest are links.
18903# The last name is the one that the linker finds with -lNAME.
18904library_names_spec=$lt_library_names_spec
18905
18906# The coded name of the library, if different from the real name.
18907soname_spec=$lt_soname_spec
18908
18909# Commands used to build and install an old-style archive.
18910RANLIB=$lt_RANLIB
18911old_archive_cmds=$lt_old_archive_cmds_RC
18912old_postinstall_cmds=$lt_old_postinstall_cmds
18913old_postuninstall_cmds=$lt_old_postuninstall_cmds
18914
18915# Create an old-style archive from a shared archive.
18916old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18917
18918# Create a temporary old-style archive to link instead of a shared archive.
18919old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18920
18921# Commands used to build and install a shared archive.
18922archive_cmds=$lt_archive_cmds_RC
18923archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18924postinstall_cmds=$lt_postinstall_cmds
18925postuninstall_cmds=$lt_postuninstall_cmds
18926
18927# Commands used to build a loadable module (assumed same as above if empty)
18928module_cmds=$lt_module_cmds_RC
18929module_expsym_cmds=$lt_module_expsym_cmds_RC
18930
18931# Commands to strip libraries.
18932old_striplib=$lt_old_striplib
18933striplib=$lt_striplib
18934
18935# Dependencies to place before the objects being linked to create a
18936# shared library.
18937predep_objects=$lt_predep_objects_RC
18938
18939# Dependencies to place after the objects being linked to create a
18940# shared library.
18941postdep_objects=$lt_postdep_objects_RC
18942
18943# Dependencies to place before the objects being linked to create a
18944# shared library.
18945predeps=$lt_predeps_RC
18946
18947# Dependencies to place after the objects being linked to create a
18948# shared library.
18949postdeps=$lt_postdeps_RC
18950
18951# The library search path used internally by the compiler when linking
18952# a shared library.
18953compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18954
18955# Method to check whether dependent libraries are shared objects.
18956deplibs_check_method=$lt_deplibs_check_method
18957
18958# Command to use when deplibs_check_method == file_magic.
18959file_magic_cmd=$lt_file_magic_cmd
18960
18961# Flag that allows shared libraries with undefined symbols to be built.
18962allow_undefined_flag=$lt_allow_undefined_flag_RC
18963
18964# Flag that forces no undefined symbols.
18965no_undefined_flag=$lt_no_undefined_flag_RC
18966
18967# Commands used to finish a libtool library installation in a directory.
18968finish_cmds=$lt_finish_cmds
18969
18970# Same as above, but a single script fragment to be evaled but not shown.
18971finish_eval=$lt_finish_eval
18972
18973# Take the output of nm and produce a listing of raw symbols and C names.
18974global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18975
18976# Transform the output of nm in a proper C declaration
18977global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18978
18979# Transform the output of nm in a C name address pair
18980global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18981
18982# This is the shared library runtime path variable.
18983runpath_var=$runpath_var
18984
18985# This is the shared library path variable.
18986shlibpath_var=$shlibpath_var
18987
18988# Is shlibpath searched before the hard-coded library search path?
18989shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18990
18991# How to hardcode a shared library path into an executable.
18992hardcode_action=$hardcode_action_RC
18993
18994# Whether we should hardcode library paths into libraries.
18995hardcode_into_libs=$hardcode_into_libs
18996
18997# Flag to hardcode \$libdir into a binary during linking.
18998# This must work even if \$libdir does not exist.
18999hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19000
19001# If ld is used when linking, flag to hardcode \$libdir into
19002# a binary during linking. This must work even if \$libdir does
19003# not exist.
19004hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19005
19006# Whether we need a single -rpath flag with a separated argument.
19007hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19008
19009# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19010# resulting binary.
19011hardcode_direct=$hardcode_direct_RC
19012
19013# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19014# resulting binary.
19015hardcode_minus_L=$hardcode_minus_L_RC
19016
19017# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19018# the resulting binary.
19019hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19020
19021# Set to yes if building a shared library automatically hardcodes DIR into the library
19022# and all subsequent libraries and executables linked against it.
19023hardcode_automatic=$hardcode_automatic_RC
19024
19025# Variables whose values should be saved in libtool wrapper scripts and
19026# restored at relink time.
19027variables_saved_for_relink="$variables_saved_for_relink"
19028
19029# Whether libtool must link a program against all its dependency libraries.
19030link_all_deplibs=$link_all_deplibs_RC
19031
19032# Compile-time system search path for libraries
19033sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19034
19035# Run-time system search path for libraries
19036sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19037
19038# Fix the shell variable \$srcfile for the compiler.
19039fix_srcfile_path="$fix_srcfile_path_RC"
19040
19041# Set to yes if exported symbols are required.
19042always_export_symbols=$always_export_symbols_RC
19043
19044# The commands to list exported symbols.
19045export_symbols_cmds=$lt_export_symbols_cmds_RC
19046
19047# The commands to extract the exported symbol list from a shared archive.
19048extract_expsyms_cmds=$lt_extract_expsyms_cmds
19049
19050# Symbols that should not be listed in the preloaded symbols.
19051exclude_expsyms=$lt_exclude_expsyms_RC
19052
19053# Symbols that must always be exported.
19054include_expsyms=$lt_include_expsyms_RC
19055
19056# ### END LIBTOOL TAG CONFIG: $tagname
19057
19058__EOF__
19059
19060
19061else
19062 # If there is no Makefile yet, we rely on a make rule to execute
19063 # `config.status --recheck' to rerun these tests and create the
19064 # libtool script then.
19065 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19066 if test -f "$ltmain_in"; then
19067 test -f Makefile && make "$ltmain"
19068 fi
19069fi
19070
19071
19072ac_ext=c
19073ac_cpp='$CPP $CPPFLAGS'
19074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076ac_compiler_gnu=$ac_cv_c_compiler_gnu
19077
19078CC="$lt_save_CC"
19079
19080 ;;
19081
19082 *)
19083 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19084echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19085 { (exit 1); exit 1; }; }
19086 ;;
19087 esac
19088
19089 # Append the new tag name to the list of available tags.
19090 if test -n "$tagname" ; then
19091 available_tags="$available_tags $tagname"
19092 fi
19093 fi
19094 done
19095 IFS="$lt_save_ifs"
19096
19097 # Now substitute the updated list of available tags.
19098 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19099 mv "${ofile}T" "$ofile"
19100 chmod +x "$ofile"
19101 else
19102 rm -f "${ofile}T"
19103 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19104echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19105 { (exit 1); exit 1; }; }
19106 fi
19107fi
19108
19109
19110
19111# This can be used to rebuild libtool when needed
19112LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19113
19114# Always use our own libtool.
19115LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19116
19117# Prevent multiple expansion
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136 8510
19137 8511
19138ac_ext=c 8512ac_ext=c
19139ac_cpp='$CPP $CPPFLAGS' 8513ac_cpp='$CPP $CPPFLAGS'
19140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19500 grep -v '^ *+' conftest.er1 >conftest.err 8874 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1 8875 rm -f conftest.er1
19502 cat conftest.err >&5 8876 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && 8878 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag" 8879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19506 || test ! -s conftest.err'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5 8881 (eval $ac_try) 2>&5
19509 ac_status=$? 8882 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } && 8884 (exit $ac_status); }; } &&
19559 grep -v '^ *+' conftest.er1 >conftest.err 8932 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1 8933 rm -f conftest.er1
19561 cat conftest.err >&5 8934 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && 8936 (exit $ac_status); } &&
19564 { ac_try='test -z "$ac_c_werror_flag" 8937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19565 || test ! -s conftest.err'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5 8939 (eval $ac_try) 2>&5
19568 ac_status=$? 8940 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; } && 8942 (exit $ac_status); }; } &&
19676 grep -v '^ *+' conftest.er1 >conftest.err 9048 grep -v '^ *+' conftest.er1 >conftest.err
19677 rm -f conftest.er1 9049 rm -f conftest.er1
19678 cat conftest.err >&5 9050 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } && 9052 (exit $ac_status); } &&
19681 { ac_try='test -z "$ac_c_werror_flag" 9053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19682 || test ! -s conftest.err'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5 9055 (eval $ac_try) 2>&5
19685 ac_status=$? 9056 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } && 9058 (exit $ac_status); }; } &&
19731 grep -v '^ *+' conftest.er1 >conftest.err 9102 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1 9103 rm -f conftest.er1
19733 cat conftest.err >&5 9104 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } && 9106 (exit $ac_status); } &&
19736 { ac_try='test -z "$ac_c_werror_flag" 9107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19737 || test ! -s conftest.err'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5 9109 (eval $ac_try) 2>&5
19740 ac_status=$? 9110 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } && 9112 (exit $ac_status); }; } &&
19777 grep -v '^ *+' conftest.er1 >conftest.err 9147 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1 9148 rm -f conftest.er1
19779 cat conftest.err >&5 9149 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } && 9151 (exit $ac_status); } &&
19782 { ac_try='test -z "$ac_c_werror_flag" 9152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19783 || test ! -s conftest.err'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5 9154 (eval $ac_try) 2>&5
19786 ac_status=$? 9155 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; } && 9157 (exit $ac_status); }; } &&
19822 grep -v '^ *+' conftest.er1 >conftest.err 9191 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1 9192 rm -f conftest.er1
19824 cat conftest.err >&5 9193 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && 9195 (exit $ac_status); } &&
19827 { ac_try='test -z "$ac_c_werror_flag" 9196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19828 || test ! -s conftest.err'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5 9198 (eval $ac_try) 2>&5
19831 ac_status=$? 9199 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } && 9201 (exit $ac_status); }; } &&
19903 # overwrite some of them when testing with obscure command lines. 9271 # overwrite some of them when testing with obscure command lines.
19904 # This happens at least with the AIX C compiler. 9272 # This happens at least with the AIX C compiler.
19905 : > sub/conftest.c 9273 : > sub/conftest.c
19906 for i in 1 2 3 4 5 6; do 9274 for i in 1 2 3 4 5 6; do
19907 echo '#include "conftst'$i'.h"' >> sub/conftest.c 9275 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19908 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19909 # Solaris 8's {/usr,}/bin/sh.
19910 touch sub/conftst$i.h 9276 : > sub/conftst$i.h
19911 done 9277 done
19912 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 9278 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19913 9279
19914 case $depmode in 9280 case $depmode in
19915 nosideeffect) 9281 nosideeffect)
19933 >/dev/null 2>conftest.err && 9299 >/dev/null 2>conftest.err &&
19934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 9300 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19935 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 9301 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 9302 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19937 # icc doesn't choke on unknown options, it will just issue warnings 9303 # icc doesn't choke on unknown options, it will just issue warnings
19938 # or remarks (even with -Werror). So we grep stderr for any message 9304 # (even with -Werror). So we grep stderr for any message
19939 # that says an option was ignored or not supported. 9305 # that says an option was ignored.
19940 # When given -MP, icc 7.0 and 7.1 complain thusly:
19941 # icc: Command line warning: ignoring option '-M'; no argument required
19942 # The diagnosis changed in icc 8.0:
19943 # icc: Command line remark: option '-MP' not supported
19944 if (grep 'ignoring option' conftest.err ||
19945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9306 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19946 am_cv_CC_dependencies_compiler_type=$depmode 9307 am_cv_CC_dependencies_compiler_type=$depmode
19947 break 9308 break
19948 fi 9309 fi
19949 fi 9310 fi
19950 done 9311 done
20300 grep -v '^ *+' conftest.er1 >conftest.err 9661 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1 9662 rm -f conftest.er1
20302 cat conftest.err >&5 9663 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } && 9665 (exit $ac_status); } &&
20305 { ac_try='test -z "$ac_c_werror_flag" 9666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20306 || test ! -s conftest.err'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5 9668 (eval $ac_try) 2>&5
20309 ac_status=$? 9669 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } && 9671 (exit $ac_status); }; } &&
20367 grep -v '^ *+' conftest.er1 >conftest.err 9727 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1 9728 rm -f conftest.er1
20369 cat conftest.err >&5 9729 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && 9731 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag" 9732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20373 || test ! -s conftest.err'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5 9734 (eval $ac_try) 2>&5
20376 ac_status=$? 9735 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } && 9737 (exit $ac_status); }; } &&
20457 grep -v '^ *+' conftest.er1 >conftest.err 9816 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1 9817 rm -f conftest.er1
20459 cat conftest.err >&5 9818 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && 9820 (exit $ac_status); } &&
20462 { ac_try='test -z "$ac_c_werror_flag" 9821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20463 || test ! -s conftest.err'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5 9823 (eval $ac_try) 2>&5
20466 ac_status=$? 9824 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } && 9826 (exit $ac_status); }; } &&
20996 grep -v '^ *+' conftest.er1 >conftest.err 10354 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1 10355 rm -f conftest.er1
20998 cat conftest.err >&5 10356 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && 10358 (exit $ac_status); } &&
21001 { ac_try='test -z "$ac_c_werror_flag" 10359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21002 || test ! -s conftest.err'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5 10361 (eval $ac_try) 2>&5
21005 ac_status=$? 10362 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } && 10364 (exit $ac_status); }; } &&
21064 grep -v '^ *+' conftest.er1 >conftest.err 10421 grep -v '^ *+' conftest.er1 >conftest.err
21065 rm -f conftest.er1 10422 rm -f conftest.er1
21066 cat conftest.err >&5 10423 cat conftest.err >&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } && 10425 (exit $ac_status); } &&
21069 { ac_try='test -z "$ac_c_werror_flag" 10426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21070 || test ! -s conftest.err'
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5 10428 (eval $ac_try) 2>&5
21073 ac_status=$? 10429 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; } && 10431 (exit $ac_status); }; } &&
21100 LIBS="-lsocket $LIBS" 10456 LIBS="-lsocket $LIBS"
21101 10457
21102fi 10458fi
21103 10459
21104 10460
10461
10462if test "x$ac_path_x_has_been_run" != xyes; then
21105echo "$as_me:$LINENO: checking for X" >&5 10463 echo "$as_me:$LINENO: checking for X" >&5
21106echo $ECHO_N "checking for X... $ECHO_C" >&6 10464echo $ECHO_N "checking for X... $ECHO_C" >&6
21107 10465
10466ac_path_x_has_been_run=yes
21108 10467
21109# Check whether --with-x or --without-x was given. 10468# Check whether --with-x or --without-x was given.
21110if test "${with_x+set}" = set; then 10469if test "${with_x+set}" = set; then
21111 withval="$with_x" 10470 withval="$with_x"
21112 10471
21195 10554
21196/usr/openwin/include 10555/usr/openwin/include
21197/usr/openwin/share/include' 10556/usr/openwin/share/include'
21198 10557
21199if test "$ac_x_includes" = no; then 10558if test "$ac_x_includes" = no; then
21200 # Guess where to find include files, by looking for Intrinsic.h. 10559 # Guess where to find include files, by looking for a specified header file.
21201 # First, try using that file with no special directory specified. 10560 # First, try using that file with no special directory specified.
21202 cat >conftest.$ac_ext <<_ACEOF 10561 cat >conftest.$ac_ext <<_ACEOF
21203/* confdefs.h. */ 10562/* confdefs.h. */
21204_ACEOF 10563_ACEOF
21205cat confdefs.h >>conftest.$ac_ext 10564cat confdefs.h >>conftest.$ac_ext
21206cat >>conftest.$ac_ext <<_ACEOF 10565cat >>conftest.$ac_ext <<_ACEOF
21207/* end confdefs.h. */ 10566/* end confdefs.h. */
21208#include <X11/Intrinsic.h> 10567#include <X11/Xlib.h>
21209_ACEOF 10568_ACEOF
21210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21212 ac_status=$? 10571 ac_status=$?
21213 grep -v '^ *+' conftest.er1 >conftest.err 10572 grep -v '^ *+' conftest.er1 >conftest.err
21230else 10589else
21231 echo "$as_me: failed program was:" >&5 10590 echo "$as_me: failed program was:" >&5
21232sed 's/^/| /' conftest.$ac_ext >&5 10591sed 's/^/| /' conftest.$ac_ext >&5
21233 10592
21234 for ac_dir in $ac_x_header_dirs; do 10593 for ac_dir in $ac_x_header_dirs; do
21235 if test -r "$ac_dir/X11/Intrinsic.h"; then 10594 if test -r "$ac_dir/X11/Xlib.h"; then
21236 ac_x_includes=$ac_dir 10595 ac_x_includes=$ac_dir
21237 break 10596 break
21238 fi 10597 fi
21239done 10598done
21240fi 10599fi
21244if test "$ac_x_libraries" = no; then 10603if test "$ac_x_libraries" = no; then
21245 # Check for the libraries. 10604 # Check for the libraries.
21246 # See if we find them without any special options. 10605 # See if we find them without any special options.
21247 # Don't add to $LIBS permanently. 10606 # Don't add to $LIBS permanently.
21248 ac_save_LIBS=$LIBS 10607 ac_save_LIBS=$LIBS
21249 LIBS="-lXt $LIBS" 10608 LIBS="-lX11 $LIBS"
21250 cat >conftest.$ac_ext <<_ACEOF 10609 cat >conftest.$ac_ext <<_ACEOF
21251/* confdefs.h. */ 10610/* confdefs.h. */
21252_ACEOF 10611_ACEOF
21253cat confdefs.h >>conftest.$ac_ext 10612cat confdefs.h >>conftest.$ac_ext
21254cat >>conftest.$ac_ext <<_ACEOF 10613cat >>conftest.$ac_ext <<_ACEOF
21255/* end confdefs.h. */ 10614/* end confdefs.h. */
21256#include <X11/Intrinsic.h> 10615#include <X11/Xlib.h>
21257int 10616int
21258main () 10617main ()
21259{ 10618{
21260XtMalloc (0) 10619XrmInitialize ()
21261 ; 10620 ;
21262 return 0; 10621 return 0;
21263} 10622}
21264_ACEOF 10623_ACEOF
21265rm -f conftest.$ac_objext conftest$ac_exeext 10624rm -f conftest.$ac_objext conftest$ac_exeext
21269 grep -v '^ *+' conftest.er1 >conftest.err 10628 grep -v '^ *+' conftest.er1 >conftest.err
21270 rm -f conftest.er1 10629 rm -f conftest.er1
21271 cat conftest.err >&5 10630 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } && 10632 (exit $ac_status); } &&
21274 { ac_try='test -z "$ac_c_werror_flag" 10633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21275 || test ! -s conftest.err'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5 10635 (eval $ac_try) 2>&5
21278 ac_status=$? 10636 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; } && 10638 (exit $ac_status); }; } &&
21294LIBS=$ac_save_LIBS 10652LIBS=$ac_save_LIBS
21295for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 10653for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21296do 10654do
21297 # Don't even attempt the hair of trying to link an X program! 10655 # Don't even attempt the hair of trying to link an X program!
21298 for ac_extension in a so sl; do 10656 for ac_extension in a so sl; do
21299 if test -r $ac_dir/libXt.$ac_extension; then 10657 if test -r $ac_dir/libX11.$ac_extension; then
21300 ac_x_libraries=$ac_dir 10658 ac_x_libraries=$ac_dir
21301 break 2 10659 break 2
21302 fi 10660 fi
21303 done 10661 done
21304done 10662done
21330 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 10688 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21331 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 10689 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21332 # Update the cache value to reflect the command line values. 10690 # Update the cache value to reflect the command line values.
21333 ac_cv_have_x="have_x=yes \ 10691 ac_cv_have_x="have_x=yes \
21334 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 10692 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10693 # It might be that x_includes is empty (headers are found in the
10694 # standard search path. Then output the corresponding message
10695 ac_out_x_includes=$x_includes
10696 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
21335 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 10697 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
21336echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 10698echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
21337fi 10699fi
21338 10700
10701fi
21339if test "$no_x" = yes; then 10702if test "$no_x" = yes; then
21340 # Not all programs may use this symbol, but it does not hurt to define it. 10703 # Not all programs may use this symbol, but it does not hurt to define it.
21341 10704
21342cat >>confdefs.h <<\_ACEOF 10705cat >>confdefs.h <<\_ACEOF
21343#define X_DISPLAY_MISSING 1 10706#define X_DISPLAY_MISSING 1
21381 grep -v '^ *+' conftest.er1 >conftest.err 10744 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1 10745 rm -f conftest.er1
21383 cat conftest.err >&5 10746 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && 10748 (exit $ac_status); } &&
21386 { ac_try='test -z "$ac_c_werror_flag" 10749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21387 || test ! -s conftest.err'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5 10751 (eval $ac_try) 2>&5
21390 ac_status=$? 10752 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } && 10754 (exit $ac_status); }; } &&
21433 grep -v '^ *+' conftest.er1 >conftest.err 10795 grep -v '^ *+' conftest.er1 >conftest.err
21434 rm -f conftest.er1 10796 rm -f conftest.er1
21435 cat conftest.err >&5 10797 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } && 10799 (exit $ac_status); } &&
21438 { ac_try='test -z "$ac_c_werror_flag" 10800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21439 || test ! -s conftest.err'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5 10802 (eval $ac_try) 2>&5
21442 ac_status=$? 10803 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; } && 10805 (exit $ac_status); }; } &&
21510 grep -v '^ *+' conftest.er1 >conftest.err 10871 grep -v '^ *+' conftest.er1 >conftest.err
21511 rm -f conftest.er1 10872 rm -f conftest.er1
21512 cat conftest.err >&5 10873 cat conftest.err >&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); } && 10875 (exit $ac_status); } &&
21515 { ac_try='test -z "$ac_c_werror_flag" 10876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21516 || test ! -s conftest.err'
21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518 (eval $ac_try) 2>&5 10878 (eval $ac_try) 2>&5
21519 ac_status=$? 10879 ac_status=$?
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; } && 10881 (exit $ac_status); }; } &&
21566 grep -v '^ *+' conftest.er1 >conftest.err 10926 grep -v '^ *+' conftest.er1 >conftest.err
21567 rm -f conftest.er1 10927 rm -f conftest.er1
21568 cat conftest.err >&5 10928 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } && 10930 (exit $ac_status); } &&
21571 { ac_try='test -z "$ac_c_werror_flag" 10931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21572 || test ! -s conftest.err'
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5 10933 (eval $ac_try) 2>&5
21575 ac_status=$? 10934 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; } && 10936 (exit $ac_status); }; } &&
21635 grep -v '^ *+' conftest.er1 >conftest.err 10994 grep -v '^ *+' conftest.er1 >conftest.err
21636 rm -f conftest.er1 10995 rm -f conftest.er1
21637 cat conftest.err >&5 10996 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } && 10998 (exit $ac_status); } &&
21640 { ac_try='test -z "$ac_c_werror_flag" 10999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21641 || test ! -s conftest.err'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5 11001 (eval $ac_try) 2>&5
21644 ac_status=$? 11002 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; } && 11004 (exit $ac_status); }; } &&
21744 grep -v '^ *+' conftest.er1 >conftest.err 11102 grep -v '^ *+' conftest.er1 >conftest.err
21745 rm -f conftest.er1 11103 rm -f conftest.er1
21746 cat conftest.err >&5 11104 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } && 11106 (exit $ac_status); } &&
21749 { ac_try='test -z "$ac_c_werror_flag" 11107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21750 || test ! -s conftest.err'
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5 11109 (eval $ac_try) 2>&5
21753 ac_status=$? 11110 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; } && 11112 (exit $ac_status); }; } &&
21809 grep -v '^ *+' conftest.er1 >conftest.err 11166 grep -v '^ *+' conftest.er1 >conftest.err
21810 rm -f conftest.er1 11167 rm -f conftest.er1
21811 cat conftest.err >&5 11168 cat conftest.err >&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } && 11170 (exit $ac_status); } &&
21814 { ac_try='test -z "$ac_c_werror_flag" 11171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21815 || test ! -s conftest.err'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5 11173 (eval $ac_try) 2>&5
21818 ac_status=$? 11174 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } && 11176 (exit $ac_status); }; } &&
21878 grep -v '^ *+' conftest.er1 >conftest.err 11234 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1 11235 rm -f conftest.er1
21880 cat conftest.err >&5 11236 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } && 11238 (exit $ac_status); } &&
21883 { ac_try='test -z "$ac_c_werror_flag" 11239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21884 || test ! -s conftest.err'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5 11241 (eval $ac_try) 2>&5
21887 ac_status=$? 11242 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } && 11244 (exit $ac_status); }; } &&
21983 grep -v '^ *+' conftest.er1 >conftest.err 11338 grep -v '^ *+' conftest.er1 >conftest.err
21984 rm -f conftest.er1 11339 rm -f conftest.er1
21985 cat conftest.err >&5 11340 cat conftest.err >&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } && 11342 (exit $ac_status); } &&
21988 { ac_try='test -z "$ac_c_werror_flag" 11343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21989 || test ! -s conftest.err'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5 11345 (eval $ac_try) 2>&5
21992 ac_status=$? 11346 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } && 11348 (exit $ac_status); }; } &&
22048 grep -v '^ *+' conftest.er1 >conftest.err 11402 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1 11403 rm -f conftest.er1
22050 cat conftest.err >&5 11404 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && 11406 (exit $ac_status); } &&
22053 { ac_try='test -z "$ac_c_werror_flag" 11407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22054 || test ! -s conftest.err'
22055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5 11409 (eval $ac_try) 2>&5
22057 ac_status=$? 11410 ac_status=$?
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; } && 11412 (exit $ac_status); }; } &&
22146 grep -v '^ *+' conftest.er1 >conftest.err 11499 grep -v '^ *+' conftest.er1 >conftest.err
22147 rm -f conftest.er1 11500 rm -f conftest.er1
22148 cat conftest.err >&5 11501 cat conftest.err >&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } && 11503 (exit $ac_status); } &&
22151 { ac_try='test -z "$ac_c_werror_flag" 11504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22152 || test ! -s conftest.err'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5 11506 (eval $ac_try) 2>&5
22155 ac_status=$? 11507 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; } && 11509 (exit $ac_status); }; } &&
22211 grep -v '^ *+' conftest.er1 >conftest.err 11563 grep -v '^ *+' conftest.er1 >conftest.err
22212 rm -f conftest.er1 11564 rm -f conftest.er1
22213 cat conftest.err >&5 11565 cat conftest.err >&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } && 11567 (exit $ac_status); } &&
22216 { ac_try='test -z "$ac_c_werror_flag" 11568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22217 || test ! -s conftest.err'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5 11570 (eval $ac_try) 2>&5
22220 ac_status=$? 11571 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; } && 11573 (exit $ac_status); }; } &&
22309 grep -v '^ *+' conftest.er1 >conftest.err 11660 grep -v '^ *+' conftest.er1 >conftest.err
22310 rm -f conftest.er1 11661 rm -f conftest.er1
22311 cat conftest.err >&5 11662 cat conftest.err >&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } && 11664 (exit $ac_status); } &&
22314 { ac_try='test -z "$ac_c_werror_flag" 11665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22315 || test ! -s conftest.err'
22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317 (eval $ac_try) 2>&5 11667 (eval $ac_try) 2>&5
22318 ac_status=$? 11668 ac_status=$?
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; } && 11670 (exit $ac_status); }; } &&
22374 grep -v '^ *+' conftest.er1 >conftest.err 11724 grep -v '^ *+' conftest.er1 >conftest.err
22375 rm -f conftest.er1 11725 rm -f conftest.er1
22376 cat conftest.err >&5 11726 cat conftest.err >&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } && 11728 (exit $ac_status); } &&
22379 { ac_try='test -z "$ac_c_werror_flag" 11729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22380 || test ! -s conftest.err'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5 11731 (eval $ac_try) 2>&5
22383 ac_status=$? 11732 ac_status=$?
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; } && 11734 (exit $ac_status); }; } &&
22454 grep -v '^ *+' conftest.er1 >conftest.err 11803 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1 11804 rm -f conftest.er1
22456 cat conftest.err >&5 11805 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } && 11807 (exit $ac_status); } &&
22459 { ac_try='test -z "$ac_c_werror_flag" 11808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22460 || test ! -s conftest.err'
22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5 11810 (eval $ac_try) 2>&5
22463 ac_status=$? 11811 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; } && 11813 (exit $ac_status); }; } &&
22524 grep -v '^ *+' conftest.er1 >conftest.err 11872 grep -v '^ *+' conftest.er1 >conftest.err
22525 rm -f conftest.er1 11873 rm -f conftest.er1
22526 cat conftest.err >&5 11874 cat conftest.err >&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } && 11876 (exit $ac_status); } &&
22529 { ac_try='test -z "$ac_c_werror_flag" 11877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22530 || test ! -s conftest.err'
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5 11879 (eval $ac_try) 2>&5
22533 ac_status=$? 11880 ac_status=$?
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; } && 11882 (exit $ac_status); }; } &&
22591 grep -v '^ *+' conftest.er1 >conftest.err 11938 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1 11939 rm -f conftest.er1
22593 cat conftest.err >&5 11940 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && 11942 (exit $ac_status); } &&
22596 { ac_try='test -z "$ac_c_werror_flag" 11943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22597 || test ! -s conftest.err'
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5 11945 (eval $ac_try) 2>&5
22600 ac_status=$? 11946 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; } && 11948 (exit $ac_status); }; } &&
22658 grep -v '^ *+' conftest.er1 >conftest.err 12004 grep -v '^ *+' conftest.er1 >conftest.err
22659 rm -f conftest.er1 12005 rm -f conftest.er1
22660 cat conftest.err >&5 12006 cat conftest.err >&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); } && 12008 (exit $ac_status); } &&
22663 { ac_try='test -z "$ac_c_werror_flag" 12009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22664 || test ! -s conftest.err'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5 12011 (eval $ac_try) 2>&5
22667 ac_status=$? 12012 ac_status=$?
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; } && 12014 (exit $ac_status); }; } &&
22725 grep -v '^ *+' conftest.er1 >conftest.err 12070 grep -v '^ *+' conftest.er1 >conftest.err
22726 rm -f conftest.er1 12071 rm -f conftest.er1
22727 cat conftest.err >&5 12072 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } && 12074 (exit $ac_status); } &&
22730 { ac_try='test -z "$ac_c_werror_flag" 12075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22731 || test ! -s conftest.err'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5 12077 (eval $ac_try) 2>&5
22734 ac_status=$? 12078 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; } && 12080 (exit $ac_status); }; } &&
22792 grep -v '^ *+' conftest.er1 >conftest.err 12136 grep -v '^ *+' conftest.er1 >conftest.err
22793 rm -f conftest.er1 12137 rm -f conftest.er1
22794 cat conftest.err >&5 12138 cat conftest.err >&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && 12140 (exit $ac_status); } &&
22797 { ac_try='test -z "$ac_c_werror_flag" 12141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22798 || test ! -s conftest.err'
22799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22800 (eval $ac_try) 2>&5 12143 (eval $ac_try) 2>&5
22801 ac_status=$? 12144 ac_status=$?
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); }; } && 12146 (exit $ac_status); }; } &&
22859 grep -v '^ *+' conftest.er1 >conftest.err 12202 grep -v '^ *+' conftest.er1 >conftest.err
22860 rm -f conftest.er1 12203 rm -f conftest.er1
22861 cat conftest.err >&5 12204 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } && 12206 (exit $ac_status); } &&
22864 { ac_try='test -z "$ac_c_werror_flag" 12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22865 || test ! -s conftest.err'
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5 12209 (eval $ac_try) 2>&5
22868 ac_status=$? 12210 ac_status=$?
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; } && 12212 (exit $ac_status); }; } &&
22926 grep -v '^ *+' conftest.er1 >conftest.err 12268 grep -v '^ *+' conftest.er1 >conftest.err
22927 rm -f conftest.er1 12269 rm -f conftest.er1
22928 cat conftest.err >&5 12270 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } && 12272 (exit $ac_status); } &&
22931 { ac_try='test -z "$ac_c_werror_flag" 12273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22932 || test ! -s conftest.err'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5 12275 (eval $ac_try) 2>&5
22935 ac_status=$? 12276 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; } && 12278 (exit $ac_status); }; } &&
22996 grep -v '^ *+' conftest.er1 >conftest.err 12337 grep -v '^ *+' conftest.er1 >conftest.err
22997 rm -f conftest.er1 12338 rm -f conftest.er1
22998 cat conftest.err >&5 12339 cat conftest.err >&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } && 12341 (exit $ac_status); } &&
23001 { ac_try='test -z "$ac_c_werror_flag" 12342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23002 || test ! -s conftest.err'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5 12344 (eval $ac_try) 2>&5
23005 ac_status=$? 12345 ac_status=$?
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; } && 12347 (exit $ac_status); }; } &&
23064 grep -v '^ *+' conftest.er1 >conftest.err 12404 grep -v '^ *+' conftest.er1 >conftest.err
23065 rm -f conftest.er1 12405 rm -f conftest.er1
23066 cat conftest.err >&5 12406 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && 12408 (exit $ac_status); } &&
23069 { ac_try='test -z "$ac_c_werror_flag" 12409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23070 || test ! -s conftest.err'
23071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072 (eval $ac_try) 2>&5 12411 (eval $ac_try) 2>&5
23073 ac_status=$? 12412 ac_status=$?
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; } && 12414 (exit $ac_status); }; } &&
23132 grep -v '^ *+' conftest.er1 >conftest.err 12471 grep -v '^ *+' conftest.er1 >conftest.err
23133 rm -f conftest.er1 12472 rm -f conftest.er1
23134 cat conftest.err >&5 12473 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && 12475 (exit $ac_status); } &&
23137 { ac_try='test -z "$ac_c_werror_flag" 12476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23138 || test ! -s conftest.err'
23139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5 12478 (eval $ac_try) 2>&5
23141 ac_status=$? 12479 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; } && 12481 (exit $ac_status); }; } &&
23199 grep -v '^ *+' conftest.er1 >conftest.err 12537 grep -v '^ *+' conftest.er1 >conftest.err
23200 rm -f conftest.er1 12538 rm -f conftest.er1
23201 cat conftest.err >&5 12539 cat conftest.err >&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } && 12541 (exit $ac_status); } &&
23204 { ac_try='test -z "$ac_c_werror_flag" 12542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23205 || test ! -s conftest.err'
23206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207 (eval $ac_try) 2>&5 12544 (eval $ac_try) 2>&5
23208 ac_status=$? 12545 ac_status=$?
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; } && 12547 (exit $ac_status); }; } &&
23267 grep -v '^ *+' conftest.er1 >conftest.err 12604 grep -v '^ *+' conftest.er1 >conftest.err
23268 rm -f conftest.er1 12605 rm -f conftest.er1
23269 cat conftest.err >&5 12606 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } && 12608 (exit $ac_status); } &&
23272 { ac_try='test -z "$ac_c_werror_flag" 12609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23273 || test ! -s conftest.err'
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5 12611 (eval $ac_try) 2>&5
23276 ac_status=$? 12612 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } && 12614 (exit $ac_status); }; } &&
23341 grep -v '^ *+' conftest.er1 >conftest.err 12677 grep -v '^ *+' conftest.er1 >conftest.err
23342 rm -f conftest.er1 12678 rm -f conftest.er1
23343 cat conftest.err >&5 12679 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } && 12681 (exit $ac_status); } &&
23346 { ac_try='test -z "$ac_c_werror_flag" 12682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23347 || test ! -s conftest.err'
23348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349 (eval $ac_try) 2>&5 12684 (eval $ac_try) 2>&5
23350 ac_status=$? 12685 ac_status=$?
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); }; } && 12687 (exit $ac_status); }; } &&
23412 grep -v '^ *+' conftest.er1 >conftest.err 12747 grep -v '^ *+' conftest.er1 >conftest.err
23413 rm -f conftest.er1 12748 rm -f conftest.er1
23414 cat conftest.err >&5 12749 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && 12751 (exit $ac_status); } &&
23417 { ac_try='test -z "$ac_c_werror_flag" 12752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23418 || test ! -s conftest.err'
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5 12754 (eval $ac_try) 2>&5
23421 ac_status=$? 12755 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; } && 12757 (exit $ac_status); }; } &&
23481 grep -v '^ *+' conftest.er1 >conftest.err 12815 grep -v '^ *+' conftest.er1 >conftest.err
23482 rm -f conftest.er1 12816 rm -f conftest.er1
23483 cat conftest.err >&5 12817 cat conftest.err >&5
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); } && 12819 (exit $ac_status); } &&
23486 { ac_try='test -z "$ac_c_werror_flag" 12820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23487 || test ! -s conftest.err'
23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489 (eval $ac_try) 2>&5 12822 (eval $ac_try) 2>&5
23490 ac_status=$? 12823 ac_status=$?
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; } && 12825 (exit $ac_status); }; } &&
23558 grep -v '^ *+' conftest.er1 >conftest.err 12891 grep -v '^ *+' conftest.er1 >conftest.err
23559 rm -f conftest.er1 12892 rm -f conftest.er1
23560 cat conftest.err >&5 12893 cat conftest.err >&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } && 12895 (exit $ac_status); } &&
23563 { ac_try='test -z "$ac_c_werror_flag" 12896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23564 || test ! -s conftest.err'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5 12898 (eval $ac_try) 2>&5
23567 ac_status=$? 12899 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; } && 12901 (exit $ac_status); }; } &&
23631 grep -v '^ *+' conftest.er1 >conftest.err 12963 grep -v '^ *+' conftest.er1 >conftest.err
23632 rm -f conftest.er1 12964 rm -f conftest.er1
23633 cat conftest.err >&5 12965 cat conftest.err >&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } && 12967 (exit $ac_status); } &&
23636 { ac_try='test -z "$ac_c_werror_flag" 12968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23637 || test ! -s conftest.err'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5 12970 (eval $ac_try) 2>&5
23640 ac_status=$? 12971 ac_status=$?
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } && 12973 (exit $ac_status); }; } &&
23686 grep -v '^ *+' conftest.er1 >conftest.err 13017 grep -v '^ *+' conftest.er1 >conftest.err
23687 rm -f conftest.er1 13018 rm -f conftest.er1
23688 cat conftest.err >&5 13019 cat conftest.err >&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } && 13021 (exit $ac_status); } &&
23691 { ac_try='test -z "$ac_c_werror_flag" 13022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23692 || test ! -s conftest.err'
23693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694 (eval $ac_try) 2>&5 13024 (eval $ac_try) 2>&5
23695 ac_status=$? 13025 ac_status=$?
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; } && 13027 (exit $ac_status); }; } &&
23758 grep -v '^ *+' conftest.er1 >conftest.err 13088 grep -v '^ *+' conftest.er1 >conftest.err
23759 rm -f conftest.er1 13089 rm -f conftest.er1
23760 cat conftest.err >&5 13090 cat conftest.err >&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && 13092 (exit $ac_status); } &&
23763 { ac_try='test -z "$ac_c_werror_flag" 13093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23764 || test ! -s conftest.err'
23765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766 (eval $ac_try) 2>&5 13095 (eval $ac_try) 2>&5
23767 ac_status=$? 13096 ac_status=$?
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); }; } && 13098 (exit $ac_status); }; } &&
23813 grep -v '^ *+' conftest.er1 >conftest.err 13142 grep -v '^ *+' conftest.er1 >conftest.err
23814 rm -f conftest.er1 13143 rm -f conftest.er1
23815 cat conftest.err >&5 13144 cat conftest.err >&5
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); } && 13146 (exit $ac_status); } &&
23818 { ac_try='test -z "$ac_c_werror_flag" 13147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23819 || test ! -s conftest.err'
23820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821 (eval $ac_try) 2>&5 13149 (eval $ac_try) 2>&5
23822 ac_status=$? 13150 ac_status=$?
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); }; } && 13152 (exit $ac_status); }; } &&
23881 grep -v '^ *+' conftest.er1 >conftest.err 13209 grep -v '^ *+' conftest.er1 >conftest.err
23882 rm -f conftest.er1 13210 rm -f conftest.er1
23883 cat conftest.err >&5 13211 cat conftest.err >&5
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); } && 13213 (exit $ac_status); } &&
23886 { ac_try='test -z "$ac_c_werror_flag" 13214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23887 || test ! -s conftest.err'
23888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23889 (eval $ac_try) 2>&5 13216 (eval $ac_try) 2>&5
23890 ac_status=$? 13217 ac_status=$?
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); }; } && 13219 (exit $ac_status); }; } &&
24063 grep -v '^ *+' conftest.er1 >conftest.err 13390 grep -v '^ *+' conftest.er1 >conftest.err
24064 rm -f conftest.er1 13391 rm -f conftest.er1
24065 cat conftest.err >&5 13392 cat conftest.err >&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } && 13394 (exit $ac_status); } &&
24068 { ac_try='test -z "$ac_c_werror_flag" 13395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24069 || test ! -s conftest.err'
24070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071 (eval $ac_try) 2>&5 13397 (eval $ac_try) 2>&5
24072 ac_status=$? 13398 ac_status=$?
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; } && 13400 (exit $ac_status); }; } &&
24256 grep -v '^ *+' conftest.er1 >conftest.err 13582 grep -v '^ *+' conftest.er1 >conftest.err
24257 rm -f conftest.er1 13583 rm -f conftest.er1
24258 cat conftest.err >&5 13584 cat conftest.err >&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } && 13586 (exit $ac_status); } &&
24261 { ac_try='test -z "$ac_c_werror_flag" 13587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24262 || test ! -s conftest.err'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5 13589 (eval $ac_try) 2>&5
24265 ac_status=$? 13590 ac_status=$?
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; } && 13592 (exit $ac_status); }; } &&
24317 grep -v '^ *+' conftest.er1 >conftest.err 13642 grep -v '^ *+' conftest.er1 >conftest.err
24318 rm -f conftest.er1 13643 rm -f conftest.er1
24319 cat conftest.err >&5 13644 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } && 13646 (exit $ac_status); } &&
24322 { ac_try='test -z "$ac_c_werror_flag" 13647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24323 || test ! -s conftest.err'
24324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325 (eval $ac_try) 2>&5 13649 (eval $ac_try) 2>&5
24326 ac_status=$? 13650 ac_status=$?
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); }; } && 13652 (exit $ac_status); }; } &&
24391 grep -v '^ *+' conftest.er1 >conftest.err 13715 grep -v '^ *+' conftest.er1 >conftest.err
24392 rm -f conftest.er1 13716 rm -f conftest.er1
24393 cat conftest.err >&5 13717 cat conftest.err >&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } && 13719 (exit $ac_status); } &&
24396 { ac_try='test -z "$ac_c_werror_flag" 13720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24397 || test ! -s conftest.err'
24398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24399 (eval $ac_try) 2>&5 13722 (eval $ac_try) 2>&5
24400 ac_status=$? 13723 ac_status=$?
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); }; } && 13725 (exit $ac_status); }; } &&
24457 grep -v '^ *+' conftest.er1 >conftest.err 13780 grep -v '^ *+' conftest.er1 >conftest.err
24458 rm -f conftest.er1 13781 rm -f conftest.er1
24459 cat conftest.err >&5 13782 cat conftest.err >&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } && 13784 (exit $ac_status); } &&
24462 { ac_try='test -z "$ac_c_werror_flag" 13785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24463 || test ! -s conftest.err'
24464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465 (eval $ac_try) 2>&5 13787 (eval $ac_try) 2>&5
24466 ac_status=$? 13788 ac_status=$?
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); }; } && 13790 (exit $ac_status); }; } &&
24524 grep -v '^ *+' conftest.er1 >conftest.err 13846 grep -v '^ *+' conftest.er1 >conftest.err
24525 rm -f conftest.er1 13847 rm -f conftest.er1
24526 cat conftest.err >&5 13848 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } && 13850 (exit $ac_status); } &&
24529 { ac_try='test -z "$ac_c_werror_flag" 13851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24530 || test ! -s conftest.err'
24531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24532 (eval $ac_try) 2>&5 13853 (eval $ac_try) 2>&5
24533 ac_status=$? 13854 ac_status=$?
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; } && 13856 (exit $ac_status); }; } &&
24587 grep -v '^ *+' conftest.er1 >conftest.err 13908 grep -v '^ *+' conftest.er1 >conftest.err
24588 rm -f conftest.er1 13909 rm -f conftest.er1
24589 cat conftest.err >&5 13910 cat conftest.err >&5
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); } && 13912 (exit $ac_status); } &&
24592 { ac_try='test -z "$ac_c_werror_flag" 13913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24593 || test ! -s conftest.err'
24594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595 (eval $ac_try) 2>&5 13915 (eval $ac_try) 2>&5
24596 ac_status=$? 13916 ac_status=$?
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); }; } && 13918 (exit $ac_status); }; } &&
24690 grep -v '^ *+' conftest.er1 >conftest.err 14010 grep -v '^ *+' conftest.er1 >conftest.err
24691 rm -f conftest.er1 14011 rm -f conftest.er1
24692 cat conftest.err >&5 14012 cat conftest.err >&5
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); } && 14014 (exit $ac_status); } &&
24695 { ac_try='test -z "$ac_c_werror_flag" 14015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24696 || test ! -s conftest.err'
24697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24698 (eval $ac_try) 2>&5 14017 (eval $ac_try) 2>&5
24699 ac_status=$? 14018 ac_status=$?
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; } && 14020 (exit $ac_status); }; } &&
24753 grep -v '^ *+' conftest.er1 >conftest.err 14072 grep -v '^ *+' conftest.er1 >conftest.err
24754 rm -f conftest.er1 14073 rm -f conftest.er1
24755 cat conftest.err >&5 14074 cat conftest.err >&5
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } && 14076 (exit $ac_status); } &&
24758 { ac_try='test -z "$ac_c_werror_flag" 14077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24759 || test ! -s conftest.err'
24760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761 (eval $ac_try) 2>&5 14079 (eval $ac_try) 2>&5
24762 ac_status=$? 14080 ac_status=$?
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; } && 14082 (exit $ac_status); }; } &&
24794 grep -v '^ *+' conftest.er1 >conftest.err 14112 grep -v '^ *+' conftest.er1 >conftest.err
24795 rm -f conftest.er1 14113 rm -f conftest.er1
24796 cat conftest.err >&5 14114 cat conftest.err >&5
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); } && 14116 (exit $ac_status); } &&
24799 { ac_try='test -z "$ac_c_werror_flag" 14117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24800 || test ! -s conftest.err'
24801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24802 (eval $ac_try) 2>&5 14119 (eval $ac_try) 2>&5
24803 ac_status=$? 14120 ac_status=$?
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); }; } && 14122 (exit $ac_status); }; } &&
24851 grep -v '^ *+' conftest.er1 >conftest.err 14168 grep -v '^ *+' conftest.er1 >conftest.err
24852 rm -f conftest.er1 14169 rm -f conftest.er1
24853 cat conftest.err >&5 14170 cat conftest.err >&5
24854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } && 14172 (exit $ac_status); } &&
24856 { ac_try='test -z "$ac_c_werror_flag" 14173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24857 || test ! -s conftest.err'
24858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24859 (eval $ac_try) 2>&5 14175 (eval $ac_try) 2>&5
24860 ac_status=$? 14176 ac_status=$?
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); }; } && 14178 (exit $ac_status); }; } &&
24892 grep -v '^ *+' conftest.er1 >conftest.err 14208 grep -v '^ *+' conftest.er1 >conftest.err
24893 rm -f conftest.er1 14209 rm -f conftest.er1
24894 cat conftest.err >&5 14210 cat conftest.err >&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } && 14212 (exit $ac_status); } &&
24897 { ac_try='test -z "$ac_c_werror_flag" 14213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24898 || test ! -s conftest.err'
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5 14215 (eval $ac_try) 2>&5
24901 ac_status=$? 14216 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; } && 14218 (exit $ac_status); }; } &&
24957 grep -v '^ *+' conftest.er1 >conftest.err 14272 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1 14273 rm -f conftest.er1
24959 cat conftest.err >&5 14274 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } && 14276 (exit $ac_status); } &&
24962 { ac_try='test -z "$ac_c_werror_flag" 14277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24963 || test ! -s conftest.err'
24964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5 14279 (eval $ac_try) 2>&5
24966 ac_status=$? 14280 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; } && 14282 (exit $ac_status); }; } &&
24989See \`config.log' for more details." >&2;} 14303See \`config.log' for more details." >&2;}
24990 { (exit 1); exit 1; }; } ;; 14304 { (exit 1); exit 1; }; } ;;
24991esac 14305esac
24992else 14306else
24993 if test "$cross_compiling" = yes; then 14307 if test "$cross_compiling" = yes; then
24994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14308 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
24995See \`config.log' for more details." >&5 14309echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
24996echo "$as_me: error: cannot run test program while cross compiling
24997See \`config.log' for more details." >&2;}
24998 { (exit 1); exit 1; }; } 14310 { (exit 1); exit 1; }; }
24999else 14311else
25000 cat >conftest.$ac_ext <<_ACEOF 14312 cat >conftest.$ac_ext <<_ACEOF
25001/* confdefs.h. */ 14313/* confdefs.h. */
25002_ACEOF 14314_ACEOF
25104 grep -v '^ *+' conftest.er1 >conftest.err 14416 grep -v '^ *+' conftest.er1 >conftest.err
25105 rm -f conftest.er1 14417 rm -f conftest.er1
25106 cat conftest.err >&5 14418 cat conftest.err >&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); } && 14420 (exit $ac_status); } &&
25109 { ac_try='test -z "$ac_c_werror_flag" 14421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25110 || test ! -s conftest.err'
25111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5 14423 (eval $ac_try) 2>&5
25113 ac_status=$? 14424 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; } && 14426 (exit $ac_status); }; } &&
25167 grep -v '^ *+' conftest.er1 >conftest.err 14478 grep -v '^ *+' conftest.er1 >conftest.err
25168 rm -f conftest.er1 14479 rm -f conftest.er1
25169 cat conftest.err >&5 14480 cat conftest.err >&5
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } && 14482 (exit $ac_status); } &&
25172 { ac_try='test -z "$ac_c_werror_flag" 14483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25173 || test ! -s conftest.err'
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5 14485 (eval $ac_try) 2>&5
25176 ac_status=$? 14486 ac_status=$?
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; } && 14488 (exit $ac_status); }; } &&
25208 grep -v '^ *+' conftest.er1 >conftest.err 14518 grep -v '^ *+' conftest.er1 >conftest.err
25209 rm -f conftest.er1 14519 rm -f conftest.er1
25210 cat conftest.err >&5 14520 cat conftest.err >&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } && 14522 (exit $ac_status); } &&
25213 { ac_try='test -z "$ac_c_werror_flag" 14523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25214 || test ! -s conftest.err'
25215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5 14525 (eval $ac_try) 2>&5
25217 ac_status=$? 14526 ac_status=$?
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; } && 14528 (exit $ac_status); }; } &&
25265 grep -v '^ *+' conftest.er1 >conftest.err 14574 grep -v '^ *+' conftest.er1 >conftest.err
25266 rm -f conftest.er1 14575 rm -f conftest.er1
25267 cat conftest.err >&5 14576 cat conftest.err >&5
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); } && 14578 (exit $ac_status); } &&
25270 { ac_try='test -z "$ac_c_werror_flag" 14579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25271 || test ! -s conftest.err'
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5 14581 (eval $ac_try) 2>&5
25274 ac_status=$? 14582 ac_status=$?
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; } && 14584 (exit $ac_status); }; } &&
25306 grep -v '^ *+' conftest.er1 >conftest.err 14614 grep -v '^ *+' conftest.er1 >conftest.err
25307 rm -f conftest.er1 14615 rm -f conftest.er1
25308 cat conftest.err >&5 14616 cat conftest.err >&5
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); } && 14618 (exit $ac_status); } &&
25311 { ac_try='test -z "$ac_c_werror_flag" 14619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25312 || test ! -s conftest.err'
25313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25314 (eval $ac_try) 2>&5 14621 (eval $ac_try) 2>&5
25315 ac_status=$? 14622 ac_status=$?
25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); }; } && 14624 (exit $ac_status); }; } &&
25371 grep -v '^ *+' conftest.er1 >conftest.err 14678 grep -v '^ *+' conftest.er1 >conftest.err
25372 rm -f conftest.er1 14679 rm -f conftest.er1
25373 cat conftest.err >&5 14680 cat conftest.err >&5
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); } && 14682 (exit $ac_status); } &&
25376 { ac_try='test -z "$ac_c_werror_flag" 14683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25377 || test ! -s conftest.err'
25378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25379 (eval $ac_try) 2>&5 14685 (eval $ac_try) 2>&5
25380 ac_status=$? 14686 ac_status=$?
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); }; } && 14688 (exit $ac_status); }; } &&
25403See \`config.log' for more details." >&2;} 14709See \`config.log' for more details." >&2;}
25404 { (exit 1); exit 1; }; } ;; 14710 { (exit 1); exit 1; }; } ;;
25405esac 14711esac
25406else 14712else
25407 if test "$cross_compiling" = yes; then 14713 if test "$cross_compiling" = yes; then
25408 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14714 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25409See \`config.log' for more details." >&5 14715echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25410echo "$as_me: error: cannot run test program while cross compiling
25411See \`config.log' for more details." >&2;}
25412 { (exit 1); exit 1; }; } 14716 { (exit 1); exit 1; }; }
25413else 14717else
25414 cat >conftest.$ac_ext <<_ACEOF 14718 cat >conftest.$ac_ext <<_ACEOF
25415/* confdefs.h. */ 14719/* confdefs.h. */
25416_ACEOF 14720_ACEOF
25721 grep -v '^ *+' conftest.er1 >conftest.err 15025 grep -v '^ *+' conftest.er1 >conftest.err
25722 rm -f conftest.er1 15026 rm -f conftest.er1
25723 cat conftest.err >&5 15027 cat conftest.err >&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); } && 15029 (exit $ac_status); } &&
25726 { ac_try='test -z "$ac_c_werror_flag" 15030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25727 || test ! -s conftest.err'
25728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729 (eval $ac_try) 2>&5 15032 (eval $ac_try) 2>&5
25730 ac_status=$? 15033 ac_status=$?
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); }; } && 15035 (exit $ac_status); }; } &&
25820 grep -v '^ *+' conftest.er1 >conftest.err 15123 grep -v '^ *+' conftest.er1 >conftest.err
25821 rm -f conftest.er1 15124 rm -f conftest.er1
25822 cat conftest.err >&5 15125 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } && 15127 (exit $ac_status); } &&
25825 { ac_try='test -z "$ac_c_werror_flag" 15128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25826 || test ! -s conftest.err'
25827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828 (eval $ac_try) 2>&5 15130 (eval $ac_try) 2>&5
25829 ac_status=$? 15131 ac_status=$?
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); }; } && 15133 (exit $ac_status); }; } &&
25890 grep -v '^ *+' conftest.er1 >conftest.err 15192 grep -v '^ *+' conftest.er1 >conftest.err
25891 rm -f conftest.er1 15193 rm -f conftest.er1
25892 cat conftest.err >&5 15194 cat conftest.err >&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); } && 15196 (exit $ac_status); } &&
25895 { ac_try='test -z "$ac_c_werror_flag" 15197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25896 || test ! -s conftest.err'
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5 15199 (eval $ac_try) 2>&5
25899 ac_status=$? 15200 ac_status=$?
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; } && 15202 (exit $ac_status); }; } &&
25996 grep -v '^ *+' conftest.er1 >conftest.err 15297 grep -v '^ *+' conftest.er1 >conftest.err
25997 rm -f conftest.er1 15298 rm -f conftest.er1
25998 cat conftest.err >&5 15299 cat conftest.err >&5
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } && 15301 (exit $ac_status); } &&
26001 { ac_try='test -z "$ac_c_werror_flag" 15302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26002 || test ! -s conftest.err'
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5 15304 (eval $ac_try) 2>&5
26005 ac_status=$? 15305 ac_status=$?
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; } && 15307 (exit $ac_status); }; } &&
26091 grep -v '^ *+' conftest.er1 >conftest.err 15391 grep -v '^ *+' conftest.er1 >conftest.err
26092 rm -f conftest.er1 15392 rm -f conftest.er1
26093 cat conftest.err >&5 15393 cat conftest.err >&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } && 15395 (exit $ac_status); } &&
26096 { ac_try='test -z "$ac_c_werror_flag" 15396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26097 || test ! -s conftest.err'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5 15398 (eval $ac_try) 2>&5
26100 ac_status=$? 15399 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; } && 15401 (exit $ac_status); }; } &&
26217 grep -v '^ *+' conftest.er1 >conftest.err 15516 grep -v '^ *+' conftest.er1 >conftest.err
26218 rm -f conftest.er1 15517 rm -f conftest.er1
26219 cat conftest.err >&5 15518 cat conftest.err >&5
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); } && 15520 (exit $ac_status); } &&
26222 { ac_try='test -z "$ac_c_werror_flag" 15521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26223 || test ! -s conftest.err'
26224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26225 (eval $ac_try) 2>&5 15523 (eval $ac_try) 2>&5
26226 ac_status=$? 15524 ac_status=$?
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); }; } && 15526 (exit $ac_status); }; } &&
26277 grep -v '^ *+' conftest.er1 >conftest.err 15575 grep -v '^ *+' conftest.er1 >conftest.err
26278 rm -f conftest.er1 15576 rm -f conftest.er1
26279 cat conftest.err >&5 15577 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } && 15579 (exit $ac_status); } &&
26282 { ac_try='test -z "$ac_c_werror_flag" 15580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26283 || test ! -s conftest.err'
26284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285 (eval $ac_try) 2>&5 15582 (eval $ac_try) 2>&5
26286 ac_status=$? 15583 ac_status=$?
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; } && 15585 (exit $ac_status); }; } &&
26344 grep -v '^ *+' conftest.er1 >conftest.err 15641 grep -v '^ *+' conftest.er1 >conftest.err
26345 rm -f conftest.er1 15642 rm -f conftest.er1
26346 cat conftest.err >&5 15643 cat conftest.err >&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); } && 15645 (exit $ac_status); } &&
26349 { ac_try='test -z "$ac_c_werror_flag" 15646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26350 || test ! -s conftest.err'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5 15648 (eval $ac_try) 2>&5
26353 ac_status=$? 15649 ac_status=$?
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; } && 15651 (exit $ac_status); }; } &&
26388 grep -v '^ *+' conftest.er1 >conftest.err 15684 grep -v '^ *+' conftest.er1 >conftest.err
26389 rm -f conftest.er1 15685 rm -f conftest.er1
26390 cat conftest.err >&5 15686 cat conftest.err >&5
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); } && 15688 (exit $ac_status); } &&
26393 { ac_try='test -z "$ac_c_werror_flag" 15689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26394 || test ! -s conftest.err'
26395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396 (eval $ac_try) 2>&5 15691 (eval $ac_try) 2>&5
26397 ac_status=$? 15692 ac_status=$?
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; } && 15694 (exit $ac_status); }; } &&
26431 grep -v '^ *+' conftest.er1 >conftest.err 15726 grep -v '^ *+' conftest.er1 >conftest.err
26432 rm -f conftest.er1 15727 rm -f conftest.er1
26433 cat conftest.err >&5 15728 cat conftest.err >&5
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } && 15730 (exit $ac_status); } &&
26436 { ac_try='test -z "$ac_c_werror_flag" 15731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26437 || test ! -s conftest.err'
26438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26439 (eval $ac_try) 2>&5 15733 (eval $ac_try) 2>&5
26440 ac_status=$? 15734 ac_status=$?
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); }; } && 15736 (exit $ac_status); }; } &&
26538 15832
26539 15833
26540cat >>confdefs.h <<_ACEOF 15834cat >>confdefs.h <<_ACEOF
26541#define BUNZIP "${BUNZIP}" 15835#define BUNZIP "${BUNZIP}"
26542_ACEOF 15836_ACEOF
15837
15838
15839# Extract the first word of "perl5", so it can be a program name with args.
15840set dummy perl5; ac_word=$2
15841echo "$as_me:$LINENO: checking for $ac_word" >&5
15842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15843if test "${ac_cv_path_PERL+set}" = set; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15845else
15846 case $PERL in
15847 [\\/]* | ?:[\\/]*)
15848 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15849 ;;
15850 *)
15851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15852for as_dir in $PATH
15853do
15854 IFS=$as_save_IFS
15855 test -z "$as_dir" && as_dir=.
15856 for ac_exec_ext in '' $ac_executable_extensions; do
15857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15858 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15860 break 2
15861 fi
15862done
15863done
15864
15865 ;;
15866esac
15867fi
15868PERL=$ac_cv_path_PERL
15869
15870if test -n "$PERL"; then
15871 echo "$as_me:$LINENO: result: $PERL" >&5
15872echo "${ECHO_T}$PERL" >&6
15873else
15874 echo "$as_me:$LINENO: result: no" >&5
15875echo "${ECHO_T}no" >&6
15876fi
15877
15878# Extract the first word of "perl", so it can be a program name with args.
15879set dummy perl; ac_word=$2
15880echo "$as_me:$LINENO: checking for $ac_word" >&5
15881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15882if test "${ac_cv_path_PERL+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15884else
15885 case $PERL in
15886 [\\/]* | ?:[\\/]*)
15887 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15888 ;;
15889 *)
15890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15891for as_dir in $PATH
15892do
15893 IFS=$as_save_IFS
15894 test -z "$as_dir" && as_dir=.
15895 for ac_exec_ext in '' $ac_executable_extensions; do
15896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15897 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15899 break 2
15900 fi
15901done
15902done
15903
15904 ;;
15905esac
15906fi
15907PERL=$ac_cv_path_PERL
15908
15909if test -n "$PERL"; then
15910 echo "$as_me:$LINENO: result: $PERL" >&5
15911echo "${ECHO_T}$PERL" >&6
15912else
15913 echo "$as_me:$LINENO: result: no" >&5
15914echo "${ECHO_T}no" >&6
15915fi
15916
15917
15918echo "$as_me:$LINENO: checking for $PERL suitability" >&5
15919echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
15920if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
15921
15922 save_CFLAGS="$CFLAGS"
15923 save_LIBS="$LIBS"
15924 CFLAGS="$CFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
15925 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
15926 cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
15932
15933#include <EXTERN.h>
15934#include <perl.h>
15935#include <XSUB.h>
15936
15937int
15938main ()
15939{
15940
15941 PerlInterpreter *perl = perl_alloc ();
15942
15943 ;
15944 return 0;
15945}
15946_ACEOF
15947rm -f conftest.$ac_objext conftest$ac_exeext
15948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15949 (eval $ac_link) 2>conftest.er1
15950 ac_status=$?
15951 grep -v '^ *+' conftest.er1 >conftest.err
15952 rm -f conftest.er1
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } &&
15956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; } &&
15962 { ac_try='test -s conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 perl_link=yes
15969else
15970 echo "$as_me: failed program was:" >&5
15971sed 's/^/| /' conftest.$ac_ext >&5
15972
15973perl_link=no
15974fi
15975rm -f conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15977 CXXFLAGS="$save_CFLAGS"
15978 LIBS="$save_LIBS"
15979
15980 if test x$perl_link = xyes; then
15981 echo "$as_me:$LINENO: result: ok" >&5
15982echo "${ECHO_T}ok" >&6
15983
15984cat >>confdefs.h <<\_ACEOF
15985#define ENABLE_PERL 1
15986_ACEOF
15987
15988 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
15989 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
15990 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
15991 PERL_PLUGIN=yes
15992 else
15993 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
15994echo "$as_me: error: no, unable to link" >&2;}
15995 { (exit 1); exit 1; }; }
15996 fi
15997else
15998 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
15999echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
16000 { (exit 1); exit 1; }; }
16001fi
16002
16003
16004
16005
16006
16007
16008if test "x$PERL_PLUGIN" != "x"; then
16009 PERL_PLUGIN_TRUE=
16010 PERL_PLUGIN_FALSE='#'
16011else
16012 PERL_PLUGIN_TRUE='#'
16013 PERL_PLUGIN_FALSE=
16014fi
16015
26543 16016
26544 16017
26545############################################# 16018#############################################
26546# Plugin configuration 16019# Plugin configuration
26547echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16020echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26580 grep -v '^ *+' conftest.er1 >conftest.err 16053 grep -v '^ *+' conftest.er1 >conftest.err
26581 rm -f conftest.er1 16054 rm -f conftest.er1
26582 cat conftest.err >&5 16055 cat conftest.err >&5
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } && 16057 (exit $ac_status); } &&
26585 { ac_try='test -z "$ac_c_werror_flag" 16058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26586 || test ! -s conftest.err'
26587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588 (eval $ac_try) 2>&5 16060 (eval $ac_try) 2>&5
26589 ac_status=$? 16061 ac_status=$?
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); }; } && 16063 (exit $ac_status); }; } &&
26665 grep -v '^ *+' conftest.er1 >conftest.err 16137 grep -v '^ *+' conftest.er1 >conftest.err
26666 rm -f conftest.er1 16138 rm -f conftest.er1
26667 cat conftest.err >&5 16139 cat conftest.err >&5
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } && 16141 (exit $ac_status); } &&
26670 { ac_try='test -z "$ac_c_werror_flag" 16142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26671 || test ! -s conftest.err'
26672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26673 (eval $ac_try) 2>&5 16144 (eval $ac_try) 2>&5
26674 ac_status=$? 16145 ac_status=$?
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); }; } && 16147 (exit $ac_status); }; } &&
26822 grep -v '^ *+' conftest.er1 >conftest.err 16293 grep -v '^ *+' conftest.er1 >conftest.err
26823 rm -f conftest.er1 16294 rm -f conftest.er1
26824 cat conftest.err >&5 16295 cat conftest.err >&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } && 16297 (exit $ac_status); } &&
26827 { ac_try='test -z "$ac_c_werror_flag" 16298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26828 || test ! -s conftest.err'
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5 16300 (eval $ac_try) 2>&5
26831 ac_status=$? 16301 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; } && 16303 (exit $ac_status); }; } &&
26974 grep -v '^ *+' conftest.er1 >conftest.err 16444 grep -v '^ *+' conftest.er1 >conftest.err
26975 rm -f conftest.er1 16445 rm -f conftest.er1
26976 cat conftest.err >&5 16446 cat conftest.err >&5
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); } && 16448 (exit $ac_status); } &&
26979 { ac_try='test -z "$ac_c_werror_flag" 16449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26980 || test ! -s conftest.err'
26981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982 (eval $ac_try) 2>&5 16451 (eval $ac_try) 2>&5
26983 ac_status=$? 16452 ac_status=$?
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; } && 16454 (exit $ac_status); }; } &&
27176 grep -v '^ *+' conftest.er1 >conftest.err 16645 grep -v '^ *+' conftest.er1 >conftest.err
27177 rm -f conftest.er1 16646 rm -f conftest.er1
27178 cat conftest.err >&5 16647 cat conftest.err >&5
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); } && 16649 (exit $ac_status); } &&
27181 { ac_try='test -z "$ac_c_werror_flag" 16650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27182 || test ! -s conftest.err'
27183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184 (eval $ac_try) 2>&5 16652 (eval $ac_try) 2>&5
27185 ac_status=$? 16653 ac_status=$?
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); }; } && 16655 (exit $ac_status); }; } &&
27262 grep -v '^ *+' conftest.er1 >conftest.err 16730 grep -v '^ *+' conftest.er1 >conftest.err
27263 rm -f conftest.er1 16731 rm -f conftest.er1
27264 cat conftest.err >&5 16732 cat conftest.err >&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } && 16734 (exit $ac_status); } &&
27267 { ac_try='test -z "$ac_c_werror_flag" 16735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27268 || test ! -s conftest.err'
27269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270 (eval $ac_try) 2>&5 16737 (eval $ac_try) 2>&5
27271 ac_status=$? 16738 ac_status=$?
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; } && 16740 (exit $ac_status); }; } &&
27324 grep -v '^ *+' conftest.er1 >conftest.err 16791 grep -v '^ *+' conftest.er1 >conftest.err
27325 rm -f conftest.er1 16792 rm -f conftest.er1
27326 cat conftest.err >&5 16793 cat conftest.err >&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); } && 16795 (exit $ac_status); } &&
27329 { ac_try='test -z "$ac_c_werror_flag" 16796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27330 || test ! -s conftest.err'
27331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332 (eval $ac_try) 2>&5 16798 (eval $ac_try) 2>&5
27333 ac_status=$? 16799 ac_status=$?
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; } && 16801 (exit $ac_status); }; } &&
27386 grep -v '^ *+' conftest.er1 >conftest.err 16852 grep -v '^ *+' conftest.er1 >conftest.err
27387 rm -f conftest.er1 16853 rm -f conftest.er1
27388 cat conftest.err >&5 16854 cat conftest.err >&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); } && 16856 (exit $ac_status); } &&
27391 { ac_try='test -z "$ac_c_werror_flag" 16857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27392 || test ! -s conftest.err'
27393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27394 (eval $ac_try) 2>&5 16859 (eval $ac_try) 2>&5
27395 ac_status=$? 16860 ac_status=$?
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; } && 16862 (exit $ac_status); }; } &&
27528 PYTHON_PLUGIN_FALSE= 16993 PYTHON_PLUGIN_FALSE=
27529fi 16994fi
27530 16995
27531 16996
27532 16997
16998# crossedit compilability check
16999
17000
17001 ac_save_LIBS="$LIBS"
17002
17003 LIBS=""$X11LIBS" $LIBS"
17004 echo "$as_me:$LINENO: checking for crossedit required headers" >&5
17005echo $ECHO_N "checking for crossedit required headers... $ECHO_C" >&6
17006 cat >conftest.$ac_ext <<_ACEOF
17007/* confdefs.h. */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h. */
17012
17013#include <X11/Xaw/AllWidgets.h>
17014
17015int
17016main ()
17017{
17018
17019 ;
17020 return 0;
17021}
17022_ACEOF
17023rm -f conftest.$ac_objext conftest$ac_exeext
17024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17025 (eval $ac_link) 2>conftest.er1
17026 ac_status=$?
17027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
17032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest$ac_exeext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 echo "$as_me:$LINENO: result: yes" >&5
17045echo "${ECHO_T}yes" >&6
17046 cf_will_build_crossedit="yes"
17047 CROSSEDIT='crossedit'
17048
17049else
17050 echo "$as_me: failed program was:" >&5
17051sed 's/^/| /' conftest.$ac_ext >&5
17052
17053echo "$as_me:$LINENO: result: no" >&5
17054echo "${ECHO_T}no" >&6
17055 cf_will_build_crossedit="no"
17056fi
17057rm -f conftest.err conftest.$ac_objext \
17058 conftest$ac_exeext conftest.$ac_ext
17059 LIBS="$ac_save_LIBS"
17060
17061
27533 ac_config_files="$ac_config_files Makefile crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile crossedit/Cnv/Makefile crossedit/bitmaps/Makefile doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile doc/spoiler/Makefile doc/spoiler-html/Makefile doc/playbook/Makefile doc/playbook-html/Makefile doc/scripts/Makefile lib/Makefile random_maps/Makefile socket/Makefile server/Makefile include/Makefile utils/Makefile lib/checkarch.pl lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl common/Makefile plugins/Makefile plugins/cfpython/Makefile plugins/cfpython/include/Makefile plugins/cfanim/Makefile plugins/cfanim/include/Makefile plugins/common/Makefile plugins/common/include/Makefile devel/Makefile" 17062 ac_config_files="$ac_config_files Makefile crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile crossedit/Cnv/Makefile crossedit/bitmaps/Makefile doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile doc/spoiler/Makefile doc/spoiler-html/Makefile doc/playbook/Makefile doc/playbook-html/Makefile doc/scripts/Makefile lib/Makefile random_maps/Makefile socket/Makefile server/Makefile include/Makefile utils/Makefile lib/checkarch.pl lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl common/Makefile plugins/Makefile plugins/cfpython/Makefile plugins/cfpython/include/Makefile plugins/cfanim/Makefile plugins/cfanim/include/Makefile plugins/common/Makefile plugins/common/include/Makefile devel/Makefile plugins/cfperl/Makefile"
27534cat >confcache <<\_ACEOF 17063cat >confcache <<\_ACEOF
27535# This file is a shell script that caches the results of configure 17064# This file is a shell script that caches the results of configure
27536# tests run on this system so they can be shared between configure 17065# tests run on this system so they can be shared between configure
27537# scripts and configure runs, see configure's option --config-cache. 17066# scripts and configure runs, see configure's option --config-cache.
27538# It is not useful on other systems. If it contains results you don't 17067# It is not useful on other systems. If it contains results you don't
27641Usually this means the macro was only invoked conditionally." >&5 17170Usually this means the macro was only invoked conditionally." >&5
27642echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 17171echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27643Usually this means the macro was only invoked conditionally." >&2;} 17172Usually this means the macro was only invoked conditionally." >&2;}
27644 { (exit 1); exit 1; }; } 17173 { (exit 1); exit 1; }; }
27645fi 17174fi
27646if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27647 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27648Usually this means the macro was only invoked conditionally." >&5
27649echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27650Usually this means the macro was only invoked conditionally." >&2;}
27651 { (exit 1); exit 1; }; }
27652fi
27653if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17175if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27654 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 17176 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27655Usually this means the macro was only invoked conditionally." >&5 17177Usually this means the macro was only invoked conditionally." >&5
27656echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 17178echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27657Usually this means the macro was only invoked conditionally." >&2;} 17179Usually this means the macro was only invoked conditionally." >&2;}
27659fi 17181fi
27660if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then 17182if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
27661 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined. 17183 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
27662Usually this means the macro was only invoked conditionally." >&5 17184Usually this means the macro was only invoked conditionally." >&5
27663echo "$as_me: error: conditional \"HAVE_X\" was never defined. 17185echo "$as_me: error: conditional \"HAVE_X\" was never defined.
17186Usually this means the macro was only invoked conditionally." >&2;}
17187 { (exit 1); exit 1; }; }
17188fi
17189if test -z "${PERL_PLUGIN_TRUE}" && test -z "${PERL_PLUGIN_FALSE}"; then
17190 { { echo "$as_me:$LINENO: error: conditional \"PERL_PLUGIN\" was never defined.
17191Usually this means the macro was only invoked conditionally." >&5
17192echo "$as_me: error: conditional \"PERL_PLUGIN\" was never defined.
27664Usually this means the macro was only invoked conditionally." >&2;} 17193Usually this means the macro was only invoked conditionally." >&2;}
27665 { (exit 1); exit 1; }; } 17194 { (exit 1); exit 1; }; }
27666fi 17195fi
27667if test -z "${HAVE_LIBDL_TRUE}" && test -z "${HAVE_LIBDL_FALSE}"; then 17196if test -z "${HAVE_LIBDL_TRUE}" && test -z "${HAVE_LIBDL_FALSE}"; then
27668 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDL\" was never defined. 17197 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDL\" was never defined.
28110# 17639#
28111# INIT-COMMANDS section. 17640# INIT-COMMANDS section.
28112# 17641#
28113 17642
28114AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17643AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17644
17645
17646# The HP-UX ksh and POSIX shell print the target directory to stdout
17647# if CDPATH is set.
17648if test "X${CDPATH+set}" = Xset; then CDPATH=${ZSH_VERSION+.}:; export CDPATH; fi
17649
17650sed_quote_subst='$sed_quote_subst'
17651double_quote_subst='$double_quote_subst'
17652delay_variable_subst='$delay_variable_subst'
17653macro_version='`$echo "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17654macro_revision='`$echo "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17655enable_shared='`$echo "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17656enable_static='`$echo "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17657pic_mode='`$echo "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17658enable_fast_install='`$echo "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17659host_alias='`$echo "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17660host='`$echo "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17661SED='`$echo "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17662Xsed='`$echo "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17663GREP='`$echo "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17664EGREP='`$echo "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17665LD='`$echo "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17666reload_flag='`$echo "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17667reload_cmds='`$echo "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17668NM='`$echo "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17669LN_S='`$echo "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17670deplibs_check_method='`$echo "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17671file_magic_cmd='`$echo "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17672AR='`$echo "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17673AR_FLAGS='`$echo "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17674STRIP='`$echo "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17675RANLIB='`$echo "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17676old_postinstall_cmds='`$echo "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17677old_postuninstall_cmds='`$echo "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17678old_archive_cmds='`$echo "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17679lt_cv_sys_max_cmd_len='`$echo "X$lt_cv_sys_max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17680lt_cv_sys_global_symbol_pipe='`$echo "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17681lt_cv_sys_global_symbol_to_cdecl='`$echo "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17682lt_cv_sys_global_symbol_to_c_name_address='`$echo "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17683ac_objext='`$echo "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17684exeext='`$echo "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17685objdir='`$echo "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17686CC='`$echo "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17687compiler='`$echo "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17688GCC='`$echo "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17689SHELL='`$echo "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17690echo='`$echo "X$echo" | $Xsed -e "$delay_single_quote_subst"`'
17691MAGIC_CMD='`$echo "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17692lt_prog_compiler_no_builtin_flag='`$echo "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17693lt_prog_compiler_wl='`$echo "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17694lt_prog_compiler_pic='`$echo "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17695lt_prog_compiler_static='`$echo "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17696lt_cv_prog_compiler_c_o='`$echo "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17697need_locks='`$echo "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17698libext='`$echo "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17699shrext_cmds='`$echo "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17700extract_expsyms_cmds='`$echo "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17701variables_saved_for_relink='`$echo "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17702archive_cmds_need_lc='`$echo "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17703enable_shared_with_static_runtimes='`$echo "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17704export_dynamic_flag_spec='`$echo "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17705whole_archive_flag_spec='`$echo "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17706old_archive_from_new_cmds='`$echo "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17707old_archive_from_expsyms_cmds='`$echo "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17708archive_cmds='`$echo "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17709archive_expsym_cmds='`$echo "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17710module_cmds='`$echo "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17711module_expsym_cmds='`$echo "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17712allow_undefined_flag='`$echo "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17713no_undefined_flag='`$echo "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17714hardcode_libdir_flag_spec='`$echo "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17715hardcode_libdir_flag_spec_ld='`$echo "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17716hardcode_libdir_separator='`$echo "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17717hardcode_direct='`$echo "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17718hardcode_minus_L='`$echo "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17719hardcode_shlibpath_var='`$echo "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17720hardcode_automatic='`$echo "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17721inherit_rpath='`$echo "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17722link_all_deplibs='`$echo "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17723fix_srcfile_path='`$echo "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17724always_export_symbols='`$echo "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17725export_symbols_cmds='`$echo "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17726exclude_expsyms='`$echo "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17727include_expsyms='`$echo "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17728need_lib_prefix='`$echo "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17729need_version='`$echo "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17730version_type='`$echo "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17731runpath_var='`$echo "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17732shlibpath_var='`$echo "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17733shlibpath_overrides_runpath='`$echo "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17734libname_spec='`$echo "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17735library_names_spec='`$echo "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17736soname_spec='`$echo "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17737postinstall_cmds='`$echo "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17738postuninstall_cmds='`$echo "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17739finish_cmds='`$echo "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17740finish_eval='`$echo "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17741hardcode_into_libs='`$echo "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17742sys_lib_search_path_spec='`$echo "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17743sys_lib_dlsearch_path_spec='`$echo "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17744hardcode_action='`$echo "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17745old_striplib='`$echo "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17746striplib='`$echo "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17747enable_dlopen='`$echo "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17748enable_dlopen_self='`$echo "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17749enable_dlopen_self_static='`$echo "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17750
17751LTCC='$LTCC'
17752compiler='$compiler_DEFAULT'
17753
17754# Quote evaled strings.
17755for var in SED GREP EGREP LD reload_flag NM LN_S deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address CC compiler SHELL echo lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks shrext_cmds variables_saved_for_relink export_dynamic_flag_spec whole_archive_flag_spec allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms libname_spec library_names_spec soname_spec finish_eval old_striplib striplib; do
17756 eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17757done
17758
17759# Double-quote double-evaled strings.
17760for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec; do
17761 eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17762done
17763
17764# Fix-up fallback echo if it was mangled by the above quoting rules.
17765case \$lt_echo in
17766*'\\\$0 --fallback-echo"') lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17767 ;;
17768esac
17769
17770ac_aux_dir='$ac_aux_dir'
17771
17772# See if we are running on zsh, and set the options which allow our
17773# commands through without removal of \ escapes INIT.
17774if test -n "\${ZSH_VERSION+set}" ; then
17775 setopt NO_GLOB_SUBST
17776fi
17777
17778
17779 PACKAGE='$PACKAGE'
17780 VERSION='$VERSION'
17781 TIMESTAMP='$TIMESTAMP'
17782 rm='$rm'
17783 ofile='$ofile'
17784
17785
17786
28115 17787
28116_ACEOF 17788_ACEOF
28117 17789
28118 17790
28119 17791
28158 "plugins/cfanim/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;; 17830 "plugins/cfanim/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;;
28159 "plugins/cfanim/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/include/Makefile" ;; 17831 "plugins/cfanim/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/include/Makefile" ;;
28160 "plugins/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/Makefile" ;; 17832 "plugins/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/Makefile" ;;
28161 "plugins/common/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/include/Makefile" ;; 17833 "plugins/common/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/include/Makefile" ;;
28162 "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;; 17834 "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;;
17835 "plugins/cfperl/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfperl/Makefile" ;;
28163 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17836 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17837 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28164 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;; 17838 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
28165 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 17839 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28166echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 17840echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28167 { (exit 1); exit 1; }; };; 17841 { (exit 1); exit 1; }; };;
28168 esac 17842 esac
28256s,@ACLOCAL@,$ACLOCAL,;t t 17930s,@ACLOCAL@,$ACLOCAL,;t t
28257s,@AUTOCONF@,$AUTOCONF,;t t 17931s,@AUTOCONF@,$AUTOCONF,;t t
28258s,@AUTOMAKE@,$AUTOMAKE,;t t 17932s,@AUTOMAKE@,$AUTOMAKE,;t t
28259s,@AUTOHEADER@,$AUTOHEADER,;t t 17933s,@AUTOHEADER@,$AUTOHEADER,;t t
28260s,@MAKEINFO@,$MAKEINFO,;t t 17934s,@MAKEINFO@,$MAKEINFO,;t t
17935s,@AMTAR@,$AMTAR,;t t
28261s,@install_sh@,$install_sh,;t t 17936s,@install_sh@,$install_sh,;t t
28262s,@STRIP@,$STRIP,;t t 17937s,@STRIP@,$STRIP,;t t
28263s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 17938s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28264s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 17939s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28265s,@mkdir_p@,$mkdir_p,;t t
28266s,@AWK@,$AWK,;t t 17940s,@AWK@,$AWK,;t t
28267s,@SET_MAKE@,$SET_MAKE,;t t 17941s,@SET_MAKE@,$SET_MAKE,;t t
28268s,@am__leading_dot@,$am__leading_dot,;t t 17942s,@am__leading_dot@,$am__leading_dot,;t t
28269s,@AMTAR@,$AMTAR,;t t
28270s,@am__tar@,$am__tar,;t t
28271s,@am__untar@,$am__untar,;t t
28272s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 17943s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28273s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 17944s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28274s,@MAINT@,$MAINT,;t t 17945s,@MAINT@,$MAINT,;t t
17946s,@LIBTOOL@,$LIBTOOL,;t t
28275s,@build@,$build,;t t 17947s,@build@,$build,;t t
28276s,@build_cpu@,$build_cpu,;t t 17948s,@build_cpu@,$build_cpu,;t t
28277s,@build_vendor@,$build_vendor,;t t 17949s,@build_vendor@,$build_vendor,;t t
28278s,@build_os@,$build_os,;t t 17950s,@build_os@,$build_os,;t t
28279s,@host@,$host,;t t 17951s,@host@,$host,;t t
28294s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 17966s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28295s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 17967s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28296s,@CCDEPMODE@,$CCDEPMODE,;t t 17968s,@CCDEPMODE@,$CCDEPMODE,;t t
28297s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 17969s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28298s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 17970s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17971s,@SED@,$SED,;t t
28299s,@EGREP@,$EGREP,;t t 17972s,@EGREP@,$EGREP,;t t
17973s,@LD@,$LD,;t t
17974s,@NM@,$NM,;t t
28300s,@LN_S@,$LN_S,;t t 17975s,@LN_S@,$LN_S,;t t
28301s,@ECHO@,$ECHO,;t t
28302s,@AR@,$AR,;t t 17976s,@AR@,$AR,;t t
28303s,@ac_ct_AR@,$ac_ct_AR,;t t 17977s,@ac_ct_AR@,$ac_ct_AR,;t t
28304s,@RANLIB@,$RANLIB,;t t 17978s,@RANLIB@,$RANLIB,;t t
28305s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 17979s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17980s,@ECHO@,$ECHO,;t t
28306s,@CPP@,$CPP,;t t 17981s,@CPP@,$CPP,;t t
28307s,@CXX@,$CXX,;t t
28308s,@CXXFLAGS@,$CXXFLAGS,;t t
28309s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28310s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28311s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28312s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28313s,@CXXCPP@,$CXXCPP,;t t
28314s,@F77@,$F77,;t t
28315s,@FFLAGS@,$FFLAGS,;t t
28316s,@ac_ct_F77@,$ac_ct_F77,;t t
28317s,@LIBTOOL@,$LIBTOOL,;t t
28318s,@LEX@,$LEX,;t t 17982s,@LEX@,$LEX,;t t
28319s,@LEXLIB@,$LEXLIB,;t t 17983s,@LEXLIB@,$LEXLIB,;t t
28320s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 17984s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
28321s,@LATEX@,$LATEX,;t t 17985s,@LATEX@,$LATEX,;t t
28322s,@GZIP@,$GZIP,;t t 17986s,@GZIP@,$GZIP,;t t
28339s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t 18003s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
28340s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t 18004s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
28341s,@X11LIBS@,$X11LIBS,;t t 18005s,@X11LIBS@,$X11LIBS,;t t
28342s,@pkgstatedir@,$pkgstatedir,;t t 18006s,@pkgstatedir@,$pkgstatedir,;t t
28343s,@pkgconfdir@,$pkgconfdir,;t t 18007s,@pkgconfdir@,$pkgconfdir,;t t
18008s,@PERLLIB@,$PERLLIB,;t t
18009s,@PERLFLAGS@,$PERLFLAGS,;t t
18010s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
18011s,@PERL_PLUGIN_TRUE@,$PERL_PLUGIN_TRUE,;t t
18012s,@PERL_PLUGIN_FALSE@,$PERL_PLUGIN_FALSE,;t t
18013s,@PERL_PLUGIN@,$PERL_PLUGIN,;t t
28344s,@HAVE_LIBDL_TRUE@,$HAVE_LIBDL_TRUE,;t t 18014s,@HAVE_LIBDL_TRUE@,$HAVE_LIBDL_TRUE,;t t
28345s,@HAVE_LIBDL_FALSE@,$HAVE_LIBDL_FALSE,;t t 18015s,@HAVE_LIBDL_FALSE@,$HAVE_LIBDL_FALSE,;t t
28346s,@PYTHON_LIB@,$PYTHON_LIB,;t t 18016s,@PYTHON_LIB@,$PYTHON_LIB,;t t
28347s,@PY_LIBS@,$PY_LIBS,;t t 18017s,@PY_LIBS@,$PY_LIBS,;t t
28348s,@PY_INCLUDES@,$PY_INCLUDES,;t t 18018s,@PY_INCLUDES@,$PY_INCLUDES,;t t
28349s,@PYTHON_PLUGIN_TRUE@,$PYTHON_PLUGIN_TRUE,;t t 18019s,@PYTHON_PLUGIN_TRUE@,$PYTHON_PLUGIN_TRUE,;t t
28350s,@PYTHON_PLUGIN_FALSE@,$PYTHON_PLUGIN_FALSE,;t t 18020s,@PYTHON_PLUGIN_FALSE@,$PYTHON_PLUGIN_FALSE,;t t
28351s,@PLUGIN_PYTHON@,$PLUGIN_PYTHON,;t t 18021s,@PLUGIN_PYTHON@,$PLUGIN_PYTHON,;t t
18022s,@CROSSEDIT@,$CROSSEDIT,;t t
28352s,@LTLIBOBJS@,$LTLIBOBJS,;t t 18023s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28353CEOF 18024CEOF
28354 18025
28355_ACEOF 18026_ACEOF
28356 18027
28514 case $INSTALL in 18185 case $INSTALL in
28515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18186 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28516 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 18187 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28517 esac 18188 esac
28518 18189
28519 if test x"$ac_file" != x-; then
28520 { echo "$as_me:$LINENO: creating $ac_file" >&5
28521echo "$as_me: creating $ac_file" >&6;}
28522 rm -f "$ac_file"
28523 fi
28524 # Let's still pretend it is `configure' which instantiates (i.e., don't 18190 # Let's still pretend it is `configure' which instantiates (i.e., don't
28525 # use $as_me), people would be surprised to read: 18191 # use $as_me), people would be surprised to read:
28526 # /* config.h. Generated by config.status. */ 18192 # /* config.h. Generated by config.status. */
28527 if test x"$ac_file" = x-; then 18193 if test x"$ac_file" = x-; then
28528 configure_input= 18194 configure_input=
28557echo "$as_me: error: cannot find input file: $f" >&2;} 18223echo "$as_me: error: cannot find input file: $f" >&2;}
28558 { (exit 1); exit 1; }; } 18224 { (exit 1); exit 1; }; }
28559 fi;; 18225 fi;;
28560 esac 18226 esac
28561 done` || { (exit 1); exit 1; } 18227 done` || { (exit 1); exit 1; }
18228
18229 if test x"$ac_file" != x-; then
18230 { echo "$as_me:$LINENO: creating $ac_file" >&5
18231echo "$as_me: creating $ac_file" >&6;}
18232 rm -f "$ac_file"
18233 fi
28562_ACEOF 18234_ACEOF
28563cat >>$CONFIG_STATUS <<_ACEOF 18235cat >>$CONFIG_STATUS <<_ACEOF
28564 sed "$ac_vpsub 18236 sed "$ac_vpsub
28565$extrasub 18237$extrasub
28566_ACEOF 18238_ACEOF
28970 /^X\(\/\).*/{ s//\1/; q; } 18642 /^X\(\/\).*/{ s//\1/; q; }
28971 s/.*/./; q'` 18643 s/.*/./; q'`
28972 else 18644 else
28973 continue 18645 continue
28974 fi 18646 fi
28975 # Extract the definition of DEPDIR, am__include, and am__quote 18647 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
28976 # from the Makefile without running `make'. 18648 # Extract the definition of DEP_FILES from the Makefile without
18649 # running `make'.
28977 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18650 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
28978 test -z "$DEPDIR" && continue 18651 test -z "$DEPDIR" && continue
28979 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28980 test -z "am__include" && continue
28981 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28982 # When using ansi2knr, U may be empty or an underscore; expand it 18652 # When using ansi2knr, U may be empty or an underscore; expand it
28983 U=`sed -n 's/^U = //p' < "$mf"` 18653 U=`sed -n -e '/^U = / s///p' < "$mf"`
28984 # Find all dependency output files, they are included files with 18654 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
28985 # $(DEPDIR) in their names. We invoke sed twice because it is the 18655 # We invoke sed twice because it is the simplest approach to
28986 # simplest approach to changing $(DEPDIR) to its actual value in the 18656 # changing $(DEPDIR) to its actual value in the expansion.
28987 # expansion.
28988 for file in `sed -n " 18657 for file in `sed -n -e '
28989 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18658 /^DEP_FILES = .*\\\\$/ {
18659 s/^DEP_FILES = //
18660 :loop
18661 s/\\\\$//
18662 p
18663 n
18664 /\\\\$/ b loop
18665 p
18666 }
18667 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
28990 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 18668 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28991 # Make sure the directory exists. 18669 # Make sure the directory exists.
28992 test -f "$dirpart/$file" && continue 18670 test -f "$dirpart/$file" && continue
28993 fdir=`(dirname "$file") 2>/dev/null || 18671 fdir=`(dirname "$file") 2>/dev/null ||
28994$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18672$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29030 # echo "creating $dirpart/$file" 18708 # echo "creating $dirpart/$file"
29031 echo '# dummy' > "$dirpart/$file" 18709 echo '# dummy' > "$dirpart/$file"
29032 done 18710 done
29033done 18711done
29034 ;; 18712 ;;
18713 libtool )
18714
18715 # See if we are running on zsh, and set the options which allow our
18716 # commands through without removal of \ escapes.
18717 if test -n "${ZSH_VERSION+set}" ; then
18718 setopt NO_GLOB_SUBST
18719 fi
18720
18721 cfgfile="${ofile}T"
18722 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18723 $rm -f "$cfgfile"
18724
18725 cat <<_LT_EOF >> "$cfgfile"
18726#! $SHELL
18727
18728# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18729# Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION
18730# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18731# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18732#
18733# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
18734# Free Software Foundation, Inc.
18735#
18736# This file is part of GNU Libtool:
18737# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18738#
18739# This program is free software; you can redistribute it and/or modify
18740# it under the terms of the GNU General Public License as published by
18741# the Free Software Foundation; either version 2 of the License, or
18742# (at your option) any later version.
18743#
18744# This program is distributed in the hope that it will be useful, but
18745# WITHOUT ANY WARRANTY; without even the implied warranty of
18746# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18747# General Public License for more details.
18748#
18749# You should have received a copy of the GNU General Public License
18750# along with this program; if not, write to the Free Software
18751# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18752#
18753# As a special exception to the GNU General Public License, if you
18754# distribute this file as part of a program that contains a
18755# configuration script generated by Autoconf, you may include it under
18756# the same distribution terms that you use for the rest of that program.
18757
18758
18759
18760# The names of the tagged configurations supported by this script.
18761available_tags=""
18762
18763# ### BEGIN LIBTOOL CONFIG
18764
18765# Which release of libtool.m4 was used?
18766macro_version=$macro_version
18767macro_revision=$macro_revision
18768
18769# Whether or not to build shared libraries.
18770build_libtool_libs=$enable_shared
18771
18772# Whether or not to build static libraries.
18773build_old_libs=$enable_static
18774
18775# What type of objects to build.
18776pic_mode=$pic_mode
18777
18778# Whether or not to optimize for fast installation.
18779fast_install=$enable_fast_install
18780
18781# The host system.
18782host_alias=$host_alias
18783host=$host
18784
18785# A sed program that does not truncate output.
18786SED=$lt_SED
18787
18788# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18789Xsed="\$SED -e s/^X//"
18790
18791# A grep program that handles long line.
18792GREP=$lt_GREP
18793
18794# An ERE matcher.
18795EGREP=$lt_EGREP
18796
18797# How to create reloadable object files.
18798reload_flag=$lt_reload_flag
18799reload_cmds=$lt_reload_cmds
18800
18801# A BSD-compatible nm program.
18802NM=$lt_NM
18803
18804# Whether we need soft or hard links.
18805LN_S=$lt_LN_S
18806
18807# Method to check whether dependent libraries are shared objects.
18808deplibs_check_method=$lt_deplibs_check_method
18809
18810# Command to use when deplibs_check_method == "file_magic".
18811file_magic_cmd=$lt_file_magic_cmd
18812
18813# The archiver.
18814AR=$lt_AR
18815AR_FLAGS=$lt_AR_FLAGS
18816
18817# A symbol stripping program.
18818STRIP=$lt_STRIP
18819
18820# Commands used to install an old-style archive.
18821RANLIB=$lt_RANLIB
18822old_postinstall_cmds=$lt_old_postinstall_cmds
18823old_postuninstall_cmds=$lt_old_postuninstall_cmds
18824
18825# What is the maximum length of a command?
18826max_cmd_len=$lt_cv_sys_max_cmd_len
18827
18828# Take the output of nm and produce a listing of raw symbols and C names.
18829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18830
18831# Transform the output of nm in a proper C declaration.
18832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18833
18834# Transform the output of nm in a C name address pair.
18835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18836
18837# Object file suffix (normally "o").
18838objext=$ac_objext
18839
18840# Executable file suffix (normally "").
18841exeext=$exeext
18842
18843# The name of the directory that contains temporary libtool files.
18844objdir=$objdir
18845
18846# A C compiler.
18847LTCC=$lt_CC
18848
18849# Shell to use when invoking shell scripts.
18850SHELL=$lt_SHELL
18851
18852# An echo program that does not interpret backslashes.
18853echo=$lt_echo
18854
18855# Used to examine libraries when file_magic_cmd begins "file".
18856MAGIC_CMD=$MAGIC_CMD
18857
18858# Does compiler simultaneously support -c and -o options?
18859compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18860
18861# Must we lock files when doing compilation?
18862need_locks=$lt_need_locks
18863
18864# Old archive suffix (normally "a").
18865libext=$libext
18866
18867# Shared library suffix (normally ".so").
18868shrext_cmds=$lt_shrext_cmds
18869
18870# The commands to extract the exported symbol list from a shared archive.
18871extract_expsyms_cmds=$lt_extract_expsyms_cmds
18872
18873# Variables whose values should be saved in libtool wrapper scripts and
18874# restored at link time.
18875variables_saved_for_relink=$lt_variables_saved_for_relink
18876
18877# Do we need the "lib" prefix for modules?
18878need_lib_prefix=$need_lib_prefix
18879
18880# Do we need a version for libraries?
18881need_version=$need_version
18882
18883# Library versioning type.
18884version_type=$version_type
18885
18886# Shared library runtime path variable.
18887runpath_var=$runpath_var
18888
18889# Shared library path variable.
18890shlibpath_var=$shlibpath_var
18891
18892# Is shibpath searched before the hard-coded library search path?
18893shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18894
18895# Format of library name prefix.
18896libname_spec=$lt_libname_spec
18897
18898# List of archive names. First name is the real one,the rest are links.
18899# The last name is the one that the linker finds with -lNAME
18900library_names_spec=$lt_library_names_spec
18901
18902# The coded name of the library,if different from the real name.
18903soname_spec=$lt_soname_spec
18904
18905# Command to use after installation of a shared archive.
18906postinstall_cmds=$lt_postinstall_cmds
18907
18908# Command to use after uninstallation of a shared archive.
18909postuninstall_cmds=$lt_postuninstall_cmds
18910
18911# Commands used to finish a libtool library installation in a directory.
18912finish_cmds=$lt_finish_cmds
18913
18914# As "finish_cmds",except a single script fragment to be evaled but
18915# not shown.
18916finish_eval=$lt_finish_eval
18917
18918# Whether we should hardcode library paths into libraries.
18919hardcode_into_libs=$hardcode_into_libs
18920
18921# Compile-time system search path for libraries.
18922sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18923
18924# Run-time system search path for libraries.
18925sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18926
18927# Commands to strip libraries.
18928old_striplib=$lt_old_striplib
18929striplib=$lt_striplib
18930
18931# Whether dlopen is supported.
18932dlopen_support=$enable_dlopen
18933
18934# Whether dlopen of programs is supported.
18935dlopen_self=$enable_dlopen_self
18936
18937# Whether dlopen of statically linked programs is supported.
18938dlopen_self_static=$enable_dlopen_self_static
18939
18940
18941# The linker used to build libraries.
18942LD=$lt_LD
18943
18944# Commands used to build an old-style archive.
18945old_archive_cmds=$lt_old_archive_cmds
18946
18947# A language specific compiler.
18948CC=$lt_compiler
18949
18950# Is the compiler the GNU C compiler?
18951with_gcc=$GCC
18952
18953# Compiler flag to turn off builtin functions.
18954no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18955
18956# How to pass a linker flag through the compiler.
18957wl=$lt_lt_prog_compiler_wl
18958
18959# Additional compiler flags for building library objects.
18960pic_flag=$lt_lt_prog_compiler_pic
18961
18962# Compiler flag to prevent dynamic linking.
18963link_static_flag=$lt_lt_prog_compiler_static
18964
18965# Whether or not to add -lc for building shared libraries.
18966build_libtool_need_lc=$archive_cmds_need_lc
18967
18968# Whether or not to disallow shared libs when runtime libs are static.
18969allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18970
18971# Compiler flag to allow reflexive dlopens.
18972export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18973
18974# Compiler flag to generate shared objects directly from archives.
18975whole_archive_flag_spec=$lt_whole_archive_flag_spec
18976
18977# Create an old-style archive from a shared archive.
18978old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18979
18980# Create a temporary old-style archive to link instead of a shared archive.
18981old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18982
18983# Commands used to build a shared archive.
18984archive_cmds=$lt_archive_cmds
18985archive_expsym_cmds=$lt_archive_expsym_cmds
18986
18987# Commands used to build a loadable module if different from building
18988# a shared archive.
18989module_cmds=$lt_module_cmds
18990module_expsym_cmds=$lt_module_expsym_cmds
18991
18992# Flag that allows shared libraries with undefined symbols to be built.
18993allow_undefined_flag=$lt_allow_undefined_flag
18994
18995# Flag that enforces no undefined symbols.
18996no_undefined_flag=$lt_no_undefined_flag
18997
18998# Flag to hardcode $libdir into a binary during linking.
18999# This must work even if $libdir does not exist
19000hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19001
19002# If ld is used when linking,flag to hardcode $libdir into a binary
19003# during linking. This must work even if $libdir does not exist.
19004hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19005
19006# Whether we need a single "-rpath" flag with a separated argument.
19007hardcode_libdir_separator=$lt_hardcode_libdir_separator
19008
19009# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
19010# DIR into the resulting binary.
19011hardcode_direct=$hardcode_direct
19012
19013# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19014# into the resulting binary.
19015hardcode_minus_L=$hardcode_minus_L
19016
19017# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19018# into the resulting binary.
19019hardcode_shlibpath_var=$hardcode_shlibpath_var
19020
19021# Set to "yes" if building a shared library automatically hardcodes DIR
19022# into the library and all subsequent libraries and executables linked
19023# against it.
19024hardcode_automatic=$hardcode_automatic
19025
19026# Set to yes if linker adds runtime paths of dependent libraries
19027# to runtime path list.
19028inherit_rpath=$inherit_rpath
19029
19030# Whether libtool must link a program against all its dependency libraries.
19031link_all_deplibs=$link_all_deplibs
19032
19033# Fix the shell variable $srcfile for the compiler.
19034fix_srcfile_path=$lt_fix_srcfile_path
19035
19036# Set to "yes" if exported symbols are required.
19037always_export_symbols=$always_export_symbols
19038
19039# The commands to list exported symbols.
19040export_symbols_cmds=$lt_export_symbols_cmds
19041
19042# Symbols that should not be listed in the preloaded symbols.
19043exclude_expsyms=$lt_exclude_expsyms
19044
19045# Symbols that must always be exported.
19046include_expsyms=$lt_include_expsyms
19047
19048# How to hardcode a shared library path into an executable.
19049hardcode_action=$hardcode_action
19050
19051# ### END LIBTOOL CONFIG
19052
19053# The HP-UX ksh and POSIX shell print the target directory to stdout
19054# if CDPATH is set.
19055if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
19056
19057_LT_EOF
19058
19059 case $host_os in
19060 aix3*)
19061 cat <<\_LT_EOF >> "$cfgfile"
19062# AIX sometimes has problems with the GCC collect2 program. For some
19063# reason, if we set the COLLECT_NAMES environment variable, the problems
19064# vanish in a puff of smoke.
19065if test "X${COLLECT_NAMES+set}" != Xset; then
19066 COLLECT_NAMES=
19067 export COLLECT_NAMES
19068fi
19069_LT_EOF
19070 ;;
19071 esac
19072
19073
19074case $ac_aux_dir in
19075 $srcdir) ltmain=./ltmain.sh ;;
19076 $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
19077esac
19078test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
19079
19080
19081 # We use sed instead of cat because bash on DJGPP gets confused if
19082 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19083 # text mode, it properly converts lines to CR/LF. This bash problem
19084 # is reportedly fixed, but why not run on old versions too?
19085 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
19086
19087 mv -f "$cfgfile" "$ofile" ||
19088 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19089 chmod +x "$ofile"
19090
19091 ;;
29035 esac 19092 esac
29036done 19093done
29037_ACEOF 19094_ACEOF
29038 19095
29039cat >>$CONFIG_STATUS <<\_ACEOF 19096cat >>$CONFIG_STATUS <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines