OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [libtool.m4] - Diff between revs 157 and 225

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 1... Line 1...
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
#
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
# 2006, 2007 Free Software Foundation, Inc.
#                 2006, 2007, 2008 Free Software Foundation, Inc.
#
#   Written by Gordon Matzigkeit, 1996
# This file is part of GNU Libtool:
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
#
#
# This file is free software; the Free Software Foundation gives
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
# modifications, as long as this notice is preserved.
 
 
m4_define([_LT_COPYING], [dnl
m4_define([_LT_COPYING], [dnl
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
# 2006, 2007 Free Software Foundation, Inc.
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
#   Written by Gordon Matzigkeit, 1996
#
#
# This file is part of GNU Libtool:
#   This file is part of GNU Libtool.
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
#
#
# This program is free software; you can redistribute it and/or modify
# GNU Libtool is free software; you can redistribute it and/or
# it under the terms of the GNU General Public License as published by
# modify it under the terms of the GNU General Public License as
# the Free Software Foundation; either version 2 of the License, or
# published by the Free Software Foundation; either version 2 of
# (at your option) any later version.
# the License, or (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful, but
# As a special exception to the GNU General Public License,
# WITHOUT ANY WARRANTY; without even the implied warranty of
# if you distribute this file as part of a program or library that
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# is built using GNU Libtool, you may include this file under the
# General Public License for more details.
# same distribution terms that you use for the rest of that program.
#
#
# You should have received a copy of the GNU General Public License
# GNU Libtool is distributed in the hope that it will be useful,
# along with this program; if not, a copy can be downloaded from
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# GNU General Public License for more details.
# MA 02110-1301, USA.
 
#
#
# As a special exception to the GNU General Public License, if you
# You should have received a copy of the GNU General Public License
# distribute this file as part of a program that contains a
# along with GNU Libtool; see the file COPYING.  If not, a copy
# configuration script generated by Autoconf, you may include it under
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# the same distribution terms that you use for the rest of that program.
# obtained by writing to the Free Software Foundation, Inc.,
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
])
])
 
 
# serial 53 LT_INIT
# serial 56 LT_INIT
 
 
 
 
# LT_PREREQ(VERSION)
# LT_PREREQ(VERSION)
# ------------------
# ------------------
# Complain and exit if this libtool version is less that VERSION.
# Complain and exit if this libtool version is less that VERSION.
Line 51... Line 49...
                   [m4_fatal([Libtool version $1 or higher is required],
                   [m4_fatal([Libtool version $1 or higher is required],
                             63)])],
                             63)])],
       [$2])])
       [$2])])
 
 
 
 
 
# _LT_CHECK_BUILDDIR
 
# ------------------
 
# Complain if the absolute build directory name contains unusual characters
 
m4_defun([_LT_CHECK_BUILDDIR],
 
[case `pwd` in
 
  *\ * | *\     *)
 
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
esac
 
])
 
 
 
 
# LT_INIT([OPTIONS])
# LT_INIT([OPTIONS])
# ------------------
# ------------------
AC_DEFUN([LT_INIT],
AC_DEFUN([LT_INIT],
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
AC_BEFORE([$0], [LT_LANG])dnl
AC_BEFORE([$0], [LT_LANG])dnl
AC_BEFORE([$0], [LT_OUTPUT])dnl
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
AC_BEFORE([$0], [LTDL_INIT])dnl
 
m4_require([_LT_CHECK_BUILDDIR])dnl
 
 
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
dnl unless we require an AC_DEFUNed macro:
dnl unless we require an AC_DEFUNed macro:
AC_REQUIRE([LTOPTIONS_VERSION])dnl
AC_REQUIRE([LTOPTIONS_VERSION])dnl
AC_REQUIRE([LTSUGAR_VERSION])dnl
AC_REQUIRE([LTSUGAR_VERSION])dnl
AC_REQUIRE([LTVERSION_VERSION])dnl
AC_REQUIRE([LTVERSION_VERSION])dnl
 
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
m4_require([_LT_PROG_LTMAIN])dnl
m4_require([_LT_PROG_LTMAIN])dnl
m4_require([_LT_SET_OPTIONS], [_LT_SET_OPTIONS([$1])])dnl
 
 
dnl Parse OPTIONS
 
_LT_SET_OPTIONS([$0], [$1])
 
 
# This can be used to rebuild libtool when needed
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ltmain"
LIBTOOL_DEPS="$ltmain"
 
 
# Always use our own libtool.
# Always use our own libtool.
Line 80... Line 94...
 
 
_LT_SETUP
_LT_SETUP
 
 
# Only expand once:
# Only expand once:
m4_define([LT_INIT])
m4_define([LT_INIT])
])# _LT_INIT
])# LT_INIT
 
 
# Old names:
# Old names:
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
dnl aclocal-1.4 backwards compatibility:
dnl aclocal-1.4 backwards compatibility:
Line 139... Line 153...
AC_REQUIRE([AC_PROG_LN_S])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
test -z "$LN_S" && LN_S="ln -s"
test -z "$LN_S" && LN_S="ln -s"
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
dnl
dnl
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
AC_REQUIRE([AC_OBJEXT])dnl
 
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
AC_REQUIRE([AC_EXEEXT])dnl
 
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
dnl
dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
m4_require([_LT_CMD_RELOAD])dnl
m4_require([_LT_CMD_RELOAD])dnl
Line 317... Line 329...
# CONFIGNAME is the name given to the value in the libtool script.
# CONFIGNAME is the name given to the value in the libtool script.
# VARNAME is the (base) name used in the configure script.
# VARNAME is the (base) name used in the configure script.
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
# VARNAME.  Any other value will be used directly.
# VARNAME.  Any other value will be used directly.
m4_define([_LT_DECL],
m4_define([_LT_DECL],
[lt_if_append_uniq([lt_decl_varnames], [$2], [[, ]],
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
        [m4_ifval([$1], [$1], [$2])])
        [m4_ifval([$1], [$1], [$2])])
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
    m4_ifval([$4],
    m4_ifval([$4],
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
Line 366... Line 378...
 
 
 
 
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
# ---------------------------------------------------
# ---------------------------------------------------
m4_define([lt_decl_varnames_tagged],
m4_define([lt_decl_varnames_tagged],
[_$0(m4_quote(m4_default([$1], [[, ]])),
[m4_assert([$# <= 2])dnl
     m4_quote(m4_if([$2], [],
_$0(m4_quote(m4_default([$1], [[, ]])),
                     m4_quote(lt_decl_tag_varnames),
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
                  m4_quote(m4_shift($@)))),
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
     m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
m4_define([_lt_decl_varnames_tagged],
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
 
 
 
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
# ------------------------------------------------
# ------------------------------------------------
m4_define([lt_decl_all_varnames],
m4_define([lt_decl_all_varnames],
Line 587... Line 599...
lt_cl_version="\
lt_cl_version="\
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
configured by $[0], generated by m4_PACKAGE_STRING.
configured by $[0], generated by m4_PACKAGE_STRING.
 
 
Copyright (C) 2007 Free Software Foundation, Inc.
Copyright (C) 2008 Free Software Foundation, Inc.
This config.lt script is free software; the Free Software Foundation
This config.lt script is free software; the Free Software Foundation
gives unlimited permision to copy, distribute and modify it."
gives unlimited permision to copy, distribute and modify it."
 
 
while test $[#] != 0
while test $[#] != 0
do
do
Line 604... Line 616...
      debug=: ;;
      debug=: ;;
    --quiet | --q* | --silent | --s* | -q )
    --quiet | --q* | --silent | --s* | -q )
      lt_cl_silent=: ;;
      lt_cl_silent=: ;;
 
 
    -*) AC_MSG_ERROR([unrecognized option: $[1]
    -*) AC_MSG_ERROR([unrecognized option: $[1]
Try `$[0] --help' for more information.]) ;;
Try \`$[0] --help' for more information.]) ;;
 
 
    *) AC_MSG_ERROR([unrecognized argument: $[1]
    *) AC_MSG_ERROR([unrecognized argument: $[1]
Try `$[0] --help for more information.]) ;;
Try \`$[0] --help' for more information.]) ;;
  esac
  esac
  shift
  shift
done
done
 
 
if $lt_cl_silent; then
if $lt_cl_silent; then
Line 669... Line 681...
 
 
    cat <<_LT_EOF >> "$cfgfile"
    cat <<_LT_EOF >> "$cfgfile"
#! $SHELL
#! $SHELL
 
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
#
_LT_COPYING
_LT_COPYING
_LT_LIBTOOL_TAGS
_LT_LIBTOOL_TAGS
Line 869... Line 881...
[m4_require([_LT_DECL_SED])dnl
[m4_require([_LT_DECL_SED])dnl
ac_outfile=conftest.$ac_objext
ac_outfile=conftest.$ac_objext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
echo "$lt_simple_link_test_code" >conftest.$ac_ext
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
_lt_linker_boilerplate=`cat conftest.err`
_lt_linker_boilerplate=`cat conftest.err`
$RM conftest*
$RM -r conftest*
])# _LT_LINKER_BOILERPLATE
])# _LT_LINKER_BOILERPLATE
 
 
 
# _LT_REQUIRED_DARWIN_CHECKS
 
# -------------------------
 
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 
  case $host_os in
 
    rhapsody* | darwin*)
 
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
    _LT_DECL([], [DSYMUTIL], [1],
 
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
    _LT_DECL([], [NMEDIT], [1],
 
      [Tool to change global to local symbols on Mac OS X])
 
    _LT_DECL([], [LIPO], [1],
 
      [Tool to manipulate fat objects and archives on Mac OS X])
 
    _LT_DECL([], [OTOOL], [1],
 
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
    _LT_DECL([], [OTOOL64], [1],
 
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 
 
 
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
      [lt_cv_apple_cc_single_mod=no
 
      if test -z "${LT_MULTI_MODULE}"; then
 
        # By default we will add the -single_module flag. You can override
 
        # by either setting the environment variable LT_MULTI_MODULE
 
        # non-empty at configure time, or by adding -multi_module to the
 
        # link flags.
 
        rm -rf libconftest.dylib*
 
        echo "int foo(void){return 1;}" > conftest.c
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
        _lt_result=$?
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
          lt_cv_apple_cc_single_mod=yes
 
        else
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
        fi
 
        rm -rf libconftest.dylib*
 
        rm -f conftest.*
 
      fi])
 
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
      [lt_cv_ld_exported_symbols_list],
 
      [lt_cv_ld_exported_symbols_list=no
 
      save_LDFLAGS=$LDFLAGS
 
      echo "_main" > conftest.sym
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
        [lt_cv_ld_exported_symbols_list=yes],
 
        [lt_cv_ld_exported_symbols_list=no])
 
        LDFLAGS="$save_LDFLAGS"
 
    ])
 
    case $host_os in
 
    rhapsody* | darwin1.[[012]])
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
    darwin1.*)
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
    darwin*) # darwin 5.x on
 
      # if running on 10.5 or later, the deployment target defaults
 
      # to the OS version, if on x86, and 10.4, the deployment
 
      # target defaults to 10.4. Don't you love it?
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
        10.[[012]]*)
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
        10.*)
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
      esac
 
    ;;
 
  esac
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
      _lt_dar_single_mod='$single_module'
 
    fi
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
    else
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
    fi
 
    if test "$DSYMUTIL" != ":"; then
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
    else
 
      _lt_dsymutil=
 
    fi
 
    ;;
 
  esac
 
])
 
 
 
 
 
# _LT_DARWIN_LINKER_FEATURES
 
# --------------------------
 
# Checks for linker and compiler features on darwin
 
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
[
 
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
  _LT_TAGVAR(hardcode_direct, $1)=no
 
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
  case $cc_basename in
 
     ifort*) _lt_dar_can_shared=yes ;;
 
     *) _lt_dar_can_shared=$GCC ;;
 
  esac
 
  if test "$_lt_dar_can_shared" = "yes"; then
 
    output_verbose_link_cmd=echo
 
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
    m4_if([$1], [CXX],
 
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
    fi
 
],[])
 
  else
 
  _LT_TAGVAR(ld_shlibs, $1)=no
 
  fi
 
])
 
 
# _LT_SYS_MODULE_PATH_AIX
# _LT_SYS_MODULE_PATH_AIX
# -----------------------
# -----------------------
# Links a minimal program and checks the executable
# Links a minimal program and checks the executable
# for the system default hardcoded library path. In most cases,
# for the system default hardcoded library path. In most cases,
Line 1073... Line 1209...
 
 
 
 
# _LT_ENABLE_LOCK
# _LT_ENABLE_LOCK
# ---------------
# ---------------
m4_defun([_LT_ENABLE_LOCK],
m4_defun([_LT_ENABLE_LOCK],
[AC_REQUIRE([AC_OBJEXT])dnl
[AC_ARG_ENABLE([libtool-lock],
AC_ARG_ENABLE([libtool-lock],
 
  [AS_HELP_STRING([--disable-libtool-lock],
  [AS_HELP_STRING([--disable-libtool-lock],
    [avoid locking (might break parallel builds)])])
    [avoid locking (might break parallel builds)])])
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
 
# Some flags need to be propagated to the compiler or linker for good
# Some flags need to be propagated to the compiler or linker for good
Line 1200... Line 1335...
  if AC_TRY_EVAL(ac_compile); then
  if AC_TRY_EVAL(ac_compile); then
    case `/usr/bin/file conftest.o` in
    case `/usr/bin/file conftest.o` in
    *64-bit*)
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
      *)    LD="${LD-ld} -64" ;;
      *)
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
          LD="${LD-ld} -64"
 
        fi
 
        ;;
      esac
      esac
      ;;
      ;;
    esac
    esac
  fi
  fi
  rm -rf conftest*
  rm -rf conftest*
Line 1232... Line 1371...
test -z "$RANLIB" && RANLIB=:
test -z "$RANLIB" && RANLIB=:
_LT_DECL([], [RANLIB], [1],
_LT_DECL([], [RANLIB], [1],
    [Commands used to install an old-style archive])
    [Commands used to install an old-style archive])
 
 
# Determine commands to create old-style static archives.
# Determine commands to create old-style static archives.
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
old_postinstall_cmds='chmod 644 $oldlib'
old_postinstall_cmds='chmod 644 $oldlib'
old_postuninstall_cmds=
old_postuninstall_cmds=
 
 
if test -n "$RANLIB"; then
if test -n "$RANLIB"; then
  case $host_os in
  case $host_os in
Line 1259... Line 1398...
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
# ----------------------------------------------------------------
# ----------------------------------------------------------------
# Check whether the given compiler option works
# Check whether the given compiler option works
AC_DEFUN([_LT_COMPILER_OPTION],
AC_DEFUN([_LT_COMPILER_OPTION],
[AC_REQUIRE([AC_OBJEXT])dnl
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
m4_require([_LT_DECL_SED])dnl
m4_require([_LT_DECL_SED])dnl
AC_CACHE_CHECK([$1], [$2],
AC_CACHE_CHECK([$1], [$2],
  [$2=no
  [$2=no
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Line 1333... Line 1471...
       fi
       fi
     else
     else
       $2=yes
       $2=yes
     fi
     fi
   fi
   fi
   $RM conftest*
   $RM -r conftest*
   LDFLAGS="$save_LDFLAGS"
   LDFLAGS="$save_LDFLAGS"
])
])
 
 
if test x"[$]$2" = xyes; then
if test x"[$]$2" = xyes; then
    m4_if([$4], , :, [$4])
    m4_if([$4], , :, [$4])
Line 1376... Line 1514...
    # no limit to the length of command line arguments.
    # no limit to the length of command line arguments.
    # Libtool will interpret -1 as no limit whatsoever
    # Libtool will interpret -1 as no limit whatsoever
    lt_cv_sys_max_cmd_len=-1;
    lt_cv_sys_max_cmd_len=-1;
    ;;
    ;;
 
 
  cygwin* | mingw*)
  cygwin* | mingw* | cegcc*)
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # On Win9x/ME, this test blows up -- it succeeds, but takes
    # about 5 minutes as the teststring grows exponentially.
    # about 5 minutes as the teststring grows exponentially.
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # Worse, since 9x/ME are not pre-emptively multitasking,
    # you end up with a "frozen" computer, even though with patience
    # you end up with a "frozen" computer, even though with patience
    # the test eventually succeeds (with a max line length of 256k).
    # the test eventually succeeds (with a max line length of 256k).
Line 1437... Line 1575...
    else
    else
      lt_cv_sys_max_cmd_len=32768
      lt_cv_sys_max_cmd_len=32768
    fi
    fi
    ;;
    ;;
  *)
  *)
    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    if test -n $lt_cv_sys_max_cmd_len; then
    if test -n "$lt_cv_sys_max_cmd_len"; then
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    else
    else
      # Make teststring a little bigger before we do anything with it.
      # Make teststring a little bigger before we do anything with it.
      # a 1K string should be a reasonable start.
      # a 1K string should be a reasonable start.
Line 1544... Line 1682...
#      endif
#      endif
#    endif
#    endif
#  endif
#  endif
#endif
#endif
 
 
#ifdef __cplusplus
 
extern "C" void exit (int);
 
#endif
 
 
 
void fnord() { int i=42;}
void fnord() { int i=42;}
int main ()
int main ()
{
{
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  int status = $lt_dlunknown;
  int status = $lt_dlunknown;
Line 1563... Line 1697...
      /* dlclose (self); */
      /* dlclose (self); */
    }
    }
  else
  else
    puts (dlerror ());
    puts (dlerror ());
 
 
    exit (status);
  return status;
}]
}]
_LT_EOF
_LT_EOF
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
    lt_status=$?
    lt_status=$?
Line 1602... Line 1736...
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen="load_add_on"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_libs=
    lt_cv_dlopen_self=yes
    lt_cv_dlopen_self=yes
    ;;
    ;;
 
 
  mingw* | pw32*)
  mingw* | pw32* | cegcc*)
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen="LoadLibrary"
    lt_cv_dlopen_libs=
    lt_cv_dlopen_libs=
    ;;
    ;;
 
 
  cygwin*)
  cygwin*)
Line 1626... Line 1760...
 
 
  *)
  *)
    AC_CHECK_FUNC([shl_load],
    AC_CHECK_FUNC([shl_load],
          [lt_cv_dlopen="shl_load"],
          [lt_cv_dlopen="shl_load"],
      [AC_CHECK_LIB([dld], [shl_load],
      [AC_CHECK_LIB([dld], [shl_load],
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
        [AC_CHECK_FUNC([dlopen],
        [AC_CHECK_FUNC([dlopen],
              [lt_cv_dlopen="dlopen"],
              [lt_cv_dlopen="dlopen"],
          [AC_CHECK_LIB([dl], [dlopen],
          [AC_CHECK_LIB([dl], [dlopen],
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
            [AC_CHECK_LIB([svld], [dlopen],
            [AC_CHECK_LIB([svld], [dlopen],
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
              [AC_CHECK_LIB([dld], [dld_link],
              [AC_CHECK_LIB([dld], [dld_link],
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
              ])
              ])
            ])
            ])
          ])
          ])
        ])
        ])
      ])
      ])
Line 1712... Line 1846...
# _LT_COMPILER_C_O([TAGNAME])
# _LT_COMPILER_C_O([TAGNAME])
# ---------------------------
# ---------------------------
# Check to see if options -c and -o are simultaneously supported by compiler.
# Check to see if options -c and -o are simultaneously supported by compiler.
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
m4_defun([_LT_COMPILER_C_O],
m4_defun([_LT_COMPILER_C_O],
[AC_REQUIRE([AC_OBJEXT])dnl
[m4_require([_LT_DECL_SED])dnl
m4_require([_LT_DECL_SED])dnl
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_TAG_COMPILER])dnl
m4_require([_LT_TAG_COMPILER])dnl
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
Line 1900... Line 2033...
# PORTME Fill in your ld.so characteristics
# PORTME Fill in your ld.so characteristics
m4_defun([_LT_SYS_DYNAMIC_LINKER],
m4_defun([_LT_SYS_DYNAMIC_LINKER],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
m4_require([_LT_DECL_EGREP])dnl
m4_require([_LT_DECL_EGREP])dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
m4_require([_LT_DECL_OBJDUMP])dnl
m4_require([_LT_DECL_SED])dnl
m4_require([_LT_DECL_SED])dnl
AC_MSG_CHECKING([dynamic linker characteristics])
AC_MSG_CHECKING([dynamic linker characteristics])
m4_case([$1],
m4_if([$1],
        [C], [withGCC=$GCC],
        [], [
        [CXX], [withGCC=$GXX],
if test "$GCC" = yes; then
        [F77], [withGCC=$G77],
 
        [FC], [withGCC=$ac_cv_fc_compiler_gnu],
 
        [GCJ], [withGCC=$GCC],
 
        [], [withGCC=$GCC
 
if test "$withGCC" = yes; then
 
  case $host_os in
  case $host_os in
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
    *) lt_awk_arg="/^libraries:/" ;;
  esac
  esac
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Line 1959... Line 2088...
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
}'`
}'`
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
else
else
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
fi],
fi])
[withGCC=$GCC])
 
library_names_spec=
library_names_spec=
libname_spec='lib$name'
libname_spec='lib$name'
soname_spec=
soname_spec=
shrext_cmds=".so"
shrext_cmds=".so"
postinstall_cmds=
postinstall_cmds=
Line 2036... Line 2164...
    shlibpath_var=LIBPATH
    shlibpath_var=LIBPATH
  fi
  fi
  ;;
  ;;
 
 
amigaos*)
amigaos*)
  if test "$host_cpu" = m68k; then
  case $host_cpu in
 
  powerpc)
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
    ;;
 
  m68k)
    library_names_spec='$libname.ixlibrary $libname.a'
    library_names_spec='$libname.ixlibrary $libname.a'
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    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'
    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'
  else
    ;;
    dynamic_linker=no
  esac
  fi
 
  ;;
  ;;
 
 
beos*)
beos*)
  library_names_spec='${libname}${shared_ext}'
  library_names_spec='${libname}${shared_ext}'
  dynamic_linker="$host_os ld.so"
  dynamic_linker="$host_os ld.so"
Line 2065... Line 2198...
  # the default ld.so.conf also contains /usr/contrib/lib and
  # the default ld.so.conf also contains /usr/contrib/lib and
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  # libtool to hard-code these into programs
  # libtool to hard-code these into programs
  ;;
  ;;
 
 
cygwin* | mingw* | pw32*)
cygwin* | mingw* | pw32* | cegcc*)
  version_type=windows
  version_type=windows
  shrext_cmds=".dll"
  shrext_cmds=".dll"
  need_version=no
  need_version=no
  need_lib_prefix=no
  need_lib_prefix=no
 
 
  case $withGCC,$host_os in
  case $GCC,$host_os in
  yes,cygwin* | yes,mingw* | yes,pw32*)
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
    library_names_spec='$libname.dll.a'
    library_names_spec='$libname.dll.a'
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    postinstall_cmds='base_file=`basename \${file}`~
    postinstall_cmds='base_file=`basename \${file}`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
      dldir=$destdir/`dirname \$dlpath`~
      dldir=$destdir/`dirname \$dlpath`~
Line 2095... Line 2228...
    cygwin*)
    cygwin*)
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
      ;;
      ;;
    mingw*)
    mingw* | cegcc*)
      # MinGW DLLs use traditional 'lib' prefix
      # MinGW DLLs use traditional 'lib' prefix
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
        # It is most probably a Windows format PATH printed by
        # It is most probably a Windows format PATH printed by
Line 2310... Line 2443...
linux*oldld* | linux*aout* | linux*coff*)
linux*oldld* | linux*aout* | linux*coff*)
  dynamic_linker=no
  dynamic_linker=no
  ;;
  ;;
 
 
# This must be Linux ELF.
# This must be Linux ELF.
linux* | k*bsd*-gnu)
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  version_type=linux
  version_type=linux
  need_lib_prefix=no
  need_lib_prefix=no
  need_version=no
  need_version=no
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  soname_spec='${libname}${release}${shared_ext}$major'
  soname_spec='${libname}${release}${shared_ext}$major'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  shlibpath_overrides_runpath=no
 
 
  # Some binutils ld are patched to set DT_RUNPATH
  # Some binutils ld are patched to set DT_RUNPATH
 
  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 
    [lt_cv_shlibpath_overrides_runpath=no
  save_LDFLAGS=$LDFLAGS
  save_LDFLAGS=$LDFLAGS
  save_libdir=$libdir
  save_libdir=$libdir
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"],
      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
       [shlibpath_overrides_runpath=yes])])
         [lt_cv_shlibpath_overrides_runpath=yes])])
  LDFLAGS=$save_LDFLAGS
  LDFLAGS=$save_LDFLAGS
  libdir=$save_libdir
  libdir=$save_libdir
 
    ])
 
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
 
  # This implies no fast_install, which is unacceptable.
  # This implies no fast_install, which is unacceptable.
  # Some rework will be needed to allow for fast_install
  # Some rework will be needed to allow for fast_install
  # before this can be enabled.
  # before this can be enabled.
  hardcode_into_libs=yes
  hardcode_into_libs=yes
 
 
  # Append ld.so.conf contents to the search path
  # Append ld.so.conf contents to the search path
  if test -f /etc/ld.so.conf; then
  if test -f /etc/ld.so.conf; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  fi
  fi
 
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # We used to test for /lib/ld.so.1 and disable shared libraries on
  # powerpc, because MkLinux only supported shared libraries with the
  # powerpc, because MkLinux only supported shared libraries with the
Line 2521... Line 2659...
tpf*)
tpf*)
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  version_type=linux
  version_type=linux
  need_lib_prefix=no
  need_lib_prefix=no
  need_version=no
  need_version=no
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_var=LD_LIBRARY_PATH
  shlibpath_overrides_runpath=no
  shlibpath_overrides_runpath=no
  hardcode_into_libs=yes
  hardcode_into_libs=yes
  ;;
  ;;
 
 
Line 2546... Line 2684...
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
if test "$GCC" = yes; then
if test "$GCC" = yes; then
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
fi
fi
 
 
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
fi
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
fi
 
 
_LT_DECL([], [variables_saved_for_relink], [1],
_LT_DECL([], [variables_saved_for_relink], [1],
    [Variables whose values should be saved in libtool wrapper scripts and
    [Variables whose values should be saved in libtool wrapper scripts and
    restored at link time])
    restored at link time])
_LT_DECL([], [need_lib_prefix], [0],
_LT_DECL([], [need_lib_prefix], [0],
    [Do we need the "lib" prefix for modules?])
    [Do we need the "lib" prefix for modules?])
Line 2815... Line 2960...
# ----------------------
# ----------------------
# how to check for library dependencies
# how to check for library dependencies
#  -- PORTME fill in with the dynamic library characteristics
#  -- PORTME fill in with the dynamic library characteristics
m4_defun([_LT_CHECK_MAGIC_METHOD],
m4_defun([_LT_CHECK_MAGIC_METHOD],
[m4_require([_LT_DECL_EGREP])
[m4_require([_LT_DECL_EGREP])
 
m4_require([_LT_DECL_OBJDUMP])
AC_CACHE_CHECK([how to recognize dependent libraries],
AC_CACHE_CHECK([how to recognize dependent libraries],
lt_cv_deplibs_check_method,
lt_cv_deplibs_check_method,
[lt_cv_file_magic_cmd='$MAGIC_CMD'
[lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
lt_cv_deplibs_check_method='unknown'
Line 2865... Line 3011...
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  fi
  ;;
  ;;
 
 
 
cegcc)
 
  # use the weaker test based on 'objdump'. See mingw*.
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
  ;;
 
 
darwin* | rhapsody*)
darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  lt_cv_deplibs_check_method=pass_all
  ;;
  ;;
 
 
freebsd* | dragonfly*)
freebsd* | dragonfly*)
Line 2923... Line 3075...
  esac
  esac
  lt_cv_deplibs_check_method=pass_all
  lt_cv_deplibs_check_method=pass_all
  ;;
  ;;
 
 
# This must be Linux ELF.
# This must be Linux ELF.
linux* | k*bsd*-gnu)
linux* | k*bsd*-gnu | kopensolaris*-gnu)
  lt_cv_deplibs_check_method=pass_all
  lt_cv_deplibs_check_method=pass_all
  ;;
  ;;
 
 
netbsd*)
netbsd*)
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Line 3017... Line 3169...
# LT_PATH_NM
# LT_PATH_NM
# ----------
# ----------
# find the pathname to a BSD- or MS-compatible name lister
# find the pathname to a BSD- or MS-compatible name lister
AC_DEFUN([LT_PATH_NM],
AC_DEFUN([LT_PATH_NM],
[AC_REQUIRE([AC_PROG_CC])dnl
[AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_OBJEXT])dnl
 
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
[if test -n "$NM"; then
[if test -n "$NM"; then
  # Let the user override the test.
  # Let the user override the test.
  lt_cv_path_NM="$NM"
  lt_cv_path_NM="$NM"
else
else
Line 3153... Line 3304...
# _LT_CMD_GLOBAL_SYMBOLS
# _LT_CMD_GLOBAL_SYMBOLS
# ----------------------
# ----------------------
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_OBJEXT])dnl
 
AC_REQUIRE([LT_PATH_NM])dnl
AC_REQUIRE([LT_PATH_NM])dnl
AC_REQUIRE([LT_PATH_LD])dnl
AC_REQUIRE([LT_PATH_LD])dnl
m4_require([_LT_DECL_SED])dnl
m4_require([_LT_DECL_SED])dnl
m4_require([_LT_DECL_EGREP])dnl
m4_require([_LT_DECL_EGREP])dnl
m4_require([_LT_TAG_COMPILER])dnl
m4_require([_LT_TAG_COMPILER])dnl
Line 3178... Line 3328...
# Define system-specific variables.
# Define system-specific variables.
case $host_os in
case $host_os in
aix*)
aix*)
  symcode='[[BCDT]]'
  symcode='[[BCDT]]'
  ;;
  ;;
cygwin* | mingw* | pw32*)
cygwin* | mingw* | pw32* | cegcc*)
  symcode='[[ABCDGISTW]]'
  symcode='[[ABCDGISTW]]'
  ;;
  ;;
hpux*)
hpux*)
  if test "$host_cpu" = ia64; then
  if test "$host_cpu" = ia64; then
    symcode='[[ABCDEGRST]]'
    symcode='[[ABCDEGRST]]'
Line 3222... Line 3372...
# so use this general approach.
# so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
 
# Transform an extracted symbol line into symbol name and symbol address
# Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
 
# Handle CRLF in mingw tool chain
# Handle CRLF in mingw tool chain
opt_cr=
opt_cr=
case $build_os in
case $build_os in
mingw*)
mingw*)
Line 3349... Line 3500...
    fi
    fi
  else
  else
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
    cat conftest.$ac_ext >&5
    cat conftest.$ac_ext >&5
  fi
  fi
  rm -f conftest* conftst*
  rm -rf conftest* conftst*
 
 
  # Do not use the global_symbol_pipe unless it works.
  # Do not use the global_symbol_pipe unless it works.
  if test "$pipe_works" = yes; then
  if test "$pipe_works" = yes; then
    break
    break
  else
  else
Line 3375... Line 3526...
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
    [Transform the output of nm in a proper C declaration])
    [Transform the output of nm in a proper C declaration])
_LT_DECL([global_symbol_to_c_name_address],
_LT_DECL([global_symbol_to_c_name_address],
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
    [Transform the output of nm in a C name address pair])
    [Transform the output of nm in a C name address pair])
 
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
    [Transform the output of nm in a C name address pair when lib prefix is needed])
]) # _LT_CMD_GLOBAL_SYMBOLS
]) # _LT_CMD_GLOBAL_SYMBOLS
 
 
 
 
# _LT_COMPILER_PIC([TAGNAME])
# _LT_COMPILER_PIC([TAGNAME])
# ---------------------------
# ---------------------------
Line 3401... Line 3555...
      if test "$host_cpu" = ia64; then
      if test "$host_cpu" = ia64; then
        # AIX 5 now supports IA64 processor
        # AIX 5 now supports IA64 processor
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
      fi
      fi
      ;;
      ;;
 
 
    amigaos*)
    amigaos*)
      if test "$host_cpu" = m68k; then
      case $host_cpu in
 
      powerpc)
 
            # see comment about AmigaOS4 .so support
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
        ;;
 
      m68k)
        # FIXME: we need at least 68020 code to build shared libraries, but
        # FIXME: we need at least 68020 code to build shared libraries, but
        # adding the `-m68020' flag to GCC prevents building anything better,
        # adding the `-m68020' flag to GCC prevents building anything better,
        # like `-m68040'.
        # like `-m68040'.
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
      fi
 
      ;;
      ;;
 
      esac
 
      ;;
 
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      # PIC is the default for these OSes.
      ;;
      ;;
    mingw* | cygwin* | os2* | pw32*)
    mingw* | cygwin* | os2* | pw32* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      # (--disable-auto-import) libraries
      m4_if([$1], [GCJ], [],
      m4_if([$1], [GCJ], [],
Line 3439... Line 3601...
      if test -d /usr/nec; then
      if test -d /usr/nec; then
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
      fi
      fi
      ;;
      ;;
    hpux*)
    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # not for PA HP-UX.
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      case $host_cpu in
      hppa*64*|ia64*)
      hppa*64*)
        ;;
        ;;
      *)
      *)
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
        ;;
        ;;
      esac
      esac
Line 3477... Line 3640...
          # Green Hills C++ Compiler
          # Green Hills C++ Compiler
          # _LT_TAGVAR(lt_prog_compiler_static, $1)="--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"
          # _LT_TAGVAR(lt_prog_compiler_static, $1)="--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"
          ;;
          ;;
        esac
        esac
        ;;
        ;;
      darwin*)
 
        # PIC is the default on this platform
 
        # Common symbols not allowed in MH_DYLIB files
 
        case $cc_basename in
 
          xlc*)
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
          ;;
 
        esac
 
        ;;
 
      dgux*)
      dgux*)
        case $cc_basename in
        case $cc_basename in
          ec++*)
          ec++*)
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
            ;;
            ;;
Line 3543... Line 3696...
            ;;
            ;;
          *)
          *)
            ;;
            ;;
        esac
        esac
        ;;
        ;;
      linux* | k*bsd*-gnu)
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
        case $cc_basename in
          KCC*)
          KCC*)
            # KAI C++ Compiler
            # KAI C++ Compiler
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
            ;;
            ;;
          icpc* | ecpc* )
          ecpc* )
            # Intel C++
            # old Intel C++ for x86_64 which still supported -KPIC.
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
            ;;
            ;;
          pgCC*)
          icpc* )
 
            # Intel C++, used to be incompatible with GCC.
 
            # ICC 10 doesn't accept -KPIC any more.
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
            ;;
 
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
            # Portland Group C++ compiler
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
            ;;
            ;;
Line 3569... Line 3729...
            # Make sure the PIC flag is empty.  It appears that all Alpha
            # Make sure the PIC flag is empty.  It appears that all Alpha
            # Linux and Compaq Tru64 Unix objects are PIC.
            # Linux and Compaq Tru64 Unix objects are PIC.
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
            ;;
            ;;
 
          xlc* | xlC*)
 
            # IBM XL 8.0 on PPC
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
            ;;
          *)
          *)
            case `$CC -V 2>&1 | sed 5q` in
            case `$CC -V 2>&1 | sed 5q` in
            *Sun\ C*)
            *Sun\ C*)
              # Sun C++ 5.9
              # Sun C++ 5.9
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Line 3697... Line 3863...
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
      fi
      fi
      ;;
      ;;
 
 
    amigaos*)
    amigaos*)
      if test "$host_cpu" = m68k; then
      case $host_cpu in
 
      powerpc)
 
            # see comment about AmigaOS4 .so support
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
        ;;
 
      m68k)
        # FIXME: we need at least 68020 code to build shared libraries, but
        # FIXME: we need at least 68020 code to build shared libraries, but
        # adding the `-m68020' flag to GCC prevents building anything better,
        # adding the `-m68020' flag to GCC prevents building anything better,
        # like `-m68040'.
        # like `-m68040'.
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
      fi
        ;;
 
      esac
      ;;
      ;;
 
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
      # PIC is the default for these OSes.
      # PIC is the default for these OSes.
      ;;
      ;;
 
 
    mingw* | cygwin* | pw32* | os2*)
    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # built for inclusion in a dll (and should export symbols for example).
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
      # (--disable-auto-import) libraries
      # (--disable-auto-import) libraries
      m4_if([$1], [GCJ], [],
      m4_if([$1], [GCJ], [],
Line 3725... Line 3897...
      # Common symbols not allowed in MH_DYLIB files
      # Common symbols not allowed in MH_DYLIB files
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
      ;;
      ;;
 
 
    hpux*)
    hpux*)
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
      # not for PA HP-UX.
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
      # sets the default TLS model and affects inlining.
      case $host_cpu in
      case $host_cpu in
      hppa*64*|ia64*)
      hppa*64*)
        # +Z the default
        # +Z the default
        ;;
        ;;
      *)
      *)
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
        ;;
        ;;
Line 3777... Line 3950...
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
      else
      else
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
      fi
      fi
      ;;
      ;;
    darwin*)
 
      # PIC is the default on this platform
 
      # Common symbols not allowed in MH_DYLIB files
 
      case $cc_basename in
 
      xlc*)
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
        ;;
 
      esac
 
      ;;
 
 
 
    mingw* | cygwin* | pw32* | os2*)
    mingw* | cygwin* | pw32* | os2* | cegcc*)
      # This hack is so that the source file can tell whether it is being
      # This hack is so that the source file can tell whether it is being
      # built for inclusion in a dll (and should export symbols for example).
      # built for inclusion in a dll (and should export symbols for example).
      m4_if([$1], [GCJ], [],
      m4_if([$1], [GCJ], [],
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
      ;;
      ;;
Line 3817... Line 3980...
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
      # PIC (with -KPIC) is the default.
      # PIC (with -KPIC) is the default.
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
      ;;
      ;;
 
 
    linux* | k*bsd*-gnu)
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
      case $cc_basename in
      case $cc_basename in
      icc* | ecc*)
      # old Intel for x86_64 which still supported -KPIC.
 
      ecc*)
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
        ;;
        ;;
 
      # icc used to be incompatible with GCC.
 
      # ICC 10 doesn't accept -KPIC any more.
 
      icc* | ifort*)
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
        ;;
 
      # Lahey Fortran 8.1.
 
      lf95*)
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
        ;;
      pgcc* | pgf77* | pgf90* | pgf95*)
      pgcc* | pgf77* | pgf90* | pgf95*)
        # Portland Group compilers (*not* the Pentium gcc compiler,
        # Portland Group compilers (*not* the Pentium gcc compiler,
        # which looks to be a dead project)
        # which looks to be a dead project)
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
Line 3836... Line 4013...
      ccc*)
      ccc*)
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        # All Alpha code is PIC.
        # All Alpha code is PIC.
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
        ;;
        ;;
 
      xl*)
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
        ;;
      *)
      *)
        case `$CC -V 2>&1 | sed 5q` in
        case `$CC -V 2>&1 | sed 5q` in
        *Sun\ C*)
        *Sun\ C*)
          # Sun C 5.9
          # Sun C 5.9
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
Line 3946... Line 4129...
#
#
# Check to make sure the PIC flag actually works.
# Check to make sure the PIC flag actually works.
#
#
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
    [_LT_TAGVAR(lt_prog_compiler_pic_works, $1)],
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
     "" | " "*) ;;
     "" | " "*) ;;
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
     esac],
     esac],
Line 3963... Line 4146...
#
#
# Check to make sure the static flag actually works.
# Check to make sure the static flag actually works.
#
#
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  _LT_TAGVAR(lt_prog_compiler_static_works, $1),
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  $lt_tmp_static_flag,
  $lt_tmp_static_flag,
  [],
  [],
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
        [Compiler flag to prevent dynamic linking])
        [Compiler flag to prevent dynamic linking])
Line 3999... Line 4182...
    fi
    fi
    ;;
    ;;
  pw32*)
  pw32*)
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  ;;
  ;;
  cygwin* | mingw*)
  cygwin* | mingw* | cegcc*)
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  ;;
  *)
  *)
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  ;;
  ;;
  esac
  esac
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
], [
], [
  runpath_var=
  runpath_var=
  _LT_TAGVAR(allow_undefined_flag, $1)=
  _LT_TAGVAR(allow_undefined_flag, $1)=
  _LT_TAGVAR(always_export_symbols, $1)=no
  _LT_TAGVAR(always_export_symbols, $1)=no
  _LT_TAGVAR(archive_cmds, $1)=
  _LT_TAGVAR(archive_cmds, $1)=
Line 4039... Line 4223...
  _LT_TAGVAR(include_expsyms, $1)=
  _LT_TAGVAR(include_expsyms, $1)=
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # exclude_expsyms can be an extended regexp of symbols to exclude
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  # as well as any symbol that contains `d'.
  # as well as any symbol that contains `d'.
  _LT_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # platforms (ab)use it in PIC code, but their linkers get confused if
  # the symbol is explicitly referenced.  Since portable code cannot
  # the symbol is explicitly referenced.  Since portable code cannot
  # rely on this symbol name, it's probably fine to never include it in
  # rely on this symbol name, it's probably fine to never include it in
  # preloaded symbol tables.
  # preloaded symbol tables.
 
  # Exclude shared library initialization/finalization symbols.
 
dnl Note also adjust exclude_expsyms for C++ above.
  extract_expsyms_cmds=
  extract_expsyms_cmds=
 
 
  case $host_os in
  case $host_os in
  cygwin* | mingw* | pw32*)
  cygwin* | mingw* | pw32* | cegcc*)
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    # When not using gcc, we currently assume that we are using
    # When not using gcc, we currently assume that we are using
    # Microsoft Visual C++.
    # Microsoft Visual C++.
    if test "$GCC" != yes; then
    if test "$GCC" != yes; then
      with_gnu_ld=no
      with_gnu_ld=no
Line 4110... Line 4296...
_LT_EOF
_LT_EOF
      fi
      fi
      ;;
      ;;
 
 
    amigaos*)
    amigaos*)
      if test "$host_cpu" = m68k; then
      case $host_cpu in
 
      powerpc)
 
            # see comment about AmigaOS4 .so support
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
        ;;
 
      m68k)
        _LT_TAGVAR(archive_cmds, $1)='$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)'
        _LT_TAGVAR(archive_cmds, $1)='$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)'
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
      fi
        ;;
 
      esac
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
      # to version 4, is to share data among multiple programs linked
 
      # with the same dynamic library.  Since this doesn't match the
 
      # behavior of shared libraries on other platforms, we can't use
 
      # them.
 
      _LT_TAGVAR(ld_shlibs, $1)=no
 
      ;;
      ;;
 
 
    beos*)
    beos*)
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
Line 4136... Line 4321...
      else
      else
        _LT_TAGVAR(ld_shlibs, $1)=no
        _LT_TAGVAR(ld_shlibs, $1)=no
      fi
      fi
      ;;
      ;;
 
 
    cygwin* | mingw* | pw32*)
    cygwin* | mingw* | pw32* | cegcc*)
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
      # as there is no search path for DLLs.
      # as there is no search path for DLLs.
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
      _LT_TAGVAR(always_export_symbols, $1)=no
      _LT_TAGVAR(always_export_symbols, $1)=no
Line 4176... Line 4361...
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
      ;;
      ;;
 
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
      tmp_diet=no
      tmp_diet=no
      if test "$host_os" = linux-dietlibc; then
      if test "$host_os" = linux-dietlibc; then
        case $cc_basename in
        case $cc_basename in
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
        esac
        esac
      fi
      fi
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
         && test "$tmp_diet" = no
         && test "$tmp_diet" = no
      then
      then
        tmp_addflag=
        tmp_addflag=
 
        tmp_sharedflag='-shared'
        case $cc_basename,$host_cpu in
        case $cc_basename,$host_cpu in
        pgcc*)                          # Portland Group C compiler
        pgcc*)                          # Portland Group C compiler
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
          tmp_addflag=' $pic_flag'
          tmp_addflag=' $pic_flag'
          ;;
          ;;
Line 4201... Line 4387...
          tmp_addflag=' -i_dynamic' ;;
          tmp_addflag=' -i_dynamic' ;;
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
          tmp_addflag=' -i_dynamic -nofor_main' ;;
          tmp_addflag=' -i_dynamic -nofor_main' ;;
        ifc* | ifort*)                  # Intel Fortran compiler
        ifc* | ifort*)                  # Intel Fortran compiler
          tmp_addflag=' -nofor_main' ;;
          tmp_addflag=' -nofor_main' ;;
 
        lf95*)                          # Lahey Fortran 8.1
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
          tmp_sharedflag='--shared' ;;
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
          tmp_sharedflag='-qmkshrobj'
 
          tmp_addflag= ;;
        esac
        esac
        case `$CC -V 2>&1 | sed 5q` in
        case `$CC -V 2>&1 | sed 5q` in
        *Sun\ C*)                       # Sun C 5.9
        *Sun\ C*)                       # Sun C 5.9
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
          _LT_TAGVAR(compiler_needs_object, $1)=yes
          _LT_TAGVAR(compiler_needs_object, $1)=yes
          tmp_sharedflag='-G' ;;
          tmp_sharedflag='-G' ;;
        *Sun\ F*)                       # Sun Fortran 8.3
        *Sun\ F*)                       # Sun Fortran 8.3
          tmp_sharedflag='-G' ;;
          tmp_sharedflag='-G' ;;
        *)
 
          tmp_sharedflag='-shared' ;;
 
        esac
        esac
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
 
        if test "x$supports_anon_versioning" = xyes; then
        if test "x$supports_anon_versioning" = xyes; then
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            echo "local: *; };" >> $output_objdir/$libname.ver~
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
        fi
        fi
 
 
 
        case $cc_basename in
 
        xlf*)
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
          if test "x$supports_anon_versioning" = xyes; then
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
          fi
 
          ;;
 
        esac
      else
      else
        _LT_TAGVAR(ld_shlibs, $1)=no
        _LT_TAGVAR(ld_shlibs, $1)=no
      fi
      fi
      ;;
      ;;
 
 
Line 4415... Line 4621...
            shared_flag='${wl}-bM:SRE'
            shared_flag='${wl}-bM:SRE'
          fi
          fi
        fi
        fi
      fi
      fi
 
 
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
      # It seems that -bexpall does not export symbols beginning with
      # It seems that -bexpall does not export symbols beginning with
      # underscore (_), so it is better to generate a list of symbols to export.
      # underscore (_), so it is better to generate a list of symbols to export.
      _LT_TAGVAR(always_export_symbols, $1)=yes
      _LT_TAGVAR(always_export_symbols, $1)=yes
      if test "$aix_use_runtimelinking" = yes; then
      if test "$aix_use_runtimelinking" = yes; then
        # Warning - without using the other runtime loading flags (-brtl),
        # Warning - without using the other runtime loading flags (-brtl),
Line 4451... Line 4658...
        fi
        fi
      fi
      fi
      ;;
      ;;
 
 
    amigaos*)
    amigaos*)
      if test "$host_cpu" = m68k; then
      case $host_cpu in
 
      powerpc)
 
            # see comment about AmigaOS4 .so support
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
        ;;
 
      m68k)
        _LT_TAGVAR(archive_cmds, $1)='$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)'
        _LT_TAGVAR(archive_cmds, $1)='$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)'
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
      fi
        ;;
      # see comment about different semantics on the GNU ld section
      esac
      _LT_TAGVAR(ld_shlibs, $1)=no
 
      ;;
      ;;
 
 
    bsdi[[45]]*)
    bsdi[[45]]*)
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
      ;;
      ;;
 
 
    cygwin* | mingw* | pw32*)
    cygwin* | mingw* | pw32* | cegcc*)
      # When not using gcc, we currently assume that we are using
      # When not using gcc, we currently assume that we are using
      # Microsoft Visual C++.
      # Microsoft Visual C++.
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # hardcode_libdir_flag_spec is actually meaningless, as there is
      # no search path for DLLs.
      # no search path for DLLs.
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
Line 4486... Line 4698...
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
      ;;
      ;;
 
 
    darwin* | rhapsody*)
    darwin* | rhapsody*)
      case $host_os in
      _LT_DARWIN_LINKER_FEATURES($1)
      rhapsody* | darwin1.[[012]])
 
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
        ;;
 
      *) # Darwin 1.3 on
 
        case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
 
        10.[[012]])
 
          _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
          ;;
 
        10.*)
 
          _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
          ;;
 
        esac
 
        ;;
 
      esac
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
      _LT_TAGVAR(hardcode_direct, $1)=no
 
      _LT_TAGVAR(hardcode_automatic, $1)=yes
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
      if test "$GCC" = yes ; then
 
        AC_CACHE_VAL([lt_cv_apple_cc_single_mod],
 
        [lt_cv_apple_cc_single_mod=no
 
        if test -z "${LT_MULTI_MODULE}"; then
 
          # By default we will add the -single_module flag. You can override
 
          # by either setting the environment variable LT_MULTI_MODULE
 
          # non-empty at configure time, or by adding -multi-module to the
 
          # link flags.
 
          echo "int foo(void){return 1;}" > conftest.c
 
          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
              -dynamiclib ${wl}-single_module conftest.c
 
          if test -f libconftest.dylib; then
 
              lt_cv_apple_cc_single_mod=yes
 
              rm libconftest.dylib
 
          fi
 
          rm conftest.$ac_ext
 
        fi])
 
        output_verbose_link_cmd=echo
 
        if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
        else
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
        fi
 
        _LT_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
        _LT_TAGVAR(module_expsym_cmds, $1)='sed -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}'
 
      else
 
        case $cc_basename in
 
        xlc*)
 
          output_verbose_link_cmd=echo
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
 
          _LT_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='sed "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}'
 
          _LT_TAGVAR(module_expsym_cmds, $1)='sed "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}'
 
          ;;
 
        *)
 
          _LT_TAGVAR(ld_shlibs, $1)=no
 
          ;;
 
        esac
 
      fi
 
      ;;
      ;;
 
 
    dgux*)
    dgux*)
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Line 4630... Line 4780...
        case $host_cpu in
        case $host_cpu in
        hppa*64*)
        hppa*64*)
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
          ;;
          ;;
        ia64*)
        ia64*)
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
          ;;
          ;;
        *)
        *)
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
          ;;
          ;;
        esac
        esac
Line 4717... Line 4867...
 
 
    *nto* | *qnx*)
    *nto* | *qnx*)
      ;;
      ;;
 
 
    openbsd*)
    openbsd*)
 
      if test -f /usr/libexec/ld.so; then
      _LT_TAGVAR(hardcode_direct, $1)=yes
      _LT_TAGVAR(hardcode_direct, $1)=yes
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Line 4737... Line 4888...
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
          ;;
          ;;
        esac
        esac
      fi
      fi
 
      else
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
      fi
      ;;
      ;;
 
 
    os2*)
    os2*)
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
Line 4960... Line 5114...
      ;;
      ;;
    '$CC '*)
    '$CC '*)
      # Test whether the compiler implicitly links with -lc since on some
      # Test whether the compiler implicitly links with -lc since on some
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
      # to ld, don't add -lc before -lgcc.
      # to ld, don't add -lc before -lgcc.
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
      $RM conftest*
        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 
        [$RM conftest*
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
        soname=conftest
        soname=conftest
        lib=conftest
        lib=conftest
Line 4980... Line 5135...
        libname=conftest
        libname=conftest
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
        _LT_TAGVAR(allow_undefined_flag, $1)=
        _LT_TAGVAR(allow_undefined_flag, $1)=
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
        then
        then
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
        else
        else
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
        fi
        fi
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
      else
      else
        cat conftest.err 1>&5
        cat conftest.err 1>&5
      fi
      fi
      $RM conftest*
      $RM conftest*
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
        ])
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
      ;;
      ;;
    esac
    esac
  fi
  fi
  ;;
  ;;
esac
esac
Line 5411... Line 5567...
              shared_flag='${wl}-bM:SRE'
              shared_flag='${wl}-bM:SRE'
            fi
            fi
          fi
          fi
        fi
        fi
 
 
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
        # It seems that -bexpall does not export symbols beginning with
        # It seems that -bexpall does not export symbols beginning with
        # underscore (_), so it is better to generate a list of symbols to
        # underscore (_), so it is better to generate a list of symbols to
        # export.
        # export.
        _LT_TAGVAR(always_export_symbols, $1)=yes
        _LT_TAGVAR(always_export_symbols, $1)=yes
        if test "$aix_use_runtimelinking" = yes; then
        if test "$aix_use_runtimelinking" = yes; then
Line 5469... Line 5626...
          _LT_TAGVAR(ld_shlibs, $1)=no
          _LT_TAGVAR(ld_shlibs, $1)=no
          ;;
          ;;
        esac
        esac
        ;;
        ;;
 
 
      cygwin* | mingw* | pw32*)
      cygwin* | mingw* | pw32* | cegcc*)
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
        # as there is no search path for DLLs.
        # as there is no search path for DLLs.
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
        _LT_TAGVAR(always_export_symbols, $1)=no
        _LT_TAGVAR(always_export_symbols, $1)=no
Line 5493... Line 5650...
        else
        else
          _LT_TAGVAR(ld_shlibs, $1)=no
          _LT_TAGVAR(ld_shlibs, $1)=no
        fi
        fi
        ;;
        ;;
      darwin* | rhapsody*)
      darwin* | rhapsody*)
        case $host_os in
        _LT_DARWIN_LINKER_FEATURES($1)
          rhapsody* | darwin1.[[012]])
 
            _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
            ;;
 
          *) # Darwin 1.3 on
 
            case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
 
              10.[[012]])
 
                _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
                ;;
 
              10.*)
 
                _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
                ;;
 
            esac
 
            ;;
 
        esac
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
        _LT_TAGVAR(hardcode_direct, $1)=no
 
        _LT_TAGVAR(hardcode_automatic, $1)=yes
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
        _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
 
 
        if test "$GXX" = yes ; then
 
          AC_CACHE_VAL([lt_cv_apple_cc_single_mod],
 
          [lt_cv_apple_cc_single_mod=no
 
          if test -z "${LT_MULTI_MODULE}"; then
 
            # By default we will add the -single_module flag. You can override
 
            # by either setting the environment variable LT_MULTI_MODULE
 
            # non-empty at configure time, or by adding -multi-module to the
 
            # link flags.
 
            echo "int foo(void){return 1;}" > conftest.c
 
            $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
                -dynamiclib ${wl}-single_module conftest.c
 
            if test -f libconftest.dylib; then
 
                lt_cv_apple_cc_single_mod=yes
 
                rm libconftest.dylib
 
            fi
 
            rm conftest.$ac_ext
 
          fi])
 
          output_verbose_link_cmd=echo
 
          if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
 
           _LT_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='sed "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}'
 
          else
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
          fi
 
          _LT_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
          _LT_TAGVAR(module_expsym_cmds, $1)='sed "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}'
 
        else
 
          case $cc_basename in
 
            xlc*)
 
              output_verbose_link_cmd=echo
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
 
              _LT_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
              # Don't fix this by using the ld -exported_symbols_list flag,
 
              # it doesn't exist in older darwin lds
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
              _LT_TAGVAR(module_expsym_cmds, $1)='sed "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}'
 
              ;;
 
            *)
 
              _LT_TAGVAR(ld_shlibs, $1)=no
 
              ;;
 
          esac
 
        fi
 
        ;;
        ;;
 
 
      dgux*)
      dgux*)
        case $cc_basename in
        case $cc_basename in
          ec++*)
          ec++*)
Line 5753... Line 5846...
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
        _LT_TAGVAR(inherit_rpath, $1)=yes
        _LT_TAGVAR(inherit_rpath, $1)=yes
        ;;
        ;;
 
 
      linux* | k*bsd*-gnu)
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
        case $cc_basename in
        case $cc_basename in
          KCC*)
          KCC*)
            # Kuck and Associates, Inc. (KAI) C++ Compiler
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
 
            # KCC will only create a shared library if the output file
            # KCC will only create a shared library if the output file
Line 5805... Line 5898...
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
            ;;
            ;;
          pgCC*)
          pgCC* | pgcpp*)
            # Portland Group C++ compiler
            # Portland Group C++ compiler
            case `$CC -V` in
            case `$CC -V` in
            *pgCC\ [[1-5]]*)
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
                rm -rf $tpldir~
                rm -rf $tpldir~
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
Line 5856... Line 5949...
            # explicitly linking system object files so we need to strip them
            # explicitly linking system object files so we need to strip them
            # from the output so that they don't get included in the library
            # from the output so that they don't get included in the library
            # dependencies.
            # dependencies.
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
            ;;
            ;;
 
          xl*)
 
            # IBM XL 8.0 on PPC, with GNU ld
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
            if test "x$supports_anon_versioning" = xyes; then
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
            fi
 
            ;;
          *)
          *)
            case `$CC -V 2>&1 | sed 5q` in
            case `$CC -V 2>&1 | sed 5q` in
            *Sun\ C*)
            *Sun\ C*)
              # Sun C++ 5.9
              # Sun C++ 5.9
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
Line 5928... Line 6033...
        # C++ shared libraries are fairly broken
        # C++ shared libraries are fairly broken
        _LT_TAGVAR(ld_shlibs, $1)=no
        _LT_TAGVAR(ld_shlibs, $1)=no
        ;;
        ;;
 
 
      openbsd*)
      openbsd*)
 
        if test -f /usr/libexec/ld.so; then
        _LT_TAGVAR(hardcode_direct, $1)=yes
        _LT_TAGVAR(hardcode_direct, $1)=yes
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
Line 5939... Line 6045...
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
        fi
        fi
        output_verbose_link_cmd=echo
        output_verbose_link_cmd=echo
 
        else
 
          _LT_TAGVAR(ld_shlibs, $1)=no
 
        fi
        ;;
        ;;
 
 
      osf3* | osf4* | osf5*)
      osf3* | osf4* | osf5*)
        case $cc_basename in
        case $cc_basename in
          KCC*)
          KCC*)
Line 6300... Line 6409...
 
 
  # Sentinel used to keep track of whether or not we are before
  # Sentinel used to keep track of whether or not we are before
  # the conftest object file.
  # the conftest object file.
  pre_test_object_deps_done=no
  pre_test_object_deps_done=no
 
 
  # The `*' in the case matches for architectures that use `case' in
  for p in `eval "$output_verbose_link_cmd"`; do
  # $output_verbose_cmd can trigger glob expansion during the loop
 
  # eval without this substitution.
 
  output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
 
 
  for p in `eval $output_verbose_link_cmd`; do
 
    case $p in
    case $p in
 
 
    -L* | -R* | -l*)
    -L* | -R* | -l*)
       # Some compilers place space between "-{L,R}" and the path.
       # Some compilers place space between "-{L,R}" and the path.
       # Remove the space.
       # Remove the space.
Line 6440... Line 6544...
])
])
 
 
case " $_LT_TAGVAR(postdeps, $1) " in
case " $_LT_TAGVAR(postdeps, $1) " in
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
esac
esac
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
fi
 
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
    [The directories searched by this compiler when creating a shared library])
_LT_TAGDECL([], [predep_objects], [1],
_LT_TAGDECL([], [predep_objects], [1],
    [Dependencies to place before and after the objects being linked to
    [Dependencies to place before and after the objects being linked to
    create a shared library])
    create a shared library])
_LT_TAGDECL([], [postdep_objects], [1])
_LT_TAGDECL([], [postdep_objects], [1])
_LT_TAGDECL([], [predeps], [1])
_LT_TAGDECL([], [predeps], [1])
Line 6534... Line 6644...
  _LT_COMPILER_BOILERPLATE
  _LT_COMPILER_BOILERPLATE
  _LT_LINKER_BOILERPLATE
  _LT_LINKER_BOILERPLATE
 
 
  # Allow CC to be a program name with arguments.
  # Allow CC to be a program name with arguments.
  lt_save_CC="$CC"
  lt_save_CC="$CC"
 
  lt_save_GCC=$GCC
  CC=${F77-"f77"}
  CC=${F77-"f77"}
  compiler=$CC
  compiler=$CC
  _LT_TAGVAR(compiler, $1)=$CC
  _LT_TAGVAR(compiler, $1)=$CC
  _LT_CC_BASENAME([$compiler])
  _LT_CC_BASENAME([$compiler])
 
  GCC=$G77
  if test -n "$compiler"; then
  if test -n "$compiler"; then
    AC_MSG_CHECKING([if libtool supports shared libraries])
    AC_MSG_CHECKING([if libtool supports shared libraries])
    AC_MSG_RESULT([$can_build_shared])
    AC_MSG_RESULT([$can_build_shared])
 
 
    AC_MSG_CHECKING([whether to build shared libraries])
    AC_MSG_CHECKING([whether to build shared libraries])
Line 6586... Line 6697...
    _LT_LINKER_HARDCODE_LIBPATH($1)
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
 
    _LT_CONFIG($1)
    _LT_CONFIG($1)
  fi # test -n "$compiler"
  fi # test -n "$compiler"
 
 
 
  GCC=$lt_save_GCC
  CC="$lt_save_CC"
  CC="$lt_save_CC"
fi # test "$_lt_disable_F77" != yes
fi # test "$_lt_disable_F77" != yes
 
 
AC_LANG_POP
AC_LANG_POP
])# _LT_LANG_F77_CONFIG
])# _LT_LANG_F77_CONFIG
Line 6675... Line 6787...
  _LT_COMPILER_BOILERPLATE
  _LT_COMPILER_BOILERPLATE
  _LT_LINKER_BOILERPLATE
  _LT_LINKER_BOILERPLATE
 
 
  # Allow CC to be a program name with arguments.
  # Allow CC to be a program name with arguments.
  lt_save_CC="$CC"
  lt_save_CC="$CC"
 
  lt_save_GCC=$GCC
  CC=${FC-"f95"}
  CC=${FC-"f95"}
  compiler=$CC
  compiler=$CC
 
  GCC=$ac_cv_fc_compiler_gnu
 
 
  _LT_TAGVAR(compiler, $1)=$CC
  _LT_TAGVAR(compiler, $1)=$CC
  _LT_CC_BASENAME([$compiler])
  _LT_CC_BASENAME([$compiler])
 
 
  if test -n "$compiler"; then
  if test -n "$compiler"; then
    AC_MSG_CHECKING([if libtool supports shared libraries])
    AC_MSG_CHECKING([if libtool supports shared libraries])
Line 6728... Line 6843...
    _LT_LINKER_HARDCODE_LIBPATH($1)
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
 
    _LT_CONFIG($1)
    _LT_CONFIG($1)
  fi # test -n "$compiler"
  fi # test -n "$compiler"
 
 
 
  GCC=$lt_save_GCC
  CC="$lt_save_CC"
  CC="$lt_save_CC"
fi # test "$_lt_disable_FC" != yes
fi # test "$_lt_disable_FC" != yes
 
 
AC_LANG_POP
AC_LANG_POP
])# _LT_LANG_FC_CONFIG
])# _LT_LANG_FC_CONFIG
Line 6766... Line 6882...
_LT_COMPILER_BOILERPLATE
_LT_COMPILER_BOILERPLATE
_LT_LINKER_BOILERPLATE
_LT_LINKER_BOILERPLATE
 
 
# Allow CC to be a program name with arguments.
# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
lt_save_CC="$CC"
 
lt_save_GCC=$GCC
 
GCC=yes
CC=${GCJ-"gcj"}
CC=${GCJ-"gcj"}
compiler=$CC
compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC
_LT_TAGVAR(compiler, $1)=$CC
 
_LT_TAGVAR(LD, $1)="$LD"
_LT_CC_BASENAME([$compiler])
_LT_CC_BASENAME([$compiler])
 
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
# GCJ did not exist at the time GCC didn't implicitly link libc in.
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
 
Line 6786... Line 6905...
  _LT_COMPILER_NO_RTTI($1)
  _LT_COMPILER_NO_RTTI($1)
  _LT_COMPILER_PIC($1)
  _LT_COMPILER_PIC($1)
  _LT_COMPILER_C_O($1)
  _LT_COMPILER_C_O($1)
  _LT_COMPILER_FILE_LOCKS($1)
  _LT_COMPILER_FILE_LOCKS($1)
  _LT_LINKER_SHLIBS($1)
  _LT_LINKER_SHLIBS($1)
  _LT_SYS_DYNAMIC_LINKER($1)
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
 
  _LT_CONFIG($1)
  _LT_CONFIG($1)
fi
fi
 
 
AC_LANG_RESTORE
AC_LANG_RESTORE
 
 
 
GCC=$lt_save_GCC
CC="$lt_save_CC"
CC="$lt_save_CC"
])# _LT_LANG_GCJ_CONFIG
])# _LT_LANG_GCJ_CONFIG
 
 
 
 
# _LT_LANG_RC_CONFIG([TAG])
# _LT_LANG_RC_CONFIG([TAG])
Line 6828... Line 6948...
_LT_COMPILER_BOILERPLATE
_LT_COMPILER_BOILERPLATE
_LT_LINKER_BOILERPLATE
_LT_LINKER_BOILERPLATE
 
 
# Allow CC to be a program name with arguments.
# Allow CC to be a program name with arguments.
lt_save_CC="$CC"
lt_save_CC="$CC"
 
lt_save_GCC=$GCC
 
GCC=
CC=${RC-"windres"}
CC=${RC-"windres"}
compiler=$CC
compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC
_LT_TAGVAR(compiler, $1)=$CC
_LT_CC_BASENAME([$compiler])
_LT_CC_BASENAME([$compiler])
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
Line 6839... Line 6961...
if test -n "$compiler"; then
if test -n "$compiler"; then
  :
  :
  _LT_CONFIG($1)
  _LT_CONFIG($1)
fi
fi
 
 
 
GCC=$lt_save_GCC
AC_LANG_RESTORE
AC_LANG_RESTORE
CC="$lt_save_CC"
CC="$lt_save_CC"
])# _LT_LANG_RC_CONFIG
])# _LT_LANG_RC_CONFIG
 
 
 
 
Line 6888... Line 7011...
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
AC_SUBST([GREP])
AC_SUBST([GREP])
])
])
 
 
 
 
 
# _LT_DECL_OBJDUMP
 
# --------------
 
# If we don't have a new enough Autoconf to choose the best objdump
 
# available, choose the one first in the user's PATH.
 
m4_defun([_LT_DECL_OBJDUMP],
 
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
test -z "$OBJDUMP" && OBJDUMP=objdump
 
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
AC_SUBST([OBJDUMP])
 
])
 
 
 
 
# _LT_DECL_SED
# _LT_DECL_SED
# ------------
# ------------
# Check for a fully-functional sed program, that truncates
# Check for a fully-functional sed program, that truncates
# as few characters as possible.  Prefer GNU sed if found.
# as few characters as possible.  Prefer GNU sed if found.
m4_defun([_LT_DECL_SED],
m4_defun([_LT_DECL_SED],
Line 6981... Line 7116...
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
# Try some XSI features
# Try some XSI features
xsi_shell=no
xsi_shell=no
( _lt_dummy="a/b/c"
( _lt_dummy="a/b/c"
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
      = c,a/b,, ) >/dev/null 2>&1 \
      = c,a/b,, \
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  && xsi_shell=yes
  && xsi_shell=yes
AC_MSG_RESULT([$xsi_shell])
AC_MSG_RESULT([$xsi_shell])
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
 
AC_MSG_CHECKING([whether the shell understands "+="])
AC_MSG_CHECKING([whether the shell understands "+="])
Line 7025... Line 7162...
# Bourne and XSI compatible variants of some useful shell functions.
# Bourne and XSI compatible variants of some useful shell functions.
m4_defun([_LT_PROG_XSI_SHELLFNS],
m4_defun([_LT_PROG_XSI_SHELLFNS],
[case $xsi_shell in
[case $xsi_shell in
  yes)
  yes)
    cat << \_LT_EOF >> "$cfgfile"
    cat << \_LT_EOF >> "$cfgfile"
 
 
# func_dirname file append nondir_replacement
# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
func_dirname ()
{
{
Line 7042... Line 7180...
func_basename ()
func_basename ()
{
{
  func_basename_result="${1##*/}"
  func_basename_result="${1##*/}"
}
}
 
 
 
# func_dirname_and_basename file append nondir_replacement
 
# perform func_basename and func_dirname in a single function
 
# call:
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
#             add APPEND to the result, otherwise set result
 
#             to NONDIR_REPLACEMENT.
 
#             value returned in "$func_dirname_result"
 
#   basename: Compute filename of FILE.
 
#             value retuned in "$func_basename_result"
 
# Implementation must be kept synchronized with func_dirname
 
# and func_basename. For efficiency, we do not delegate to
 
# those functions but instead duplicate the functionality here.
 
func_dirname_and_basename ()
 
{
 
  case ${1} in
 
    */*) func_dirname_result="${1%/*}${2}" ;;
 
    *  ) func_dirname_result="${3}" ;;
 
  esac
 
  func_basename_result="${1##*/}"
 
}
 
 
# func_stripname prefix suffix name
# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
# dot (in which case that matches only a dot).
Line 7071... Line 7230...
  case ${1} in
  case ${1} in
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    *)    func_lo2o_result=${1} ;;
    *)    func_lo2o_result=${1} ;;
  esac
  esac
}
}
 
 
 
# func_xform libobj-or-source
 
func_xform ()
 
{
 
  func_xform_result=${1%.*}.lo
 
}
 
 
 
# func_arith arithmetic-term...
 
func_arith ()
 
{
 
  func_arith_result=$(( $[*] ))
 
}
 
 
 
# func_len string
 
# STRING may not start with a hyphen.
 
func_len ()
 
{
 
  func_len_result=${#1}
 
}
 
 
_LT_EOF
_LT_EOF
    ;;
    ;;
  *) # Bourne compatible functions.
  *) # Bourne compatible functions.
    cat << \_LT_EOF >> "$cfgfile"
    cat << \_LT_EOF >> "$cfgfile"
 
 
# func_dirname file append nondir_replacement
# func_dirname file append nondir_replacement
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
# otherwise set result to NONDIR_REPLACEMENT.
# otherwise set result to NONDIR_REPLACEMENT.
func_dirname ()
func_dirname ()
{
{
Line 7095... Line 7275...
func_basename ()
func_basename ()
{
{
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
}
}
 
 
 
dnl func_dirname_and_basename
 
dnl A portable version of this function is already defined in general.m4sh
 
dnl so there is no need for it here.
 
 
# func_stripname prefix suffix name
# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
# dot (in which case that matches only a dot).
Line 7127... Line 7311...
# func_lo2o object
# func_lo2o object
func_lo2o ()
func_lo2o ()
{
{
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
}
}
 
 
 
# func_xform libobj-or-source
 
func_xform ()
 
{
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
}
 
 
 
# func_arith arithmetic-term...
 
func_arith ()
 
{
 
  func_arith_result=`expr "$[@]"`
 
}
 
 
 
# func_len string
 
# STRING may not start with a hyphen.
 
func_len ()
 
{
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
}
 
 
_LT_EOF
_LT_EOF
esac
esac
 
 
case $lt_shell_append in
case $lt_shell_append in
  yes)
  yes)
Line 7151... Line 7355...
# Append VALUE to the end of shell variable VAR.
# Append VALUE to the end of shell variable VAR.
func_append ()
func_append ()
{
{
  eval "$[1]=\$$[1]\$[2]"
  eval "$[1]=\$$[1]\$[2]"
}
}
 
 
_LT_EOF
_LT_EOF
    ;;
    ;;
  esac
  esac
])
])
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.