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

Comparing deliantra/server/configure (file contents):
Revision 1.2 by root, Fri Feb 3 07:25:24 2006 UTC vs.
Revision 1.3 by elmex, Wed Mar 15 15:35:45 2006 UTC

1#! /bin/sh 1#! /bin/sh
2# From configure.ac Id: configure.ac. 2# From configure.ac Id.
3# Guess values for system-dependent variables and create Makefiles. 3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for crossfire 1.8.0. 4# Generated by GNU Autoconf 2.59 for crossfire 1.9.0.
5# 5#
6# Report bugs to <crossfire-devel@listserv.real-time.com>. 6# Report bugs to <crossfire-devel@listserv.real-time.com>.
7# 7#
8# Copyright (C) 2003 Free Software Foundation, Inc. 8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
271fi 271fi
272 272
273if test "X$1" = X--fallback-echo; then 273if test "X$1" = X--fallback-echo; then
274 # used as fallback echo 274 # used as fallback echo
275 shift 275 shift
276 cat <<_LT_EOF 276 cat <<EOF
277$* 277$*
278_LT_EOF 278EOF
279 exit 0 279 exit 0
280fi 280fi
281 281
282# The HP-UX ksh and POSIX shell print the target directory to stdout 282# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set. 283# if CDPATH is set.
392fi 392fi
393 393
394 394
395 395
396 396
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
397# Name of the host. 401# Name of the host.
398# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399# so uname gets run too. 403# so uname gets run too.
400ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401 405
418: ${ac_max_here_lines=38} 422: ${ac_max_here_lines=38}
419 423
420# Identity of this package. 424# Identity of this package.
421PACKAGE_NAME='crossfire' 425PACKAGE_NAME='crossfire'
422PACKAGE_TARNAME='crossfire' 426PACKAGE_TARNAME='crossfire'
423PACKAGE_VERSION='1.8.0' 427PACKAGE_VERSION='1.9.0'
424PACKAGE_STRING='crossfire 1.8.0' 428PACKAGE_STRING='crossfire 1.9.0'
425PACKAGE_BUGREPORT='crossfire-devel@listserv.real-time.com' 429PACKAGE_BUGREPORT='crossfire-devel@listserv.real-time.com'
426 430
427ac_unique_file="server/main.c" 431ac_unique_file="server/main.c"
428ac_default_prefix=/usr/games/crossfire 432ac_default_prefix=/usr/games/crossfire
429# Factoring default headers for most tests. 433# Factoring default headers for most tests.
461#endif 465#endif
462#if HAVE_UNISTD_H 466#if HAVE_UNISTD_H
463# include <unistd.h> 467# include <unistd.h>
464#endif" 468#endif"
465 469
466ac_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 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 LTLIBOBJS' 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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LEX LEXLIB LEX_OUTPUT_ROOT AWK 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 LTLIBOBJS'
467ac_subst_files='' 471ac_subst_files=''
468 472
469# Initialize some variables set by options. 473# Initialize some variables set by options.
470ac_init_help= 474ac_init_help=
471ac_init_version=false 475ac_init_version=false
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set} 927ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP 928ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set} 929ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP 930ac_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
927 951
928# 952#
929# Report the --help message. 953# Report the --help message.
930# 954#
931if test "$ac_init_help" = "long"; then 955if test "$ac_init_help" = "long"; then
932 # Omit some internal or obsolete options to make the list less imposing. 956 # Omit some internal or obsolete options to make the list less imposing.
933 # This message is too long to be a string in the A/UX 3.1 sh. 957 # This message is too long to be a string in the A/UX 3.1 sh.
934 cat <<_ACEOF 958 cat <<_ACEOF
935\`configure' configures crossfire 1.8.0 to adapt to many kinds of systems. 959\`configure' configures crossfire 1.9.0 to adapt to many kinds of systems.
936 960
937Usage: $0 [OPTION]... [VAR=VALUE]... 961Usage: $0 [OPTION]... [VAR=VALUE]...
938 962
939To assign environment variables (e.g., CC, CFLAGS...), specify them as 963To assign environment variables (e.g., CC, CFLAGS...), specify them as
940VAR=VALUE. See below for descriptions of some of the useful variables. 964VAR=VALUE. See below for descriptions of some of the useful variables.
1000_ACEOF 1024_ACEOF
1001fi 1025fi
1002 1026
1003if test -n "$ac_init_help"; then 1027if test -n "$ac_init_help"; then
1004 case $ac_init_help in 1028 case $ac_init_help in
1005 short | recursive ) echo "Configuration of crossfire 1.8.0:";; 1029 short | recursive ) echo "Configuration of crossfire 1.9.0:";;
1006 esac 1030 esac
1007 cat <<\_ACEOF 1031 cat <<\_ACEOF
1008 1032
1009Optional Features: 1033Optional Features:
1010 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1011 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1012 --enable-maintainer-mode enable make rules and dependencies not useful 1036 --enable-maintainer-mode enable make rules and dependencies not useful
1013 (and sometimes confusing) to the casual installer 1037 (and sometimes confusing) to the casual installer
1014 --enable-shared[=PKGS] 1038 --enable-shared[=PKGS]
1015 build shared libraries [default=yes] 1039 build shared libraries [default=yes]
1016 --enable-static[=PKGS] 1040 --enable-static[=PKGS]
1017 build static libraries [default=yes] 1041 build static libraries [default=yes]
1018 --enable-fast-install[=PKGS] 1042 --enable-fast-install[=PKGS]
1019 optimize for fast installation [default=yes] 1043 optimize for fast installation [default=yes]
1020 --disable-dependency-tracking speeds up one-time build
1021 --enable-dependency-tracking do not reject slow dependency extractors
1022 --disable-libtool-lock avoid locking (might break parallel builds) 1044 --disable-libtool-lock avoid locking (might break parallel builds)
1023 --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working 1045 --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working
1024 1046
1025Optional Packages: 1047Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 --with-pic try to use only PIC/non-PIC objects [default=use 1051 --with-pic try to use only PIC/non-PIC objects [default=use
1029 both] 1052 both]
1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1053 --with-tags[=TAGS]
1054 include additional configurations [automatic]
1031 --with-python=dir Directory to look for python headers/library (default=standard system location) 1055 --with-python=dir Directory to look for python headers/library (default=standard system location)
1032 --with-x use the X Window System 1056 --with-x use the X Window System
1033 1057
1034Some influential environment variables: 1058Some influential environment variables:
1035 CC C compiler command 1059 CC C compiler command
1037 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1038 nonstandard directory <lib dir> 1062 nonstandard directory <lib dir>
1039 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1063 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1040 headers in a nonstandard directory <include dir> 1064 headers in a nonstandard directory <include dir>
1041 CPP C preprocessor 1065 CPP C preprocessor
1066 CXX C++ compiler command
1067 CXXFLAGS C++ compiler flags
1068 CXXCPP C++ preprocessor
1069 F77 Fortran 77 compiler command
1070 FFLAGS Fortran 77 compiler flags
1042 1071
1043Use these variables to override the choices made by `configure' or to help 1072Use these variables to override the choices made by `configure' or to help
1044it to find libraries and programs with nonstandard names/locations. 1073it to find libraries and programs with nonstandard names/locations.
1045 1074
1046Report bugs to <crossfire-devel@listserv.real-time.com>. 1075Report bugs to <crossfire-devel@listserv.real-time.com>.
1137fi 1166fi
1138 1167
1139test -n "$ac_init_help" && exit 0 1168test -n "$ac_init_help" && exit 0
1140if $ac_init_version; then 1169if $ac_init_version; then
1141 cat <<\_ACEOF 1170 cat <<\_ACEOF
1142crossfire configure 1.8.0 1171crossfire configure 1.9.0
1143generated by GNU Autoconf 2.59 1172generated by GNU Autoconf 2.59
1144 1173
1145Copyright (C) 2003 Free Software Foundation, Inc. 1174Copyright (C) 2003 Free Software Foundation, Inc.
1146This configure script is free software; the Free Software Foundation 1175This configure script is free software; the Free Software Foundation
1147gives unlimited permission to copy, distribute and modify it. 1176gives unlimited permission to copy, distribute and modify it.
1151exec 5>config.log 1180exec 5>config.log
1152cat >&5 <<_ACEOF 1181cat >&5 <<_ACEOF
1153This file contains any messages produced by compilers while 1182This file contains any messages produced by compilers while
1154running configure, to aid debugging if configure makes a mistake. 1183running configure, to aid debugging if configure makes a mistake.
1155 1184
1156It was created by crossfire $as_me 1.8.0, which was 1185It was created by crossfire $as_me 1.9.0, which was
1157generated by GNU Autoconf 2.59. Invocation command line was 1186generated by GNU Autoconf 2.59. Invocation command line was
1158 1187
1159 $ $0 $@ 1188 $ $0 $@
1160 1189
1161_ACEOF 1190_ACEOF
1513ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1542ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1514ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1543ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1515ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1544ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1516 1545
1517 1546
1518am__api_version="1.9" 1547am__api_version="1.4"
1519# Find a good install program. We prefer a C program (faster), 1548# Find a good install program. We prefer a C program (faster),
1520# so one script is as good as another. But avoid the broken or 1549# so one script is as good as another. But avoid the broken or
1521# incompatible versions: 1550# incompatible versions:
1522# SysV /etc/install, /usr/sbin/install 1551# SysV /etc/install, /usr/sbin/install
1523# SunOS /usr/etc/install 1552# SunOS /usr/etc/install
1597 1626
1598echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1627echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1599echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1628echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1600# Just in case 1629# Just in case
1601sleep 1 1630sleep 1
1602echo timestamp > conftest.file 1631echo timestamp > conftestfile
1603# Do `set' in a subshell so we don't clobber the current shell's 1632# Do `set' in a subshell so we don't clobber the current shell's
1604# arguments. Must try -L first in case configure is actually a 1633# arguments. Must try -L first in case configure is actually a
1605# symlink; some systems play weird games with the mod time of symlinks 1634# symlink; some systems play weird games with the mod time of symlinks
1606# (eg FreeBSD returns the mod time of the symlink's containing 1635# (eg FreeBSD returns the mod time of the symlink's containing
1607# directory). 1636# directory).
1608if ( 1637if (
1609 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1638 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1610 if test "$*" = "X"; then 1639 if test "$*" = "X"; then
1611 # -L didn't work. 1640 # -L didn't work.
1612 set X `ls -t $srcdir/configure conftest.file` 1641 set X `ls -t $srcdir/configure conftestfile`
1613 fi 1642 fi
1614 rm -f conftest.file
1615 if test "$*" != "X $srcdir/configure conftest.file" \ 1643 if test "$*" != "X $srcdir/configure conftestfile" \
1616 && test "$*" != "X conftest.file $srcdir/configure"; then 1644 && test "$*" != "X conftestfile $srcdir/configure"; then
1617 1645
1618 # If neither matched, then we have a broken ls. This can happen 1646 # If neither matched, then we have a broken ls. This can happen
1619 # if, for instance, CONFIG_SHELL is bash and it inherits a 1647 # if, for instance, CONFIG_SHELL is bash and it inherits a
1620 # broken ls alias from the environment. This has actually 1648 # broken ls alias from the environment. This has actually
1621 # happened. Such a system could not be considered "sane". 1649 # happened. Such a system could not be considered "sane".
1624echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1652echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1625alias in your environment" >&2;} 1653alias in your environment" >&2;}
1626 { (exit 1); exit 1; }; } 1654 { (exit 1); exit 1; }; }
1627 fi 1655 fi
1628 1656
1629 test "$2" = conftest.file 1657 test "$2" = conftestfile
1630 ) 1658 )
1631then 1659then
1632 # Ok. 1660 # Ok.
1633 : 1661 :
1634else 1662else
1636Check your system clock" >&5 1664Check your system clock" >&5
1637echo "$as_me: error: newly created file is older than distributed files! 1665echo "$as_me: error: newly created file is older than distributed files!
1638Check your system clock" >&2;} 1666Check your system clock" >&2;}
1639 { (exit 1); exit 1; }; } 1667 { (exit 1); exit 1; }; }
1640fi 1668fi
1669rm -f conftest*
1641echo "$as_me:$LINENO: result: yes" >&5 1670echo "$as_me:$LINENO: result: yes" >&5
1642echo "${ECHO_T}yes" >&6 1671echo "${ECHO_T}yes" >&6
1643test "$program_prefix" != NONE && 1672test "$program_prefix" != NONE &&
1644 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1673 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1645# Use a double $ so make ignores it. 1674# Use a double $ so make ignores it.
1651s/[\\$]/&&/g;s/;s,x,x,$// 1680s/[\\$]/&&/g;s/;s,x,x,$//
1652_ACEOF 1681_ACEOF
1653program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1682program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1654rm conftest.sed 1683rm conftest.sed
1655 1684
1656# expand $ac_aux_dir to an absolute path
1657am_aux_dir=`cd $ac_aux_dir && pwd`
1658
1659test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1660# Use eval to expand $SHELL
1661if eval "$MISSING --run true"; then
1662 am_missing_run="$MISSING --run "
1663else
1664 am_missing_run=
1665 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1666echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1667fi
1668
1669if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1670 # We used to keeping the `.' as first argument, in order to
1671 # allow $(mkdir_p) to be used without argument. As in
1672 # $(mkdir_p) $(somedir)
1673 # where $(somedir) is conditionally defined. However this is wrong
1674 # for two reasons:
1675 # 1. if the package is installed by a user who cannot write `.'
1676 # make install will fail,
1677 # 2. the above comment should most certainly read
1678 # $(mkdir_p) $(DESTDIR)$(somedir)
1679 # so it does not work when $(somedir) is undefined and
1680 # $(DESTDIR) is not.
1681 # To support the latter case, we have to write
1682 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1683 # so the `.' trick is pointless.
1684 mkdir_p='mkdir -p --'
1685else
1686 # On NextStep and OpenStep, the `mkdir' command does not
1687 # recognize any option. It will interpret all options as
1688 # directories to create, and then abort because `.' already
1689 # exists.
1690 for d in ./-p ./--version;
1691 do
1692 test -d $d && rmdir $d
1693 done
1694 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1695 if test -f "$ac_aux_dir/mkinstalldirs"; then
1696 mkdir_p='$(mkinstalldirs)'
1697 else
1698 mkdir_p='$(install_sh) -d'
1699 fi
1700fi
1701
1702for ac_prog in gawk mawk nawk awk
1703do
1704 # Extract the first word of "$ac_prog", so it can be a program name with args.
1705set dummy $ac_prog; ac_word=$2
1706echo "$as_me:$LINENO: checking for $ac_word" >&5
1707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708if test "${ac_cv_prog_AWK+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711 if test -n "$AWK"; then
1712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1713else
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_AWK="$ac_prog"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1724 fi
1725done
1726done
1727
1728fi
1729fi
1730AWK=$ac_cv_prog_AWK
1731if test -n "$AWK"; then
1732 echo "$as_me:$LINENO: result: $AWK" >&5
1733echo "${ECHO_T}$AWK" >&6
1734else
1735 echo "$as_me:$LINENO: result: no" >&5
1736echo "${ECHO_T}no" >&6
1737fi
1738
1739 test -n "$AWK" && break
1740done
1741
1742echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1685echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1743echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1686echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1744set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1687set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1745if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1688if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6 1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1766 echo "$as_me:$LINENO: result: no" >&5 1709 echo "$as_me:$LINENO: result: no" >&5
1767echo "${ECHO_T}no" >&6 1710echo "${ECHO_T}no" >&6
1768 SET_MAKE="MAKE=${MAKE-make}" 1711 SET_MAKE="MAKE=${MAKE-make}"
1769fi 1712fi
1770 1713
1771rm -rf .tst 2>/dev/null
1772mkdir .tst 2>/dev/null
1773if test -d .tst; then
1774 am__leading_dot=.
1775else
1776 am__leading_dot=_
1777fi
1778rmdir .tst 2>/dev/null
1779 1714
1780# test to see if srcdir already configured 1715PACKAGE=
1781if test "`cd $srcdir && pwd`" != "`pwd`" && 1716
1782 test -f $srcdir/config.status; then 1717VERSION=
1718
1719if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1783 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1720 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1784echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1721echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1785 { (exit 1); exit 1; }; } 1722 { (exit 1); exit 1; }; }
1786fi 1723fi
1787 1724
1788# test whether we have cygpath
1789if test -z "$CYGPATH_W"; then
1790 if (cygpath --version) >/dev/null 2>/dev/null; then
1791 CYGPATH_W='cygpath -w'
1792 else
1793 CYGPATH_W=echo
1794 fi
1795fi
1796
1797
1798# Define the identity of the package.
1799 PACKAGE='crossfire'
1800 VERSION='1.8.0'
1801
1802
1803cat >>confdefs.h <<_ACEOF 1725cat >>confdefs.h <<_ACEOF
1804#define PACKAGE "$PACKAGE" 1726#define PACKAGE "$PACKAGE"
1805_ACEOF 1727_ACEOF
1806 1728
1807 1729
1808cat >>confdefs.h <<_ACEOF 1730cat >>confdefs.h <<_ACEOF
1809#define VERSION "$VERSION" 1731#define VERSION "$VERSION"
1810_ACEOF 1732_ACEOF
1811 1733
1812# Some tools Automake needs.
1813 1734
1814ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1815 1735
1816 1736missing_dir=`cd $ac_aux_dir && pwd`
1817AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1737echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1818 1738echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1819 1739# Run test in a subshell; some versions of sh will print an error if
1820AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1740# an executable is not found, even if stderr is redirected.
1821 1741# Redirect stdin to placate older versions of autoconf. Sigh.
1822 1742if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1823AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1743 ACLOCAL=aclocal-${am__api_version}
1824
1825
1826MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1827
1828install_sh=${install_sh-"$am_aux_dir/install-sh"}
1829
1830# Installed binaries are usually stripped using `strip' when the user
1831# run `make install-strip'. However `strip' might not be the right
1832# tool to use in cross-compilation environments, therefore Automake
1833# will honor the `STRIP' environment variable to overrule this program.
1834if test "$cross_compiling" != no; then
1835 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1837set dummy ${ac_tool_prefix}strip; ac_word=$2
1838echo "$as_me:$LINENO: checking for $ac_word" >&5
1839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840if test "${ac_cv_prog_STRIP+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843 if test -n "$STRIP"; then
1844 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1845else
1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847for as_dir in $PATH
1848do
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1856 fi
1857done
1858done
1859
1860fi
1861fi
1862STRIP=$ac_cv_prog_STRIP
1863if test -n "$STRIP"; then
1864 echo "$as_me:$LINENO: result: $STRIP" >&5
1865echo "${ECHO_T}$STRIP" >&6
1866else
1867 echo "$as_me:$LINENO: result: no" >&5 1744 echo "$as_me:$LINENO: result: found" >&5
1868echo "${ECHO_T}no" >&6 1745echo "${ECHO_T}found" >&6
1746else
1747 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1748 echo "$as_me:$LINENO: result: missing" >&5
1749echo "${ECHO_T}missing" >&6
1869fi 1750fi
1870 1751
1871fi
1872if test -z "$ac_cv_prog_STRIP"; then
1873 ac_ct_STRIP=$STRIP
1874 # Extract the first word of "strip", so it can be a program name with args.
1875set dummy strip; ac_word=$2
1876echo "$as_me:$LINENO: checking for $ac_word" >&5 1752echo "$as_me:$LINENO: checking for working autoconf" >&5
1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1753echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1878if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1754# Run test in a subshell; some versions of sh will print an error if
1879 echo $ECHO_N "(cached) $ECHO_C" >&6 1755# an executable is not found, even if stderr is redirected.
1880else 1756# Redirect stdin to placate older versions of autoconf. Sigh.
1881 if test -n "$ac_ct_STRIP"; then 1757if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1882 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1758 AUTOCONF=autoconf
1883else
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_STRIP="strip"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895done
1896done
1897
1898 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1899fi
1900fi
1901ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1902if test -n "$ac_ct_STRIP"; then
1903 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1904echo "${ECHO_T}$ac_ct_STRIP" >&6
1905else
1906 echo "$as_me:$LINENO: result: no" >&5 1759 echo "$as_me:$LINENO: result: found" >&5
1907echo "${ECHO_T}no" >&6 1760echo "${ECHO_T}found" >&6
1908fi
1909
1910 STRIP=$ac_ct_STRIP
1911else 1761else
1912 STRIP="$ac_cv_prog_STRIP" 1762 AUTOCONF="$missing_dir/missing autoconf"
1763 echo "$as_me:$LINENO: result: missing" >&5
1764echo "${ECHO_T}missing" >&6
1913fi 1765fi
1914 1766
1767echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1768echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1769# Run test in a subshell; some versions of sh will print an error if
1770# an executable is not found, even if stderr is redirected.
1771# Redirect stdin to placate older versions of autoconf. Sigh.
1772if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1773 AUTOMAKE=automake-${am__api_version}
1774 echo "$as_me:$LINENO: result: found" >&5
1775echo "${ECHO_T}found" >&6
1776else
1777 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1778 echo "$as_me:$LINENO: result: missing" >&5
1779echo "${ECHO_T}missing" >&6
1915fi 1780fi
1916INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1917 1781
1918# We need awk for the "check" target. The system "awk" is bad on 1782echo "$as_me:$LINENO: checking for working autoheader" >&5
1919# some platforms. 1783echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1920# Always define AMTAR for backward compatibility. 1784# Run test in a subshell; some versions of sh will print an error if
1785# an executable is not found, even if stderr is redirected.
1786# Redirect stdin to placate older versions of autoconf. Sigh.
1787if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1788 AUTOHEADER=autoheader
1789 echo "$as_me:$LINENO: result: found" >&5
1790echo "${ECHO_T}found" >&6
1791else
1792 AUTOHEADER="$missing_dir/missing autoheader"
1793 echo "$as_me:$LINENO: result: missing" >&5
1794echo "${ECHO_T}missing" >&6
1795fi
1921 1796
1922AMTAR=${AMTAR-"${am_missing_run}tar"} 1797echo "$as_me:$LINENO: checking for working makeinfo" >&5
1923 1798echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1924am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1799# Run test in a subshell; some versions of sh will print an error if
1925 1800# an executable is not found, even if stderr is redirected.
1926 1801# Redirect stdin to placate older versions of autoconf. Sigh.
1802if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1803 MAKEINFO=makeinfo
1804 echo "$as_me:$LINENO: result: found" >&5
1805echo "${ECHO_T}found" >&6
1806else
1807 MAKEINFO="$missing_dir/missing makeinfo"
1808 echo "$as_me:$LINENO: result: missing" >&5
1809echo "${ECHO_T}missing" >&6
1810fi
1927 1811
1928 1812
1929 1813
1930 ac_config_headers="$ac_config_headers include/autoconf.h" 1814 ac_config_headers="$ac_config_headers include/autoconf.h"
1815
1816 ac_config_commands="$ac_config_commands default-1"
1931 1817
1932 1818
1933echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1819echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1934echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1820echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1935 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1821 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1948 MAINTAINER_MODE_FALSE='#' 1834 MAINTAINER_MODE_FALSE='#'
1949else 1835else
1950 MAINTAINER_MODE_TRUE='#' 1836 MAINTAINER_MODE_TRUE='#'
1951 MAINTAINER_MODE_FALSE= 1837 MAINTAINER_MODE_FALSE=
1952fi 1838fi
1953
1954 MAINT=$MAINTAINER_MODE_TRUE 1839 MAINT=$MAINTAINER_MODE_TRUE
1955 1840
1956 1841
1957 1842
1958 1843
1959 1844
1960 1845
1846# Check whether --enable-shared or --disable-shared was given.
1847if test "${enable_shared+set}" = set; then
1848 enableval="$enable_shared"
1849 p=${PACKAGE-default}
1850 case $enableval in
1851 yes) enable_shared=yes ;;
1852 no) enable_shared=no ;;
1853 *)
1854 enable_shared=no
1855 # Look at the argument we got. We use all the common list separators.
1856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1857 for pkg in $enableval; do
1858 IFS="$lt_save_ifs"
1859 if test "X$pkg" = "X$p"; then
1860 enable_shared=yes
1861 fi
1862 done
1863 IFS="$lt_save_ifs"
1864 ;;
1865 esac
1866else
1867 enable_shared=yes
1868fi;
1961 1869
1870# Check whether --enable-static or --disable-static was given.
1871if test "${enable_static+set}" = set; then
1872 enableval="$enable_static"
1873 p=${PACKAGE-default}
1874 case $enableval in
1875 yes) enable_static=yes ;;
1876 no) enable_static=no ;;
1877 *)
1878 enable_static=no
1879 # Look at the argument we got. We use all the common list separators.
1880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1881 for pkg in $enableval; do
1882 IFS="$lt_save_ifs"
1883 if test "X$pkg" = "X$p"; then
1884 enable_static=yes
1885 fi
1886 done
1887 IFS="$lt_save_ifs"
1888 ;;
1889 esac
1890else
1891 enable_static=yes
1892fi;
1962 1893
1963macro_version='' 1894# Check whether --enable-fast-install or --disable-fast-install was given.
1964macro_revision='1.1467' 1895if test "${enable_fast_install+set}" = set; then
1965 1896 enableval="$enable_fast_install"
1966 1897 p=${PACKAGE-default}
1967 1898 case $enableval in
1968 1899 yes) enable_fast_install=yes ;;
1969 1900 no) enable_fast_install=no ;;
1970 1901 *)
1971 1902 enable_fast_install=no
1972 1903 # Look at the argument we got. We use all the common list separators.
1973 1904 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1974 1905 for pkg in $enableval; do
1975 1906 IFS="$lt_save_ifs"
1976 1907 if test "X$pkg" = "X$p"; then
1977case $ac_aux_dir in 1908 enable_fast_install=yes
1978 $srcdir) ltmain=./ltmain.sh ;; 1909 fi
1979 $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;; 1910 done
1980esac 1911 IFS="$lt_save_ifs"
1981test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh" 1912 ;;
1913 esac
1914else
1915 enable_fast_install=yes
1916fi;
1982 1917
1983# Make sure we can run config.sub. 1918# Make sure we can run config.sub.
1984$ac_config_sub sun4 >/dev/null 2>&1 || 1919$ac_config_sub sun4 >/dev/null 2>&1 ||
1985 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1920 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1986echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1921echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2030echo "${ECHO_T}$ac_cv_host" >&6 1965echo "${ECHO_T}$ac_cv_host" >&6
2031host=$ac_cv_host 1966host=$ac_cv_host
2032host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1967host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2033host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1968host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2034host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1969host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2035
2036
2037DEPDIR="${am__leading_dot}deps"
2038
2039 ac_config_commands="$ac_config_commands depfiles"
2040
2041
2042am_make=${MAKE-make}
2043cat > confinc << 'END'
2044am__doit:
2045 @echo done
2046.PHONY: am__doit
2047END
2048# If we don't find an include directive, just comment out the code.
2049echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2050echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2051am__include="#"
2052am__quote=
2053_am_result=none
2054# First try GNU make style include.
2055echo "include confinc" > confmf
2056# We grep out `Entering directory' and `Leaving directory'
2057# messages which can occur if `w' ends up in MAKEFLAGS.
2058# In particular we don't look at `^make:' because GNU make might
2059# be invoked under some other name (usually "gmake"), in which
2060# case it prints its new name instead of `make'.
2061if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2062 am__include=include
2063 am__quote=
2064 _am_result=GNU
2065fi
2066# Now try BSD make style include.
2067if test "$am__include" = "#"; then
2068 echo '.include "confinc"' > confmf
2069 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2070 am__include=.include
2071 am__quote="\""
2072 _am_result=BSD
2073 fi
2074fi
2075
2076
2077echo "$as_me:$LINENO: result: $_am_result" >&5
2078echo "${ECHO_T}$_am_result" >&6
2079rm -f confinc confmf
2080
2081# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2082if test "${enable_dependency_tracking+set}" = set; then
2083 enableval="$enable_dependency_tracking"
2084
2085fi;
2086if test "x$enable_dependency_tracking" != xno; then
2087 am_depcomp="$ac_aux_dir/depcomp"
2088 AMDEPBACKSLASH='\'
2089fi
2090
2091
2092if test "x$enable_dependency_tracking" != xno; then
2093 AMDEP_TRUE=
2094 AMDEP_FALSE='#'
2095else
2096 AMDEP_TRUE='#'
2097 AMDEP_FALSE=
2098fi
2099
2100 1970
2101 1971
2102ac_ext=c 1972ac_ext=c
2103ac_cpp='$CPP $CPPFLAGS' 1973ac_cpp='$CPP $CPPFLAGS'
2104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020ac_ext=c 2890ac_ext=c
3021ac_cpp='$CPP $CPPFLAGS' 2891ac_cpp='$CPP $CPPFLAGS'
3022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024ac_compiler_gnu=$ac_cv_c_compiler_gnu 2894ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025
3026depcc="$CC" am_compiler_list=
3027
3028echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3029echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3030if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032else
3033 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3034 # We make a subdir and do the tests there. Otherwise we can end up
3035 # making bogus files that we don't know about and never remove. For
3036 # instance it was reported that on HP-UX the gcc test will end up
3037 # making a dummy file named `D' -- because `-MD' means `put the output
3038 # in D'.
3039 mkdir conftest.dir
3040 # Copy depcomp to subdir because otherwise we won't find it if we're
3041 # using a relative directory.
3042 cp "$am_depcomp" conftest.dir
3043 cd conftest.dir
3044 # We will build objects and dependencies in a subdirectory because
3045 # it helps to detect inapplicable dependency modes. For instance
3046 # both Tru64's cc and ICC support -MD to output dependencies as a
3047 # side effect of compilation, but ICC will put the dependencies in
3048 # the current directory while Tru64 will put them in the object
3049 # directory.
3050 mkdir sub
3051
3052 am_cv_CC_dependencies_compiler_type=none
3053 if test "$am_compiler_list" = ""; then
3054 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3055 fi
3056 for depmode in $am_compiler_list; do
3057 # Setup a source with many dependencies, because some compilers
3058 # like to wrap large dependency lists on column 80 (with \), and
3059 # we should not choose a depcomp mode which is confused by this.
3060 #
3061 # We need to recreate these files for each test, as the compiler may
3062 # overwrite some of them when testing with obscure command lines.
3063 # This happens at least with the AIX C compiler.
3064 : > sub/conftest.c
3065 for i in 1 2 3 4 5 6; do
3066 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3067 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3068 # Solaris 8's {/usr,}/bin/sh.
3069 touch sub/conftst$i.h
3070 done
3071 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3072
3073 case $depmode in
3074 nosideeffect)
3075 # after this tag, mechanisms are not by side-effect, so they'll
3076 # only be used when explicitly requested
3077 if test "x$enable_dependency_tracking" = xyes; then
3078 continue
3079 else
3080 break
3081 fi
3082 ;;
3083 none) break ;;
3084 esac
3085 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3086 # mode. It turns out that the SunPro C++ compiler does not properly
3087 # handle `-M -o', and we need to detect this.
3088 if depmode=$depmode \
3089 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3091 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3092 >/dev/null 2>conftest.err &&
3093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3094 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3096 # icc doesn't choke on unknown options, it will just issue warnings
3097 # or remarks (even with -Werror). So we grep stderr for any message
3098 # that says an option was ignored or not supported.
3099 # When given -MP, icc 7.0 and 7.1 complain thusly:
3100 # icc: Command line warning: ignoring option '-M'; no argument required
3101 # The diagnosis changed in icc 8.0:
3102 # icc: Command line remark: option '-MP' not supported
3103 if (grep 'ignoring option' conftest.err ||
3104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3105 am_cv_CC_dependencies_compiler_type=$depmode
3106 break
3107 fi
3108 fi
3109 done
3110
3111 cd ..
3112 rm -rf conftest.dir
3113else
3114 am_cv_CC_dependencies_compiler_type=none
3115fi
3116
3117fi
3118echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3119echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3120CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3121
3122
3123
3124if
3125 test "x$enable_dependency_tracking" != xno \
3126 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3127 am__fastdepCC_TRUE=
3128 am__fastdepCC_FALSE='#'
3129else
3130 am__fastdepCC_TRUE='#'
3131 am__fastdepCC_FALSE=
3132fi
3133
3134 2895
3135echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 2896echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3136echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 2897echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3137if test "${lt_cv_path_SED+set}" = set; then 2898if test "${lt_cv_path_SED+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6 2899 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 fi 2943 fi
3183 done 2944 done
3184done 2945done
3185SED=$lt_cv_path_SED 2946SED=$lt_cv_path_SED
3186 2947
3187
3188fi 2948fi
3189 2949
3190echo "$as_me:$LINENO: result: $SED" >&5 2950echo "$as_me:$LINENO: result: $SED" >&5
3191echo "${ECHO_T}$SED" >&6 2951echo "${ECHO_T}$SED" >&6
3192
3193test -z "$SED" && SED=sed
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204 2952
3205echo "$as_me:$LINENO: checking for egrep" >&5 2953echo "$as_me:$LINENO: checking for egrep" >&5
3206echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2954echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3207if test "${ac_cv_prog_egrep+set}" = set; then 2955if test "${ac_cv_prog_egrep+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6 2956 echo $ECHO_N "(cached) $ECHO_C" >&6
3216echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2964echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3217 EGREP=$ac_cv_prog_egrep 2965 EGREP=$ac_cv_prog_egrep
3218 2966
3219 2967
3220 2968
3221test -z "$GREP" && GREP=grep
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234# Check whether --with-gnu-ld or --without-gnu-ld was given. 2969# Check whether --with-gnu-ld or --without-gnu-ld was given.
3235if test "${with_gnu_ld+set}" = set; then 2970if test "${with_gnu_ld+set}" = set; then
3236 withval="$with_gnu_ld" 2971 withval="$with_gnu_ld"
3237 test "$withval" = no || with_gnu_ld=yes 2972 test "$withval" = no || with_gnu_ld=yes
3238else 2973else
3239 with_gnu_ld=no 2974 with_gnu_ld=no
3240fi; 2975fi;
3241
3242ac_prog=ld 2976ac_prog=ld
3243if test "$GCC" = yes; then 2977if test "$GCC" = yes; then
3244 # Check if gcc -print-prog-name=ld gives a path. 2978 # Check if gcc -print-prog-name=ld gives a path.
3245 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 2979 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3246echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 2980echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3255 # Accept absolute paths. 2989 # Accept absolute paths.
3256 [\\/]* | ?:[\\/]*) 2990 [\\/]* | ?:[\\/]*)
3257 re_direlt='/[^/][^/]*/\.\./' 2991 re_direlt='/[^/][^/]*/\.\./'
3258 # Canonicalize the pathname of ld 2992 # Canonicalize the pathname of ld
3259 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2993 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3260 while echo $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do 2994 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3261 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 2995 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3262 done 2996 done
3263 test -z "$LD" && LD="$ac_prog" 2997 test -z "$LD" && LD="$ac_prog"
3264 ;; 2998 ;;
3265 "") 2999 "")
3336echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3070echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3337echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3071echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3338with_gnu_ld=$lt_cv_prog_gnu_ld 3072with_gnu_ld=$lt_cv_prog_gnu_ld
3339 3073
3340 3074
3341
3342
3343
3344
3345
3346
3347
3348echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3075echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3349echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3076echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3350if test "${lt_cv_ld_reload_flag+set}" = set; then 3077if test "${lt_cv_ld_reload_flag+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6 3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3352else 3079else
3358case $reload_flag in 3085case $reload_flag in
3359"" | " "*) ;; 3086"" | " "*) ;;
3360*) reload_flag=" $reload_flag" ;; 3087*) reload_flag=" $reload_flag" ;;
3361esac 3088esac
3362reload_cmds='$LD$reload_flag -o $output$reload_objs' 3089reload_cmds='$LD$reload_flag -o $output$reload_objs'
3363case $host_os in
3364 darwin*)
3365 if test "$GCC" = yes; then
3366 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3367 else
3368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3369 fi
3370 ;;
3371esac
3372
3373
3374
3375
3376
3377
3378
3379
3380 3090
3381echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3091echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3382echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3092echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3383if test "${lt_cv_path_NM+set}" = set; then 3093if test "${lt_cv_path_NM+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6 3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3421fi 3131fi
3422fi 3132fi
3423echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3133echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3424echo "${ECHO_T}$lt_cv_path_NM" >&6 3134echo "${ECHO_T}$lt_cv_path_NM" >&6
3425NM="$lt_cv_path_NM" 3135NM="$lt_cv_path_NM"
3426test -z "$NM" && NM=nm
3427
3428
3429
3430
3431
3432 3136
3433echo "$as_me:$LINENO: checking whether ln -s works" >&5 3137echo "$as_me:$LINENO: checking whether ln -s works" >&5
3434echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3138echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3435LN_S=$as_ln_s 3139LN_S=$as_ln_s
3436if test "$LN_S" = "ln -s"; then 3140if test "$LN_S" = "ln -s"; then
3438echo "${ECHO_T}yes" >&6 3142echo "${ECHO_T}yes" >&6
3439else 3143else
3440 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3144 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3441echo "${ECHO_T}no, using $LN_S" >&6 3145echo "${ECHO_T}no, using $LN_S" >&6
3442fi 3146fi
3443
3444 3147
3445echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3148echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3446echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3149echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3447if test "${lt_cv_deplibs_check_method+set}" = set; then 3150if test "${lt_cv_deplibs_check_method+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6 3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 # func_win32_libid is a shell function defined in ltmain.sh 3183 # func_win32_libid is a shell function defined in ltmain.sh
3481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3482 lt_cv_file_magic_cmd='func_win32_libid' 3185 lt_cv_file_magic_cmd='func_win32_libid'
3483 ;; 3186 ;;
3484 3187
3188mingw* | pw32*)
3485 # Base MSYS/MinGW do not provide the 'file' command needed by 3189 # Base MSYS/MinGW do not provide the 'file' command needed by
3486 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3190 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3487mingw* | pw32*)
3488 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3191 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3489 lt_cv_file_magic_cmd='$OBJDUMP -f' 3192 lt_cv_file_magic_cmd='$OBJDUMP -f'
3490 ;; 3193 ;;
3491 3194
3492darwin* | rhapsody*) 3195darwin* | rhapsody*)
3493 lt_cv_deplibs_check_method=pass_all 3196 lt_cv_deplibs_check_method=pass_all
3494 ;; 3197 ;;
3495 3198
3496freebsd* | kfreebsd*-gnu) 3199freebsd* | kfreebsd*-gnu)
3497 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3200 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3498 case $host_cpu in 3201 case $host_cpu in
3499 i*86 ) 3202 i*86 )
3500 # Not sure whether the presence of OpenBSD here was a mistake. 3203 # Not sure whether the presence of OpenBSD here was a mistake.
3501 # Let's accept both of them until this is cleared up. 3204 # Let's accept both of them until this is cleared up.
3502 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3205 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3541 lt_cv_deplibs_check_method=pass_all 3244 lt_cv_deplibs_check_method=pass_all
3542 ;; 3245 ;;
3543 3246
3544# This must be Linux ELF. 3247# This must be Linux ELF.
3545linux*) 3248linux*)
3546 case $host_cpu in
3547 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3548 lt_cv_deplibs_check_method=pass_all ;;
3549 *)
3550 # glibc up to 2.1.1 does not perform some relocations on ARM
3551 # this will be overridden with pass_all, but let us keep it just in case
3552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3553 esac
3554 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3555 lt_cv_deplibs_check_method=pass_all 3249 lt_cv_deplibs_check_method=pass_all
3556 ;; 3250 ;;
3557 3251
3558netbsd* | knetbsd*-gnu) 3252netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3253 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3561 else 3255 else
3562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3563 fi 3257 fi
3564 ;; 3258 ;;
3574 ;; 3268 ;;
3575 3269
3576openbsd*) 3270openbsd*)
3577 lt_cv_file_magic_cmd=/usr/bin/file 3271 lt_cv_file_magic_cmd=/usr/bin/file
3578 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3581 else 3275 else
3582 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3276 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3583 fi 3277 fi
3584 ;; 3278 ;;
3632test -z "$deplibs_check_method" && deplibs_check_method=unknown 3326test -z "$deplibs_check_method" && deplibs_check_method=unknown
3633 3327
3634 3328
3635 3329
3636 3330
3637
3638
3639
3640
3641
3642
3643
3644
3645if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3647set dummy ${ac_tool_prefix}ar; ac_word=$2
3648echo "$as_me:$LINENO: checking for $ac_word" >&5
3649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650if test "${ac_cv_prog_AR+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653 if test -n "$AR"; then
3654 ac_cv_prog_AR="$AR" # Let the user override the test.
3655else
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_AR="${ac_tool_prefix}ar"
3664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667done
3668done
3669
3670fi
3671fi
3672AR=$ac_cv_prog_AR
3673if test -n "$AR"; then
3674 echo "$as_me:$LINENO: result: $AR" >&5
3675echo "${ECHO_T}$AR" >&6
3676else
3677 echo "$as_me:$LINENO: result: no" >&5
3678echo "${ECHO_T}no" >&6
3679fi
3680
3681fi
3682if test -z "$ac_cv_prog_AR"; then
3683 ac_ct_AR=$AR
3684 # Extract the first word of "ar", so it can be a program name with args.
3685set dummy ar; ac_word=$2
3686echo "$as_me:$LINENO: checking for $ac_word" >&5
3687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
3691 if test -n "$ac_ct_AR"; then
3692 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_AR="ar"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706done
3707
3708 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
3709fi
3710fi
3711ac_ct_AR=$ac_cv_prog_ac_ct_AR
3712if test -n "$ac_ct_AR"; then
3713 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3714echo "${ECHO_T}$ac_ct_AR" >&6
3715else
3716 echo "$as_me:$LINENO: result: no" >&5
3717echo "${ECHO_T}no" >&6
3718fi
3719
3720 AR=$ac_ct_AR
3721else
3722 AR="$ac_cv_prog_AR"
3723fi
3724
3725test -z "$AR" && AR=ar
3726test -z "$AR_FLAGS" && AR_FLAGS=cru
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738if test -n "$ac_tool_prefix"; then
3739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3740set dummy ${ac_tool_prefix}strip; ac_word=$2
3741echo "$as_me:$LINENO: checking for $ac_word" >&5
3742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743if test "${ac_cv_prog_STRIP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
3746 if test -n "$STRIP"; then
3747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3748else
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760done
3761done
3762
3763fi
3764fi
3765STRIP=$ac_cv_prog_STRIP
3766if test -n "$STRIP"; then
3767 echo "$as_me:$LINENO: result: $STRIP" >&5
3768echo "${ECHO_T}$STRIP" >&6
3769else
3770 echo "$as_me:$LINENO: result: no" >&5
3771echo "${ECHO_T}no" >&6
3772fi
3773
3774fi
3775if test -z "$ac_cv_prog_STRIP"; then
3776 ac_ct_STRIP=$STRIP
3777 # Extract the first word of "strip", so it can be a program name with args.
3778set dummy strip; ac_word=$2
3779echo "$as_me:$LINENO: checking for $ac_word" >&5
3780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3781if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 if test -n "$ac_ct_STRIP"; then
3785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3786else
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_ac_ct_STRIP="strip"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798done
3799done
3800
3801 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3802fi
3803fi
3804ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3805if test -n "$ac_ct_STRIP"; then
3806 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3807echo "${ECHO_T}$ac_ct_STRIP" >&6
3808else
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811fi
3812
3813 STRIP=$ac_ct_STRIP
3814else
3815 STRIP="$ac_cv_prog_STRIP"
3816fi
3817
3818test -z "$STRIP" && STRIP=:
3819
3820
3821
3822
3823
3824
3825if test -n "$ac_tool_prefix"; then
3826 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3827set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3828echo "$as_me:$LINENO: checking for $ac_word" >&5
3829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830if test "${ac_cv_prog_RANLIB+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 if test -n "$RANLIB"; then
3834 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847done
3848done
3849
3850fi
3851fi
3852RANLIB=$ac_cv_prog_RANLIB
3853if test -n "$RANLIB"; then
3854 echo "$as_me:$LINENO: result: $RANLIB" >&5
3855echo "${ECHO_T}$RANLIB" >&6
3856else
3857 echo "$as_me:$LINENO: result: no" >&5
3858echo "${ECHO_T}no" >&6
3859fi
3860
3861fi
3862if test -z "$ac_cv_prog_RANLIB"; then
3863 ac_ct_RANLIB=$RANLIB
3864 # Extract the first word of "ranlib", so it can be a program name with args.
3865set dummy ranlib; ac_word=$2
3866echo "$as_me:$LINENO: checking for $ac_word" >&5
3867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 if test -n "$ac_ct_RANLIB"; then
3872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_ac_ct_RANLIB="ranlib"
3882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885done
3886done
3887
3888 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3889fi
3890fi
3891ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3892if test -n "$ac_ct_RANLIB"; then
3893 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3894echo "${ECHO_T}$ac_ct_RANLIB" >&6
3895else
3896 echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6
3898fi
3899
3900 RANLIB=$ac_ct_RANLIB
3901else
3902 RANLIB="$ac_cv_prog_RANLIB"
3903fi
3904
3905test -z "$RANLIB" && RANLIB=:
3906
3907
3908
3909
3910
3911
3912# Determine commands to create old-style static archives.
3913old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3914old_postinstall_cmds='chmod 644 $oldlib'
3915old_postuninstall_cmds=
3916
3917if test -n "$RANLIB"; then
3918 case $host_os in
3919 openbsd*)
3920 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3921 ;;
3922 *)
3923 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3924 ;;
3925 esac
3926 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3927fi
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944# find the maximum length of command line arguments
3945echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3946echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3947if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949else
3950 i=0
3951 teststring="ABCD"
3952
3953 case $build_os in
3954 msdosdjgpp*)
3955 # On DJGPP, this test can blow up pretty badly due to problems in libc
3956 # (any single argument exceeding 2000 bytes causes a buffer overrun
3957 # during glob expansion). Even if it were fixed, the result of this
3958 # check would be larger than it should be.
3959 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3960 ;;
3961
3962 gnu*)
3963 # Under GNU Hurd, this test is not required because there is
3964 # no limit to the length of command line arguments.
3965 # Libtool will interpret -1 as no limit whatsoever
3966 lt_cv_sys_max_cmd_len=-1;
3967 ;;
3968
3969 cygwin* | mingw*)
3970 # On Win9x/ME, this test blows up -- it succeeds, but takes
3971 # about 5 minutes as the teststring grows exponentially.
3972 # Worse, since 9x/ME are not pre-emptively multitasking,
3973 # you end up with a "frozen" computer, even though with patience
3974 # the test eventually succeeds (with a max line length of 256k).
3975 # Instead, let's just punt: use the minimum linelength reported by
3976 # all of the supported platforms: 8192 (on NT/2K/XP).
3977 lt_cv_sys_max_cmd_len=8192;
3978 ;;
3979
3980 amigaos*)
3981 # On AmigaOS with pdksh, this test takes hours, literally.
3982 # So we just punt and use a minimum line length of 8192.
3983 lt_cv_sys_max_cmd_len=8192;
3984 ;;
3985
3986 *)
3987 # Make teststring a little bigger before we do anything with it.
3988 # a 1K string should be a reasonable start.
3989 for i in 1 2 3 4 5 6 7 8 ; do
3990 teststring=$teststring$teststring
3991 done
3992 # If test is not a shell built-in, we'll probably end up computing a
3993 # maximum length that is only half of the actual maximum length, but
3994 # we can't tell.
3995 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3996 = "XX$teststring$teststring") >/dev/null 2>&1 &&
3997 test $i != 17 # 1/2 MB should be enough
3998 do
3999 i=`expr $i + 1`
4000 teststring=$teststring$teststring
4001 done
4002 # Only check the string length outside the loop.
4003 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4004 teststring=
4005 # Add a significant safety factor because C++ compilers can tack on massive
4006 # amounts of additional arguments before passing them to the linker.
4007 # It appears as though 1/2 is a usable value.
4008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4009 ;;
4010 esac
4011
4012fi
4013
4014if test -n $lt_cv_sys_max_cmd_len ; then
4015 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4016echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4017else
4018 echo "$as_me:$LINENO: result: none" >&5
4019echo "${ECHO_T}none" >&6
4020fi
4021
4022
4023
4024
4025
4026
4027
4028# Check for command to grab the raw symbol name followed by C symbol from nm.
4029echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4030echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4031if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034
4035# These are sane defaults that work on at least a few old systems.
4036# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4037
4038# Character class describing NM global symbol codes.
4039symcode='[BCDEGRST]'
4040
4041# Regexp to match symbols that can be accessed directly from C.
4042sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4043
4044# Transform the above into a raw symbol and a C symbol.
4045symxfrm='\1 \2\3 \3'
4046
4047# Transform an extracted symbol line into a proper C declaration
4048lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4049
4050# Transform an extracted symbol line into symbol name and symbol address
4051lt_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'"
4052
4053# Define system-specific variables.
4054case $host_os in
4055aix*)
4056 symcode='[BCDT]'
4057 ;;
4058cygwin* | mingw* | pw32*)
4059 symcode='[ABCDGISTW]'
4060 ;;
4061hpux*) # Its linker distinguishes data from code symbols
4062 if test "$host_cpu" = ia64; then
4063 symcode='[ABCDEGRST]'
4064 fi
4065 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4066 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'"
4067 ;;
4068irix* | nonstopux*)
4069 symcode='[BCDEGRST]'
4070 ;;
4071osf*)
4072 symcode='[BCDEGQRST]'
4073 ;;
4074solaris* | sysv5*)
4075 symcode='[BDRT]'
4076 ;;
4077sysv4)
4078 symcode='[DFNSTU]'
4079 ;;
4080esac
4081
4082# Handle CRLF in mingw tool chain
4083opt_cr=
4084case $build_os in
4085mingw*)
4086 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4087 ;;
4088esac
4089
4090# If we're using GNU nm, then use its standard symbol codes.
4091case `$NM -V 2>&1` in
4092*GNU* | *'with BFD'*)
4093 symcode='[ABCDGIRSTW]' ;;
4094esac
4095
4096# Try without a prefix undercore, then with it.
4097for ac_symprfx in "" "_"; do
4098
4099 # Write the raw and C identifiers.
4100 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4101
4102 # Check to see that the pipe works correctly.
4103 pipe_works=no
4104
4105 rm -f conftest*
4106 cat > conftest.$ac_ext <<_LT_EOF
4107#ifdef __cplusplus
4108extern "C" {
4109#endif
4110char nm_test_var;
4111void nm_test_func(){}
4112#ifdef __cplusplus
4113}
4114#endif
4115int main(){nm_test_var='a';nm_test_func();return(0);}
4116_LT_EOF
4117
4118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; then
4123 # Now try to grab the symbols.
4124 nlist=conftest.nm
4125 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4126 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } && test -s "$nlist"; then
4130 # Try sorting and uniquifying the output.
4131 if sort "$nlist" | uniq > "$nlist"T; then
4132 mv -f "$nlist"T "$nlist"
4133 else
4134 rm -f "$nlist"T
4135 fi
4136
4137 # Make sure that we snagged all the symbols we need.
4138 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4139 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4140 cat <<_LT_EOF > conftest.$ac_ext
4141#ifdef __cplusplus
4142extern "C" {
4143#endif
4144
4145_LT_EOF
4146 # Now generate the symbol file.
4147 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4148
4149 cat <<_LT_EOF >> conftest.$ac_ext
4150#if defined (__STDC__) && __STDC__
4151# define lt_ptr_t void *
4152#else
4153# define lt_ptr_t char *
4154# define const
4155#endif
4156
4157/* The mapping between symbol names and symbols. */
4158const struct {
4159 const char *name;
4160 lt_ptr_t address;
4161}
4162lt_preloaded_symbols[] =
4163{
4164_LT_EOF
4165 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4166 cat <<\_LT_EOF >> conftest.$ac_ext
4167 {0, (lt_ptr_t) 0}
4168};
4169
4170#ifdef __cplusplus
4171}
4172#endif
4173_LT_EOF
4174 # Now try linking the two files.
4175 mv conftest.$ac_objext conftstm.$ac_objext
4176 lt_save_LIBS="$LIBS"
4177 lt_save_CFLAGS="$CFLAGS"
4178 LIBS="conftstm.$ac_objext"
4179 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4181 (eval $ac_link) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4185 pipe_works=yes
4186 fi
4187 LIBS="$lt_save_LIBS"
4188 CFLAGS="$lt_save_CFLAGS"
4189 else
4190 echo "cannot find nm_test_func in $nlist" >&5
4191 fi
4192 else
4193 echo "cannot find nm_test_var in $nlist" >&5
4194 fi
4195 else
4196 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4197 fi
4198 else
4199 echo "$progname: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 fi
4202 rm -f conftest* conftst*
4203
4204 # Do not use the global_symbol_pipe unless it works.
4205 if test "$pipe_works" = yes; then
4206 break
4207 else
4208 lt_cv_sys_global_symbol_pipe=
4209 fi
4210done
4211
4212fi
4213
4214if test -z "$lt_cv_sys_global_symbol_pipe"; then
4215 lt_cv_sys_global_symbol_to_cdecl=
4216fi
4217if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4218 echo "$as_me:$LINENO: result: failed" >&5
4219echo "${ECHO_T}failed" >&6
4220else
4221 echo "$as_me:$LINENO: result: ok" >&5
4222echo "${ECHO_T}ok" >&6
4223fi
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258# If no C compiler was specified, use CC. 3331# If no C compiler was specified, use CC.
4259LTCC=${LTCC-"$CC"} 3332LTCC=${LTCC-"$CC"}
4260 3333
4261# Allow CC to be a program name with arguments. 3334# Allow CC to be a program name with arguments.
4262compiler=$CC 3335compiler=$CC
4291 fi 3364 fi
4292 rm -rf conftest* 3365 rm -rf conftest*
4293 ;; 3366 ;;
4294*-*-irix6*) 3367*-*-irix6*)
4295 # Find out which ABI we are using. 3368 # Find out which ABI we are using.
4296 echo '#line 4296 "configure"' > conftest.$ac_ext 3369 echo '#line 3369 "configure"' > conftest.$ac_ext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>&5 3371 (eval $ac_compile) 2>&5
4299 ac_status=$? 3372 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; then 3374 (exit $ac_status); }; then
4446 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3519 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3520 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4448 CFLAGS="$SAVE_CFLAGS" 3521 CFLAGS="$SAVE_CFLAGS"
4449 fi 3522 fi
4450 ;; 3523 ;;
3524
4451esac 3525esac
4452 3526
4453need_locks="$enable_libtool_lock" 3527need_locks="$enable_libtool_lock"
3528
4454 3529
4455ac_ext=c 3530ac_ext=c
4456ac_cpp='$CPP $CPPFLAGS' 3531ac_cpp='$CPP $CPPFLAGS'
4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 4000
4926 4001
4927for ac_header in dlfcn.h 4002for ac_header in dlfcn.h
4928do 4003do
4929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4005if eval "test \"\${$as_ac_Header+set}\" = set"; then
4006 echo "$as_me:$LINENO: checking for $ac_header" >&5
4007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4008if eval "test \"\${$as_ac_Header+set}\" = set"; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010fi
4011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4013else
4014 # Is the header compilable?
4015echo "$as_me:$LINENO: checking $ac_header usability" >&5
4016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4017cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023$ac_includes_default
4024#include <$ac_header>
4025_ACEOF
4026rm -f conftest.$ac_objext
4027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 ac_header_compiler=yes
4048else
4049 echo "$as_me: failed program was:" >&5
4050sed 's/^/| /' conftest.$ac_ext >&5
4051
4052ac_header_compiler=no
4053fi
4054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4056echo "${ECHO_T}$ac_header_compiler" >&6
4057
4058# Is the header present?
4059echo "$as_me:$LINENO: checking $ac_header presence" >&5
4060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4061cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h. */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h. */
4067#include <$ac_header>
4068_ACEOF
4069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } >/dev/null; then
4077 if test -s conftest.err; then
4078 ac_cpp_err=$ac_c_preproc_warn_flag
4079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4080 else
4081 ac_cpp_err=
4082 fi
4083else
4084 ac_cpp_err=yes
4085fi
4086if test -z "$ac_cpp_err"; then
4087 ac_header_preproc=yes
4088else
4089 echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 ac_header_preproc=no
4093fi
4094rm -f conftest.err conftest.$ac_ext
4095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4096echo "${ECHO_T}$ac_header_preproc" >&6
4097
4098# So? What about this header?
4099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4100 yes:no: )
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4105 ac_header_preproc=yes
4106 ;;
4107 no:yes:* )
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4120 (
4121 cat <<\_ASBOX
4122## ----------------------------------------------------- ##
4123## Report this to crossfire-devel@listserv.real-time.com ##
4124## ----------------------------------------------------- ##
4125_ASBOX
4126 ) |
4127 sed "s/^/$as_me: WARNING: /" >&2
4128 ;;
4129esac
4930echo "$as_me:$LINENO: checking for $ac_header" >&5 4130echo "$as_me:$LINENO: checking for $ac_header" >&5
4931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4932if eval "test \"\${$as_ac_Header+set}\" = set"; then 4132if eval "test \"\${$as_ac_Header+set}\" = set"; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6 4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4934else 4134else
4135 eval "$as_ac_Header=\$ac_header_preproc"
4136fi
4137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4139
4140fi
4141if test `eval echo '${'$as_ac_Header'}'` = yes; then
4142 cat >>confdefs.h <<_ACEOF
4143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4144_ACEOF
4145
4146fi
4147
4148done
4149
4150ac_ext=cc
4151ac_cpp='$CXXCPP $CPPFLAGS'
4152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4155if test -n "$ac_tool_prefix"; then
4156 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4157 do
4158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4160echo "$as_me:$LINENO: checking for $ac_word" >&5
4161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4162if test "${ac_cv_prog_CXX+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
4165 if test -n "$CXX"; then
4166 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4167else
4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH
4170do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179done
4180done
4181
4182fi
4183fi
4184CXX=$ac_cv_prog_CXX
4185if test -n "$CXX"; then
4186 echo "$as_me:$LINENO: result: $CXX" >&5
4187echo "${ECHO_T}$CXX" >&6
4188else
4189 echo "$as_me:$LINENO: result: no" >&5
4190echo "${ECHO_T}no" >&6
4191fi
4192
4193 test -n "$CXX" && break
4194 done
4195fi
4196if test -z "$CXX"; then
4197 ac_ct_CXX=$CXX
4198 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4199do
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201set dummy $ac_prog; ac_word=$2
4202echo "$as_me:$LINENO: checking for $ac_word" >&5
4203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207 if test -n "$ac_ct_CXX"; then
4208 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4209else
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_CXX="$ac_prog"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4220 fi
4221done
4222done
4223
4224fi
4225fi
4226ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4227if test -n "$ac_ct_CXX"; then
4228 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4229echo "${ECHO_T}$ac_ct_CXX" >&6
4230else
4231 echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6
4233fi
4234
4235 test -n "$ac_ct_CXX" && break
4236done
4237test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4238
4239 CXX=$ac_ct_CXX
4240fi
4241
4242
4243# Provide some information about the compiler.
4244echo "$as_me:$LINENO:" \
4245 "checking for C++ compiler version" >&5
4246ac_compiler=`set X $ac_compile; echo $2`
4247{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4248 (eval $ac_compiler --version </dev/null >&5) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }
4252{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4253 (eval $ac_compiler -v </dev/null >&5) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }
4257{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4258 (eval $ac_compiler -V </dev/null >&5) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }
4262
4263echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4264echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4265if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4935 cat >conftest.$ac_ext <<_ACEOF 4268 cat >conftest.$ac_ext <<_ACEOF
4936/* confdefs.h. */ 4269/* confdefs.h. */
4937_ACEOF 4270_ACEOF
4938cat confdefs.h >>conftest.$ac_ext 4271cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF 4272cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h. */ 4273/* end confdefs.h. */
4941$ac_includes_default
4942 4274
4943#include <$ac_header> 4275int
4276main ()
4277{
4278#ifndef __GNUC__
4279 choke me
4280#endif
4281
4282 ;
4283 return 0;
4284}
4944_ACEOF 4285_ACEOF
4945rm -f conftest.$ac_objext 4286rm -f conftest.$ac_objext
4946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1 4288 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$? 4289 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err 4290 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1 4291 rm -f conftest.er1
4951 cat conftest.err >&5 4292 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } && 4294 (exit $ac_status); } &&
4954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5 4297 (eval $ac_try) 2>&5
4957 ac_status=$? 4298 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } && 4300 (exit $ac_status); }; } &&
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5 4303 (eval $ac_try) 2>&5
4963 ac_status=$? 4304 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then 4306 (exit $ac_status); }; }; then
4966 eval "$as_ac_Header=yes" 4307 ac_compiler_gnu=yes
4967else 4308else
4968 echo "$as_me: failed program was:" >&5 4309 echo "$as_me: failed program was:" >&5
4969sed 's/^/| /' conftest.$ac_ext >&5 4310sed 's/^/| /' conftest.$ac_ext >&5
4970 4311
4971eval "$as_ac_Header=no" 4312ac_compiler_gnu=no
4972fi 4313fi
4973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4316
4974fi 4317fi
4975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4318echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4319echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4977if test `eval echo '${'$as_ac_Header'}'` = yes; then 4320GXX=`test $ac_compiler_gnu = yes && echo yes`
4321ac_test_CXXFLAGS=${CXXFLAGS+set}
4322ac_save_CXXFLAGS=$CXXFLAGS
4323CXXFLAGS="-g"
4324echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4325echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4326if test "${ac_cv_prog_cxx_g+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4978 cat >>confdefs.h <<_ACEOF 4329 cat >conftest.$ac_ext <<_ACEOF
4979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4330/* confdefs.h. */
4980_ACEOF 4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h. */
4981 4335
4982fi 4336int
4337main ()
4338{
4983 4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext
4345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_prog_cxx_g=yes
4366else
4367 echo "$as_me: failed program was:" >&5
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
4370ac_cv_prog_cxx_g=no
4371fi
4372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373fi
4374echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4375echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4376if test "$ac_test_CXXFLAGS" = set; then
4377 CXXFLAGS=$ac_save_CXXFLAGS
4378elif test $ac_cv_prog_cxx_g = yes; then
4379 if test "$GXX" = yes; then
4380 CXXFLAGS="-g -O2"
4381 else
4382 CXXFLAGS="-g"
4383 fi
4384else
4385 if test "$GXX" = yes; then
4386 CXXFLAGS="-O2"
4387 else
4388 CXXFLAGS=
4389 fi
4390fi
4391for ac_declaration in \
4392 '' \
4393 'extern "C" void std::exit (int) throw (); using std::exit;' \
4394 'extern "C" void std::exit (int); using std::exit;' \
4395 'extern "C" void exit (int) throw ();' \
4396 'extern "C" void exit (int);' \
4397 'void exit (int);'
4398do
4399 cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
4405$ac_declaration
4406#include <stdlib.h>
4407int
4408main ()
4409{
4410exit (42);
4411 ;
4412 return 0;
4413}
4414_ACEOF
4415rm -f conftest.$ac_objext
4416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; } &&
4430 { ac_try='test -s conftest.$ac_objext'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 :
4437else
4438 echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441continue
4442fi
4443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4444 cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450$ac_declaration
4451int
4452main ()
4453{
4454exit (42);
4455 ;
4456 return 0;
4457}
4458_ACEOF
4459rm -f conftest.$ac_objext
4460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461 (eval $ac_compile) 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest.$ac_objext'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 (eval $ac_try) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4480 break
4481else
4482 echo "$as_me: failed program was:" >&5
4483sed 's/^/| /' conftest.$ac_ext >&5
4484
4485fi
4486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4984done 4487done
4488rm -f conftest*
4489if test -n "$ac_declaration"; then
4490 echo '#ifdef __cplusplus' >>confdefs.h
4491 echo $ac_declaration >>confdefs.h
4492 echo '#endif' >>confdefs.h
4493fi
4985 4494
4495ac_ext=cc
4496ac_cpp='$CXXCPP $CPPFLAGS'
4497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4986 4500
4987# This can be used to rebuild libtool when needed 4501ac_ext=cc
4988LIBTOOL_DEPS="$ltmain" 4502ac_cpp='$CXXCPP $CPPFLAGS'
4503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4506echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4507echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4508if test -z "$CXXCPP"; then
4509 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512 # Double quotes because CXXCPP needs to be expanded
4513 for CXXCPP in "$CXX -E" "/lib/cpp"
4514 do
4515 ac_preproc_ok=false
4516for ac_cxx_preproc_warn_flag in '' yes
4517do
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat >conftest.$ac_ext <<_ACEOF
4525/* confdefs.h. */
4526_ACEOF
4527cat confdefs.h >>conftest.$ac_ext
4528cat >>conftest.$ac_ext <<_ACEOF
4529/* end confdefs.h. */
4530#ifdef __STDC__
4531# include <limits.h>
4532#else
4533# include <assert.h>
4534#endif
4535 Syntax error
4536_ACEOF
4537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev/null; then
4545 if test -s conftest.err; then
4546 ac_cpp_err=$ac_cxx_preproc_warn_flag
4547 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4548 else
4549 ac_cpp_err=
4550 fi
4551else
4552 ac_cpp_err=yes
4553fi
4554if test -z "$ac_cpp_err"; then
4555 :
4556else
4557 echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4989 4559
4990# Always use our own libtool. 4560 # Broken: fails on valid input.
4991LIBTOOL='$(SHELL) $(top_builddir)/libtool' 4561continue
4562fi
4563rm -f conftest.err conftest.$ac_ext
4992 4564
4993# Set options 4565 # OK, works on sane cases. Now check whether non-existent headers
4994enable_dlopen=no 4566 # can be detected and how.
4567 cat >conftest.$ac_ext <<_ACEOF
4568/* confdefs.h. */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
4572/* end confdefs.h. */
4573#include <ac_nonexistent.h>
4574_ACEOF
4575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } >/dev/null; then
4583 if test -s conftest.err; then
4584 ac_cpp_err=$ac_cxx_preproc_warn_flag
4585 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4586 else
4587 ac_cpp_err=
4588 fi
4589else
4590 ac_cpp_err=yes
4591fi
4592if test -z "$ac_cpp_err"; then
4593 # Broken: success on invalid input.
4594continue
4595else
4596 echo "$as_me: failed program was:" >&5
4597sed 's/^/| /' conftest.$ac_ext >&5
4995 4598
4996enable_win32_dll=no 4599 # Passes both tests.
4600ac_preproc_ok=:
4601break
4602fi
4603rm -f conftest.err conftest.$ac_ext
4997 4604
4998# Check whether --enable-shared or --disable-shared was given. 4605done
4606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607rm -f conftest.err conftest.$ac_ext
4608if $ac_preproc_ok; then
4609 break
4610fi
4611
4612 done
4613 ac_cv_prog_CXXCPP=$CXXCPP
4614
4615fi
4616 CXXCPP=$ac_cv_prog_CXXCPP
4617else
4618 ac_cv_prog_CXXCPP=$CXXCPP
4619fi
4620echo "$as_me:$LINENO: result: $CXXCPP" >&5
4621echo "${ECHO_T}$CXXCPP" >&6
4622ac_preproc_ok=false
4623for ac_cxx_preproc_warn_flag in '' yes
4624do
4625 # Use a header file that comes with gcc, so configuring glibc
4626 # with a fresh cross-compiler works.
4627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4628 # <limits.h> exists even on freestanding compilers.
4629 # On the NeXT, cc -E runs the code through the compiler's parser,
4630 # not just through cpp. "Syntax error" is here to catch this case.
4631 cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h. */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h. */
4637#ifdef __STDC__
4638# include <limits.h>
4639#else
4640# include <assert.h>
4641#endif
4642 Syntax error
4643_ACEOF
4644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4646 ac_status=$?
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } >/dev/null; then
4652 if test -s conftest.err; then
4653 ac_cpp_err=$ac_cxx_preproc_warn_flag
4654 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4655 else
4656 ac_cpp_err=
4657 fi
4658else
4659 ac_cpp_err=yes
4660fi
4661if test -z "$ac_cpp_err"; then
4662 :
4663else
4664 echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 # Broken: fails on valid input.
4668continue
4669fi
4670rm -f conftest.err conftest.$ac_ext
4671
4672 # OK, works on sane cases. Now check whether non-existent headers
4673 # can be detected and how.
4674 cat >conftest.$ac_ext <<_ACEOF
4675/* confdefs.h. */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h. */
4680#include <ac_nonexistent.h>
4681_ACEOF
4682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null; then
4690 if test -s conftest.err; then
4691 ac_cpp_err=$ac_cxx_preproc_warn_flag
4692 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4693 else
4694 ac_cpp_err=
4695 fi
4696else
4697 ac_cpp_err=yes
4698fi
4699if test -z "$ac_cpp_err"; then
4700 # Broken: success on invalid input.
4701continue
4702else
4703 echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 # Passes both tests.
4707ac_preproc_ok=:
4708break
4709fi
4710rm -f conftest.err conftest.$ac_ext
4711
4712done
4713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4714rm -f conftest.err conftest.$ac_ext
4715if $ac_preproc_ok; then
4716 :
4717else
4718 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4719See \`config.log' for more details." >&5
4720echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4721See \`config.log' for more details." >&2;}
4722 { (exit 1); exit 1; }; }
4723fi
4724
4725ac_ext=cc
4726ac_cpp='$CXXCPP $CPPFLAGS'
4727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4730
4731
4732ac_ext=f
4733ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4734ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4736if test -n "$ac_tool_prefix"; then
4737 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4738 do
4739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4741echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4999if test "${enable_shared+set}" = set; then 4743if test "${ac_cv_prog_F77+set}" = set; then
5000 enableval="$enable_shared" 4744 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 p=${PACKAGE-default} 4745else
5002 case $enableval in 4746 if test -n "$F77"; then
5003 yes) enable_shared=yes ;; 4747 ac_cv_prog_F77="$F77" # Let the user override the test.
5004 no) enable_shared=no ;; 4748else
5005 *) 4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 enable_shared=no 4750for as_dir in $PATH
5007 # Look at the argument we got. We use all the common list separators. 4751do
5008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4752 IFS=$as_save_IFS
5009 for pkg in $enableval; do 4753 test -z "$as_dir" && as_dir=.
5010 IFS="$lt_save_ifs" 4754 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if test "X$pkg" = "X$p"; then 4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 enable_shared=yes 4756 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762
4763fi
4764fi
4765F77=$ac_cv_prog_F77
4766if test -n "$F77"; then
4767 echo "$as_me:$LINENO: result: $F77" >&5
4768echo "${ECHO_T}$F77" >&6
4769else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi
4773
4774 test -n "$F77" && break
4775 done
4776fi
4777if test -z "$F77"; then
4778 ac_ct_F77=$F77
4779 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4780do
4781 # Extract the first word of "$ac_prog", so it can be a program name with args.
4782set dummy $ac_prog; ac_word=$2
4783echo "$as_me:$LINENO: checking for $ac_word" >&5
4784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 if test -n "$ac_ct_F77"; then
4789 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4790else
4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 ac_cv_prog_ac_ct_F77="$ac_prog"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802done
4803done
4804
4805fi
4806fi
4807ac_ct_F77=$ac_cv_prog_ac_ct_F77
4808if test -n "$ac_ct_F77"; then
4809 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4810echo "${ECHO_T}$ac_ct_F77" >&6
4811else
4812 echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6
4814fi
4815
4816 test -n "$ac_ct_F77" && break
4817done
4818
4819 F77=$ac_ct_F77
4820fi
4821
4822
4823# Provide some information about the compiler.
4824echo "$as_me:4824:" \
4825 "checking for Fortran 77 compiler version" >&5
4826ac_compiler=`set X $ac_compile; echo $2`
4827{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4828 (eval $ac_compiler --version </dev/null >&5) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }
4832{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4833 (eval $ac_compiler -v </dev/null >&5) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }
4837{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4838 (eval $ac_compiler -V </dev/null >&5) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }
4842rm -f a.out
4843
4844# If we don't use `.F' as extension, the preprocessor is not run on the
4845# input file. (Note that this only needs to work for GNU compilers.)
4846ac_save_ext=$ac_ext
4847ac_ext=F
4848echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4849echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4850if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 cat >conftest.$ac_ext <<_ACEOF
4854 program main
4855#ifndef __GNUC__
4856 choke me
4857#endif
4858
4859 end
4860_ACEOF
4861rm -f conftest.$ac_objext
4862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_compiler_gnu=yes
4883else
4884 echo "$as_me: failed program was:" >&5
4885sed 's/^/| /' conftest.$ac_ext >&5
4886
4887ac_compiler_gnu=no
4888fi
4889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4890ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4891
4892fi
4893echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4894echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4895ac_ext=$ac_save_ext
4896ac_test_FFLAGS=${FFLAGS+set}
4897ac_save_FFLAGS=$FFLAGS
4898FFLAGS=
4899echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4900echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4901if test "${ac_cv_prog_f77_g+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904 FFLAGS=-g
4905cat >conftest.$ac_ext <<_ACEOF
4906 program main
4907
4908 end
4909_ACEOF
4910rm -f conftest.$ac_objext
4911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_prog_f77_g=yes
4932else
4933 echo "$as_me: failed program was:" >&5
4934sed 's/^/| /' conftest.$ac_ext >&5
4935
4936ac_cv_prog_f77_g=no
4937fi
4938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4939
4940fi
4941echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4942echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4943if test "$ac_test_FFLAGS" = set; then
4944 FFLAGS=$ac_save_FFLAGS
4945elif test $ac_cv_prog_f77_g = yes; then
4946 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4947 FFLAGS="-g -O2"
4948 else
4949 FFLAGS="-g"
4950 fi
4951else
4952 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4953 FFLAGS="-O2"
4954 else
4955 FFLAGS=
4956 fi
4957fi
4958
4959G77=`test $ac_compiler_gnu = yes && echo yes`
4960ac_ext=c
4961ac_cpp='$CPP $CPPFLAGS'
4962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965
4966
4967
4968# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4969
4970# find the maximum length of command line arguments
4971echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4972echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4973if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975else
4976 i=0
4977 teststring="ABCD"
4978
4979 case $build_os in
4980 msdosdjgpp*)
4981 # On DJGPP, this test can blow up pretty badly due to problems in libc
4982 # (any single argument exceeding 2000 bytes causes a buffer overrun
4983 # during glob expansion). Even if it were fixed, the result of this
4984 # check would be larger than it should be.
4985 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4986 ;;
4987
4988 gnu*)
4989 # Under GNU Hurd, this test is not required because there is
4990 # no limit to the length of command line arguments.
4991 # Libtool will interpret -1 as no limit whatsoever
4992 lt_cv_sys_max_cmd_len=-1;
4993 ;;
4994
4995 cygwin* | mingw*)
4996 # On Win9x/ME, this test blows up -- it succeeds, but takes
4997 # about 5 minutes as the teststring grows exponentially.
4998 # Worse, since 9x/ME are not pre-emptively multitasking,
4999 # you end up with a "frozen" computer, even though with patience
5000 # the test eventually succeeds (with a max line length of 256k).
5001 # Instead, let's just punt: use the minimum linelength reported by
5002 # all of the supported platforms: 8192 (on NT/2K/XP).
5003 lt_cv_sys_max_cmd_len=8192;
5004 ;;
5005
5006 amigaos*)
5007 # On AmigaOS with pdksh, this test takes hours, literally.
5008 # So we just punt and use a minimum line length of 8192.
5009 lt_cv_sys_max_cmd_len=8192;
5010 ;;
5011
5012 *)
5013 # If test is not a shell built-in, we'll probably end up computing a
5014 # maximum length that is only half of the actual maximum length, but
5015 # we can't tell.
5016 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5017 = "XX$teststring") >/dev/null 2>&1 &&
5018 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5019 lt_cv_sys_max_cmd_len=$new_result &&
5020 test $i != 17 # 1/2 MB should be enough
5021 do
5022 i=`expr $i + 1`
5023 teststring=$teststring$teststring
5024 done
5025 teststring=
5026 # Add a significant safety factor because C++ compilers can tack on massive
5027 # amounts of additional arguments before passing them to the linker.
5028 # It appears as though 1/2 is a usable value.
5029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5030 ;;
5031 esac
5032
5033fi
5034
5035if test -n $lt_cv_sys_max_cmd_len ; then
5036 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5037echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5038else
5039 echo "$as_me:$LINENO: result: none" >&5
5040echo "${ECHO_T}none" >&6
5041fi
5042
5043
5044
5045
5046# Check for command to grab the raw symbol name followed by C symbol from nm.
5047echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5048echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5049if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052
5053# These are sane defaults that work on at least a few old systems.
5054# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5055
5056# Character class describing NM global symbol codes.
5057symcode='[BCDEGRST]'
5058
5059# Regexp to match symbols that can be accessed directly from C.
5060sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5061
5062# Transform the above into a raw symbol and a C symbol.
5063symxfrm='\1 \2\3 \3'
5064
5065# Transform an extracted symbol line into a proper C declaration
5066lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5067
5068# Transform an extracted symbol line into symbol name and symbol address
5069lt_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'"
5070
5071# Define system-specific variables.
5072case $host_os in
5073aix*)
5074 symcode='[BCDT]'
5075 ;;
5076cygwin* | mingw* | pw32*)
5077 symcode='[ABCDGISTW]'
5078 ;;
5079hpux*) # Its linker distinguishes data from code symbols
5080 if test "$host_cpu" = ia64; then
5081 symcode='[ABCDEGRST]'
5082 fi
5083 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5084 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'"
5085 ;;
5086irix* | nonstopux*)
5087 symcode='[BCDEGRST]'
5088 ;;
5089osf*)
5090 symcode='[BCDEGQRST]'
5091 ;;
5092solaris* | sysv5*)
5093 symcode='[BDRT]'
5094 ;;
5095sysv4)
5096 symcode='[DFNSTU]'
5097 ;;
5098esac
5099
5100# Handle CRLF in mingw tool chain
5101opt_cr=
5102case $build_os in
5103mingw*)
5104 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5105 ;;
5106esac
5107
5108# If we're using GNU nm, then use its standard symbol codes.
5109case `$NM -V 2>&1` in
5110*GNU* | *'with BFD'*)
5111 symcode='[ABCDGIRSTW]' ;;
5112esac
5113
5114# Try without a prefix undercore, then with it.
5115for ac_symprfx in "" "_"; do
5116
5117 # Write the raw and C identifiers.
5118 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5119
5120 # Check to see that the pipe works correctly.
5121 pipe_works=no
5122
5123 rm -f conftest*
5124 cat > conftest.$ac_ext <<EOF
5125#ifdef __cplusplus
5126extern "C" {
5127#endif
5128char nm_test_var;
5129void nm_test_func(){}
5130#ifdef __cplusplus
5131}
5132#endif
5133int main(){nm_test_var='a';nm_test_func();return(0);}
5134EOF
5135
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; then
5141 # Now try to grab the symbols.
5142 nlist=conftest.nm
5143 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5144 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && test -s "$nlist"; then
5148 # Try sorting and uniquifying the output.
5149 if sort "$nlist" | uniq > "$nlist"T; then
5150 mv -f "$nlist"T "$nlist"
5151 else
5152 rm -f "$nlist"T
5153 fi
5154
5155 # Make sure that we snagged all the symbols we need.
5156 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5157 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5158 cat <<EOF > conftest.$ac_ext
5159#ifdef __cplusplus
5160extern "C" {
5161#endif
5162
5163EOF
5164 # Now generate the symbol file.
5165 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5166
5167 cat <<EOF >> conftest.$ac_ext
5168#if defined (__STDC__) && __STDC__
5169# define lt_ptr_t void *
5170#else
5171# define lt_ptr_t char *
5172# define const
5173#endif
5174
5175/* The mapping between symbol names and symbols. */
5176const struct {
5177 const char *name;
5178 lt_ptr_t address;
5179}
5180lt_preloaded_symbols[] =
5181{
5182EOF
5183 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5184 cat <<\EOF >> conftest.$ac_ext
5185 {0, (lt_ptr_t) 0}
5186};
5187
5188#ifdef __cplusplus
5189}
5190#endif
5191EOF
5192 # Now try linking the two files.
5193 mv conftest.$ac_objext conftstm.$ac_objext
5194 lt_save_LIBS="$LIBS"
5195 lt_save_CFLAGS="$CFLAGS"
5196 LIBS="conftstm.$ac_objext"
5197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199 (eval $ac_link) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5203 pipe_works=yes
5204 fi
5205 LIBS="$lt_save_LIBS"
5206 CFLAGS="$lt_save_CFLAGS"
5207 else
5208 echo "cannot find nm_test_func in $nlist" >&5
5013 fi 5209 fi
5014 done 5210 else
5015 IFS="$lt_save_ifs" 5211 echo "cannot find nm_test_var in $nlist" >&5
5016 ;; 5212 fi
5017 esac 5213 else
5214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5215 fi
5018else 5216 else
5019 enable_shared=yes 5217 echo "$progname: failed program was:" >&5
5020fi; 5218 cat conftest.$ac_ext >&5
5219 fi
5220 rm -f conftest* conftst*
5021 5221
5022 5222 # Do not use the global_symbol_pipe unless it works.
5023 5223 if test "$pipe_works" = yes; then
5024 5224 break
5025
5026
5027
5028
5029# Check whether --enable-static or --disable-static was given.
5030if test "${enable_static+set}" = set; then
5031 enableval="$enable_static"
5032 p=${PACKAGE-default}
5033 case $enableval in
5034 yes) enable_static=yes ;;
5035 no) enable_static=no ;;
5036 *)
5037 enable_static=no
5038 # Look at the argument we got. We use all the common list separators.
5039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5040 for pkg in $enableval; do
5041 IFS="$lt_save_ifs"
5042 if test "X$pkg" = "X$p"; then
5043 enable_static=yes
5044 fi
5045 done
5046 IFS="$lt_save_ifs"
5047 ;;
5048 esac
5049else 5225 else
5050 enable_static=yes 5226 lt_cv_sys_global_symbol_pipe=
5227 fi
5228done
5229
5051fi; 5230fi
5052 5231
5053 5232if test -z "$lt_cv_sys_global_symbol_pipe"; then
5054 5233 lt_cv_sys_global_symbol_to_cdecl=
5055
5056
5057
5058
5059
5060
5061# Check whether --with-pic or --without-pic was given.
5062if test "${with_pic+set}" = set; then
5063 withval="$with_pic"
5064 pic_mode="$withval"
5065else
5066 pic_mode=default
5067fi; 5234fi
5068 5235if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5069test -z "$pic_mode" && pic_mode=default 5236 echo "$as_me:$LINENO: result: failed" >&5
5070 5237echo "${ECHO_T}failed" >&6
5071
5072
5073
5074
5075
5076
5077# Check whether --enable-fast-install or --disable-fast-install was given.
5078if test "${enable_fast_install+set}" = set; then
5079 enableval="$enable_fast_install"
5080 p=${PACKAGE-default}
5081 case $enableval in
5082 yes) enable_fast_install=yes ;;
5083 no) enable_fast_install=no ;;
5084 *)
5085 enable_fast_install=no
5086 # Look at the argument we got. We use all the common list separators.
5087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5088 for pkg in $enableval; do
5089 IFS="$lt_save_ifs"
5090 if test "X$pkg" = "X$p"; then
5091 enable_fast_install=yes
5092 fi
5093 done
5094 IFS="$lt_save_ifs"
5095 ;;
5096 esac
5097else 5238else
5098 enable_fast_install=yes 5239 echo "$as_me:$LINENO: result: ok" >&5
5099fi; 5240echo "${ECHO_T}ok" >&6
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116test -z "$LN_S" && LN_S="ln -s"
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131if test -n "${ZSH_VERSION+set}" ; then
5132 setopt NO_GLOB_SUBST
5133fi 5241fi
5134 5242
5135echo "$as_me:$LINENO: checking for objdir" >&5 5243echo "$as_me:$LINENO: checking for objdir" >&5
5136echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5244echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5137if test "${lt_cv_objdir+set}" = set; then 5245if test "${lt_cv_objdir+set}" = set; then
5148rmdir .libs 2>/dev/null 5256rmdir .libs 2>/dev/null
5149fi 5257fi
5150echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5258echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5151echo "${ECHO_T}$lt_cv_objdir" >&6 5259echo "${ECHO_T}$lt_cv_objdir" >&6
5152objdir=$lt_cv_objdir 5260objdir=$lt_cv_objdir
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168 5261
5169 5262
5170 5263
5171 5264
5172 5265
5192 5285
5193# Sed substitution to delay expansion of an escaped shell variable in a 5286# Sed substitution to delay expansion of an escaped shell variable in a
5194# double_quote_subst'ed string. 5287# double_quote_subst'ed string.
5195delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5288delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5196 5289
5197# Sed substitution to delay expansion of an escaped single quote.
5198delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5199
5200# Sed substitution to avoid accidental globbing in evaled expressions 5290# Sed substitution to avoid accidental globbing in evaled expressions
5201no_glob_subst='s/\*/\\\*/g' 5291no_glob_subst='s/\*/\\\*/g'
5202 5292
5203# Constants: 5293# Constants:
5204rm="rm -f" 5294rm="rm -f"
5205 5295
5206# Global variables: 5296# Global variables:
5207default_ofile=libtool 5297default_ofile=libtool
5208ofile="$default_ofile"
5209can_build_shared=yes 5298can_build_shared=yes
5210 5299
5211# All known linkers require a `.a' archive for static linking (except M$VC, 5300# All known linkers require a `.a' archive for static linking (except M$VC,
5212# which needs '.lib'). 5301# which needs '.lib').
5213libext=a 5302libext=a
5214 5303ltmain="$ac_aux_dir/ltmain.sh"
5304ofile="$default_ofile"
5215with_gnu_ld="$lt_cv_prog_gnu_ld" 5305with_gnu_ld="$lt_cv_prog_gnu_ld"
5306
5307if test -n "$ac_tool_prefix"; then
5308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5309set dummy ${ac_tool_prefix}ar; ac_word=$2
5310echo "$as_me:$LINENO: checking for $ac_word" >&5
5311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312if test "${ac_cv_prog_AR+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315 if test -n "$AR"; then
5316 ac_cv_prog_AR="$AR" # Let the user override the test.
5317else
5318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_AR="${ac_tool_prefix}ar"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329done
5330done
5331
5332fi
5333fi
5334AR=$ac_cv_prog_AR
5335if test -n "$AR"; then
5336 echo "$as_me:$LINENO: result: $AR" >&5
5337echo "${ECHO_T}$AR" >&6
5338else
5339 echo "$as_me:$LINENO: result: no" >&5
5340echo "${ECHO_T}no" >&6
5341fi
5342
5343fi
5344if test -z "$ac_cv_prog_AR"; then
5345 ac_ct_AR=$AR
5346 # Extract the first word of "ar", so it can be a program name with args.
5347set dummy ar; ac_word=$2
5348echo "$as_me:$LINENO: checking for $ac_word" >&5
5349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5350if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353 if test -n "$ac_ct_AR"; then
5354 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_ac_ct_AR="ar"
5364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367done
5368done
5369
5370 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5371fi
5372fi
5373ac_ct_AR=$ac_cv_prog_ac_ct_AR
5374if test -n "$ac_ct_AR"; then
5375 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5376echo "${ECHO_T}$ac_ct_AR" >&6
5377else
5378 echo "$as_me:$LINENO: result: no" >&5
5379echo "${ECHO_T}no" >&6
5380fi
5381
5382 AR=$ac_ct_AR
5383else
5384 AR="$ac_cv_prog_AR"
5385fi
5386
5387if test -n "$ac_tool_prefix"; then
5388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5389set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5390echo "$as_me:$LINENO: checking for $ac_word" >&5
5391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392if test "${ac_cv_prog_RANLIB+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395 if test -n "$RANLIB"; then
5396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5397else
5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399for as_dir in $PATH
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409done
5410done
5411
5412fi
5413fi
5414RANLIB=$ac_cv_prog_RANLIB
5415if test -n "$RANLIB"; then
5416 echo "$as_me:$LINENO: result: $RANLIB" >&5
5417echo "${ECHO_T}$RANLIB" >&6
5418else
5419 echo "$as_me:$LINENO: result: no" >&5
5420echo "${ECHO_T}no" >&6
5421fi
5422
5423fi
5424if test -z "$ac_cv_prog_RANLIB"; then
5425 ac_ct_RANLIB=$RANLIB
5426 # Extract the first word of "ranlib", so it can be a program name with args.
5427set dummy ranlib; ac_word=$2
5428echo "$as_me:$LINENO: checking for $ac_word" >&5
5429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433 if test -n "$ac_ct_RANLIB"; then
5434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5435else
5436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_prog_ac_ct_RANLIB="ranlib"
5444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
5447done
5448done
5449
5450 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5451fi
5452fi
5453ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5454if test -n "$ac_ct_RANLIB"; then
5455 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5456echo "${ECHO_T}$ac_ct_RANLIB" >&6
5457else
5458 echo "$as_me:$LINENO: result: no" >&5
5459echo "${ECHO_T}no" >&6
5460fi
5461
5462 RANLIB=$ac_ct_RANLIB
5463else
5464 RANLIB="$ac_cv_prog_RANLIB"
5465fi
5466
5467if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5469set dummy ${ac_tool_prefix}strip; ac_word=$2
5470echo "$as_me:$LINENO: checking for $ac_word" >&5
5471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472if test "${ac_cv_prog_STRIP+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475 if test -n "$STRIP"; then
5476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5477else
5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489done
5490done
5491
5492fi
5493fi
5494STRIP=$ac_cv_prog_STRIP
5495if test -n "$STRIP"; then
5496 echo "$as_me:$LINENO: result: $STRIP" >&5
5497echo "${ECHO_T}$STRIP" >&6
5498else
5499 echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501fi
5502
5503fi
5504if test -z "$ac_cv_prog_STRIP"; then
5505 ac_ct_STRIP=$STRIP
5506 # Extract the first word of "strip", so it can be a program name with args.
5507set dummy strip; ac_word=$2
5508echo "$as_me:$LINENO: checking for $ac_word" >&5
5509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5510if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513 if test -n "$ac_ct_STRIP"; then
5514 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_ac_ct_STRIP="strip"
5524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528done
5529
5530 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5531fi
5532fi
5533ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5534if test -n "$ac_ct_STRIP"; then
5535 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5536echo "${ECHO_T}$ac_ct_STRIP" >&6
5537else
5538 echo "$as_me:$LINENO: result: no" >&5
5539echo "${ECHO_T}no" >&6
5540fi
5541
5542 STRIP=$ac_ct_STRIP
5543else
5544 STRIP="$ac_cv_prog_STRIP"
5545fi
5546
5216 5547
5217old_CC="$CC" 5548old_CC="$CC"
5218old_CFLAGS="$CFLAGS" 5549old_CFLAGS="$CFLAGS"
5219 5550
5220# Set sane defaults for various variables 5551# Set sane defaults for various variables
5552test -z "$AR" && AR=ar
5553test -z "$AR_FLAGS" && AR_FLAGS=cru
5554test -z "$AS" && AS=as
5221test -z "$CC" && CC=cc 5555test -z "$CC" && CC=cc
5222test -z "$LTCC" && LTCC=$CC 5556test -z "$LTCC" && LTCC=$CC
5557test -z "$DLLTOOL" && DLLTOOL=dlltool
5223test -z "$LD" && LD=ld 5558test -z "$LD" && LD=ld
5559test -z "$LN_S" && LN_S="ln -s"
5560test -z "$MAGIC_CMD" && MAGIC_CMD=file
5561test -z "$NM" && NM=nm
5562test -z "$SED" && SED=sed
5563test -z "$OBJDUMP" && OBJDUMP=objdump
5564test -z "$RANLIB" && RANLIB=:
5565test -z "$STRIP" && STRIP=:
5224test -z "$ac_objext" && ac_objext=o 5566test -z "$ac_objext" && ac_objext=o
5225 5567
5226cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 5568# Determine commands to create old-style static archives.
5569old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5570old_postinstall_cmds='chmod 644 $oldlib'
5571old_postuninstall_cmds=
5572
5573if test -n "$RANLIB"; then
5574 case $host_os in
5575 openbsd*)
5576 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5577 ;;
5578 *)
5579 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5580 ;;
5581 esac
5582 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5583fi
5227 5584
5228# Only perform the check for file, if the check method requires it 5585# Only perform the check for file, if the check method requires it
5229test -z "$MAGIC_CMD" && MAGIC_CMD=file
5230case $deplibs_check_method in 5586case $deplibs_check_method in
5231file_magic*) 5587file_magic*)
5232 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5588 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5233 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5589 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5234echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5590echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5612 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5257 $EGREP "$file_magic_regex" > /dev/null; then 5613 $EGREP "$file_magic_regex" > /dev/null; then
5258 : 5614 :
5259 else 5615 else
5260 cat <<_LT_EOF 1>&2 5616 cat <<EOF 1>&2
5261 5617
5262*** Warning: the command libtool uses to detect shared libraries, 5618*** Warning: the command libtool uses to detect shared libraries,
5263*** $file_magic_cmd, produces output that libtool cannot recognize. 5619*** $file_magic_cmd, produces output that libtool cannot recognize.
5264*** The result is that libtool may fail to recognize shared libraries 5620*** The result is that libtool may fail to recognize shared libraries
5265*** as such. This will affect the creation of libtool libraries that 5621*** as such. This will affect the creation of libtool libraries that
5266*** depend on shared libraries, but programs linked with such libtool 5622*** depend on shared libraries, but programs linked with such libtool
5267*** libraries will work regardless of this problem. Nevertheless, you 5623*** libraries will work regardless of this problem. Nevertheless, you
5268*** may want to report the problem to your system manager and/or to 5624*** may want to report the problem to your system manager and/or to
5269*** bug-libtool@gnu.org 5625*** bug-libtool@gnu.org
5270 5626
5271_LT_EOF 5627EOF
5272 fi ;; 5628 fi ;;
5273 esac 5629 esac
5274 fi 5630 fi
5275 break 5631 break
5276 fi 5632 fi
5287echo "${ECHO_T}$MAGIC_CMD" >&6 5643echo "${ECHO_T}$MAGIC_CMD" >&6
5288else 5644else
5289 echo "$as_me:$LINENO: result: no" >&5 5645 echo "$as_me:$LINENO: result: no" >&5
5290echo "${ECHO_T}no" >&6 5646echo "${ECHO_T}no" >&6
5291fi 5647fi
5292
5293
5294
5295
5296 5648
5297if test -z "$lt_cv_path_MAGIC_CMD"; then 5649if test -z "$lt_cv_path_MAGIC_CMD"; then
5298 if test -n "$ac_tool_prefix"; then 5650 if test -n "$ac_tool_prefix"; then
5299 echo "$as_me:$LINENO: checking for file" >&5 5651 echo "$as_me:$LINENO: checking for file" >&5
5300echo $ECHO_N "checking for file... $ECHO_C" >&6 5652echo $ECHO_N "checking for file... $ECHO_C" >&6
5321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5323 $EGREP "$file_magic_regex" > /dev/null; then 5675 $EGREP "$file_magic_regex" > /dev/null; then
5324 : 5676 :
5325 else 5677 else
5326 cat <<_LT_EOF 1>&2 5678 cat <<EOF 1>&2
5327 5679
5328*** Warning: the command libtool uses to detect shared libraries, 5680*** Warning: the command libtool uses to detect shared libraries,
5329*** $file_magic_cmd, produces output that libtool cannot recognize. 5681*** $file_magic_cmd, produces output that libtool cannot recognize.
5330*** The result is that libtool may fail to recognize shared libraries 5682*** The result is that libtool may fail to recognize shared libraries
5331*** as such. This will affect the creation of libtool libraries that 5683*** as such. This will affect the creation of libtool libraries that
5332*** depend on shared libraries, but programs linked with such libtool 5684*** depend on shared libraries, but programs linked with such libtool
5333*** libraries will work regardless of this problem. Nevertheless, you 5685*** libraries will work regardless of this problem. Nevertheless, you
5334*** may want to report the problem to your system manager and/or to 5686*** may want to report the problem to your system manager and/or to
5335*** bug-libtool@gnu.org 5687*** bug-libtool@gnu.org
5336 5688
5337_LT_EOF 5689EOF
5338 fi ;; 5690 fi ;;
5339 esac 5691 esac
5340 fi 5692 fi
5341 break 5693 break
5342 fi 5694 fi
5354else 5706else
5355 echo "$as_me:$LINENO: result: no" >&5 5707 echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6 5708echo "${ECHO_T}no" >&6
5357fi 5709fi
5358 5710
5359
5360 else 5711 else
5361 MAGIC_CMD=: 5712 MAGIC_CMD=:
5362 fi 5713 fi
5363fi 5714fi
5364 5715
5365 fi 5716 fi
5366 ;; 5717 ;;
5367esac 5718esac
5368 5719
5720enable_dlopen=no
5721enable_win32_dll=no
5722
5369# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5723# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5370if test "${enable_libtool_lock+set}" = set; then 5724if test "${enable_libtool_lock+set}" = set; then
5371 enableval="$enable_libtool_lock" 5725 enableval="$enable_libtool_lock"
5372 5726
5373fi; 5727fi;
5374test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5728test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5375 5729
5730
5731# Check whether --with-pic or --without-pic was given.
5732if test "${with_pic+set}" = set; then
5733 withval="$with_pic"
5734 pic_mode="$withval"
5735else
5736 pic_mode=default
5737fi;
5738test -z "$pic_mode" && pic_mode=default
5739
5376# Use C for the default configuration in the libtool script 5740# Use C for the default configuration in the libtool script
5377 5741tagname=
5378lt_save_CC="$CC" 5742lt_save_CC="$CC"
5379ac_ext=c 5743ac_ext=c
5380ac_cpp='$CPP $CPPFLAGS' 5744ac_cpp='$CPP $CPPFLAGS'
5381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 5759
5396# Code to be used in simple link tests 5760# Code to be used in simple link tests
5397lt_simple_link_test_code='int main(){return(0);}\n' 5761lt_simple_link_test_code='int main(){return(0);}\n'
5398 5762
5399 5763
5400
5401
5402
5403
5404
5405
5406# If no C compiler was specified, use CC. 5764# If no C compiler was specified, use CC.
5407LTCC=${LTCC-"$CC"} 5765LTCC=${LTCC-"$CC"}
5408 5766
5409# Allow CC to be a program name with arguments. 5767# Allow CC to be a program name with arguments.
5410compiler=$CC 5768compiler=$CC
5411 5769
5412# Save the default compiler, since it gets overwritten when the other
5413# tags are being tested, and _LT_AC_TAGVAR(compiler, []) is a NOP.
5414compiler_DEFAULT=$CC
5415 5770
5416# 5771#
5417# Check for any special shared library compilation flags. 5772# Check for any special shared library compilation flags.
5418# 5773#
5419lt_prog_cc_shlib= 5774lt_prog_cc_shlib=
5425 esac 5780 esac
5426fi 5781fi
5427if test -n "$lt_prog_cc_shlib"; then 5782if test -n "$lt_prog_cc_shlib"; then
5428 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5783 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5429echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5784echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5430 if echo "$old_CC $old_CFLAGS " | $GREP "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5785 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5431 else 5786 else
5432 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5787 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5433echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5788echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5434 lt_cv_prog_cc_can_build_shared=no 5789 lt_cv_prog_cc_can_build_shared=no
5435 fi 5790 fi
5436fi 5791fi
5437 5792
5438 5793
5439## CAVEAT EMPTOR: 5794#
5440## There is no encapsulation within the following macros, do not change 5795# Check to make sure the static flag actually works.
5441## the running order or otherwise move them around unless you know exactly 5796#
5442## what you are doing... 5797echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5443if test -n "$compiler"; then 5798echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5799if test "${lt_prog_compiler_static_works+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802 lt_prog_compiler_static_works=no
5803 save_LDFLAGS="$LDFLAGS"
5804 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5805 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5806 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5807 # The compiler can only warn and ignore the option if not recognized
5808 # So say no if there are warnings
5809 if test -s conftest.err; then
5810 # Append any errors to the config.log.
5811 cat conftest.err 1>&5
5812 else
5813 lt_prog_compiler_static_works=yes
5814 fi
5815 fi
5816 $rm conftest*
5817 LDFLAGS="$save_LDFLAGS"
5818
5819fi
5820echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5821echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5822
5823if test x"$lt_prog_compiler_static_works" = xyes; then
5824 :
5825else
5826 lt_prog_compiler_static=
5827fi
5828
5829
5830
5444 5831
5445lt_prog_compiler_no_builtin_flag= 5832lt_prog_compiler_no_builtin_flag=
5446 5833
5447if test "$GCC" = yes; then 5834if test "$GCC" = yes; then
5448 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5835 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5449 5836
5837
5450 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5838echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5451echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5839echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5452if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5840if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6 5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5454else 5842else
5455 lt_cv_prog_compiler_rtti_exceptions=no 5843 lt_cv_prog_compiler_rtti_exceptions=no
5463 # The option is referenced via a variable to avoid confusing sed. 5851 # The option is referenced via a variable to avoid confusing sed.
5464 lt_compile=`echo "$ac_compile" | $SED \ 5852 lt_compile=`echo "$ac_compile" | $SED \
5465 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5853 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5467 -e 's:$: $lt_compiler_flag:'` 5855 -e 's:$: $lt_compiler_flag:'`
5468 (eval echo "\"\$as_me:5468: $lt_compile\"" >&5) 5856 (eval echo "\"\$as_me:5856: $lt_compile\"" >&5)
5469 (eval "$lt_compile" 2>conftest.err) 5857 (eval "$lt_compile" 2>conftest.err)
5470 ac_status=$? 5858 ac_status=$?
5471 cat conftest.err >&5 5859 cat conftest.err >&5
5472 echo "$as_me:5472: \$? = $ac_status" >&5 5860 echo "$as_me:5860: \$? = $ac_status" >&5
5473 if (exit $ac_status) && test -s "$ac_outfile"; then 5861 if (exit $ac_status) && test -s "$ac_outfile"; then
5474 # The compiler can only warn and ignore the option if not recognized 5862 # The compiler can only warn and ignore the option if not recognized
5475 # So say no if there are warnings 5863 # So say no if there are warnings
5476 if test ! -s conftest.err; then 5864 if test ! -s conftest.err; then
5477 lt_cv_prog_compiler_rtti_exceptions=yes 5865 lt_cv_prog_compiler_rtti_exceptions=yes
5489 : 5877 :
5490fi 5878fi
5491 5879
5492fi 5880fi
5493 5881
5494
5495
5496
5497
5498
5499 lt_prog_compiler_wl= 5882lt_prog_compiler_wl=
5500lt_prog_compiler_pic= 5883lt_prog_compiler_pic=
5501lt_prog_compiler_static= 5884lt_prog_compiler_static=
5502 5885
5503echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5886echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5504echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5887echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5515 lt_prog_compiler_static='-Bstatic' 5898 lt_prog_compiler_static='-Bstatic'
5516 fi 5899 fi
5517 ;; 5900 ;;
5518 5901
5519 amigaos*) 5902 amigaos*)
5520 if test "$host_cpu" = m68k; then
5521 # FIXME: we need at least 68020 code to build shared libraries, but 5903 # FIXME: we need at least 68020 code to build shared libraries, but
5522 # adding the `-m68020' flag to GCC prevents building anything better, 5904 # adding the `-m68020' flag to GCC prevents building anything better,
5523 # like `-m68040'. 5905 # like `-m68040'.
5524 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 5906 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5525 fi
5526 ;; 5907 ;;
5527 5908
5528 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5909 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5529 # PIC is the default for these OSes. 5910 # PIC is the default for these OSes.
5530 ;; 5911 ;;
5581 lt_prog_compiler_static='-Bstatic' 5962 lt_prog_compiler_static='-Bstatic'
5582 else 5963 else
5583 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 5964 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5584 fi 5965 fi
5585 ;; 5966 ;;
5586 darwin*)
5587 # PIC is the default on this platform
5588 # Common symbols not allowed in MH_DYLIB files
5589 case "$cc_basename" in
5590 xlc*)
5591 lt_prog_compiler_pic='-qnocommon'
5592 lt_prog_compiler_wl='-Wl,'
5593 ;;
5594 esac
5595 ;;
5596 5967
5597 mingw* | pw32* | os2*) 5968 mingw* | pw32* | os2*)
5598 # This hack is so that the source file can tell whether it is being 5969 # This hack is so that the source file can tell whether it is being
5599 # built for inclusion in a dll (and should export symbols for example). 5970 # built for inclusion in a dll (and should export symbols for example).
5600 lt_prog_compiler_pic='-DDLL_EXPORT' 5971 lt_prog_compiler_pic='-DDLL_EXPORT'
5687 lt_prog_compiler_can_build_shared=no 6058 lt_prog_compiler_can_build_shared=no
5688 ;; 6059 ;;
5689 esac 6060 esac
5690 fi 6061 fi
5691 6062
5692case "$host_os" in
5693 # For platforms which do not support PIC, -DPIC is meaningless:
5694 *djgpp*)
5695 lt_prog_compiler_pic=
5696 ;;
5697 *)
5698 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5699 ;;
5700esac
5701echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6063echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5702echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6064echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5703
5704
5705
5706
5707
5708 6065
5709# 6066#
5710# Check to make sure the PIC flag actually works. 6067# Check to make sure the PIC flag actually works.
5711# 6068#
5712if test -n "$lt_prog_compiler_pic"; then 6069if test -n "$lt_prog_compiler_pic"; then
6070
5713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6071echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5714echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6072echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5715if test "${lt_prog_compiler_pic_works+set}" = set; then 6073if test "${lt_prog_compiler_pic_works+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6 6074 echo $ECHO_N "(cached) $ECHO_C" >&6
5717else 6075else
5718 lt_prog_compiler_pic_works=no 6076 lt_prog_compiler_pic_works=no
5726 # The option is referenced via a variable to avoid confusing sed. 6084 # The option is referenced via a variable to avoid confusing sed.
5727 lt_compile=`echo "$ac_compile" | $SED \ 6085 lt_compile=`echo "$ac_compile" | $SED \
5728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6086 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5730 -e 's:$: $lt_compiler_flag:'` 6088 -e 's:$: $lt_compiler_flag:'`
5731 (eval echo "\"\$as_me:5731: $lt_compile\"" >&5) 6089 (eval echo "\"\$as_me:6089: $lt_compile\"" >&5)
5732 (eval "$lt_compile" 2>conftest.err) 6090 (eval "$lt_compile" 2>conftest.err)
5733 ac_status=$? 6091 ac_status=$?
5734 cat conftest.err >&5 6092 cat conftest.err >&5
5735 echo "$as_me:5735: \$? = $ac_status" >&5 6093 echo "$as_me:6093: \$? = $ac_status" >&5
5736 if (exit $ac_status) && test -s "$ac_outfile"; then 6094 if (exit $ac_status) && test -s "$ac_outfile"; then
5737 # The compiler can only warn and ignore the option if not recognized 6095 # The compiler can only warn and ignore the option if not recognized
5738 # So say no if there are warnings 6096 # So say no if there are warnings
5739 if test ! -s conftest.err; then 6097 if test ! -s conftest.err; then
5740 lt_prog_compiler_pic_works=yes 6098 lt_prog_compiler_pic_works=yes
5755 lt_prog_compiler_pic= 6113 lt_prog_compiler_pic=
5756 lt_prog_compiler_can_build_shared=no 6114 lt_prog_compiler_can_build_shared=no
5757fi 6115fi
5758 6116
5759fi 6117fi
5760 6118case "$host_os" in
5761 6119 # For platforms which do not support PIC, -DPIC is meaningless:
5762 6120 *djgpp*)
5763
5764
5765
5766#
5767# Check to make sure the static flag actually works.
5768#
5769echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5770echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5771if test "${lt_prog_compiler_static_works+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774 lt_prog_compiler_static_works=no
5775 save_LDFLAGS="$LDFLAGS"
5776 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5777 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5779 # The compiler can only warn and ignore the option if not recognized
5780 # So say no if there are warnings
5781 if test -s conftest.err; then
5782 # Append any errors to the config.log.
5783 cat conftest.err 1>&5
5784 else
5785 lt_prog_compiler_static_works=yes
5786 fi
5787 fi
5788 $rm conftest*
5789 LDFLAGS="$save_LDFLAGS"
5790
5791fi
5792echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5793echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5794
5795if test x"$lt_prog_compiler_static_works" = xyes; then
5796 :
5797else
5798 lt_prog_compiler_static= 6121 lt_prog_compiler_pic=
5799fi 6122 ;;
6123 *)
6124 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6125 ;;
6126esac
5800 6127
5801
5802
5803
5804
5805
5806
5807 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6128echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5808echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6129echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5809if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6130if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6 6131 echo $ECHO_N "(cached) $ECHO_C" >&6
5811else 6132else
5812 lt_cv_prog_compiler_c_o=no 6133 lt_cv_prog_compiler_c_o=no
5823 # with a dollar sign (not a hyphen), so the echo should work correctly. 6144 # with a dollar sign (not a hyphen), so the echo should work correctly.
5824 lt_compile=`echo "$ac_compile" | $SED \ 6145 lt_compile=`echo "$ac_compile" | $SED \
5825 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6146 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5827 -e 's:$: $lt_compiler_flag:'` 6148 -e 's:$: $lt_compiler_flag:'`
5828 (eval echo "\"\$as_me:5828: $lt_compile\"" >&5) 6149 (eval echo "\"\$as_me:6149: $lt_compile\"" >&5)
5829 (eval "$lt_compile" 2>out/conftest.err) 6150 (eval "$lt_compile" 2>out/conftest.err)
5830 ac_status=$? 6151 ac_status=$?
5831 cat out/conftest.err >&5 6152 cat out/conftest.err >&5
5832 echo "$as_me:5832: \$? = $ac_status" >&5 6153 echo "$as_me:6153: \$? = $ac_status" >&5
5833 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6154 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5834 then 6155 then
5835 # The compiler can only warn and ignore the option if not recognized 6156 # The compiler can only warn and ignore the option if not recognized
5836 # So say no if there are warnings 6157 # So say no if there are warnings
5837 if test ! -s out/conftest.err; then 6158 if test ! -s out/conftest.err; then
5849 $rm conftest* 6170 $rm conftest*
5850 6171
5851fi 6172fi
5852echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6173echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5853echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6174echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5854
5855
5856
5857
5858
5859 6175
5860 6176
5861hard_links="nottested" 6177hard_links="nottested"
5862if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6178if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5863 # do not overwrite the value of need_locks provided by the user 6179 # do not overwrite the value of need_locks provided by the user
5878 fi 6194 fi
5879else 6195else
5880 need_locks=no 6196 need_locks=no
5881fi 6197fi
5882 6198
5883
5884
5885
5886
5887
5888 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6199echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5889echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6200echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5890 6201
5891 runpath_var= 6202 runpath_var=
5892 allow_undefined_flag= 6203 allow_undefined_flag=
5893 always_export_symbols=no 6204 enable_shared_with_static_runtimes=no
5894 archive_cmds= 6205 archive_cmds=
5895 archive_expsym_cmds= 6206 archive_expsym_cmds=
5896 enable_shared_with_static_runtimes=no 6207 old_archive_From_new_cmds=
6208 old_archive_from_expsyms_cmds=
5897 export_dynamic_flag_spec= 6209 export_dynamic_flag_spec=
5898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6210 whole_archive_flag_spec=
5899 hardcode_automatic=no 6211 thread_safe_flag_spec=
5900 hardcode_direct=no
5901 hardcode_libdir_flag_spec= 6212 hardcode_libdir_flag_spec=
5902 hardcode_libdir_flag_spec_ld= 6213 hardcode_libdir_flag_spec_ld=
5903 hardcode_libdir_separator= 6214 hardcode_libdir_separator=
6215 hardcode_direct=no
5904 hardcode_minus_L=no 6216 hardcode_minus_L=no
5905 hardcode_shlibpath_var=unsupported 6217 hardcode_shlibpath_var=unsupported
5906 inherit_rpath=no
5907 link_all_deplibs=unknown 6218 link_all_deplibs=unknown
6219 hardcode_automatic=no
5908 module_cmds= 6220 module_cmds=
5909 module_expsym_cmds= 6221 module_expsym_cmds=
5910 old_archive_from_new_cmds= 6222 always_export_symbols=no
5911 old_archive_from_expsyms_cmds= 6223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5912 thread_safe_flag_spec=
5913 whole_archive_flag_spec=
5914 # include_expsyms should be a list of space-separated symbols to be *always* 6224 # include_expsyms should be a list of space-separated symbols to be *always*
5915 # included in the symbol list 6225 # included in the symbol list
5916 include_expsyms= 6226 include_expsyms=
5917 # exclude_expsyms can be an extended regexp of symbols to exclude 6227 # exclude_expsyms can be an extended regexp of symbols to exclude
5918 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6228 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5949 case $host_os in 6259 case $host_os in
5950 aix3* | aix4* | aix5*) 6260 aix3* | aix4* | aix5*)
5951 # On AIX/PPC, the GNU linker is very broken 6261 # On AIX/PPC, the GNU linker is very broken
5952 if test "$host_cpu" != ia64; then 6262 if test "$host_cpu" != ia64; then
5953 ld_shlibs=no 6263 ld_shlibs=no
5954 cat <<_LT_EOF 1>&2 6264 cat <<EOF 1>&2
5955 6265
5956*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6266*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5957*** to be unable to reliably create shared libraries on AIX. 6267*** to be unable to reliably create shared libraries on AIX.
5958*** Therefore, libtool is disabling shared libraries support. If you 6268*** Therefore, libtool is disabling shared libraries support. If you
5959*** really care for shared libraries, you may want to modify your PATH 6269*** really care for shared libraries, you may want to modify your PATH
5960*** so that a non-GNU linker is found, and then restart. 6270*** so that a non-GNU linker is found, and then restart.
5961 6271
5962_LT_EOF 6272EOF
5963 fi 6273 fi
5964 ;; 6274 ;;
5965 6275
5966 amigaos*) 6276 amigaos*)
5967 if test "$host_cpu" = m68k; then
5968 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)' 6277 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)'
5969 hardcode_libdir_flag_spec='-L$libdir' 6278 hardcode_libdir_flag_spec='-L$libdir'
5970 hardcode_minus_L=yes 6279 hardcode_minus_L=yes
5971 fi
5972 6280
5973 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6281 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5974 # that the semantics of dynamic libraries on AmigaOS, at least up 6282 # that the semantics of dynamic libraries on AmigaOS, at least up
5975 # to version 4, is to share data among multiple programs linked 6283 # to version 4, is to share data among multiple programs linked
5976 # with the same dynamic library. Since this doesn't match the 6284 # with the same dynamic library. Since this doesn't match the
5978 # them. 6286 # them.
5979 ld_shlibs=no 6287 ld_shlibs=no
5980 ;; 6288 ;;
5981 6289
5982 beos*) 6290 beos*)
5983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5984 allow_undefined_flag=unsupported 6292 allow_undefined_flag=unsupported
5985 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5986 # support --undefined. This deserves some investigation. FIXME 6294 # support --undefined. This deserves some investigation. FIXME
5987 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6295 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5988 else 6296 else
5997 allow_undefined_flag=unsupported 6305 allow_undefined_flag=unsupported
5998 always_export_symbols=no 6306 always_export_symbols=no
5999 enable_shared_with_static_runtimes=yes 6307 enable_shared_with_static_runtimes=yes
6000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6001 6309
6002 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6310 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6004 # If the export-symbols file already is a .def file (1st line 6312 # If the export-symbols file already is a .def file (1st line
6005 # is EXPORTS), use it as is; otherwise, prepend... 6313 # is EXPORTS), use it as is; otherwise, prepend...
6006 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6314 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6007 cp $export_symbols $output_objdir/$soname.def; 6315 cp $export_symbols $output_objdir/$soname.def;
6013 else 6321 else
6014 ld_shlibs=no 6322 ld_shlibs=no
6015 fi 6323 fi
6016 ;; 6324 ;;
6017 6325
6018 netbsd*) 6326 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6327 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6020 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6328 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6021 wlarc= 6329 wlarc=
6022 else 6330 else
6023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6025 fi 6333 fi
6026 ;; 6334 ;;
6027 6335
6028 solaris* | sysv5*) 6336 solaris* | sysv5*)
6029 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 6337 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6030 ld_shlibs=no 6338 ld_shlibs=no
6031 cat <<_LT_EOF 1>&2 6339 cat <<EOF 1>&2
6032 6340
6033*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6341*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6034*** create shared libraries on Solaris systems. Therefore, libtool 6342*** create shared libraries on Solaris systems. Therefore, libtool
6035*** is disabling shared libraries support. We urge you to upgrade GNU 6343*** is disabling shared libraries support. We urge you to upgrade GNU
6036*** binutils to release 2.9.1 or newer. Another option is to modify 6344*** binutils to release 2.9.1 or newer. Another option is to modify
6037*** your PATH or compiler configuration so that the native linker is 6345*** your PATH or compiler configuration so that the native linker is
6038*** used, and then restart. 6346*** used, and then restart.
6039 6347
6040_LT_EOF 6348EOF
6041 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6349 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6044 else 6352 else
6045 ld_shlibs=no 6353 ld_shlibs=no
6046 fi 6354 fi
6052 hardcode_direct=yes 6360 hardcode_direct=yes
6053 hardcode_shlibpath_var=no 6361 hardcode_shlibpath_var=no
6054 ;; 6362 ;;
6055 6363
6056 linux*) 6364 linux*)
6057 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then 6365 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6366 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6367 archive_cmds="$tmp_archive_cmds"
6368 supports_anon_versioning=no
6059 case `$LD -v 2>&1` in 6369 case `$LD -v 2>/dev/null` in
6060 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6370 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6371 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6372 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6063 *\ 2.11.*) ;; # other 2.11 versions 6373 *\ 2.11.*) ;; # other 2.11 versions
6064 *) supports_anon_versioning=yes ;; 6374 *) supports_anon_versioning=yes ;;
6065 esac 6375 esac
6066 if test "x$supports_anon_versioning" = xyes; then 6376 if test $supports_anon_versioning = yes; then
6067 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' 6377 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6378cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6379$echo "local: *; };" >> $output_objdir/$libname.ver~
6380 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6068 else 6381 else
6069 archive_expsym_cmds=$archive_cmds 6382 archive_expsym_cmds="$tmp_archive_cmds"
6070 fi 6383 fi
6384 link_all_deplibs=no
6071 else 6385 else
6072 ld_shlibs=no 6386 ld_shlibs=no
6073 fi 6387 fi
6074 ;; 6388 ;;
6075 6389
6076 *) 6390 *)
6077 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6080 else 6394 else
6081 ld_shlibs=no 6395 ld_shlibs=no
6082 fi 6396 fi
6086 if test "$ld_shlibs" = yes; then 6400 if test "$ld_shlibs" = yes; then
6087 runpath_var=LD_RUN_PATH 6401 runpath_var=LD_RUN_PATH
6088 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6402 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6089 export_dynamic_flag_spec='${wl}--export-dynamic' 6403 export_dynamic_flag_spec='${wl}--export-dynamic'
6090 # ancient GNU ld didn't support --whole-archive et. al. 6404 # ancient GNU ld didn't support --whole-archive et. al.
6091 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 6405 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6092 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6406 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6093 else 6407 else
6094 whole_archive_flag_spec= 6408 whole_archive_flag_spec=
6095 fi 6409 fi
6096 fi 6410 fi
6119 exp_sym_flag='-Bexport' 6433 exp_sym_flag='-Bexport'
6120 no_entry_flag="" 6434 no_entry_flag=""
6121 else 6435 else
6122 # If we're using GNU nm, then we don't want the "-C" option. 6436 # If we're using GNU nm, then we don't want the "-C" option.
6123 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6437 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6124 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6438 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6125 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' 6439 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'
6126 else 6440 else
6127 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' 6441 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'
6128 fi 6442 fi
6129 aix_use_runtimelinking=no 6443 aix_use_runtimelinking=no
6158 if test "$GCC" = yes; then 6472 if test "$GCC" = yes; then
6159 case $host_os in aix4.012|aix4.012.*) 6473 case $host_os in aix4.012|aix4.012.*)
6160 # We only want to do this on AIX 4.2 and lower, the check 6474 # We only want to do this on AIX 4.2 and lower, the check
6161 # below for broken collect2 doesn't work under 4.3+ 6475 # below for broken collect2 doesn't work under 4.3+
6162 collect2name=`${CC} -print-prog-name=collect2` 6476 collect2name=`${CC} -print-prog-name=collect2`
6163 if test -f "$collect2name" && 6477 if test -f "$collect2name" && \
6164 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6478 strings "$collect2name" | grep resolve_lib_name >/dev/null
6165 then 6479 then
6166 # We have reworked collect2 6480 # We have reworked collect2
6167 hardcode_direct=yes 6481 hardcode_direct=yes
6168 else 6482 else
6169 # We have old collect2 6483 # We have old collect2
6197 always_export_symbols=yes 6511 always_export_symbols=yes
6198 if test "$aix_use_runtimelinking" = yes; then 6512 if test "$aix_use_runtimelinking" = yes; then
6199 # Warning - without using the other runtime loading flags (-brtl), 6513 # Warning - without using the other runtime loading flags (-brtl),
6200 # -berok will link without error, but may produce a broken library. 6514 # -berok will link without error, but may produce a broken library.
6201 allow_undefined_flag='-berok' 6515 allow_undefined_flag='-berok'
6202 # Determine the default libpath from the value encoded in an 6516 # Determine the default libpath from the value encoded in an empty executable.
6203 # empty executable.
6204 cat >conftest.$ac_ext <<_ACEOF 6517 cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h. */ 6518/* confdefs.h. */
6206_ACEOF 6519_ACEOF
6207cat confdefs.h >>conftest.$ac_ext 6520cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF 6521cat >>conftest.$ac_ext <<_ACEOF
6252 conftest$ac_exeext conftest.$ac_ext 6565 conftest$ac_exeext conftest.$ac_ext
6253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6566if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6254 6567
6255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6568 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6256 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" 6569 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"
6257 else 6570 else
6258 if test "$host_cpu" = ia64; then 6571 if test "$host_cpu" = ia64; then
6259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6572 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6260 allow_undefined_flag="-z nodefs" 6573 allow_undefined_flag="-z nodefs"
6261 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" 6574 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"
6262 else 6575 else
6263 # Determine the default libpath from the value encoded in an 6576 # Determine the default libpath from the value encoded in an empty executable.
6264 # empty executable.
6265 cat >conftest.$ac_ext <<_ACEOF 6577 cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h. */ 6578/* confdefs.h. */
6267_ACEOF 6579_ACEOF
6268cat confdefs.h >>conftest.$ac_ext 6580cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF 6581cat >>conftest.$ac_ext <<_ACEOF
6328 fi 6640 fi
6329 fi 6641 fi
6330 ;; 6642 ;;
6331 6643
6332 amigaos*) 6644 amigaos*)
6333 if test "$host_cpu" = m68k; then
6334 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)' 6645 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)'
6335 hardcode_libdir_flag_spec='-L$libdir' 6646 hardcode_libdir_flag_spec='-L$libdir'
6336 hardcode_minus_L=yes 6647 hardcode_minus_L=yes
6337 fi
6338 # see comment about different semantics on the GNU ld section 6648 # see comment about different semantics on the GNU ld section
6339 ld_shlibs=no 6649 ld_shlibs=no
6340 ;; 6650 ;;
6341 6651
6342 bsdi4*) 6652 bsdi4*)
6355 # Tell ltmain to make .dll files, not .so files. 6665 # Tell ltmain to make .dll files, not .so files.
6356 shrext_cmds=".dll" 6666 shrext_cmds=".dll"
6357 # FIXME: Setting linknames here is a bad hack. 6667 # FIXME: Setting linknames here is a bad hack.
6358 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6668 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6359 # The linker will automatically build a .lib file if we build a DLL. 6669 # The linker will automatically build a .lib file if we build a DLL.
6360 old_archive_from_new_cmds='true' 6670 old_archive_From_new_cmds='true'
6361 # FIXME: Should let the user specify the lib program. 6671 # FIXME: Should let the user specify the lib program.
6362 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6672 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6363 fix_srcfile_path='`cygpath -w "$srcfile"`' 6673 fix_srcfile_path='`cygpath -w "$srcfile"`'
6364 enable_shared_with_static_runtimes=yes 6674 enable_shared_with_static_runtimes=yes
6365 ;; 6675 ;;
6366 6676
6367 darwin* | rhapsody*) 6677 darwin* | rhapsody*)
6678 if test "$GXX" = yes ; then
6679 archive_cmds_need_lc=no
6368 case "$host_os" in 6680 case "$host_os" in
6369 rhapsody* | darwin1.[012]) 6681 rhapsody* | darwin1.[012])
6370 allow_undefined_flag='${wl}-undefined ${wl}suppress' 6682 allow_undefined_flag='-undefined suppress'
6371 ;; 6683 ;;
6372 *) # Darwin 1.3 on 6684 *) # Darwin 1.3 on
6373 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6685 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6374 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${Wl}suppress' 6686 allow_undefined_flag='-flat_namespace -undefined suppress'
6375 else 6687 else
6376 case ${MACOSX_DEPLOYMENT_TARGET} in 6688 case ${MACOSX_DEPLOYMENT_TARGET} in
6377 10.[012]) 6689 10.[012])
6378 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6690 allow_undefined_flag='-flat_namespace -undefined suppress'
6379 ;; 6691 ;;
6380 10.*) 6692 10.*)
6381 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 6693 allow_undefined_flag='-undefined dynamic_lookup'
6382 ;; 6694 ;;
6383 esac 6695 esac
6384 fi 6696 fi
6385 ;; 6697 ;;
6386 esac 6698 esac
6387 archive_cmds_need_lc=no 6699 lt_int_apple_cc_single_mod=no
6700 output_verbose_link_cmd='echo'
6701 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6702 lt_int_apple_cc_single_mod=yes
6703 fi
6704 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6705 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6706 else
6707 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'
6708 fi
6709 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6710 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6711 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6712 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}'
6713 else
6714 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}'
6715 fi
6716 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}'
6388 hardcode_direct=no 6717 hardcode_direct=no
6389 hardcode_automatic=yes 6718 hardcode_automatic=yes
6390 hardcode_shlibpath_var=unsupported 6719 hardcode_shlibpath_var=unsupported
6391 whole_archive_flag_spec='-all_load $convenience' 6720 whole_archive_flag_spec='-all_load $convenience'
6392 link_all_deplibs=yes 6721 link_all_deplibs=yes
6393 if test "$GCC" = yes ; then
6394 output_verbose_link_cmd='echo'
6395 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6396 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6398 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}'
6399 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}'
6400 else 6722 else
6401 case "$cc_basename" in
6402 xlc*)
6403 output_verbose_link_cmd='echo'
6404 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6405 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6407 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}'
6408 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}'
6409 ;;
6410 *)
6411 ld_shlibs=no 6723 ld_shlibs=no
6412 ;;
6413 esac
6414 fi 6724 fi
6415 ;; 6725 ;;
6726
6416 dgux*) 6727 dgux*)
6417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6418 hardcode_libdir_flag_spec='-L$libdir' 6729 hardcode_libdir_flag_spec='-L$libdir'
6419 hardcode_shlibpath_var=no 6730 hardcode_shlibpath_var=no
6420 ;; 6731 ;;
6519 ;; 6830 ;;
6520 6831
6521 irix5* | irix6* | nonstopux*) 6832 irix5* | irix6* | nonstopux*)
6522 if test "$GCC" = yes; then 6833 if test "$GCC" = yes; then
6523 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' 6834 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'
6524 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'
6525 else 6835 else
6526 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' 6836 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'
6527 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'
6528 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6837 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6529 fi 6838 fi
6530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6531 hardcode_libdir_separator=: 6840 hardcode_libdir_separator=:
6532 inherit_rpath=yes
6533 link_all_deplibs=yes 6841 link_all_deplibs=yes
6534 ;; 6842 ;;
6535 6843
6536 netbsd*) 6844 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6845 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6539 else 6847 else
6540 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6848 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6541 fi 6849 fi
6542 hardcode_libdir_flag_spec='-R$libdir' 6850 hardcode_libdir_flag_spec='-R$libdir'
6553 ;; 6861 ;;
6554 6862
6555 openbsd*) 6863 openbsd*)
6556 hardcode_direct=yes 6864 hardcode_direct=yes
6557 hardcode_shlibpath_var=no 6865 hardcode_shlibpath_var=no
6558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6561 export_dynamic_flag_spec='${wl}-E' 6869 export_dynamic_flag_spec='${wl}-E'
6562 else 6870 else
6563 case $host_os in 6871 case $host_os in
6576 os2*) 6884 os2*)
6577 hardcode_libdir_flag_spec='-L$libdir' 6885 hardcode_libdir_flag_spec='-L$libdir'
6578 hardcode_minus_L=yes 6886 hardcode_minus_L=yes
6579 allow_undefined_flag=unsupported 6887 allow_undefined_flag=unsupported
6580 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' 6888 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'
6581 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6889 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6582 ;; 6890 ;;
6583 6891
6584 osf3*) 6892 osf3*)
6585 if test "$GCC" = yes; then 6893 if test "$GCC" = yes; then
6586 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6731 7039
6732 *) 7040 *)
6733 ld_shlibs=no 7041 ld_shlibs=no
6734 ;; 7042 ;;
6735 esac 7043 esac
6736
6737 if test x$host_vendor = xsni; then
6738 case $host in
6739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6740 export_dynamic_flag_spec='${wl}-Blargedynsym'
6741 ;;
6742 esac
6743 fi
6744 fi 7044 fi
6745 7045
6746echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7046echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6747echo "${ECHO_T}$ld_shlibs" >&6 7047echo "${ECHO_T}$ld_shlibs" >&6
6748test "$ld_shlibs" = no && can_build_shared=no 7048test "$ld_shlibs" = no && can_build_shared=no
6749 7049
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7050variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6765if test "$GCC" = yes; then 7051if test "$GCC" = yes; then
6766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6767fi 7053fi
6768
6769
6770
6771
6772
6773 7054
6774# 7055#
6775# Do we need to explicitly link libc? 7056# Do we need to explicitly link libc?
6776# 7057#
6777case "x$archive_cmds_need_lc" in 7058case "x$archive_cmds_need_lc" in
6808 verstring= 7089 verstring=
6809 output_objdir=. 7090 output_objdir=.
6810 libname=conftest 7091 libname=conftest
6811 lt_save_allow_undefined_flag=$allow_undefined_flag 7092 lt_save_allow_undefined_flag=$allow_undefined_flag
6812 allow_undefined_flag= 7093 allow_undefined_flag=
6813 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 7094 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6814 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 7095 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6815 ac_status=$? 7096 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } 7098 (exit $ac_status); }
6818 then 7099 then
6819 archive_cmds_need_lc=no 7100 archive_cmds_need_lc=no
6831 esac 7112 esac
6832 fi 7113 fi
6833 ;; 7114 ;;
6834esac 7115esac
6835 7116
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
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7117echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6969echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7118echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6970library_names_spec= 7119library_names_spec=
6971libname_spec='lib$name' 7120libname_spec='lib$name'
6972soname_spec= 7121soname_spec=
6979shlibpath_overrides_runpath=unknown 7128shlibpath_overrides_runpath=unknown
6980version_type=none 7129version_type=none
6981dynamic_linker="$host_os ld.so" 7130dynamic_linker="$host_os ld.so"
6982sys_lib_dlsearch_path_spec="/lib /usr/lib" 7131sys_lib_dlsearch_path_spec="/lib /usr/lib"
6983if test "$GCC" = yes; then 7132if test "$GCC" = yes; then
6984 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6985 if echo "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then 7134 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6986 # if the path contains ";" then we assume it to be the separator 7135 # if the path contains ";" then we assume it to be the separator
6987 # otherwise default to the standard path separator (i.e. ":") - it is 7136 # otherwise default to the standard path separator (i.e. ":") - it is
6988 # assumed that no part of a normal pathname contains ";" but that should 7137 # assumed that no part of a normal pathname contains ";" but that should
6989 # okay in the real world where ";" in dirpaths is itself problematic. 7138 # okay in the real world where ";" in dirpaths is itself problematic.
6990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7028 # development snapshots of GCC prior to 3.0. 7177 # development snapshots of GCC prior to 3.0.
7029 case $host_os in 7178 case $host_os in
7030 aix4 | aix4.[01] | aix4.[01].*) 7179 aix4 | aix4.[01] | aix4.[01].*)
7031 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7180 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7032 echo ' yes ' 7181 echo ' yes '
7033 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 7182 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7034 : 7183 :
7035 else 7184 else
7036 can_build_shared=no 7185 can_build_shared=no
7037 fi 7186 fi
7038 ;; 7187 ;;
7054 shlibpath_var=LIBPATH 7203 shlibpath_var=LIBPATH
7055 fi 7204 fi
7056 ;; 7205 ;;
7057 7206
7058amigaos*) 7207amigaos*)
7059 if test "$host_cpu" = m68k; then
7060 library_names_spec='$libname.ixlibrary $libname.a' 7208 library_names_spec='$libname.ixlibrary $libname.a'
7061 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7209 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7062 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' 7210 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'
7063 else
7064 dynamic_linker=no
7065 fi
7066 ;; 7211 ;;
7067 7212
7068beos*) 7213beos*)
7069 library_names_spec='${libname}${shared_ext}' 7214 library_names_spec='${libname}${shared_ext}'
7070 dynamic_linker="$host_os ld.so" 7215 dynamic_linker="$host_os ld.so"
7112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7257 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7113 ;; 7258 ;;
7114 mingw*) 7259 mingw*)
7115 # MinGW DLLs use traditional 'lib' prefix 7260 # MinGW DLLs use traditional 'lib' prefix
7116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7261 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7117 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7118 if echo "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 7263 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7119 # It is most probably a Windows format PATH printed by 7264 # It is most probably a Windows format PATH printed by
7120 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7265 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7121 # path with ; separators, and with drive letters. We can handle the 7266 # path with ; separators, and with drive letters. We can handle the
7122 # drive letters (cygwin fileutils understands them), so leave them, 7267 # drive letters (cygwin fileutils understands them), so leave them,
7123 # especially as we might pass files found there to a mingw objdump, 7268 # especially as we might pass files found there to a mingw objdump,
7153 shlibpath_overrides_runpath=yes 7298 shlibpath_overrides_runpath=yes
7154 shlibpath_var=DYLD_LIBRARY_PATH 7299 shlibpath_var=DYLD_LIBRARY_PATH
7155 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7300 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7156 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7301 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7157 if test "$GCC" = yes; then 7302 if test "$GCC" = yes; then
7158 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"` 7303 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"`
7159 else 7304 else
7160 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7305 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7161 fi 7306 fi
7162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7307 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7163 ;; 7308 ;;
7343 # people can always --disable-shared, the test was removed, and we 7488 # people can always --disable-shared, the test was removed, and we
7344 # assume the GNU/Linux dynamic linker is in use. 7489 # assume the GNU/Linux dynamic linker is in use.
7345 dynamic_linker='GNU/Linux ld.so' 7490 dynamic_linker='GNU/Linux ld.so'
7346 ;; 7491 ;;
7347 7492
7493netbsdelf*-gnu)
7494 version_type=linux
7495 need_lib_prefix=no
7496 need_version=no
7497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7498 soname_spec='${libname}${release}${shared_ext}$major'
7499 shlibpath_var=LD_LIBRARY_PATH
7500 shlibpath_overrides_runpath=no
7501 hardcode_into_libs=yes
7502 dynamic_linker='NetBSD ld.elf_so'
7503 ;;
7504
7348knetbsd*-gnu) 7505knetbsd*-gnu)
7349 version_type=linux 7506 version_type=linux
7350 need_lib_prefix=no 7507 need_lib_prefix=no
7351 need_version=no 7508 need_version=no
7352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7359 7516
7360netbsd*) 7517netbsd*)
7361 version_type=sunos 7518 version_type=sunos
7362 need_lib_prefix=no 7519 need_lib_prefix=no
7363 need_version=no 7520 need_version=no
7364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7367 dynamic_linker='NetBSD (a.out) ld.so' 7524 dynamic_linker='NetBSD (a.out) ld.so'
7368 else 7525 else
7369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7397 need_lib_prefix=no 7554 need_lib_prefix=no
7398 need_version=yes 7555 need_version=yes
7399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7401 shlibpath_var=LD_LIBRARY_PATH 7558 shlibpath_var=LD_LIBRARY_PATH
7402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7403 case $host_os in 7560 case $host_os in
7404 openbsd2.[89] | openbsd2.[89].*) 7561 openbsd2.[89] | openbsd2.[89].*)
7405 shlibpath_overrides_runpath=no 7562 shlibpath_overrides_runpath=no
7406 ;; 7563 ;;
7407 *) 7564 *)
7472 shlibpath_var=LD_LIBRARY_PATH 7629 shlibpath_var=LD_LIBRARY_PATH
7473 case $host_vendor in 7630 case $host_vendor in
7474 sni) 7631 sni)
7475 shlibpath_overrides_runpath=no 7632 shlibpath_overrides_runpath=no
7476 need_lib_prefix=no 7633 need_lib_prefix=no
7634 export_dynamic_flag_spec='${wl}-Blargedynsym'
7477 runpath_var=LD_RUN_PATH 7635 runpath_var=LD_RUN_PATH
7478 ;; 7636 ;;
7479 siemens) 7637 siemens)
7480 need_lib_prefix=no 7638 need_lib_prefix=no
7481 ;; 7639 ;;
7510esac 7668esac
7511echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7669echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7512echo "${ECHO_T}$dynamic_linker" >&6 7670echo "${ECHO_T}$dynamic_linker" >&6
7513test "$dynamic_linker" = no && can_build_shared=no 7671test "$dynamic_linker" = no && can_build_shared=no
7514 7672
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
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7673echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7596echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7674echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7597hardcode_action= 7675hardcode_action=
7598if test -n "$hardcode_libdir_flag_spec" || 7676if test -n "$hardcode_libdir_flag_spec" || \
7599 test -n "$runpath_var " || 7677 test -n "$runpath_var " || \
7600 test "X$hardcode_automatic"="Xyes" ; then 7678 test "X$hardcode_automatic"="Xyes" ; then
7601 7679
7602 # We can hardcode non-existant directories. 7680 # We can hardcode non-existant directories.
7603 if test "$hardcode_direct" != no && 7681 if test "$hardcode_direct" != no &&
7604 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7618 hardcode_action=unsupported 7696 hardcode_action=unsupported
7619fi 7697fi
7620echo "$as_me:$LINENO: result: $hardcode_action" >&5 7698echo "$as_me:$LINENO: result: $hardcode_action" >&5
7621echo "${ECHO_T}$hardcode_action" >&6 7699echo "${ECHO_T}$hardcode_action" >&6
7622 7700
7623if test "$hardcode_action" = relink || 7701if test "$hardcode_action" = relink; then
7624 test "$inherit_rpath" = yes; then
7625 # Fast installation is not supported 7702 # Fast installation is not supported
7626 enable_fast_install=no 7703 enable_fast_install=no
7627elif test "$shlibpath_overrides_runpath" = yes || 7704elif test "$shlibpath_overrides_runpath" = yes ||
7628 test "$enable_shared" = no; then 7705 test "$enable_shared" = no; then
7629 # Fast installation is not necessary 7706 # Fast installation is not necessary
7630 enable_fast_install=needless 7707 enable_fast_install=needless
7631fi 7708fi
7632 7709
7633
7634
7635
7636
7637
7638
7639striplib= 7710striplib=
7640old_striplib= 7711old_striplib=
7641echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7712echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7642echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7713echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7643if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 7714if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7645 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7646 echo "$as_me:$LINENO: result: yes" >&5 7717 echo "$as_me:$LINENO: result: yes" >&5
7647echo "${ECHO_T}yes" >&6 7718echo "${ECHO_T}yes" >&6
7648else 7719else
7663echo "${ECHO_T}no" >&6 7734echo "${ECHO_T}no" >&6
7664 ;; 7735 ;;
7665 esac 7736 esac
7666fi 7737fi
7667 7738
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678 if test "x$enable_dlopen" != xyes; then 7739if test "x$enable_dlopen" != xyes; then
7679 enable_dlopen=unknown 7740 enable_dlopen=unknown
7680 enable_dlopen_self=unknown 7741 enable_dlopen_self=unknown
7681 enable_dlopen_self_static=unknown 7742 enable_dlopen_self_static=unknown
7682else 7743else
7683 lt_cv_dlopen=no 7744 lt_cv_dlopen=no
8270 if test "$cross_compiling" = yes; then : 8331 if test "$cross_compiling" = yes; then :
8271 lt_cv_dlopen_self=cross 8332 lt_cv_dlopen_self=cross
8272else 8333else
8273 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8274 lt_status=$lt_dlunknown 8335 lt_status=$lt_dlunknown
8275 cat > conftest.$ac_ext <<_LT_EOF 8336 cat > conftest.$ac_ext <<EOF
8276#line 8276 "configure" 8337#line 8337 "configure"
8277#include "confdefs.h" 8338#include "confdefs.h"
8278 8339
8279#if HAVE_DLFCN_H 8340#if HAVE_DLFCN_H
8280#include <dlfcn.h> 8341#include <dlfcn.h>
8281#endif 8342#endif
8331 /* dlclose (self); */ 8392 /* dlclose (self); */
8332 } 8393 }
8333 8394
8334 exit (status); 8395 exit (status);
8335} 8396}
8336_LT_EOF 8397EOF
8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>&5 8399 (eval $ac_link) 2>&5
8339 ac_status=$? 8400 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8402 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8368 if test "$cross_compiling" = yes; then : 8429 if test "$cross_compiling" = yes; then :
8369 lt_cv_dlopen_self_static=cross 8430 lt_cv_dlopen_self_static=cross
8370else 8431else
8371 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8372 lt_status=$lt_dlunknown 8433 lt_status=$lt_dlunknown
8373 cat > conftest.$ac_ext <<_LT_EOF 8434 cat > conftest.$ac_ext <<EOF
8374#line 8374 "configure" 8435#line 8435 "configure"
8375#include "confdefs.h" 8436#include "confdefs.h"
8376 8437
8377#if HAVE_DLFCN_H 8438#if HAVE_DLFCN_H
8378#include <dlfcn.h> 8439#include <dlfcn.h>
8379#endif 8440#endif
8429 /* dlclose (self); */ 8490 /* dlclose (self); */
8430 } 8491 }
8431 8492
8432 exit (status); 8493 exit (status);
8433} 8494}
8434_LT_EOF 8495EOF
8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>&5 8497 (eval $ac_link) 2>&5
8437 ac_status=$? 8498 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8500 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8473 *) enable_dlopen_self_static=unknown ;; 8534 *) enable_dlopen_self_static=unknown ;;
8474 esac 8535 esac
8475fi 8536fi
8476 8537
8477 8538
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493 # Report which library types will actually be built 8539# Report which librarie types wil actually be built
8494 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8540echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8495echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8541echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8496 echo "$as_me:$LINENO: result: $can_build_shared" >&5 8542echo "$as_me:$LINENO: result: $can_build_shared" >&5
8497echo "${ECHO_T}$can_build_shared" >&6 8543echo "${ECHO_T}$can_build_shared" >&6
8498 8544
8499 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8545echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8500echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8546echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8501 test "$can_build_shared" = "no" && enable_shared=no 8547test "$can_build_shared" = "no" && enable_shared=no
8502 8548
8503 # On AIX, shared libraries and static libraries use the same namespace, and 8549# On AIX, shared libraries and static libraries use the same namespace, and
8504 # are all built from PIC. 8550# are all built from PIC.
8505 case "$host_os" in 8551case "$host_os" in
8506 aix3*) 8552aix3*)
8553 test "$enable_shared" = yes && enable_static=no
8554 if test -n "$RANLIB"; then
8555 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8556 postinstall_cmds='$RANLIB $lib'
8557 fi
8558 ;;
8559
8560aix4* | aix5*)
8561 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8507 test "$enable_shared" = yes && enable_static=no 8562 test "$enable_shared" = yes && enable_static=no
8508 if test -n "$RANLIB"; then 8563 fi
8509 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8564 ;;
8510 postinstall_cmds='$RANLIB $lib' 8565 darwin* | rhapsody*)
8566 if test "$GCC" = yes; then
8567 archive_cmds_need_lc=no
8568 case "$host_os" in
8569 rhapsody* | darwin1.[012])
8570 allow_undefined_flag='-undefined suppress'
8571 ;;
8572 *) # Darwin 1.3 on
8573 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8574 allow_undefined_flag='-flat_namespace -undefined suppress'
8575 else
8576 case ${MACOSX_DEPLOYMENT_TARGET} in
8577 10.[012])
8578 allow_undefined_flag='-flat_namespace -undefined suppress'
8579 ;;
8580 10.*)
8581 allow_undefined_flag='-undefined dynamic_lookup'
8582 ;;
8583 esac
8511 fi 8584 fi
8585 ;;
8586 esac
8587 output_verbose_link_cmd='echo'
8588 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8589 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8590 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8591 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}'
8592 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}'
8593 hardcode_direct=no
8594 hardcode_automatic=yes
8595 hardcode_shlibpath_var=unsupported
8596 whole_archive_flag_spec='-all_load $convenience'
8597 link_all_deplibs=yes
8598 else
8599 ld_shlibs=no
8600 fi
8512 ;; 8601 ;;
8602esac
8603echo "$as_me:$LINENO: result: $enable_shared" >&5
8604echo "${ECHO_T}$enable_shared" >&6
8513 8605
8514 aix4* | aix5*) 8606echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8515 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8607echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8608# Make sure either enable_shared or enable_static is yes.
8516 test "$enable_shared" = yes && enable_static=no 8609test "$enable_shared" = yes || enable_static=yes
8610echo "$as_me:$LINENO: result: $enable_static" >&5
8611echo "${ECHO_T}$enable_static" >&6
8612
8613# The else clause should only fire when bootstrapping the
8614# libtool distribution, otherwise you forgot to ship ltmain.sh
8615# with your package, and you will get complaints that there are
8616# no rules to generate ltmain.sh.
8617if test -f "$ltmain"; then
8618 # See if we are running on zsh, and set the options which allow our commands through
8619 # without removal of \ escapes.
8620 if test -n "${ZSH_VERSION+set}" ; then
8621 setopt NO_GLOB_SUBST
8517 fi 8622 fi
8623 # Now quote all the things that may contain metacharacters while being
8624 # careful not to overquote the AC_SUBSTed values. We take copies of the
8625 # variables and quote the copies for generation of the libtool script.
8626 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8627 SED SHELL STRIP \
8628 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8629 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8630 deplibs_check_method reload_flag reload_cmds need_locks \
8631 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8632 lt_cv_sys_global_symbol_to_c_name_address \
8633 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8634 old_postinstall_cmds old_postuninstall_cmds \
8635 compiler \
8636 CC \
8637 LD \
8638 lt_prog_compiler_wl \
8639 lt_prog_compiler_pic \
8640 lt_prog_compiler_static \
8641 lt_prog_compiler_no_builtin_flag \
8642 export_dynamic_flag_spec \
8643 thread_safe_flag_spec \
8644 whole_archive_flag_spec \
8645 enable_shared_with_static_runtimes \
8646 old_archive_cmds \
8647 old_archive_from_new_cmds \
8648 predep_objects \
8649 postdep_objects \
8650 predeps \
8651 postdeps \
8652 compiler_lib_search_path \
8653 archive_cmds \
8654 archive_expsym_cmds \
8655 postinstall_cmds \
8656 postuninstall_cmds \
8657 old_archive_from_expsyms_cmds \
8658 allow_undefined_flag \
8659 no_undefined_flag \
8660 export_symbols_cmds \
8661 hardcode_libdir_flag_spec \
8662 hardcode_libdir_flag_spec_ld \
8663 hardcode_libdir_separator \
8664 hardcode_automatic \
8665 module_cmds \
8666 module_expsym_cmds \
8667 lt_cv_prog_compiler_c_o \
8668 exclude_expsyms \
8669 include_expsyms; do
8670
8671 case $var in
8672 old_archive_cmds | \
8673 old_archive_from_new_cmds | \
8674 archive_cmds | \
8675 archive_expsym_cmds | \
8676 module_cmds | \
8677 module_expsym_cmds | \
8678 old_archive_from_expsyms_cmds | \
8679 export_symbols_cmds | \
8680 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8681 postinstall_cmds | postuninstall_cmds | \
8682 old_postinstall_cmds | old_postuninstall_cmds | \
8683 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8684 # Double-quote double-evaled strings.
8685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8686 ;;
8687 *)
8688 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8689 ;;
8690 esac
8691 done
8692
8693 case $lt_echo in
8694 *'\$0 --fallback-echo"')
8695 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8518 ;; 8696 ;;
8519 esac 8697 esac
8520 echo "$as_me:$LINENO: result: $enable_shared" >&5
8521echo "${ECHO_T}$enable_shared" >&6
8522 8698
8523 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8699cfgfile="${ofile}T"
8524echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8700 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8525 # Make sure either enable_shared or enable_static is yes. 8701 $rm -f "$cfgfile"
8526 test "$enable_shared" = yes || enable_static=yes 8702 { echo "$as_me:$LINENO: creating $ofile" >&5
8527 echo "$as_me:$LINENO: result: $enable_static" >&5 8703echo "$as_me: creating $ofile" >&6;}
8528echo "${ECHO_T}$enable_static" >&6
8529 8704
8705 cat <<__EOF__ >> "$cfgfile"
8706#! $SHELL
8530 8707
8708# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8709# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8710# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8711#
8712# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8713# Free Software Foundation, Inc.
8714#
8715# This file is part of GNU Libtool:
8716# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8717#
8718# This program is free software; you can redistribute it and/or modify
8719# it under the terms of the GNU General Public License as published by
8720# the Free Software Foundation; either version 2 of the License, or
8721# (at your option) any later version.
8722#
8723# This program is distributed in the hope that it will be useful, but
8724# WITHOUT ANY WARRANTY; without even the implied warranty of
8725# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8726# General Public License for more details.
8727#
8728# You should have received a copy of the GNU General Public License
8729# along with this program; if not, write to the Free Software
8730# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8731#
8732# As a special exception to the GNU General Public License, if you
8733# distribute this file as part of a program that contains a
8734# configuration script generated by Autoconf, you may include it under
8735# the same distribution terms that you use for the rest of that program.
8531 8736
8737# A sed program that does not truncate output.
8738SED=$lt_SED
8532 8739
8740# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8741Xsed="$SED -e s/^X//"
8742
8743# The HP-UX ksh and POSIX shell print the target directory to stdout
8744# if CDPATH is set.
8745if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8746
8747# The names of the tagged configurations supported by this script.
8748available_tags=
8749
8750# ### BEGIN LIBTOOL CONFIG
8751
8752# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8753
8754# Shell to use when invoking shell scripts.
8755SHELL=$lt_SHELL
8756
8757# Whether or not to build shared libraries.
8758build_libtool_libs=$enable_shared
8759
8760# Whether or not to build static libraries.
8761build_old_libs=$enable_static
8762
8763# Whether or not to add -lc for building shared libraries.
8764build_libtool_need_lc=$archive_cmds_need_lc
8765
8766# Whether or not to disallow shared libs when runtime libs are static
8767allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8768
8769# Whether or not to optimize for fast installation.
8770fast_install=$enable_fast_install
8771
8772# The host system.
8773host_alias=$host_alias
8774host=$host
8775
8776# An echo program that does not interpret backslashes.
8777echo=$lt_echo
8778
8779# The archiver.
8780AR=$lt_AR
8781AR_FLAGS=$lt_AR_FLAGS
8782
8783# A C compiler.
8784LTCC=$lt_LTCC
8785
8786# A language-specific compiler.
8787CC=$lt_compiler
8788
8789# Is the compiler the GNU C compiler?
8790with_gcc=$GCC
8791
8792# An ERE matcher.
8793EGREP=$lt_EGREP
8794
8795# The linker used to build libraries.
8796LD=$lt_LD
8797
8798# Whether we need hard or soft links.
8799LN_S=$lt_LN_S
8800
8801# A BSD-compatible nm program.
8802NM=$lt_NM
8803
8804# A symbol stripping program
8805STRIP=$lt_STRIP
8806
8807# Used to examine libraries when file_magic_cmd begins "file"
8808MAGIC_CMD=$MAGIC_CMD
8809
8810# Used on cygwin: DLL creation program.
8811DLLTOOL="$DLLTOOL"
8812
8813# Used on cygwin: object dumper.
8814OBJDUMP="$OBJDUMP"
8815
8816# Used on cygwin: assembler.
8817AS="$AS"
8818
8819# The name of the directory that contains temporary libtool files.
8820objdir=$objdir
8821
8822# How to create reloadable object files.
8823reload_flag=$lt_reload_flag
8824reload_cmds=$lt_reload_cmds
8825
8826# How to pass a linker flag through the compiler.
8827wl=$lt_lt_prog_compiler_wl
8828
8829# Object file suffix (normally "o").
8830objext="$ac_objext"
8831
8832# Old archive suffix (normally "a").
8833libext="$libext"
8834
8835# Shared library suffix (normally ".so").
8836shrext_cmds='$shrext_cmds'
8837
8838# Executable file suffix (normally "").
8839exeext="$exeext"
8840
8841# Additional compiler flags for building library objects.
8842pic_flag=$lt_lt_prog_compiler_pic
8843pic_mode=$pic_mode
8844
8845# What is the maximum length of a command?
8846max_cmd_len=$lt_cv_sys_max_cmd_len
8847
8848# Does compiler simultaneously support -c and -o options?
8849compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8850
8851# Must we lock files when doing compilation ?
8852need_locks=$lt_need_locks
8853
8854# Do we need the lib prefix for modules?
8855need_lib_prefix=$need_lib_prefix
8856
8857# Do we need a version for libraries?
8858need_version=$need_version
8859
8860# Whether dlopen is supported.
8861dlopen_support=$enable_dlopen
8862
8863# Whether dlopen of programs is supported.
8864dlopen_self=$enable_dlopen_self
8865
8866# Whether dlopen of statically linked programs is supported.
8867dlopen_self_static=$enable_dlopen_self_static
8868
8869# Compiler flag to prevent dynamic linking.
8870link_static_flag=$lt_lt_prog_compiler_static
8871
8872# Compiler flag to turn off builtin functions.
8873no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8874
8875# Compiler flag to allow reflexive dlopens.
8876export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8877
8878# Compiler flag to generate shared objects directly from archives.
8879whole_archive_flag_spec=$lt_whole_archive_flag_spec
8880
8881# Compiler flag to generate thread-safe objects.
8882thread_safe_flag_spec=$lt_thread_safe_flag_spec
8883
8884# Library versioning type.
8885version_type=$version_type
8886
8887# Format of library name prefix.
8888libname_spec=$lt_libname_spec
8889
8890# List of archive names. First name is the real one, the rest are links.
8891# The last name is the one that the linker finds with -lNAME.
8892library_names_spec=$lt_library_names_spec
8893
8894# The coded name of the library, if different from the real name.
8895soname_spec=$lt_soname_spec
8896
8897# Commands used to build and install an old-style archive.
8898RANLIB=$lt_RANLIB
8899old_archive_cmds=$lt_old_archive_cmds
8900old_postinstall_cmds=$lt_old_postinstall_cmds
8901old_postuninstall_cmds=$lt_old_postuninstall_cmds
8902
8903# Create an old-style archive from a shared archive.
8904old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8905
8906# Create a temporary old-style archive to link instead of a shared archive.
8907old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8908
8909# Commands used to build and install a shared archive.
8910archive_cmds=$lt_archive_cmds
8911archive_expsym_cmds=$lt_archive_expsym_cmds
8912postinstall_cmds=$lt_postinstall_cmds
8913postuninstall_cmds=$lt_postuninstall_cmds
8914
8915# Commands used to build a loadable module (assumed same as above if empty)
8916module_cmds=$lt_module_cmds
8917module_expsym_cmds=$lt_module_expsym_cmds
8918
8919# Commands to strip libraries.
8920old_striplib=$lt_old_striplib
8921striplib=$lt_striplib
8922
8923# Dependencies to place before the objects being linked to create a
8924# shared library.
8925predep_objects=$lt_predep_objects
8926
8927# Dependencies to place after the objects being linked to create a
8928# shared library.
8929postdep_objects=$lt_postdep_objects
8930
8931# Dependencies to place before the objects being linked to create a
8932# shared library.
8933predeps=$lt_predeps
8934
8935# Dependencies to place after the objects being linked to create a
8936# shared library.
8937postdeps=$lt_postdeps
8938
8939# The library search path used internally by the compiler when linking
8940# a shared library.
8941compiler_lib_search_path=$lt_compiler_lib_search_path
8942
8943# Method to check whether dependent libraries are shared objects.
8944deplibs_check_method=$lt_deplibs_check_method
8945
8946# Command to use when deplibs_check_method == file_magic.
8947file_magic_cmd=$lt_file_magic_cmd
8948
8949# Flag that allows shared libraries with undefined symbols to be built.
8950allow_undefined_flag=$lt_allow_undefined_flag
8951
8952# Flag that forces no undefined symbols.
8953no_undefined_flag=$lt_no_undefined_flag
8954
8955# Commands used to finish a libtool library installation in a directory.
8956finish_cmds=$lt_finish_cmds
8957
8958# Same as above, but a single script fragment to be evaled but not shown.
8959finish_eval=$lt_finish_eval
8960
8961# Take the output of nm and produce a listing of raw symbols and C names.
8962global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8963
8964# Transform the output of nm in a proper C declaration
8965global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8966
8967# Transform the output of nm in a C name address pair
8968global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8969
8970# This is the shared library runtime path variable.
8971runpath_var=$runpath_var
8972
8973# This is the shared library path variable.
8974shlibpath_var=$shlibpath_var
8975
8976# Is shlibpath searched before the hard-coded library search path?
8977shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8978
8979# How to hardcode a shared library path into an executable.
8980hardcode_action=$hardcode_action
8981
8982# Whether we should hardcode library paths into libraries.
8983hardcode_into_libs=$hardcode_into_libs
8984
8985# Flag to hardcode \$libdir into a binary during linking.
8986# This must work even if \$libdir does not exist.
8987hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8988
8989# If ld is used when linking, flag to hardcode \$libdir into
8990# a binary during linking. This must work even if \$libdir does
8991# not exist.
8992hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8993
8994# Whether we need a single -rpath flag with a separated argument.
8995hardcode_libdir_separator=$lt_hardcode_libdir_separator
8996
8997# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8998# resulting binary.
8999hardcode_direct=$hardcode_direct
9000
9001# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9002# resulting binary.
9003hardcode_minus_L=$hardcode_minus_L
9004
9005# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9006# the resulting binary.
9007hardcode_shlibpath_var=$hardcode_shlibpath_var
9008
9009# Set to yes if building a shared library automatically hardcodes DIR into the library
9010# and all subsequent libraries and executables linked against it.
9011hardcode_automatic=$hardcode_automatic
9012
9013# Variables whose values should be saved in libtool wrapper scripts and
9014# restored at relink time.
9015variables_saved_for_relink="$variables_saved_for_relink"
9016
9017# Whether libtool must link a program against all its dependency libraries.
9018link_all_deplibs=$link_all_deplibs
9019
9020# Compile-time system search path for libraries
9021sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9022
9023# Run-time system search path for libraries
9024sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9025
9026# Fix the shell variable \$srcfile for the compiler.
9027fix_srcfile_path="$fix_srcfile_path"
9028
9029# Set to yes if exported symbols are required.
9030always_export_symbols=$always_export_symbols
9031
9032# The commands to list exported symbols.
9033export_symbols_cmds=$lt_export_symbols_cmds
9034
9035# The commands to extract the exported symbol list from a shared archive.
9036extract_expsyms_cmds=$lt_extract_expsyms_cmds
9037
9038# Symbols that should not be listed in the preloaded symbols.
9039exclude_expsyms=$lt_exclude_expsyms
9040
9041# Symbols that must always be exported.
9042include_expsyms=$lt_include_expsyms
9043
9044# ### END LIBTOOL CONFIG
9045
9046__EOF__
9047
9048
9049 case $host_os in
9050 aix3*)
9051 cat <<\EOF >> "$cfgfile"
9052
9053# AIX sometimes has problems with the GCC collect2 program. For some
9054# reason, if we set the COLLECT_NAMES environment variable, the problems
9055# vanish in a puff of smoke.
9056if test "X${COLLECT_NAMES+set}" != Xset; then
9057 COLLECT_NAMES=
9058 export COLLECT_NAMES
8533fi 9059fi
9060EOF
9061 ;;
9062 esac
9063
9064 # We use sed instead of cat because bash on DJGPP gets confused if
9065 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9066 # text mode, it properly converts lines to CR/LF. This bash problem
9067 # is reportedly fixed, but why not run on old versions too?
9068 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9069
9070 mv -f "$cfgfile" "$ofile" || \
9071 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9072 chmod +x "$ofile"
9073
9074else
9075 # If there is no Makefile yet, we rely on a make rule to execute
9076 # `config.status --recheck' to rerun these tests and create the
9077 # libtool script then.
9078 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9079 if test -f "$ltmain_in"; then
9080 test -f Makefile && make "$ltmain"
9081 fi
9082fi
9083
9084
8534ac_ext=c 9085ac_ext=c
8535ac_cpp='$CPP $CPPFLAGS' 9086ac_cpp='$CPP $CPPFLAGS'
8536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8538ac_compiler_gnu=$ac_cv_c_compiler_gnu 9089ac_compiler_gnu=$ac_cv_c_compiler_gnu
8539 9090
8540CC="$lt_save_CC" 9091CC="$lt_save_CC"
8541 9092
8542 9093
9094# Check whether --with-tags or --without-tags was given.
9095if test "${with_tags+set}" = set; then
9096 withval="$with_tags"
9097 tagnames="$withval"
9098fi;
8543 9099
9100if test -f "$ltmain" && test -n "$tagnames"; then
9101 if test ! -f "${ofile}"; then
9102 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9103echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9104 fi
8544 9105
9106 if test -z "$LTCC"; then
9107 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9108 if test -z "$LTCC"; then
9109 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9110echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9111 else
9112 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9113echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9114 fi
9115 fi
8545 9116
9117 # Extract list of available tagged configurations in $ofile.
9118 # Note that this assumes the entire list is on one line.
9119 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8546 9120
9121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9122 for tagname in $tagnames; do
9123 IFS="$lt_save_ifs"
9124 # Check whether tagname contains only valid characters
9125 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9126 "") ;;
9127 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9128echo "$as_me: error: invalid tag name: $tagname" >&2;}
9129 { (exit 1); exit 1; }; }
9130 ;;
9131 esac
8547 9132
9133 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9134 then
9135 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9136echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9137 { (exit 1); exit 1; }; }
9138 fi
8548 9139
9140 # Update the list of available tags.
9141 if test -n "$tagname"; then
9142 echo appending configuration tag \"$tagname\" to $ofile
8549 9143
9144 case $tagname in
9145 CXX)
9146 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9147 ac_ext=cc
9148ac_cpp='$CXXCPP $CPPFLAGS'
9149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8550 9152
8551 9153
8552 ac_config_commands="$ac_config_commands libtool"
8553 9154
8554 9155
9156archive_cmds_need_lc_CXX=no
9157allow_undefined_flag_CXX=
9158always_export_symbols_CXX=no
9159archive_expsym_cmds_CXX=
9160export_dynamic_flag_spec_CXX=
9161hardcode_direct_CXX=no
9162hardcode_libdir_flag_spec_CXX=
9163hardcode_libdir_flag_spec_ld_CXX=
9164hardcode_libdir_separator_CXX=
9165hardcode_minus_L_CXX=no
9166hardcode_automatic_CXX=no
9167module_cmds_CXX=
9168module_expsym_cmds_CXX=
9169link_all_deplibs_CXX=unknown
9170old_archive_cmds_CXX=$old_archive_cmds
9171no_undefined_flag_CXX=
9172whole_archive_flag_spec_CXX=
9173enable_shared_with_static_runtimes_CXX=no
8555 9174
9175# Dependencies to place before and after the object being linked:
9176predep_objects_CXX=
9177postdep_objects_CXX=
9178predeps_CXX=
9179postdeps_CXX=
9180compiler_lib_search_path_CXX=
8556 9181
8557# Only expand once: 9182# Source file extension for C++ test sources.
9183ac_ext=cc
9184
9185# Object file extension for compiled C++ test sources.
9186objext=o
9187objext_CXX=$objext
9188
9189# Code to be used in simple compile tests
9190lt_simple_compile_test_code="int some_variable = 0;\n"
9191
9192# Code to be used in simple link tests
9193lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9194
9195# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9196
9197# If no C compiler was specified, use CC.
9198LTCC=${LTCC-"$CC"}
9199
9200# Allow CC to be a program name with arguments.
9201compiler=$CC
9202
9203
9204# Allow CC to be a program name with arguments.
9205lt_save_CC=$CC
9206lt_save_LD=$LD
9207lt_save_GCC=$GCC
9208GCC=$GXX
9209lt_save_with_gnu_ld=$with_gnu_ld
9210lt_save_path_LD=$lt_cv_path_LD
9211if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9212 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9213else
9214 unset lt_cv_prog_gnu_ld
9215fi
9216if test -n "${lt_cv_path_LDCXX+set}"; then
9217 lt_cv_path_LD=$lt_cv_path_LDCXX
9218else
9219 unset lt_cv_path_LD
9220fi
9221test -z "${LDCXX+set}" || LD=$LDCXX
9222CC=${CXX-"c++"}
9223compiler=$CC
9224compiler_CXX=$CC
9225cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9226
9227# We don't want -fno-exception wen compiling C++ code, so set the
9228# no_builtin_flag separately
9229if test "$GXX" = yes; then
9230 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9231else
9232 lt_prog_compiler_no_builtin_flag_CXX=
9233fi
9234
9235if test "$GXX" = yes; then
9236 # Set up default GNU C++ configuration
9237
9238
9239# Check whether --with-gnu-ld or --without-gnu-ld was given.
9240if test "${with_gnu_ld+set}" = set; then
9241 withval="$with_gnu_ld"
9242 test "$withval" = no || with_gnu_ld=yes
9243else
9244 with_gnu_ld=no
9245fi;
9246ac_prog=ld
9247if test "$GCC" = yes; then
9248 # Check if gcc -print-prog-name=ld gives a path.
9249 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9250echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9251 case $host in
9252 *-*-mingw*)
9253 # gcc leaves a trailing carriage return which upsets mingw
9254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9255 *)
9256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9257 esac
9258 case $ac_prog in
9259 # Accept absolute paths.
9260 [\\/]* | ?:[\\/]*)
9261 re_direlt='/[^/][^/]*/\.\./'
9262 # Canonicalize the pathname of ld
9263 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9264 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9265 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9266 done
9267 test -z "$LD" && LD="$ac_prog"
9268 ;;
9269 "")
9270 # If it fails, then pretend we aren't using GCC.
9271 ac_prog=ld
9272 ;;
9273 *)
9274 # If it is relative, then search for the first ld in PATH.
9275 with_gnu_ld=unknown
9276 ;;
9277 esac
9278elif test "$with_gnu_ld" = yes; then
9279 echo "$as_me:$LINENO: checking for GNU ld" >&5
9280echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9281else
9282 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9283echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9284fi
9285if test "${lt_cv_path_LD+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9287else
9288 if test -z "$LD"; then
9289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9290 for ac_dir in $PATH; do
9291 IFS="$lt_save_ifs"
9292 test -z "$ac_dir" && ac_dir=.
9293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9294 lt_cv_path_LD="$ac_dir/$ac_prog"
9295 # Check to see if the program is GNU ld. I'd rather use --version,
9296 # but apparently some GNU ld's only accept -v.
9297 # Break only if it was the GNU/non-GNU ld that we prefer.
9298 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9299 *GNU* | *'with BFD'*)
9300 test "$with_gnu_ld" != no && break
9301 ;;
9302 *)
9303 test "$with_gnu_ld" != yes && break
9304 ;;
9305 esac
9306 fi
9307 done
9308 IFS="$lt_save_ifs"
9309else
9310 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9311fi
9312fi
9313
9314LD="$lt_cv_path_LD"
9315if test -n "$LD"; then
9316 echo "$as_me:$LINENO: result: $LD" >&5
9317echo "${ECHO_T}$LD" >&6
9318else
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
9321fi
9322test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9323echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9324 { (exit 1); exit 1; }; }
9325echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9326echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9327if test "${lt_cv_prog_gnu_ld+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329else
9330 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9331case `$LD -v 2>&1 </dev/null` in
9332*GNU* | *'with BFD'*)
9333 lt_cv_prog_gnu_ld=yes
9334 ;;
9335*)
9336 lt_cv_prog_gnu_ld=no
9337 ;;
9338esac
9339fi
9340echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9341echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9342with_gnu_ld=$lt_cv_prog_gnu_ld
9343
9344
9345
9346 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9347 # archiving commands below assume that GNU ld is being used.
9348 if test "$with_gnu_ld" = yes; then
9349 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 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'
9351
9352 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9354
9355 # If archive_cmds runs LD, not CC, wlarc should be empty
9356 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9357 # investigate it a little bit more. (MM)
9358 wlarc='${wl}'
9359
9360 # ancient GNU ld didn't support --whole-archive et. al.
9361 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9362 grep 'no-whole-archive' > /dev/null; then
9363 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9364 else
9365 whole_archive_flag_spec_CXX=
9366 fi
9367 else
9368 with_gnu_ld=no
9369 wlarc=
9370
9371 # A generic and very simple default shared library creation
9372 # command for GNU C++ for the case where it uses the native
9373 # linker, instead of GNU ld. If possible, this setting should
9374 # overridden to take advantage of the native linker features on
9375 # the platform it is being used on.
9376 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9377 fi
9378
9379 # Commands to make compiler produce verbose output that lists
9380 # what "hidden" libraries, object files and flags are used when
9381 # linking a shared library.
9382 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9383
9384else
9385 GXX=no
9386 with_gnu_ld=no
9387 wlarc=
9388fi
9389
9390# PORTME: fill in a description of your system's C++ link characteristics
9391echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9392echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9393ld_shlibs_CXX=yes
9394case $host_os in
9395 aix3*)
9396 # FIXME: insert proper C++ library support
9397 ld_shlibs_CXX=no
9398 ;;
9399 aix4* | aix5*)
9400 if test "$host_cpu" = ia64; then
9401 # On IA64, the linker does run time linking by default, so we don't
9402 # have to do anything special.
9403 aix_use_runtimelinking=no
9404 exp_sym_flag='-Bexport'
9405 no_entry_flag=""
9406 else
9407 aix_use_runtimelinking=no
9408
9409 # Test if we are trying to use run time linking or normal
9410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9411 # need to do runtime linking.
9412 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9413 for ld_flag in $LDFLAGS; do
9414 case $ld_flag in
9415 *-brtl*)
9416 aix_use_runtimelinking=yes
9417 break
9418 ;;
9419 esac
9420 done
9421 esac
9422
9423 exp_sym_flag='-bexport'
9424 no_entry_flag='-bnoentry'
9425 fi
9426
9427 # When large executables or shared objects are built, AIX ld can
9428 # have problems creating the table of contents. If linking a library
9429 # or program results in "error TOC overflow" add -mminimal-toc to
9430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9432
9433 archive_cmds_CXX=''
9434 hardcode_direct_CXX=yes
9435 hardcode_libdir_separator_CXX=':'
9436 link_all_deplibs_CXX=yes
9437
9438 if test "$GXX" = yes; then
9439 case $host_os in aix4.012|aix4.012.*)
9440 # We only want to do this on AIX 4.2 and lower, the check
9441 # below for broken collect2 doesn't work under 4.3+
9442 collect2name=`${CC} -print-prog-name=collect2`
9443 if test -f "$collect2name" && \
9444 strings "$collect2name" | grep resolve_lib_name >/dev/null
9445 then
9446 # We have reworked collect2
9447 hardcode_direct_CXX=yes
9448 else
9449 # We have old collect2
9450 hardcode_direct_CXX=unsupported
9451 # It fails to find uninstalled libraries when the uninstalled
9452 # path is not listed in the libpath. Setting hardcode_minus_L
9453 # to unsupported forces relinking
9454 hardcode_minus_L_CXX=yes
9455 hardcode_libdir_flag_spec_CXX='-L$libdir'
9456 hardcode_libdir_separator_CXX=
9457 fi
9458 esac
9459 shared_flag='-shared'
9460 else
9461 # not using gcc
9462 if test "$host_cpu" = ia64; then
9463 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9464 # chokes on -Wl,-G. The following line is correct:
9465 shared_flag='-G'
9466 else
9467 if test "$aix_use_runtimelinking" = yes; then
9468 shared_flag='${wl}-G'
9469 else
9470 shared_flag='${wl}-bM:SRE'
9471 fi
9472 fi
9473 fi
9474
9475 # It seems that -bexpall does not export symbols beginning with
9476 # underscore (_), so it is better to generate a list of symbols to export.
9477 always_export_symbols_CXX=yes
9478 if test "$aix_use_runtimelinking" = yes; then
9479 # Warning - without using the other runtime loading flags (-brtl),
9480 # -berok will link without error, but may produce a broken library.
9481 allow_undefined_flag_CXX='-berok'
9482 # Determine the default libpath from the value encoded in an empty executable.
9483 cat >conftest.$ac_ext <<_ACEOF
9484/* confdefs.h. */
9485_ACEOF
9486cat confdefs.h >>conftest.$ac_ext
9487cat >>conftest.$ac_ext <<_ACEOF
9488/* end confdefs.h. */
9489
9490int
9491main ()
9492{
9493
9494 ;
9495 return 0;
9496}
9497_ACEOF
9498rm -f conftest.$ac_objext conftest$ac_exeext
9499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500 (eval $ac_link) 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } &&
9513 { ac_try='test -s conftest$ac_exeext'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519
9520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9521}'`
9522# Check for a 64-bit object if we didn't find anything.
9523if 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; }
9524}'`; fi
9525else
9526 echo "$as_me: failed program was:" >&5
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
9529fi
9530rm -f conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9533
9534 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9535
9536 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"
9537 else
9538 if test "$host_cpu" = ia64; then
9539 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9540 allow_undefined_flag_CXX="-z nodefs"
9541 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"
9542 else
9543 # Determine the default libpath from the value encoded in an empty executable.
9544 cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h. */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h. */
9550
9551int
9552main ()
9553{
9554
9555 ;
9556 return 0;
9557}
9558_ACEOF
9559rm -f conftest.$ac_objext conftest$ac_exeext
9560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580
9581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9582}'`
9583# Check for a 64-bit object if we didn't find anything.
9584if 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; }
9585}'`; fi
9586else
9587 echo "$as_me: failed program was:" >&5
9588sed 's/^/| /' conftest.$ac_ext >&5
9589
9590fi
9591rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9594
9595 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9596 # Warning - without using the other run time loading flags,
9597 # -berok will link without error, but may produce a broken library.
9598 no_undefined_flag_CXX=' ${wl}-bernotok'
9599 allow_undefined_flag_CXX=' ${wl}-berok'
9600 # -bexpall does not export symbols beginning with underscore (_)
9601 always_export_symbols_CXX=yes
9602 # Exported symbols can be pulled into shared objects from archives
9603 whole_archive_flag_spec_CXX=' '
9604 archive_cmds_need_lc_CXX=yes
9605 # This is similar to how AIX traditionally builds it's shared libraries.
9606 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'
9607 fi
9608 fi
9609 ;;
9610 chorus*)
9611 case $cc_basename in
9612 *)
9613 # FIXME: insert proper C++ library support
9614 ld_shlibs_CXX=no
9615 ;;
9616 esac
9617 ;;
9618
9619 cygwin* | mingw* | pw32*)
9620 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9621 # as there is no search path for DLLs.
9622 hardcode_libdir_flag_spec_CXX='-L$libdir'
9623 allow_undefined_flag_CXX=unsupported
9624 always_export_symbols_CXX=no
9625 enable_shared_with_static_runtimes_CXX=yes
9626
9627 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9628 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'
9629 # If the export-symbols file already is a .def file (1st line
9630 # is EXPORTS), use it as is; otherwise, prepend...
9631 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9632 cp $export_symbols $output_objdir/$soname.def;
9633 else
9634 echo EXPORTS > $output_objdir/$soname.def;
9635 cat $export_symbols >> $output_objdir/$soname.def;
9636 fi~
9637 $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'
9638 else
9639 ld_shlibs_CXX=no
9640 fi
9641 ;;
9642
9643 darwin* | rhapsody*)
9644 if test "$GXX" = yes; then
9645 archive_cmds_need_lc_CXX=no
9646 case "$host_os" in
9647 rhapsody* | darwin1.[012])
9648 allow_undefined_flag_CXX='-undefined suppress'
9649 ;;
9650 *) # Darwin 1.3 on
9651 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9652 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9653 else
9654 case ${MACOSX_DEPLOYMENT_TARGET} in
9655 10.[012])
9656 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9657 ;;
9658 10.*)
9659 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9660 ;;
9661 esac
9662 fi
9663 ;;
9664 esac
9665 lt_int_apple_cc_single_mod=no
9666 output_verbose_link_cmd='echo'
9667 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9668 lt_int_apple_cc_single_mod=yes
9669 fi
9670 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9671 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9672 else
9673 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'
9674 fi
9675 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9676
9677 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9678 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9679 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}'
9680 else
9681 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}'
9682 fi
9683 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}'
9684 hardcode_direct_CXX=no
9685 hardcode_automatic_CXX=yes
9686 hardcode_shlibpath_var_CXX=unsupported
9687 whole_archive_flag_spec_CXX='-all_load $convenience'
9688 link_all_deplibs_CXX=yes
9689 else
9690 ld_shlibs_CXX=no
9691 fi
9692 ;;
9693
9694 dgux*)
9695 case $cc_basename in
9696 ec++)
9697 # FIXME: insert proper C++ library support
9698 ld_shlibs_CXX=no
9699 ;;
9700 ghcx)
9701 # Green Hills C++ Compiler
9702 # FIXME: insert proper C++ library support
9703 ld_shlibs_CXX=no
9704 ;;
9705 *)
9706 # FIXME: insert proper C++ library support
9707 ld_shlibs_CXX=no
9708 ;;
9709 esac
9710 ;;
9711 freebsd12*)
9712 # C++ shared libraries reported to be fairly broken before switch to ELF
9713 ld_shlibs_CXX=no
9714 ;;
9715 freebsd-elf*)
9716 archive_cmds_need_lc_CXX=no
9717 ;;
9718 freebsd* | kfreebsd*-gnu)
9719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9720 # conventions
9721 ld_shlibs_CXX=yes
9722 ;;
9723 gnu*)
9724 ;;
9725 hpux9*)
9726 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9727 hardcode_libdir_separator_CXX=:
9728 export_dynamic_flag_spec_CXX='${wl}-E'
9729 hardcode_direct_CXX=yes
9730 hardcode_minus_L_CXX=yes # Not in the search PATH,
9731 # but as the default
9732 # location of the library.
9733
9734 case $cc_basename in
9735 CC)
9736 # FIXME: insert proper C++ library support
9737 ld_shlibs_CXX=no
9738 ;;
9739 aCC)
9740 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'
9741 # Commands to make compiler produce verbose output that lists
9742 # what "hidden" libraries, object files and flags are used when
9743 # linking a shared library.
9744 #
9745 # There doesn't appear to be a way to prevent this compiler from
9746 # explicitly linking system object files so we need to strip them
9747 # from the output so that they don't get included in the library
9748 # dependencies.
9749 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'
9750 ;;
9751 *)
9752 if test "$GXX" = yes; then
9753 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'
9754 else
9755 # FIXME: insert proper C++ library support
9756 ld_shlibs_CXX=no
9757 fi
9758 ;;
9759 esac
9760 ;;
9761 hpux10*|hpux11*)
9762 if test $with_gnu_ld = no; then
9763 case "$host_cpu" in
9764 hppa*64*)
9765 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9766 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9767 hardcode_libdir_separator_CXX=:
9768 ;;
9769 ia64*)
9770 hardcode_libdir_flag_spec_CXX='-L$libdir'
9771 ;;
9772 *)
9773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9774 hardcode_libdir_separator_CXX=:
9775 export_dynamic_flag_spec_CXX='${wl}-E'
9776 ;;
9777 esac
9778 fi
9779 case "$host_cpu" in
9780 hppa*64*)
9781 hardcode_direct_CXX=no
9782 hardcode_shlibpath_var_CXX=no
9783 ;;
9784 ia64*)
9785 hardcode_direct_CXX=no
9786 hardcode_shlibpath_var_CXX=no
9787 hardcode_minus_L_CXX=yes # Not in the search PATH,
9788 # but as the default
9789 # location of the library.
9790 ;;
9791 *)
9792 hardcode_direct_CXX=yes
9793 hardcode_minus_L_CXX=yes # Not in the search PATH,
9794 # but as the default
9795 # location of the library.
9796 ;;
9797 esac
9798
9799 case $cc_basename in
9800 CC)
9801 # FIXME: insert proper C++ library support
9802 ld_shlibs_CXX=no
9803 ;;
9804 aCC)
9805 case "$host_cpu" in
9806 hppa*64*|ia64*)
9807 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9808 ;;
9809 *)
9810 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9811 ;;
9812 esac
9813 # Commands to make compiler produce verbose output that lists
9814 # what "hidden" libraries, object files and flags are used when
9815 # linking a shared library.
9816 #
9817 # There doesn't appear to be a way to prevent this compiler from
9818 # explicitly linking system object files so we need to strip them
9819 # from the output so that they don't get included in the library
9820 # dependencies.
9821 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'
9822 ;;
9823 *)
9824 if test "$GXX" = yes; then
9825 if test $with_gnu_ld = no; then
9826 case "$host_cpu" in
9827 ia64*|hppa*64*)
9828 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9829 ;;
9830 *)
9831 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'
9832 ;;
9833 esac
9834 fi
9835 else
9836 # FIXME: insert proper C++ library support
9837 ld_shlibs_CXX=no
9838 fi
9839 ;;
9840 esac
9841 ;;
9842 irix5* | irix6*)
9843 case $cc_basename in
9844 CC)
9845 # SGI C++
9846 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'
9847
9848 # Archives containing C++ object files must be created using
9849 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9850 # necessary to make sure instantiated templates are included
9851 # in the archive.
9852 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9853 ;;
9854 *)
9855 if test "$GXX" = yes; then
9856 if test "$with_gnu_ld" = no; then
9857 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'
9858 else
9859 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'
9860 fi
9861 fi
9862 link_all_deplibs_CXX=yes
9863 ;;
9864 esac
9865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9866 hardcode_libdir_separator_CXX=:
9867 ;;
9868 linux*)
9869 case $cc_basename in
9870 KCC)
9871 # Kuck and Associates, Inc. (KAI) C++ Compiler
9872
9873 # KCC will only create a shared library if the output file
9874 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9875 # to its proper name (with version) after linking.
9876 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'
9877 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'
9878 # Commands to make compiler produce verbose output that lists
9879 # what "hidden" libraries, object files and flags are used when
9880 # linking a shared library.
9881 #
9882 # There doesn't appear to be a way to prevent this compiler from
9883 # explicitly linking system object files so we need to strip them
9884 # from the output so that they don't get included in the library
9885 # dependencies.
9886 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'
9887
9888 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9890
9891 # Archives containing C++ object files must be created using
9892 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9893 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9894 ;;
9895 icpc)
9896 # Intel C++
9897 with_gnu_ld=yes
9898 archive_cmds_need_lc_CXX=no
9899 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9900 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'
9901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9902 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9903 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9904 ;;
9905 cxx)
9906 # Compaq C++
9907 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9908 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'
9909
9910 runpath_var=LD_RUN_PATH
9911 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9912 hardcode_libdir_separator_CXX=:
9913
9914 # Commands to make compiler produce verbose output that lists
9915 # what "hidden" libraries, object files and flags are used when
9916 # linking a shared library.
9917 #
9918 # There doesn't appear to be a way to prevent this compiler from
9919 # explicitly linking system object files so we need to strip them
9920 # from the output so that they don't get included in the library
9921 # dependencies.
9922 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'
9923 ;;
9924 esac
9925 ;;
9926 lynxos*)
9927 # FIXME: insert proper C++ library support
9928 ld_shlibs_CXX=no
9929 ;;
9930 m88k*)
9931 # FIXME: insert proper C++ library support
9932 ld_shlibs_CXX=no
9933 ;;
9934 mvs*)
9935 case $cc_basename in
9936 cxx)
9937 # FIXME: insert proper C++ library support
9938 ld_shlibs_CXX=no
9939 ;;
9940 *)
9941 # FIXME: insert proper C++ library support
9942 ld_shlibs_CXX=no
9943 ;;
9944 esac
9945 ;;
9946 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
9947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9948 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9949 wlarc=
9950 hardcode_libdir_flag_spec_CXX='-R$libdir'
9951 hardcode_direct_CXX=yes
9952 hardcode_shlibpath_var_CXX=no
9953 fi
9954 # Workaround some broken pre-1.5 toolchains
9955 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9956 ;;
9957 osf3*)
9958 case $cc_basename in
9959 KCC)
9960 # Kuck and Associates, Inc. (KAI) C++ Compiler
9961
9962 # KCC will only create a shared library if the output file
9963 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9964 # to its proper name (with version) after linking.
9965 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'
9966
9967 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9968 hardcode_libdir_separator_CXX=:
9969
9970 # Archives containing C++ object files must be created using
9971 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9972 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9973
9974 ;;
9975 RCC)
9976 # Rational C++ 2.4.1
9977 # FIXME: insert proper C++ library support
9978 ld_shlibs_CXX=no
9979 ;;
9980 cxx)
9981 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9982 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'
9983
9984 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9985 hardcode_libdir_separator_CXX=:
9986
9987 # Commands to make compiler produce verbose output that lists
9988 # what "hidden" libraries, object files and flags are used when
9989 # linking a shared library.
9990 #
9991 # There doesn't appear to be a way to prevent this compiler from
9992 # explicitly linking system object files so we need to strip them
9993 # from the output so that they don't get included in the library
9994 # dependencies.
9995 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'
9996 ;;
9997 *)
9998 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9999 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10000 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'
10001
10002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10003 hardcode_libdir_separator_CXX=:
10004
10005 # Commands to make compiler produce verbose output that lists
10006 # what "hidden" libraries, object files and flags are used when
10007 # linking a shared library.
10008 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10009
10010 else
10011 # FIXME: insert proper C++ library support
10012 ld_shlibs_CXX=no
10013 fi
10014 ;;
10015 esac
10016 ;;
10017 osf4* | osf5*)
10018 case $cc_basename in
10019 KCC)
10020 # Kuck and Associates, Inc. (KAI) C++ Compiler
10021
10022 # KCC will only create a shared library if the output file
10023 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10024 # to its proper name (with version) after linking.
10025 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'
10026
10027 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10028 hardcode_libdir_separator_CXX=:
10029
10030 # Archives containing C++ object files must be created using
10031 # the KAI C++ compiler.
10032 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10033 ;;
10034 RCC)
10035 # Rational C++ 2.4.1
10036 # FIXME: insert proper C++ library support
10037 ld_shlibs_CXX=no
10038 ;;
10039 cxx)
10040 allow_undefined_flag_CXX=' -expect_unresolved \*'
10041 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'
10042 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10043 echo "-hidden">> $lib.exp~
10044 $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~
10045 $rm $lib.exp'
10046
10047 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10048 hardcode_libdir_separator_CXX=:
10049
10050 # Commands to make compiler produce verbose output that lists
10051 # what "hidden" libraries, object files and flags are used when
10052 # linking a shared library.
10053 #
10054 # There doesn't appear to be a way to prevent this compiler from
10055 # explicitly linking system object files so we need to strip them
10056 # from the output so that they don't get included in the library
10057 # dependencies.
10058 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'
10059 ;;
10060 *)
10061 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10062 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10063 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'
10064
10065 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10066 hardcode_libdir_separator_CXX=:
10067
10068 # Commands to make compiler produce verbose output that lists
10069 # what "hidden" libraries, object files and flags are used when
10070 # linking a shared library.
10071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10072
10073 else
10074 # FIXME: insert proper C++ library support
10075 ld_shlibs_CXX=no
10076 fi
10077 ;;
10078 esac
10079 ;;
10080 psos*)
10081 # FIXME: insert proper C++ library support
10082 ld_shlibs_CXX=no
10083 ;;
10084 sco*)
10085 archive_cmds_need_lc_CXX=no
10086 case $cc_basename in
10087 CC)
10088 # FIXME: insert proper C++ library support
10089 ld_shlibs_CXX=no
10090 ;;
10091 *)
10092 # FIXME: insert proper C++ library support
10093 ld_shlibs_CXX=no
10094 ;;
10095 esac
10096 ;;
10097 sunos4*)
10098 case $cc_basename in
10099 CC)
10100 # Sun C++ 4.x
10101 # FIXME: insert proper C++ library support
10102 ld_shlibs_CXX=no
10103 ;;
10104 lcc)
10105 # Lucid
10106 # FIXME: insert proper C++ library support
10107 ld_shlibs_CXX=no
10108 ;;
10109 *)
10110 # FIXME: insert proper C++ library support
10111 ld_shlibs_CXX=no
10112 ;;
10113 esac
10114 ;;
10115 solaris*)
10116 case $cc_basename in
10117 CC)
10118 # Sun C++ 4.2, 5.x and Centerline C++
10119 no_undefined_flag_CXX=' -zdefs'
10120 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10121 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10122 $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'
10123
10124 hardcode_libdir_flag_spec_CXX='-R$libdir'
10125 hardcode_shlibpath_var_CXX=no
10126 case $host_os in
10127 solaris2.0-5 | solaris2.0-5.*) ;;
10128 *)
10129 # The C++ compiler is used as linker so we must use $wl
10130 # flag to pass the commands to the underlying system
10131 # linker.
10132 # Supported since Solaris 2.6 (maybe 2.5.1?)
10133 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10134 ;;
10135 esac
10136 link_all_deplibs_CXX=yes
10137
10138 # Commands to make compiler produce verbose output that lists
10139 # what "hidden" libraries, object files and flags are used when
10140 # linking a shared library.
10141 #
10142 # There doesn't appear to be a way to prevent this compiler from
10143 # explicitly linking system object files so we need to strip them
10144 # from the output so that they don't get included in the library
10145 # dependencies.
10146 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'
10147
10148 # Archives containing C++ object files must be created using
10149 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10150 # necessary to make sure instantiated templates are included
10151 # in the archive.
10152 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10153 ;;
10154 gcx)
10155 # Green Hills C++ Compiler
10156 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10157
10158 # The C++ compiler must be used to create the archive.
10159 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10160 ;;
10161 *)
10162 # GNU C++ compiler with Solaris linker
10163 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10164 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10165 if $CC --version | grep -v '^2\.7' > /dev/null; then
10166 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10167 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10168 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10169
10170 # Commands to make compiler produce verbose output that lists
10171 # what "hidden" libraries, object files and flags are used when
10172 # linking a shared library.
10173 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10174 else
10175 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10176 # platform.
10177 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10178 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10179 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10180
10181 # Commands to make compiler produce verbose output that lists
10182 # what "hidden" libraries, object files and flags are used when
10183 # linking a shared library.
10184 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10185 fi
10186
10187 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10188 fi
10189 ;;
10190 esac
10191 ;;
10192 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10193 archive_cmds_need_lc_CXX=no
10194 ;;
10195 tandem*)
10196 case $cc_basename in
10197 NCC)
10198 # NonStop-UX NCC 3.20
10199 # FIXME: insert proper C++ library support
10200 ld_shlibs_CXX=no
10201 ;;
10202 *)
10203 # FIXME: insert proper C++ library support
10204 ld_shlibs_CXX=no
10205 ;;
10206 esac
10207 ;;
10208 vxworks*)
10209 # FIXME: insert proper C++ library support
10210 ld_shlibs_CXX=no
10211 ;;
10212 *)
10213 # FIXME: insert proper C++ library support
10214 ld_shlibs_CXX=no
10215 ;;
10216esac
10217echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10218echo "${ECHO_T}$ld_shlibs_CXX" >&6
10219test "$ld_shlibs_CXX" = no && can_build_shared=no
10220
10221GCC_CXX="$GXX"
10222LD_CXX="$LD"
10223
10224
10225cat > conftest.$ac_ext <<EOF
10226class Foo
10227{
10228public:
10229 Foo (void) { a = 0; }
10230private:
10231 int a;
10232};
10233EOF
10234
10235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10236 (eval $ac_compile) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; then
10240 # Parse the compiler output and extract the necessary
10241 # objects, libraries and library flags.
10242
10243 # Sentinel used to keep track of whether or not we are before
10244 # the conftest object file.
10245 pre_test_object_deps_done=no
10246
10247 # The `*' in the case matches for architectures that use `case' in
10248 # $output_verbose_cmd can trigger glob expansion during the loop
10249 # eval without this substitution.
10250 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10251
10252 for p in `eval $output_verbose_link_cmd`; do
10253 case $p in
10254
10255 -L* | -R* | -l*)
10256 # Some compilers place space between "-{L,R}" and the path.
10257 # Remove the space.
10258 if test $p = "-L" \
10259 || test $p = "-R"; then
10260 prev=$p
10261 continue
10262 else
10263 prev=
10264 fi
10265
10266 if test "$pre_test_object_deps_done" = no; then
10267 case $p in
10268 -L* | -R*)
10269 # Internal compiler library paths should come after those
10270 # provided the user. The postdeps already come after the
10271 # user supplied libs so there is no need to process them.
10272 if test -z "$compiler_lib_search_path_CXX"; then
10273 compiler_lib_search_path_CXX="${prev}${p}"
10274 else
10275 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10276 fi
10277 ;;
10278 # The "-l" case would never come before the object being
10279 # linked, so don't bother handling this case.
10280 esac
10281 else
10282 if test -z "$postdeps_CXX"; then
10283 postdeps_CXX="${prev}${p}"
10284 else
10285 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10286 fi
10287 fi
10288 ;;
10289
10290 *.$objext)
10291 # This assumes that the test object file only shows up
10292 # once in the compiler output.
10293 if test "$p" = "conftest.$objext"; then
10294 pre_test_object_deps_done=yes
10295 continue
10296 fi
10297
10298 if test "$pre_test_object_deps_done" = no; then
10299 if test -z "$predep_objects_CXX"; then
10300 predep_objects_CXX="$p"
10301 else
10302 predep_objects_CXX="$predep_objects_CXX $p"
10303 fi
10304 else
10305 if test -z "$postdep_objects_CXX"; then
10306 postdep_objects_CXX="$p"
10307 else
10308 postdep_objects_CXX="$postdep_objects_CXX $p"
10309 fi
10310 fi
10311 ;;
10312
10313 *) ;; # Ignore the rest.
10314
10315 esac
10316 done
10317
10318 # Clean up.
10319 rm -f a.out a.exe
10320else
10321 echo "libtool.m4: error: problem compiling CXX test program"
10322fi
10323
10324$rm -f confest.$objext
10325
10326case " $postdeps_CXX " in
10327*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10328esac
10329
10330lt_prog_compiler_wl_CXX=
10331lt_prog_compiler_pic_CXX=
10332lt_prog_compiler_static_CXX=
10333
10334echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10335echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10336
10337 # C++ specific cases for pic, static, wl, etc.
10338 if test "$GXX" = yes; then
10339 lt_prog_compiler_wl_CXX='-Wl,'
10340 lt_prog_compiler_static_CXX='-static'
10341
10342 case $host_os in
10343 aix*)
10344 # All AIX code is PIC.
10345 if test "$host_cpu" = ia64; then
10346 # AIX 5 now supports IA64 processor
10347 lt_prog_compiler_static_CXX='-Bstatic'
10348 fi
10349 ;;
10350 amigaos*)
10351 # FIXME: we need at least 68020 code to build shared libraries, but
10352 # adding the `-m68020' flag to GCC prevents building anything better,
10353 # like `-m68040'.
10354 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10355 ;;
10356 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10357 # PIC is the default for these OSes.
10358 ;;
10359 mingw* | os2* | pw32*)
10360 # This hack is so that the source file can tell whether it is being
10361 # built for inclusion in a dll (and should export symbols for example).
10362 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10363 ;;
10364 darwin* | rhapsody*)
10365 # PIC is the default on this platform
10366 # Common symbols not allowed in MH_DYLIB files
10367 lt_prog_compiler_pic_CXX='-fno-common'
10368 ;;
10369 *djgpp*)
10370 # DJGPP does not support shared libraries at all
10371 lt_prog_compiler_pic_CXX=
10372 ;;
10373 sysv4*MP*)
10374 if test -d /usr/nec; then
10375 lt_prog_compiler_pic_CXX=-Kconform_pic
10376 fi
10377 ;;
10378 hpux*)
10379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10380 # not for PA HP-UX.
10381 case "$host_cpu" in
10382 hppa*64*|ia64*)
10383 ;;
10384 *)
10385 lt_prog_compiler_pic_CXX='-fPIC'
10386 ;;
10387 esac
10388 ;;
10389 *)
10390 lt_prog_compiler_pic_CXX='-fPIC'
10391 ;;
10392 esac
10393 else
10394 case $host_os in
10395 aix4* | aix5*)
10396 # All AIX code is PIC.
10397 if test "$host_cpu" = ia64; then
10398 # AIX 5 now supports IA64 processor
10399 lt_prog_compiler_static_CXX='-Bstatic'
10400 else
10401 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10402 fi
10403 ;;
10404 chorus*)
10405 case $cc_basename in
10406 cxch68)
10407 # Green Hills C++ Compiler
10408 # _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"
10409 ;;
10410 esac
10411 ;;
10412 dgux*)
10413 case $cc_basename in
10414 ec++)
10415 lt_prog_compiler_pic_CXX='-KPIC'
10416 ;;
10417 ghcx)
10418 # Green Hills C++ Compiler
10419 lt_prog_compiler_pic_CXX='-pic'
10420 ;;
10421 *)
10422 ;;
10423 esac
10424 ;;
10425 freebsd* | kfreebsd*-gnu)
10426 # FreeBSD uses GNU C++
10427 ;;
10428 hpux9* | hpux10* | hpux11*)
10429 case $cc_basename in
10430 CC)
10431 lt_prog_compiler_wl_CXX='-Wl,'
10432 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10433 if test "$host_cpu" != ia64; then
10434 lt_prog_compiler_pic_CXX='+Z'
10435 fi
10436 ;;
10437 aCC)
10438 lt_prog_compiler_wl_CXX='-Wl,'
10439 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10440 case "$host_cpu" in
10441 hppa*64*|ia64*)
10442 # +Z the default
10443 ;;
10444 *)
10445 lt_prog_compiler_pic_CXX='+Z'
10446 ;;
10447 esac
10448 ;;
10449 *)
10450 ;;
10451 esac
10452 ;;
10453 irix5* | irix6* | nonstopux*)
10454 case $cc_basename in
10455 CC)
10456 lt_prog_compiler_wl_CXX='-Wl,'
10457 lt_prog_compiler_static_CXX='-non_shared'
10458 # CC pic flag -KPIC is the default.
10459 ;;
10460 *)
10461 ;;
10462 esac
10463 ;;
10464 linux*)
10465 case $cc_basename in
10466 KCC)
10467 # KAI C++ Compiler
10468 lt_prog_compiler_wl_CXX='--backend -Wl,'
10469 lt_prog_compiler_pic_CXX='-fPIC'
10470 ;;
10471 icpc)
10472 # Intel C++
10473 lt_prog_compiler_wl_CXX='-Wl,'
10474 lt_prog_compiler_pic_CXX='-KPIC'
10475 lt_prog_compiler_static_CXX='-static'
10476 ;;
10477 cxx)
10478 # Compaq C++
10479 # Make sure the PIC flag is empty. It appears that all Alpha
10480 # Linux and Compaq Tru64 Unix objects are PIC.
10481 lt_prog_compiler_pic_CXX=
10482 lt_prog_compiler_static_CXX='-non_shared'
10483 ;;
10484 *)
10485 ;;
10486 esac
10487 ;;
10488 lynxos*)
10489 ;;
10490 m88k*)
10491 ;;
10492 mvs*)
10493 case $cc_basename in
10494 cxx)
10495 lt_prog_compiler_pic_CXX='-W c,exportall'
10496 ;;
10497 *)
10498 ;;
10499 esac
10500 ;;
10501 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10502 ;;
10503 osf3* | osf4* | osf5*)
10504 case $cc_basename in
10505 KCC)
10506 lt_prog_compiler_wl_CXX='--backend -Wl,'
10507 ;;
10508 RCC)
10509 # Rational C++ 2.4.1
10510 lt_prog_compiler_pic_CXX='-pic'
10511 ;;
10512 cxx)
10513 # Digital/Compaq C++
10514 lt_prog_compiler_wl_CXX='-Wl,'
10515 # Make sure the PIC flag is empty. It appears that all Alpha
10516 # Linux and Compaq Tru64 Unix objects are PIC.
10517 lt_prog_compiler_pic_CXX=
10518 lt_prog_compiler_static_CXX='-non_shared'
10519 ;;
10520 *)
10521 ;;
10522 esac
10523 ;;
10524 psos*)
10525 ;;
10526 sco*)
10527 case $cc_basename in
10528 CC)
10529 lt_prog_compiler_pic_CXX='-fPIC'
10530 ;;
10531 *)
10532 ;;
10533 esac
10534 ;;
10535 solaris*)
10536 case $cc_basename in
10537 CC)
10538 # Sun C++ 4.2, 5.x and Centerline C++
10539 lt_prog_compiler_pic_CXX='-KPIC'
10540 lt_prog_compiler_static_CXX='-Bstatic'
10541 lt_prog_compiler_wl_CXX='-Qoption ld '
10542 ;;
10543 gcx)
10544 # Green Hills C++ Compiler
10545 lt_prog_compiler_pic_CXX='-PIC'
10546 ;;
10547 *)
10548 ;;
10549 esac
10550 ;;
10551 sunos4*)
10552 case $cc_basename in
10553 CC)
10554 # Sun C++ 4.x
10555 lt_prog_compiler_pic_CXX='-pic'
10556 lt_prog_compiler_static_CXX='-Bstatic'
10557 ;;
10558 lcc)
10559 # Lucid
10560 lt_prog_compiler_pic_CXX='-pic'
10561 ;;
10562 *)
10563 ;;
10564 esac
10565 ;;
10566 tandem*)
10567 case $cc_basename in
10568 NCC)
10569 # NonStop-UX NCC 3.20
10570 lt_prog_compiler_pic_CXX='-KPIC'
10571 ;;
10572 *)
10573 ;;
10574 esac
10575 ;;
10576 unixware*)
10577 ;;
10578 vxworks*)
10579 ;;
10580 *)
10581 lt_prog_compiler_can_build_shared_CXX=no
10582 ;;
10583 esac
10584 fi
10585
10586echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10587echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10588
10589#
10590# Check to make sure the PIC flag actually works.
10591#
10592if test -n "$lt_prog_compiler_pic_CXX"; then
10593
10594echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10595echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10596if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598else
10599 lt_prog_compiler_pic_works_CXX=no
10600 ac_outfile=conftest.$ac_objext
10601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10602 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10603 # Insert the option either (1) after the last *FLAGS variable, or
10604 # (2) before a word containing "conftest.", or (3) at the end.
10605 # Note that $ac_compile itself does not contain backslashes and begins
10606 # with a dollar sign (not a hyphen), so the echo should work correctly.
10607 # The option is referenced via a variable to avoid confusing sed.
10608 lt_compile=`echo "$ac_compile" | $SED \
10609 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10611 -e 's:$: $lt_compiler_flag:'`
10612 (eval echo "\"\$as_me:10612: $lt_compile\"" >&5)
10613 (eval "$lt_compile" 2>conftest.err)
10614 ac_status=$?
10615 cat conftest.err >&5
10616 echo "$as_me:10616: \$? = $ac_status" >&5
10617 if (exit $ac_status) && test -s "$ac_outfile"; then
10618 # The compiler can only warn and ignore the option if not recognized
10619 # So say no if there are warnings
10620 if test ! -s conftest.err; then
10621 lt_prog_compiler_pic_works_CXX=yes
10622 fi
10623 fi
10624 $rm conftest*
10625
10626fi
10627echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10628echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10629
10630if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10631 case $lt_prog_compiler_pic_CXX in
10632 "" | " "*) ;;
10633 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10634 esac
10635else
10636 lt_prog_compiler_pic_CXX=
10637 lt_prog_compiler_can_build_shared_CXX=no
10638fi
10639
10640fi
10641case "$host_os" in
10642 # For platforms which do not support PIC, -DPIC is meaningless:
10643 *djgpp*)
10644 lt_prog_compiler_pic_CXX=
10645 ;;
10646 *)
10647 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10648 ;;
10649esac
10650
10651echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10652echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10653if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655else
10656 lt_cv_prog_compiler_c_o_CXX=no
10657 $rm -r conftest 2>/dev/null
10658 mkdir conftest
10659 cd conftest
10660 mkdir out
10661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10662
10663 lt_compiler_flag="-o out/conftest2.$ac_objext"
10664 # Insert the option either (1) after the last *FLAGS variable, or
10665 # (2) before a word containing "conftest.", or (3) at the end.
10666 # Note that $ac_compile itself does not contain backslashes and begins
10667 # with a dollar sign (not a hyphen), so the echo should work correctly.
10668 lt_compile=`echo "$ac_compile" | $SED \
10669 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10671 -e 's:$: $lt_compiler_flag:'`
10672 (eval echo "\"\$as_me:10672: $lt_compile\"" >&5)
10673 (eval "$lt_compile" 2>out/conftest.err)
10674 ac_status=$?
10675 cat out/conftest.err >&5
10676 echo "$as_me:10676: \$? = $ac_status" >&5
10677 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10678 then
10679 # The compiler can only warn and ignore the option if not recognized
10680 # So say no if there are warnings
10681 if test ! -s out/conftest.err; then
10682 lt_cv_prog_compiler_c_o_CXX=yes
10683 fi
10684 fi
10685 chmod u+w .
10686 $rm conftest*
10687 # SGI C++ compiler will create directory out/ii_files/ for
10688 # template instantiation
10689 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10690 $rm out/* && rmdir out
10691 cd ..
10692 rmdir conftest
10693 $rm conftest*
10694
10695fi
10696echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10697echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10698
10699
10700hard_links="nottested"
10701if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10702 # do not overwrite the value of need_locks provided by the user
10703 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10704echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10705 hard_links=yes
10706 $rm conftest*
10707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10708 touch conftest.a
10709 ln conftest.a conftest.b 2>&5 || hard_links=no
10710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10711 echo "$as_me:$LINENO: result: $hard_links" >&5
10712echo "${ECHO_T}$hard_links" >&6
10713 if test "$hard_links" = no; then
10714 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10715echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10716 need_locks=warn
10717 fi
10718else
10719 need_locks=no
10720fi
10721
10722echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10723echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10724
10725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10726 case $host_os in
10727 aix4* | aix5*)
10728 # If we're using GNU nm, then we don't want the "-C" option.
10729 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10730 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10731 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'
10732 else
10733 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'
10734 fi
10735 ;;
10736 pw32*)
10737 export_symbols_cmds_CXX="$ltdll_cmds"
10738 ;;
10739 cygwin* | mingw*)
10740 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10741 ;;
10742 linux*)
10743 link_all_deplibs_CXX=no
10744 ;;
10745 *)
10746 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10747 ;;
10748 esac
10749
10750echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10751echo "${ECHO_T}$ld_shlibs_CXX" >&6
10752test "$ld_shlibs_CXX" = no && can_build_shared=no
10753
10754variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10755if test "$GCC" = yes; then
10756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10757fi
10758
10759#
10760# Do we need to explicitly link libc?
10761#
10762case "x$archive_cmds_need_lc_CXX" in
10763x|xyes)
10764 # Assume -lc should be added
10765 archive_cmds_need_lc_CXX=yes
10766
10767 if test "$enable_shared" = yes && test "$GCC" = yes; then
10768 case $archive_cmds_CXX in
10769 *'~'*)
10770 # FIXME: we may have to deal with multi-command sequences.
10771 ;;
10772 '$CC '*)
10773 # Test whether the compiler implicitly links with -lc since on some
10774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10775 # to ld, don't add -lc before -lgcc.
10776 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10777echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10778 $rm conftest*
10779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10780
10781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782 (eval $ac_compile) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } 2>conftest.err; then
10786 soname=conftest
10787 lib=conftest
10788 libobjs=conftest.$ac_objext
10789 deplibs=
10790 wl=$lt_prog_compiler_wl_CXX
10791 compiler_flags=-v
10792 linker_flags=-v
10793 verstring=
10794 output_objdir=.
10795 libname=conftest
10796 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10797 allow_undefined_flag_CXX=
10798 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10799 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }
10803 then
10804 archive_cmds_need_lc_CXX=no
10805 else
10806 archive_cmds_need_lc_CXX=yes
10807 fi
10808 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10809 else
10810 cat conftest.err 1>&5
10811 fi
10812 $rm conftest*
10813 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10814echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10815 ;;
10816 esac
10817 fi
10818 ;;
10819esac
10820
10821echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10822echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10823library_names_spec=
10824libname_spec='lib$name'
10825soname_spec=
10826shrext_cmds=".so"
10827postinstall_cmds=
10828postuninstall_cmds=
10829finish_cmds=
10830finish_eval=
10831shlibpath_var=
10832shlibpath_overrides_runpath=unknown
10833version_type=none
10834dynamic_linker="$host_os ld.so"
10835sys_lib_dlsearch_path_spec="/lib /usr/lib"
10836if test "$GCC" = yes; then
10837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10838 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10839 # if the path contains ";" then we assume it to be the separator
10840 # otherwise default to the standard path separator (i.e. ":") - it is
10841 # assumed that no part of a normal pathname contains ";" but that should
10842 # okay in the real world where ";" in dirpaths is itself problematic.
10843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10844 else
10845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10846 fi
10847else
10848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10849fi
10850need_lib_prefix=unknown
10851hardcode_into_libs=no
10852
10853# when you set need_version to no, make sure it does not cause -set_version
10854# flags to be left without arguments
10855need_version=unknown
10856
10857case $host_os in
10858aix3*)
10859 version_type=linux
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10861 shlibpath_var=LIBPATH
10862
10863 # AIX 3 has no versioning support, so we append a major version to the name.
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 ;;
10866
10867aix4* | aix5*)
10868 version_type=linux
10869 need_lib_prefix=no
10870 need_version=no
10871 hardcode_into_libs=yes
10872 if test "$host_cpu" = ia64; then
10873 # AIX 5 supports IA64
10874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 else
10877 # With GCC up to 2.95.x, collect2 would create an import file
10878 # for dependence libraries. The import file would start with
10879 # the line `#! .'. This would cause the generated library to
10880 # depend on `.', always an invalid library. This was fixed in
10881 # development snapshots of GCC prior to 3.0.
10882 case $host_os in
10883 aix4 | aix4.[01] | aix4.[01].*)
10884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10885 echo ' yes '
10886 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10887 :
10888 else
10889 can_build_shared=no
10890 fi
10891 ;;
10892 esac
10893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10894 # soname into executable. Probably we can add versioning support to
10895 # collect2, so additional links can be useful in future.
10896 if test "$aix_use_runtimelinking" = yes; then
10897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10898 # instead of lib<name>.a to let people know that these are not
10899 # typical AIX shared libraries.
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 else
10902 # We preserve .a as extension for shared libraries through AIX4.2
10903 # and later when we are not doing run time linking.
10904 library_names_spec='${libname}${release}.a $libname.a'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 fi
10907 shlibpath_var=LIBPATH
10908 fi
10909 ;;
10910
10911amigaos*)
10912 library_names_spec='$libname.ixlibrary $libname.a'
10913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10914 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'
10915 ;;
10916
10917beos*)
10918 library_names_spec='${libname}${shared_ext}'
10919 dynamic_linker="$host_os ld.so"
10920 shlibpath_var=LIBRARY_PATH
10921 ;;
10922
10923bsdi4*)
10924 version_type=linux
10925 need_version=no
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10932 # the default ld.so.conf also contains /usr/contrib/lib and
10933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10934 # libtool to hard-code these into programs
10935 ;;
10936
10937cygwin* | mingw* | pw32*)
10938 version_type=windows
10939 shrext_cmds=".dll"
10940 need_version=no
10941 need_lib_prefix=no
10942
10943 case $GCC,$host_os in
10944 yes,cygwin* | yes,mingw* | yes,pw32*)
10945 library_names_spec='$libname.dll.a'
10946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10947 postinstall_cmds='base_file=`basename \${file}`~
10948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10949 dldir=$destdir/`dirname \$dlpath`~
10950 test -d \$dldir || mkdir -p \$dldir~
10951 $install_prog $dir/$dlname \$dldir/$dlname'
10952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10953 dlpath=$dir/\$dldll~
10954 $rm \$dlpath'
10955 shlibpath_overrides_runpath=yes
10956
10957 case $host_os in
10958 cygwin*)
10959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10960 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10961 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10962 ;;
10963 mingw*)
10964 # MinGW DLLs use traditional 'lib' prefix
10965 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10967 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10968 # It is most probably a Windows format PATH printed by
10969 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10970 # path with ; separators, and with drive letters. We can handle the
10971 # drive letters (cygwin fileutils understands them), so leave them,
10972 # especially as we might pass files found there to a mingw objdump,
10973 # which wouldn't understand a cygwinified path. Ahh.
10974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10975 else
10976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10977 fi
10978 ;;
10979 pw32*)
10980 # pw32 DLLs use 'pw' prefix rather than 'lib'
10981 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10982 ;;
10983 esac
10984 ;;
10985
10986 *)
10987 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10988 ;;
10989 esac
10990 dynamic_linker='Win32 ld.exe'
10991 # FIXME: first we should search . and the directory the executable is in
10992 shlibpath_var=PATH
10993 ;;
10994
10995darwin* | rhapsody*)
10996 dynamic_linker="$host_os dyld"
10997 version_type=darwin
10998 need_lib_prefix=no
10999 need_version=no
11000 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11001 soname_spec='${libname}${release}${major}$shared_ext'
11002 shlibpath_overrides_runpath=yes
11003 shlibpath_var=DYLD_LIBRARY_PATH
11004 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11005 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11006 if test "$GCC" = yes; then
11007 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"`
11008 else
11009 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11010 fi
11011 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11012 ;;
11013
11014dgux*)
11015 version_type=linux
11016 need_lib_prefix=no
11017 need_version=no
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 shlibpath_var=LD_LIBRARY_PATH
11021 ;;
11022
11023freebsd1*)
11024 dynamic_linker=no
11025 ;;
11026
11027kfreebsd*-gnu)
11028 version_type=linux
11029 need_lib_prefix=no
11030 need_version=no
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 shlibpath_overrides_runpath=no
11035 hardcode_into_libs=yes
11036 dynamic_linker='GNU ld.so'
11037 ;;
11038
11039freebsd*)
11040 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11041 version_type=freebsd-$objformat
11042 case $version_type in
11043 freebsd-elf*)
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11045 need_version=no
11046 need_lib_prefix=no
11047 ;;
11048 freebsd-*)
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11050 need_version=yes
11051 ;;
11052 esac
11053 shlibpath_var=LD_LIBRARY_PATH
11054 case $host_os in
11055 freebsd2*)
11056 shlibpath_overrides_runpath=yes
11057 ;;
11058 freebsd3.01* | freebsdelf3.01*)
11059 shlibpath_overrides_runpath=yes
11060 hardcode_into_libs=yes
11061 ;;
11062 *) # from 3.2 on
11063 shlibpath_overrides_runpath=no
11064 hardcode_into_libs=yes
11065 ;;
11066 esac
11067 ;;
11068
11069gnu*)
11070 version_type=linux
11071 need_lib_prefix=no
11072 need_version=no
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 hardcode_into_libs=yes
11077 ;;
11078
11079hpux9* | hpux10* | hpux11*)
11080 # Give a soname corresponding to the major version so that dld.sl refuses to
11081 # link against other versions.
11082 version_type=sunos
11083 need_lib_prefix=no
11084 need_version=no
11085 case "$host_cpu" in
11086 ia64*)
11087 shrext_cmds='.so'
11088 hardcode_into_libs=yes
11089 dynamic_linker="$host_os dld.so"
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 if test "X$HPUX_IA64_MODE" = X32; then
11095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11096 else
11097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11098 fi
11099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11100 ;;
11101 hppa*64*)
11102 shrext_cmds='.sl'
11103 hardcode_into_libs=yes
11104 dynamic_linker="$host_os dld.sl"
11105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11111 ;;
11112 *)
11113 shrext_cmds='.sl'
11114 dynamic_linker="$host_os dld.sl"
11115 shlibpath_var=SHLIB_PATH
11116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 ;;
11120 esac
11121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11122 postinstall_cmds='chmod 555 $lib'
11123 ;;
11124
11125irix5* | irix6* | nonstopux*)
11126 case $host_os in
11127 nonstopux*) version_type=nonstopux ;;
11128 *)
11129 if test "$lt_cv_prog_gnu_ld" = yes; then
11130 version_type=linux
11131 else
11132 version_type=irix
11133 fi ;;
11134 esac
11135 need_lib_prefix=no
11136 need_version=no
11137 soname_spec='${libname}${release}${shared_ext}$major'
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11139 case $host_os in
11140 irix5* | nonstopux*)
11141 libsuff= shlibsuff=
11142 ;;
11143 *)
11144 case $LD in # libtool.m4 will add one of these switches to LD
11145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11146 libsuff= shlibsuff= libmagic=32-bit;;
11147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11148 libsuff=32 shlibsuff=N32 libmagic=N32;;
11149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11151 *) libsuff= shlibsuff= libmagic=never-match;;
11152 esac
11153 ;;
11154 esac
11155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11156 shlibpath_overrides_runpath=no
11157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11159 hardcode_into_libs=yes
11160 ;;
11161
11162# No shared lib support for Linux oldld, aout, or coff.
11163linux*oldld* | linux*aout* | linux*coff*)
11164 dynamic_linker=no
11165 ;;
11166
11167# This must be Linux ELF.
11168linux*)
11169 version_type=linux
11170 need_lib_prefix=no
11171 need_version=no
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=no
11177 # This implies no fast_install, which is unacceptable.
11178 # Some rework will be needed to allow for fast_install
11179 # before this can be enabled.
11180 hardcode_into_libs=yes
11181
11182 # Append ld.so.conf contents to the search path
11183 if test -f /etc/ld.so.conf; then
11184 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11185 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11186 fi
11187
11188 # We used to test for /lib/ld.so.1 and disable shared libraries on
11189 # powerpc, because MkLinux only supported shared libraries with the
11190 # GNU dynamic linker. Since this was broken with cross compilers,
11191 # most powerpc-linux boxes support dynamic linking these days and
11192 # people can always --disable-shared, the test was removed, and we
11193 # assume the GNU/Linux dynamic linker is in use.
11194 dynamic_linker='GNU/Linux ld.so'
11195 ;;
11196
11197netbsdelf*-gnu)
11198 version_type=linux
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 shlibpath_overrides_runpath=no
11205 hardcode_into_libs=yes
11206 dynamic_linker='NetBSD ld.elf_so'
11207 ;;
11208
11209knetbsd*-gnu)
11210 version_type=linux
11211 need_lib_prefix=no
11212 need_version=no
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 shlibpath_overrides_runpath=no
11217 hardcode_into_libs=yes
11218 dynamic_linker='GNU ld.so'
11219 ;;
11220
11221netbsd*)
11222 version_type=sunos
11223 need_lib_prefix=no
11224 need_version=no
11225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11228 dynamic_linker='NetBSD (a.out) ld.so'
11229 else
11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 dynamic_linker='NetBSD ld.elf_so'
11233 fi
11234 shlibpath_var=LD_LIBRARY_PATH
11235 shlibpath_overrides_runpath=yes
11236 hardcode_into_libs=yes
11237 ;;
11238
11239newsos6)
11240 version_type=linux
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 shlibpath_overrides_runpath=yes
11244 ;;
11245
11246nto-qnx*)
11247 version_type=linux
11248 need_lib_prefix=no
11249 need_version=no
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 shlibpath_overrides_runpath=yes
11254 ;;
11255
11256openbsd*)
11257 version_type=sunos
11258 need_lib_prefix=no
11259 need_version=yes
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11264 case $host_os in
11265 openbsd2.[89] | openbsd2.[89].*)
11266 shlibpath_overrides_runpath=no
11267 ;;
11268 *)
11269 shlibpath_overrides_runpath=yes
11270 ;;
11271 esac
11272 else
11273 shlibpath_overrides_runpath=yes
11274 fi
11275 ;;
11276
11277os2*)
11278 libname_spec='$name'
11279 shrext_cmds=".dll"
11280 need_lib_prefix=no
11281 library_names_spec='$libname${shared_ext} $libname.a'
11282 dynamic_linker='OS/2 ld.exe'
11283 shlibpath_var=LIBPATH
11284 ;;
11285
11286osf3* | osf4* | osf5*)
11287 version_type=osf
11288 need_lib_prefix=no
11289 need_version=no
11290 soname_spec='${libname}${release}${shared_ext}$major'
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11295 ;;
11296
11297sco3.2v5*)
11298 version_type=osf
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301 shlibpath_var=LD_LIBRARY_PATH
11302 ;;
11303
11304solaris*)
11305 version_type=linux
11306 need_lib_prefix=no
11307 need_version=no
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 shlibpath_var=LD_LIBRARY_PATH
11311 shlibpath_overrides_runpath=yes
11312 hardcode_into_libs=yes
11313 # ldd complains unless libraries are executable
11314 postinstall_cmds='chmod +x $lib'
11315 ;;
11316
11317sunos4*)
11318 version_type=sunos
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=yes
11323 if test "$with_gnu_ld" = yes; then
11324 need_lib_prefix=no
11325 fi
11326 need_version=yes
11327 ;;
11328
11329sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11330 version_type=linux
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 case $host_vendor in
11335 sni)
11336 shlibpath_overrides_runpath=no
11337 need_lib_prefix=no
11338 export_dynamic_flag_spec='${wl}-Blargedynsym'
11339 runpath_var=LD_RUN_PATH
11340 ;;
11341 siemens)
11342 need_lib_prefix=no
11343 ;;
11344 motorola)
11345 need_lib_prefix=no
11346 need_version=no
11347 shlibpath_overrides_runpath=no
11348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11349 ;;
11350 esac
11351 ;;
11352
11353sysv4*MP*)
11354 if test -d /usr/nec ;then
11355 version_type=linux
11356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11357 soname_spec='$libname${shared_ext}.$major'
11358 shlibpath_var=LD_LIBRARY_PATH
11359 fi
11360 ;;
11361
11362uts4*)
11363 version_type=linux
11364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365 soname_spec='${libname}${release}${shared_ext}$major'
11366 shlibpath_var=LD_LIBRARY_PATH
11367 ;;
11368
11369*)
11370 dynamic_linker=no
11371 ;;
11372esac
11373echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11374echo "${ECHO_T}$dynamic_linker" >&6
11375test "$dynamic_linker" = no && can_build_shared=no
11376
11377echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11378echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11379hardcode_action_CXX=
11380if test -n "$hardcode_libdir_flag_spec_CXX" || \
11381 test -n "$runpath_var CXX" || \
11382 test "X$hardcode_automatic_CXX"="Xyes" ; then
11383
11384 # We can hardcode non-existant directories.
11385 if test "$hardcode_direct_CXX" != no &&
11386 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11387 # have to relink, otherwise we might link with an installed library
11388 # when we should be linking with a yet-to-be-installed one
11389 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11390 test "$hardcode_minus_L_CXX" != no; then
11391 # Linking always hardcodes the temporary library directory.
11392 hardcode_action_CXX=relink
11393 else
11394 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11395 hardcode_action_CXX=immediate
11396 fi
11397else
11398 # We cannot hardcode anything, or else we can only hardcode existing
11399 # directories.
11400 hardcode_action_CXX=unsupported
11401fi
11402echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11403echo "${ECHO_T}$hardcode_action_CXX" >&6
11404
11405if test "$hardcode_action_CXX" = relink; then
11406 # Fast installation is not supported
11407 enable_fast_install=no
11408elif test "$shlibpath_overrides_runpath" = yes ||
11409 test "$enable_shared" = no; then
11410 # Fast installation is not necessary
11411 enable_fast_install=needless
11412fi
11413
11414striplib=
11415old_striplib=
11416echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11417echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11418if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11419 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11420 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11421 echo "$as_me:$LINENO: result: yes" >&5
11422echo "${ECHO_T}yes" >&6
11423else
11424# FIXME - insert some real tests, host_os isn't really good enough
11425 case $host_os in
11426 darwin*)
11427 if test -n "$STRIP" ; then
11428 striplib="$STRIP -x"
11429 echo "$as_me:$LINENO: result: yes" >&5
11430echo "${ECHO_T}yes" >&6
11431 else
11432 echo "$as_me:$LINENO: result: no" >&5
11433echo "${ECHO_T}no" >&6
11434fi
11435 ;;
11436 *)
11437 echo "$as_me:$LINENO: result: no" >&5
11438echo "${ECHO_T}no" >&6
11439 ;;
11440 esac
11441fi
11442
11443if test "x$enable_dlopen" != xyes; then
11444 enable_dlopen=unknown
11445 enable_dlopen_self=unknown
11446 enable_dlopen_self_static=unknown
11447else
11448 lt_cv_dlopen=no
11449 lt_cv_dlopen_libs=
11450
11451 case $host_os in
11452 beos*)
11453 lt_cv_dlopen="load_add_on"
11454 lt_cv_dlopen_libs=
11455 lt_cv_dlopen_self=yes
11456 ;;
11457
11458 mingw* | pw32*)
11459 lt_cv_dlopen="LoadLibrary"
11460 lt_cv_dlopen_libs=
11461 ;;
11462
11463 cygwin*)
11464 lt_cv_dlopen="dlopen"
11465 lt_cv_dlopen_libs=
11466 ;;
11467
11468 darwin*)
11469 # if libdl is installed we need to link against it
11470 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11471echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11472if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11474else
11475 ac_check_lib_save_LIBS=$LIBS
11476LIBS="-ldl $LIBS"
11477cat >conftest.$ac_ext <<_ACEOF
11478/* confdefs.h. */
11479_ACEOF
11480cat confdefs.h >>conftest.$ac_ext
11481cat >>conftest.$ac_ext <<_ACEOF
11482/* end confdefs.h. */
11483
11484/* Override any gcc2 internal prototype to avoid an error. */
11485#ifdef __cplusplus
11486extern "C"
11487#endif
11488/* We use char because int might match the return type of a gcc2
11489 builtin and then its argument prototype would still apply. */
11490char dlopen ();
11491int
11492main ()
11493{
11494dlopen ();
11495 ;
11496 return 0;
11497}
11498_ACEOF
11499rm -f conftest.$ac_objext conftest$ac_exeext
11500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501 (eval $ac_link) 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; } &&
11514 { ac_try='test -s conftest$ac_exeext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 ac_cv_lib_dl_dlopen=yes
11521else
11522 echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
11525ac_cv_lib_dl_dlopen=no
11526fi
11527rm -f conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11529LIBS=$ac_check_lib_save_LIBS
11530fi
11531echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11532echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11533if test $ac_cv_lib_dl_dlopen = yes; then
11534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11535else
11536
11537 lt_cv_dlopen="dyld"
11538 lt_cv_dlopen_libs=
11539 lt_cv_dlopen_self=yes
11540
11541fi
11542
11543 ;;
11544
11545 *)
11546 echo "$as_me:$LINENO: checking for shl_load" >&5
11547echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11548if test "${ac_cv_func_shl_load+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 cat >conftest.$ac_ext <<_ACEOF
11552/* confdefs.h. */
11553_ACEOF
11554cat confdefs.h >>conftest.$ac_ext
11555cat >>conftest.$ac_ext <<_ACEOF
11556/* end confdefs.h. */
11557/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11559#define shl_load innocuous_shl_load
11560
11561/* System header to define __stub macros and hopefully few prototypes,
11562 which can conflict with char shl_load (); below.
11563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11564 <limits.h> exists even on freestanding compilers. */
11565
11566#ifdef __STDC__
11567# include <limits.h>
11568#else
11569# include <assert.h>
11570#endif
11571
11572#undef shl_load
11573
11574/* Override any gcc2 internal prototype to avoid an error. */
11575#ifdef __cplusplus
11576extern "C"
11577{
11578#endif
11579/* We use char because int might match the return type of a gcc2
11580 builtin and then its argument prototype would still apply. */
11581char shl_load ();
11582/* The GNU C library defines this for functions which it implements
11583 to always fail with ENOSYS. Some functions are actually named
11584 something starting with __ and the normal name is an alias. */
11585#if defined (__stub_shl_load) || defined (__stub___shl_load)
11586choke me
11587#else
11588char (*f) () = shl_load;
11589#endif
11590#ifdef __cplusplus
11591}
11592#endif
11593
11594int
11595main ()
11596{
11597return f != shl_load;
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602rm -f conftest.$ac_objext conftest$ac_exeext
11603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11604 (eval $ac_link) 2>conftest.er1
11605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_cv_func_shl_load=yes
11624else
11625 echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628ac_cv_func_shl_load=no
11629fi
11630rm -f conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11632fi
11633echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11634echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11635if test $ac_cv_func_shl_load = yes; then
11636 lt_cv_dlopen="shl_load"
11637else
11638 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11639echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11640if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11642else
11643 ac_check_lib_save_LIBS=$LIBS
11644LIBS="-ldld $LIBS"
11645cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
11651
11652/* Override any gcc2 internal prototype to avoid an error. */
11653#ifdef __cplusplus
11654extern "C"
11655#endif
11656/* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11658char shl_load ();
11659int
11660main ()
11661{
11662shl_load ();
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext conftest$ac_exeext
11668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_lib_dld_shl_load=yes
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
11692
11693ac_cv_lib_dld_shl_load=no
11694fi
11695rm -f conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697LIBS=$ac_check_lib_save_LIBS
11698fi
11699echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11700echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11701if test $ac_cv_lib_dld_shl_load = yes; then
11702 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11703else
11704 echo "$as_me:$LINENO: checking for dlopen" >&5
11705echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11706if test "${ac_cv_func_dlopen+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708else
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11717#define dlopen innocuous_dlopen
11718
11719/* System header to define __stub macros and hopefully few prototypes,
11720 which can conflict with char dlopen (); below.
11721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11722 <limits.h> exists even on freestanding compilers. */
11723
11724#ifdef __STDC__
11725# include <limits.h>
11726#else
11727# include <assert.h>
11728#endif
11729
11730#undef dlopen
11731
11732/* Override any gcc2 internal prototype to avoid an error. */
11733#ifdef __cplusplus
11734extern "C"
11735{
11736#endif
11737/* We use char because int might match the return type of a gcc2
11738 builtin and then its argument prototype would still apply. */
11739char dlopen ();
11740/* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743#if defined (__stub_dlopen) || defined (__stub___dlopen)
11744choke me
11745#else
11746char (*f) () = dlopen;
11747#endif
11748#ifdef __cplusplus
11749}
11750#endif
11751
11752int
11753main ()
11754{
11755return f != dlopen;
11756 ;
11757 return 0;
11758}
11759_ACEOF
11760rm -f conftest.$ac_objext conftest$ac_exeext
11761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11762 (eval $ac_link) 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest$ac_exeext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_func_dlopen=yes
11782else
11783 echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786ac_cv_func_dlopen=no
11787fi
11788rm -f conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790fi
11791echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11792echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11793if test $ac_cv_func_dlopen = yes; then
11794 lt_cv_dlopen="dlopen"
11795else
11796 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11797echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11798if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 ac_check_lib_save_LIBS=$LIBS
11802LIBS="-ldl $LIBS"
11803cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
11809
11810/* Override any gcc2 internal prototype to avoid an error. */
11811#ifdef __cplusplus
11812extern "C"
11813#endif
11814/* We use char because int might match the return type of a gcc2
11815 builtin and then its argument prototype would still apply. */
11816char dlopen ();
11817int
11818main ()
11819{
11820dlopen ();
11821 ;
11822 return 0;
11823}
11824_ACEOF
11825rm -f conftest.$ac_objext conftest$ac_exeext
11826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11827 (eval $ac_link) 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 ac_cv_lib_dl_dlopen=yes
11847else
11848 echo "$as_me: failed program was:" >&5
11849sed 's/^/| /' conftest.$ac_ext >&5
11850
11851ac_cv_lib_dl_dlopen=no
11852fi
11853rm -f conftest.err conftest.$ac_objext \
11854 conftest$ac_exeext conftest.$ac_ext
11855LIBS=$ac_check_lib_save_LIBS
11856fi
11857echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11858echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11859if test $ac_cv_lib_dl_dlopen = yes; then
11860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11861else
11862 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11863echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11864if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867 ac_check_lib_save_LIBS=$LIBS
11868LIBS="-lsvld $LIBS"
11869cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h. */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h. */
11875
11876/* Override any gcc2 internal prototype to avoid an error. */
11877#ifdef __cplusplus
11878extern "C"
11879#endif
11880/* We use char because int might match the return type of a gcc2
11881 builtin and then its argument prototype would still apply. */
11882char dlopen ();
11883int
11884main ()
11885{
11886dlopen ();
11887 ;
11888 return 0;
11889}
11890_ACEOF
11891rm -f conftest.$ac_objext conftest$ac_exeext
11892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11893 (eval $ac_link) 2>conftest.er1
11894 ac_status=$?
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest$ac_exeext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_cv_lib_svld_dlopen=yes
11913else
11914 echo "$as_me: failed program was:" >&5
11915sed 's/^/| /' conftest.$ac_ext >&5
11916
11917ac_cv_lib_svld_dlopen=no
11918fi
11919rm -f conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921LIBS=$ac_check_lib_save_LIBS
11922fi
11923echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11924echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11925if test $ac_cv_lib_svld_dlopen = yes; then
11926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11927else
11928 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11929echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11930if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932else
11933 ac_check_lib_save_LIBS=$LIBS
11934LIBS="-ldld $LIBS"
11935cat >conftest.$ac_ext <<_ACEOF
11936/* confdefs.h. */
11937_ACEOF
11938cat confdefs.h >>conftest.$ac_ext
11939cat >>conftest.$ac_ext <<_ACEOF
11940/* end confdefs.h. */
11941
11942/* Override any gcc2 internal prototype to avoid an error. */
11943#ifdef __cplusplus
11944extern "C"
11945#endif
11946/* We use char because int might match the return type of a gcc2
11947 builtin and then its argument prototype would still apply. */
11948char dld_link ();
11949int
11950main ()
11951{
11952dld_link ();
11953 ;
11954 return 0;
11955}
11956_ACEOF
11957rm -f conftest.$ac_objext conftest$ac_exeext
11958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>conftest.er1
11960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_lib_dld_dld_link=yes
11979else
11980 echo "$as_me: failed program was:" >&5
11981sed 's/^/| /' conftest.$ac_ext >&5
11982
11983ac_cv_lib_dld_dld_link=no
11984fi
11985rm -f conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987LIBS=$ac_check_lib_save_LIBS
11988fi
11989echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11990echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11991if test $ac_cv_lib_dld_dld_link = yes; then
11992 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11993fi
11994
11995
11996fi
11997
11998
11999fi
12000
12001
12002fi
12003
12004
12005fi
12006
12007
12008fi
12009
12010 ;;
12011 esac
12012
12013 if test "x$lt_cv_dlopen" != xno; then
12014 enable_dlopen=yes
12015 else
12016 enable_dlopen=no
12017 fi
12018
12019 case $lt_cv_dlopen in
12020 dlopen)
12021 save_CPPFLAGS="$CPPFLAGS"
12022 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12023
12024 save_LDFLAGS="$LDFLAGS"
12025 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12026
12027 save_LIBS="$LIBS"
12028 LIBS="$lt_cv_dlopen_libs $LIBS"
12029
12030 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12031echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12032if test "${lt_cv_dlopen_self+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 if test "$cross_compiling" = yes; then :
12036 lt_cv_dlopen_self=cross
12037else
12038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12039 lt_status=$lt_dlunknown
12040 cat > conftest.$ac_ext <<EOF
12041#line 12041 "configure"
12042#include "confdefs.h"
12043
12044#if HAVE_DLFCN_H
12045#include <dlfcn.h>
12046#endif
12047
12048#include <stdio.h>
12049
12050#ifdef RTLD_GLOBAL
12051# define LT_DLGLOBAL RTLD_GLOBAL
12052#else
12053# ifdef DL_GLOBAL
12054# define LT_DLGLOBAL DL_GLOBAL
12055# else
12056# define LT_DLGLOBAL 0
12057# endif
12058#endif
12059
12060/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12061 find out it does not work in some platform. */
12062#ifndef LT_DLLAZY_OR_NOW
12063# ifdef RTLD_LAZY
12064# define LT_DLLAZY_OR_NOW RTLD_LAZY
12065# else
12066# ifdef DL_LAZY
12067# define LT_DLLAZY_OR_NOW DL_LAZY
12068# else
12069# ifdef RTLD_NOW
12070# define LT_DLLAZY_OR_NOW RTLD_NOW
12071# else
12072# ifdef DL_NOW
12073# define LT_DLLAZY_OR_NOW DL_NOW
12074# else
12075# define LT_DLLAZY_OR_NOW 0
12076# endif
12077# endif
12078# endif
12079# endif
12080#endif
12081
12082#ifdef __cplusplus
12083extern "C" void exit (int);
12084#endif
12085
12086void fnord() { int i=42;}
12087int main ()
12088{
12089 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12090 int status = $lt_dlunknown;
12091
12092 if (self)
12093 {
12094 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12095 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12096 /* dlclose (self); */
12097 }
12098
12099 exit (status);
12100}
12101EOF
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103 (eval $ac_link) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12107 (./conftest; exit; ) 2>/dev/null
12108 lt_status=$?
12109 case x$lt_status in
12110 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12111 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12112 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12113 esac
12114 else :
12115 # compilation failed
12116 lt_cv_dlopen_self=no
12117 fi
12118fi
12119rm -fr conftest*
12120
12121
12122fi
12123echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12124echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12125
12126 if test "x$lt_cv_dlopen_self" = xyes; then
12127 LDFLAGS="$LDFLAGS $link_static_flag"
12128 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12129echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12130if test "${lt_cv_dlopen_self_static+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12132else
12133 if test "$cross_compiling" = yes; then :
12134 lt_cv_dlopen_self_static=cross
12135else
12136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12137 lt_status=$lt_dlunknown
12138 cat > conftest.$ac_ext <<EOF
12139#line 12139 "configure"
12140#include "confdefs.h"
12141
12142#if HAVE_DLFCN_H
12143#include <dlfcn.h>
12144#endif
12145
12146#include <stdio.h>
12147
12148#ifdef RTLD_GLOBAL
12149# define LT_DLGLOBAL RTLD_GLOBAL
12150#else
12151# ifdef DL_GLOBAL
12152# define LT_DLGLOBAL DL_GLOBAL
12153# else
12154# define LT_DLGLOBAL 0
12155# endif
12156#endif
12157
12158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12159 find out it does not work in some platform. */
12160#ifndef LT_DLLAZY_OR_NOW
12161# ifdef RTLD_LAZY
12162# define LT_DLLAZY_OR_NOW RTLD_LAZY
12163# else
12164# ifdef DL_LAZY
12165# define LT_DLLAZY_OR_NOW DL_LAZY
12166# else
12167# ifdef RTLD_NOW
12168# define LT_DLLAZY_OR_NOW RTLD_NOW
12169# else
12170# ifdef DL_NOW
12171# define LT_DLLAZY_OR_NOW DL_NOW
12172# else
12173# define LT_DLLAZY_OR_NOW 0
12174# endif
12175# endif
12176# endif
12177# endif
12178#endif
12179
12180#ifdef __cplusplus
12181extern "C" void exit (int);
12182#endif
12183
12184void fnord() { int i=42;}
12185int main ()
12186{
12187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12188 int status = $lt_dlunknown;
12189
12190 if (self)
12191 {
12192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12194 /* dlclose (self); */
12195 }
12196
12197 exit (status);
12198}
12199EOF
12200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12201 (eval $ac_link) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12205 (./conftest; exit; ) 2>/dev/null
12206 lt_status=$?
12207 case x$lt_status in
12208 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12209 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12210 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12211 esac
12212 else :
12213 # compilation failed
12214 lt_cv_dlopen_self_static=no
12215 fi
12216fi
12217rm -fr conftest*
12218
12219
12220fi
12221echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12222echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12223 fi
12224
12225 CPPFLAGS="$save_CPPFLAGS"
12226 LDFLAGS="$save_LDFLAGS"
12227 LIBS="$save_LIBS"
12228 ;;
12229 esac
12230
12231 case $lt_cv_dlopen_self in
12232 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12233 *) enable_dlopen_self=unknown ;;
12234 esac
12235
12236 case $lt_cv_dlopen_self_static in
12237 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12238 *) enable_dlopen_self_static=unknown ;;
12239 esac
12240fi
12241
12242
12243# The else clause should only fire when bootstrapping the
12244# libtool distribution, otherwise you forgot to ship ltmain.sh
12245# with your package, and you will get complaints that there are
12246# no rules to generate ltmain.sh.
12247if test -f "$ltmain"; then
12248 # See if we are running on zsh, and set the options which allow our commands through
12249 # without removal of \ escapes.
12250 if test -n "${ZSH_VERSION+set}" ; then
12251 setopt NO_GLOB_SUBST
12252 fi
12253 # Now quote all the things that may contain metacharacters while being
12254 # careful not to overquote the AC_SUBSTed values. We take copies of the
12255 # variables and quote the copies for generation of the libtool script.
12256 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12257 SED SHELL STRIP \
12258 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12259 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12260 deplibs_check_method reload_flag reload_cmds need_locks \
12261 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12262 lt_cv_sys_global_symbol_to_c_name_address \
12263 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12264 old_postinstall_cmds old_postuninstall_cmds \
12265 compiler_CXX \
12266 CC_CXX \
12267 LD_CXX \
12268 lt_prog_compiler_wl_CXX \
12269 lt_prog_compiler_pic_CXX \
12270 lt_prog_compiler_static_CXX \
12271 lt_prog_compiler_no_builtin_flag_CXX \
12272 export_dynamic_flag_spec_CXX \
12273 thread_safe_flag_spec_CXX \
12274 whole_archive_flag_spec_CXX \
12275 enable_shared_with_static_runtimes_CXX \
12276 old_archive_cmds_CXX \
12277 old_archive_from_new_cmds_CXX \
12278 predep_objects_CXX \
12279 postdep_objects_CXX \
12280 predeps_CXX \
12281 postdeps_CXX \
12282 compiler_lib_search_path_CXX \
12283 archive_cmds_CXX \
12284 archive_expsym_cmds_CXX \
12285 postinstall_cmds_CXX \
12286 postuninstall_cmds_CXX \
12287 old_archive_from_expsyms_cmds_CXX \
12288 allow_undefined_flag_CXX \
12289 no_undefined_flag_CXX \
12290 export_symbols_cmds_CXX \
12291 hardcode_libdir_flag_spec_CXX \
12292 hardcode_libdir_flag_spec_ld_CXX \
12293 hardcode_libdir_separator_CXX \
12294 hardcode_automatic_CXX \
12295 module_cmds_CXX \
12296 module_expsym_cmds_CXX \
12297 lt_cv_prog_compiler_c_o_CXX \
12298 exclude_expsyms_CXX \
12299 include_expsyms_CXX; do
12300
12301 case $var in
12302 old_archive_cmds_CXX | \
12303 old_archive_from_new_cmds_CXX | \
12304 archive_cmds_CXX | \
12305 archive_expsym_cmds_CXX | \
12306 module_cmds_CXX | \
12307 module_expsym_cmds_CXX | \
12308 old_archive_from_expsyms_cmds_CXX | \
12309 export_symbols_cmds_CXX | \
12310 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12311 postinstall_cmds | postuninstall_cmds | \
12312 old_postinstall_cmds | old_postuninstall_cmds | \
12313 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12314 # Double-quote double-evaled strings.
12315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12316 ;;
12317 *)
12318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12319 ;;
12320 esac
12321 done
12322
12323 case $lt_echo in
12324 *'\$0 --fallback-echo"')
12325 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12326 ;;
12327 esac
12328
12329cfgfile="$ofile"
12330
12331 cat <<__EOF__ >> "$cfgfile"
12332# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12333
12334# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12335
12336# Shell to use when invoking shell scripts.
12337SHELL=$lt_SHELL
12338
12339# Whether or not to build shared libraries.
12340build_libtool_libs=$enable_shared
12341
12342# Whether or not to build static libraries.
12343build_old_libs=$enable_static
12344
12345# Whether or not to add -lc for building shared libraries.
12346build_libtool_need_lc=$archive_cmds_need_lc_CXX
12347
12348# Whether or not to disallow shared libs when runtime libs are static
12349allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12350
12351# Whether or not to optimize for fast installation.
12352fast_install=$enable_fast_install
12353
12354# The host system.
12355host_alias=$host_alias
12356host=$host
12357
12358# An echo program that does not interpret backslashes.
12359echo=$lt_echo
12360
12361# The archiver.
12362AR=$lt_AR
12363AR_FLAGS=$lt_AR_FLAGS
12364
12365# A C compiler.
12366LTCC=$lt_LTCC
12367
12368# A language-specific compiler.
12369CC=$lt_compiler_CXX
12370
12371# Is the compiler the GNU C compiler?
12372with_gcc=$GCC_CXX
12373
12374# An ERE matcher.
12375EGREP=$lt_EGREP
12376
12377# The linker used to build libraries.
12378LD=$lt_LD_CXX
12379
12380# Whether we need hard or soft links.
12381LN_S=$lt_LN_S
12382
12383# A BSD-compatible nm program.
12384NM=$lt_NM
12385
12386# A symbol stripping program
12387STRIP=$lt_STRIP
12388
12389# Used to examine libraries when file_magic_cmd begins "file"
12390MAGIC_CMD=$MAGIC_CMD
12391
12392# Used on cygwin: DLL creation program.
12393DLLTOOL="$DLLTOOL"
12394
12395# Used on cygwin: object dumper.
12396OBJDUMP="$OBJDUMP"
12397
12398# Used on cygwin: assembler.
12399AS="$AS"
12400
12401# The name of the directory that contains temporary libtool files.
12402objdir=$objdir
12403
12404# How to create reloadable object files.
12405reload_flag=$lt_reload_flag
12406reload_cmds=$lt_reload_cmds
12407
12408# How to pass a linker flag through the compiler.
12409wl=$lt_lt_prog_compiler_wl_CXX
12410
12411# Object file suffix (normally "o").
12412objext="$ac_objext"
12413
12414# Old archive suffix (normally "a").
12415libext="$libext"
12416
12417# Shared library suffix (normally ".so").
12418shrext_cmds='$shrext_cmds'
12419
12420# Executable file suffix (normally "").
12421exeext="$exeext"
12422
12423# Additional compiler flags for building library objects.
12424pic_flag=$lt_lt_prog_compiler_pic_CXX
12425pic_mode=$pic_mode
12426
12427# What is the maximum length of a command?
12428max_cmd_len=$lt_cv_sys_max_cmd_len
12429
12430# Does compiler simultaneously support -c and -o options?
12431compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12432
12433# Must we lock files when doing compilation ?
12434need_locks=$lt_need_locks
12435
12436# Do we need the lib prefix for modules?
12437need_lib_prefix=$need_lib_prefix
12438
12439# Do we need a version for libraries?
12440need_version=$need_version
12441
12442# Whether dlopen is supported.
12443dlopen_support=$enable_dlopen
12444
12445# Whether dlopen of programs is supported.
12446dlopen_self=$enable_dlopen_self
12447
12448# Whether dlopen of statically linked programs is supported.
12449dlopen_self_static=$enable_dlopen_self_static
12450
12451# Compiler flag to prevent dynamic linking.
12452link_static_flag=$lt_lt_prog_compiler_static_CXX
12453
12454# Compiler flag to turn off builtin functions.
12455no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12456
12457# Compiler flag to allow reflexive dlopens.
12458export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12459
12460# Compiler flag to generate shared objects directly from archives.
12461whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12462
12463# Compiler flag to generate thread-safe objects.
12464thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12465
12466# Library versioning type.
12467version_type=$version_type
12468
12469# Format of library name prefix.
12470libname_spec=$lt_libname_spec
12471
12472# List of archive names. First name is the real one, the rest are links.
12473# The last name is the one that the linker finds with -lNAME.
12474library_names_spec=$lt_library_names_spec
12475
12476# The coded name of the library, if different from the real name.
12477soname_spec=$lt_soname_spec
12478
12479# Commands used to build and install an old-style archive.
12480RANLIB=$lt_RANLIB
12481old_archive_cmds=$lt_old_archive_cmds_CXX
12482old_postinstall_cmds=$lt_old_postinstall_cmds
12483old_postuninstall_cmds=$lt_old_postuninstall_cmds
12484
12485# Create an old-style archive from a shared archive.
12486old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12487
12488# Create a temporary old-style archive to link instead of a shared archive.
12489old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12490
12491# Commands used to build and install a shared archive.
12492archive_cmds=$lt_archive_cmds_CXX
12493archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12494postinstall_cmds=$lt_postinstall_cmds
12495postuninstall_cmds=$lt_postuninstall_cmds
12496
12497# Commands used to build a loadable module (assumed same as above if empty)
12498module_cmds=$lt_module_cmds_CXX
12499module_expsym_cmds=$lt_module_expsym_cmds_CXX
12500
12501# Commands to strip libraries.
12502old_striplib=$lt_old_striplib
12503striplib=$lt_striplib
12504
12505# Dependencies to place before the objects being linked to create a
12506# shared library.
12507predep_objects=$lt_predep_objects_CXX
12508
12509# Dependencies to place after the objects being linked to create a
12510# shared library.
12511postdep_objects=$lt_postdep_objects_CXX
12512
12513# Dependencies to place before the objects being linked to create a
12514# shared library.
12515predeps=$lt_predeps_CXX
12516
12517# Dependencies to place after the objects being linked to create a
12518# shared library.
12519postdeps=$lt_postdeps_CXX
12520
12521# The library search path used internally by the compiler when linking
12522# a shared library.
12523compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12524
12525# Method to check whether dependent libraries are shared objects.
12526deplibs_check_method=$lt_deplibs_check_method
12527
12528# Command to use when deplibs_check_method == file_magic.
12529file_magic_cmd=$lt_file_magic_cmd
12530
12531# Flag that allows shared libraries with undefined symbols to be built.
12532allow_undefined_flag=$lt_allow_undefined_flag_CXX
12533
12534# Flag that forces no undefined symbols.
12535no_undefined_flag=$lt_no_undefined_flag_CXX
12536
12537# Commands used to finish a libtool library installation in a directory.
12538finish_cmds=$lt_finish_cmds
12539
12540# Same as above, but a single script fragment to be evaled but not shown.
12541finish_eval=$lt_finish_eval
12542
12543# Take the output of nm and produce a listing of raw symbols and C names.
12544global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12545
12546# Transform the output of nm in a proper C declaration
12547global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12548
12549# Transform the output of nm in a C name address pair
12550global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12551
12552# This is the shared library runtime path variable.
12553runpath_var=$runpath_var
12554
12555# This is the shared library path variable.
12556shlibpath_var=$shlibpath_var
12557
12558# Is shlibpath searched before the hard-coded library search path?
12559shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12560
12561# How to hardcode a shared library path into an executable.
12562hardcode_action=$hardcode_action_CXX
12563
12564# Whether we should hardcode library paths into libraries.
12565hardcode_into_libs=$hardcode_into_libs
12566
12567# Flag to hardcode \$libdir into a binary during linking.
12568# This must work even if \$libdir does not exist.
12569hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12570
12571# If ld is used when linking, flag to hardcode \$libdir into
12572# a binary during linking. This must work even if \$libdir does
12573# not exist.
12574hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12575
12576# Whether we need a single -rpath flag with a separated argument.
12577hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12578
12579# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12580# resulting binary.
12581hardcode_direct=$hardcode_direct_CXX
12582
12583# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12584# resulting binary.
12585hardcode_minus_L=$hardcode_minus_L_CXX
12586
12587# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12588# the resulting binary.
12589hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12590
12591# Set to yes if building a shared library automatically hardcodes DIR into the library
12592# and all subsequent libraries and executables linked against it.
12593hardcode_automatic=$hardcode_automatic_CXX
12594
12595# Variables whose values should be saved in libtool wrapper scripts and
12596# restored at relink time.
12597variables_saved_for_relink="$variables_saved_for_relink"
12598
12599# Whether libtool must link a program against all its dependency libraries.
12600link_all_deplibs=$link_all_deplibs_CXX
12601
12602# Compile-time system search path for libraries
12603sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12604
12605# Run-time system search path for libraries
12606sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12607
12608# Fix the shell variable \$srcfile for the compiler.
12609fix_srcfile_path="$fix_srcfile_path_CXX"
12610
12611# Set to yes if exported symbols are required.
12612always_export_symbols=$always_export_symbols_CXX
12613
12614# The commands to list exported symbols.
12615export_symbols_cmds=$lt_export_symbols_cmds_CXX
12616
12617# The commands to extract the exported symbol list from a shared archive.
12618extract_expsyms_cmds=$lt_extract_expsyms_cmds
12619
12620# Symbols that should not be listed in the preloaded symbols.
12621exclude_expsyms=$lt_exclude_expsyms_CXX
12622
12623# Symbols that must always be exported.
12624include_expsyms=$lt_include_expsyms_CXX
12625
12626# ### END LIBTOOL TAG CONFIG: $tagname
12627
12628__EOF__
12629
12630
12631else
12632 # If there is no Makefile yet, we rely on a make rule to execute
12633 # `config.status --recheck' to rerun these tests and create the
12634 # libtool script then.
12635 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12636 if test -f "$ltmain_in"; then
12637 test -f Makefile && make "$ltmain"
12638 fi
12639fi
12640
12641
12642ac_ext=c
12643ac_cpp='$CPP $CPPFLAGS'
12644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12646ac_compiler_gnu=$ac_cv_c_compiler_gnu
12647
12648CC=$lt_save_CC
12649LDCXX=$LD
12650LD=$lt_save_LD
12651GCC=$lt_save_GCC
12652with_gnu_ldcxx=$with_gnu_ld
12653with_gnu_ld=$lt_save_with_gnu_ld
12654lt_cv_path_LDCXX=$lt_cv_path_LD
12655lt_cv_path_LD=$lt_save_path_LD
12656lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12657lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12658
12659 else
12660 tagname=""
12661 fi
12662 ;;
12663
12664 F77)
12665 if test -n "$F77" && test "X$F77" != "Xno"; then
12666
12667ac_ext=f
12668ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12669ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12670ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12671
12672
12673archive_cmds_need_lc_F77=no
12674allow_undefined_flag_F77=
12675always_export_symbols_F77=no
12676archive_expsym_cmds_F77=
12677export_dynamic_flag_spec_F77=
12678hardcode_direct_F77=no
12679hardcode_libdir_flag_spec_F77=
12680hardcode_libdir_flag_spec_ld_F77=
12681hardcode_libdir_separator_F77=
12682hardcode_minus_L_F77=no
12683hardcode_automatic_F77=no
12684module_cmds_F77=
12685module_expsym_cmds_F77=
12686link_all_deplibs_F77=unknown
12687old_archive_cmds_F77=$old_archive_cmds
12688no_undefined_flag_F77=
12689whole_archive_flag_spec_F77=
12690enable_shared_with_static_runtimes_F77=no
12691
12692# Source file extension for f77 test sources.
12693ac_ext=f
12694
12695# Object file extension for compiled f77 test sources.
12696objext=o
12697objext_F77=$objext
12698
12699# Code to be used in simple compile tests
12700lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12701
12702# Code to be used in simple link tests
12703lt_simple_link_test_code=" program t\n end\n"
12704
12705# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12706
12707# If no C compiler was specified, use CC.
12708LTCC=${LTCC-"$CC"}
12709
12710# Allow CC to be a program name with arguments.
12711compiler=$CC
12712
12713
12714# Allow CC to be a program name with arguments.
12715lt_save_CC="$CC"
12716CC=${F77-"f77"}
12717compiler=$CC
12718compiler_F77=$CC
12719cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12720
12721echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12722echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12723echo "$as_me:$LINENO: result: $can_build_shared" >&5
12724echo "${ECHO_T}$can_build_shared" >&6
12725
12726echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12727echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12728test "$can_build_shared" = "no" && enable_shared=no
12729
12730# On AIX, shared libraries and static libraries use the same namespace, and
12731# are all built from PIC.
12732case "$host_os" in
12733aix3*)
12734 test "$enable_shared" = yes && enable_static=no
12735 if test -n "$RANLIB"; then
12736 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12737 postinstall_cmds='$RANLIB $lib'
12738 fi
12739 ;;
12740aix4* | aix5*)
12741 test "$enable_shared" = yes && enable_static=no
12742 ;;
12743esac
12744echo "$as_me:$LINENO: result: $enable_shared" >&5
12745echo "${ECHO_T}$enable_shared" >&6
12746
12747echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12748echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12749# Make sure either enable_shared or enable_static is yes.
12750test "$enable_shared" = yes || enable_static=yes
12751echo "$as_me:$LINENO: result: $enable_static" >&5
12752echo "${ECHO_T}$enable_static" >&6
12753
12754test "$ld_shlibs_F77" = no && can_build_shared=no
12755
12756GCC_F77="$G77"
12757LD_F77="$LD"
12758
12759lt_prog_compiler_wl_F77=
12760lt_prog_compiler_pic_F77=
12761lt_prog_compiler_static_F77=
12762
12763echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12764echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12765
12766 if test "$GCC" = yes; then
12767 lt_prog_compiler_wl_F77='-Wl,'
12768 lt_prog_compiler_static_F77='-static'
12769
12770 case $host_os in
12771 aix*)
12772 # All AIX code is PIC.
12773 if test "$host_cpu" = ia64; then
12774 # AIX 5 now supports IA64 processor
12775 lt_prog_compiler_static_F77='-Bstatic'
12776 fi
12777 ;;
12778
12779 amigaos*)
12780 # FIXME: we need at least 68020 code to build shared libraries, but
12781 # adding the `-m68020' flag to GCC prevents building anything better,
12782 # like `-m68040'.
12783 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12784 ;;
12785
12786 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12787 # PIC is the default for these OSes.
12788 ;;
12789
12790 mingw* | pw32* | os2*)
12791 # This hack is so that the source file can tell whether it is being
12792 # built for inclusion in a dll (and should export symbols for example).
12793 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12794 ;;
12795
12796 darwin* | rhapsody*)
12797 # PIC is the default on this platform
12798 # Common symbols not allowed in MH_DYLIB files
12799 lt_prog_compiler_pic_F77='-fno-common'
12800 ;;
12801
12802 msdosdjgpp*)
12803 # Just because we use GCC doesn't mean we suddenly get shared libraries
12804 # on systems that don't support them.
12805 lt_prog_compiler_can_build_shared_F77=no
12806 enable_shared=no
12807 ;;
12808
12809 sysv4*MP*)
12810 if test -d /usr/nec; then
12811 lt_prog_compiler_pic_F77=-Kconform_pic
12812 fi
12813 ;;
12814
12815 hpux*)
12816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12817 # not for PA HP-UX.
12818 case "$host_cpu" in
12819 hppa*64*|ia64*)
12820 # +Z the default
12821 ;;
12822 *)
12823 lt_prog_compiler_pic_F77='-fPIC'
12824 ;;
12825 esac
12826 ;;
12827
12828 *)
12829 lt_prog_compiler_pic_F77='-fPIC'
12830 ;;
12831 esac
12832 else
12833 # PORTME Check for flag to pass linker flags through the system compiler.
12834 case $host_os in
12835 aix*)
12836 lt_prog_compiler_wl_F77='-Wl,'
12837 if test "$host_cpu" = ia64; then
12838 # AIX 5 now supports IA64 processor
12839 lt_prog_compiler_static_F77='-Bstatic'
12840 else
12841 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12842 fi
12843 ;;
12844
12845 mingw* | pw32* | os2*)
12846 # This hack is so that the source file can tell whether it is being
12847 # built for inclusion in a dll (and should export symbols for example).
12848 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12849 ;;
12850
12851 hpux9* | hpux10* | hpux11*)
12852 lt_prog_compiler_wl_F77='-Wl,'
12853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12854 # not for PA HP-UX.
12855 case "$host_cpu" in
12856 hppa*64*|ia64*)
12857 # +Z the default
12858 ;;
12859 *)
12860 lt_prog_compiler_pic_F77='+Z'
12861 ;;
12862 esac
12863 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12864 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12865 ;;
12866
12867 irix5* | irix6* | nonstopux*)
12868 lt_prog_compiler_wl_F77='-Wl,'
12869 # PIC (with -KPIC) is the default.
12870 lt_prog_compiler_static_F77='-non_shared'
12871 ;;
12872
12873 newsos6)
12874 lt_prog_compiler_pic_F77='-KPIC'
12875 lt_prog_compiler_static_F77='-Bstatic'
12876 ;;
12877
12878 linux*)
12879 case $CC in
12880 icc* | ecc*)
12881 lt_prog_compiler_wl_F77='-Wl,'
12882 lt_prog_compiler_pic_F77='-KPIC'
12883 lt_prog_compiler_static_F77='-static'
12884 ;;
12885 ccc*)
12886 lt_prog_compiler_wl_F77='-Wl,'
12887 # All Alpha code is PIC.
12888 lt_prog_compiler_static_F77='-non_shared'
12889 ;;
12890 esac
12891 ;;
12892
12893 osf3* | osf4* | osf5*)
12894 lt_prog_compiler_wl_F77='-Wl,'
12895 # All OSF/1 code is PIC.
12896 lt_prog_compiler_static_F77='-non_shared'
12897 ;;
12898
12899 sco3.2v5*)
12900 lt_prog_compiler_pic_F77='-Kpic'
12901 lt_prog_compiler_static_F77='-dn'
12902 ;;
12903
12904 solaris*)
12905 lt_prog_compiler_wl_F77='-Wl,'
12906 lt_prog_compiler_pic_F77='-KPIC'
12907 lt_prog_compiler_static_F77='-Bstatic'
12908 ;;
12909
12910 sunos4*)
12911 lt_prog_compiler_wl_F77='-Qoption ld '
12912 lt_prog_compiler_pic_F77='-PIC'
12913 lt_prog_compiler_static_F77='-Bstatic'
12914 ;;
12915
12916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12917 lt_prog_compiler_wl_F77='-Wl,'
12918 lt_prog_compiler_pic_F77='-KPIC'
12919 lt_prog_compiler_static_F77='-Bstatic'
12920 ;;
12921
12922 sysv4*MP*)
12923 if test -d /usr/nec ;then
12924 lt_prog_compiler_pic_F77='-Kconform_pic'
12925 lt_prog_compiler_static_F77='-Bstatic'
12926 fi
12927 ;;
12928
12929 uts4*)
12930 lt_prog_compiler_pic_F77='-pic'
12931 lt_prog_compiler_static_F77='-Bstatic'
12932 ;;
12933
12934 *)
12935 lt_prog_compiler_can_build_shared_F77=no
12936 ;;
12937 esac
12938 fi
12939
12940echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12941echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12942
12943#
12944# Check to make sure the PIC flag actually works.
12945#
12946if test -n "$lt_prog_compiler_pic_F77"; then
12947
12948echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12949echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12950if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952else
12953 lt_prog_compiler_pic_works_F77=no
12954 ac_outfile=conftest.$ac_objext
12955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12956 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12957 # Insert the option either (1) after the last *FLAGS variable, or
12958 # (2) before a word containing "conftest.", or (3) at the end.
12959 # Note that $ac_compile itself does not contain backslashes and begins
12960 # with a dollar sign (not a hyphen), so the echo should work correctly.
12961 # The option is referenced via a variable to avoid confusing sed.
12962 lt_compile=`echo "$ac_compile" | $SED \
12963 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12965 -e 's:$: $lt_compiler_flag:'`
12966 (eval echo "\"\$as_me:12966: $lt_compile\"" >&5)
12967 (eval "$lt_compile" 2>conftest.err)
12968 ac_status=$?
12969 cat conftest.err >&5
12970 echo "$as_me:12970: \$? = $ac_status" >&5
12971 if (exit $ac_status) && test -s "$ac_outfile"; then
12972 # The compiler can only warn and ignore the option if not recognized
12973 # So say no if there are warnings
12974 if test ! -s conftest.err; then
12975 lt_prog_compiler_pic_works_F77=yes
12976 fi
12977 fi
12978 $rm conftest*
12979
12980fi
12981echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12982echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12983
12984if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12985 case $lt_prog_compiler_pic_F77 in
12986 "" | " "*) ;;
12987 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12988 esac
12989else
12990 lt_prog_compiler_pic_F77=
12991 lt_prog_compiler_can_build_shared_F77=no
12992fi
12993
12994fi
12995case "$host_os" in
12996 # For platforms which do not support PIC, -DPIC is meaningless:
12997 *djgpp*)
12998 lt_prog_compiler_pic_F77=
12999 ;;
13000 *)
13001 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13002 ;;
13003esac
13004
13005echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13006echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13007if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009else
13010 lt_cv_prog_compiler_c_o_F77=no
13011 $rm -r conftest 2>/dev/null
13012 mkdir conftest
13013 cd conftest
13014 mkdir out
13015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13016
13017 lt_compiler_flag="-o out/conftest2.$ac_objext"
13018 # Insert the option either (1) after the last *FLAGS variable, or
13019 # (2) before a word containing "conftest.", or (3) at the end.
13020 # Note that $ac_compile itself does not contain backslashes and begins
13021 # with a dollar sign (not a hyphen), so the echo should work correctly.
13022 lt_compile=`echo "$ac_compile" | $SED \
13023 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13025 -e 's:$: $lt_compiler_flag:'`
13026 (eval echo "\"\$as_me:13026: $lt_compile\"" >&5)
13027 (eval "$lt_compile" 2>out/conftest.err)
13028 ac_status=$?
13029 cat out/conftest.err >&5
13030 echo "$as_me:13030: \$? = $ac_status" >&5
13031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13032 then
13033 # The compiler can only warn and ignore the option if not recognized
13034 # So say no if there are warnings
13035 if test ! -s out/conftest.err; then
13036 lt_cv_prog_compiler_c_o_F77=yes
13037 fi
13038 fi
13039 chmod u+w .
13040 $rm conftest*
13041 # SGI C++ compiler will create directory out/ii_files/ for
13042 # template instantiation
13043 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13044 $rm out/* && rmdir out
13045 cd ..
13046 rmdir conftest
13047 $rm conftest*
13048
13049fi
13050echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13051echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13052
13053
13054hard_links="nottested"
13055if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13056 # do not overwrite the value of need_locks provided by the user
13057 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13058echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13059 hard_links=yes
13060 $rm conftest*
13061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13062 touch conftest.a
13063 ln conftest.a conftest.b 2>&5 || hard_links=no
13064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13065 echo "$as_me:$LINENO: result: $hard_links" >&5
13066echo "${ECHO_T}$hard_links" >&6
13067 if test "$hard_links" = no; then
13068 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13069echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13070 need_locks=warn
13071 fi
13072else
13073 need_locks=no
13074fi
13075
13076echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13077echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13078
13079 runpath_var=
13080 allow_undefined_flag_F77=
13081 enable_shared_with_static_runtimes_F77=no
13082 archive_cmds_F77=
13083 archive_expsym_cmds_F77=
13084 old_archive_From_new_cmds_F77=
13085 old_archive_from_expsyms_cmds_F77=
13086 export_dynamic_flag_spec_F77=
13087 whole_archive_flag_spec_F77=
13088 thread_safe_flag_spec_F77=
13089 hardcode_libdir_flag_spec_F77=
13090 hardcode_libdir_flag_spec_ld_F77=
13091 hardcode_libdir_separator_F77=
13092 hardcode_direct_F77=no
13093 hardcode_minus_L_F77=no
13094 hardcode_shlibpath_var_F77=unsupported
13095 link_all_deplibs_F77=unknown
13096 hardcode_automatic_F77=no
13097 module_cmds_F77=
13098 module_expsym_cmds_F77=
13099 always_export_symbols_F77=no
13100 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13101 # include_expsyms should be a list of space-separated symbols to be *always*
13102 # included in the symbol list
13103 include_expsyms_F77=
13104 # exclude_expsyms can be an extended regexp of symbols to exclude
13105 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13106 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13107 # as well as any symbol that contains `d'.
13108 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13109 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13110 # platforms (ab)use it in PIC code, but their linkers get confused if
13111 # the symbol is explicitly referenced. Since portable code cannot
13112 # rely on this symbol name, it's probably fine to never include it in
13113 # preloaded symbol tables.
13114 extract_expsyms_cmds=
13115
13116 case $host_os in
13117 cygwin* | mingw* | pw32*)
13118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13119 # When not using gcc, we currently assume that we are using
13120 # Microsoft Visual C++.
13121 if test "$GCC" != yes; then
13122 with_gnu_ld=no
13123 fi
13124 ;;
13125 openbsd*)
13126 with_gnu_ld=no
13127 ;;
13128 esac
13129
13130 ld_shlibs_F77=yes
13131 if test "$with_gnu_ld" = yes; then
13132 # If archive_cmds runs LD, not CC, wlarc should be empty
13133 wlarc='${wl}'
13134
13135 # See if GNU ld supports shared libraries.
13136 case $host_os in
13137 aix3* | aix4* | aix5*)
13138 # On AIX/PPC, the GNU linker is very broken
13139 if test "$host_cpu" != ia64; then
13140 ld_shlibs_F77=no
13141 cat <<EOF 1>&2
13142
13143*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13144*** to be unable to reliably create shared libraries on AIX.
13145*** Therefore, libtool is disabling shared libraries support. If you
13146*** really care for shared libraries, you may want to modify your PATH
13147*** so that a non-GNU linker is found, and then restart.
13148
13149EOF
13150 fi
13151 ;;
13152
13153 amigaos*)
13154 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)'
13155 hardcode_libdir_flag_spec_F77='-L$libdir'
13156 hardcode_minus_L_F77=yes
13157
13158 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13159 # that the semantics of dynamic libraries on AmigaOS, at least up
13160 # to version 4, is to share data among multiple programs linked
13161 # with the same dynamic library. Since this doesn't match the
13162 # behavior of shared libraries on other platforms, we can't use
13163 # them.
13164 ld_shlibs_F77=no
13165 ;;
13166
13167 beos*)
13168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13169 allow_undefined_flag_F77=unsupported
13170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13171 # support --undefined. This deserves some investigation. FIXME
13172 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13173 else
13174 ld_shlibs_F77=no
13175 fi
13176 ;;
13177
13178 cygwin* | mingw* | pw32*)
13179 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13180 # as there is no search path for DLLs.
13181 hardcode_libdir_flag_spec_F77='-L$libdir'
13182 allow_undefined_flag_F77=unsupported
13183 always_export_symbols_F77=no
13184 enable_shared_with_static_runtimes_F77=yes
13185 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13186
13187 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13188 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13189 # If the export-symbols file already is a .def file (1st line
13190 # is EXPORTS), use it as is; otherwise, prepend...
13191 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13192 cp $export_symbols $output_objdir/$soname.def;
13193 else
13194 echo EXPORTS > $output_objdir/$soname.def;
13195 cat $export_symbols >> $output_objdir/$soname.def;
13196 fi~
13197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13198 else
13199 ld_shlibs=no
13200 fi
13201 ;;
13202
13203 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13205 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13206 wlarc=
13207 else
13208 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13209 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13210 fi
13211 ;;
13212
13213 solaris* | sysv5*)
13214 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13215 ld_shlibs_F77=no
13216 cat <<EOF 1>&2
13217
13218*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13219*** create shared libraries on Solaris systems. Therefore, libtool
13220*** is disabling shared libraries support. We urge you to upgrade GNU
13221*** binutils to release 2.9.1 or newer. Another option is to modify
13222*** your PATH or compiler configuration so that the native linker is
13223*** used, and then restart.
13224
13225EOF
13226 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13227 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13228 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13229 else
13230 ld_shlibs_F77=no
13231 fi
13232 ;;
13233
13234 sunos4*)
13235 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13236 wlarc=
13237 hardcode_direct_F77=yes
13238 hardcode_shlibpath_var_F77=no
13239 ;;
13240
13241 linux*)
13242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13243 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13244 archive_cmds_F77="$tmp_archive_cmds"
13245 supports_anon_versioning=no
13246 case `$LD -v 2>/dev/null` in
13247 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13248 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13249 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13250 *\ 2.11.*) ;; # other 2.11 versions
13251 *) supports_anon_versioning=yes ;;
13252 esac
13253 if test $supports_anon_versioning = yes; then
13254 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13255cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13256$echo "local: *; };" >> $output_objdir/$libname.ver~
13257 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13258 else
13259 archive_expsym_cmds_F77="$tmp_archive_cmds"
13260 fi
13261 link_all_deplibs_F77=no
13262 else
13263 ld_shlibs_F77=no
13264 fi
13265 ;;
13266
13267 *)
13268 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13269 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13270 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13271 else
13272 ld_shlibs_F77=no
13273 fi
13274 ;;
13275 esac
13276
13277 if test "$ld_shlibs_F77" = yes; then
13278 runpath_var=LD_RUN_PATH
13279 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13280 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13281 # ancient GNU ld didn't support --whole-archive et. al.
13282 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13283 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13284 else
13285 whole_archive_flag_spec_F77=
13286 fi
13287 fi
13288 else
13289 # PORTME fill in a description of your system's linker (not GNU ld)
13290 case $host_os in
13291 aix3*)
13292 allow_undefined_flag_F77=unsupported
13293 always_export_symbols_F77=yes
13294 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'
13295 # Note: this linker hardcodes the directories in LIBPATH if there
13296 # are no directories specified by -L.
13297 hardcode_minus_L_F77=yes
13298 if test "$GCC" = yes && test -z "$link_static_flag"; then
13299 # Neither direct hardcoding nor static linking is supported with a
13300 # broken collect2.
13301 hardcode_direct_F77=unsupported
13302 fi
13303 ;;
13304
13305 aix4* | aix5*)
13306 if test "$host_cpu" = ia64; then
13307 # On IA64, the linker does run time linking by default, so we don't
13308 # have to do anything special.
13309 aix_use_runtimelinking=no
13310 exp_sym_flag='-Bexport'
13311 no_entry_flag=""
13312 else
13313 # If we're using GNU nm, then we don't want the "-C" option.
13314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13316 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'
13317 else
13318 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'
13319 fi
13320 aix_use_runtimelinking=no
13321
13322 # Test if we are trying to use run time linking or normal
13323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13324 # need to do runtime linking.
13325 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13326 for ld_flag in $LDFLAGS; do
13327 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13328 aix_use_runtimelinking=yes
13329 break
13330 fi
13331 done
13332 esac
13333
13334 exp_sym_flag='-bexport'
13335 no_entry_flag='-bnoentry'
13336 fi
13337
13338 # When large executables or shared objects are built, AIX ld can
13339 # have problems creating the table of contents. If linking a library
13340 # or program results in "error TOC overflow" add -mminimal-toc to
13341 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13342 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13343
13344 archive_cmds_F77=''
13345 hardcode_direct_F77=yes
13346 hardcode_libdir_separator_F77=':'
13347 link_all_deplibs_F77=yes
13348
13349 if test "$GCC" = yes; then
13350 case $host_os in aix4.012|aix4.012.*)
13351 # We only want to do this on AIX 4.2 and lower, the check
13352 # below for broken collect2 doesn't work under 4.3+
13353 collect2name=`${CC} -print-prog-name=collect2`
13354 if test -f "$collect2name" && \
13355 strings "$collect2name" | grep resolve_lib_name >/dev/null
13356 then
13357 # We have reworked collect2
13358 hardcode_direct_F77=yes
13359 else
13360 # We have old collect2
13361 hardcode_direct_F77=unsupported
13362 # It fails to find uninstalled libraries when the uninstalled
13363 # path is not listed in the libpath. Setting hardcode_minus_L
13364 # to unsupported forces relinking
13365 hardcode_minus_L_F77=yes
13366 hardcode_libdir_flag_spec_F77='-L$libdir'
13367 hardcode_libdir_separator_F77=
13368 fi
13369 esac
13370 shared_flag='-shared'
13371 else
13372 # not using gcc
13373 if test "$host_cpu" = ia64; then
13374 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13375 # chokes on -Wl,-G. The following line is correct:
13376 shared_flag='-G'
13377 else
13378 if test "$aix_use_runtimelinking" = yes; then
13379 shared_flag='${wl}-G'
13380 else
13381 shared_flag='${wl}-bM:SRE'
13382 fi
13383 fi
13384 fi
13385
13386 # It seems that -bexpall does not export symbols beginning with
13387 # underscore (_), so it is better to generate a list of symbols to export.
13388 always_export_symbols_F77=yes
13389 if test "$aix_use_runtimelinking" = yes; then
13390 # Warning - without using the other runtime loading flags (-brtl),
13391 # -berok will link without error, but may produce a broken library.
13392 allow_undefined_flag_F77='-berok'
13393 # Determine the default libpath from the value encoded in an empty executable.
13394 cat >conftest.$ac_ext <<_ACEOF
13395 program main
13396
13397 end
13398_ACEOF
13399rm -f conftest.$ac_objext conftest$ac_exeext
13400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13401 (eval $ac_link) 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; } &&
13414 { ac_try='test -s conftest$ac_exeext'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420
13421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13422}'`
13423# Check for a 64-bit object if we didn't find anything.
13424if 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; }
13425}'`; fi
13426else
13427 echo "$as_me: failed program was:" >&5
13428sed 's/^/| /' conftest.$ac_ext >&5
13429
13430fi
13431rm -f conftest.err conftest.$ac_objext \
13432 conftest$ac_exeext conftest.$ac_ext
13433if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13434
13435 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13436 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"
13437 else
13438 if test "$host_cpu" = ia64; then
13439 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13440 allow_undefined_flag_F77="-z nodefs"
13441 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"
13442 else
13443 # Determine the default libpath from the value encoded in an empty executable.
13444 cat >conftest.$ac_ext <<_ACEOF
13445 program main
13446
13447 end
13448_ACEOF
13449rm -f conftest.$ac_objext conftest$ac_exeext
13450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13451 (eval $ac_link) 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } &&
13458 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } &&
13464 { ac_try='test -s conftest$ac_exeext'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470
13471aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13472}'`
13473# Check for a 64-bit object if we didn't find anything.
13474if 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; }
13475}'`; fi
13476else
13477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
13480fi
13481rm -f conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext conftest.$ac_ext
13483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13484
13485 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13486 # Warning - without using the other run time loading flags,
13487 # -berok will link without error, but may produce a broken library.
13488 no_undefined_flag_F77=' ${wl}-bernotok'
13489 allow_undefined_flag_F77=' ${wl}-berok'
13490 # -bexpall does not export symbols beginning with underscore (_)
13491 always_export_symbols_F77=yes
13492 # Exported symbols can be pulled into shared objects from archives
13493 whole_archive_flag_spec_F77=' '
13494 archive_cmds_need_lc_F77=yes
13495 # This is similar to how AIX traditionally builds it's shared libraries.
13496 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'
13497 fi
13498 fi
13499 ;;
13500
13501 amigaos*)
13502 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)'
13503 hardcode_libdir_flag_spec_F77='-L$libdir'
13504 hardcode_minus_L_F77=yes
13505 # see comment about different semantics on the GNU ld section
13506 ld_shlibs_F77=no
13507 ;;
13508
13509 bsdi4*)
13510 export_dynamic_flag_spec_F77=-rdynamic
13511 ;;
13512
13513 cygwin* | mingw* | pw32*)
13514 # When not using gcc, we currently assume that we are using
13515 # Microsoft Visual C++.
13516 # hardcode_libdir_flag_spec is actually meaningless, as there is
13517 # no search path for DLLs.
13518 hardcode_libdir_flag_spec_F77=' '
13519 allow_undefined_flag_F77=unsupported
13520 # Tell ltmain to make .lib files, not .a files.
13521 libext=lib
13522 # Tell ltmain to make .dll files, not .so files.
13523 shrext_cmds=".dll"
13524 # FIXME: Setting linknames here is a bad hack.
13525 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13526 # The linker will automatically build a .lib file if we build a DLL.
13527 old_archive_From_new_cmds_F77='true'
13528 # FIXME: Should let the user specify the lib program.
13529 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13530 fix_srcfile_path='`cygpath -w "$srcfile"`'
13531 enable_shared_with_static_runtimes_F77=yes
13532 ;;
13533
13534 darwin* | rhapsody*)
13535 if test "$GXX" = yes ; then
13536 archive_cmds_need_lc_F77=no
13537 case "$host_os" in
13538 rhapsody* | darwin1.[012])
13539 allow_undefined_flag_F77='-undefined suppress'
13540 ;;
13541 *) # Darwin 1.3 on
13542 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13543 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13544 else
13545 case ${MACOSX_DEPLOYMENT_TARGET} in
13546 10.[012])
13547 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13548 ;;
13549 10.*)
13550 allow_undefined_flag_F77='-undefined dynamic_lookup'
13551 ;;
13552 esac
13553 fi
13554 ;;
13555 esac
13556 lt_int_apple_cc_single_mod=no
13557 output_verbose_link_cmd='echo'
13558 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13559 lt_int_apple_cc_single_mod=yes
13560 fi
13561 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13562 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13563 else
13564 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'
13565 fi
13566 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13569 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}'
13570 else
13571 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}'
13572 fi
13573 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}'
13574 hardcode_direct_F77=no
13575 hardcode_automatic_F77=yes
13576 hardcode_shlibpath_var_F77=unsupported
13577 whole_archive_flag_spec_F77='-all_load $convenience'
13578 link_all_deplibs_F77=yes
13579 else
13580 ld_shlibs_F77=no
13581 fi
13582 ;;
13583
13584 dgux*)
13585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13586 hardcode_libdir_flag_spec_F77='-L$libdir'
13587 hardcode_shlibpath_var_F77=no
13588 ;;
13589
13590 freebsd1*)
13591 ld_shlibs_F77=no
13592 ;;
13593
13594 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13595 # support. Future versions do this automatically, but an explicit c++rt0.o
13596 # does not break anything, and helps significantly (at the cost of a little
13597 # extra space).
13598 freebsd2.2*)
13599 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13600 hardcode_libdir_flag_spec_F77='-R$libdir'
13601 hardcode_direct_F77=yes
13602 hardcode_shlibpath_var_F77=no
13603 ;;
13604
13605 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13606 freebsd2*)
13607 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13608 hardcode_direct_F77=yes
13609 hardcode_minus_L_F77=yes
13610 hardcode_shlibpath_var_F77=no
13611 ;;
13612
13613 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13614 freebsd* | kfreebsd*-gnu)
13615 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13616 hardcode_libdir_flag_spec_F77='-R$libdir'
13617 hardcode_direct_F77=yes
13618 hardcode_shlibpath_var_F77=no
13619 ;;
13620
13621 hpux9*)
13622 if test "$GCC" = yes; then
13623 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'
13624 else
13625 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'
13626 fi
13627 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13628 hardcode_libdir_separator_F77=:
13629 hardcode_direct_F77=yes
13630
13631 # hardcode_minus_L: Not really in the search PATH,
13632 # but as the default location of the library.
13633 hardcode_minus_L_F77=yes
13634 export_dynamic_flag_spec_F77='${wl}-E'
13635 ;;
13636
13637 hpux10* | hpux11*)
13638 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13639 case "$host_cpu" in
13640 hppa*64*|ia64*)
13641 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13642 ;;
13643 *)
13644 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13645 ;;
13646 esac
13647 else
13648 case "$host_cpu" in
13649 hppa*64*|ia64*)
13650 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13651 ;;
13652 *)
13653 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13654 ;;
13655 esac
13656 fi
13657 if test "$with_gnu_ld" = no; then
13658 case "$host_cpu" in
13659 hppa*64*)
13660 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13661 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13662 hardcode_libdir_separator_F77=:
13663 hardcode_direct_F77=no
13664 hardcode_shlibpath_var_F77=no
13665 ;;
13666 ia64*)
13667 hardcode_libdir_flag_spec_F77='-L$libdir'
13668 hardcode_direct_F77=no
13669 hardcode_shlibpath_var_F77=no
13670
13671 # hardcode_minus_L: Not really in the search PATH,
13672 # but as the default location of the library.
13673 hardcode_minus_L_F77=yes
13674 ;;
13675 *)
13676 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13677 hardcode_libdir_separator_F77=:
13678 hardcode_direct_F77=yes
13679 export_dynamic_flag_spec_F77='${wl}-E'
13680
13681 # hardcode_minus_L: Not really in the search PATH,
13682 # but as the default location of the library.
13683 hardcode_minus_L_F77=yes
13684 ;;
13685 esac
13686 fi
13687 ;;
13688
13689 irix5* | irix6* | nonstopux*)
13690 if test "$GCC" = yes; then
13691 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'
13692 else
13693 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'
13694 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13695 fi
13696 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13697 hardcode_libdir_separator_F77=:
13698 link_all_deplibs_F77=yes
13699 ;;
13700
13701 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13703 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13704 else
13705 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13706 fi
13707 hardcode_libdir_flag_spec_F77='-R$libdir'
13708 hardcode_direct_F77=yes
13709 hardcode_shlibpath_var_F77=no
13710 ;;
13711
13712 newsos6)
13713 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13714 hardcode_direct_F77=yes
13715 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13716 hardcode_libdir_separator_F77=:
13717 hardcode_shlibpath_var_F77=no
13718 ;;
13719
13720 openbsd*)
13721 hardcode_direct_F77=yes
13722 hardcode_shlibpath_var_F77=no
13723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13724 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13725 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13726 export_dynamic_flag_spec_F77='${wl}-E'
13727 else
13728 case $host_os in
13729 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13730 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13731 hardcode_libdir_flag_spec_F77='-R$libdir'
13732 ;;
13733 *)
13734 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13735 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13736 ;;
13737 esac
13738 fi
13739 ;;
13740
13741 os2*)
13742 hardcode_libdir_flag_spec_F77='-L$libdir'
13743 hardcode_minus_L_F77=yes
13744 allow_undefined_flag_F77=unsupported
13745 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'
13746 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13747 ;;
13748
13749 osf3*)
13750 if test "$GCC" = yes; then
13751 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13752 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'
13753 else
13754 allow_undefined_flag_F77=' -expect_unresolved \*'
13755 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'
13756 fi
13757 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13758 hardcode_libdir_separator_F77=:
13759 ;;
13760
13761 osf4* | osf5*) # as osf3* with the addition of -msym flag
13762 if test "$GCC" = yes; then
13763 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13764 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'
13765 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13766 else
13767 allow_undefined_flag_F77=' -expect_unresolved \*'
13768 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'
13769 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~
13770 $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'
13771
13772 # Both c and cxx compiler support -rpath directly
13773 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13774 fi
13775 hardcode_libdir_separator_F77=:
13776 ;;
13777
13778 sco3.2v5*)
13779 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13780 hardcode_shlibpath_var_F77=no
13781 export_dynamic_flag_spec_F77='${wl}-Bexport'
13782 runpath_var=LD_RUN_PATH
13783 hardcode_runpath_var=yes
13784 ;;
13785
13786 solaris*)
13787 no_undefined_flag_F77=' -z text'
13788 if test "$GCC" = yes; then
13789 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13791 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13792 else
13793 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13794 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13795 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13796 fi
13797 hardcode_libdir_flag_spec_F77='-R$libdir'
13798 hardcode_shlibpath_var_F77=no
13799 case $host_os in
13800 solaris2.[0-5] | solaris2.[0-5].*) ;;
13801 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13802 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13803 esac
13804 link_all_deplibs_F77=yes
13805 ;;
13806
13807 sunos4*)
13808 if test "x$host_vendor" = xsequent; then
13809 # Use $CC to link under sequent, because it throws in some extra .o
13810 # files that make .init and .fini sections work.
13811 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13812 else
13813 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13814 fi
13815 hardcode_libdir_flag_spec_F77='-L$libdir'
13816 hardcode_direct_F77=yes
13817 hardcode_minus_L_F77=yes
13818 hardcode_shlibpath_var_F77=no
13819 ;;
13820
13821 sysv4)
13822 case $host_vendor in
13823 sni)
13824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13825 hardcode_direct_F77=yes # is this really true???
13826 ;;
13827 siemens)
13828 ## LD is ld it makes a PLAMLIB
13829 ## CC just makes a GrossModule.
13830 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13831 reload_cmds_F77='$CC -r -o $output$reload_objs'
13832 hardcode_direct_F77=no
13833 ;;
13834 motorola)
13835 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13836 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13837 ;;
13838 esac
13839 runpath_var='LD_RUN_PATH'
13840 hardcode_shlibpath_var_F77=no
13841 ;;
13842
13843 sysv4.3*)
13844 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13845 hardcode_shlibpath_var_F77=no
13846 export_dynamic_flag_spec_F77='-Bexport'
13847 ;;
13848
13849 sysv4*MP*)
13850 if test -d /usr/nec; then
13851 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13852 hardcode_shlibpath_var_F77=no
13853 runpath_var=LD_RUN_PATH
13854 hardcode_runpath_var=yes
13855 ld_shlibs_F77=yes
13856 fi
13857 ;;
13858
13859 sysv4.2uw2*)
13860 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13861 hardcode_direct_F77=yes
13862 hardcode_minus_L_F77=no
13863 hardcode_shlibpath_var_F77=no
13864 hardcode_runpath_var=yes
13865 runpath_var=LD_RUN_PATH
13866 ;;
13867
13868 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13869 no_undefined_flag_F77='${wl}-z ${wl}text'
13870 if test "$GCC" = yes; then
13871 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13872 else
13873 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13874 fi
13875 runpath_var='LD_RUN_PATH'
13876 hardcode_shlibpath_var_F77=no
13877 ;;
13878
13879 sysv5*)
13880 no_undefined_flag_F77=' -z text'
13881 # $CC -shared without GNU ld will not create a library from C++
13882 # object files and a static libstdc++, better avoid it by now
13883 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13885 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13886 hardcode_libdir_flag_spec_F77=
13887 hardcode_shlibpath_var_F77=no
13888 runpath_var='LD_RUN_PATH'
13889 ;;
13890
13891 uts4*)
13892 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13893 hardcode_libdir_flag_spec_F77='-L$libdir'
13894 hardcode_shlibpath_var_F77=no
13895 ;;
13896
13897 *)
13898 ld_shlibs_F77=no
13899 ;;
13900 esac
13901 fi
13902
13903echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13904echo "${ECHO_T}$ld_shlibs_F77" >&6
13905test "$ld_shlibs_F77" = no && can_build_shared=no
13906
13907variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13908if test "$GCC" = yes; then
13909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13910fi
13911
13912#
13913# Do we need to explicitly link libc?
13914#
13915case "x$archive_cmds_need_lc_F77" in
13916x|xyes)
13917 # Assume -lc should be added
13918 archive_cmds_need_lc_F77=yes
13919
13920 if test "$enable_shared" = yes && test "$GCC" = yes; then
13921 case $archive_cmds_F77 in
13922 *'~'*)
13923 # FIXME: we may have to deal with multi-command sequences.
13924 ;;
13925 '$CC '*)
13926 # Test whether the compiler implicitly links with -lc since on some
13927 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13928 # to ld, don't add -lc before -lgcc.
13929 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13930echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13931 $rm conftest*
13932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13933
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935 (eval $ac_compile) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } 2>conftest.err; then
13939 soname=conftest
13940 lib=conftest
13941 libobjs=conftest.$ac_objext
13942 deplibs=
13943 wl=$lt_prog_compiler_wl_F77
13944 compiler_flags=-v
13945 linker_flags=-v
13946 verstring=
13947 output_objdir=.
13948 libname=conftest
13949 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13950 allow_undefined_flag_F77=
13951 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13952 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }
13956 then
13957 archive_cmds_need_lc_F77=no
13958 else
13959 archive_cmds_need_lc_F77=yes
13960 fi
13961 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13962 else
13963 cat conftest.err 1>&5
13964 fi
13965 $rm conftest*
13966 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13967echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13968 ;;
13969 esac
13970 fi
13971 ;;
13972esac
13973
13974echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13975echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13976library_names_spec=
13977libname_spec='lib$name'
13978soname_spec=
13979shrext_cmds=".so"
13980postinstall_cmds=
13981postuninstall_cmds=
13982finish_cmds=
13983finish_eval=
13984shlibpath_var=
13985shlibpath_overrides_runpath=unknown
13986version_type=none
13987dynamic_linker="$host_os ld.so"
13988sys_lib_dlsearch_path_spec="/lib /usr/lib"
13989if test "$GCC" = yes; then
13990 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13991 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13992 # if the path contains ";" then we assume it to be the separator
13993 # otherwise default to the standard path separator (i.e. ":") - it is
13994 # assumed that no part of a normal pathname contains ";" but that should
13995 # okay in the real world where ";" in dirpaths is itself problematic.
13996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13997 else
13998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13999 fi
14000else
14001 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14002fi
14003need_lib_prefix=unknown
14004hardcode_into_libs=no
14005
14006# when you set need_version to no, make sure it does not cause -set_version
14007# flags to be left without arguments
14008need_version=unknown
14009
14010case $host_os in
14011aix3*)
14012 version_type=linux
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14014 shlibpath_var=LIBPATH
14015
14016 # AIX 3 has no versioning support, so we append a major version to the name.
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 ;;
14019
14020aix4* | aix5*)
14021 version_type=linux
14022 need_lib_prefix=no
14023 need_version=no
14024 hardcode_into_libs=yes
14025 if test "$host_cpu" = ia64; then
14026 # AIX 5 supports IA64
14027 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14028 shlibpath_var=LD_LIBRARY_PATH
14029 else
14030 # With GCC up to 2.95.x, collect2 would create an import file
14031 # for dependence libraries. The import file would start with
14032 # the line `#! .'. This would cause the generated library to
14033 # depend on `.', always an invalid library. This was fixed in
14034 # development snapshots of GCC prior to 3.0.
14035 case $host_os in
14036 aix4 | aix4.[01] | aix4.[01].*)
14037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14038 echo ' yes '
14039 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14040 :
14041 else
14042 can_build_shared=no
14043 fi
14044 ;;
14045 esac
14046 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14047 # soname into executable. Probably we can add versioning support to
14048 # collect2, so additional links can be useful in future.
14049 if test "$aix_use_runtimelinking" = yes; then
14050 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14051 # instead of lib<name>.a to let people know that these are not
14052 # typical AIX shared libraries.
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14054 else
14055 # We preserve .a as extension for shared libraries through AIX4.2
14056 # and later when we are not doing run time linking.
14057 library_names_spec='${libname}${release}.a $libname.a'
14058 soname_spec='${libname}${release}${shared_ext}$major'
14059 fi
14060 shlibpath_var=LIBPATH
14061 fi
14062 ;;
14063
14064amigaos*)
14065 library_names_spec='$libname.ixlibrary $libname.a'
14066 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14067 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'
14068 ;;
14069
14070beos*)
14071 library_names_spec='${libname}${shared_ext}'
14072 dynamic_linker="$host_os ld.so"
14073 shlibpath_var=LIBRARY_PATH
14074 ;;
14075
14076bsdi4*)
14077 version_type=linux
14078 need_version=no
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14085 # the default ld.so.conf also contains /usr/contrib/lib and
14086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14087 # libtool to hard-code these into programs
14088 ;;
14089
14090cygwin* | mingw* | pw32*)
14091 version_type=windows
14092 shrext_cmds=".dll"
14093 need_version=no
14094 need_lib_prefix=no
14095
14096 case $GCC,$host_os in
14097 yes,cygwin* | yes,mingw* | yes,pw32*)
14098 library_names_spec='$libname.dll.a'
14099 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14100 postinstall_cmds='base_file=`basename \${file}`~
14101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14102 dldir=$destdir/`dirname \$dlpath`~
14103 test -d \$dldir || mkdir -p \$dldir~
14104 $install_prog $dir/$dlname \$dldir/$dlname'
14105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14106 dlpath=$dir/\$dldll~
14107 $rm \$dlpath'
14108 shlibpath_overrides_runpath=yes
14109
14110 case $host_os in
14111 cygwin*)
14112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14115 ;;
14116 mingw*)
14117 # MinGW DLLs use traditional 'lib' prefix
14118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14121 # It is most probably a Windows format PATH printed by
14122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14123 # path with ; separators, and with drive letters. We can handle the
14124 # drive letters (cygwin fileutils understands them), so leave them,
14125 # especially as we might pass files found there to a mingw objdump,
14126 # which wouldn't understand a cygwinified path. Ahh.
14127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14128 else
14129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14130 fi
14131 ;;
14132 pw32*)
14133 # pw32 DLLs use 'pw' prefix rather than 'lib'
14134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14135 ;;
14136 esac
14137 ;;
14138
14139 *)
14140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14141 ;;
14142 esac
14143 dynamic_linker='Win32 ld.exe'
14144 # FIXME: first we should search . and the directory the executable is in
14145 shlibpath_var=PATH
14146 ;;
14147
14148darwin* | rhapsody*)
14149 dynamic_linker="$host_os dyld"
14150 version_type=darwin
14151 need_lib_prefix=no
14152 need_version=no
14153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14154 soname_spec='${libname}${release}${major}$shared_ext'
14155 shlibpath_overrides_runpath=yes
14156 shlibpath_var=DYLD_LIBRARY_PATH
14157 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14158 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14159 if test "$GCC" = yes; then
14160 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"`
14161 else
14162 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14163 fi
14164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14165 ;;
14166
14167dgux*)
14168 version_type=linux
14169 need_lib_prefix=no
14170 need_version=no
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 shlibpath_var=LD_LIBRARY_PATH
14174 ;;
14175
14176freebsd1*)
14177 dynamic_linker=no
14178 ;;
14179
14180kfreebsd*-gnu)
14181 version_type=linux
14182 need_lib_prefix=no
14183 need_version=no
14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14185 soname_spec='${libname}${release}${shared_ext}$major'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 shlibpath_overrides_runpath=no
14188 hardcode_into_libs=yes
14189 dynamic_linker='GNU ld.so'
14190 ;;
14191
14192freebsd*)
14193 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14194 version_type=freebsd-$objformat
14195 case $version_type in
14196 freebsd-elf*)
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14198 need_version=no
14199 need_lib_prefix=no
14200 ;;
14201 freebsd-*)
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14203 need_version=yes
14204 ;;
14205 esac
14206 shlibpath_var=LD_LIBRARY_PATH
14207 case $host_os in
14208 freebsd2*)
14209 shlibpath_overrides_runpath=yes
14210 ;;
14211 freebsd3.01* | freebsdelf3.01*)
14212 shlibpath_overrides_runpath=yes
14213 hardcode_into_libs=yes
14214 ;;
14215 *) # from 3.2 on
14216 shlibpath_overrides_runpath=no
14217 hardcode_into_libs=yes
14218 ;;
14219 esac
14220 ;;
14221
14222gnu*)
14223 version_type=linux
14224 need_lib_prefix=no
14225 need_version=no
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14227 soname_spec='${libname}${release}${shared_ext}$major'
14228 shlibpath_var=LD_LIBRARY_PATH
14229 hardcode_into_libs=yes
14230 ;;
14231
14232hpux9* | hpux10* | hpux11*)
14233 # Give a soname corresponding to the major version so that dld.sl refuses to
14234 # link against other versions.
14235 version_type=sunos
14236 need_lib_prefix=no
14237 need_version=no
14238 case "$host_cpu" in
14239 ia64*)
14240 shrext_cmds='.so'
14241 hardcode_into_libs=yes
14242 dynamic_linker="$host_os dld.so"
14243 shlibpath_var=LD_LIBRARY_PATH
14244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246 soname_spec='${libname}${release}${shared_ext}$major'
14247 if test "X$HPUX_IA64_MODE" = X32; then
14248 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14249 else
14250 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14251 fi
14252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14253 ;;
14254 hppa*64*)
14255 shrext_cmds='.sl'
14256 hardcode_into_libs=yes
14257 dynamic_linker="$host_os dld.sl"
14258 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14262 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14264 ;;
14265 *)
14266 shrext_cmds='.sl'
14267 dynamic_linker="$host_os dld.sl"
14268 shlibpath_var=SHLIB_PATH
14269 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 ;;
14273 esac
14274 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14275 postinstall_cmds='chmod 555 $lib'
14276 ;;
14277
14278irix5* | irix6* | nonstopux*)
14279 case $host_os in
14280 nonstopux*) version_type=nonstopux ;;
14281 *)
14282 if test "$lt_cv_prog_gnu_ld" = yes; then
14283 version_type=linux
14284 else
14285 version_type=irix
14286 fi ;;
14287 esac
14288 need_lib_prefix=no
14289 need_version=no
14290 soname_spec='${libname}${release}${shared_ext}$major'
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14292 case $host_os in
14293 irix5* | nonstopux*)
14294 libsuff= shlibsuff=
14295 ;;
14296 *)
14297 case $LD in # libtool.m4 will add one of these switches to LD
14298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14299 libsuff= shlibsuff= libmagic=32-bit;;
14300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14301 libsuff=32 shlibsuff=N32 libmagic=N32;;
14302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14304 *) libsuff= shlibsuff= libmagic=never-match;;
14305 esac
14306 ;;
14307 esac
14308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14309 shlibpath_overrides_runpath=no
14310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14312 hardcode_into_libs=yes
14313 ;;
14314
14315# No shared lib support for Linux oldld, aout, or coff.
14316linux*oldld* | linux*aout* | linux*coff*)
14317 dynamic_linker=no
14318 ;;
14319
14320# This must be Linux ELF.
14321linux*)
14322 version_type=linux
14323 need_lib_prefix=no
14324 need_version=no
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 shlibpath_overrides_runpath=no
14330 # This implies no fast_install, which is unacceptable.
14331 # Some rework will be needed to allow for fast_install
14332 # before this can be enabled.
14333 hardcode_into_libs=yes
14334
14335 # Append ld.so.conf contents to the search path
14336 if test -f /etc/ld.so.conf; then
14337 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14339 fi
14340
14341 # We used to test for /lib/ld.so.1 and disable shared libraries on
14342 # powerpc, because MkLinux only supported shared libraries with the
14343 # GNU dynamic linker. Since this was broken with cross compilers,
14344 # most powerpc-linux boxes support dynamic linking these days and
14345 # people can always --disable-shared, the test was removed, and we
14346 # assume the GNU/Linux dynamic linker is in use.
14347 dynamic_linker='GNU/Linux ld.so'
14348 ;;
14349
14350netbsdelf*-gnu)
14351 version_type=linux
14352 need_lib_prefix=no
14353 need_version=no
14354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14355 soname_spec='${libname}${release}${shared_ext}$major'
14356 shlibpath_var=LD_LIBRARY_PATH
14357 shlibpath_overrides_runpath=no
14358 hardcode_into_libs=yes
14359 dynamic_linker='NetBSD ld.elf_so'
14360 ;;
14361
14362knetbsd*-gnu)
14363 version_type=linux
14364 need_lib_prefix=no
14365 need_version=no
14366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14367 soname_spec='${libname}${release}${shared_ext}$major'
14368 shlibpath_var=LD_LIBRARY_PATH
14369 shlibpath_overrides_runpath=no
14370 hardcode_into_libs=yes
14371 dynamic_linker='GNU ld.so'
14372 ;;
14373
14374netbsd*)
14375 version_type=sunos
14376 need_lib_prefix=no
14377 need_version=no
14378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14381 dynamic_linker='NetBSD (a.out) ld.so'
14382 else
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14384 soname_spec='${libname}${release}${shared_ext}$major'
14385 dynamic_linker='NetBSD ld.elf_so'
14386 fi
14387 shlibpath_var=LD_LIBRARY_PATH
14388 shlibpath_overrides_runpath=yes
14389 hardcode_into_libs=yes
14390 ;;
14391
14392newsos6)
14393 version_type=linux
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395 shlibpath_var=LD_LIBRARY_PATH
14396 shlibpath_overrides_runpath=yes
14397 ;;
14398
14399nto-qnx*)
14400 version_type=linux
14401 need_lib_prefix=no
14402 need_version=no
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404 soname_spec='${libname}${release}${shared_ext}$major'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=yes
14407 ;;
14408
14409openbsd*)
14410 version_type=sunos
14411 need_lib_prefix=no
14412 need_version=yes
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14415 shlibpath_var=LD_LIBRARY_PATH
14416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14417 case $host_os in
14418 openbsd2.[89] | openbsd2.[89].*)
14419 shlibpath_overrides_runpath=no
14420 ;;
14421 *)
14422 shlibpath_overrides_runpath=yes
14423 ;;
14424 esac
14425 else
14426 shlibpath_overrides_runpath=yes
14427 fi
14428 ;;
14429
14430os2*)
14431 libname_spec='$name'
14432 shrext_cmds=".dll"
14433 need_lib_prefix=no
14434 library_names_spec='$libname${shared_ext} $libname.a'
14435 dynamic_linker='OS/2 ld.exe'
14436 shlibpath_var=LIBPATH
14437 ;;
14438
14439osf3* | osf4* | osf5*)
14440 version_type=osf
14441 need_lib_prefix=no
14442 need_version=no
14443 soname_spec='${libname}${release}${shared_ext}$major'
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14448 ;;
14449
14450sco3.2v5*)
14451 version_type=osf
14452 soname_spec='${libname}${release}${shared_ext}$major'
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 ;;
14456
14457solaris*)
14458 version_type=linux
14459 need_lib_prefix=no
14460 need_version=no
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 shlibpath_overrides_runpath=yes
14465 hardcode_into_libs=yes
14466 # ldd complains unless libraries are executable
14467 postinstall_cmds='chmod +x $lib'
14468 ;;
14469
14470sunos4*)
14471 version_type=sunos
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=yes
14476 if test "$with_gnu_ld" = yes; then
14477 need_lib_prefix=no
14478 fi
14479 need_version=yes
14480 ;;
14481
14482sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14483 version_type=linux
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 case $host_vendor in
14488 sni)
14489 shlibpath_overrides_runpath=no
14490 need_lib_prefix=no
14491 export_dynamic_flag_spec='${wl}-Blargedynsym'
14492 runpath_var=LD_RUN_PATH
14493 ;;
14494 siemens)
14495 need_lib_prefix=no
14496 ;;
14497 motorola)
14498 need_lib_prefix=no
14499 need_version=no
14500 shlibpath_overrides_runpath=no
14501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14502 ;;
14503 esac
14504 ;;
14505
14506sysv4*MP*)
14507 if test -d /usr/nec ;then
14508 version_type=linux
14509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14510 soname_spec='$libname${shared_ext}.$major'
14511 shlibpath_var=LD_LIBRARY_PATH
14512 fi
14513 ;;
14514
14515uts4*)
14516 version_type=linux
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 ;;
14521
14522*)
14523 dynamic_linker=no
14524 ;;
14525esac
14526echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14527echo "${ECHO_T}$dynamic_linker" >&6
14528test "$dynamic_linker" = no && can_build_shared=no
14529
14530echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14531echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14532hardcode_action_F77=
14533if test -n "$hardcode_libdir_flag_spec_F77" || \
14534 test -n "$runpath_var F77" || \
14535 test "X$hardcode_automatic_F77"="Xyes" ; then
14536
14537 # We can hardcode non-existant directories.
14538 if test "$hardcode_direct_F77" != no &&
14539 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14540 # have to relink, otherwise we might link with an installed library
14541 # when we should be linking with a yet-to-be-installed one
14542 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14543 test "$hardcode_minus_L_F77" != no; then
14544 # Linking always hardcodes the temporary library directory.
14545 hardcode_action_F77=relink
14546 else
14547 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14548 hardcode_action_F77=immediate
14549 fi
14550else
14551 # We cannot hardcode anything, or else we can only hardcode existing
14552 # directories.
14553 hardcode_action_F77=unsupported
14554fi
14555echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14556echo "${ECHO_T}$hardcode_action_F77" >&6
14557
14558if test "$hardcode_action_F77" = relink; then
14559 # Fast installation is not supported
14560 enable_fast_install=no
14561elif test "$shlibpath_overrides_runpath" = yes ||
14562 test "$enable_shared" = no; then
14563 # Fast installation is not necessary
14564 enable_fast_install=needless
14565fi
14566
14567striplib=
14568old_striplib=
14569echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14570echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14571if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14572 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14573 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14574 echo "$as_me:$LINENO: result: yes" >&5
14575echo "${ECHO_T}yes" >&6
14576else
14577# FIXME - insert some real tests, host_os isn't really good enough
14578 case $host_os in
14579 darwin*)
14580 if test -n "$STRIP" ; then
14581 striplib="$STRIP -x"
14582 echo "$as_me:$LINENO: result: yes" >&5
14583echo "${ECHO_T}yes" >&6
14584 else
14585 echo "$as_me:$LINENO: result: no" >&5
14586echo "${ECHO_T}no" >&6
14587fi
14588 ;;
14589 *)
14590 echo "$as_me:$LINENO: result: no" >&5
14591echo "${ECHO_T}no" >&6
14592 ;;
14593 esac
14594fi
14595
14596
14597
14598# The else clause should only fire when bootstrapping the
14599# libtool distribution, otherwise you forgot to ship ltmain.sh
14600# with your package, and you will get complaints that there are
14601# no rules to generate ltmain.sh.
14602if test -f "$ltmain"; then
14603 # See if we are running on zsh, and set the options which allow our commands through
14604 # without removal of \ escapes.
14605 if test -n "${ZSH_VERSION+set}" ; then
14606 setopt NO_GLOB_SUBST
14607 fi
14608 # Now quote all the things that may contain metacharacters while being
14609 # careful not to overquote the AC_SUBSTed values. We take copies of the
14610 # variables and quote the copies for generation of the libtool script.
14611 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14612 SED SHELL STRIP \
14613 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14614 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14615 deplibs_check_method reload_flag reload_cmds need_locks \
14616 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14617 lt_cv_sys_global_symbol_to_c_name_address \
14618 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14619 old_postinstall_cmds old_postuninstall_cmds \
14620 compiler_F77 \
14621 CC_F77 \
14622 LD_F77 \
14623 lt_prog_compiler_wl_F77 \
14624 lt_prog_compiler_pic_F77 \
14625 lt_prog_compiler_static_F77 \
14626 lt_prog_compiler_no_builtin_flag_F77 \
14627 export_dynamic_flag_spec_F77 \
14628 thread_safe_flag_spec_F77 \
14629 whole_archive_flag_spec_F77 \
14630 enable_shared_with_static_runtimes_F77 \
14631 old_archive_cmds_F77 \
14632 old_archive_from_new_cmds_F77 \
14633 predep_objects_F77 \
14634 postdep_objects_F77 \
14635 predeps_F77 \
14636 postdeps_F77 \
14637 compiler_lib_search_path_F77 \
14638 archive_cmds_F77 \
14639 archive_expsym_cmds_F77 \
14640 postinstall_cmds_F77 \
14641 postuninstall_cmds_F77 \
14642 old_archive_from_expsyms_cmds_F77 \
14643 allow_undefined_flag_F77 \
14644 no_undefined_flag_F77 \
14645 export_symbols_cmds_F77 \
14646 hardcode_libdir_flag_spec_F77 \
14647 hardcode_libdir_flag_spec_ld_F77 \
14648 hardcode_libdir_separator_F77 \
14649 hardcode_automatic_F77 \
14650 module_cmds_F77 \
14651 module_expsym_cmds_F77 \
14652 lt_cv_prog_compiler_c_o_F77 \
14653 exclude_expsyms_F77 \
14654 include_expsyms_F77; do
14655
14656 case $var in
14657 old_archive_cmds_F77 | \
14658 old_archive_from_new_cmds_F77 | \
14659 archive_cmds_F77 | \
14660 archive_expsym_cmds_F77 | \
14661 module_cmds_F77 | \
14662 module_expsym_cmds_F77 | \
14663 old_archive_from_expsyms_cmds_F77 | \
14664 export_symbols_cmds_F77 | \
14665 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14666 postinstall_cmds | postuninstall_cmds | \
14667 old_postinstall_cmds | old_postuninstall_cmds | \
14668 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14669 # Double-quote double-evaled strings.
14670 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14671 ;;
14672 *)
14673 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14674 ;;
14675 esac
14676 done
14677
14678 case $lt_echo in
14679 *'\$0 --fallback-echo"')
14680 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14681 ;;
14682 esac
14683
14684cfgfile="$ofile"
14685
14686 cat <<__EOF__ >> "$cfgfile"
14687# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14688
14689# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14690
14691# Shell to use when invoking shell scripts.
14692SHELL=$lt_SHELL
14693
14694# Whether or not to build shared libraries.
14695build_libtool_libs=$enable_shared
14696
14697# Whether or not to build static libraries.
14698build_old_libs=$enable_static
14699
14700# Whether or not to add -lc for building shared libraries.
14701build_libtool_need_lc=$archive_cmds_need_lc_F77
14702
14703# Whether or not to disallow shared libs when runtime libs are static
14704allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14705
14706# Whether or not to optimize for fast installation.
14707fast_install=$enable_fast_install
14708
14709# The host system.
14710host_alias=$host_alias
14711host=$host
14712
14713# An echo program that does not interpret backslashes.
14714echo=$lt_echo
14715
14716# The archiver.
14717AR=$lt_AR
14718AR_FLAGS=$lt_AR_FLAGS
14719
14720# A C compiler.
14721LTCC=$lt_LTCC
14722
14723# A language-specific compiler.
14724CC=$lt_compiler_F77
14725
14726# Is the compiler the GNU C compiler?
14727with_gcc=$GCC_F77
14728
14729# An ERE matcher.
14730EGREP=$lt_EGREP
14731
14732# The linker used to build libraries.
14733LD=$lt_LD_F77
14734
14735# Whether we need hard or soft links.
14736LN_S=$lt_LN_S
14737
14738# A BSD-compatible nm program.
14739NM=$lt_NM
14740
14741# A symbol stripping program
14742STRIP=$lt_STRIP
14743
14744# Used to examine libraries when file_magic_cmd begins "file"
14745MAGIC_CMD=$MAGIC_CMD
14746
14747# Used on cygwin: DLL creation program.
14748DLLTOOL="$DLLTOOL"
14749
14750# Used on cygwin: object dumper.
14751OBJDUMP="$OBJDUMP"
14752
14753# Used on cygwin: assembler.
14754AS="$AS"
14755
14756# The name of the directory that contains temporary libtool files.
14757objdir=$objdir
14758
14759# How to create reloadable object files.
14760reload_flag=$lt_reload_flag
14761reload_cmds=$lt_reload_cmds
14762
14763# How to pass a linker flag through the compiler.
14764wl=$lt_lt_prog_compiler_wl_F77
14765
14766# Object file suffix (normally "o").
14767objext="$ac_objext"
14768
14769# Old archive suffix (normally "a").
14770libext="$libext"
14771
14772# Shared library suffix (normally ".so").
14773shrext_cmds='$shrext_cmds'
14774
14775# Executable file suffix (normally "").
14776exeext="$exeext"
14777
14778# Additional compiler flags for building library objects.
14779pic_flag=$lt_lt_prog_compiler_pic_F77
14780pic_mode=$pic_mode
14781
14782# What is the maximum length of a command?
14783max_cmd_len=$lt_cv_sys_max_cmd_len
14784
14785# Does compiler simultaneously support -c and -o options?
14786compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14787
14788# Must we lock files when doing compilation ?
14789need_locks=$lt_need_locks
14790
14791# Do we need the lib prefix for modules?
14792need_lib_prefix=$need_lib_prefix
14793
14794# Do we need a version for libraries?
14795need_version=$need_version
14796
14797# Whether dlopen is supported.
14798dlopen_support=$enable_dlopen
14799
14800# Whether dlopen of programs is supported.
14801dlopen_self=$enable_dlopen_self
14802
14803# Whether dlopen of statically linked programs is supported.
14804dlopen_self_static=$enable_dlopen_self_static
14805
14806# Compiler flag to prevent dynamic linking.
14807link_static_flag=$lt_lt_prog_compiler_static_F77
14808
14809# Compiler flag to turn off builtin functions.
14810no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14811
14812# Compiler flag to allow reflexive dlopens.
14813export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14814
14815# Compiler flag to generate shared objects directly from archives.
14816whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14817
14818# Compiler flag to generate thread-safe objects.
14819thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14820
14821# Library versioning type.
14822version_type=$version_type
14823
14824# Format of library name prefix.
14825libname_spec=$lt_libname_spec
14826
14827# List of archive names. First name is the real one, the rest are links.
14828# The last name is the one that the linker finds with -lNAME.
14829library_names_spec=$lt_library_names_spec
14830
14831# The coded name of the library, if different from the real name.
14832soname_spec=$lt_soname_spec
14833
14834# Commands used to build and install an old-style archive.
14835RANLIB=$lt_RANLIB
14836old_archive_cmds=$lt_old_archive_cmds_F77
14837old_postinstall_cmds=$lt_old_postinstall_cmds
14838old_postuninstall_cmds=$lt_old_postuninstall_cmds
14839
14840# Create an old-style archive from a shared archive.
14841old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14842
14843# Create a temporary old-style archive to link instead of a shared archive.
14844old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14845
14846# Commands used to build and install a shared archive.
14847archive_cmds=$lt_archive_cmds_F77
14848archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14849postinstall_cmds=$lt_postinstall_cmds
14850postuninstall_cmds=$lt_postuninstall_cmds
14851
14852# Commands used to build a loadable module (assumed same as above if empty)
14853module_cmds=$lt_module_cmds_F77
14854module_expsym_cmds=$lt_module_expsym_cmds_F77
14855
14856# Commands to strip libraries.
14857old_striplib=$lt_old_striplib
14858striplib=$lt_striplib
14859
14860# Dependencies to place before the objects being linked to create a
14861# shared library.
14862predep_objects=$lt_predep_objects_F77
14863
14864# Dependencies to place after the objects being linked to create a
14865# shared library.
14866postdep_objects=$lt_postdep_objects_F77
14867
14868# Dependencies to place before the objects being linked to create a
14869# shared library.
14870predeps=$lt_predeps_F77
14871
14872# Dependencies to place after the objects being linked to create a
14873# shared library.
14874postdeps=$lt_postdeps_F77
14875
14876# The library search path used internally by the compiler when linking
14877# a shared library.
14878compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14879
14880# Method to check whether dependent libraries are shared objects.
14881deplibs_check_method=$lt_deplibs_check_method
14882
14883# Command to use when deplibs_check_method == file_magic.
14884file_magic_cmd=$lt_file_magic_cmd
14885
14886# Flag that allows shared libraries with undefined symbols to be built.
14887allow_undefined_flag=$lt_allow_undefined_flag_F77
14888
14889# Flag that forces no undefined symbols.
14890no_undefined_flag=$lt_no_undefined_flag_F77
14891
14892# Commands used to finish a libtool library installation in a directory.
14893finish_cmds=$lt_finish_cmds
14894
14895# Same as above, but a single script fragment to be evaled but not shown.
14896finish_eval=$lt_finish_eval
14897
14898# Take the output of nm and produce a listing of raw symbols and C names.
14899global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14900
14901# Transform the output of nm in a proper C declaration
14902global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14903
14904# Transform the output of nm in a C name address pair
14905global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14906
14907# This is the shared library runtime path variable.
14908runpath_var=$runpath_var
14909
14910# This is the shared library path variable.
14911shlibpath_var=$shlibpath_var
14912
14913# Is shlibpath searched before the hard-coded library search path?
14914shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14915
14916# How to hardcode a shared library path into an executable.
14917hardcode_action=$hardcode_action_F77
14918
14919# Whether we should hardcode library paths into libraries.
14920hardcode_into_libs=$hardcode_into_libs
14921
14922# Flag to hardcode \$libdir into a binary during linking.
14923# This must work even if \$libdir does not exist.
14924hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14925
14926# If ld is used when linking, flag to hardcode \$libdir into
14927# a binary during linking. This must work even if \$libdir does
14928# not exist.
14929hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14930
14931# Whether we need a single -rpath flag with a separated argument.
14932hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14933
14934# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14935# resulting binary.
14936hardcode_direct=$hardcode_direct_F77
14937
14938# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14939# resulting binary.
14940hardcode_minus_L=$hardcode_minus_L_F77
14941
14942# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14943# the resulting binary.
14944hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14945
14946# Set to yes if building a shared library automatically hardcodes DIR into the library
14947# and all subsequent libraries and executables linked against it.
14948hardcode_automatic=$hardcode_automatic_F77
14949
14950# Variables whose values should be saved in libtool wrapper scripts and
14951# restored at relink time.
14952variables_saved_for_relink="$variables_saved_for_relink"
14953
14954# Whether libtool must link a program against all its dependency libraries.
14955link_all_deplibs=$link_all_deplibs_F77
14956
14957# Compile-time system search path for libraries
14958sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14959
14960# Run-time system search path for libraries
14961sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14962
14963# Fix the shell variable \$srcfile for the compiler.
14964fix_srcfile_path="$fix_srcfile_path_F77"
14965
14966# Set to yes if exported symbols are required.
14967always_export_symbols=$always_export_symbols_F77
14968
14969# The commands to list exported symbols.
14970export_symbols_cmds=$lt_export_symbols_cmds_F77
14971
14972# The commands to extract the exported symbol list from a shared archive.
14973extract_expsyms_cmds=$lt_extract_expsyms_cmds
14974
14975# Symbols that should not be listed in the preloaded symbols.
14976exclude_expsyms=$lt_exclude_expsyms_F77
14977
14978# Symbols that must always be exported.
14979include_expsyms=$lt_include_expsyms_F77
14980
14981# ### END LIBTOOL TAG CONFIG: $tagname
14982
14983__EOF__
14984
14985
14986else
14987 # If there is no Makefile yet, we rely on a make rule to execute
14988 # `config.status --recheck' to rerun these tests and create the
14989 # libtool script then.
14990 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14991 if test -f "$ltmain_in"; then
14992 test -f Makefile && make "$ltmain"
14993 fi
14994fi
14995
14996
14997ac_ext=c
14998ac_cpp='$CPP $CPPFLAGS'
14999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15001ac_compiler_gnu=$ac_cv_c_compiler_gnu
15002
15003CC="$lt_save_CC"
15004
15005 else
15006 tagname=""
15007 fi
15008 ;;
15009
15010 GCJ)
15011 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15012
15013
15014
15015# Source file extension for Java test sources.
15016ac_ext=java
15017
15018# Object file extension for compiled Java test sources.
15019objext=o
15020objext_GCJ=$objext
15021
15022# Code to be used in simple compile tests
15023lt_simple_compile_test_code="class foo {}\n"
15024
15025# Code to be used in simple link tests
15026lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15027
15028# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15029
15030# If no C compiler was specified, use CC.
15031LTCC=${LTCC-"$CC"}
15032
15033# Allow CC to be a program name with arguments.
15034compiler=$CC
15035
15036
15037# Allow CC to be a program name with arguments.
15038lt_save_CC="$CC"
15039CC=${GCJ-"gcj"}
15040compiler=$CC
15041compiler_GCJ=$CC
15042
15043# GCJ did not exist at the time GCC didn't implicitly link libc in.
15044archive_cmds_need_lc_GCJ=no
15045
15046
15047lt_prog_compiler_no_builtin_flag_GCJ=
15048
15049if test "$GCC" = yes; then
15050 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15051
15052
15053echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15054echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15055if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15057else
15058 lt_cv_prog_compiler_rtti_exceptions=no
15059 ac_outfile=conftest.$ac_objext
15060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15061 lt_compiler_flag="-fno-rtti -fno-exceptions"
15062 # Insert the option either (1) after the last *FLAGS variable, or
15063 # (2) before a word containing "conftest.", or (3) at the end.
15064 # Note that $ac_compile itself does not contain backslashes and begins
15065 # with a dollar sign (not a hyphen), so the echo should work correctly.
15066 # The option is referenced via a variable to avoid confusing sed.
15067 lt_compile=`echo "$ac_compile" | $SED \
15068 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15070 -e 's:$: $lt_compiler_flag:'`
15071 (eval echo "\"\$as_me:15071: $lt_compile\"" >&5)
15072 (eval "$lt_compile" 2>conftest.err)
15073 ac_status=$?
15074 cat conftest.err >&5
15075 echo "$as_me:15075: \$? = $ac_status" >&5
15076 if (exit $ac_status) && test -s "$ac_outfile"; then
15077 # The compiler can only warn and ignore the option if not recognized
15078 # So say no if there are warnings
15079 if test ! -s conftest.err; then
15080 lt_cv_prog_compiler_rtti_exceptions=yes
15081 fi
15082 fi
15083 $rm conftest*
15084
15085fi
15086echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15087echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15088
15089if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15090 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15091else
15092 :
15093fi
15094
15095fi
15096
15097lt_prog_compiler_wl_GCJ=
15098lt_prog_compiler_pic_GCJ=
15099lt_prog_compiler_static_GCJ=
15100
15101echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15102echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15103
15104 if test "$GCC" = yes; then
15105 lt_prog_compiler_wl_GCJ='-Wl,'
15106 lt_prog_compiler_static_GCJ='-static'
15107
15108 case $host_os in
15109 aix*)
15110 # All AIX code is PIC.
15111 if test "$host_cpu" = ia64; then
15112 # AIX 5 now supports IA64 processor
15113 lt_prog_compiler_static_GCJ='-Bstatic'
15114 fi
15115 ;;
15116
15117 amigaos*)
15118 # FIXME: we need at least 68020 code to build shared libraries, but
15119 # adding the `-m68020' flag to GCC prevents building anything better,
15120 # like `-m68040'.
15121 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15122 ;;
15123
15124 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15125 # PIC is the default for these OSes.
15126 ;;
15127
15128 mingw* | pw32* | os2*)
15129 # This hack is so that the source file can tell whether it is being
15130 # built for inclusion in a dll (and should export symbols for example).
15131 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15132 ;;
15133
15134 darwin* | rhapsody*)
15135 # PIC is the default on this platform
15136 # Common symbols not allowed in MH_DYLIB files
15137 lt_prog_compiler_pic_GCJ='-fno-common'
15138 ;;
15139
15140 msdosdjgpp*)
15141 # Just because we use GCC doesn't mean we suddenly get shared libraries
15142 # on systems that don't support them.
15143 lt_prog_compiler_can_build_shared_GCJ=no
15144 enable_shared=no
15145 ;;
15146
15147 sysv4*MP*)
15148 if test -d /usr/nec; then
15149 lt_prog_compiler_pic_GCJ=-Kconform_pic
15150 fi
15151 ;;
15152
15153 hpux*)
15154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15155 # not for PA HP-UX.
15156 case "$host_cpu" in
15157 hppa*64*|ia64*)
15158 # +Z the default
15159 ;;
15160 *)
15161 lt_prog_compiler_pic_GCJ='-fPIC'
15162 ;;
15163 esac
15164 ;;
15165
15166 *)
15167 lt_prog_compiler_pic_GCJ='-fPIC'
15168 ;;
15169 esac
15170 else
15171 # PORTME Check for flag to pass linker flags through the system compiler.
15172 case $host_os in
15173 aix*)
15174 lt_prog_compiler_wl_GCJ='-Wl,'
15175 if test "$host_cpu" = ia64; then
15176 # AIX 5 now supports IA64 processor
15177 lt_prog_compiler_static_GCJ='-Bstatic'
15178 else
15179 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15180 fi
15181 ;;
15182
15183 mingw* | pw32* | os2*)
15184 # This hack is so that the source file can tell whether it is being
15185 # built for inclusion in a dll (and should export symbols for example).
15186 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15187 ;;
15188
15189 hpux9* | hpux10* | hpux11*)
15190 lt_prog_compiler_wl_GCJ='-Wl,'
15191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15192 # not for PA HP-UX.
15193 case "$host_cpu" in
15194 hppa*64*|ia64*)
15195 # +Z the default
15196 ;;
15197 *)
15198 lt_prog_compiler_pic_GCJ='+Z'
15199 ;;
15200 esac
15201 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15202 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15203 ;;
15204
15205 irix5* | irix6* | nonstopux*)
15206 lt_prog_compiler_wl_GCJ='-Wl,'
15207 # PIC (with -KPIC) is the default.
15208 lt_prog_compiler_static_GCJ='-non_shared'
15209 ;;
15210
15211 newsos6)
15212 lt_prog_compiler_pic_GCJ='-KPIC'
15213 lt_prog_compiler_static_GCJ='-Bstatic'
15214 ;;
15215
15216 linux*)
15217 case $CC in
15218 icc* | ecc*)
15219 lt_prog_compiler_wl_GCJ='-Wl,'
15220 lt_prog_compiler_pic_GCJ='-KPIC'
15221 lt_prog_compiler_static_GCJ='-static'
15222 ;;
15223 ccc*)
15224 lt_prog_compiler_wl_GCJ='-Wl,'
15225 # All Alpha code is PIC.
15226 lt_prog_compiler_static_GCJ='-non_shared'
15227 ;;
15228 esac
15229 ;;
15230
15231 osf3* | osf4* | osf5*)
15232 lt_prog_compiler_wl_GCJ='-Wl,'
15233 # All OSF/1 code is PIC.
15234 lt_prog_compiler_static_GCJ='-non_shared'
15235 ;;
15236
15237 sco3.2v5*)
15238 lt_prog_compiler_pic_GCJ='-Kpic'
15239 lt_prog_compiler_static_GCJ='-dn'
15240 ;;
15241
15242 solaris*)
15243 lt_prog_compiler_wl_GCJ='-Wl,'
15244 lt_prog_compiler_pic_GCJ='-KPIC'
15245 lt_prog_compiler_static_GCJ='-Bstatic'
15246 ;;
15247
15248 sunos4*)
15249 lt_prog_compiler_wl_GCJ='-Qoption ld '
15250 lt_prog_compiler_pic_GCJ='-PIC'
15251 lt_prog_compiler_static_GCJ='-Bstatic'
15252 ;;
15253
15254 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15255 lt_prog_compiler_wl_GCJ='-Wl,'
15256 lt_prog_compiler_pic_GCJ='-KPIC'
15257 lt_prog_compiler_static_GCJ='-Bstatic'
15258 ;;
15259
15260 sysv4*MP*)
15261 if test -d /usr/nec ;then
15262 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15263 lt_prog_compiler_static_GCJ='-Bstatic'
15264 fi
15265 ;;
15266
15267 uts4*)
15268 lt_prog_compiler_pic_GCJ='-pic'
15269 lt_prog_compiler_static_GCJ='-Bstatic'
15270 ;;
15271
15272 *)
15273 lt_prog_compiler_can_build_shared_GCJ=no
15274 ;;
15275 esac
15276 fi
15277
15278echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15279echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15280
15281#
15282# Check to make sure the PIC flag actually works.
15283#
15284if test -n "$lt_prog_compiler_pic_GCJ"; then
15285
15286echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15287echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15288if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290else
15291 lt_prog_compiler_pic_works_GCJ=no
15292 ac_outfile=conftest.$ac_objext
15293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15294 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15295 # Insert the option either (1) after the last *FLAGS variable, or
15296 # (2) before a word containing "conftest.", or (3) at the end.
15297 # Note that $ac_compile itself does not contain backslashes and begins
15298 # with a dollar sign (not a hyphen), so the echo should work correctly.
15299 # The option is referenced via a variable to avoid confusing sed.
15300 lt_compile=`echo "$ac_compile" | $SED \
15301 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15303 -e 's:$: $lt_compiler_flag:'`
15304 (eval echo "\"\$as_me:15304: $lt_compile\"" >&5)
15305 (eval "$lt_compile" 2>conftest.err)
15306 ac_status=$?
15307 cat conftest.err >&5
15308 echo "$as_me:15308: \$? = $ac_status" >&5
15309 if (exit $ac_status) && test -s "$ac_outfile"; then
15310 # The compiler can only warn and ignore the option if not recognized
15311 # So say no if there are warnings
15312 if test ! -s conftest.err; then
15313 lt_prog_compiler_pic_works_GCJ=yes
15314 fi
15315 fi
15316 $rm conftest*
15317
15318fi
15319echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15320echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15321
15322if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15323 case $lt_prog_compiler_pic_GCJ in
15324 "" | " "*) ;;
15325 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15326 esac
15327else
15328 lt_prog_compiler_pic_GCJ=
15329 lt_prog_compiler_can_build_shared_GCJ=no
15330fi
15331
15332fi
15333case "$host_os" in
15334 # For platforms which do not support PIC, -DPIC is meaningless:
15335 *djgpp*)
15336 lt_prog_compiler_pic_GCJ=
15337 ;;
15338 *)
15339 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15340 ;;
15341esac
15342
15343echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15344echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15345if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348 lt_cv_prog_compiler_c_o_GCJ=no
15349 $rm -r conftest 2>/dev/null
15350 mkdir conftest
15351 cd conftest
15352 mkdir out
15353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15354
15355 lt_compiler_flag="-o out/conftest2.$ac_objext"
15356 # Insert the option either (1) after the last *FLAGS variable, or
15357 # (2) before a word containing "conftest.", or (3) at the end.
15358 # Note that $ac_compile itself does not contain backslashes and begins
15359 # with a dollar sign (not a hyphen), so the echo should work correctly.
15360 lt_compile=`echo "$ac_compile" | $SED \
15361 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15363 -e 's:$: $lt_compiler_flag:'`
15364 (eval echo "\"\$as_me:15364: $lt_compile\"" >&5)
15365 (eval "$lt_compile" 2>out/conftest.err)
15366 ac_status=$?
15367 cat out/conftest.err >&5
15368 echo "$as_me:15368: \$? = $ac_status" >&5
15369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15370 then
15371 # The compiler can only warn and ignore the option if not recognized
15372 # So say no if there are warnings
15373 if test ! -s out/conftest.err; then
15374 lt_cv_prog_compiler_c_o_GCJ=yes
15375 fi
15376 fi
15377 chmod u+w .
15378 $rm conftest*
15379 # SGI C++ compiler will create directory out/ii_files/ for
15380 # template instantiation
15381 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15382 $rm out/* && rmdir out
15383 cd ..
15384 rmdir conftest
15385 $rm conftest*
15386
15387fi
15388echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15389echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15390
15391
15392hard_links="nottested"
15393if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15394 # do not overwrite the value of need_locks provided by the user
15395 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15396echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15397 hard_links=yes
15398 $rm conftest*
15399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15400 touch conftest.a
15401 ln conftest.a conftest.b 2>&5 || hard_links=no
15402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15403 echo "$as_me:$LINENO: result: $hard_links" >&5
15404echo "${ECHO_T}$hard_links" >&6
15405 if test "$hard_links" = no; then
15406 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15407echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15408 need_locks=warn
15409 fi
15410else
15411 need_locks=no
15412fi
15413
15414echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15415echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15416
15417 runpath_var=
15418 allow_undefined_flag_GCJ=
15419 enable_shared_with_static_runtimes_GCJ=no
15420 archive_cmds_GCJ=
15421 archive_expsym_cmds_GCJ=
15422 old_archive_From_new_cmds_GCJ=
15423 old_archive_from_expsyms_cmds_GCJ=
15424 export_dynamic_flag_spec_GCJ=
15425 whole_archive_flag_spec_GCJ=
15426 thread_safe_flag_spec_GCJ=
15427 hardcode_libdir_flag_spec_GCJ=
15428 hardcode_libdir_flag_spec_ld_GCJ=
15429 hardcode_libdir_separator_GCJ=
15430 hardcode_direct_GCJ=no
15431 hardcode_minus_L_GCJ=no
15432 hardcode_shlibpath_var_GCJ=unsupported
15433 link_all_deplibs_GCJ=unknown
15434 hardcode_automatic_GCJ=no
15435 module_cmds_GCJ=
15436 module_expsym_cmds_GCJ=
15437 always_export_symbols_GCJ=no
15438 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15439 # include_expsyms should be a list of space-separated symbols to be *always*
15440 # included in the symbol list
15441 include_expsyms_GCJ=
15442 # exclude_expsyms can be an extended regexp of symbols to exclude
15443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15445 # as well as any symbol that contains `d'.
15446 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15448 # platforms (ab)use it in PIC code, but their linkers get confused if
15449 # the symbol is explicitly referenced. Since portable code cannot
15450 # rely on this symbol name, it's probably fine to never include it in
15451 # preloaded symbol tables.
15452 extract_expsyms_cmds=
15453
15454 case $host_os in
15455 cygwin* | mingw* | pw32*)
15456 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15457 # When not using gcc, we currently assume that we are using
15458 # Microsoft Visual C++.
15459 if test "$GCC" != yes; then
15460 with_gnu_ld=no
15461 fi
15462 ;;
15463 openbsd*)
15464 with_gnu_ld=no
15465 ;;
15466 esac
15467
15468 ld_shlibs_GCJ=yes
15469 if test "$with_gnu_ld" = yes; then
15470 # If archive_cmds runs LD, not CC, wlarc should be empty
15471 wlarc='${wl}'
15472
15473 # See if GNU ld supports shared libraries.
15474 case $host_os in
15475 aix3* | aix4* | aix5*)
15476 # On AIX/PPC, the GNU linker is very broken
15477 if test "$host_cpu" != ia64; then
15478 ld_shlibs_GCJ=no
15479 cat <<EOF 1>&2
15480
15481*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15482*** to be unable to reliably create shared libraries on AIX.
15483*** Therefore, libtool is disabling shared libraries support. If you
15484*** really care for shared libraries, you may want to modify your PATH
15485*** so that a non-GNU linker is found, and then restart.
15486
15487EOF
15488 fi
15489 ;;
15490
15491 amigaos*)
15492 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)'
15493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15494 hardcode_minus_L_GCJ=yes
15495
15496 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15497 # that the semantics of dynamic libraries on AmigaOS, at least up
15498 # to version 4, is to share data among multiple programs linked
15499 # with the same dynamic library. Since this doesn't match the
15500 # behavior of shared libraries on other platforms, we can't use
15501 # them.
15502 ld_shlibs_GCJ=no
15503 ;;
15504
15505 beos*)
15506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15507 allow_undefined_flag_GCJ=unsupported
15508 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15509 # support --undefined. This deserves some investigation. FIXME
15510 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511 else
15512 ld_shlibs_GCJ=no
15513 fi
15514 ;;
15515
15516 cygwin* | mingw* | pw32*)
15517 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15518 # as there is no search path for DLLs.
15519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15520 allow_undefined_flag_GCJ=unsupported
15521 always_export_symbols_GCJ=no
15522 enable_shared_with_static_runtimes_GCJ=yes
15523 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15524
15525 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15526 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15527 # If the export-symbols file already is a .def file (1st line
15528 # is EXPORTS), use it as is; otherwise, prepend...
15529 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15530 cp $export_symbols $output_objdir/$soname.def;
15531 else
15532 echo EXPORTS > $output_objdir/$soname.def;
15533 cat $export_symbols >> $output_objdir/$soname.def;
15534 fi~
15535 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15536 else
15537 ld_shlibs=no
15538 fi
15539 ;;
15540
15541 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15543 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15544 wlarc=
15545 else
15546 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15547 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15548 fi
15549 ;;
15550
15551 solaris* | sysv5*)
15552 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15553 ld_shlibs_GCJ=no
15554 cat <<EOF 1>&2
15555
15556*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15557*** create shared libraries on Solaris systems. Therefore, libtool
15558*** is disabling shared libraries support. We urge you to upgrade GNU
15559*** binutils to release 2.9.1 or newer. Another option is to modify
15560*** your PATH or compiler configuration so that the native linker is
15561*** used, and then restart.
15562
15563EOF
15564 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15565 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15567 else
15568 ld_shlibs_GCJ=no
15569 fi
15570 ;;
15571
15572 sunos4*)
15573 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15574 wlarc=
15575 hardcode_direct_GCJ=yes
15576 hardcode_shlibpath_var_GCJ=no
15577 ;;
15578
15579 linux*)
15580 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15581 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15582 archive_cmds_GCJ="$tmp_archive_cmds"
15583 supports_anon_versioning=no
15584 case `$LD -v 2>/dev/null` in
15585 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15588 *\ 2.11.*) ;; # other 2.11 versions
15589 *) supports_anon_versioning=yes ;;
15590 esac
15591 if test $supports_anon_versioning = yes; then
15592 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15593cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15594$echo "local: *; };" >> $output_objdir/$libname.ver~
15595 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15596 else
15597 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15598 fi
15599 link_all_deplibs_GCJ=no
15600 else
15601 ld_shlibs_GCJ=no
15602 fi
15603 ;;
15604
15605 *)
15606 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15608 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15609 else
15610 ld_shlibs_GCJ=no
15611 fi
15612 ;;
15613 esac
15614
15615 if test "$ld_shlibs_GCJ" = yes; then
15616 runpath_var=LD_RUN_PATH
15617 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15618 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15619 # ancient GNU ld didn't support --whole-archive et. al.
15620 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15621 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15622 else
15623 whole_archive_flag_spec_GCJ=
15624 fi
15625 fi
15626 else
15627 # PORTME fill in a description of your system's linker (not GNU ld)
15628 case $host_os in
15629 aix3*)
15630 allow_undefined_flag_GCJ=unsupported
15631 always_export_symbols_GCJ=yes
15632 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'
15633 # Note: this linker hardcodes the directories in LIBPATH if there
15634 # are no directories specified by -L.
15635 hardcode_minus_L_GCJ=yes
15636 if test "$GCC" = yes && test -z "$link_static_flag"; then
15637 # Neither direct hardcoding nor static linking is supported with a
15638 # broken collect2.
15639 hardcode_direct_GCJ=unsupported
15640 fi
15641 ;;
15642
15643 aix4* | aix5*)
15644 if test "$host_cpu" = ia64; then
15645 # On IA64, the linker does run time linking by default, so we don't
15646 # have to do anything special.
15647 aix_use_runtimelinking=no
15648 exp_sym_flag='-Bexport'
15649 no_entry_flag=""
15650 else
15651 # If we're using GNU nm, then we don't want the "-C" option.
15652 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15653 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15654 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'
15655 else
15656 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'
15657 fi
15658 aix_use_runtimelinking=no
15659
15660 # Test if we are trying to use run time linking or normal
15661 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15662 # need to do runtime linking.
15663 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15664 for ld_flag in $LDFLAGS; do
15665 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15666 aix_use_runtimelinking=yes
15667 break
15668 fi
15669 done
15670 esac
15671
15672 exp_sym_flag='-bexport'
15673 no_entry_flag='-bnoentry'
15674 fi
15675
15676 # When large executables or shared objects are built, AIX ld can
15677 # have problems creating the table of contents. If linking a library
15678 # or program results in "error TOC overflow" add -mminimal-toc to
15679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15681
15682 archive_cmds_GCJ=''
15683 hardcode_direct_GCJ=yes
15684 hardcode_libdir_separator_GCJ=':'
15685 link_all_deplibs_GCJ=yes
15686
15687 if test "$GCC" = yes; then
15688 case $host_os in aix4.012|aix4.012.*)
15689 # We only want to do this on AIX 4.2 and lower, the check
15690 # below for broken collect2 doesn't work under 4.3+
15691 collect2name=`${CC} -print-prog-name=collect2`
15692 if test -f "$collect2name" && \
15693 strings "$collect2name" | grep resolve_lib_name >/dev/null
15694 then
15695 # We have reworked collect2
15696 hardcode_direct_GCJ=yes
15697 else
15698 # We have old collect2
15699 hardcode_direct_GCJ=unsupported
15700 # It fails to find uninstalled libraries when the uninstalled
15701 # path is not listed in the libpath. Setting hardcode_minus_L
15702 # to unsupported forces relinking
15703 hardcode_minus_L_GCJ=yes
15704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15705 hardcode_libdir_separator_GCJ=
15706 fi
15707 esac
15708 shared_flag='-shared'
15709 else
15710 # not using gcc
15711 if test "$host_cpu" = ia64; then
15712 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15713 # chokes on -Wl,-G. The following line is correct:
15714 shared_flag='-G'
15715 else
15716 if test "$aix_use_runtimelinking" = yes; then
15717 shared_flag='${wl}-G'
15718 else
15719 shared_flag='${wl}-bM:SRE'
15720 fi
15721 fi
15722 fi
15723
15724 # It seems that -bexpall does not export symbols beginning with
15725 # underscore (_), so it is better to generate a list of symbols to export.
15726 always_export_symbols_GCJ=yes
15727 if test "$aix_use_runtimelinking" = yes; then
15728 # Warning - without using the other runtime loading flags (-brtl),
15729 # -berok will link without error, but may produce a broken library.
15730 allow_undefined_flag_GCJ='-berok'
15731 # Determine the default libpath from the value encoded in an empty executable.
15732 cat >conftest.$ac_ext <<_ACEOF
15733/* confdefs.h. */
15734_ACEOF
15735cat confdefs.h >>conftest.$ac_ext
15736cat >>conftest.$ac_ext <<_ACEOF
15737/* end confdefs.h. */
15738
15739int
15740main ()
15741{
15742
15743 ;
15744 return 0;
15745}
15746_ACEOF
15747rm -f conftest.$ac_objext conftest$ac_exeext
15748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15749 (eval $ac_link) 2>conftest.er1
15750 ac_status=$?
15751 grep -v '^ *+' conftest.er1 >conftest.err
15752 rm -f conftest.er1
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; } &&
15762 { ac_try='test -s conftest$ac_exeext'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768
15769aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15770}'`
15771# Check for a 64-bit object if we didn't find anything.
15772if 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; }
15773}'`; fi
15774else
15775 echo "$as_me: failed program was:" >&5
15776sed 's/^/| /' conftest.$ac_ext >&5
15777
15778fi
15779rm -f conftest.err conftest.$ac_objext \
15780 conftest$ac_exeext conftest.$ac_ext
15781if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15782
15783 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15784 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"
15785 else
15786 if test "$host_cpu" = ia64; then
15787 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15788 allow_undefined_flag_GCJ="-z nodefs"
15789 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"
15790 else
15791 # Determine the default libpath from the value encoded in an empty executable.
15792 cat >conftest.$ac_ext <<_ACEOF
15793/* confdefs.h. */
15794_ACEOF
15795cat confdefs.h >>conftest.$ac_ext
15796cat >>conftest.$ac_ext <<_ACEOF
15797/* end confdefs.h. */
15798
15799int
15800main ()
15801{
15802
15803 ;
15804 return 0;
15805}
15806_ACEOF
15807rm -f conftest.$ac_objext conftest$ac_exeext
15808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15809 (eval $ac_link) 2>conftest.er1
15810 ac_status=$?
15811 grep -v '^ *+' conftest.er1 >conftest.err
15812 rm -f conftest.er1
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } &&
15816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; } &&
15822 { ac_try='test -s conftest$ac_exeext'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
15828
15829aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15830}'`
15831# Check for a 64-bit object if we didn't find anything.
15832if 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; }
15833}'`; fi
15834else
15835 echo "$as_me: failed program was:" >&5
15836sed 's/^/| /' conftest.$ac_ext >&5
15837
15838fi
15839rm -f conftest.err conftest.$ac_objext \
15840 conftest$ac_exeext conftest.$ac_ext
15841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15842
15843 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15844 # Warning - without using the other run time loading flags,
15845 # -berok will link without error, but may produce a broken library.
15846 no_undefined_flag_GCJ=' ${wl}-bernotok'
15847 allow_undefined_flag_GCJ=' ${wl}-berok'
15848 # -bexpall does not export symbols beginning with underscore (_)
15849 always_export_symbols_GCJ=yes
15850 # Exported symbols can be pulled into shared objects from archives
15851 whole_archive_flag_spec_GCJ=' '
15852 archive_cmds_need_lc_GCJ=yes
15853 # This is similar to how AIX traditionally builds it's shared libraries.
15854 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'
15855 fi
15856 fi
15857 ;;
15858
15859 amigaos*)
15860 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)'
15861 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15862 hardcode_minus_L_GCJ=yes
15863 # see comment about different semantics on the GNU ld section
15864 ld_shlibs_GCJ=no
15865 ;;
15866
15867 bsdi4*)
15868 export_dynamic_flag_spec_GCJ=-rdynamic
15869 ;;
15870
15871 cygwin* | mingw* | pw32*)
15872 # When not using gcc, we currently assume that we are using
15873 # Microsoft Visual C++.
15874 # hardcode_libdir_flag_spec is actually meaningless, as there is
15875 # no search path for DLLs.
15876 hardcode_libdir_flag_spec_GCJ=' '
15877 allow_undefined_flag_GCJ=unsupported
15878 # Tell ltmain to make .lib files, not .a files.
15879 libext=lib
15880 # Tell ltmain to make .dll files, not .so files.
15881 shrext_cmds=".dll"
15882 # FIXME: Setting linknames here is a bad hack.
15883 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15884 # The linker will automatically build a .lib file if we build a DLL.
15885 old_archive_From_new_cmds_GCJ='true'
15886 # FIXME: Should let the user specify the lib program.
15887 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15888 fix_srcfile_path='`cygpath -w "$srcfile"`'
15889 enable_shared_with_static_runtimes_GCJ=yes
15890 ;;
15891
15892 darwin* | rhapsody*)
15893 if test "$GXX" = yes ; then
15894 archive_cmds_need_lc_GCJ=no
15895 case "$host_os" in
15896 rhapsody* | darwin1.[012])
15897 allow_undefined_flag_GCJ='-undefined suppress'
15898 ;;
15899 *) # Darwin 1.3 on
15900 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15901 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15902 else
15903 case ${MACOSX_DEPLOYMENT_TARGET} in
15904 10.[012])
15905 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15906 ;;
15907 10.*)
15908 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15909 ;;
15910 esac
15911 fi
15912 ;;
15913 esac
15914 lt_int_apple_cc_single_mod=no
15915 output_verbose_link_cmd='echo'
15916 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15917 lt_int_apple_cc_single_mod=yes
15918 fi
15919 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15920 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15921 else
15922 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'
15923 fi
15924 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15925 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15926 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15927 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}'
15928 else
15929 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}'
15930 fi
15931 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}'
15932 hardcode_direct_GCJ=no
15933 hardcode_automatic_GCJ=yes
15934 hardcode_shlibpath_var_GCJ=unsupported
15935 whole_archive_flag_spec_GCJ='-all_load $convenience'
15936 link_all_deplibs_GCJ=yes
15937 else
15938 ld_shlibs_GCJ=no
15939 fi
15940 ;;
15941
15942 dgux*)
15943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15945 hardcode_shlibpath_var_GCJ=no
15946 ;;
15947
15948 freebsd1*)
15949 ld_shlibs_GCJ=no
15950 ;;
15951
15952 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15953 # support. Future versions do this automatically, but an explicit c++rt0.o
15954 # does not break anything, and helps significantly (at the cost of a little
15955 # extra space).
15956 freebsd2.2*)
15957 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15958 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15959 hardcode_direct_GCJ=yes
15960 hardcode_shlibpath_var_GCJ=no
15961 ;;
15962
15963 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15964 freebsd2*)
15965 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15966 hardcode_direct_GCJ=yes
15967 hardcode_minus_L_GCJ=yes
15968 hardcode_shlibpath_var_GCJ=no
15969 ;;
15970
15971 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15972 freebsd* | kfreebsd*-gnu)
15973 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15974 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15975 hardcode_direct_GCJ=yes
15976 hardcode_shlibpath_var_GCJ=no
15977 ;;
15978
15979 hpux9*)
15980 if test "$GCC" = yes; then
15981 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'
15982 else
15983 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'
15984 fi
15985 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15986 hardcode_libdir_separator_GCJ=:
15987 hardcode_direct_GCJ=yes
15988
15989 # hardcode_minus_L: Not really in the search PATH,
15990 # but as the default location of the library.
15991 hardcode_minus_L_GCJ=yes
15992 export_dynamic_flag_spec_GCJ='${wl}-E'
15993 ;;
15994
15995 hpux10* | hpux11*)
15996 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15997 case "$host_cpu" in
15998 hppa*64*|ia64*)
15999 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16000 ;;
16001 *)
16002 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16003 ;;
16004 esac
16005 else
16006 case "$host_cpu" in
16007 hppa*64*|ia64*)
16008 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16009 ;;
16010 *)
16011 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16012 ;;
16013 esac
16014 fi
16015 if test "$with_gnu_ld" = no; then
16016 case "$host_cpu" in
16017 hppa*64*)
16018 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16019 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16020 hardcode_libdir_separator_GCJ=:
16021 hardcode_direct_GCJ=no
16022 hardcode_shlibpath_var_GCJ=no
16023 ;;
16024 ia64*)
16025 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16026 hardcode_direct_GCJ=no
16027 hardcode_shlibpath_var_GCJ=no
16028
16029 # hardcode_minus_L: Not really in the search PATH,
16030 # but as the default location of the library.
16031 hardcode_minus_L_GCJ=yes
16032 ;;
16033 *)
16034 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16035 hardcode_libdir_separator_GCJ=:
16036 hardcode_direct_GCJ=yes
16037 export_dynamic_flag_spec_GCJ='${wl}-E'
16038
16039 # hardcode_minus_L: Not really in the search PATH,
16040 # but as the default location of the library.
16041 hardcode_minus_L_GCJ=yes
16042 ;;
16043 esac
16044 fi
16045 ;;
16046
16047 irix5* | irix6* | nonstopux*)
16048 if test "$GCC" = yes; then
16049 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'
16050 else
16051 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'
16052 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16053 fi
16054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16055 hardcode_libdir_separator_GCJ=:
16056 link_all_deplibs_GCJ=yes
16057 ;;
16058
16059 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16061 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16062 else
16063 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16064 fi
16065 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16066 hardcode_direct_GCJ=yes
16067 hardcode_shlibpath_var_GCJ=no
16068 ;;
16069
16070 newsos6)
16071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16072 hardcode_direct_GCJ=yes
16073 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16074 hardcode_libdir_separator_GCJ=:
16075 hardcode_shlibpath_var_GCJ=no
16076 ;;
16077
16078 openbsd*)
16079 hardcode_direct_GCJ=yes
16080 hardcode_shlibpath_var_GCJ=no
16081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16082 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16083 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16084 export_dynamic_flag_spec_GCJ='${wl}-E'
16085 else
16086 case $host_os in
16087 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16088 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16089 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16090 ;;
16091 *)
16092 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16093 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16094 ;;
16095 esac
16096 fi
16097 ;;
16098
16099 os2*)
16100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16101 hardcode_minus_L_GCJ=yes
16102 allow_undefined_flag_GCJ=unsupported
16103 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'
16104 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16105 ;;
16106
16107 osf3*)
16108 if test "$GCC" = yes; then
16109 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16110 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'
16111 else
16112 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16113 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'
16114 fi
16115 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16116 hardcode_libdir_separator_GCJ=:
16117 ;;
16118
16119 osf4* | osf5*) # as osf3* with the addition of -msym flag
16120 if test "$GCC" = yes; then
16121 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16122 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'
16123 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16124 else
16125 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16126 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'
16127 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~
16128 $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'
16129
16130 # Both c and cxx compiler support -rpath directly
16131 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16132 fi
16133 hardcode_libdir_separator_GCJ=:
16134 ;;
16135
16136 sco3.2v5*)
16137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16138 hardcode_shlibpath_var_GCJ=no
16139 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16140 runpath_var=LD_RUN_PATH
16141 hardcode_runpath_var=yes
16142 ;;
16143
16144 solaris*)
16145 no_undefined_flag_GCJ=' -z text'
16146 if test "$GCC" = yes; then
16147 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16148 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16149 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16150 else
16151 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16154 fi
16155 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16156 hardcode_shlibpath_var_GCJ=no
16157 case $host_os in
16158 solaris2.[0-5] | solaris2.[0-5].*) ;;
16159 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16160 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16161 esac
16162 link_all_deplibs_GCJ=yes
16163 ;;
16164
16165 sunos4*)
16166 if test "x$host_vendor" = xsequent; then
16167 # Use $CC to link under sequent, because it throws in some extra .o
16168 # files that make .init and .fini sections work.
16169 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16170 else
16171 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16172 fi
16173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16174 hardcode_direct_GCJ=yes
16175 hardcode_minus_L_GCJ=yes
16176 hardcode_shlibpath_var_GCJ=no
16177 ;;
16178
16179 sysv4)
16180 case $host_vendor in
16181 sni)
16182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16183 hardcode_direct_GCJ=yes # is this really true???
16184 ;;
16185 siemens)
16186 ## LD is ld it makes a PLAMLIB
16187 ## CC just makes a GrossModule.
16188 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16189 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16190 hardcode_direct_GCJ=no
16191 ;;
16192 motorola)
16193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16194 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16195 ;;
16196 esac
16197 runpath_var='LD_RUN_PATH'
16198 hardcode_shlibpath_var_GCJ=no
16199 ;;
16200
16201 sysv4.3*)
16202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_shlibpath_var_GCJ=no
16204 export_dynamic_flag_spec_GCJ='-Bexport'
16205 ;;
16206
16207 sysv4*MP*)
16208 if test -d /usr/nec; then
16209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16210 hardcode_shlibpath_var_GCJ=no
16211 runpath_var=LD_RUN_PATH
16212 hardcode_runpath_var=yes
16213 ld_shlibs_GCJ=yes
16214 fi
16215 ;;
16216
16217 sysv4.2uw2*)
16218 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16219 hardcode_direct_GCJ=yes
16220 hardcode_minus_L_GCJ=no
16221 hardcode_shlibpath_var_GCJ=no
16222 hardcode_runpath_var=yes
16223 runpath_var=LD_RUN_PATH
16224 ;;
16225
16226 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16227 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16228 if test "$GCC" = yes; then
16229 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16230 else
16231 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16232 fi
16233 runpath_var='LD_RUN_PATH'
16234 hardcode_shlibpath_var_GCJ=no
16235 ;;
16236
16237 sysv5*)
16238 no_undefined_flag_GCJ=' -z text'
16239 # $CC -shared without GNU ld will not create a library from C++
16240 # object files and a static libstdc++, better avoid it by now
16241 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16242 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16243 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16244 hardcode_libdir_flag_spec_GCJ=
16245 hardcode_shlibpath_var_GCJ=no
16246 runpath_var='LD_RUN_PATH'
16247 ;;
16248
16249 uts4*)
16250 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16252 hardcode_shlibpath_var_GCJ=no
16253 ;;
16254
16255 *)
16256 ld_shlibs_GCJ=no
16257 ;;
16258 esac
16259 fi
16260
16261echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16262echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16263test "$ld_shlibs_GCJ" = no && can_build_shared=no
16264
16265variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16266if test "$GCC" = yes; then
16267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16268fi
16269
16270#
16271# Do we need to explicitly link libc?
16272#
16273case "x$archive_cmds_need_lc_GCJ" in
16274x|xyes)
16275 # Assume -lc should be added
16276 archive_cmds_need_lc_GCJ=yes
16277
16278 if test "$enable_shared" = yes && test "$GCC" = yes; then
16279 case $archive_cmds_GCJ in
16280 *'~'*)
16281 # FIXME: we may have to deal with multi-command sequences.
16282 ;;
16283 '$CC '*)
16284 # Test whether the compiler implicitly links with -lc since on some
16285 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16286 # to ld, don't add -lc before -lgcc.
16287 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16288echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16289 $rm conftest*
16290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16291
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293 (eval $ac_compile) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } 2>conftest.err; then
16297 soname=conftest
16298 lib=conftest
16299 libobjs=conftest.$ac_objext
16300 deplibs=
16301 wl=$lt_prog_compiler_wl_GCJ
16302 compiler_flags=-v
16303 linker_flags=-v
16304 verstring=
16305 output_objdir=.
16306 libname=conftest
16307 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16308 allow_undefined_flag_GCJ=
16309 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16310 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }
16314 then
16315 archive_cmds_need_lc_GCJ=no
16316 else
16317 archive_cmds_need_lc_GCJ=yes
16318 fi
16319 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16320 else
16321 cat conftest.err 1>&5
16322 fi
16323 $rm conftest*
16324 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16325echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16326 ;;
16327 esac
16328 fi
16329 ;;
16330esac
16331
16332echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16333echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16334library_names_spec=
16335libname_spec='lib$name'
16336soname_spec=
16337shrext_cmds=".so"
16338postinstall_cmds=
16339postuninstall_cmds=
16340finish_cmds=
16341finish_eval=
16342shlibpath_var=
16343shlibpath_overrides_runpath=unknown
16344version_type=none
16345dynamic_linker="$host_os ld.so"
16346sys_lib_dlsearch_path_spec="/lib /usr/lib"
16347if test "$GCC" = yes; then
16348 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16349 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16350 # if the path contains ";" then we assume it to be the separator
16351 # otherwise default to the standard path separator (i.e. ":") - it is
16352 # assumed that no part of a normal pathname contains ";" but that should
16353 # okay in the real world where ";" in dirpaths is itself problematic.
16354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16355 else
16356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16357 fi
16358else
16359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16360fi
16361need_lib_prefix=unknown
16362hardcode_into_libs=no
16363
16364# when you set need_version to no, make sure it does not cause -set_version
16365# flags to be left without arguments
16366need_version=unknown
16367
16368case $host_os in
16369aix3*)
16370 version_type=linux
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16372 shlibpath_var=LIBPATH
16373
16374 # AIX 3 has no versioning support, so we append a major version to the name.
16375 soname_spec='${libname}${release}${shared_ext}$major'
16376 ;;
16377
16378aix4* | aix5*)
16379 version_type=linux
16380 need_lib_prefix=no
16381 need_version=no
16382 hardcode_into_libs=yes
16383 if test "$host_cpu" = ia64; then
16384 # AIX 5 supports IA64
16385 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 else
16388 # With GCC up to 2.95.x, collect2 would create an import file
16389 # for dependence libraries. The import file would start with
16390 # the line `#! .'. This would cause the generated library to
16391 # depend on `.', always an invalid library. This was fixed in
16392 # development snapshots of GCC prior to 3.0.
16393 case $host_os in
16394 aix4 | aix4.[01] | aix4.[01].*)
16395 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16396 echo ' yes '
16397 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16398 :
16399 else
16400 can_build_shared=no
16401 fi
16402 ;;
16403 esac
16404 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16405 # soname into executable. Probably we can add versioning support to
16406 # collect2, so additional links can be useful in future.
16407 if test "$aix_use_runtimelinking" = yes; then
16408 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16409 # instead of lib<name>.a to let people know that these are not
16410 # typical AIX shared libraries.
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412 else
16413 # We preserve .a as extension for shared libraries through AIX4.2
16414 # and later when we are not doing run time linking.
16415 library_names_spec='${libname}${release}.a $libname.a'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 fi
16418 shlibpath_var=LIBPATH
16419 fi
16420 ;;
16421
16422amigaos*)
16423 library_names_spec='$libname.ixlibrary $libname.a'
16424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16425 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'
16426 ;;
16427
16428beos*)
16429 library_names_spec='${libname}${shared_ext}'
16430 dynamic_linker="$host_os ld.so"
16431 shlibpath_var=LIBRARY_PATH
16432 ;;
16433
16434bsdi4*)
16435 version_type=linux
16436 need_version=no
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16438 soname_spec='${libname}${release}${shared_ext}$major'
16439 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16442 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16443 # the default ld.so.conf also contains /usr/contrib/lib and
16444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16445 # libtool to hard-code these into programs
16446 ;;
16447
16448cygwin* | mingw* | pw32*)
16449 version_type=windows
16450 shrext_cmds=".dll"
16451 need_version=no
16452 need_lib_prefix=no
16453
16454 case $GCC,$host_os in
16455 yes,cygwin* | yes,mingw* | yes,pw32*)
16456 library_names_spec='$libname.dll.a'
16457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16458 postinstall_cmds='base_file=`basename \${file}`~
16459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16460 dldir=$destdir/`dirname \$dlpath`~
16461 test -d \$dldir || mkdir -p \$dldir~
16462 $install_prog $dir/$dlname \$dldir/$dlname'
16463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16464 dlpath=$dir/\$dldll~
16465 $rm \$dlpath'
16466 shlibpath_overrides_runpath=yes
16467
16468 case $host_os in
16469 cygwin*)
16470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16472 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16473 ;;
16474 mingw*)
16475 # MinGW DLLs use traditional 'lib' prefix
16476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16478 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16479 # It is most probably a Windows format PATH printed by
16480 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16481 # path with ; separators, and with drive letters. We can handle the
16482 # drive letters (cygwin fileutils understands them), so leave them,
16483 # especially as we might pass files found there to a mingw objdump,
16484 # which wouldn't understand a cygwinified path. Ahh.
16485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16486 else
16487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16488 fi
16489 ;;
16490 pw32*)
16491 # pw32 DLLs use 'pw' prefix rather than 'lib'
16492 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16493 ;;
16494 esac
16495 ;;
16496
16497 *)
16498 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16499 ;;
16500 esac
16501 dynamic_linker='Win32 ld.exe'
16502 # FIXME: first we should search . and the directory the executable is in
16503 shlibpath_var=PATH
16504 ;;
16505
16506darwin* | rhapsody*)
16507 dynamic_linker="$host_os dyld"
16508 version_type=darwin
16509 need_lib_prefix=no
16510 need_version=no
16511 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16512 soname_spec='${libname}${release}${major}$shared_ext'
16513 shlibpath_overrides_runpath=yes
16514 shlibpath_var=DYLD_LIBRARY_PATH
16515 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16516 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16517 if test "$GCC" = yes; then
16518 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"`
16519 else
16520 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16521 fi
16522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16523 ;;
16524
16525dgux*)
16526 version_type=linux
16527 need_lib_prefix=no
16528 need_version=no
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 ;;
16533
16534freebsd1*)
16535 dynamic_linker=no
16536 ;;
16537
16538kfreebsd*-gnu)
16539 version_type=linux
16540 need_lib_prefix=no
16541 need_version=no
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16543 soname_spec='${libname}${release}${shared_ext}$major'
16544 shlibpath_var=LD_LIBRARY_PATH
16545 shlibpath_overrides_runpath=no
16546 hardcode_into_libs=yes
16547 dynamic_linker='GNU ld.so'
16548 ;;
16549
16550freebsd*)
16551 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16552 version_type=freebsd-$objformat
16553 case $version_type in
16554 freebsd-elf*)
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16556 need_version=no
16557 need_lib_prefix=no
16558 ;;
16559 freebsd-*)
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16561 need_version=yes
16562 ;;
16563 esac
16564 shlibpath_var=LD_LIBRARY_PATH
16565 case $host_os in
16566 freebsd2*)
16567 shlibpath_overrides_runpath=yes
16568 ;;
16569 freebsd3.01* | freebsdelf3.01*)
16570 shlibpath_overrides_runpath=yes
16571 hardcode_into_libs=yes
16572 ;;
16573 *) # from 3.2 on
16574 shlibpath_overrides_runpath=no
16575 hardcode_into_libs=yes
16576 ;;
16577 esac
16578 ;;
16579
16580gnu*)
16581 version_type=linux
16582 need_lib_prefix=no
16583 need_version=no
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 hardcode_into_libs=yes
16588 ;;
16589
16590hpux9* | hpux10* | hpux11*)
16591 # Give a soname corresponding to the major version so that dld.sl refuses to
16592 # link against other versions.
16593 version_type=sunos
16594 need_lib_prefix=no
16595 need_version=no
16596 case "$host_cpu" in
16597 ia64*)
16598 shrext_cmds='.so'
16599 hardcode_into_libs=yes
16600 dynamic_linker="$host_os dld.so"
16601 shlibpath_var=LD_LIBRARY_PATH
16602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 if test "X$HPUX_IA64_MODE" = X32; then
16606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16607 else
16608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16609 fi
16610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16611 ;;
16612 hppa*64*)
16613 shrext_cmds='.sl'
16614 hardcode_into_libs=yes
16615 dynamic_linker="$host_os dld.sl"
16616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16622 ;;
16623 *)
16624 shrext_cmds='.sl'
16625 dynamic_linker="$host_os dld.sl"
16626 shlibpath_var=SHLIB_PATH
16627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 ;;
16631 esac
16632 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16633 postinstall_cmds='chmod 555 $lib'
16634 ;;
16635
16636irix5* | irix6* | nonstopux*)
16637 case $host_os in
16638 nonstopux*) version_type=nonstopux ;;
16639 *)
16640 if test "$lt_cv_prog_gnu_ld" = yes; then
16641 version_type=linux
16642 else
16643 version_type=irix
16644 fi ;;
16645 esac
16646 need_lib_prefix=no
16647 need_version=no
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16650 case $host_os in
16651 irix5* | nonstopux*)
16652 libsuff= shlibsuff=
16653 ;;
16654 *)
16655 case $LD in # libtool.m4 will add one of these switches to LD
16656 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16657 libsuff= shlibsuff= libmagic=32-bit;;
16658 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16659 libsuff=32 shlibsuff=N32 libmagic=N32;;
16660 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16661 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16662 *) libsuff= shlibsuff= libmagic=never-match;;
16663 esac
16664 ;;
16665 esac
16666 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16667 shlibpath_overrides_runpath=no
16668 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16669 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16670 hardcode_into_libs=yes
16671 ;;
16672
16673# No shared lib support for Linux oldld, aout, or coff.
16674linux*oldld* | linux*aout* | linux*coff*)
16675 dynamic_linker=no
16676 ;;
16677
16678# This must be Linux ELF.
16679linux*)
16680 version_type=linux
16681 need_lib_prefix=no
16682 need_version=no
16683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16684 soname_spec='${libname}${release}${shared_ext}$major'
16685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16686 shlibpath_var=LD_LIBRARY_PATH
16687 shlibpath_overrides_runpath=no
16688 # This implies no fast_install, which is unacceptable.
16689 # Some rework will be needed to allow for fast_install
16690 # before this can be enabled.
16691 hardcode_into_libs=yes
16692
16693 # Append ld.so.conf contents to the search path
16694 if test -f /etc/ld.so.conf; then
16695 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16696 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16697 fi
16698
16699 # We used to test for /lib/ld.so.1 and disable shared libraries on
16700 # powerpc, because MkLinux only supported shared libraries with the
16701 # GNU dynamic linker. Since this was broken with cross compilers,
16702 # most powerpc-linux boxes support dynamic linking these days and
16703 # people can always --disable-shared, the test was removed, and we
16704 # assume the GNU/Linux dynamic linker is in use.
16705 dynamic_linker='GNU/Linux ld.so'
16706 ;;
16707
16708netbsdelf*-gnu)
16709 version_type=linux
16710 need_lib_prefix=no
16711 need_version=no
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 shlibpath_var=LD_LIBRARY_PATH
16715 shlibpath_overrides_runpath=no
16716 hardcode_into_libs=yes
16717 dynamic_linker='NetBSD ld.elf_so'
16718 ;;
16719
16720knetbsd*-gnu)
16721 version_type=linux
16722 need_lib_prefix=no
16723 need_version=no
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16725 soname_spec='${libname}${release}${shared_ext}$major'
16726 shlibpath_var=LD_LIBRARY_PATH
16727 shlibpath_overrides_runpath=no
16728 hardcode_into_libs=yes
16729 dynamic_linker='GNU ld.so'
16730 ;;
16731
16732netbsd*)
16733 version_type=sunos
16734 need_lib_prefix=no
16735 need_version=no
16736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16739 dynamic_linker='NetBSD (a.out) ld.so'
16740 else
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16742 soname_spec='${libname}${release}${shared_ext}$major'
16743 dynamic_linker='NetBSD ld.elf_so'
16744 fi
16745 shlibpath_var=LD_LIBRARY_PATH
16746 shlibpath_overrides_runpath=yes
16747 hardcode_into_libs=yes
16748 ;;
16749
16750newsos6)
16751 version_type=linux
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 shlibpath_var=LD_LIBRARY_PATH
16754 shlibpath_overrides_runpath=yes
16755 ;;
16756
16757nto-qnx*)
16758 version_type=linux
16759 need_lib_prefix=no
16760 need_version=no
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 soname_spec='${libname}${release}${shared_ext}$major'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 shlibpath_overrides_runpath=yes
16765 ;;
16766
16767openbsd*)
16768 version_type=sunos
16769 need_lib_prefix=no
16770 need_version=yes
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16775 case $host_os in
16776 openbsd2.[89] | openbsd2.[89].*)
16777 shlibpath_overrides_runpath=no
16778 ;;
16779 *)
16780 shlibpath_overrides_runpath=yes
16781 ;;
16782 esac
16783 else
16784 shlibpath_overrides_runpath=yes
16785 fi
16786 ;;
16787
16788os2*)
16789 libname_spec='$name'
16790 shrext_cmds=".dll"
16791 need_lib_prefix=no
16792 library_names_spec='$libname${shared_ext} $libname.a'
16793 dynamic_linker='OS/2 ld.exe'
16794 shlibpath_var=LIBPATH
16795 ;;
16796
16797osf3* | osf4* | osf5*)
16798 version_type=osf
16799 need_lib_prefix=no
16800 need_version=no
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16805 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16806 ;;
16807
16808sco3.2v5*)
16809 version_type=osf
16810 soname_spec='${libname}${release}${shared_ext}$major'
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 ;;
16814
16815solaris*)
16816 version_type=linux
16817 need_lib_prefix=no
16818 need_version=no
16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16820 soname_spec='${libname}${release}${shared_ext}$major'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 shlibpath_overrides_runpath=yes
16823 hardcode_into_libs=yes
16824 # ldd complains unless libraries are executable
16825 postinstall_cmds='chmod +x $lib'
16826 ;;
16827
16828sunos4*)
16829 version_type=sunos
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=yes
16834 if test "$with_gnu_ld" = yes; then
16835 need_lib_prefix=no
16836 fi
16837 need_version=yes
16838 ;;
16839
16840sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16841 version_type=linux
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 soname_spec='${libname}${release}${shared_ext}$major'
16844 shlibpath_var=LD_LIBRARY_PATH
16845 case $host_vendor in
16846 sni)
16847 shlibpath_overrides_runpath=no
16848 need_lib_prefix=no
16849 export_dynamic_flag_spec='${wl}-Blargedynsym'
16850 runpath_var=LD_RUN_PATH
16851 ;;
16852 siemens)
16853 need_lib_prefix=no
16854 ;;
16855 motorola)
16856 need_lib_prefix=no
16857 need_version=no
16858 shlibpath_overrides_runpath=no
16859 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16860 ;;
16861 esac
16862 ;;
16863
16864sysv4*MP*)
16865 if test -d /usr/nec ;then
16866 version_type=linux
16867 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16868 soname_spec='$libname${shared_ext}.$major'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 fi
16871 ;;
16872
16873uts4*)
16874 version_type=linux
16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16876 soname_spec='${libname}${release}${shared_ext}$major'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 ;;
16879
16880*)
16881 dynamic_linker=no
16882 ;;
16883esac
16884echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16885echo "${ECHO_T}$dynamic_linker" >&6
16886test "$dynamic_linker" = no && can_build_shared=no
16887
16888echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16889echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16890hardcode_action_GCJ=
16891if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16892 test -n "$runpath_var GCJ" || \
16893 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16894
16895 # We can hardcode non-existant directories.
16896 if test "$hardcode_direct_GCJ" != no &&
16897 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16898 # have to relink, otherwise we might link with an installed library
16899 # when we should be linking with a yet-to-be-installed one
16900 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16901 test "$hardcode_minus_L_GCJ" != no; then
16902 # Linking always hardcodes the temporary library directory.
16903 hardcode_action_GCJ=relink
16904 else
16905 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16906 hardcode_action_GCJ=immediate
16907 fi
16908else
16909 # We cannot hardcode anything, or else we can only hardcode existing
16910 # directories.
16911 hardcode_action_GCJ=unsupported
16912fi
16913echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16914echo "${ECHO_T}$hardcode_action_GCJ" >&6
16915
16916if test "$hardcode_action_GCJ" = relink; then
16917 # Fast installation is not supported
16918 enable_fast_install=no
16919elif test "$shlibpath_overrides_runpath" = yes ||
16920 test "$enable_shared" = no; then
16921 # Fast installation is not necessary
16922 enable_fast_install=needless
16923fi
16924
16925striplib=
16926old_striplib=
16927echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16928echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16929if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16930 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16931 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16932 echo "$as_me:$LINENO: result: yes" >&5
16933echo "${ECHO_T}yes" >&6
16934else
16935# FIXME - insert some real tests, host_os isn't really good enough
16936 case $host_os in
16937 darwin*)
16938 if test -n "$STRIP" ; then
16939 striplib="$STRIP -x"
16940 echo "$as_me:$LINENO: result: yes" >&5
16941echo "${ECHO_T}yes" >&6
16942 else
16943 echo "$as_me:$LINENO: result: no" >&5
16944echo "${ECHO_T}no" >&6
16945fi
16946 ;;
16947 *)
16948 echo "$as_me:$LINENO: result: no" >&5
16949echo "${ECHO_T}no" >&6
16950 ;;
16951 esac
16952fi
16953
16954if test "x$enable_dlopen" != xyes; then
16955 enable_dlopen=unknown
16956 enable_dlopen_self=unknown
16957 enable_dlopen_self_static=unknown
16958else
16959 lt_cv_dlopen=no
16960 lt_cv_dlopen_libs=
16961
16962 case $host_os in
16963 beos*)
16964 lt_cv_dlopen="load_add_on"
16965 lt_cv_dlopen_libs=
16966 lt_cv_dlopen_self=yes
16967 ;;
16968
16969 mingw* | pw32*)
16970 lt_cv_dlopen="LoadLibrary"
16971 lt_cv_dlopen_libs=
16972 ;;
16973
16974 cygwin*)
16975 lt_cv_dlopen="dlopen"
16976 lt_cv_dlopen_libs=
16977 ;;
16978
16979 darwin*)
16980 # if libdl is installed we need to link against it
16981 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16982echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16983if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985else
16986 ac_check_lib_save_LIBS=$LIBS
16987LIBS="-ldl $LIBS"
16988cat >conftest.$ac_ext <<_ACEOF
16989/* confdefs.h. */
16990_ACEOF
16991cat confdefs.h >>conftest.$ac_ext
16992cat >>conftest.$ac_ext <<_ACEOF
16993/* end confdefs.h. */
16994
16995/* Override any gcc2 internal prototype to avoid an error. */
16996#ifdef __cplusplus
16997extern "C"
16998#endif
16999/* We use char because int might match the return type of a gcc2
17000 builtin and then its argument prototype would still apply. */
17001char dlopen ();
17002int
17003main ()
17004{
17005dlopen ();
17006 ;
17007 return 0;
17008}
17009_ACEOF
17010rm -f conftest.$ac_objext conftest$ac_exeext
17011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17012 (eval $ac_link) 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_lib_dl_dlopen=yes
17032else
17033 echo "$as_me: failed program was:" >&5
17034sed 's/^/| /' conftest.$ac_ext >&5
17035
17036ac_cv_lib_dl_dlopen=no
17037fi
17038rm -f conftest.err conftest.$ac_objext \
17039 conftest$ac_exeext conftest.$ac_ext
17040LIBS=$ac_check_lib_save_LIBS
17041fi
17042echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17043echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17044if test $ac_cv_lib_dl_dlopen = yes; then
17045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17046else
17047
17048 lt_cv_dlopen="dyld"
17049 lt_cv_dlopen_libs=
17050 lt_cv_dlopen_self=yes
17051
17052fi
17053
17054 ;;
17055
17056 *)
17057 echo "$as_me:$LINENO: checking for shl_load" >&5
17058echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17059if test "${ac_cv_func_shl_load+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061else
17062 cat >conftest.$ac_ext <<_ACEOF
17063/* confdefs.h. */
17064_ACEOF
17065cat confdefs.h >>conftest.$ac_ext
17066cat >>conftest.$ac_ext <<_ACEOF
17067/* end confdefs.h. */
17068/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17070#define shl_load innocuous_shl_load
17071
17072/* System header to define __stub macros and hopefully few prototypes,
17073 which can conflict with char shl_load (); below.
17074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17075 <limits.h> exists even on freestanding compilers. */
17076
17077#ifdef __STDC__
17078# include <limits.h>
17079#else
17080# include <assert.h>
17081#endif
17082
17083#undef shl_load
17084
17085/* Override any gcc2 internal prototype to avoid an error. */
17086#ifdef __cplusplus
17087extern "C"
17088{
17089#endif
17090/* We use char because int might match the return type of a gcc2
17091 builtin and then its argument prototype would still apply. */
17092char shl_load ();
17093/* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
17096#if defined (__stub_shl_load) || defined (__stub___shl_load)
17097choke me
17098#else
17099char (*f) () = shl_load;
17100#endif
17101#ifdef __cplusplus
17102}
17103#endif
17104
17105int
17106main ()
17107{
17108return f != shl_load;
17109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext conftest$ac_exeext
17114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115 (eval $ac_link) 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; } &&
17128 { ac_try='test -s conftest$ac_exeext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_cv_func_shl_load=yes
17135else
17136 echo "$as_me: failed program was:" >&5
17137sed 's/^/| /' conftest.$ac_ext >&5
17138
17139ac_cv_func_shl_load=no
17140fi
17141rm -f conftest.err conftest.$ac_objext \
17142 conftest$ac_exeext conftest.$ac_ext
17143fi
17144echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17145echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17146if test $ac_cv_func_shl_load = yes; then
17147 lt_cv_dlopen="shl_load"
17148else
17149 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17150echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17151if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17153else
17154 ac_check_lib_save_LIBS=$LIBS
17155LIBS="-ldld $LIBS"
17156cat >conftest.$ac_ext <<_ACEOF
17157/* confdefs.h. */
17158_ACEOF
17159cat confdefs.h >>conftest.$ac_ext
17160cat >>conftest.$ac_ext <<_ACEOF
17161/* end confdefs.h. */
17162
17163/* Override any gcc2 internal prototype to avoid an error. */
17164#ifdef __cplusplus
17165extern "C"
17166#endif
17167/* We use char because int might match the return type of a gcc2
17168 builtin and then its argument prototype would still apply. */
17169char shl_load ();
17170int
17171main ()
17172{
17173shl_load ();
17174 ;
17175 return 0;
17176}
17177_ACEOF
17178rm -f conftest.$ac_objext conftest$ac_exeext
17179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180 (eval $ac_link) 2>conftest.er1
17181 ac_status=$?
17182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest$ac_exeext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_cv_lib_dld_shl_load=yes
17200else
17201 echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204ac_cv_lib_dld_shl_load=no
17205fi
17206rm -f conftest.err conftest.$ac_objext \
17207 conftest$ac_exeext conftest.$ac_ext
17208LIBS=$ac_check_lib_save_LIBS
17209fi
17210echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17211echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17212if test $ac_cv_lib_dld_shl_load = yes; then
17213 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17214else
17215 echo "$as_me:$LINENO: checking for dlopen" >&5
17216echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17217if test "${ac_cv_func_dlopen+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219else
17220 cat >conftest.$ac_ext <<_ACEOF
17221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
17226/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228#define dlopen innocuous_dlopen
17229
17230/* System header to define __stub macros and hopefully few prototypes,
17231 which can conflict with char dlopen (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
17234
17235#ifdef __STDC__
17236# include <limits.h>
17237#else
17238# include <assert.h>
17239#endif
17240
17241#undef dlopen
17242
17243/* Override any gcc2 internal prototype to avoid an error. */
17244#ifdef __cplusplus
17245extern "C"
17246{
17247#endif
17248/* We use char because int might match the return type of a gcc2
17249 builtin and then its argument prototype would still apply. */
17250char dlopen ();
17251/* The GNU C library defines this for functions which it implements
17252 to always fail with ENOSYS. Some functions are actually named
17253 something starting with __ and the normal name is an alias. */
17254#if defined (__stub_dlopen) || defined (__stub___dlopen)
17255choke me
17256#else
17257char (*f) () = dlopen;
17258#endif
17259#ifdef __cplusplus
17260}
17261#endif
17262
17263int
17264main ()
17265{
17266return f != dlopen;
17267 ;
17268 return 0;
17269}
17270_ACEOF
17271rm -f conftest.$ac_objext conftest$ac_exeext
17272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17273 (eval $ac_link) 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest$ac_exeext'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_cv_func_dlopen=yes
17293else
17294 echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297ac_cv_func_dlopen=no
17298fi
17299rm -f conftest.err conftest.$ac_objext \
17300 conftest$ac_exeext conftest.$ac_ext
17301fi
17302echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17303echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17304if test $ac_cv_func_dlopen = yes; then
17305 lt_cv_dlopen="dlopen"
17306else
17307 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17308echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17309if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17311else
17312 ac_check_lib_save_LIBS=$LIBS
17313LIBS="-ldl $LIBS"
17314cat >conftest.$ac_ext <<_ACEOF
17315/* confdefs.h. */
17316_ACEOF
17317cat confdefs.h >>conftest.$ac_ext
17318cat >>conftest.$ac_ext <<_ACEOF
17319/* end confdefs.h. */
17320
17321/* Override any gcc2 internal prototype to avoid an error. */
17322#ifdef __cplusplus
17323extern "C"
17324#endif
17325/* We use char because int might match the return type of a gcc2
17326 builtin and then its argument prototype would still apply. */
17327char dlopen ();
17328int
17329main ()
17330{
17331dlopen ();
17332 ;
17333 return 0;
17334}
17335_ACEOF
17336rm -f conftest.$ac_objext conftest$ac_exeext
17337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17338 (eval $ac_link) 2>conftest.er1
17339 ac_status=$?
17340 grep -v '^ *+' conftest.er1 >conftest.err
17341 rm -f conftest.er1
17342 cat conftest.err >&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } &&
17345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest$ac_exeext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 ac_cv_lib_dl_dlopen=yes
17358else
17359 echo "$as_me: failed program was:" >&5
17360sed 's/^/| /' conftest.$ac_ext >&5
17361
17362ac_cv_lib_dl_dlopen=no
17363fi
17364rm -f conftest.err conftest.$ac_objext \
17365 conftest$ac_exeext conftest.$ac_ext
17366LIBS=$ac_check_lib_save_LIBS
17367fi
17368echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17369echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17370if test $ac_cv_lib_dl_dlopen = yes; then
17371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17372else
17373 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17374echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17375if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17377else
17378 ac_check_lib_save_LIBS=$LIBS
17379LIBS="-lsvld $LIBS"
17380cat >conftest.$ac_ext <<_ACEOF
17381/* confdefs.h. */
17382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
17385/* end confdefs.h. */
17386
17387/* Override any gcc2 internal prototype to avoid an error. */
17388#ifdef __cplusplus
17389extern "C"
17390#endif
17391/* We use char because int might match the return type of a gcc2
17392 builtin and then its argument prototype would still apply. */
17393char dlopen ();
17394int
17395main ()
17396{
17397dlopen ();
17398 ;
17399 return 0;
17400}
17401_ACEOF
17402rm -f conftest.$ac_objext conftest$ac_exeext
17403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17404 (eval $ac_link) 2>conftest.er1
17405 ac_status=$?
17406 grep -v '^ *+' conftest.er1 >conftest.err
17407 rm -f conftest.er1
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest$ac_exeext'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ac_cv_lib_svld_dlopen=yes
17424else
17425 echo "$as_me: failed program was:" >&5
17426sed 's/^/| /' conftest.$ac_ext >&5
17427
17428ac_cv_lib_svld_dlopen=no
17429fi
17430rm -f conftest.err conftest.$ac_objext \
17431 conftest$ac_exeext conftest.$ac_ext
17432LIBS=$ac_check_lib_save_LIBS
17433fi
17434echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17435echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17436if test $ac_cv_lib_svld_dlopen = yes; then
17437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17438else
17439 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17440echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17441if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17443else
17444 ac_check_lib_save_LIBS=$LIBS
17445LIBS="-ldld $LIBS"
17446cat >conftest.$ac_ext <<_ACEOF
17447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
17451/* end confdefs.h. */
17452
17453/* Override any gcc2 internal prototype to avoid an error. */
17454#ifdef __cplusplus
17455extern "C"
17456#endif
17457/* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17459char dld_link ();
17460int
17461main ()
17462{
17463dld_link ();
17464 ;
17465 return 0;
17466}
17467_ACEOF
17468rm -f conftest.$ac_objext conftest$ac_exeext
17469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470 (eval $ac_link) 2>conftest.er1
17471 ac_status=$?
17472 grep -v '^ *+' conftest.er1 >conftest.err
17473 rm -f conftest.er1
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest$ac_exeext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_cv_lib_dld_dld_link=yes
17490else
17491 echo "$as_me: failed program was:" >&5
17492sed 's/^/| /' conftest.$ac_ext >&5
17493
17494ac_cv_lib_dld_dld_link=no
17495fi
17496rm -f conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17498LIBS=$ac_check_lib_save_LIBS
17499fi
17500echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17501echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17502if test $ac_cv_lib_dld_dld_link = yes; then
17503 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17504fi
17505
17506
17507fi
17508
17509
17510fi
17511
17512
17513fi
17514
17515
17516fi
17517
17518
17519fi
17520
17521 ;;
17522 esac
17523
17524 if test "x$lt_cv_dlopen" != xno; then
17525 enable_dlopen=yes
17526 else
17527 enable_dlopen=no
17528 fi
17529
17530 case $lt_cv_dlopen in
17531 dlopen)
17532 save_CPPFLAGS="$CPPFLAGS"
17533 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17534
17535 save_LDFLAGS="$LDFLAGS"
17536 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17537
17538 save_LIBS="$LIBS"
17539 LIBS="$lt_cv_dlopen_libs $LIBS"
17540
17541 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17542echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17543if test "${lt_cv_dlopen_self+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545else
17546 if test "$cross_compiling" = yes; then :
17547 lt_cv_dlopen_self=cross
17548else
17549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17550 lt_status=$lt_dlunknown
17551 cat > conftest.$ac_ext <<EOF
17552#line 17552 "configure"
17553#include "confdefs.h"
17554
17555#if HAVE_DLFCN_H
17556#include <dlfcn.h>
17557#endif
17558
17559#include <stdio.h>
17560
17561#ifdef RTLD_GLOBAL
17562# define LT_DLGLOBAL RTLD_GLOBAL
17563#else
17564# ifdef DL_GLOBAL
17565# define LT_DLGLOBAL DL_GLOBAL
17566# else
17567# define LT_DLGLOBAL 0
17568# endif
17569#endif
17570
17571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17572 find out it does not work in some platform. */
17573#ifndef LT_DLLAZY_OR_NOW
17574# ifdef RTLD_LAZY
17575# define LT_DLLAZY_OR_NOW RTLD_LAZY
17576# else
17577# ifdef DL_LAZY
17578# define LT_DLLAZY_OR_NOW DL_LAZY
17579# else
17580# ifdef RTLD_NOW
17581# define LT_DLLAZY_OR_NOW RTLD_NOW
17582# else
17583# ifdef DL_NOW
17584# define LT_DLLAZY_OR_NOW DL_NOW
17585# else
17586# define LT_DLLAZY_OR_NOW 0
17587# endif
17588# endif
17589# endif
17590# endif
17591#endif
17592
17593#ifdef __cplusplus
17594extern "C" void exit (int);
17595#endif
17596
17597void fnord() { int i=42;}
17598int main ()
17599{
17600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17601 int status = $lt_dlunknown;
17602
17603 if (self)
17604 {
17605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17607 /* dlclose (self); */
17608 }
17609
17610 exit (status);
17611}
17612EOF
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17618 (./conftest; exit; ) 2>/dev/null
17619 lt_status=$?
17620 case x$lt_status in
17621 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17622 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17623 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17624 esac
17625 else :
17626 # compilation failed
17627 lt_cv_dlopen_self=no
17628 fi
17629fi
17630rm -fr conftest*
17631
17632
17633fi
17634echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17635echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17636
17637 if test "x$lt_cv_dlopen_self" = xyes; then
17638 LDFLAGS="$LDFLAGS $link_static_flag"
17639 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17640echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17641if test "${lt_cv_dlopen_self_static+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
17643else
17644 if test "$cross_compiling" = yes; then :
17645 lt_cv_dlopen_self_static=cross
17646else
17647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17648 lt_status=$lt_dlunknown
17649 cat > conftest.$ac_ext <<EOF
17650#line 17650 "configure"
17651#include "confdefs.h"
17652
17653#if HAVE_DLFCN_H
17654#include <dlfcn.h>
17655#endif
17656
17657#include <stdio.h>
17658
17659#ifdef RTLD_GLOBAL
17660# define LT_DLGLOBAL RTLD_GLOBAL
17661#else
17662# ifdef DL_GLOBAL
17663# define LT_DLGLOBAL DL_GLOBAL
17664# else
17665# define LT_DLGLOBAL 0
17666# endif
17667#endif
17668
17669/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17670 find out it does not work in some platform. */
17671#ifndef LT_DLLAZY_OR_NOW
17672# ifdef RTLD_LAZY
17673# define LT_DLLAZY_OR_NOW RTLD_LAZY
17674# else
17675# ifdef DL_LAZY
17676# define LT_DLLAZY_OR_NOW DL_LAZY
17677# else
17678# ifdef RTLD_NOW
17679# define LT_DLLAZY_OR_NOW RTLD_NOW
17680# else
17681# ifdef DL_NOW
17682# define LT_DLLAZY_OR_NOW DL_NOW
17683# else
17684# define LT_DLLAZY_OR_NOW 0
17685# endif
17686# endif
17687# endif
17688# endif
17689#endif
17690
17691#ifdef __cplusplus
17692extern "C" void exit (int);
17693#endif
17694
17695void fnord() { int i=42;}
17696int main ()
17697{
17698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17699 int status = $lt_dlunknown;
17700
17701 if (self)
17702 {
17703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17705 /* dlclose (self); */
17706 }
17707
17708 exit (status);
17709}
17710EOF
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 (eval $ac_link) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17716 (./conftest; exit; ) 2>/dev/null
17717 lt_status=$?
17718 case x$lt_status in
17719 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17720 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17721 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17722 esac
17723 else :
17724 # compilation failed
17725 lt_cv_dlopen_self_static=no
17726 fi
17727fi
17728rm -fr conftest*
17729
17730
17731fi
17732echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17733echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17734 fi
17735
17736 CPPFLAGS="$save_CPPFLAGS"
17737 LDFLAGS="$save_LDFLAGS"
17738 LIBS="$save_LIBS"
17739 ;;
17740 esac
17741
17742 case $lt_cv_dlopen_self in
17743 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17744 *) enable_dlopen_self=unknown ;;
17745 esac
17746
17747 case $lt_cv_dlopen_self_static in
17748 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17749 *) enable_dlopen_self_static=unknown ;;
17750 esac
17751fi
17752
17753
17754# The else clause should only fire when bootstrapping the
17755# libtool distribution, otherwise you forgot to ship ltmain.sh
17756# with your package, and you will get complaints that there are
17757# no rules to generate ltmain.sh.
17758if test -f "$ltmain"; then
17759 # See if we are running on zsh, and set the options which allow our commands through
17760 # without removal of \ escapes.
17761 if test -n "${ZSH_VERSION+set}" ; then
17762 setopt NO_GLOB_SUBST
17763 fi
17764 # Now quote all the things that may contain metacharacters while being
17765 # careful not to overquote the AC_SUBSTed values. We take copies of the
17766 # variables and quote the copies for generation of the libtool script.
17767 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17768 SED SHELL STRIP \
17769 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17770 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17771 deplibs_check_method reload_flag reload_cmds need_locks \
17772 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17773 lt_cv_sys_global_symbol_to_c_name_address \
17774 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17775 old_postinstall_cmds old_postuninstall_cmds \
17776 compiler_GCJ \
17777 CC_GCJ \
17778 LD_GCJ \
17779 lt_prog_compiler_wl_GCJ \
17780 lt_prog_compiler_pic_GCJ \
17781 lt_prog_compiler_static_GCJ \
17782 lt_prog_compiler_no_builtin_flag_GCJ \
17783 export_dynamic_flag_spec_GCJ \
17784 thread_safe_flag_spec_GCJ \
17785 whole_archive_flag_spec_GCJ \
17786 enable_shared_with_static_runtimes_GCJ \
17787 old_archive_cmds_GCJ \
17788 old_archive_from_new_cmds_GCJ \
17789 predep_objects_GCJ \
17790 postdep_objects_GCJ \
17791 predeps_GCJ \
17792 postdeps_GCJ \
17793 compiler_lib_search_path_GCJ \
17794 archive_cmds_GCJ \
17795 archive_expsym_cmds_GCJ \
17796 postinstall_cmds_GCJ \
17797 postuninstall_cmds_GCJ \
17798 old_archive_from_expsyms_cmds_GCJ \
17799 allow_undefined_flag_GCJ \
17800 no_undefined_flag_GCJ \
17801 export_symbols_cmds_GCJ \
17802 hardcode_libdir_flag_spec_GCJ \
17803 hardcode_libdir_flag_spec_ld_GCJ \
17804 hardcode_libdir_separator_GCJ \
17805 hardcode_automatic_GCJ \
17806 module_cmds_GCJ \
17807 module_expsym_cmds_GCJ \
17808 lt_cv_prog_compiler_c_o_GCJ \
17809 exclude_expsyms_GCJ \
17810 include_expsyms_GCJ; do
17811
17812 case $var in
17813 old_archive_cmds_GCJ | \
17814 old_archive_from_new_cmds_GCJ | \
17815 archive_cmds_GCJ | \
17816 archive_expsym_cmds_GCJ | \
17817 module_cmds_GCJ | \
17818 module_expsym_cmds_GCJ | \
17819 old_archive_from_expsyms_cmds_GCJ | \
17820 export_symbols_cmds_GCJ | \
17821 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17822 postinstall_cmds | postuninstall_cmds | \
17823 old_postinstall_cmds | old_postuninstall_cmds | \
17824 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17825 # Double-quote double-evaled strings.
17826 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17827 ;;
17828 *)
17829 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17830 ;;
17831 esac
17832 done
17833
17834 case $lt_echo in
17835 *'\$0 --fallback-echo"')
17836 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17837 ;;
17838 esac
17839
17840cfgfile="$ofile"
17841
17842 cat <<__EOF__ >> "$cfgfile"
17843# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17844
17845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17846
17847# Shell to use when invoking shell scripts.
17848SHELL=$lt_SHELL
17849
17850# Whether or not to build shared libraries.
17851build_libtool_libs=$enable_shared
17852
17853# Whether or not to build static libraries.
17854build_old_libs=$enable_static
17855
17856# Whether or not to add -lc for building shared libraries.
17857build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17858
17859# Whether or not to disallow shared libs when runtime libs are static
17860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17861
17862# Whether or not to optimize for fast installation.
17863fast_install=$enable_fast_install
17864
17865# The host system.
17866host_alias=$host_alias
17867host=$host
17868
17869# An echo program that does not interpret backslashes.
17870echo=$lt_echo
17871
17872# The archiver.
17873AR=$lt_AR
17874AR_FLAGS=$lt_AR_FLAGS
17875
17876# A C compiler.
17877LTCC=$lt_LTCC
17878
17879# A language-specific compiler.
17880CC=$lt_compiler_GCJ
17881
17882# Is the compiler the GNU C compiler?
17883with_gcc=$GCC_GCJ
17884
17885# An ERE matcher.
17886EGREP=$lt_EGREP
17887
17888# The linker used to build libraries.
17889LD=$lt_LD_GCJ
17890
17891# Whether we need hard or soft links.
17892LN_S=$lt_LN_S
17893
17894# A BSD-compatible nm program.
17895NM=$lt_NM
17896
17897# A symbol stripping program
17898STRIP=$lt_STRIP
17899
17900# Used to examine libraries when file_magic_cmd begins "file"
17901MAGIC_CMD=$MAGIC_CMD
17902
17903# Used on cygwin: DLL creation program.
17904DLLTOOL="$DLLTOOL"
17905
17906# Used on cygwin: object dumper.
17907OBJDUMP="$OBJDUMP"
17908
17909# Used on cygwin: assembler.
17910AS="$AS"
17911
17912# The name of the directory that contains temporary libtool files.
17913objdir=$objdir
17914
17915# How to create reloadable object files.
17916reload_flag=$lt_reload_flag
17917reload_cmds=$lt_reload_cmds
17918
17919# How to pass a linker flag through the compiler.
17920wl=$lt_lt_prog_compiler_wl_GCJ
17921
17922# Object file suffix (normally "o").
17923objext="$ac_objext"
17924
17925# Old archive suffix (normally "a").
17926libext="$libext"
17927
17928# Shared library suffix (normally ".so").
17929shrext_cmds='$shrext_cmds'
17930
17931# Executable file suffix (normally "").
17932exeext="$exeext"
17933
17934# Additional compiler flags for building library objects.
17935pic_flag=$lt_lt_prog_compiler_pic_GCJ
17936pic_mode=$pic_mode
17937
17938# What is the maximum length of a command?
17939max_cmd_len=$lt_cv_sys_max_cmd_len
17940
17941# Does compiler simultaneously support -c and -o options?
17942compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17943
17944# Must we lock files when doing compilation ?
17945need_locks=$lt_need_locks
17946
17947# Do we need the lib prefix for modules?
17948need_lib_prefix=$need_lib_prefix
17949
17950# Do we need a version for libraries?
17951need_version=$need_version
17952
17953# Whether dlopen is supported.
17954dlopen_support=$enable_dlopen
17955
17956# Whether dlopen of programs is supported.
17957dlopen_self=$enable_dlopen_self
17958
17959# Whether dlopen of statically linked programs is supported.
17960dlopen_self_static=$enable_dlopen_self_static
17961
17962# Compiler flag to prevent dynamic linking.
17963link_static_flag=$lt_lt_prog_compiler_static_GCJ
17964
17965# Compiler flag to turn off builtin functions.
17966no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17967
17968# Compiler flag to allow reflexive dlopens.
17969export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17970
17971# Compiler flag to generate shared objects directly from archives.
17972whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17973
17974# Compiler flag to generate thread-safe objects.
17975thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17976
17977# Library versioning type.
17978version_type=$version_type
17979
17980# Format of library name prefix.
17981libname_spec=$lt_libname_spec
17982
17983# List of archive names. First name is the real one, the rest are links.
17984# The last name is the one that the linker finds with -lNAME.
17985library_names_spec=$lt_library_names_spec
17986
17987# The coded name of the library, if different from the real name.
17988soname_spec=$lt_soname_spec
17989
17990# Commands used to build and install an old-style archive.
17991RANLIB=$lt_RANLIB
17992old_archive_cmds=$lt_old_archive_cmds_GCJ
17993old_postinstall_cmds=$lt_old_postinstall_cmds
17994old_postuninstall_cmds=$lt_old_postuninstall_cmds
17995
17996# Create an old-style archive from a shared archive.
17997old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17998
17999# Create a temporary old-style archive to link instead of a shared archive.
18000old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18001
18002# Commands used to build and install a shared archive.
18003archive_cmds=$lt_archive_cmds_GCJ
18004archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18005postinstall_cmds=$lt_postinstall_cmds
18006postuninstall_cmds=$lt_postuninstall_cmds
18007
18008# Commands used to build a loadable module (assumed same as above if empty)
18009module_cmds=$lt_module_cmds_GCJ
18010module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18011
18012# Commands to strip libraries.
18013old_striplib=$lt_old_striplib
18014striplib=$lt_striplib
18015
18016# Dependencies to place before the objects being linked to create a
18017# shared library.
18018predep_objects=$lt_predep_objects_GCJ
18019
18020# Dependencies to place after the objects being linked to create a
18021# shared library.
18022postdep_objects=$lt_postdep_objects_GCJ
18023
18024# Dependencies to place before the objects being linked to create a
18025# shared library.
18026predeps=$lt_predeps_GCJ
18027
18028# Dependencies to place after the objects being linked to create a
18029# shared library.
18030postdeps=$lt_postdeps_GCJ
18031
18032# The library search path used internally by the compiler when linking
18033# a shared library.
18034compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18035
18036# Method to check whether dependent libraries are shared objects.
18037deplibs_check_method=$lt_deplibs_check_method
18038
18039# Command to use when deplibs_check_method == file_magic.
18040file_magic_cmd=$lt_file_magic_cmd
18041
18042# Flag that allows shared libraries with undefined symbols to be built.
18043allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18044
18045# Flag that forces no undefined symbols.
18046no_undefined_flag=$lt_no_undefined_flag_GCJ
18047
18048# Commands used to finish a libtool library installation in a directory.
18049finish_cmds=$lt_finish_cmds
18050
18051# Same as above, but a single script fragment to be evaled but not shown.
18052finish_eval=$lt_finish_eval
18053
18054# Take the output of nm and produce a listing of raw symbols and C names.
18055global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18056
18057# Transform the output of nm in a proper C declaration
18058global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18059
18060# Transform the output of nm in a C name address pair
18061global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18062
18063# This is the shared library runtime path variable.
18064runpath_var=$runpath_var
18065
18066# This is the shared library path variable.
18067shlibpath_var=$shlibpath_var
18068
18069# Is shlibpath searched before the hard-coded library search path?
18070shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18071
18072# How to hardcode a shared library path into an executable.
18073hardcode_action=$hardcode_action_GCJ
18074
18075# Whether we should hardcode library paths into libraries.
18076hardcode_into_libs=$hardcode_into_libs
18077
18078# Flag to hardcode \$libdir into a binary during linking.
18079# This must work even if \$libdir does not exist.
18080hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18081
18082# If ld is used when linking, flag to hardcode \$libdir into
18083# a binary during linking. This must work even if \$libdir does
18084# not exist.
18085hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18086
18087# Whether we need a single -rpath flag with a separated argument.
18088hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18089
18090# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18091# resulting binary.
18092hardcode_direct=$hardcode_direct_GCJ
18093
18094# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18095# resulting binary.
18096hardcode_minus_L=$hardcode_minus_L_GCJ
18097
18098# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18099# the resulting binary.
18100hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18101
18102# Set to yes if building a shared library automatically hardcodes DIR into the library
18103# and all subsequent libraries and executables linked against it.
18104hardcode_automatic=$hardcode_automatic_GCJ
18105
18106# Variables whose values should be saved in libtool wrapper scripts and
18107# restored at relink time.
18108variables_saved_for_relink="$variables_saved_for_relink"
18109
18110# Whether libtool must link a program against all its dependency libraries.
18111link_all_deplibs=$link_all_deplibs_GCJ
18112
18113# Compile-time system search path for libraries
18114sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18115
18116# Run-time system search path for libraries
18117sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18118
18119# Fix the shell variable \$srcfile for the compiler.
18120fix_srcfile_path="$fix_srcfile_path_GCJ"
18121
18122# Set to yes if exported symbols are required.
18123always_export_symbols=$always_export_symbols_GCJ
18124
18125# The commands to list exported symbols.
18126export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18127
18128# The commands to extract the exported symbol list from a shared archive.
18129extract_expsyms_cmds=$lt_extract_expsyms_cmds
18130
18131# Symbols that should not be listed in the preloaded symbols.
18132exclude_expsyms=$lt_exclude_expsyms_GCJ
18133
18134# Symbols that must always be exported.
18135include_expsyms=$lt_include_expsyms_GCJ
18136
18137# ### END LIBTOOL TAG CONFIG: $tagname
18138
18139__EOF__
18140
18141
18142else
18143 # If there is no Makefile yet, we rely on a make rule to execute
18144 # `config.status --recheck' to rerun these tests and create the
18145 # libtool script then.
18146 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18147 if test -f "$ltmain_in"; then
18148 test -f Makefile && make "$ltmain"
18149 fi
18150fi
18151
18152
18153ac_ext=c
18154ac_cpp='$CPP $CPPFLAGS'
18155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157ac_compiler_gnu=$ac_cv_c_compiler_gnu
18158
18159CC="$lt_save_CC"
18160
18161 else
18162 tagname=""
18163 fi
18164 ;;
18165
18166 RC)
18167
18168
18169
18170# Source file extension for RC test sources.
18171ac_ext=rc
18172
18173# Object file extension for compiled RC test sources.
18174objext=o
18175objext_RC=$objext
18176
18177# Code to be used in simple compile tests
18178lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18179
18180# Code to be used in simple link tests
18181lt_simple_link_test_code="$lt_simple_compile_test_code"
18182
18183# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18184
18185# If no C compiler was specified, use CC.
18186LTCC=${LTCC-"$CC"}
18187
18188# Allow CC to be a program name with arguments.
18189compiler=$CC
18190
18191
18192# Allow CC to be a program name with arguments.
18193lt_save_CC="$CC"
18194CC=${RC-"windres"}
18195compiler=$CC
18196compiler_RC=$CC
18197lt_cv_prog_compiler_c_o_RC=yes
18198
18199# The else clause should only fire when bootstrapping the
18200# libtool distribution, otherwise you forgot to ship ltmain.sh
18201# with your package, and you will get complaints that there are
18202# no rules to generate ltmain.sh.
18203if test -f "$ltmain"; then
18204 # See if we are running on zsh, and set the options which allow our commands through
18205 # without removal of \ escapes.
18206 if test -n "${ZSH_VERSION+set}" ; then
18207 setopt NO_GLOB_SUBST
18208 fi
18209 # Now quote all the things that may contain metacharacters while being
18210 # careful not to overquote the AC_SUBSTed values. We take copies of the
18211 # variables and quote the copies for generation of the libtool script.
18212 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18213 SED SHELL STRIP \
18214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18216 deplibs_check_method reload_flag reload_cmds need_locks \
18217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18218 lt_cv_sys_global_symbol_to_c_name_address \
18219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18220 old_postinstall_cmds old_postuninstall_cmds \
18221 compiler_RC \
18222 CC_RC \
18223 LD_RC \
18224 lt_prog_compiler_wl_RC \
18225 lt_prog_compiler_pic_RC \
18226 lt_prog_compiler_static_RC \
18227 lt_prog_compiler_no_builtin_flag_RC \
18228 export_dynamic_flag_spec_RC \
18229 thread_safe_flag_spec_RC \
18230 whole_archive_flag_spec_RC \
18231 enable_shared_with_static_runtimes_RC \
18232 old_archive_cmds_RC \
18233 old_archive_from_new_cmds_RC \
18234 predep_objects_RC \
18235 postdep_objects_RC \
18236 predeps_RC \
18237 postdeps_RC \
18238 compiler_lib_search_path_RC \
18239 archive_cmds_RC \
18240 archive_expsym_cmds_RC \
18241 postinstall_cmds_RC \
18242 postuninstall_cmds_RC \
18243 old_archive_from_expsyms_cmds_RC \
18244 allow_undefined_flag_RC \
18245 no_undefined_flag_RC \
18246 export_symbols_cmds_RC \
18247 hardcode_libdir_flag_spec_RC \
18248 hardcode_libdir_flag_spec_ld_RC \
18249 hardcode_libdir_separator_RC \
18250 hardcode_automatic_RC \
18251 module_cmds_RC \
18252 module_expsym_cmds_RC \
18253 lt_cv_prog_compiler_c_o_RC \
18254 exclude_expsyms_RC \
18255 include_expsyms_RC; do
18256
18257 case $var in
18258 old_archive_cmds_RC | \
18259 old_archive_from_new_cmds_RC | \
18260 archive_cmds_RC | \
18261 archive_expsym_cmds_RC | \
18262 module_cmds_RC | \
18263 module_expsym_cmds_RC | \
18264 old_archive_from_expsyms_cmds_RC | \
18265 export_symbols_cmds_RC | \
18266 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18267 postinstall_cmds | postuninstall_cmds | \
18268 old_postinstall_cmds | old_postuninstall_cmds | \
18269 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18270 # Double-quote double-evaled strings.
18271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18272 ;;
18273 *)
18274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18275 ;;
18276 esac
18277 done
18278
18279 case $lt_echo in
18280 *'\$0 --fallback-echo"')
18281 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18282 ;;
18283 esac
18284
18285cfgfile="$ofile"
18286
18287 cat <<__EOF__ >> "$cfgfile"
18288# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18289
18290# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18291
18292# Shell to use when invoking shell scripts.
18293SHELL=$lt_SHELL
18294
18295# Whether or not to build shared libraries.
18296build_libtool_libs=$enable_shared
18297
18298# Whether or not to build static libraries.
18299build_old_libs=$enable_static
18300
18301# Whether or not to add -lc for building shared libraries.
18302build_libtool_need_lc=$archive_cmds_need_lc_RC
18303
18304# Whether or not to disallow shared libs when runtime libs are static
18305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18306
18307# Whether or not to optimize for fast installation.
18308fast_install=$enable_fast_install
18309
18310# The host system.
18311host_alias=$host_alias
18312host=$host
18313
18314# An echo program that does not interpret backslashes.
18315echo=$lt_echo
18316
18317# The archiver.
18318AR=$lt_AR
18319AR_FLAGS=$lt_AR_FLAGS
18320
18321# A C compiler.
18322LTCC=$lt_LTCC
18323
18324# A language-specific compiler.
18325CC=$lt_compiler_RC
18326
18327# Is the compiler the GNU C compiler?
18328with_gcc=$GCC_RC
18329
18330# An ERE matcher.
18331EGREP=$lt_EGREP
18332
18333# The linker used to build libraries.
18334LD=$lt_LD_RC
18335
18336# Whether we need hard or soft links.
18337LN_S=$lt_LN_S
18338
18339# A BSD-compatible nm program.
18340NM=$lt_NM
18341
18342# A symbol stripping program
18343STRIP=$lt_STRIP
18344
18345# Used to examine libraries when file_magic_cmd begins "file"
18346MAGIC_CMD=$MAGIC_CMD
18347
18348# Used on cygwin: DLL creation program.
18349DLLTOOL="$DLLTOOL"
18350
18351# Used on cygwin: object dumper.
18352OBJDUMP="$OBJDUMP"
18353
18354# Used on cygwin: assembler.
18355AS="$AS"
18356
18357# The name of the directory that contains temporary libtool files.
18358objdir=$objdir
18359
18360# How to create reloadable object files.
18361reload_flag=$lt_reload_flag
18362reload_cmds=$lt_reload_cmds
18363
18364# How to pass a linker flag through the compiler.
18365wl=$lt_lt_prog_compiler_wl_RC
18366
18367# Object file suffix (normally "o").
18368objext="$ac_objext"
18369
18370# Old archive suffix (normally "a").
18371libext="$libext"
18372
18373# Shared library suffix (normally ".so").
18374shrext_cmds='$shrext_cmds'
18375
18376# Executable file suffix (normally "").
18377exeext="$exeext"
18378
18379# Additional compiler flags for building library objects.
18380pic_flag=$lt_lt_prog_compiler_pic_RC
18381pic_mode=$pic_mode
18382
18383# What is the maximum length of a command?
18384max_cmd_len=$lt_cv_sys_max_cmd_len
18385
18386# Does compiler simultaneously support -c and -o options?
18387compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18388
18389# Must we lock files when doing compilation ?
18390need_locks=$lt_need_locks
18391
18392# Do we need the lib prefix for modules?
18393need_lib_prefix=$need_lib_prefix
18394
18395# Do we need a version for libraries?
18396need_version=$need_version
18397
18398# Whether dlopen is supported.
18399dlopen_support=$enable_dlopen
18400
18401# Whether dlopen of programs is supported.
18402dlopen_self=$enable_dlopen_self
18403
18404# Whether dlopen of statically linked programs is supported.
18405dlopen_self_static=$enable_dlopen_self_static
18406
18407# Compiler flag to prevent dynamic linking.
18408link_static_flag=$lt_lt_prog_compiler_static_RC
18409
18410# Compiler flag to turn off builtin functions.
18411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18412
18413# Compiler flag to allow reflexive dlopens.
18414export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18415
18416# Compiler flag to generate shared objects directly from archives.
18417whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18418
18419# Compiler flag to generate thread-safe objects.
18420thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18421
18422# Library versioning type.
18423version_type=$version_type
18424
18425# Format of library name prefix.
18426libname_spec=$lt_libname_spec
18427
18428# List of archive names. First name is the real one, the rest are links.
18429# The last name is the one that the linker finds with -lNAME.
18430library_names_spec=$lt_library_names_spec
18431
18432# The coded name of the library, if different from the real name.
18433soname_spec=$lt_soname_spec
18434
18435# Commands used to build and install an old-style archive.
18436RANLIB=$lt_RANLIB
18437old_archive_cmds=$lt_old_archive_cmds_RC
18438old_postinstall_cmds=$lt_old_postinstall_cmds
18439old_postuninstall_cmds=$lt_old_postuninstall_cmds
18440
18441# Create an old-style archive from a shared archive.
18442old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18443
18444# Create a temporary old-style archive to link instead of a shared archive.
18445old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18446
18447# Commands used to build and install a shared archive.
18448archive_cmds=$lt_archive_cmds_RC
18449archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18450postinstall_cmds=$lt_postinstall_cmds
18451postuninstall_cmds=$lt_postuninstall_cmds
18452
18453# Commands used to build a loadable module (assumed same as above if empty)
18454module_cmds=$lt_module_cmds_RC
18455module_expsym_cmds=$lt_module_expsym_cmds_RC
18456
18457# Commands to strip libraries.
18458old_striplib=$lt_old_striplib
18459striplib=$lt_striplib
18460
18461# Dependencies to place before the objects being linked to create a
18462# shared library.
18463predep_objects=$lt_predep_objects_RC
18464
18465# Dependencies to place after the objects being linked to create a
18466# shared library.
18467postdep_objects=$lt_postdep_objects_RC
18468
18469# Dependencies to place before the objects being linked to create a
18470# shared library.
18471predeps=$lt_predeps_RC
18472
18473# Dependencies to place after the objects being linked to create a
18474# shared library.
18475postdeps=$lt_postdeps_RC
18476
18477# The library search path used internally by the compiler when linking
18478# a shared library.
18479compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18480
18481# Method to check whether dependent libraries are shared objects.
18482deplibs_check_method=$lt_deplibs_check_method
18483
18484# Command to use when deplibs_check_method == file_magic.
18485file_magic_cmd=$lt_file_magic_cmd
18486
18487# Flag that allows shared libraries with undefined symbols to be built.
18488allow_undefined_flag=$lt_allow_undefined_flag_RC
18489
18490# Flag that forces no undefined symbols.
18491no_undefined_flag=$lt_no_undefined_flag_RC
18492
18493# Commands used to finish a libtool library installation in a directory.
18494finish_cmds=$lt_finish_cmds
18495
18496# Same as above, but a single script fragment to be evaled but not shown.
18497finish_eval=$lt_finish_eval
18498
18499# Take the output of nm and produce a listing of raw symbols and C names.
18500global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18501
18502# Transform the output of nm in a proper C declaration
18503global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18504
18505# Transform the output of nm in a C name address pair
18506global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18507
18508# This is the shared library runtime path variable.
18509runpath_var=$runpath_var
18510
18511# This is the shared library path variable.
18512shlibpath_var=$shlibpath_var
18513
18514# Is shlibpath searched before the hard-coded library search path?
18515shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18516
18517# How to hardcode a shared library path into an executable.
18518hardcode_action=$hardcode_action_RC
18519
18520# Whether we should hardcode library paths into libraries.
18521hardcode_into_libs=$hardcode_into_libs
18522
18523# Flag to hardcode \$libdir into a binary during linking.
18524# This must work even if \$libdir does not exist.
18525hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18526
18527# If ld is used when linking, flag to hardcode \$libdir into
18528# a binary during linking. This must work even if \$libdir does
18529# not exist.
18530hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18531
18532# Whether we need a single -rpath flag with a separated argument.
18533hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18534
18535# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18536# resulting binary.
18537hardcode_direct=$hardcode_direct_RC
18538
18539# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18540# resulting binary.
18541hardcode_minus_L=$hardcode_minus_L_RC
18542
18543# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18544# the resulting binary.
18545hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18546
18547# Set to yes if building a shared library automatically hardcodes DIR into the library
18548# and all subsequent libraries and executables linked against it.
18549hardcode_automatic=$hardcode_automatic_RC
18550
18551# Variables whose values should be saved in libtool wrapper scripts and
18552# restored at relink time.
18553variables_saved_for_relink="$variables_saved_for_relink"
18554
18555# Whether libtool must link a program against all its dependency libraries.
18556link_all_deplibs=$link_all_deplibs_RC
18557
18558# Compile-time system search path for libraries
18559sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18560
18561# Run-time system search path for libraries
18562sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18563
18564# Fix the shell variable \$srcfile for the compiler.
18565fix_srcfile_path="$fix_srcfile_path_RC"
18566
18567# Set to yes if exported symbols are required.
18568always_export_symbols=$always_export_symbols_RC
18569
18570# The commands to list exported symbols.
18571export_symbols_cmds=$lt_export_symbols_cmds_RC
18572
18573# The commands to extract the exported symbol list from a shared archive.
18574extract_expsyms_cmds=$lt_extract_expsyms_cmds
18575
18576# Symbols that should not be listed in the preloaded symbols.
18577exclude_expsyms=$lt_exclude_expsyms_RC
18578
18579# Symbols that must always be exported.
18580include_expsyms=$lt_include_expsyms_RC
18581
18582# ### END LIBTOOL TAG CONFIG: $tagname
18583
18584__EOF__
18585
18586
18587else
18588 # If there is no Makefile yet, we rely on a make rule to execute
18589 # `config.status --recheck' to rerun these tests and create the
18590 # libtool script then.
18591 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18592 if test -f "$ltmain_in"; then
18593 test -f Makefile && make "$ltmain"
18594 fi
18595fi
18596
18597
18598ac_ext=c
18599ac_cpp='$CPP $CPPFLAGS'
18600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18602ac_compiler_gnu=$ac_cv_c_compiler_gnu
18603
18604CC="$lt_save_CC"
18605
18606 ;;
18607
18608 *)
18609 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18610echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18611 { (exit 1); exit 1; }; }
18612 ;;
18613 esac
18614
18615 # Append the new tag name to the list of available tags.
18616 if test -n "$tagname" ; then
18617 available_tags="$available_tags $tagname"
18618 fi
18619 fi
18620 done
18621 IFS="$lt_save_ifs"
18622
18623 # Now substitute the updated list of available tags.
18624 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18625 mv "${ofile}T" "$ofile"
18626 chmod +x "$ofile"
18627 else
18628 rm -f "${ofile}T"
18629 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18630echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18631 { (exit 1); exit 1; }; }
18632 fi
18633fi
18634
18635
18636
18637# This can be used to rebuild libtool when needed
18638LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18639
18640# Always use our own libtool.
18641LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18642
18643# Prevent multiple expansion
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
8558 18662
8559 18663
8560ac_ext=c 18664ac_ext=c
8561ac_cpp='$CPP $CPPFLAGS' 18665ac_cpp='$CPP $CPPFLAGS'
8562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9278ac_cpp='$CPP $CPPFLAGS' 19382ac_cpp='$CPP $CPPFLAGS'
9279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9281ac_compiler_gnu=$ac_cv_c_compiler_gnu 19385ac_compiler_gnu=$ac_cv_c_compiler_gnu
9282 19386
9283depcc="$CC" am_compiler_list=
9284
9285echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9286echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9287if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289else
9290 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9291 # We make a subdir and do the tests there. Otherwise we can end up
9292 # making bogus files that we don't know about and never remove. For
9293 # instance it was reported that on HP-UX the gcc test will end up
9294 # making a dummy file named `D' -- because `-MD' means `put the output
9295 # in D'.
9296 mkdir conftest.dir
9297 # Copy depcomp to subdir because otherwise we won't find it if we're
9298 # using a relative directory.
9299 cp "$am_depcomp" conftest.dir
9300 cd conftest.dir
9301 # We will build objects and dependencies in a subdirectory because
9302 # it helps to detect inapplicable dependency modes. For instance
9303 # both Tru64's cc and ICC support -MD to output dependencies as a
9304 # side effect of compilation, but ICC will put the dependencies in
9305 # the current directory while Tru64 will put them in the object
9306 # directory.
9307 mkdir sub
9308
9309 am_cv_CC_dependencies_compiler_type=none
9310 if test "$am_compiler_list" = ""; then
9311 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9312 fi
9313 for depmode in $am_compiler_list; do
9314 # Setup a source with many dependencies, because some compilers
9315 # like to wrap large dependency lists on column 80 (with \), and
9316 # we should not choose a depcomp mode which is confused by this.
9317 #
9318 # We need to recreate these files for each test, as the compiler may
9319 # overwrite some of them when testing with obscure command lines.
9320 # This happens at least with the AIX C compiler.
9321 : > sub/conftest.c
9322 for i in 1 2 3 4 5 6; do
9323 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9324 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9325 # Solaris 8's {/usr,}/bin/sh.
9326 touch sub/conftst$i.h
9327 done
9328 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9329
9330 case $depmode in
9331 nosideeffect)
9332 # after this tag, mechanisms are not by side-effect, so they'll
9333 # only be used when explicitly requested
9334 if test "x$enable_dependency_tracking" = xyes; then
9335 continue
9336 else
9337 break
9338 fi
9339 ;;
9340 none) break ;;
9341 esac
9342 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9343 # mode. It turns out that the SunPro C++ compiler does not properly
9344 # handle `-M -o', and we need to detect this.
9345 if depmode=$depmode \
9346 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9348 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9349 >/dev/null 2>conftest.err &&
9350 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9351 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9352 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9353 # icc doesn't choke on unknown options, it will just issue warnings
9354 # or remarks (even with -Werror). So we grep stderr for any message
9355 # that says an option was ignored or not supported.
9356 # When given -MP, icc 7.0 and 7.1 complain thusly:
9357 # icc: Command line warning: ignoring option '-M'; no argument required
9358 # The diagnosis changed in icc 8.0:
9359 # icc: Command line remark: option '-MP' not supported
9360 if (grep 'ignoring option' conftest.err ||
9361 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9362 am_cv_CC_dependencies_compiler_type=$depmode
9363 break
9364 fi
9365 fi
9366 done
9367
9368 cd ..
9369 rm -rf conftest.dir
9370else
9371 am_cv_CC_dependencies_compiler_type=none
9372fi
9373
9374fi
9375echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9376echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9377CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9378
9379
9380
9381if
9382 test "x$enable_dependency_tracking" != xno \
9383 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9384 am__fastdepCC_TRUE=
9385 am__fastdepCC_FALSE='#'
9386else
9387 am__fastdepCC_TRUE='#'
9388 am__fastdepCC_FALSE=
9389fi
9390
9391
9392 19387
9393case "$target" in 19388case "$target" in
9394 alpha-dec-osf*) 19389 alpha-dec-osf*)
9395 # If we are not using gcc, we want the ansi version of cc. 19390 # If we are not using gcc, we want the ansi version of cc.
9396 if test -z "$GCC"; then 19391 if test -z "$GCC"; then
9635ac_cpp='$CPP $CPPFLAGS' 19630ac_cpp='$CPP $CPPFLAGS'
9636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9638ac_compiler_gnu=$ac_cv_c_compiler_gnu 19633ac_compiler_gnu=$ac_cv_c_compiler_gnu
9639 19634
19635missing_dir=`cd $ac_aux_dir && pwd`
19636for ac_prog in flex lex
19637do
19638 # Extract the first word of "$ac_prog", so it can be a program name with args.
19639set dummy $ac_prog; ac_word=$2
19640echo "$as_me:$LINENO: checking for $ac_word" >&5
19641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19642if test "${ac_cv_prog_LEX+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19644else
19645 if test -n "$LEX"; then
19646 ac_cv_prog_LEX="$LEX" # Let the user override the test.
19647else
19648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649for as_dir in $PATH
19650do
19651 IFS=$as_save_IFS
19652 test -z "$as_dir" && as_dir=.
19653 for ac_exec_ext in '' $ac_executable_extensions; do
19654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19655 ac_cv_prog_LEX="$ac_prog"
19656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19657 break 2
19658 fi
19659done
19660done
19661
19662fi
19663fi
19664LEX=$ac_cv_prog_LEX
19665if test -n "$LEX"; then
19666 echo "$as_me:$LINENO: result: $LEX" >&5
19667echo "${ECHO_T}$LEX" >&6
19668else
19669 echo "$as_me:$LINENO: result: no" >&5
19670echo "${ECHO_T}no" >&6
19671fi
19672
19673 test -n "$LEX" && break
19674done
19675test -n "$LEX" || LEX="$missing_dir/missing flex"
19676
9640for ac_prog in flex lex 19677for ac_prog in flex lex
9641do 19678do
9642 # Extract the first word of "$ac_prog", so it can be a program name with args. 19679 # Extract the first word of "$ac_prog", so it can be a program name with args.
9643set dummy $ac_prog; ac_word=$2 19680set dummy $ac_prog; ac_word=$2
9644echo "$as_me:$LINENO: checking for $ac_word" >&5 19681echo "$as_me:$LINENO: checking for $ac_word" >&5
9906_ACEOF 19943_ACEOF
9907 19944
9908fi 19945fi
9909 19946
9910fi 19947fi
9911if test "$LEX" = :; then 19948
9912 LEX=${am_missing_run}flex
9913fi
9914for ac_prog in gawk mawk nawk awk 19949for ac_prog in gawk mawk nawk awk
9915do 19950do
9916 # Extract the first word of "$ac_prog", so it can be a program name with args. 19951 # Extract the first word of "$ac_prog", so it can be a program name with args.
9917set dummy $ac_prog; ac_word=$2 19952set dummy $ac_prog; ac_word=$2
9918echo "$as_me:$LINENO: checking for $ac_word" >&5 19953echo "$as_me:$LINENO: checking for $ac_word" >&5
10617/* confdefs.h. */ 20652/* confdefs.h. */
10618_ACEOF 20653_ACEOF
10619cat confdefs.h >>conftest.$ac_ext 20654cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF 20655cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h. */ 20656/* end confdefs.h. */
10622#include <X11/Xlib.h> 20657#include <X11/Intrinsic.h>
10623_ACEOF 20658_ACEOF
10624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10626 ac_status=$? 20661 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err 20662 grep -v '^ *+' conftest.er1 >conftest.err
10644else 20679else
10645 echo "$as_me: failed program was:" >&5 20680 echo "$as_me: failed program was:" >&5
10646sed 's/^/| /' conftest.$ac_ext >&5 20681sed 's/^/| /' conftest.$ac_ext >&5
10647 20682
10648 for ac_dir in $ac_x_header_dirs; do 20683 for ac_dir in $ac_x_header_dirs; do
10649 if test -r "$ac_dir/X11/Xlib.h"; then 20684 if test -r "$ac_dir/X11/Intrinsic.h"; then
10650 ac_x_includes=$ac_dir 20685 ac_x_includes=$ac_dir
10651 break 20686 break
10652 fi 20687 fi
10653done 20688done
10654fi 20689fi
10658if test "$ac_x_libraries" = no; then 20693if test "$ac_x_libraries" = no; then
10659 # Check for the libraries. 20694 # Check for the libraries.
10660 # See if we find them without any special options. 20695 # See if we find them without any special options.
10661 # Don't add to $LIBS permanently. 20696 # Don't add to $LIBS permanently.
10662 ac_save_LIBS=$LIBS 20697 ac_save_LIBS=$LIBS
10663 LIBS="-lX11 $LIBS" 20698 LIBS="-lXt $LIBS"
10664 cat >conftest.$ac_ext <<_ACEOF 20699 cat >conftest.$ac_ext <<_ACEOF
10665/* confdefs.h. */ 20700/* confdefs.h. */
10666_ACEOF 20701_ACEOF
10667cat confdefs.h >>conftest.$ac_ext 20702cat confdefs.h >>conftest.$ac_ext
10668cat >>conftest.$ac_ext <<_ACEOF 20703cat >>conftest.$ac_ext <<_ACEOF
10669/* end confdefs.h. */ 20704/* end confdefs.h. */
10670#include <X11/Xlib.h> 20705#include <X11/Intrinsic.h>
10671int 20706int
10672main () 20707main ()
10673{ 20708{
10674XrmInitialize () 20709XtMalloc (0)
10675 ; 20710 ;
10676 return 0; 20711 return 0;
10677} 20712}
10678_ACEOF 20713_ACEOF
10679rm -f conftest.$ac_objext conftest$ac_exeext 20714rm -f conftest.$ac_objext conftest$ac_exeext
10707LIBS=$ac_save_LIBS 20742LIBS=$ac_save_LIBS
10708for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 20743for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10709do 20744do
10710 # Don't even attempt the hair of trying to link an X program! 20745 # Don't even attempt the hair of trying to link an X program!
10711 for ac_extension in a so sl; do 20746 for ac_extension in a so sl; do
10712 if test -r $ac_dir/libX11.$ac_extension; then 20747 if test -r $ac_dir/libXt.$ac_extension; then
10713 ac_x_libraries=$ac_dir 20748 ac_x_libraries=$ac_dir
10714 break 2 20749 break 2
10715 fi 20750 fi
10716 done 20751 done
10717done 20752done
15852fi 25887fi
15853 25888
15854 25889
15855 25890
15856 25891
15857
15858pkgstatedir=$localstatedir/$PACKAGE 25892pkgstatedir=$localstatedir/$PACKAGE
15859 25893
15860pkgconfdir=$sysconfdir/$PACKAGE 25894pkgconfdir=$sysconfdir/$PACKAGE
15861 25895
15862 25896
15889cat >>confdefs.h <<_ACEOF 25923cat >>confdefs.h <<_ACEOF
15890#define BUNZIP "${BUNZIP}" 25924#define BUNZIP "${BUNZIP}"
15891_ACEOF 25925_ACEOF
15892 25926
15893 25927
15894if true; then
15895 # Extract the first word of "perl5", so it can be a program name with args. 25928# Extract the first word of "perl5", so it can be a program name with args.
15896set dummy perl5; ac_word=$2 25929set dummy perl5; ac_word=$2
15897echo "$as_me:$LINENO: checking for $ac_word" >&5 25930echo "$as_me:$LINENO: checking for $ac_word" >&5
15898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15899if test "${ac_cv_path_PERL+set}" = set; then 25932if test "${ac_cv_path_PERL+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6 25933 echo $ECHO_N "(cached) $ECHO_C" >&6
15929else 25962else
15930 echo "$as_me:$LINENO: result: no" >&5 25963 echo "$as_me:$LINENO: result: no" >&5
15931echo "${ECHO_T}no" >&6 25964echo "${ECHO_T}no" >&6
15932fi 25965fi
15933 25966
15934 # Extract the first word of "perl", so it can be a program name with args. 25967# Extract the first word of "perl", so it can be a program name with args.
15935set dummy perl; ac_word=$2 25968set dummy perl; ac_word=$2
15936echo "$as_me:$LINENO: checking for $ac_word" >&5 25969echo "$as_me:$LINENO: checking for $ac_word" >&5
15937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15938if test "${ac_cv_path_PERL+set}" = set; then 25971if test "${ac_cv_path_PERL+set}" = set; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6 25972 echo $ECHO_N "(cached) $ECHO_C" >&6
15969 echo "$as_me:$LINENO: result: no" >&5 26002 echo "$as_me:$LINENO: result: no" >&5
15970echo "${ECHO_T}no" >&6 26003echo "${ECHO_T}no" >&6
15971fi 26004fi
15972 26005
15973 26006
15974 echo "$as_me:$LINENO: checking for $PERL suitability" >&5 26007echo "$as_me:$LINENO: checking for $PERL suitability" >&5
15975echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 26008echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
15976 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 26009if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
15977 26010
15978 save_CFLAGS="$CFLAGS" 26011 save_CFLAGS="$CFLAGS"
15979 save_LIBS="$LIBS" 26012 save_LIBS="$LIBS"
15980 CFLAGS="$CFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 26013 CFLAGS="$CFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
15981 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 26014 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
15982 cat >conftest.$ac_ext <<_ACEOF 26015 cat >conftest.$ac_ext <<_ACEOF
15983/* confdefs.h. */ 26016/* confdefs.h. */
15984_ACEOF 26017_ACEOF
15985cat confdefs.h >>conftest.$ac_ext 26018cat confdefs.h >>conftest.$ac_ext
15986cat >>conftest.$ac_ext <<_ACEOF 26019cat >>conftest.$ac_ext <<_ACEOF
15987/* end confdefs.h. */ 26020/* end confdefs.h. */
15992 26025
15993int 26026int
15994main () 26027main ()
15995{ 26028{
15996 26029
15997 PerlInterpreter *perl = perl_alloc (); 26030 PerlInterpreter *perl = perl_alloc ();
15998 26031
15999 ; 26032 ;
16000 return 0; 26033 return 0;
16001} 26034}
16002_ACEOF 26035_ACEOF
16028 26061
16029perl_link=no 26062perl_link=no
16030fi 26063fi
16031rm -f conftest.err conftest.$ac_objext \ 26064rm -f conftest.err conftest.$ac_objext \
16032 conftest$ac_exeext conftest.$ac_ext 26065 conftest$ac_exeext conftest.$ac_ext
16033 CXXFLAGS="$save_CFLAGS" 26066 CXXFLAGS="$save_CFLAGS"
16034 LIBS="$save_LIBS" 26067 LIBS="$save_LIBS"
16035 26068
16036 if test x$perl_link = xyes; then 26069 if test x$perl_link = xyes; then
16037 echo "$as_me:$LINENO: result: ok" >&5 26070 echo "$as_me:$LINENO: result: ok" >&5
16038echo "${ECHO_T}ok" >&6 26071echo "${ECHO_T}ok" >&6
16039 26072
16040cat >>confdefs.h <<\_ACEOF 26073cat >>confdefs.h <<\_ACEOF
16041#define ENABLE_PERL 1 26074#define ENABLE_PERL 1
16042_ACEOF 26075_ACEOF
16043 26076
16044 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 26077 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
16045 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 26078 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
16046 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 26079 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
16047 PERL_PLUGIN=yes 26080 PERL_PLUGIN=yes
16048 else 26081 else
16049 { { echo "$as_me:$LINENO: error: no, unable to link" >&5 26082 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
16050echo "$as_me: error: no, unable to link" >&2;} 26083echo "$as_me: error: no, unable to link" >&2;}
16051 { (exit 1); exit 1; }; } 26084 { (exit 1); exit 1; }; }
16052 fi 26085 fi
16053 else 26086else
16054 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 26087 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
16055echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} 26088echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
16056 { (exit 1); exit 1; }; } 26089 { (exit 1); exit 1; }; }
16057 fi
16058fi 26090fi
16059 26091
16060 26092
16061 26093
16062 26094
16068else 26100else
16069 PERL_PLUGIN_TRUE='#' 26101 PERL_PLUGIN_TRUE='#'
16070 PERL_PLUGIN_FALSE= 26102 PERL_PLUGIN_FALSE=
16071fi 26103fi
16072 26104
16073
16074
16075 cat >conftest.$ac_ext <<_ACEOF
16076/* confdefs.h. */
16077_ACEOF
16078cat confdefs.h >>conftest.$ac_ext
16079cat >>conftest.$ac_ext <<_ACEOF
16080/* end confdefs.h. */
16081
16082#include <EXTERN.h>
16083#include <perl.h>
16084#include <XSUB.h>
16085
16086int
16087main ()
16088{
16089
16090 PerlInterpreter *perl = perl_alloc ();
16091
16092 ;
16093 return 0;
16094}
16095_ACEOF
16096rm -f conftest.$ac_objext conftest$ac_exeext
16097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098 (eval $ac_link) 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; } &&
16111 { ac_try='test -s conftest$ac_exeext'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16114 ac_status=$?
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; }; then
16117 rxvt_perl_link=yes
16118else
16119 echo "$as_me: failed program was:" >&5
16120sed 's/^/| /' conftest.$ac_ext >&5
16121
16122rxvt_perl_link=no
16123fi
16124rm -f conftest.err conftest.$ac_objext \
16125 conftest$ac_exeext conftest.$ac_ext
16126if test x$support_perl = xyes; then
16127 support_frills=yes
16128fi
16129 26105
16130############################################# 26106#############################################
16131# Plugin configuration 26107# Plugin configuration
16132echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 26108echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16133echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 26109echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16203 HAVE_LIBDL_FALSE='#' 26179 HAVE_LIBDL_FALSE='#'
16204else 26180else
16205 HAVE_LIBDL_TRUE='#' 26181 HAVE_LIBDL_TRUE='#'
16206 HAVE_LIBDL_FALSE= 26182 HAVE_LIBDL_FALSE=
16207fi 26183fi
16208
16209 26184
16210if test "x$cf_have_libdl" = "xyes" ; then 26185if test "x$cf_have_libdl" = "xyes" ; then
16211 ############### 26186 ###############
16212 # Python plugin 26187 # Python plugin
16213 26188
17104 PYTHON_PLUGIN_TRUE='#' 27079 PYTHON_PLUGIN_TRUE='#'
17105 PYTHON_PLUGIN_FALSE= 27080 PYTHON_PLUGIN_FALSE=
17106fi 27081fi
17107 27082
17108 27083
17109
17110 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/cfperl/Makefile plugins/cfpython/Makefile plugins/cfanim/Makefile devel/Makefile" 27084 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"
17111cat >confcache <<\_ACEOF 27085cat >confcache <<\_ACEOF
17112# This file is a shell script that caches the results of configure 27086# This file is a shell script that caches the results of configure
17113# tests run on this system so they can be shared between configure 27087# tests run on this system so they can be shared between configure
17114# scripts and configure runs, see configure's option --config-cache. 27088# scripts and configure runs, see configure's option --config-cache.
17115# It is not useful on other systems. If it contains results you don't 27089# It is not useful on other systems. If it contains results you don't
17197LIBOBJS=$ac_libobjs 27171LIBOBJS=$ac_libobjs
17198 27172
17199LTLIBOBJS=$ac_ltlibobjs 27173LTLIBOBJS=$ac_ltlibobjs
17200 27174
17201 27175
17202if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17203 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17204Usually this means the macro was only invoked conditionally." >&5
17205echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17206Usually this means the macro was only invoked conditionally." >&2;}
17207 { (exit 1); exit 1; }; }
17208fi
17209if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17210 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17211Usually this means the macro was only invoked conditionally." >&5
17212echo "$as_me: error: conditional \"AMDEP\" was never defined.
17213Usually this means the macro was only invoked conditionally." >&2;}
17214 { (exit 1); exit 1; }; }
17215fi
17216if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17217 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17218Usually this means the macro was only invoked conditionally." >&5
17219echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17220Usually this means the macro was only invoked conditionally." >&2;}
17221 { (exit 1); exit 1; }; }
17222fi
17223if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17224 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17225Usually this means the macro was only invoked conditionally." >&5
17226echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17227Usually this means the macro was only invoked conditionally." >&2;}
17228 { (exit 1); exit 1; }; }
17229fi
17230if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
17231 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
17232Usually this means the macro was only invoked conditionally." >&5
17233echo "$as_me: error: conditional \"HAVE_X\" was never defined.
17234Usually this means the macro was only invoked conditionally." >&2;}
17235 { (exit 1); exit 1; }; }
17236fi
17237if test -z "${PERL_PLUGIN_TRUE}" && test -z "${PERL_PLUGIN_FALSE}"; then
17238 { { echo "$as_me:$LINENO: error: conditional \"PERL_PLUGIN\" was never defined.
17239Usually this means the macro was only invoked conditionally." >&5
17240echo "$as_me: error: conditional \"PERL_PLUGIN\" was never defined.
17241Usually this means the macro was only invoked conditionally." >&2;}
17242 { (exit 1); exit 1; }; }
17243fi
17244if test -z "${HAVE_LIBDL_TRUE}" && test -z "${HAVE_LIBDL_FALSE}"; then
17245 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDL\" was never defined.
17246Usually this means the macro was only invoked conditionally." >&5
17247echo "$as_me: error: conditional \"HAVE_LIBDL\" was never defined.
17248Usually this means the macro was only invoked conditionally." >&2;}
17249 { (exit 1); exit 1; }; }
17250fi
17251if test -z "${PYTHON_PLUGIN_TRUE}" && test -z "${PYTHON_PLUGIN_FALSE}"; then
17252 { { echo "$as_me:$LINENO: error: conditional \"PYTHON_PLUGIN\" was never defined.
17253Usually this means the macro was only invoked conditionally." >&5
17254echo "$as_me: error: conditional \"PYTHON_PLUGIN\" was never defined.
17255Usually this means the macro was only invoked conditionally." >&2;}
17256 { (exit 1); exit 1; }; }
17257fi
17258 27176
17259: ${CONFIG_STATUS=./config.status} 27177: ${CONFIG_STATUS=./config.status}
17260ac_clean_files_save=$ac_clean_files 27178ac_clean_files_save=$ac_clean_files
17261ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27179ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17262{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 27180{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17524## Running $as_me. ## 27442## Running $as_me. ##
17525_ASBOX 27443_ASBOX
17526} >&5 27444} >&5
17527cat >&5 <<_CSEOF 27445cat >&5 <<_CSEOF
17528 27446
17529This file was extended by crossfire $as_me 1.8.0, which was 27447This file was extended by crossfire $as_me 1.9.0, which was
17530generated by GNU Autoconf 2.59. Invocation command line was 27448generated by GNU Autoconf 2.59. Invocation command line was
17531 27449
17532 CONFIG_FILES = $CONFIG_FILES 27450 CONFIG_FILES = $CONFIG_FILES
17533 CONFIG_HEADERS = $CONFIG_HEADERS 27451 CONFIG_HEADERS = $CONFIG_HEADERS
17534 CONFIG_LINKS = $CONFIG_LINKS 27452 CONFIG_LINKS = $CONFIG_LINKS
17587Report bugs to <bug-autoconf@gnu.org>." 27505Report bugs to <bug-autoconf@gnu.org>."
17588_ACEOF 27506_ACEOF
17589 27507
17590cat >>$CONFIG_STATUS <<_ACEOF 27508cat >>$CONFIG_STATUS <<_ACEOF
17591ac_cs_version="\\ 27509ac_cs_version="\\
17592crossfire config.status 1.8.0 27510crossfire config.status 1.9.0
17593configured by $0, generated by GNU Autoconf 2.59, 27511configured by $0, generated by GNU Autoconf 2.59,
17594 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 27512 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17595 27513
17596Copyright (C) 2003 Free Software Foundation, Inc. 27514Copyright (C) 2003 Free Software Foundation, Inc.
17597This config.status script is free software; the Free Software Foundation 27515This config.status script is free software; the Free Software Foundation
17685 27603
17686cat >>$CONFIG_STATUS <<_ACEOF 27604cat >>$CONFIG_STATUS <<_ACEOF
17687# 27605#
17688# INIT-COMMANDS section. 27606# INIT-COMMANDS section.
17689# 27607#
17690
17691AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17692
17693
17694# The HP-UX ksh and POSIX shell print the target directory to stdout
17695# if CDPATH is set.
17696if test "X${CDPATH+set}" = Xset; then CDPATH=${ZSH_VERSION+.}:; export CDPATH; fi
17697
17698sed_quote_subst='$sed_quote_subst'
17699double_quote_subst='$double_quote_subst'
17700delay_variable_subst='$delay_variable_subst'
17701macro_version='`$echo "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17702macro_revision='`$echo "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17703enable_shared='`$echo "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17704enable_static='`$echo "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17705pic_mode='`$echo "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17706enable_fast_install='`$echo "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17707host_alias='`$echo "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17708host='`$echo "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17709SED='`$echo "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17710Xsed='`$echo "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17711GREP='`$echo "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17712EGREP='`$echo "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17713LD='`$echo "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17714reload_flag='`$echo "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17715reload_cmds='`$echo "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17716NM='`$echo "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17717LN_S='`$echo "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17718deplibs_check_method='`$echo "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17719file_magic_cmd='`$echo "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17720AR='`$echo "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17721AR_FLAGS='`$echo "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17722STRIP='`$echo "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17723RANLIB='`$echo "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17724old_postinstall_cmds='`$echo "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17725old_postuninstall_cmds='`$echo "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17726old_archive_cmds='`$echo "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17727lt_cv_sys_max_cmd_len='`$echo "X$lt_cv_sys_max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17728lt_cv_sys_global_symbol_pipe='`$echo "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17729lt_cv_sys_global_symbol_to_cdecl='`$echo "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17730lt_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"`'
17731ac_objext='`$echo "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17732exeext='`$echo "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17733objdir='`$echo "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17734CC='`$echo "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17735compiler='`$echo "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17736GCC='`$echo "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17737SHELL='`$echo "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17738echo='`$echo "X$echo" | $Xsed -e "$delay_single_quote_subst"`'
17739MAGIC_CMD='`$echo "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17740lt_prog_compiler_no_builtin_flag='`$echo "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17741lt_prog_compiler_wl='`$echo "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17742lt_prog_compiler_pic='`$echo "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17743lt_prog_compiler_static='`$echo "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17744lt_cv_prog_compiler_c_o='`$echo "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17745need_locks='`$echo "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17746libext='`$echo "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17747shrext_cmds='`$echo "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17748extract_expsyms_cmds='`$echo "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17749variables_saved_for_relink='`$echo "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17750archive_cmds_need_lc='`$echo "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17751enable_shared_with_static_runtimes='`$echo "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17752export_dynamic_flag_spec='`$echo "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17753whole_archive_flag_spec='`$echo "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17754old_archive_from_new_cmds='`$echo "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17755old_archive_from_expsyms_cmds='`$echo "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17756archive_cmds='`$echo "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17757archive_expsym_cmds='`$echo "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17758module_cmds='`$echo "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17759module_expsym_cmds='`$echo "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17760allow_undefined_flag='`$echo "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17761no_undefined_flag='`$echo "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17762hardcode_libdir_flag_spec='`$echo "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17763hardcode_libdir_flag_spec_ld='`$echo "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17764hardcode_libdir_separator='`$echo "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17765hardcode_direct='`$echo "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17766hardcode_minus_L='`$echo "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17767hardcode_shlibpath_var='`$echo "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17768hardcode_automatic='`$echo "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17769inherit_rpath='`$echo "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17770link_all_deplibs='`$echo "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17771fix_srcfile_path='`$echo "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17772always_export_symbols='`$echo "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17773export_symbols_cmds='`$echo "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17774exclude_expsyms='`$echo "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17775include_expsyms='`$echo "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17776need_lib_prefix='`$echo "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17777need_version='`$echo "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17778version_type='`$echo "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17779runpath_var='`$echo "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17780shlibpath_var='`$echo "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17781shlibpath_overrides_runpath='`$echo "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17782libname_spec='`$echo "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17783library_names_spec='`$echo "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17784soname_spec='`$echo "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17785postinstall_cmds='`$echo "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17786postuninstall_cmds='`$echo "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17787finish_cmds='`$echo "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17788finish_eval='`$echo "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17789hardcode_into_libs='`$echo "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17790sys_lib_search_path_spec='`$echo "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17791sys_lib_dlsearch_path_spec='`$echo "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17792hardcode_action='`$echo "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17793old_striplib='`$echo "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17794striplib='`$echo "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17795enable_dlopen='`$echo "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17796enable_dlopen_self='`$echo "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17797enable_dlopen_self_static='`$echo "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17798
17799LTCC='$LTCC'
17800compiler='$compiler_DEFAULT'
17801
17802# Quote evaled strings.
17803for 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
17804 eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17805done
17806
17807# Double-quote double-evaled strings.
17808for 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
17809 eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17810done
17811
17812# Fix-up fallback echo if it was mangled by the above quoting rules.
17813case \$lt_echo in
17814*'\\\$0 --fallback-echo"') lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17815 ;;
17816esac
17817
17818ac_aux_dir='$ac_aux_dir'
17819
17820# See if we are running on zsh, and set the options which allow our
17821# commands through without removal of \ escapes INIT.
17822if test -n "\${ZSH_VERSION+set}" ; then
17823 setopt NO_GLOB_SUBST
17824fi
17825
17826
17827 PACKAGE='$PACKAGE'
17828 VERSION='$VERSION'
17829 TIMESTAMP='$TIMESTAMP'
17830 rm='$rm'
17831 ofile='$ofile'
17832
17833 27608
17834 27609
17835 27610
17836_ACEOF 27611_ACEOF
17837 27612
17871 "utils/crossloop.web" ) CONFIG_FILES="$CONFIG_FILES utils/crossloop.web" ;; 27646 "utils/crossloop.web" ) CONFIG_FILES="$CONFIG_FILES utils/crossloop.web" ;;
17872 "utils/scores.pl" ) CONFIG_FILES="$CONFIG_FILES utils/scores.pl" ;; 27647 "utils/scores.pl" ) CONFIG_FILES="$CONFIG_FILES utils/scores.pl" ;;
17873 "utils/player_dl.pl" ) CONFIG_FILES="$CONFIG_FILES utils/player_dl.pl" ;; 27648 "utils/player_dl.pl" ) CONFIG_FILES="$CONFIG_FILES utils/player_dl.pl" ;;
17874 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 27649 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17875 "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; 27650 "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
27651 "plugins/cfpython/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/Makefile" ;;
27652 "plugins/cfpython/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/include/Makefile" ;;
27653 "plugins/cfanim/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;;
27654 "plugins/cfanim/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/include/Makefile" ;;
27655 "plugins/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/Makefile" ;;
27656 "plugins/common/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/include/Makefile" ;;
27657 "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;;
17876 "plugins/cfperl/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfperl/Makefile" ;; 27658 "plugins/cfperl/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfperl/Makefile" ;;
17877 "plugins/cfpython/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/Makefile" ;;
17878 "plugins/cfanim/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;;
17879 "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;;
17880 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 27659 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17881 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17882 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;; 27660 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
17883 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 27661 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17884echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 27662echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17885 { (exit 1); exit 1; }; };; 27663 { (exit 1); exit 1; }; };;
17886 esac 27664 esac
17966s,@ECHO_T@,$ECHO_T,;t t 27744s,@ECHO_T@,$ECHO_T,;t t
17967s,@LIBS@,$LIBS,;t t 27745s,@LIBS@,$LIBS,;t t
17968s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 27746s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17969s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 27747s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17970s,@INSTALL_DATA@,$INSTALL_DATA,;t t 27748s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17971s,@CYGPATH_W@,$CYGPATH_W,;t t
17972s,@PACKAGE@,$PACKAGE,;t t 27749s,@PACKAGE@,$PACKAGE,;t t
17973s,@VERSION@,$VERSION,;t t 27750s,@VERSION@,$VERSION,;t t
17974s,@ACLOCAL@,$ACLOCAL,;t t 27751s,@ACLOCAL@,$ACLOCAL,;t t
17975s,@AUTOCONF@,$AUTOCONF,;t t 27752s,@AUTOCONF@,$AUTOCONF,;t t
17976s,@AUTOMAKE@,$AUTOMAKE,;t t 27753s,@AUTOMAKE@,$AUTOMAKE,;t t
17977s,@AUTOHEADER@,$AUTOHEADER,;t t 27754s,@AUTOHEADER@,$AUTOHEADER,;t t
17978s,@MAKEINFO@,$MAKEINFO,;t t 27755s,@MAKEINFO@,$MAKEINFO,;t t
17979s,@install_sh@,$install_sh,;t t
17980s,@STRIP@,$STRIP,;t t
17981s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17982s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17983s,@mkdir_p@,$mkdir_p,;t t
17984s,@AWK@,$AWK,;t t
17985s,@SET_MAKE@,$SET_MAKE,;t t 27756s,@SET_MAKE@,$SET_MAKE,;t t
17986s,@am__leading_dot@,$am__leading_dot,;t t
17987s,@AMTAR@,$AMTAR,;t t
17988s,@am__tar@,$am__tar,;t t
17989s,@am__untar@,$am__untar,;t t
17990s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 27757s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17991s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 27758s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17992s,@MAINT@,$MAINT,;t t 27759s,@MAINT@,$MAINT,;t t
17993s,@LIBTOOL@,$LIBTOOL,;t t
17994s,@build@,$build,;t t 27760s,@build@,$build,;t t
17995s,@build_cpu@,$build_cpu,;t t 27761s,@build_cpu@,$build_cpu,;t t
17996s,@build_vendor@,$build_vendor,;t t 27762s,@build_vendor@,$build_vendor,;t t
17997s,@build_os@,$build_os,;t t 27763s,@build_os@,$build_os,;t t
17998s,@host@,$host,;t t 27764s,@host@,$host,;t t
18004s,@LDFLAGS@,$LDFLAGS,;t t 27770s,@LDFLAGS@,$LDFLAGS,;t t
18005s,@CPPFLAGS@,$CPPFLAGS,;t t 27771s,@CPPFLAGS@,$CPPFLAGS,;t t
18006s,@ac_ct_CC@,$ac_ct_CC,;t t 27772s,@ac_ct_CC@,$ac_ct_CC,;t t
18007s,@EXEEXT@,$EXEEXT,;t t 27773s,@EXEEXT@,$EXEEXT,;t t
18008s,@OBJEXT@,$OBJEXT,;t t 27774s,@OBJEXT@,$OBJEXT,;t t
18009s,@DEPDIR@,$DEPDIR,;t t
18010s,@am__include@,$am__include,;t t
18011s,@am__quote@,$am__quote,;t t
18012s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18013s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18014s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18015s,@CCDEPMODE@,$CCDEPMODE,;t t
18016s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18017s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18018s,@SED@,$SED,;t t
18019s,@EGREP@,$EGREP,;t t 27775s,@EGREP@,$EGREP,;t t
18020s,@LD@,$LD,;t t
18021s,@NM@,$NM,;t t
18022s,@LN_S@,$LN_S,;t t 27776s,@LN_S@,$LN_S,;t t
27777s,@ECHO@,$ECHO,;t t
18023s,@AR@,$AR,;t t 27778s,@AR@,$AR,;t t
18024s,@ac_ct_AR@,$ac_ct_AR,;t t 27779s,@ac_ct_AR@,$ac_ct_AR,;t t
18025s,@RANLIB@,$RANLIB,;t t 27780s,@RANLIB@,$RANLIB,;t t
18026s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 27781s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18027s,@ECHO@,$ECHO,;t t 27782s,@STRIP@,$STRIP,;t t
27783s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18028s,@CPP@,$CPP,;t t 27784s,@CPP@,$CPP,;t t
27785s,@CXX@,$CXX,;t t
27786s,@CXXFLAGS@,$CXXFLAGS,;t t
27787s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27788s,@CXXCPP@,$CXXCPP,;t t
27789s,@F77@,$F77,;t t
27790s,@FFLAGS@,$FFLAGS,;t t
27791s,@ac_ct_F77@,$ac_ct_F77,;t t
27792s,@LIBTOOL@,$LIBTOOL,;t t
18029s,@LEX@,$LEX,;t t 27793s,@LEX@,$LEX,;t t
18030s,@LEXLIB@,$LEXLIB,;t t 27794s,@LEXLIB@,$LEXLIB,;t t
18031s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 27795s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
27796s,@AWK@,$AWK,;t t
18032s,@LATEX@,$LATEX,;t t 27797s,@LATEX@,$LATEX,;t t
18033s,@GZIP@,$GZIP,;t t 27798s,@GZIP@,$GZIP,;t t
18034s,@GUNZIP@,$GUNZIP,;t t 27799s,@GUNZIP@,$GUNZIP,;t t
18035s,@TAR@,$TAR,;t t 27800s,@TAR@,$TAR,;t t
18036s,@PERL@,$PERL,;t t 27801s,@PERL@,$PERL,;t t
18525 fi 28290 fi
18526 else 28291 else
18527 cat $tmp/config.h 28292 cat $tmp/config.h
18528 rm -f $tmp/config.h 28293 rm -f $tmp/config.h
18529 fi 28294 fi
18530# Compute $ac_file's index in $config_headers.
18531_am_stamp_count=1
18532for _am_header in $config_headers :; do
18533 case $_am_header in
18534 $ac_file | $ac_file:* )
18535 break ;;
18536 * )
18537 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18538 esac
18539done
18540echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18541$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18542 X$ac_file : 'X\(//\)[^/]' \| \
18543 X$ac_file : 'X\(//\)$' \| \
18544 X$ac_file : 'X\(/\)' \| \
18545 . : '\(.\)' 2>/dev/null ||
18546echo X$ac_file |
18547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18549 /^X\(\/\/\)$/{ s//\1/; q; }
18550 /^X\(\/\).*/{ s//\1/; q; }
18551 s/.*/./; q'`/stamp-h$_am_stamp_count
18552done 28295done
18553_ACEOF 28296_ACEOF
18554cat >>$CONFIG_STATUS <<\_ACEOF 28297cat >>$CONFIG_STATUS <<\_ACEOF
18555 28298
18556# 28299#
18663 28406
18664 28407
18665 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 28408 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18666echo "$as_me: executing $ac_dest commands" >&6;} 28409echo "$as_me: executing $ac_dest commands" >&6;}
18667 case $ac_dest in 28410 case $ac_dest in
18668 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 28411 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
18669 # Strip MF so we end up with the name of the file.
18670 mf=`echo "$mf" | sed -e 's/:.*$//'`
18671 # Check whether this is an Automake generated Makefile or not.
18672 # We used to match only the files named `Makefile.in', but
18673 # some people rename them; so instead we look at the file content.
18674 # Grep'ing the first line is not enough: some people post-process
18675 # each Makefile.in and add a new line on top of each file to say so.
18676 # So let's grep whole file.
18677 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18678 dirpart=`(dirname "$mf") 2>/dev/null ||
18679$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18680 X"$mf" : 'X\(//\)[^/]' \| \
18681 X"$mf" : 'X\(//\)$' \| \
18682 X"$mf" : 'X\(/\)' \| \
18683 . : '\(.\)' 2>/dev/null ||
18684echo X"$mf" |
18685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18687 /^X\(\/\/\)$/{ s//\1/; q; }
18688 /^X\(\/\).*/{ s//\1/; q; }
18689 s/.*/./; q'`
18690 else
18691 continue
18692 fi
18693 # Extract the definition of DEPDIR, am__include, and am__quote
18694 # from the Makefile without running `make'.
18695 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18696 test -z "$DEPDIR" && continue
18697 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18698 test -z "am__include" && continue
18699 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18700 # When using ansi2knr, U may be empty or an underscore; expand it
18701 U=`sed -n 's/^U = //p' < "$mf"`
18702 # Find all dependency output files, they are included files with
18703 # $(DEPDIR) in their names. We invoke sed twice because it is the
18704 # simplest approach to changing $(DEPDIR) to its actual value in the
18705 # expansion.
18706 for file in `sed -n "
18707 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18709 # Make sure the directory exists.
18710 test -f "$dirpart/$file" && continue
18711 fdir=`(dirname "$file") 2>/dev/null ||
18712$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18713 X"$file" : 'X\(//\)[^/]' \| \
18714 X"$file" : 'X\(//\)$' \| \
18715 X"$file" : 'X\(/\)' \| \
18716 . : '\(.\)' 2>/dev/null ||
18717echo X"$file" |
18718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18720 /^X\(\/\/\)$/{ s//\1/; q; }
18721 /^X\(\/\).*/{ s//\1/; q; }
18722 s/.*/./; q'`
18723 { if $as_mkdir_p; then
18724 mkdir -p $dirpart/$fdir
18725 else
18726 as_dir=$dirpart/$fdir
18727 as_dirs=
18728 while test ! -d "$as_dir"; do
18729 as_dirs="$as_dir $as_dirs"
18730 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18731$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18732 X"$as_dir" : 'X\(//\)[^/]' \| \
18733 X"$as_dir" : 'X\(//\)$' \| \
18734 X"$as_dir" : 'X\(/\)' \| \
18735 . : '\(.\)' 2>/dev/null ||
18736echo X"$as_dir" |
18737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18739 /^X\(\/\/\)$/{ s//\1/; q; }
18740 /^X\(\/\).*/{ s//\1/; q; }
18741 s/.*/./; q'`
18742 done
18743 test ! -n "$as_dirs" || mkdir $as_dirs
18744 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18745echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18746 { (exit 1); exit 1; }; }; }
18747
18748 # echo "creating $dirpart/$file"
18749 echo '# dummy' > "$dirpart/$file"
18750 done
18751done
18752 ;;
18753 libtool )
18754
18755 # See if we are running on zsh, and set the options which allow our
18756 # commands through without removal of \ escapes.
18757 if test -n "${ZSH_VERSION+set}" ; then
18758 setopt NO_GLOB_SUBST
18759 fi
18760
18761 cfgfile="${ofile}T"
18762 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18763 $rm -f "$cfgfile"
18764
18765 cat <<_LT_EOF >> "$cfgfile"
18766#! $SHELL
18767
18768# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18769# Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION
18770# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18771# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18772#
18773# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
18774# Free Software Foundation, Inc.
18775#
18776# This file is part of GNU Libtool:
18777# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18778#
18779# This program is free software; you can redistribute it and/or modify
18780# it under the terms of the GNU General Public License as published by
18781# the Free Software Foundation; either version 2 of the License, or
18782# (at your option) any later version.
18783#
18784# This program is distributed in the hope that it will be useful, but
18785# WITHOUT ANY WARRANTY; without even the implied warranty of
18786# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18787# General Public License for more details.
18788#
18789# You should have received a copy of the GNU General Public License
18790# along with this program; if not, write to the Free Software
18791# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18792#
18793# As a special exception to the GNU General Public License, if you
18794# distribute this file as part of a program that contains a
18795# configuration script generated by Autoconf, you may include it under
18796# the same distribution terms that you use for the rest of that program.
18797
18798
18799
18800# The names of the tagged configurations supported by this script.
18801available_tags=""
18802
18803# ### BEGIN LIBTOOL CONFIG
18804
18805# Which release of libtool.m4 was used?
18806macro_version=$macro_version
18807macro_revision=$macro_revision
18808
18809# Whether or not to build shared libraries.
18810build_libtool_libs=$enable_shared
18811
18812# Whether or not to build static libraries.
18813build_old_libs=$enable_static
18814
18815# What type of objects to build.
18816pic_mode=$pic_mode
18817
18818# Whether or not to optimize for fast installation.
18819fast_install=$enable_fast_install
18820
18821# The host system.
18822host_alias=$host_alias
18823host=$host
18824
18825# A sed program that does not truncate output.
18826SED=$lt_SED
18827
18828# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18829Xsed="\$SED -e s/^X//"
18830
18831# A grep program that handles long line.
18832GREP=$lt_GREP
18833
18834# An ERE matcher.
18835EGREP=$lt_EGREP
18836
18837# How to create reloadable object files.
18838reload_flag=$lt_reload_flag
18839reload_cmds=$lt_reload_cmds
18840
18841# A BSD-compatible nm program.
18842NM=$lt_NM
18843
18844# Whether we need soft or hard links.
18845LN_S=$lt_LN_S
18846
18847# Method to check whether dependent libraries are shared objects.
18848deplibs_check_method=$lt_deplibs_check_method
18849
18850# Command to use when deplibs_check_method == "file_magic".
18851file_magic_cmd=$lt_file_magic_cmd
18852
18853# The archiver.
18854AR=$lt_AR
18855AR_FLAGS=$lt_AR_FLAGS
18856
18857# A symbol stripping program.
18858STRIP=$lt_STRIP
18859
18860# Commands used to install an old-style archive.
18861RANLIB=$lt_RANLIB
18862old_postinstall_cmds=$lt_old_postinstall_cmds
18863old_postuninstall_cmds=$lt_old_postuninstall_cmds
18864
18865# What is the maximum length of a command?
18866max_cmd_len=$lt_cv_sys_max_cmd_len
18867
18868# Take the output of nm and produce a listing of raw symbols and C names.
18869global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18870
18871# Transform the output of nm in a proper C declaration.
18872global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18873
18874# Transform the output of nm in a C name address pair.
18875global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18876
18877# Object file suffix (normally "o").
18878objext=$ac_objext
18879
18880# Executable file suffix (normally "").
18881exeext=$exeext
18882
18883# The name of the directory that contains temporary libtool files.
18884objdir=$objdir
18885
18886# A C compiler.
18887LTCC=$lt_CC
18888
18889# Shell to use when invoking shell scripts.
18890SHELL=$lt_SHELL
18891
18892# An echo program that does not interpret backslashes.
18893echo=$lt_echo
18894
18895# Used to examine libraries when file_magic_cmd begins "file".
18896MAGIC_CMD=$MAGIC_CMD
18897
18898# Does compiler simultaneously support -c and -o options?
18899compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18900
18901# Must we lock files when doing compilation?
18902need_locks=$lt_need_locks
18903
18904# Old archive suffix (normally "a").
18905libext=$libext
18906
18907# Shared library suffix (normally ".so").
18908shrext_cmds=$lt_shrext_cmds
18909
18910# The commands to extract the exported symbol list from a shared archive.
18911extract_expsyms_cmds=$lt_extract_expsyms_cmds
18912
18913# Variables whose values should be saved in libtool wrapper scripts and
18914# restored at link time.
18915variables_saved_for_relink=$lt_variables_saved_for_relink
18916
18917# Do we need the "lib" prefix for modules?
18918need_lib_prefix=$need_lib_prefix
18919
18920# Do we need a version for libraries?
18921need_version=$need_version
18922
18923# Library versioning type.
18924version_type=$version_type
18925
18926# Shared library runtime path variable.
18927runpath_var=$runpath_var
18928
18929# Shared library path variable.
18930shlibpath_var=$shlibpath_var
18931
18932# Is shibpath searched before the hard-coded library search path?
18933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18934
18935# Format of library name prefix.
18936libname_spec=$lt_libname_spec
18937
18938# List of archive names. First name is the real one,the rest are links.
18939# The last name is the one that the linker finds with -lNAME
18940library_names_spec=$lt_library_names_spec
18941
18942# The coded name of the library,if different from the real name.
18943soname_spec=$lt_soname_spec
18944
18945# Command to use after installation of a shared archive.
18946postinstall_cmds=$lt_postinstall_cmds
18947
18948# Command to use after uninstallation of a shared archive.
18949postuninstall_cmds=$lt_postuninstall_cmds
18950
18951# Commands used to finish a libtool library installation in a directory.
18952finish_cmds=$lt_finish_cmds
18953
18954# As "finish_cmds",except a single script fragment to be evaled but
18955# not shown.
18956finish_eval=$lt_finish_eval
18957
18958# Whether we should hardcode library paths into libraries.
18959hardcode_into_libs=$hardcode_into_libs
18960
18961# Compile-time system search path for libraries.
18962sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18963
18964# Run-time system search path for libraries.
18965sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18966
18967# Commands to strip libraries.
18968old_striplib=$lt_old_striplib
18969striplib=$lt_striplib
18970
18971# Whether dlopen is supported.
18972dlopen_support=$enable_dlopen
18973
18974# Whether dlopen of programs is supported.
18975dlopen_self=$enable_dlopen_self
18976
18977# Whether dlopen of statically linked programs is supported.
18978dlopen_self_static=$enable_dlopen_self_static
18979
18980
18981# The linker used to build libraries.
18982LD=$lt_LD
18983
18984# Commands used to build an old-style archive.
18985old_archive_cmds=$lt_old_archive_cmds
18986
18987# A language specific compiler.
18988CC=$lt_compiler
18989
18990# Is the compiler the GNU C compiler?
18991with_gcc=$GCC
18992
18993# Compiler flag to turn off builtin functions.
18994no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18995
18996# How to pass a linker flag through the compiler.
18997wl=$lt_lt_prog_compiler_wl
18998
18999# Additional compiler flags for building library objects.
19000pic_flag=$lt_lt_prog_compiler_pic
19001
19002# Compiler flag to prevent dynamic linking.
19003link_static_flag=$lt_lt_prog_compiler_static
19004
19005# Whether or not to add -lc for building shared libraries.
19006build_libtool_need_lc=$archive_cmds_need_lc
19007
19008# Whether or not to disallow shared libs when runtime libs are static.
19009allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19010
19011# Compiler flag to allow reflexive dlopens.
19012export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19013
19014# Compiler flag to generate shared objects directly from archives.
19015whole_archive_flag_spec=$lt_whole_archive_flag_spec
19016
19017# Create an old-style archive from a shared archive.
19018old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19019
19020# Create a temporary old-style archive to link instead of a shared archive.
19021old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19022
19023# Commands used to build a shared archive.
19024archive_cmds=$lt_archive_cmds
19025archive_expsym_cmds=$lt_archive_expsym_cmds
19026
19027# Commands used to build a loadable module if different from building
19028# a shared archive.
19029module_cmds=$lt_module_cmds
19030module_expsym_cmds=$lt_module_expsym_cmds
19031
19032# Flag that allows shared libraries with undefined symbols to be built.
19033allow_undefined_flag=$lt_allow_undefined_flag
19034
19035# Flag that enforces no undefined symbols.
19036no_undefined_flag=$lt_no_undefined_flag
19037
19038# Flag to hardcode $libdir into a binary during linking.
19039# This must work even if $libdir does not exist
19040hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19041
19042# If ld is used when linking,flag to hardcode $libdir into a binary
19043# during linking. This must work even if $libdir does not exist.
19044hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19045
19046# Whether we need a single "-rpath" flag with a separated argument.
19047hardcode_libdir_separator=$lt_hardcode_libdir_separator
19048
19049# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
19050# DIR into the resulting binary.
19051hardcode_direct=$hardcode_direct
19052
19053# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19054# into the resulting binary.
19055hardcode_minus_L=$hardcode_minus_L
19056
19057# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19058# into the resulting binary.
19059hardcode_shlibpath_var=$hardcode_shlibpath_var
19060
19061# Set to "yes" if building a shared library automatically hardcodes DIR
19062# into the library and all subsequent libraries and executables linked
19063# against it.
19064hardcode_automatic=$hardcode_automatic
19065
19066# Set to yes if linker adds runtime paths of dependent libraries
19067# to runtime path list.
19068inherit_rpath=$inherit_rpath
19069
19070# Whether libtool must link a program against all its dependency libraries.
19071link_all_deplibs=$link_all_deplibs
19072
19073# Fix the shell variable $srcfile for the compiler.
19074fix_srcfile_path=$lt_fix_srcfile_path
19075
19076# Set to "yes" if exported symbols are required.
19077always_export_symbols=$always_export_symbols
19078
19079# The commands to list exported symbols.
19080export_symbols_cmds=$lt_export_symbols_cmds
19081
19082# Symbols that should not be listed in the preloaded symbols.
19083exclude_expsyms=$lt_exclude_expsyms
19084
19085# Symbols that must always be exported.
19086include_expsyms=$lt_include_expsyms
19087
19088# How to hardcode a shared library path into an executable.
19089hardcode_action=$hardcode_action
19090
19091# ### END LIBTOOL CONFIG
19092
19093# The HP-UX ksh and POSIX shell print the target directory to stdout
19094# if CDPATH is set.
19095if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
19096
19097_LT_EOF
19098
19099 case $host_os in
19100 aix3*)
19101 cat <<\_LT_EOF >> "$cfgfile"
19102# AIX sometimes has problems with the GCC collect2 program. For some
19103# reason, if we set the COLLECT_NAMES environment variable, the problems
19104# vanish in a puff of smoke.
19105if test "X${COLLECT_NAMES+set}" != Xset; then
19106 COLLECT_NAMES=
19107 export COLLECT_NAMES
19108fi
19109_LT_EOF
19110 ;;
19111 esac
19112
19113
19114case $ac_aux_dir in
19115 $srcdir) ltmain=./ltmain.sh ;;
19116 $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
19117esac
19118test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
19119
19120
19121 # We use sed instead of cat because bash on DJGPP gets confused if
19122 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19123 # text mode, it properly converts lines to CR/LF. This bash problem
19124 # is reportedly fixed, but why not run on old versions too?
19125 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
19126
19127 mv -f "$cfgfile" "$ofile" ||
19128 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19129 chmod +x "$ofile"
19130
19131 ;;
19132 esac 28412 esac
19133done 28413done
19134_ACEOF 28414_ACEOF
19135 28415
19136cat >>$CONFIG_STATUS <<\_ACEOF 28416cat >>$CONFIG_STATUS <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines