aclocal.m4   aclocal.m4 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
# Inc.
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. # PARTICULAR PURPOSE.
m4_ifndef([AC_AUTOCONF_VERSION], m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
[m4_warning([this file was generated for autoconf 2.65. [m4_warning([this file was generated for autoconf 2.68.
You have another version of autoconf. It may work, but is not guaranteed t o. You have another version of autoconf. It may work, but is not guaranteed t o.
If you have problems, you may need to regenerate the build system entirely. If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically `autorecon f'.])]) To do so, use the procedure documented by the package, typically `autorecon f'.])])
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundatio # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
n, Inc. # Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 1
# AM_AUTOMAKE_VERSION(VERSION) # AM_AUTOMAKE_VERSION(VERSION)
# ---------------------------- # ----------------------------
# Automake X.Y traces this macro to ensure aclocal.m4 has been # Automake X.Y traces this macro to ensure aclocal.m4 has been
# generated from the m4 files accompanying Automake X.Y. # generated from the m4 files accompanying Automake X.Y.
# (This private macro should not be called outside this file.) # (This private macro should not be called outside this file.)
AC_DEFUN([AM_AUTOMAKE_VERSION], AC_DEFUN([AM_AUTOMAKE_VERSION],
[am__api_version='1.11' [am__api_version='1.11'
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
dnl require some minimum version. Point them to the right macro. dnl require some minimum version. Point them to the right macro.
m4_if([$1], [1.11.1], [], m4_if([$1], [1.11.3], [],
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
]) ])
# _AM_AUTOCONF_VERSION(VERSION) # _AM_AUTOCONF_VERSION(VERSION)
# ----------------------------- # -----------------------------
# aclocal traces this macro to find the Autoconf version. # aclocal traces this macro to find the Autoconf version.
# This is a private macro too. Using m4_define simplifies # This is a private macro too. Using m4_define simplifies
# the logic in aclocal, which can simply ignore this definition. # the logic in aclocal, which can simply ignore this definition.
m4_define([_AM_AUTOCONF_VERSION], []) m4_define([_AM_AUTOCONF_VERSION], [])
# AM_SET_CURRENT_AUTOMAKE_VERSION # AM_SET_CURRENT_AUTOMAKE_VERSION
# ------------------------------- # -------------------------------
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
[AM_AUTOMAKE_VERSION([1.11.1])dnl [AM_AUTOMAKE_VERSION([1.11.3])dnl
m4_ifndef([AC_AUTOCONF_VERSION], m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
# AM_AUX_DIR_EXPAND -*- Autoconf -* - # AM_AUX_DIR_EXPAND -*- Autoconf -* -
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 1
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
# #
# Of course, Automake must honor this variable whenever it calls a # Of course, Automake must honor this variable whenever it calls a
# tool from the auxiliary directory. The problem is that $srcdir (and # tool from the auxiliary directory. The problem is that $srcdir (and
# therefore $ac_aux_dir as well) can be either absolute or relative, # therefore $ac_aux_dir as well) can be either absolute or relative,
# depending on how configure is run. This is pretty annoying, since # depending on how configure is run. This is pretty annoying, since
# it makes $ac_aux_dir quite unusable in subdirectories: in the top # it makes $ac_aux_dir quite unusable in subdirectories: in the top
# source directory, any form will work fine, but in subdirectories a # source directory, any form will work fine, but in subdirectories a
skipping to change at line 147 skipping to change at line 153
else else
$1_TRUE='#' $1_TRUE='#'
$1_FALSE= $1_FALSE=
fi fi
AC_CONFIG_COMMANDS_PRE( AC_CONFIG_COMMANDS_PRE(
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
AC_MSG_ERROR([[conditional "$1" was never defined. AC_MSG_ERROR([[conditional "$1" was never defined.
Usually this means the macro was only invoked conditionally.]]) Usually this means the macro was only invoked conditionally.]])
fi])]) fi])])
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
# Free Software Foundation, Inc. # 2010, 2011 Free Software Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 10 # serial 12
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
# written in clear, in which case automake, when reading aclocal.m4, # written in clear, in which case automake, when reading aclocal.m4,
# will think it sees a *use*, and therefore will trigger all it's # will think it sees a *use*, and therefore will trigger all it's
# C support machinery. Also note that it means that autoscan, seeing # C support machinery. Also note that it means that autoscan, seeing
# CC etc. in the Makefile, will ask for an AC_PROG_CC use... # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
# _AM_DEPENDENCIES(NAME) # _AM_DEPENDENCIES(NAME)
# ---------------------- # ----------------------
# See how the compiler implements dependency checking. # See how the compiler implements dependency checking.
skipping to change at line 193 skipping to change at line 199
[depcc="$$1" am_compiler_list=]) [depcc="$$1" am_compiler_list=])
AC_CACHE_CHECK([dependency style of $depcc], AC_CACHE_CHECK([dependency style of $depcc],
[am_cv_$1_dependencies_compiler_type], [am_cv_$1_dependencies_compiler_type],
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
# We make a subdir and do the tests there. Otherwise we can end up # We make a subdir and do the tests there. Otherwise we can end up
# making bogus files that we don't know about and never remove. For # making bogus files that we don't know about and never remove. For
# instance it was reported that on HP-UX the gcc test will end up # instance it was reported that on HP-UX the gcc test will end up
# making a dummy file named `D' -- because `-MD' means `put the output # making a dummy file named `D' -- because `-MD' means `put the output
# in D'. # in D'.
rm -rf conftest.dir
mkdir conftest.dir mkdir conftest.dir
# Copy depcomp to subdir because otherwise we won't find it if we're # Copy depcomp to subdir because otherwise we won't find it if we're
# using a relative directory. # using a relative directory.
cp "$am_depcomp" conftest.dir cp "$am_depcomp" conftest.dir
cd conftest.dir cd conftest.dir
# We will build objects and dependencies in a subdirectory because # We will build objects and dependencies in a subdirectory because
# it helps to detect inapplicable dependency modes. For instance # it helps to detect inapplicable dependency modes. For instance
# both Tru64's cc and ICC support -MD to output dependencies as a # both Tru64's cc and ICC support -MD to output dependencies as a
# side effect of compilation, but ICC will put the dependencies in # side effect of compilation, but ICC will put the dependencies in
# the current directory while Tru64 will put them in the object # the current directory while Tru64 will put them in the object
skipping to change at line 257 skipping to change at line 264
;; ;;
nosideeffect) nosideeffect)
# after this tag, mechanisms are not by side-effect, so they'll # after this tag, mechanisms are not by side-effect, so they'll
# only be used when explicitly requested # only be used when explicitly requested
if test "x$enable_dependency_tracking" = xyes; then if test "x$enable_dependency_tracking" = xyes; then
continue continue
else else
break break
fi fi
;; ;;
msvisualcpp | msvcmsys) msvc7 | msvc7msys | msvisualcpp | msvcmsys)
# This compiler won't grok `-c -o', but also, the minuso test has # This compiler won't grok `-c -o', but also, the minuso test has
# not run yet. These depmodes are late enough in the game, and # not run yet. These depmodes are late enough in the game, and
# so weak that their functioning should not be impacted. # so weak that their functioning should not be impacted.
am__obj=conftest.${OBJEXT-o} am__obj=conftest.${OBJEXT-o}
am__minus_obj= am__minus_obj=
;; ;;
none) break ;; none) break ;;
esac esac
if depmode=$depmode \ if depmode=$depmode \
source=sub/conftest.c object=$am__obj \ source=sub/conftest.c object=$am__obj \
skipping to change at line 320 skipping to change at line 327
# AM_DEP_TRACK # AM_DEP_TRACK
# ------------ # ------------
AC_DEFUN([AM_DEP_TRACK], AC_DEFUN([AM_DEP_TRACK],
[AC_ARG_ENABLE(dependency-tracking, [AC_ARG_ENABLE(dependency-tracking,
[ --disable-dependency-tracking speeds up one-time build [ --disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors]) --enable-dependency-tracking do not reject slow dependency extractors])
if test "x$enable_dependency_tracking" != xno; then if test "x$enable_dependency_tracking" != xno; then
am_depcomp="$ac_aux_dir/depcomp" am_depcomp="$ac_aux_dir/depcomp"
AMDEPBACKSLASH='\' AMDEPBACKSLASH='\'
am__nodep='_no'
fi fi
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
AC_SUBST([AMDEPBACKSLASH])dnl AC_SUBST([AMDEPBACKSLASH])dnl
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
AC_SUBST([am__nodep])dnl
_AM_SUBST_NOTMAKE([am__nodep])dnl
]) ])
# Generate code to set up dependency tracking. -*- Autoconf -* - # Generate code to set up dependency tracking. -*- Autoconf -* -
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
# Free Software Foundation, Inc. # Free Software Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
skipping to change at line 543 skipping to change at line 553
for _am_header in $config_headers :; do for _am_header in $config_headers :; do
case $_am_header in case $_am_header in
$_am_arg | $_am_arg:* ) $_am_arg | $_am_arg:* )
break ;; break ;;
* ) * )
_am_stamp_count=`expr $_am_stamp_count + 1` ;; _am_stamp_count=`expr $_am_stamp_count + 1` ;;
esac esac
done done
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_sta mp_count]) echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_sta mp_count])
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
# Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 1
# AM_PROG_INSTALL_SH # AM_PROG_INSTALL_SH
# ------------------ # ------------------
# Define $install_sh. # Define $install_sh.
AC_DEFUN([AM_PROG_INSTALL_SH], AC_DEFUN([AM_PROG_INSTALL_SH],
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
if test x"${install_sh}" != xset; then if test x"${install_sh}" != xset; then
case $am_aux_dir in case $am_aux_dir in
*\ * | *\ *) *\ * | *\ *)
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
*) *)
skipping to change at line 588 skipping to change at line 601
am__leading_dot=. am__leading_dot=.
else else
am__leading_dot=_ am__leading_dot=_
fi fi
rmdir .tst 2>/dev/null rmdir .tst 2>/dev/null
AC_SUBST([am__leading_dot])]) AC_SUBST([am__leading_dot])])
# Add --enable-maintainer-mode option to configure. -*- Autoconf -* - # Add --enable-maintainer-mode option to configure. -*- Autoconf -* -
# From Jim Meyering # From Jim Meyering
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
# Free Software Foundation, Inc. # 2011 Free Software Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 5 # serial 5
# AM_MAINTAINER_MODE([DEFAULT-MODE]) # AM_MAINTAINER_MODE([DEFAULT-MODE])
# ---------------------------------- # ----------------------------------
# Control maintainer-specific portions of Makefiles. # Control maintainer-specific portions of Makefiles.
# Default is to disable them, unless `enable' is passed literally. # Default is to disable them, unless `enable' is passed literally.
# For symmetry, `disable' may be passed as well. Anyway, the user # For symmetry, `disable' may be passed as well. Anyway, the user
# can override the default with the --enable/--disable switch. # can override the default with the --enable/--disable switch.
AC_DEFUN([AM_MAINTAINER_MODE], AC_DEFUN([AM_MAINTAINER_MODE],
[m4_case(m4_default([$1], [disable]), [m4_case(m4_default([$1], [disable]),
[enable], [m4_define([am_maintainer_other], [disable])], [enable], [m4_define([am_maintainer_other], [disable])],
[disable], [m4_define([am_maintainer_other], [enable])], [disable], [m4_define([am_maintainer_other], [enable])],
[m4_define([am_maintainer_other], [enable]) [m4_define([am_maintainer_other], [enable])
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $ 1])]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $ 1])])
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portion s of Makefiles]) AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefile s])
dnl maintainer-mode's default is 'disable' unless 'enable' is passed dnl maintainer-mode's default is 'disable' unless 'enable' is passed
AC_ARG_ENABLE([maintainer-mode], AC_ARG_ENABLE([maintainer-mode],
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rule s and dependencies not useful [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rule s and dependencies not useful
(and sometimes confusing) to the casual installer] , (and sometimes confusing) to the casual installer] ,
[USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=$enableval],
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes ])) [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes ]))
AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AC_MSG_RESULT([$USE_MAINTAINER_MODE])
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
MAINT=$MAINTAINER_MODE_TRUE MAINT=$MAINTAINER_MODE_TRUE
AC_SUBST([MAINT])dnl AC_SUBST([MAINT])dnl
skipping to change at line 719 skipping to change at line 732
fi fi
# Use eval to expand $SHELL # Use eval to expand $SHELL
if eval "$MISSING --run true"; then if eval "$MISSING --run true"; then
am_missing_run="$MISSING --run " am_missing_run="$MISSING --run "
else else
am_missing_run= am_missing_run=
AC_MSG_WARN([`missing' script is too old or missing]) AC_MSG_WARN([`missing' script is too old or missing])
fi fi
]) ])
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
# Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 1
# AM_PROG_MKDIR_P # AM_PROG_MKDIR_P
# --------------- # ---------------
# Check for `mkdir -p'. # Check for `mkdir -p'.
AC_DEFUN([AM_PROG_MKDIR_P], AC_DEFUN([AM_PROG_MKDIR_P],
[AC_PREREQ([2.60])dnl [AC_PREREQ([2.60])dnl
AC_REQUIRE([AC_PROG_MKDIR_P])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
dnl while keeping a definition of mkdir_p for backward compatibility. dnl while keeping a definition of mkdir_p for backward compatibility.
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
skipping to change at line 747 skipping to change at line 763
dnl MKDIR_P). dnl MKDIR_P).
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
case $mkdir_p in case $mkdir_p in
[[\\/$]]* | ?:[[\\/]]*) ;; [[\\/$]]* | ?:[[\\/]]*) ;;
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac esac
]) ])
# Helper functions for option handling. -*- Autoconf -* - # Helper functions for option handling. -*- Autoconf -* -
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
. # Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 4 # serial 5
# _AM_MANGLE_OPTION(NAME) # _AM_MANGLE_OPTION(NAME)
# ----------------------- # -----------------------
AC_DEFUN([_AM_MANGLE_OPTION], AC_DEFUN([_AM_MANGLE_OPTION],
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
# _AM_SET_OPTION(NAME) # _AM_SET_OPTION(NAME)
# ------------------------------ # --------------------
# Set option NAME. Presently that only means defining a flag for this opti on. # Set option NAME. Presently that only means defining a flag for this opti on.
AC_DEFUN([_AM_SET_OPTION], AC_DEFUN([_AM_SET_OPTION],
[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
# _AM_SET_OPTIONS(OPTIONS) # _AM_SET_OPTIONS(OPTIONS)
# ---------------------------------- # ------------------------
# OPTIONS is a space-separated list of Automake options. # OPTIONS is a space-separated list of Automake options.
AC_DEFUN([_AM_SET_OPTIONS], AC_DEFUN([_AM_SET_OPTIONS],
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
# ------------------------------------------- # -------------------------------------------
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
AC_DEFUN([_AM_IF_OPTION], AC_DEFUN([_AM_IF_OPTION],
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
skipping to change at line 843 skipping to change at line 860
) )
then then
# Ok. # Ok.
: :
else else
AC_MSG_ERROR([newly created file is older than distributed files! AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock]) Check your system clock])
fi fi
AC_MSG_RESULT(yes)]) AC_MSG_RESULT(yes)])
# Copyright (C) 2009 Free Software Foundation, Inc. # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 1 # serial 2
# AM_SILENT_RULES([DEFAULT]) # AM_SILENT_RULES([DEFAULT])
# -------------------------- # --------------------------
# Enable less verbose build rules; with the default set to DEFAULT # Enable less verbose build rules; with the default set to DEFAULT
# (`yes' being less verbose, `no' or empty being verbose). # (`yes' being less verbose, `no' or empty being verbose).
AC_DEFUN([AM_SILENT_RULES], AC_DEFUN([AM_SILENT_RULES],
[AC_ARG_ENABLE([silent-rules], [AC_ARG_ENABLE([silent-rules],
[ --enable-silent-rules less verbose build output (undo: `make V= 1') [ --enable-silent-rules less verbose build output (undo: `make V= 1')
--disable-silent-rules verbose build output (undo: `make V=0')]) --disable-silent-rules verbose build output (undo: `make V=0')])
case $enable_silent_rules in case $enable_silent_rules in
yes) AM_DEFAULT_VERBOSITY=0;; yes) AM_DEFAULT_VERBOSITY=0;;
no) AM_DEFAULT_VERBOSITY=1;; no) AM_DEFAULT_VERBOSITY=1;;
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
esac esac
dnl
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
dnl do not support nested variable expansions.
dnl See automake bug#9928 and bug#10237.
am_make=${MAKE-make}
AC_CACHE_CHECK([whether $am_make supports nested variables],
[am_cv_make_support_nested_variables],
[if AS_ECHO([['TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
@$(TRUE)
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
am_cv_make_support_nested_variables=yes
else
am_cv_make_support_nested_variables=no
fi])
if test $am_cv_make_support_nested_variables = yes; then
dnl Using `$V' instead of `$(V)' breaks IRIX make.
AM_V='$(V)'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
AM_V=$AM_DEFAULT_VERBOSITY
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AC_SUBST([AM_V])dnl
AM_SUBST_NOTMAKE([AM_V])dnl
AC_SUBST([AM_DEFAULT_V])dnl
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
AM_BACKSLASH='\' AM_BACKSLASH='\'
AC_SUBST([AM_BACKSLASH])dnl AC_SUBST([AM_BACKSLASH])dnl
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
]) ])
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 1
# AM_PROG_INSTALL_STRIP # AM_PROG_INSTALL_STRIP
# --------------------- # ---------------------
# One issue with vendor `install' (even GNU) is that you can't # One issue with vendor `install' (even GNU) is that you can't
# specify the program used to strip binaries. This is especially # specify the program used to strip binaries. This is especially
# annoying in cross-compiling environments, where the build's strip # annoying in cross-compiling environments, where the build's strip
# is unlikely to handle the host's binaries. # is unlikely to handle the host's binaries.
# Fortunately install-sh will honor a STRIPPROG variable, so we # Fortunately install-sh will honor a STRIPPROG variable, so we
# always use install-sh in `make install-strip', and initialize # always use install-sh in `make install-strip', and initialize
# STRIPPROG with the value of the STRIP variable (set by the user). # STRIPPROG with the value of the STRIP variable (set by the user).
AC_DEFUN([AM_PROG_INSTALL_STRIP], AC_DEFUN([AM_PROG_INSTALL_STRIP],
skipping to change at line 898 skipping to change at line 947
# run `make install-strip'. However `strip' might not be the right # run `make install-strip'. However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake # tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program. # will honor the `STRIP' environment variable to overrule this program.
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
if test "$cross_compiling" != no; then if test "$cross_compiling" != no; then
AC_CHECK_TOOL([STRIP], [strip], :) AC_CHECK_TOOL([STRIP], [strip], :)
fi fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
AC_SUBST([INSTALL_STRIP_PROGRAM])]) AC_SUBST([INSTALL_STRIP_PROGRAM])])
# Copyright (C) 2006, 2008 Free Software Foundation, Inc. # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 2 # serial 3
# _AM_SUBST_NOTMAKE(VARIABLE) # _AM_SUBST_NOTMAKE(VARIABLE)
# --------------------------- # ---------------------------
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
# This macro is traced by Automake. # This macro is traced by Automake.
AC_DEFUN([_AM_SUBST_NOTMAKE]) AC_DEFUN([_AM_SUBST_NOTMAKE])
# AM_SUBST_NOTMAKE(VARIABLE) # AM_SUBST_NOTMAKE(VARIABLE)
# --------------------------- # --------------------------
# Public sister of _AM_SUBST_NOTMAKE. # Public sister of _AM_SUBST_NOTMAKE.
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
# Check how to create a tarball. -*- Autoconf -* - # Check how to create a tarball. -*- Autoconf -* -
# Copyright (C) 2004, 2005 Free Software Foundation, Inc. # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# serial 2 # serial 2
# _AM_PROG_TAR(FORMAT) # _AM_PROG_TAR(FORMAT)
# -------------------- # --------------------
# Check how to create a tarball in format FORMAT. # Check how to create a tarball in format FORMAT.
skipping to change at line 941 skipping to change at line 990
# #
# Substitute a variable $(am__tar) that is a command # Substitute a variable $(am__tar) that is a command
# writing to stdout a FORMAT-tarball containing the directory # writing to stdout a FORMAT-tarball containing the directory
# $tardir. # $tardir.
# tardir=directory && $(am__tar) > result.tar # tardir=directory && $(am__tar) > result.tar
# #
# Substitute a variable $(am__untar) that extract such # Substitute a variable $(am__untar) that extract such
# a tarball read from stdin. # a tarball read from stdin.
# $(am__untar) < result.tar # $(am__untar) < result.tar
AC_DEFUN([_AM_PROG_TAR], AC_DEFUN([_AM_PROG_TAR],
[# Always define AMTAR for backward compatibility. [# Always define AMTAR for backward compatibility. Yes, it's still used
AM_MISSING_PROG([AMTAR], [tar]) # in the wild :-( We should find a proper way to deprecate it ...
AC_SUBST([AMTAR], ['$${TAR-tar}'])
m4_if([$1], [v7], m4_if([$1], [v7],
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'] ,
[m4_case([$1], [ustar],, [pax],, [m4_case([$1], [ustar],, [pax],,
[m4_fatal([Unknown tar format])]) [m4_fatal([Unknown tar format])])
AC_MSG_CHECKING([how to create a $1 tar archive]) AC_MSG_CHECKING([how to create a $1 tar archive])
# Loop over all known methods to create a tar archive until one works. # Loop over all known methods to create a tar archive until one works.
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
_am_tools=${am_cv_prog_tar_$1-$_am_tools} _am_tools=${am_cv_prog_tar_$1-$_am_tools}
# Do not fold the above two line into one, because Tru64 sh and # Do not fold the above two line into one, because Tru64 sh and
# Solaris sh will not grok spaces in the rhs of `-'. # Solaris sh will not grok spaces in the rhs of `-'.
for _am_tool in $_am_tools for _am_tool in $_am_tools
do do
skipping to change at line 1013 skipping to change at line 1063
fi fi
done done
rm -rf conftest.dir rm -rf conftest.dir
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_MSG_RESULT([$am_cv_prog_tar_$1])])
AC_SUBST([am__tar]) AC_SUBST([am__tar])
AC_SUBST([am__untar]) AC_SUBST([am__untar])
]) # _AM_PROG_TAR ]) # _AM_PROG_TAR
# isc-posix.m4 serial 2 (gettext-0.11.2)
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
# This test replaces the one in autoconf.
# Currently this macro should have the same name as the autoconf macro
# because gettext's gettext.m4 (distributed in the automake package)
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
# give these diagnostics:
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
undefine([AC_ISC_POSIX])
AC_DEFUN([AC_ISC_POSIX],
[
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
]
)
# 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, 2008 Free Software Foundation, Inc. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
# Foundation, Inc.
# Written by Gordon Matzigkeit, 1996 # Written by Gordon Matzigkeit, 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, 2008 Free Software Foundation, Inc. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
# Foundation, Inc.
# Written by Gordon Matzigkeit, 1996 # Written by Gordon Matzigkeit, 1996
# #
# This file is part of GNU Libtool. # This file is part of GNU Libtool.
# #
# GNU Libtool is free software; you can redistribute it and/or # GNU Libtool is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as # modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of # published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version. # the License, or (at your option) any later version.
# #
# As a special exception to the GNU General Public License, # As a special exception to the GNU General Public License,
skipping to change at line 1077 skipping to change at line 1104
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with GNU Libtool; see the file COPYING. If not, a copy # along with GNU Libtool; see the file COPYING. If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
# obtained by writing to the Free Software Foundation, Inc., # obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
]) ])
# serial 56 LT_INIT # serial 57 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.
m4_defun([LT_PREREQ], m4_defun([LT_PREREQ],
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
[m4_default([$3], [m4_default([$3],
[m4_fatal([Libtool version $1 or higher is required], [m4_fatal([Libtool version $1 or higher is required],
63)])], 63)])],
[$2])]) [$2])])
skipping to change at line 1103 skipping to change at line 1130
[case `pwd` in [case `pwd` in
*\ * | *\ *) *\ * | *\ *)
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
esac 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_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
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 AC_BEFORE([$0], [LTDL_INIT])dnl
m4_require([_LT_CHECK_BUILDDIR])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 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
m4_require([_LT_PROG_LTMAIN])dnl m4_require([_LT_PROG_LTMAIN])dnl
_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
dnl Parse OPTIONS dnl Parse OPTIONS
_LT_SET_OPTIONS([$0], [$1]) _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.
LIBTOOL='$(SHELL) $(top_builddir)/libtool' LIBTOOL='$(SHELL) $(top_builddir)/libtool'
AC_SUBST(LIBTOOL)dnl AC_SUBST(LIBTOOL)dnl
skipping to change at line 1154 skipping to change at line 1184
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
m4_defun([_LT_CC_BASENAME], m4_defun([_LT_CC_BASENAME],
[for cc_temp in $1""; do [for cc_temp in $1""; do
case $cc_temp in case $cc_temp in
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
\-*) ;; \-*) ;;
*) break;; *) break;;
esac esac
done done
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
]) ])
# _LT_FILEUTILS_DEFAULTS # _LT_FILEUTILS_DEFAULTS
# ---------------------- # ----------------------
# It is okay to use these file commands and assume they have been set # It is okay to use these file commands and assume they have been set
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
m4_defun([_LT_FILEUTILS_DEFAULTS], m4_defun([_LT_FILEUTILS_DEFAULTS],
[: ${CP="cp -f"} [: ${CP="cp -f"}
: ${MV="mv -f"} : ${MV="mv -f"}
: ${RM="rm -f"} : ${RM="rm -f"}
])# _LT_FILEUTILS_DEFAULTS ])# _LT_FILEUTILS_DEFAULTS
# _LT_SETUP # _LT_SETUP
# --------- # ---------
m4_defun([_LT_SETUP], m4_defun([_LT_SETUP],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl [AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build syste
m])dnl
dnl
_LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host_alias], [0], [The host system])dnl
_LT_DECL([], [host], [0])dnl _LT_DECL([], [host], [0])dnl
_LT_DECL([], [host_os], [0])dnl _LT_DECL([], [host_os], [0])dnl
dnl dnl
_LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build_alias], [0], [The build system])dnl
_LT_DECL([], [build], [0])dnl _LT_DECL([], [build], [0])dnl
_LT_DECL([], [build_os], [0])dnl _LT_DECL([], [build_os], [0])dnl
dnl dnl
AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_LD])dnl
skipping to change at line 1194 skipping to change at line 1229
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
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dn l _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dn l
_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_PATH_CONVERSION_FUNCTIONS])dnl
m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CMD_RELOAD])dnl
m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
m4_require([_LT_WITH_SYSROOT])dnl
_LT_CONFIG_LIBTOOL_INIT([ _LT_CONFIG_LIBTOOL_INIT([
# See if we are running on zsh, and set the options which allow our # See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT. # commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then if test -n "\${ZSH_VERSION+set}" ; then
setopt NO_GLOB_SUBST setopt NO_GLOB_SUBST
fi fi
]) ])
if test -n "${ZSH_VERSION+set}" ; then if test -n "${ZSH_VERSION+set}" ; then
setopt NO_GLOB_SUBST setopt NO_GLOB_SUBST
fi fi
_LT_CHECK_OBJDIR _LT_CHECK_OBJDIR
m4_require([_LT_TAG_COMPILER])dnl m4_require([_LT_TAG_COMPILER])dnl
_LT_PROG_ECHO_BACKSLASH
case $host_os in case $host_os in
aix3*) aix3*)
# AIX sometimes has problems with the GCC collect2 program. For some # AIX sometimes has problems with the GCC collect2 program. For some
# reason, if we set the COLLECT_NAMES environment variable, the problems # reason, if we set the COLLECT_NAMES environment variable, the problems
# vanish in a puff of smoke. # vanish in a puff of smoke.
if test "X${COLLECT_NAMES+set}" != Xset; then if test "X${COLLECT_NAMES+set}" != Xset; then
COLLECT_NAMES= COLLECT_NAMES=
export COLLECT_NAMES export COLLECT_NAMES
fi fi
;; ;;
esac esac
# Sed substitution that helps us do robust quoting. It backslashifies
# metacharacters that are still active within double-quoted strings.
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
# Same as above, but do not quote variable references.
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'
# Global variables: # Global variables:
ofile=libtool ofile=libtool
can_build_shared=yes can_build_shared=yes
# All known linkers require a `.a' archive for static linking (except MSVC, # All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib'). # which needs '.lib').
libext=a libext=a
with_gnu_ld="$lt_cv_prog_gnu_ld" with_gnu_ld="$lt_cv_prog_gnu_ld"
skipping to change at line 1283 skipping to change at line 1303
;; ;;
esac esac
# Use C for the default configuration in the libtool script # Use C for the default configuration in the libtool script
LT_SUPPORTED_TAG([CC]) LT_SUPPORTED_TAG([CC])
_LT_LANG_C_CONFIG _LT_LANG_C_CONFIG
_LT_LANG_DEFAULT_CONFIG _LT_LANG_DEFAULT_CONFIG
_LT_CONFIG_COMMANDS _LT_CONFIG_COMMANDS
])# _LT_SETUP ])# _LT_SETUP
# _LT_PREPARE_SED_QUOTE_VARS
# --------------------------
# Define a few sed substitution that help us do robust quoting.
m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
[# Backslashify metacharacters that are still active within
# double-quoted strings.
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
# Same as above, but do not quote variable references.
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
# Sed substitution to delay expansion of an escaped single quote.
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
# Sed substitution to avoid accidental globbing in evaled expressions
no_glob_subst='s/\*/\\\*/g'
])
# _LT_PROG_LTMAIN # _LT_PROG_LTMAIN
# --------------- # ---------------
# Note that this code is called both from `configure', and `config.status' # Note that this code is called both from `configure', and `config.status'
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
# `config.status' has no value for ac_aux_dir unless we are using Automake, # `config.status' has no value for ac_aux_dir unless we are using Automake,
# so we pass a copy along to make sure it has a sensible value anyway. # so we pass a copy along to make sure it has a sensible value anyway.
m4_defun([_LT_PROG_LTMAIN], m4_defun([_LT_PROG_LTMAIN],
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
ltmain="$ac_aux_dir/ltmain.sh" ltmain="$ac_aux_dir/ltmain.sh"
skipping to change at line 1417 skipping to change at line 1459
[lt_join($@, lt_decl_varnames_tagged([$1], [lt_join($@, lt_decl_varnames_tagged([$1],
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
]) ])
# _LT_CONFIG_STATUS_DECLARE([VARNAME]) # _LT_CONFIG_STATUS_DECLARE([VARNAME])
# ------------------------------------ # ------------------------------------
# Quote a variable value, and forward it to `config.status' so that its # Quote a variable value, and forward it to `config.status' so that its
# declaration there will have the same value as in `configure'. VARNAME # declaration there will have the same value as in `configure'. VARNAME
# must have a single quote delimited value for this to work. # must have a single quote delimited value for this to work.
m4_define([_LT_CONFIG_STATUS_DECLARE], m4_define([_LT_CONFIG_STATUS_DECLARE],
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
# _LT_CONFIG_STATUS_DECLARATIONS # _LT_CONFIG_STATUS_DECLARATIONS
# ------------------------------ # ------------------------------
# We delimit libtool config variables with single quotes, so when # We delimit libtool config variables with single quotes, so when
# we write them to config.status, we have to be sure to quote all # we write them to config.status, we have to be sure to quote all
# embedded single quotes properly. In configure, this macro expands # embedded single quotes properly. In configure, this macro expands
# each variable declared with _LT_DECL (and _LT_TAGDECL) into: # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
# #
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
# _LT_LIBTOOL_TAGS # _LT_LIBTOOL_TAGS
# ---------------- # ----------------
# Output comment and list of tags supported by the script # Output comment and list of tags supported by the script
m4_defun([_LT_LIBTOOL_TAGS], m4_defun([_LT_LIBTOOL_TAGS],
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by th is script])dnl [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by th is script])dnl
available_tags="_LT_TAGS"dnl available_tags="_LT_TAGS"dnl
skipping to change at line 1518 skipping to change at line 1560
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
sed_quote_subst='$sed_quote_subst' sed_quote_subst='$sed_quote_subst'
double_quote_subst='$double_quote_subst' double_quote_subst='$double_quote_subst'
delay_variable_subst='$delay_variable_subst' delay_variable_subst='$delay_variable_subst'
_LT_CONFIG_STATUS_DECLARATIONS _LT_CONFIG_STATUS_DECLARATIONS
LTCC='$LTCC' LTCC='$LTCC'
LTCFLAGS='$LTCFLAGS' LTCFLAGS='$LTCFLAGS'
compiler='$compiler_DEFAULT' compiler='$compiler_DEFAULT'
# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
eval 'cat <<_LTECHO_EOF
\$[]1
_LTECHO_EOF'
}
# Quote evaled strings. # Quote evaled strings.
for var in lt_decl_all_varnames([[ \ for var in lt_decl_all_varnames([[ \
]], lt_decl_quote_varnames); do ]], lt_decl_quote_varnames); do
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
*[[\\\\\\\`\\"\\\$]]*) *[[\\\\\\\`\\"\\\$]]*)
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\" \\\$sed_quote_subst\\"\\\`\\\\\\"" eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$s ed_quote_subst\\"\\\`\\\\\\""
;; ;;
*) *)
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
;; ;;
esac esac
done done
# Double-quote double-evaled strings. # Double-quote double-evaled strings.
for var in lt_decl_all_varnames([[ \ for var in lt_decl_all_varnames([[ \
]], lt_decl_dquote_varnames); do ]], lt_decl_dquote_varnames); do
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
*[[\\\\\\\`\\"\\\$]]*) *[[\\\\\\\`\\"\\\$]]*)
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\" \\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_vari able_subst\\"\\\`\\\\\\"" eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\ \$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variab le_subst\\"\\\`\\\\\\""
;; ;;
*) *)
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
;; ;;
esac esac
done done
# Fix-up fallback echo if it was mangled by the above quoting rules.
case \$lt_ECHO in
*'\\\[$]0 --fallback-echo"')dnl "
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallba
ck-echo"\[$]/\[$]0 --fallback-echo"/'\`
;;
esac
_LT_OUTPUT_LIBTOOL_INIT _LT_OUTPUT_LIBTOOL_INIT
]) ])
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
# ------------------------------------
# Generate a child script FILE with all initialization necessary to
# reuse the environment learned by the parent script, and make the
# file executable. If COMMENT is supplied, it is inserted after the
# `#!' sequence but before initialization text begins. After this
# macro, additional text can be appended to FILE to form the body of
# the child script. The macro ends with non-zero status if the
# file could not be fully written (such as if the disk is full).
m4_ifdef([AS_INIT_GENERATED],
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
[m4_defun([_LT_GENERATED_FILE_INIT],
[m4_require([AS_PREPARE])]dnl
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
[lt_write_fail=0
cat >$1 <<_ASEOF || lt_write_fail=1
#! $SHELL
# Generated by $as_me.
$2
SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$1 <<\_ASEOF || lt_write_fail=1
AS_SHELL_SANITIZE
_AS_PREPARE
exec AS_MESSAGE_FD>&1
_ASEOF
test $lt_write_fail = 0 && chmod +x $1[]dnl
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
# LT_OUTPUT # LT_OUTPUT
# --------- # ---------
# This macro allows early generation of the libtool script (before # This macro allows early generation of the libtool script (before
# AC_OUTPUT is called), incase it is used in configure for compilation # AC_OUTPUT is called), incase it is used in configure for compilation
# tests. # tests.
AC_DEFUN([LT_OUTPUT], AC_DEFUN([LT_OUTPUT],
[: ${CONFIG_LT=./config.lt} [: ${CONFIG_LT=./config.lt}
AC_MSG_NOTICE([creating $CONFIG_LT]) AC_MSG_NOTICE([creating $CONFIG_LT])
cat >"$CONFIG_LT" <<_LTEOF _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
#! $SHELL [# Run this file to recreate a libtool stub with the current configuration.
# Generated by $as_me. ])
# Run this file to recreate a libtool stub with the current configuration.
lt_cl_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_LTEOF
cat >>"$CONFIG_LT" <<\_LTEOF cat >>"$CONFIG_LT" <<\_LTEOF
AS_SHELL_SANITIZE lt_cl_silent=false
_AS_PREPARE
exec AS_MESSAGE_FD>&1
exec AS_MESSAGE_LOG_FD>>config.log exec AS_MESSAGE_LOG_FD>>config.log
{ {
echo echo
AS_BOX([Running $as_me.]) AS_BOX([Running $as_me.])
} >&AS_MESSAGE_LOG_FD } >&AS_MESSAGE_LOG_FD
lt_cl_help="\ lt_cl_help="\
\`$as_me' creates a local libtool stub from the current configuration, \`$as_me' creates a local libtool stub from the current configuration,
for use in further configure time tests before the real libtool is for use in further configure time tests before the real libtool is
generated. generated.
skipping to change at line 1601 skipping to change at line 1665
-q, --quiet do not print progress messages -q, --quiet do not print progress messages
-d, --debug don't remove temporary files -d, --debug don't remove temporary files
Report bugs to <bug-libtool@gnu.org>." Report bugs to <bug-libtool@gnu.org>."
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) 2008 Free Software Foundation, Inc. Copyright (C) 2011 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
case $[1] in case $[1] in
--version | --v* | -V ) --version | --v* | -V )
echo "$lt_cl_version"; exit 0 ;; echo "$lt_cl_version"; exit 0 ;;
--help | --h* | -h ) --help | --h* | -h )
echo "$lt_cl_help"; exit 0 ;; echo "$lt_cl_help"; exit 0 ;;
skipping to change at line 1646 skipping to change at line 1710
AC_MSG_NOTICE([creating $ofile]) AC_MSG_NOTICE([creating $ofile])
_LT_OUTPUT_LIBTOOL_COMMANDS _LT_OUTPUT_LIBTOOL_COMMANDS
AS_EXIT(0) AS_EXIT(0)
_LTEOF _LTEOF
chmod +x "$CONFIG_LT" chmod +x "$CONFIG_LT"
# configure is writing to config.log, but config.lt does its own redirectio n, # configure is writing to config.log, but config.lt does its own redirectio n,
# appending to config.log, which fails on DOS, as config.log is still kept # appending to config.log, which fails on DOS, as config.log is still kept
# open by configure. Here we exec the FD to /dev/null, effectively closing # open by configure. Here we exec the FD to /dev/null, effectively closing
# config.log, so it can be properly (re)opened and appended to by config.lt . # config.log, so it can be properly (re)opened and appended to by config.lt .
if test "$no_create" != yes; then lt_cl_success=:
lt_cl_success=: test "$silent" = yes &&
test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet"
lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null
exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log
exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1)
$lt_cl_success || AS_EXIT(1)
fi
])# LT_OUTPUT ])# LT_OUTPUT
# _LT_CONFIG(TAG) # _LT_CONFIG(TAG)
# --------------- # ---------------
# If TAG is the built-in tag, create an initial libtool script with a # If TAG is the built-in tag, create an initial libtool script with a
# default configuration from the untagged config vars. Otherwise add code # default configuration from the untagged config vars. Otherwise add code
# to config.status for appending the configuration named by TAG from the # to config.status for appending the configuration named by TAG from the
# matching tagged config vars. # matching tagged config vars.
m4_defun([_LT_CONFIG], m4_defun([_LT_CONFIG],
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
skipping to change at line 1716 skipping to change at line 1778
_LT_EOF _LT_EOF
;; ;;
esac esac
_LT_PROG_LTMAIN _LT_PROG_LTMAIN
# We use sed instead of cat because bash on DJGPP gets confused if # We use sed instead of cat because bash on DJGPP gets confused if
# if finds mixed CR/LF and LF-only lines. Since sed operates in # if finds mixed CR/LF and LF-only lines. Since sed operates in
# text mode, it properly converts lines to CR/LF. This bash problem # text mode, it properly converts lines to CR/LF. This bash problem
# is reportedly fixed, but why not run on old versions too? # is reportedly fixed, but why not run on old versions too?
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfil sed '$q' "$ltmain" >> "$cfgfile" \
e" \ || (rm -f "$cfgfile"; exit 1)
|| (rm -f "$cfgfile"; exit 1)
_LT_PROG_XSI_SHELLFNS _LT_PROG_REPLACE_SHELLFNS
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$c mv -f "$cfgfile" "$ofile" ||
fgfile" \
|| (rm -f "$cfgfile"; exit 1)
mv -f "$cfgfile" "$ofile" ||
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
chmod +x "$ofile" chmod +x "$ofile"
], ],
[cat <<_LT_EOF >> "$ofile" [cat <<_LT_EOF >> "$ofile"
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
dnl in a comment (ie after a #). dnl in a comment (ie after a #).
# ### BEGIN LIBTOOL TAG CONFIG: $1 # ### BEGIN LIBTOOL TAG CONFIG: $1
_LT_LIBTOOL_TAG_VARS(_LT_TAG) _LT_LIBTOOL_TAG_VARS(_LT_TAG)
# ### END LIBTOOL TAG CONFIG: $1 # ### END LIBTOOL TAG CONFIG: $1
skipping to change at line 1766 skipping to change at line 1825
m4_define([_LT_TAGS], []) m4_define([_LT_TAGS], [])
# LT_LANG(LANG) # LT_LANG(LANG)
# ------------- # -------------
# Enable libtool support for the given language if not already enabled. # Enable libtool support for the given language if not already enabled.
AC_DEFUN([LT_LANG], AC_DEFUN([LT_LANG],
[AC_BEFORE([$0], [LT_OUTPUT])dnl [AC_BEFORE([$0], [LT_OUTPUT])dnl
m4_case([$1], m4_case([$1],
[C], [_LT_LANG(C)], [C], [_LT_LANG(C)],
[C++], [_LT_LANG(CXX)], [C++], [_LT_LANG(CXX)],
[Go], [_LT_LANG(GO)],
[Java], [_LT_LANG(GCJ)], [Java], [_LT_LANG(GCJ)],
[Fortran 77], [_LT_LANG(F77)], [Fortran 77], [_LT_LANG(F77)],
[Fortran], [_LT_LANG(FC)], [Fortran], [_LT_LANG(FC)],
[Windows Resource], [_LT_LANG(RC)], [Windows Resource], [_LT_LANG(RC)],
[m4_ifdef([_LT_LANG_]$1[_CONFIG], [m4_ifdef([_LT_LANG_]$1[_CONFIG],
[_LT_LANG($1)], [_LT_LANG($1)],
[m4_fatal([$0: unsupported language: "$1"])])])dnl [m4_fatal([$0: unsupported language: "$1"])])])dnl
])# LT_LANG ])# LT_LANG
# _LT_LANG(LANGNAME) # _LT_LANG(LANGNAME)
# ------------------ # ------------------
m4_defun([_LT_LANG], m4_defun([_LT_LANG],
[m4_ifdef([_LT_LANG_]$1[_enabled], [], [m4_ifdef([_LT_LANG_]$1[_enabled], [],
[LT_SUPPORTED_TAG([$1])dnl [LT_SUPPORTED_TAG([$1])dnl
m4_append([_LT_TAGS], [$1 ])dnl m4_append([_LT_TAGS], [$1 ])dnl
m4_define([_LT_LANG_]$1[_enabled], [])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl
_LT_LANG_$1_CONFIG($1)])dnl _LT_LANG_$1_CONFIG($1)])dnl
])# _LT_LANG ])# _LT_LANG
m4_ifndef([AC_PROG_GO], [
# NOTE: This macro has been submitted for inclusion into #
# GNU Autoconf as AC_PROG_GO. When it is available in #
# a released version of Autoconf we should remove this #
# macro and use it instead. #
m4_defun([AC_PROG_GO],
[AC_LANG_PUSH(Go)dnl
AC_ARG_VAR([GOC], [Go compiler command])dnl
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
_AC_ARG_VAR_LDFLAGS()dnl
AC_CHECK_TOOL(GOC, gccgo)
if test -z "$GOC"; then
if test -n "$ac_tool_prefix"; then
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
fi
fi
if test -z "$GOC"; then
AC_CHECK_PROG(GOC, gccgo, gccgo, false)
fi
])#m4_defun
])#m4_ifndef
# _LT_LANG_DEFAULT_CONFIG # _LT_LANG_DEFAULT_CONFIG
# ----------------------- # -----------------------
m4_defun([_LT_LANG_DEFAULT_CONFIG], m4_defun([_LT_LANG_DEFAULT_CONFIG],
[AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_PROVIDE_IFELSE([AC_PROG_CXX],
[LT_LANG(CXX)], [LT_LANG(CXX)],
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
AC_PROVIDE_IFELSE([AC_PROG_F77], AC_PROVIDE_IFELSE([AC_PROG_F77],
[LT_LANG(F77)], [LT_LANG(F77)],
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
skipping to change at line 1815 skipping to change at line 1897
[LT_LANG(GCJ)], [LT_LANG(GCJ)],
[AC_PROVIDE_IFELSE([LT_PROG_GCJ], [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
[LT_LANG(GCJ)], [LT_LANG(GCJ)],
[m4_ifdef([AC_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ],
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
m4_ifdef([A][M_PROG_GCJ], m4_ifdef([A][M_PROG_GCJ],
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
m4_ifdef([LT_PROG_GCJ], m4_ifdef([LT_PROG_GCJ],
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
AC_PROVIDE_IFELSE([AC_PROG_GO],
[LT_LANG(GO)],
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
AC_PROVIDE_IFELSE([LT_PROG_RC], AC_PROVIDE_IFELSE([LT_PROG_RC],
[LT_LANG(RC)], [LT_LANG(RC)],
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
])# _LT_LANG_DEFAULT_CONFIG ])# _LT_LANG_DEFAULT_CONFIG
# Obsolete macros: # Obsolete macros:
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
dnl aclocal-1.4 backwards compatibility: dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_F77], [])
dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_FC], [])
dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
dnl AC_DEFUN([AC_LIBTOOL_RC], [])
# _LT_TAG_COMPILER # _LT_TAG_COMPILER
# ---------------- # ----------------
m4_defun([_LT_TAG_COMPILER], m4_defun([_LT_TAG_COMPILER],
[AC_REQUIRE([AC_PROG_CC])dnl [AC_REQUIRE([AC_PROG_CC])dnl
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
skipping to change at line 1912 skipping to change at line 2000
# by either setting the environment variable LT_MULTI_MODULE # by either setting the environment variable LT_MULTI_MODULE
# non-empty at configure time, or by adding -multi_module to the # non-empty at configure time, or by adding -multi_module to the
# link flags. # link flags.
rm -rf libconftest.dylib* rm -rf libconftest.dylib*
echo "int foo(void){return 1;}" > conftest.c echo "int foo(void){return 1;}" > conftest.c
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
_lt_result=$? _lt_result=$?
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_ # If there is a non-empty error log, and "single_module"
result = 0; then # appears in it, assume the flag caused a linker warning
if test -s conftest.err && $GREP single_module conftest.err; then
cat conftest.err >&AS_MESSAGE_LOG_FD
# Otherwise, if the output was created with a 0 exit code from
# the compiler, it worked.
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
lt_cv_apple_cc_single_mod=yes lt_cv_apple_cc_single_mod=yes
else else
cat conftest.err >&AS_MESSAGE_LOG_FD cat conftest.err >&AS_MESSAGE_LOG_FD
fi fi
rm -rf libconftest.dylib* rm -rf libconftest.dylib*
rm -f conftest.* rm -f conftest.*
fi]) fi])
AC_CACHE_CHECK([for -exported_symbols_list linker flag], AC_CACHE_CHECK([for -exported_symbols_list linker flag],
[lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list],
[lt_cv_ld_exported_symbols_list=no [lt_cv_ld_exported_symbols_list=no
save_LDFLAGS=$LDFLAGS save_LDFLAGS=$LDFLAGS
echo "_main" > conftest.sym echo "_main" > conftest.sym
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
[lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=yes],
[lt_cv_ld_exported_symbols_list=no]) [lt_cv_ld_exported_symbols_list=no])
LDFLAGS="$save_LDFLAGS" LDFLAGS="$save_LDFLAGS"
]) ])
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
[lt_cv_ld_force_load=no
cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;}
_LT_EOF
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_F
D
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
$AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
$RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
cat > conftest.c << _LT_EOF
int main() { return 0;}
_LT_EOF
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load
,./libconftest.a" >&AS_MESSAGE_LOG_FD
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./lib
conftest.a 2>conftest.err
_lt_result=$?
if test -s conftest.err && $GREP force_load conftest.err; then
cat conftest.err >&AS_MESSAGE_LOG_FD
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load
conftest >/dev/null 2>&1 ; then
lt_cv_ld_force_load=yes
else
cat conftest.err >&AS_MESSAGE_LOG_FD
fi
rm -f conftest.err libconftest.a conftest conftest.c
rm -rf conftest.dSYM
])
case $host_os in case $host_os in
rhapsody* | darwin1.[[012]]) rhapsody* | darwin1.[[012]])
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
darwin1.*) darwin1.*)
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}su ppress' ;; _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}su ppress' ;;
darwin*) # darwin 5.x on darwin*) # darwin 5.x on
# if running on 10.5 or later, the deployment target defaults # if running on 10.5 or later, the deployment target defaults
# to the OS version, if on x86, and 10.4, the deployment # to the OS version, if on x86, and 10.4, the deployment
# target defaults to 10.4. Don't you love it? # target defaults to 10.4. Don't you love it?
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
skipping to change at line 1958 skipping to change at line 2081
;; ;;
esac esac
if test "$lt_cv_apple_cc_single_mod" = "yes"; then if test "$lt_cv_apple_cc_single_mod" = "yes"; then
_lt_dar_single_mod='$single_module' _lt_dar_single_mod='$single_module'
fi fi
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${li bname}-symbols.expsym' _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${li bname}-symbols.expsym'
else else
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.ex psym ${lib}' _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.ex psym ${lib}'
fi fi
if test "$DSYMUTIL" != ":"; then if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
_lt_dsymutil='~$DSYMUTIL $lib || :' _lt_dsymutil='~$DSYMUTIL $lib || :'
else else
_lt_dsymutil= _lt_dsymutil=
fi fi
;; ;;
esac esac
]) ])
# _LT_DARWIN_LINKER_FEATURES # _LT_DARWIN_LINKER_FEATURES([TAG])
# -------------------------- # ---------------------------------
# Checks for linker and compiler features on darwin # Checks for linker and compiler features on darwin
m4_defun([_LT_DARWIN_LINKER_FEATURES], m4_defun([_LT_DARWIN_LINKER_FEATURES],
[ [
m4_require([_LT_REQUIRED_DARWIN_CHECKS]) m4_require([_LT_REQUIRED_DARWIN_CHECKS])
_LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(archive_cmds_need_lc, $1)=no
_LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no
_LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_automatic, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
_LT_TAGVAR(whole_archive_flag_spec, $1)='' if test "$lt_cv_ld_force_load" = "yes"; then
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\";
do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_lo
ad,$conv\"; done; func_echo_all \"$new_convenience\"`'
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
else
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
fi
_LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
case $cc_basename in case $cc_basename in
ifort*) _lt_dar_can_shared=yes ;; ifort*) _lt_dar_can_shared=yes ;;
*) _lt_dar_can_shared=$GCC ;; *) _lt_dar_can_shared=$GCC ;;
esac esac
if test "$_lt_dar_can_shared" = "yes"; then if test "$_lt_dar_can_shared" = "yes"; then
output_verbose_link_cmd=echo output_verbose_link_cmd=func_echo_all
_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(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 -bund le \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bund le \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefin ed_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath /\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsym util}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefin ed_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath /\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsym util}"
_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}" _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], m4_if([$1], [CXX],
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then [ 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/\$so name \$verstring${_lt_dsymutil}" _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/\$so name \$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 \$r path/\$soname \$verstring${_lt_dar_export_syms}${_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 \$r path/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
fi fi
],[]) ],[])
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
]) ])
# _LT_SYS_MODULE_PATH_AIX # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
# ----------------------- # ----------------------------------
# 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,
# this is /usr/lib:/lib, but when the MPI compilers are used # this is /usr/lib:/lib, but when the MPI compilers are used
# the location of the communication and MPI libs are included too. # the location of the communication and MPI libs are included too.
# If we don't find anything, use the default library path according # If we don't find anything, use the default library path according
# to the aix ld manual. # to the aix ld manual.
# Store the results from the different compilers for each TAGNAME.
# Allow to override them for all tags through lt_cv_aix_libpath.
m4_defun([_LT_SYS_MODULE_PATH_AIX], m4_defun([_LT_SYS_MODULE_PATH_AIX],
[m4_require([_LT_DECL_SED])dnl [m4_require([_LT_DECL_SED])dnl
AC_LINK_IFELSE(AC_LANG_PROGRAM,[ if test "${lt_cv_aix_libpath+set}" = set; then
lt_aix_libpath_sed=' aix_libpath=$lt_cv_aix_libpath
/Import File Strings/,/^$/ { else
/^0/ { AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
s/^0 *\(.*\)$/\1/ [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
p lt_aix_libpath_sed='[
} /Import File Strings/,/^$/ {
}' /^0/ {
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l s/^0 *\([^ ]*\) *$/\1/
ibpath_sed"` p
# Check for a 64-bit object if we didn't find anything. }
if test -z "$aix_libpath"; then }]'
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev
aix_libpath_sed"` /null | $SED -n -e "$lt_aix_libpath_sed"`
fi],[]) # Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2
>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi],[])
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
fi
])
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
fi
])# _LT_SYS_MODULE_PATH_AIX ])# _LT_SYS_MODULE_PATH_AIX
# _LT_SHELL_INIT(ARG) # _LT_SHELL_INIT(ARG)
# ------------------- # -------------------
m4_define([_LT_SHELL_INIT], m4_define([_LT_SHELL_INIT],
[ifdef([AC_DIVERSION_NOTICE], [m4_divert_text([M4SH-INIT], [$1
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], ])])# _LT_SHELL_INIT
[AC_DIVERT_PUSH(NOTICE)])
$1
AC_DIVERT_POP
])# _LT_SHELL_INIT
# _LT_PROG_ECHO_BACKSLASH # _LT_PROG_ECHO_BACKSLASH
# ----------------------- # -----------------------
# Add some code to the start of the generated configure script which # Find how we can fake an echo command that does not interpret backslash.
# will find an echo command which doesn't interpret backslashes. # In particular, with Autoconf 2.60 or later we add some code to the start
# of the generated configure script which will find a shell with a builtin
# printf (which we can use as an echo command).
m4_defun([_LT_PROG_ECHO_BACKSLASH], m4_defun([_LT_PROG_ECHO_BACKSLASH],
[_LT_SHELL_INIT([ [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
# Check that we are running under the correct shell. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
SHELL=${CONFIG_SHELL-/bin/sh} ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
case X$lt_ECHO in
X*--fallback-echo) AC_MSG_CHECKING([how to print strings])
# Remove one level of quotation (which was required for Make). # Test print first, because it will be a builtin if present.
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
;; test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
esac ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
ECHO=${lt_ECHO-echo} ECHO='printf %s\n'
if test "X[$]1" = X--no-reexec; then
# Discard the --no-reexec flag, and continue.
shift
elif test "X[$]1" = X--fallback-echo; then
# Avoid inline document here, it may be left over
:
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
# Yippee, $ECHO works!
:
else else
# Restart under the correct shell. # Use this function as a fallback that always works.
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} func_fallback_echo ()
fi {
eval 'cat <<_LTECHO_EOF
if test "X[$]1" = X--fallback-echo; then $[]1
# used as fallback echo _LTECHO_EOF'
shift }
cat <<_LT_EOF ECHO='func_fallback_echo'
[$]*
_LT_EOF
exit 0
fi fi
# The HP-UX ksh and POSIX shell print the target directory to stdout # func_echo_all arg...
# if CDPATH is set. # Invoke $ECHO with all args, space-separated.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH func_echo_all ()
{
if test -z "$lt_ECHO"; then $ECHO "$*"
if test "X${echo_test_string+set}" != Xset; then }
# find a string as large as possible, as long as the shell can cope wit
h it
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "
[$]0"' 'echo test'; do
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
then
break
fi
done
fi
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
:
else
# The Solaris, AIX, and Digital Unix default echo programs unquote
# backslashes. This makes it impossible to quote backslashes using
# echo "$something" | sed 's/\\/\\\\/g'
#
# So, first we look for a working echo in the user's PATH.
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
for dir in $PATH /usr/ucb; do
IFS="$lt_save_ifs"
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null`
&&
test "X$echo_testing_string" = "X$echo_test_string"; then
ECHO="$dir/echo"
break
fi
done
IFS="$lt_save_ifs"
if test "X$ECHO" = Xecho; then
# We didn't find a better echo, so look for alternatives.
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null
` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
# This shell has a builtin print -r that does the trick.
ECHO='print -r'
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
test "X$CONFIG_SHELL" != X/bin/ksh; then
# If we have ksh, try running configure again with it.
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
export ORIGINAL_CONFIG_SHELL
CONFIG_SHELL=/bin/ksh
export CONFIG_SHELL
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
else
# Try using printf.
ECHO='printf %s\n'
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null`
&&
test "X$echo_testing_string" = "X$echo_test_string"; then
# Cool, printf works
:
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback
-echo '\t') 2>/dev/null` &&
test "X$echo_testing_string" = 'X\t' &&
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-
echo "$echo_test_string") 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
export CONFIG_SHELL
SHELL="$CONFIG_SHELL"
export SHELL
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t
') 2>/dev/null` &&
test "X$echo_testing_string" = 'X\t' &&
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$ec
ho_test_string") 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
else
# maybe with a smaller string...
prev=:
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "
[$]0"' 'sed 50q "[$]0"'; do
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
then
break
fi
prev="$cmd"
done
if test "$prev" != 'sed 50q "[$]0"'; then case "$ECHO" in
echo_test_string=`eval $prev` printf*) AC_MSG_RESULT([printf]) ;;
export echo_test_string print*) AC_MSG_RESULT([print -r]) ;;
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1 *) AC_MSG_RESULT([cat]) ;;
+"[$]@"} esac
else
# Oops. We lost completely, so just stick with echo.
ECHO=echo
fi
fi
fi
fi
fi
fi
# Copy echo and quote the copy suitably for passing to libtool from m4_ifdef([_AS_DETECT_SUGGESTED],
# the Makefile, instead of quoting the original, which is used later. [_AS_DETECT_SUGGESTED([
lt_ECHO=$ECHO test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
fi ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
PATH=/empty FPATH=/empty; export PATH FPATH
test "X`printf %s $ECHO`" = "X$ECHO" \
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
AC_SUBST(lt_ECHO)
])
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
_LT_DECL([], [ECHO], [1], _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
[An echo program that does not interpret backslashes])
])# _LT_PROG_ECHO_BACKSLASH ])# _LT_PROG_ECHO_BACKSLASH
# _LT_WITH_SYSROOT
# ----------------
AC_DEFUN([_LT_WITH_SYSROOT],
[AC_MSG_CHECKING([for sysroot])
AC_ARG_WITH([sysroot],
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
(or the compiler's sysroot if not specified).],
[], [with_sysroot=no])
dnl lt_sysroot will always be passed unquoted. We quote it here
dnl in case the user passed a directory name.
lt_sysroot=
case ${with_sysroot} in #(
yes)
if test "$GCC" = yes; then
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
fi
;; #(
/*)
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
;; #(
no|'')
;; #(
*)
AC_MSG_RESULT([${with_sysroot}])
AC_MSG_ERROR([The sysroot must be an absolute path.])
;;
esac
AC_MSG_RESULT([${lt_sysroot:-no}])
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
[dependent libraries, and in which our libraries should be installed.])])
# _LT_ENABLE_LOCK # _LT_ENABLE_LOCK
# --------------- # ---------------
m4_defun([_LT_ENABLE_LOCK], m4_defun([_LT_ENABLE_LOCK],
[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
# libtool support. # libtool support.
skipping to change at line 2223 skipping to change at line 2290
;; ;;
*ELF-64*) *ELF-64*)
HPUX_IA64_MODE="64" HPUX_IA64_MODE="64"
;; ;;
esac esac
fi fi
rm -rf conftest* rm -rf conftest*
;; ;;
*-*-irix6*) *-*-irix6*)
# Find out which ABI we are using. # Find out which ABI we are using.
echo '[#]line __oline__ "configure"' > conftest.$ac_ext echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
if test "$lt_cv_prog_gnu_ld" = yes; then if test "$lt_cv_prog_gnu_ld" = yes; then
case `/usr/bin/file conftest.$ac_objext` in case `/usr/bin/file conftest.$ac_objext` in
*32-bit*) *32-bit*)
LD="${LD-ld} -melf32bsmip" LD="${LD-ld} -melf32bsmip"
;; ;;
*N32*) *N32*)
LD="${LD-ld} -melf32bmipn32" LD="${LD-ld} -melf32bmipn32"
;; ;;
*64-bit*) *64-bit*)
skipping to change at line 2316 skipping to change at line 2383
CFLAGS="$CFLAGS -belf" CFLAGS="$CFLAGS -belf"
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
[AC_LANG_PUSH(C) [AC_LANG_PUSH(C)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes], [lt_cv_cc_needs_belf=no]) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes], [lt_cv_cc_needs_belf=no])
AC_LANG_POP]) AC_LANG_POP])
if test x"$lt_cv_cc_needs_belf" != x"yes"; then if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS" CFLAGS="$SAVE_CFLAGS"
fi fi
;; ;;
sparc*-*solaris*) *-*solaris*)
# Find out which ABI we are using. # Find out which ABI we are using.
echo 'int i;' > conftest.$ac_ext echo 'int i;' > conftest.$ac_ext
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*)
case $host in
i?86-*-solaris*)
LD="${LD-ld} -m elf_x86_64"
;;
sparc*-*-solaris*)
LD="${LD-ld} -m elf64_sparc"
;;
esac
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
LD="${LD-ld}_sol2"
fi
;;
*) *)
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
LD="${LD-ld} -64" LD="${LD-ld} -64"
fi fi
;; ;;
esac esac
;; ;;
esac esac
fi fi
rm -rf conftest* rm -rf conftest*
;; ;;
esac esac
need_locks="$enable_libtool_lock" need_locks="$enable_libtool_lock"
])# _LT_ENABLE_LOCK ])# _LT_ENABLE_LOCK
# _LT_PROG_AR
# -----------
m4_defun([_LT_PROG_AR],
[AC_CHECK_TOOLS(AR, [ar], false)
: ${AR=ar}
: ${AR_FLAGS=cru}
_LT_DECL([], [AR], [1], [The archiver])
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
[lt_cv_ar_at_file=no
AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
[echo conftest.$ac_objext > conftest.lst
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG
_FD'
AC_TRY_EVAL([lt_ar_try])
if test "$ac_status" -eq 0; then
# Ensure the archiver fails upon bogus file names.
rm -f conftest.$ac_objext libconftest.a
AC_TRY_EVAL([lt_ar_try])
if test "$ac_status" -ne 0; then
lt_cv_ar_at_file=@
fi
fi
rm -f conftest.* libconftest.a
])
])
if test "x$lt_cv_ar_at_file" = xno; then
archiver_list_spec=
else
archiver_list_spec=$lt_cv_ar_at_file
fi
_LT_DECL([], [archiver_list_spec], [1],
[How to feed a file listing to the archiver])
])# _LT_PROG_AR
# _LT_CMD_OLD_ARCHIVE # _LT_CMD_OLD_ARCHIVE
# ------------------- # -------------------
m4_defun([_LT_CMD_OLD_ARCHIVE], m4_defun([_LT_CMD_OLD_ARCHIVE],
[AC_CHECK_TOOL(AR, ar, false) [_LT_PROG_AR
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
_LT_DECL([], [AR], [1], [The archiver])
_LT_DECL([], [AR_FLAGS], [1])
AC_CHECK_TOOL(STRIP, strip, :) AC_CHECK_TOOL(STRIP, strip, :)
test -z "$STRIP" && STRIP=: test -z "$STRIP" && STRIP=:
_LT_DECL([], [STRIP], [1], [A symbol stripping program]) _LT_DECL([], [STRIP], [1], [A symbol stripping program])
AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(RANLIB, ranlib, :)
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_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
openbsd*) openbsd*)
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
;; ;;
*) *)
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
;; ;;
esac esac
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
fi fi
case $host_os in
darwin*)
lock_old_archive_extraction=yes ;;
*)
lock_old_archive_extraction=no ;;
esac
_LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postinstall_cmds], [2])
_LT_DECL([], [old_postuninstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2])
_LT_TAGDECL([], [old_archive_cmds], [2], _LT_TAGDECL([], [old_archive_cmds], [2],
[Commands used to build an old-style archive]) [Commands used to build an old-style archive])
_LT_DECL([], [lock_old_archive_extraction], [0],
[Whether to use a lock for old archive extraction])
])# _LT_CMD_OLD_ARCHIVE ])# _LT_CMD_OLD_ARCHIVE
# _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],
[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],
skipping to change at line 2401 skipping to change at line 2522
lt_compiler_flag="$3" lt_compiler_flag="$3"
# Insert the option either (1) after the last *FLAGS variable, or # Insert the option either (1) after the last *FLAGS variable, or
# (2) before a word containing "conftest.", or (3) at the end. # (2) before a word containing "conftest.", or (3) at the end.
# Note that $ac_compile itself does not contain backslashes and begins # Note that $ac_compile itself does not contain backslashes and begins
# with a dollar sign (not a hyphen), so the echo should work correctly. # with a dollar sign (not a hyphen), so the echo should work correctly.
# The option is referenced via a variable to avoid confusing sed. # The option is referenced via a variable to avoid confusing sed.
lt_compile=`echo "$ac_compile" | $SED \ lt_compile=`echo "$ac_compile" | $SED \
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
(eval "$lt_compile" 2>conftest.err) (eval "$lt_compile" 2>conftest.err)
ac_status=$? ac_status=$?
cat conftest.err >&AS_MESSAGE_LOG_FD cat conftest.err >&AS_MESSAGE_LOG_FD
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
if (exit $ac_status) && test -s "$ac_outfile"; then if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output. # So say no if there are warnings other than the usual output.
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null ; then if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null ; then
$2=yes $2=yes
fi fi
fi fi
$RM conftest* $RM conftest*
]) ])
if test x"[$]$2" = xyes; then if test x"[$]$2" = xyes; then
m4_if([$5], , :, [$5]) m4_if([$5], , :, [$5])
skipping to change at line 2448 skipping to change at line 2569
[$2=no [$2=no
save_LDFLAGS="$LDFLAGS" save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $3" LDFLAGS="$LDFLAGS $3"
echo "$lt_simple_link_test_code" > conftest.$ac_ext echo "$lt_simple_link_test_code" > conftest.$ac_ext
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
# The linker can only warn and ignore the option if not recognized # The linker can only warn and ignore the option if not recognized
# So say no if there are warnings # So say no if there are warnings
if test -s conftest.err; then if test -s conftest.err; then
# Append any errors to the config.log. # Append any errors to the config.log.
cat conftest.err 1>&AS_MESSAGE_LOG_FD cat conftest.err 1>&AS_MESSAGE_LOG_FD
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
if diff conftest.exp conftest.er2 >/dev/null; then if diff conftest.exp conftest.er2 >/dev/null; then
$2=yes $2=yes
fi fi
else else
$2=yes $2=yes
fi fi
fi fi
$RM -r conftest* $RM -r conftest*
LDFLAGS="$save_LDFLAGS" LDFLAGS="$save_LDFLAGS"
skipping to change at line 2510 skipping to change at line 2631
# 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).
# Instead, let's just punt: use the minimum linelength reported by # Instead, let's just punt: use the minimum linelength reported by
# all of the supported platforms: 8192 (on NT/2K/XP). # all of the supported platforms: 8192 (on NT/2K/XP).
lt_cv_sys_max_cmd_len=8192; lt_cv_sys_max_cmd_len=8192;
;; ;;
mint*)
# On MiNT this can take a long time and run out of memory.
lt_cv_sys_max_cmd_len=8192;
;;
amigaos*) amigaos*)
# On AmigaOS with pdksh, this test takes hours, literally. # On AmigaOS with pdksh, this test takes hours, literally.
# So we just punt and use a minimum line length of 8192. # So we just punt and use a minimum line length of 8192.
lt_cv_sys_max_cmd_len=8192; lt_cv_sys_max_cmd_len=8192;
;; ;;
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
# This has been around since 386BSD, at least. Likely further. # This has been around since 386BSD, at least. Likely further.
if test -x /sbin/sysctl; then if test -x /sbin/sysctl; then
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
skipping to change at line 2535 skipping to change at line 2661
# And add a safety zone # And add a safety zone
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`
;; ;;
interix*) interix*)
# We know the value 262144 and hardcode it with a safety zone (like BSD ) # We know the value 262144 and hardcode it with a safety zone (like BSD )
lt_cv_sys_max_cmd_len=196608 lt_cv_sys_max_cmd_len=196608
;; ;;
os2*)
# The test takes a long time on OS/2.
lt_cv_sys_max_cmd_len=8192
;;
osf*) osf*)
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running confi gure # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running confi gure
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
# nice to cause kernel panics so lets avoid the loop below. # nice to cause kernel panics so lets avoid the loop below.
# First set a reasonable default. # First set a reasonable default.
lt_cv_sys_max_cmd_len=16384 lt_cv_sys_max_cmd_len=16384
# #
if test -x /sbin/sysconfig; then if test -x /sbin/sysconfig; then
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
*1*) lt_cv_sys_max_cmd_len=-1 ;; *1*) lt_cv_sys_max_cmd_len=-1 ;;
skipping to change at line 2574 skipping to change at line 2705
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.
for i in 1 2 3 4 5 6 7 8 ; do for i in 1 2 3 4 5 6 7 8 ; do
teststring=$teststring$teststring teststring=$teststring$teststring
done done
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
# If test is not a shell built-in, we'll probably end up computing a # If test is not a shell built-in, we'll probably end up computing a
# maximum length that is only half of the actual maximum length, but # maximum length that is only half of the actual maximum length, but
# we can't tell. # we can't tell.
while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 &&
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
test $i != 17 # 1/2 MB should be enough test $i != 17 # 1/2 MB should be enough
do do
i=`expr $i + 1` i=`expr $i + 1`
teststring=$teststring$teststring teststring=$teststring$teststring
done done
# Only check the string length outside the loop. # Only check the string length outside the loop.
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
teststring= teststring=
# Add a significant safety factor because C++ compilers can tack on # Add a significant safety factor because C++ compilers can tack on
# massive amounts of additional arguments before passing them to the # massive amounts of additional arguments before passing them to the
skipping to change at line 2624 skipping to change at line 2755
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
# ---------------------------------------------------------------- # ----------------------------------------------------------------
m4_defun([_LT_TRY_DLOPEN_SELF], m4_defun([_LT_TRY_DLOPEN_SELF],
[m4_require([_LT_HEADER_DLFCN])dnl [m4_require([_LT_HEADER_DLFCN])dnl
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
[$4] [$4]
else else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
[#line __oline__ "configure" [#line $LINENO "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
#include <dlfcn.h> #include <dlfcn.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#ifdef RTLD_GLOBAL #ifdef RTLD_GLOBAL
# define LT_DLGLOBAL RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL
skipping to change at line 2665 skipping to change at line 2796
# ifdef DL_NOW # ifdef DL_NOW
# define LT_DLLAZY_OR_NOW DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW
# else # else
# define LT_DLLAZY_OR_NOW 0 # define LT_DLLAZY_OR_NOW 0
# endif # endif
# endif # endif
# endif # endif
# endif # endif
#endif #endif
void fnord() { int i=42;} /* When -fvisbility=hidden is used, assume the code has been annotated
correspondingly for the symbols needed. */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__
GNUC__ > 3))
int fnord () __attribute__((visibility("default")));
#endif
int fnord () { return 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;
if (self) if (self)
{ {
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else
{
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
else puts (dlerror ());
}
/* dlclose (self); */ /* dlclose (self); */
} }
else else
puts (dlerror ()); puts (dlerror ());
return 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
skipping to change at line 2848 skipping to change at line 2989
lt_compiler_flag="-o out/conftest2.$ac_objext" lt_compiler_flag="-o out/conftest2.$ac_objext"
# Insert the option either (1) after the last *FLAGS variable, or # Insert the option either (1) after the last *FLAGS variable, or
# (2) before a word containing "conftest.", or (3) at the end. # (2) before a word containing "conftest.", or (3) at the end.
# Note that $ac_compile itself does not contain backslashes and begins # Note that $ac_compile itself does not contain backslashes and begins
# with a dollar sign (not a hyphen), so the echo should work correctly. # with a dollar sign (not a hyphen), so the echo should work correctly.
lt_compile=`echo "$ac_compile" | $SED \ lt_compile=`echo "$ac_compile" | $SED \
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'` -e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
(eval "$lt_compile" 2>out/conftest.err) (eval "$lt_compile" 2>out/conftest.err)
ac_status=$? ac_status=$?
cat out/conftest.err >&AS_MESSAGE_LOG_FD cat out/conftest.err >&AS_MESSAGE_LOG_FD
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
if (exit $ac_status) && test -s out/conftest2.$ac_objext if (exit $ac_status) && test -s out/conftest2.$ac_objext
then then
# The compiler can only warn and ignore the option if not recognized # The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings # So say no if there are warnings
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.e xp $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er 2 >/dev/null; then if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er 2 >/dev/null; then
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
fi fi
fi fi
chmod u+w . 2>&AS_MESSAGE_LOG_FD chmod u+w . 2>&AS_MESSAGE_LOG_FD
$RM conftest* $RM conftest*
# SGI C++ compiler will create directory out/ii_files/ for # SGI C++ compiler will create directory out/ii_files/ for
# template instantiation # template instantiation
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
skipping to change at line 3011 skipping to change at line 3152
# _LT_SYS_DYNAMIC_LINKER([TAG]) # _LT_SYS_DYNAMIC_LINKER([TAG])
# ----------------------------- # -----------------------------
# 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_OBJDUMP])dnl
m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_SED])dnl
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
AC_MSG_CHECKING([dynamic linker characteristics]) AC_MSG_CHECKING([dynamic linker characteristics])
m4_if([$1], m4_if([$1],
[], [ [], [
if test "$GCC" = yes; then if test "$GCC" = 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 " case $host_os in
s/^libraries://" -e "s,=/,/,g"` mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then *) lt_sed_strip_eq="s,=/,/,g" ;;
esac
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "
s/^libraries://" -e $lt_sed_strip_eq`
case $lt_search_path_spec in
*\;*)
# if the path contains ";" then we assume it to be the separator # if the path contains ";" then we assume it to be the separator
# otherwise default to the standard path separator (i.e. ":") - it is # otherwise default to the standard path separator (i.e. ":") - it is
# assumed that no part of a normal pathname contains ";" but that shoul d # assumed that no part of a normal pathname contains ";" but that shoul d
# okay in the real world where ";" in dirpaths is itself problematic. # okay in the real world where ";" in dirpaths is itself problematic.
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
else ;;
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_S *)
EPARATOR/ /g"` lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPAR
fi ATOR/ /g"`
;;
esac
# Ok, now we have the path, separated by spaces, we can step through it # Ok, now we have the path, separated by spaces, we can step through it
# and add multilib dir if necessary. # and add multilib dir if necessary.
lt_tmp_lt_search_path_spec= lt_tmp_lt_search_path_spec=
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
for lt_sys_path in $lt_search_path_spec; do for lt_sys_path in $lt_search_path_spec; do
if test -d "$lt_sys_path/$lt_multi_os_dir"; then if test -d "$lt_sys_path/$lt_multi_os_dir"; then
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/ $lt_multi_os_dir" lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/ $lt_multi_os_dir"
else else
test -d "$lt_sys_path" && \ test -d "$lt_sys_path" && \
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path " lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path "
fi fi
done done
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
BEGIN {RS=" "; FS="/|\n";} { BEGIN {RS=" "; FS="/|\n";} {
lt_foo=""; lt_foo="";
lt_count=0; lt_count=0;
for (lt_i = NF; lt_i > 0; lt_i--) { for (lt_i = NF; lt_i > 0; lt_i--) {
if ($lt_i != "" && $lt_i != ".") { if ($lt_i != "" && $lt_i != ".") {
if ($lt_i == "..") { if ($lt_i == "..") {
lt_count++; lt_count++;
} else { } else {
if (lt_count == 0) { if (lt_count == 0) {
lt_foo="/" $lt_i lt_foo; lt_foo="/" $lt_i lt_foo;
} else { } else {
lt_count--; lt_count--;
} }
} }
} }
} }
if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_foo != "") { lt_freq[[lt_foo]]++; }
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` # AWK program above erroneously prepends '/' to C:/dos/paths
# for these hosts.
case $host_os in
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
$SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
esac
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
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])
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=
postuninstall_cmds= postuninstall_cmds=
finish_cmds= finish_cmds=
skipping to change at line 3087 skipping to change at line 3242
sys_lib_dlsearch_path_spec="/lib /usr/lib" sys_lib_dlsearch_path_spec="/lib /usr/lib"
need_lib_prefix=unknown need_lib_prefix=unknown
hardcode_into_libs=no hardcode_into_libs=no
# when you set need_version to no, make sure it does not cause -set_version # when you set need_version to no, make sure it does not cause -set_version
# flags to be left without arguments # flags to be left without arguments
need_version=unknown need_version=unknown
case $host_os in case $host_os in
aix3*) aix3*)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname. a' library_names_spec='${libname}${release}${shared_ext}$versuffix $libname. a'
shlibpath_var=LIBPATH shlibpath_var=LIBPATH
# AIX 3 has no versioning support, so we append a major version to the na me. # AIX 3 has no versioning support, so we append a major version to the na me.
soname_spec='${libname}${release}${shared_ext}$major' soname_spec='${libname}${release}${shared_ext}$major'
;; ;;
aix[[4-9]]*) aix[[4-9]]*)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
hardcode_into_libs=yes hardcode_into_libs=yes
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
# AIX 5 supports IA64 # AIX 5 supports IA64
library_names_spec='${libname}${release}${shared_ext}$major ${libname}$ {release}${shared_ext}$versuffix $libname${shared_ext}' library_names_spec='${libname}${release}${shared_ext}$major ${libname}$ {release}${shared_ext}$versuffix $libname${shared_ext}'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
else else
# With GCC up to 2.95.x, collect2 would create an import file # With GCC up to 2.95.x, collect2 would create an import file
# for dependence libraries. The import file would start with # for dependence libraries. The import file would start with
skipping to change at line 3149 skipping to change at line 3304
amigaos*) amigaos*)
case $host_cpu in case $host_cpu in
powerpc) powerpc)
# Since July 2007 AmigaOS4 officially supports .so libraries. # Since July 2007 AmigaOS4 officially supports .so libraries.
# When compiling the executable, add -use-dynld -Lsobjs: to the compile line. # When compiling the executable, add -use-dynld -Lsobjs: to the compile line.
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libna me}${release}${shared_ext}$major $libname${shared_ext}' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libna me}${release}${shared_ext}$major $libname${shared_ext}'
;; ;;
m68k) 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 libnam e=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; tes t $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 libnam e=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $li b ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary. a || exit 1; done'
;; ;;
esac esac
;; ;;
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"
shlibpath_var=LIBRARY_PATH shlibpath_var=LIBRARY_PATH
;; ;;
bsdi[[45]]*) bsdi[[45]]*)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
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 $libdir' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib / lib /usr/local/lib" sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib / lib /usr/local/lib"
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
# 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* | cegcc*) 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 $GCC,$host_os in case $GCC,$cc_basename in
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) yes,*)
# gcc
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 \$dlna me'\''`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlna me'\''`~
dldir=$destdir/`dirname \$dlpath`~ dldir=$destdir/`dirname \$dlpath`~
test -d \$dldir || mkdir -p \$dldir~ test -d \$dldir || mkdir -p \$dldir~
$install_prog $dir/$dlname \$dldir/$dlname~ $install_prog $dir/$dlname \$dldir/$dlname~
chmod a+x \$dldir/$dlname~ chmod a+x \$dldir/$dlname~
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
fi' fi'
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\' '`~ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\' '`~
dlpath=$dir/\$dldll~ dlpath=$dir/\$dldll~
$RM \$dlpath' $RM \$dlpath'
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
case $host_os in case $host_os in
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" m4_if([$1], [],[
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]
)
;; ;;
mingw* | cegcc*) mingw* | cegcc*)
# MinGW DLLs use traditional 'lib' prefix # MinGW DLLs use traditional 'lib' prefix
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${ver suffix}${shared_ext}' soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${ver suffix}${shared_ext}'
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/nul
l]; then
# It is most probably a Windows format PATH printed by
# mingw gcc, but we are running on Cygwin. Gcc prints its search
# path with ; separators, and with drive letters. We can handle the
# drive letters (cygwin fileutils understands them), so leave them,
# especially as we might pass files found there to a mingw objdump,
# which wouldn't understand a cygwinified path. Ahh.
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED
-e 's/;/ /g'`
else
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED
-e "s/$PATH_SEPARATOR/ /g"`
fi
;; ;;
pw32*) pw32*)
# pw32 DLLs use 'pw' prefix rather than 'lib' # pw32 DLLs use 'pw' prefix rather than 'lib'
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${re lease} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${re lease} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
;; ;;
esac esac
dynamic_linker='Win32 ld.exe'
;;
*,cl*)
# Native MSVC
libname_spec='$name'
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versu
ffix}${shared_ext}'
library_names_spec='${libname}.dll.lib'
case $build_os in
mingw*)
sys_lib_search_path_spec=
lt_save_ifs=$IFS
IFS=';'
for lt_path in $LIB
do
IFS=$lt_save_ifs
# Let DOS variable expansion print the short 8.3 style file name.
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @
echo %~si"`
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
done
IFS=$lt_save_ifs
# Convert to MSYS style.
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e
's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
;;
cygwin*)
# Convert to unix form, then to dos form, then back to unix form
# but this time dos style (no spaces!) so that the unix form looks
# like /cygdrive/c/PROGRA~1:/cygdr...
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_
spec" 2>/dev/null`
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path
_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
;;
*)
sys_lib_search_path_spec="$LIB"
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/nul
l]; then
# It is most probably a Windows format PATH.
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED
-e 's/;/ /g'`
else
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED
-e "s/$PATH_SEPARATOR/ /g"`
fi
# FIXME: find the short name or the path components, as spaces are
# common. (e.g. "Program Files" -> "PROGRA~1")
;;
esac
# DLL is installed to $(libdir)/../bin by postinstall_cmds
postinstall_cmds='base_file=`basename \${file}`~
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlna
me'\''`~
dldir=$destdir/`dirname \$dlpath`~
test -d \$dldir || mkdir -p \$dldir~
$install_prog $dir/$dlname \$dldir/$dlname'
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\'
'`~
dlpath=$dir/\$dldll~
$RM \$dlpath'
shlibpath_overrides_runpath=yes
dynamic_linker='Win32 link.exe'
;; ;;
*) *)
# Assume MSVC wrapper
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'` ${versuffix}${shared_ext} $libname.lib' library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'` ${versuffix}${shared_ext} $libname.lib'
dynamic_linker='Win32 ld.exe'
;; ;;
esac esac
dynamic_linker='Win32 ld.exe'
# FIXME: first we should search . and the directory the executable is in # FIXME: first we should search . and the directory the executable is in
shlibpath_var=PATH shlibpath_var=PATH
;; ;;
darwin* | rhapsody*) darwin* | rhapsody*)
dynamic_linker="$host_os dyld" dynamic_linker="$host_os dyld"
version_type=darwin version_type=darwin
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$sh ared_ext' library_names_spec='${libname}${release}${major}$shared_ext ${libname}$sh ared_ext'
soname_spec='${libname}${release}${major}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext'
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
shlibpath_var=DYLD_LIBRARY_PATH shlibpath_var=DYLD_LIBRARY_PATH
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
m4_if([$1], [],[ m4_if([$1], [],[
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
;; ;;
dgux*) dgux*)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
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'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
;; ;;
freebsd1*)
dynamic_linker=no
;;
freebsd* | dragonfly*) freebsd* | dragonfly*)
# DragonFly does not have aout. When/if they implement a new # DragonFly does not have aout. When/if they implement a new
# versioning mechanism, adjust this. # versioning mechanism, adjust this.
if test -x /usr/bin/objformat; then if test -x /usr/bin/objformat; then
objformat=`/usr/bin/objformat` objformat=`/usr/bin/objformat`
else else
case $host_os in case $host_os in
freebsd[[123]]*) objformat=aout ;; freebsd[[23]].*) objformat=aout ;;
*) objformat=elf ;; *) objformat=elf ;;
esac esac
fi fi
version_type=freebsd-$objformat version_type=freebsd-$objformat
case $version_type in case $version_type in
freebsd-elf*) freebsd-elf*)
library_names_spec='${libname}${release}${shared_ext}$versuffix ${lib name}${release}${shared_ext} $libname${shared_ext}' library_names_spec='${libname}${release}${shared_ext}$versuffix ${lib name}${release}${shared_ext} $libname${shared_ext}'
need_version=no need_version=no
need_lib_prefix=no need_lib_prefix=no
;; ;;
freebsd-*) freebsd-*)
library_names_spec='${libname}${release}${shared_ext}$versuffix $libn ame${shared_ext}$versuffix' library_names_spec='${libname}${release}${shared_ext}$versuffix $libn ame${shared_ext}$versuffix'
need_version=yes need_version=yes
;; ;;
esac esac
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
case $host_os in case $host_os in
freebsd2*) freebsd2.*)
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
;; ;;
freebsd3.[[01]]* | freebsdelf3.[[01]]*) freebsd3.[[01]]* | freebsdelf3.[[01]]*)
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
hardcode_into_libs=yes hardcode_into_libs=yes
;; ;;
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
shlibpath_overrides_runpath=no shlibpath_overrides_runpath=no
hardcode_into_libs=yes hardcode_into_libs=yes
;; ;;
*) # from 4.6 on, and DragonFly *) # from 4.6 on, and DragonFly
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
hardcode_into_libs=yes hardcode_into_libs=yes
;; ;;
esac esac
;; ;;
gnu*) gnu*)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
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'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
hardcode_into_libs=yes hardcode_into_libs=yes
;; ;;
hpux9* | hpux10* | hpux11*) haiku*)
version_type=linux # correct to gnu/linux during the next big refactor
need_lib_prefix=no
need_version=no
dynamic_linker="$host_os runtime_loader"
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname
}${release}${shared_ext}${major} ${libname}${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major'
shlibpath_var=LIBRARY_PATH
shlibpath_overrides_runpath=yes
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/
system/lib'
hardcode_into_libs=yes
;;
hpux9* | hpux10* | hpux11*)
# Give a soname corresponding to the major version so that dld.sl refuses to # Give a soname corresponding to the major version so that dld.sl refuses to
# link against other versions. # link against other versions.
version_type=sunos version_type=sunos
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
case $host_cpu in case $host_cpu in
ia64*) ia64*)
shrext_cmds='.so' shrext_cmds='.so'
hardcode_into_libs=yes hardcode_into_libs=yes
dynamic_linker="$host_os dld.so" dynamic_linker="$host_os dld.so"
skipping to change at line 3360 skipping to change at line 3573
;; ;;
*) *)
shrext_cmds='.sl' shrext_cmds='.sl'
dynamic_linker="$host_os dld.sl" dynamic_linker="$host_os dld.sl"
shlibpath_var=SHLIB_PATH shlibpath_var=SHLIB_PATH
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libna me}${release}${shared_ext}$major $libname${shared_ext}' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libna me}${release}${shared_ext}$major $libname${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major' soname_spec='${libname}${release}${shared_ext}$major'
;; ;;
esac esac
# HP-UX runs *really* slowly unless shared libraries are mode 555. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
postinstall_cmds='chmod 555 $lib' postinstall_cmds='chmod 555 $lib'
# or fails outright, so override atomically:
install_override_mode=555
;; ;;
interix[[3-9]]*) interix[[3-9]]*)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
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'
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
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
;; ;;
irix5* | irix6* | nonstopux*) irix5* | irix6* | nonstopux*)
case $host_os in case $host_os in
nonstopux*) version_type=nonstopux ;; nonstopux*) version_type=nonstopux ;;
*) *)
if test "$lt_cv_prog_gnu_ld" = yes; then if test "$lt_cv_prog_gnu_ld" = yes; then
version_type=linux version_type=linux # correct to gnu/linux during the next bi g refactor
else else
version_type=irix version_type=irix
fi ;; fi ;;
esac esac
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
soname_spec='${libname}${release}${shared_ext}$major' soname_spec='${libname}${release}${shared_ext}$major'
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${ shared_ext}' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname }${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${ shared_ext}'
case $host_os in case $host_os in
irix5* | nonstopux*) irix5* | nonstopux*)
skipping to change at line 3418 skipping to change at line 3633
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/li b${libsuff}" sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/li b${libsuff}"
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
hardcode_into_libs=yes hardcode_into_libs=yes
;; ;;
# No shared lib support for Linux oldld, aout, or coff. # No shared lib support for Linux oldld, aout, or coff.
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 glibc/ELF.
linux* | k*bsd*-gnu) linux* | k*bsd*-gnu | kopensolaris*-gnu)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
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
save_LDFLAGS=$LDFLAGS AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
save_libdir=$libdir [lt_cv_shlibpath_overrides_runpath=no
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ save_LDFLAGS=$LDFLAGS
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" save_libdir=$libdir
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.* LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
$libdir" >/dev/null], AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
[shlibpath_overrides_runpath=yes])]) [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH
LDFLAGS=$save_LDFLAGS .*$libdir" >/dev/null],
libdir=$save_libdir [lt_cv_shlibpath_overrides_runpath=yes])])
LDFLAGS=$save_LDFLAGS
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/l d.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;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/l d.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[ ^=]*$//;s/=[^= ]* / /g;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
# GNU dynamic linker. Since this was broken with cross compilers, # GNU dynamic linker. Since this was broken with cross compilers,
# most powerpc-linux boxes support dynamic linking these days and # most powerpc-linux boxes support dynamic linking these days and
# people can always --disable-shared, the test was removed, and we # people can always --disable-shared, the test was removed, and we
# assume the GNU/Linux dynamic linker is in use. # assume the GNU/Linux dynamic linker is in use.
dynamic_linker='GNU/Linux ld.so' dynamic_linker='GNU/Linux ld.so'
;; ;;
netbsdelf*-gnu)
version_type=linux
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname
}${release}${shared_ext}$major ${libname}${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
dynamic_linker='NetBSD ld.elf_so'
;;
netbsd*) netbsd*)
version_type=sunos version_type=sunos
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libna me}${shared_ext}$versuffix' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libna me}${shared_ext}$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
dynamic_linker='NetBSD (a.out) ld.so' dynamic_linker='NetBSD (a.out) ld.so'
else else
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libna me}${release}${shared_ext}$major ${libname}${shared_ext}' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libna me}${release}${shared_ext}$major ${libname}${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major' soname_spec='${libname}${release}${shared_ext}$major'
dynamic_linker='NetBSD ld.elf_so' dynamic_linker='NetBSD ld.elf_so'
fi fi
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
hardcode_into_libs=yes hardcode_into_libs=yes
;; ;;
newsos6) newsos6)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
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}'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
;; ;;
*nto* | *qnx*) *nto* | *qnx*)
version_type=qnx version_type=qnx
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}'
skipping to change at line 3547 skipping to change at line 3779
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr /lib /usr/local/lib /var/shlib" sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr /lib /usr/local/lib /var/shlib"
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
;; ;;
rdos*) rdos*)
dynamic_linker=no dynamic_linker=no
;; ;;
solaris*) solaris*)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
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'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
hardcode_into_libs=yes hardcode_into_libs=yes
# ldd complains unless libraries are executable # ldd complains unless libraries are executable
postinstall_cmds='chmod +x $lib' postinstall_cmds='chmod +x $lib'
;; ;;
skipping to change at line 3572 skipping to change at line 3804
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
if test "$with_gnu_ld" = yes; then if test "$with_gnu_ld" = yes; then
need_lib_prefix=no need_lib_prefix=no
fi fi
need_version=yes need_version=yes
;; ;;
sysv4 | sysv4.3*) sysv4 | sysv4.3*)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
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'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
case $host_vendor in case $host_vendor in
sni) sni)
shlibpath_overrides_runpath=no shlibpath_overrides_runpath=no
need_lib_prefix=no need_lib_prefix=no
runpath_var=LD_RUN_PATH runpath_var=LD_RUN_PATH
;; ;;
siemens) siemens)
skipping to change at line 3596 skipping to change at line 3828
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
shlibpath_overrides_runpath=no shlibpath_overrides_runpath=no
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
;; ;;
esac esac
;; ;;
sysv4*MP*) sysv4*MP*)
if test -d /usr/nec ;then if test -d /usr/nec ;then
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_e xt}.$major $libname${shared_ext}' library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_e xt}.$major $libname${shared_ext}'
soname_spec='$libname${shared_ext}.$major' soname_spec='$libname${shared_ext}.$major'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
fi fi
;; ;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
version_type=freebsd-elf version_type=freebsd-elf
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
skipping to change at line 3627 skipping to change at line 3859
sco3.2v5*) sco3.2v5*)
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
;; ;;
esac esac
fi fi
sys_lib_dlsearch_path_spec='/usr/lib' sys_lib_dlsearch_path_spec='/usr/lib'
;; ;;
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 # correct to gnu/linux during the next big refactor
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}'
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
;; ;;
uts4*) uts4*)
version_type=linux version_type=linux # correct to gnu/linux during the next big refactor
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'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
;; ;;
*) *)
dynamic_linker=no dynamic_linker=no
;; ;;
esac esac
AC_MSG_RESULT([$dynamic_linker]) AC_MSG_RESULT([$dynamic_linker])
skipping to change at line 3679 skipping to change at line 3911
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
_LT_DECL([], [shlibpath_overrides_runpath], [0], _LT_DECL([], [shlibpath_overrides_runpath], [0],
[Is shlibpath searched before the hard-coded library search path?]) [Is shlibpath searched before the hard-coded library search path?])
_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
_LT_DECL([], [library_names_spec], [1], _LT_DECL([], [library_names_spec], [1],
[[List of archive names. First name is the real one, the rest are link s. [[List of archive names. First name is the real one, the rest are link s.
The last name is the one that the linker finds with -lNAME]]) The last name is the one that the linker finds with -lNAME]])
_LT_DECL([], [soname_spec], [1], _LT_DECL([], [soname_spec], [1],
[[The coded name of the library, if different from the real name]]) [[The coded name of the library, if different from the real name]])
_LT_DECL([], [install_override_mode], [1],
[Permission mode override for installation of shared libraries])
_LT_DECL([], [postinstall_cmds], [2], _LT_DECL([], [postinstall_cmds], [2],
[Command to use after installation of a shared archive]) [Command to use after installation of a shared archive])
_LT_DECL([], [postuninstall_cmds], [2], _LT_DECL([], [postuninstall_cmds], [2],
[Command to use after uninstallation of a shared archive]) [Command to use after uninstallation of a shared archive])
_LT_DECL([], [finish_cmds], [2], _LT_DECL([], [finish_cmds], [2],
[Commands used to finish a libtool library installation in a directory] ) [Commands used to finish a libtool library installation in a directory] )
_LT_DECL([], [finish_eval], [1], _LT_DECL([], [finish_eval], [1],
[[As "finish_cmds", except a single script fragment to be evaled but [[As "finish_cmds", except a single script fragment to be evaled but
not shown]]) not shown]])
_LT_DECL([], [hardcode_into_libs], [0], _LT_DECL([], [hardcode_into_libs], [0],
skipping to change at line 3788 skipping to change at line 4022
# LT_PATH_LD # LT_PATH_LD
# ---------- # ----------
# find the pathname to the GNU or non-GNU linker # find the pathname to the GNU or non-GNU linker
AC_DEFUN([LT_PATH_LD], AC_DEFUN([LT_PATH_LD],
[AC_REQUIRE([AC_PROG_CC])dnl [AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_CANONICAL_BUILD])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_PROG_ECHO_BACKSLASH])dnl
AC_ARG_WITH([gnu-ld], AC_ARG_WITH([gnu-ld],
[AS_HELP_STRING([--with-gnu-ld], [AS_HELP_STRING([--with-gnu-ld],
[assume the C compiler uses GNU ld @<:@default=no@:>@])], [assume the C compiler uses GNU ld @<:@default=no@:>@])],
[test "$withval" = no || with_gnu_ld=yes], [test "$withval" = no || with_gnu_ld=yes],
[with_gnu_ld=no])dnl [with_gnu_ld=no])dnl
ac_prog=ld ac_prog=ld
if test "$GCC" = yes; then if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path. # Check if gcc -print-prog-name=ld gives a path.
skipping to change at line 3907 skipping to change at line 4142
[AC_CACHE_CHECK([for $LD option to reload object files], [AC_CACHE_CHECK([for $LD option to reload object files],
lt_cv_ld_reload_flag, lt_cv_ld_reload_flag,
[lt_cv_ld_reload_flag='-r']) [lt_cv_ld_reload_flag='-r'])
reload_flag=$lt_cv_ld_reload_flag reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in case $reload_flag in
"" | " "*) ;; "" | " "*) ;;
*) reload_flag=" $reload_flag" ;; *) reload_flag=" $reload_flag" ;;
esac esac
reload_cmds='$LD$reload_flag -o $output$reload_objs' reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
if test "$GCC" != yes; then
reload_cmds=false
fi
;;
darwin*) darwin*)
if test "$GCC" = yes; then if test "$GCC" = yes; then
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs ' reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs '
else else
reload_cmds='$LD$reload_flag -o $output$reload_objs' reload_cmds='$LD$reload_flag -o $output$reload_objs'
fi fi
;; ;;
esac esac
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dn _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files]
l )dnl
_LT_DECL([], [reload_cmds], [2])dnl _LT_TAGDECL([], [reload_cmds], [2])dnl
])# _LT_CMD_RELOAD ])# _LT_CMD_RELOAD
# _LT_CHECK_MAGIC_METHOD # _LT_CHECK_MAGIC_METHOD
# ---------------------- # ----------------------
# 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]) m4_require([_LT_DECL_OBJDUMP])
AC_CACHE_CHECK([how to recognize dependent libraries], AC_CACHE_CHECK([how to recognize dependent libraries],
skipping to change at line 3967 skipping to change at line 4207
cygwin*) cygwin*)
# func_win32_libid is a shell function defined in ltmain.sh # func_win32_libid is a shell function defined in ltmain.sh
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
lt_cv_file_magic_cmd='func_win32_libid' lt_cv_file_magic_cmd='func_win32_libid'
;; ;;
mingw* | pw32*) mingw* | pw32*)
# Base MSYS/MinGW do not provide the 'file' command needed by # Base MSYS/MinGW do not provide the 'file' command needed by
# func_win32_libid shell function, so use a weaker test based on 'objdump ', # func_win32_libid shell function, so use a weaker test based on 'objdump ',
# unless we find 'file', for example because we are cross-compiling. # unless we find 'file', for example because we are cross-compiling.
if ( file / ) >/dev/null 2>&1; then # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; t
hen
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
lt_cv_file_magic_cmd='func_win32_libid' lt_cv_file_magic_cmd='func_win32_libid'
else else
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architec # Keep this pattern in sync with the one in func_win32_libid.
ture: i386)?' lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*archite
cture: i386)?|pe-arm-wince|pe-x86-64)'
lt_cv_file_magic_cmd='$OBJDUMP -f' lt_cv_file_magic_cmd='$OBJDUMP -f'
fi fi
;; ;;
cegcc) cegcc*)
# use the weaker test based on 'objdump'. See mingw*. # use the weaker test based on 'objdump'. See mingw*.
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*arch itecture: arm)?' lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*arch itecture: arm)?'
lt_cv_file_magic_cmd='$OBJDUMP -f' 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*)
skipping to change at line 4006 skipping to change at line 4248
esac esac
else else
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
fi fi
;; ;;
gnu*) gnu*)
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
haiku*)
lt_cv_deplibs_check_method=pass_all
;;
hpux10.20* | hpux11*) hpux10.20* | hpux11*)
lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_cmd=/usr/bin/file
case $host_cpu in case $host_cpu in
ia64*) ia64*)
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0- 9]][[0-9]]) shared object file - IA64' lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0- 9]][[0-9]]) shared object file - IA64'
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
;; ;;
hppa*64*) hppa*64*)
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9 ]) shared object file - PA-RISC [0-9].[0-9]'] [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][ 0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
;; ;;
*) *)
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[ [0-9]].[[0-9]]) shared library' lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[ [0-9]]\.[[0-9]]) shared library'
lt_cv_file_magic_test_file=/usr/lib/libc.sl lt_cv_file_magic_test_file=/usr/lib/libc.sl
;; ;;
esac esac
;; ;;
interix[[3-9]]*) interix[[3-9]]*)
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
;; ;;
irix5* | irix6* | nonstopux*) irix5* | irix6* | nonstopux*)
case $LD in case $LD in
*-32|*"-32 ") libmagic=32-bit;; *-32|*"-32 ") libmagic=32-bit;;
*-n32|*"-n32 ") libmagic=N32;; *-n32|*"-n32 ") libmagic=N32;;
*-64|*"-64 ") libmagic=64-bit;; *-64|*"-64 ") libmagic=64-bit;;
*) libmagic=never-match;; *) libmagic=never-match;;
esac esac
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
# This must be Linux ELF. # This must be glibc/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* | netbsdelf*-gnu)
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[ [0-9]]+|_pic\.a)$' lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[ [0-9]]+|_pic\.a)$'
else else
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
fi fi
;; ;;
newos6*) newos6*)
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB ( executable|dynamic lib)' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB ( executable|dynamic lib)'
lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_cmd=/usr/bin/file
skipping to change at line 4118 skipping to change at line 4364
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
esac esac
;; ;;
tpf*) tpf*)
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
esac esac
]) ])
file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
case $host_os in
mingw* | pw32*)
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
want_nocaseglob=yes
else
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWx
XyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
fi
;;
esac
fi
file_magic_cmd=$lt_cv_file_magic_cmd file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown test -z "$deplibs_check_method" && deplibs_check_method=unknown
_LT_DECL([], [deplibs_check_method], [1], _LT_DECL([], [deplibs_check_method], [1],
[Method to check whether dependent libraries are shared objects]) [Method to check whether dependent libraries are shared objects])
_LT_DECL([], [file_magic_cmd], [1], _LT_DECL([], [file_magic_cmd], [1],
[Command to use when deplibs_check_method == "file_magic"]) [Command to use when deplibs_check_method = "file_magic"])
_LT_DECL([], [file_magic_glob], [1],
[How to find potential files when deplibs_check_method = "file_magic"])
_LT_DECL([], [want_nocaseglob], [1],
[Find potential files using nocaseglob when deplibs_check_method = "fil
e_magic"])
])# _LT_CHECK_MAGIC_METHOD ])# _LT_CHECK_MAGIC_METHOD
# 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_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.
skipping to change at line 4181 skipping to change at line 4446
fi fi
done done
IFS="$lt_save_ifs" IFS="$lt_save_ifs"
done done
: ${lt_cv_path_NM=no} : ${lt_cv_path_NM=no}
fi]) fi])
if test "$lt_cv_path_NM" != "no"; then if test "$lt_cv_path_NM" != "no"; then
NM="$lt_cv_path_NM" NM="$lt_cv_path_NM"
else else
# Didn't find any BSD compatible name lister, look for dumpbin. # Didn't find any BSD compatible name lister, look for dumpbin.
AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) if test -n "$DUMPBIN"; then :
# Let the user override the test.
else
AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
*COFF*)
DUMPBIN="$DUMPBIN -symbols"
;;
*)
DUMPBIN=:
;;
esac
fi
AC_SUBST([DUMPBIN]) AC_SUBST([DUMPBIN])
if test "$DUMPBIN" != ":"; then if test "$DUMPBIN" != ":"; then
NM="$DUMPBIN" NM="$DUMPBIN"
fi fi
fi fi
test -z "$NM" && NM=nm test -z "$NM" && NM=nm
AC_SUBST([NM]) AC_SUBST([NM])
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
[lt_cv_nm_interface="BSD nm" [lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext echo "int some_variable = 0;" > conftest.$ac_ext
(eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
(eval "$ac_compile" 2>conftest.err) (eval "$ac_compile" 2>conftest.err)
cat conftest.err >&AS_MESSAGE_LOG_FD cat conftest.err >&AS_MESSAGE_LOG_FD
(eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_ MESSAGE_LOG_FD) (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_ME SSAGE_LOG_FD)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&AS_MESSAGE_LOG_FD cat conftest.err >&AS_MESSAGE_LOG_FD
(eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
cat conftest.out >&AS_MESSAGE_LOG_FD cat conftest.out >&AS_MESSAGE_LOG_FD
if $GREP 'External.*some_variable' conftest.out > /dev/null; then if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin" lt_cv_nm_interface="MS dumpbin"
fi fi
rm -f conftest*]) rm -f conftest*])
])# LT_PATH_NM ])# LT_PATH_NM
# Old names: # Old names:
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
dnl aclocal-1.4 backwards compatibility: dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AM_PROG_NM], [])
dnl AC_DEFUN([AC_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], [])
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
# --------------------------------
# how to determine the name of the shared library
# associated with a specific link library.
# -- PORTME fill in with the dynamic library characteristics
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
[m4_require([_LT_DECL_EGREP])
m4_require([_LT_DECL_OBJDUMP])
m4_require([_LT_DECL_DLLTOOL])
AC_CACHE_CHECK([how to associate runtime and link libraries],
lt_cv_sharedlib_from_linklib_cmd,
[lt_cv_sharedlib_from_linklib_cmd='unknown'
case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
# two different shell functions defined in ltmain.sh
# decide which to use based on capabilities of $DLLTOOL
case `$DLLTOOL --help 2>&1` in
*--identify-strict*)
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
;;
*)
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
;;
esac
;;
*)
# fallback: assume linklib IS sharedlib
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
;;
esac
])
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
[Command to associate shared and link libraries])
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
# _LT_PATH_MANIFEST_TOOL
# ----------------------
# locate the manifest tool
m4_defun([_LT_PATH_MANIFEST_TOOL],
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest
_tool],
[lt_cv_path_mainfest_tool=no
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
cat conftest.err >&AS_MESSAGE_LOG_FD
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
lt_cv_path_mainfest_tool=yes
fi
rm -f conftest*])
if test "x$lt_cv_path_mainfest_tool" != xyes; then
MANIFEST_TOOL=:
fi
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
])# _LT_PATH_MANIFEST_TOOL
# LT_LIB_M # LT_LIB_M
# -------- # --------
# check for math library # check for math library
AC_DEFUN([LT_LIB_M], AC_DEFUN([LT_LIB_M],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl [AC_REQUIRE([AC_CANONICAL_HOST])dnl
LIBM= LIBM=
case $host in case $host in
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin* )
# These system don't have libm, or don't need it # These system don't have libm, or don't need it
;; ;;
*-ncr-sysv4.3*) *-ncr-sysv4.3*)
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
;; ;;
*) *)
AC_CHECK_LIB(m, cos, LIBM="-lm") AC_CHECK_LIB(m, cos, LIBM="-lm")
;; ;;
esac esac
skipping to change at line 4249 skipping to change at line 4586
dnl AC_DEFUN([AC_CHECK_LIBM], []) dnl AC_DEFUN([AC_CHECK_LIBM], [])
# _LT_COMPILER_NO_RTTI([TAGNAME]) # _LT_COMPILER_NO_RTTI([TAGNAME])
# ------------------------------- # -------------------------------
m4_defun([_LT_COMPILER_NO_RTTI], m4_defun([_LT_COMPILER_NO_RTTI],
[m4_require([_LT_TAG_COMPILER])dnl [m4_require([_LT_TAG_COMPILER])dnl
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
if test "$GCC" = yes; then if test "$GCC" = yes; then
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' case $cc_basename in
nvcc*)
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-buil
tin' ;;
*)
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
esac
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
lt_cv_prog_compiler_rtti_exceptions, lt_cv_prog_compiler_rtti_exceptions,
[-fno-rtti -fno-exceptions], [], [-fno-rtti -fno-exceptions], [],
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_ compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_ compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
fi fi
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
[Compiler flag to turn off builtin functions]) [Compiler flag to turn off builtin functions])
])# _LT_COMPILER_NO_RTTI ])# _LT_COMPILER_NO_RTTI
# _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_PROG_AWK])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
# Check for command to grab the raw symbol name followed by C symbol from n m. # Check for command to grab the raw symbol name followed by C symbol from n m.
AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_MSG_CHECKING([command to parse $NM output from $compiler object])
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
[ [
skipping to change at line 4332 skipping to change at line 4675
*GNU* | *'with BFD'*) *GNU* | *'with BFD'*)
symcode='[[ABCDGIRSTW]]' ;; symcode='[[ABCDGIRSTW]]' ;;
esac esac
# Transform an extracted symbol line into a proper C declaration. # Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently, # Some systems (esp. on ia64) link data and code symbols differently,
# 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/^: \([[^ ]]*\) $/ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]
{\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\ *$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$
"\2\", (void *) \&\2},/p'" / {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^
]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \
[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ (lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \
]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" ([[^ ]]*\)$/ {\"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*)
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
;; ;;
esac esac
# Try without a prefix underscore, then with it. # Try without a prefix underscore, then with it.
skipping to change at line 4357 skipping to change at line 4700
symxfrm="\\1 $ac_symprfx\\2 \\2" symxfrm="\\1 $ac_symprfx\\2 \\2"
# Write the raw and C identifiers. # Write the raw and C identifiers.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then if test "$lt_cv_nm_interface" = "MS dumpbin"; then
# Fake it for dumpbin and say T for any non-static function # Fake it for dumpbin and say T for any non-static function
# and D for any global variable. # and D for any global variable.
# Also find C++ and __fastcall symbols from MSVC++, # Also find C++ and __fastcall symbols from MSVC++,
# which start with @ or ?. # which start with @ or ?.
lt_cv_sys_global_symbol_pipe="$AWK ['"\ lt_cv_sys_global_symbol_pipe="$AWK ['"\
" {last_section=section; section=\$ 3};"\ " {last_section=section; section=\$ 3};"\
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
" \$ 0!~/External *\|/{next};"\ " \$ 0!~/External *\|/{next};"\
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
" {if(hide[section]) next};"\ " {if(hide[section]) next};"\
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx)) }"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx)) }"\
" ' prfx=^$ac_symprfx]" " ' prfx=^$ac_symprfx]"
else else
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcod e*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcod e*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
fi fi
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gn u_lto/d'"
# Check to see that the pipe works correctly. # Check to see that the pipe works correctly.
pipe_works=no pipe_works=no
rm -f conftest* rm -f conftest*
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
char nm_test_var; char nm_test_var;
skipping to change at line 4390 skipping to change at line 4735
void nm_test_func(void){} void nm_test_func(void){}
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
int main(){nm_test_var='a';nm_test_func();return(0);} int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF _LT_EOF
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
# Now try to grab the symbols. # Now try to grab the symbols.
nlist=conftest.nm nlist=conftest.nm
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe " \> $nlist) && test -s "$nlist"; then
# Try sorting and uniquifying the output. # Try sorting and uniquifying the output.
if sort "$nlist" | uniq > "$nlist"T; then if sort "$nlist" | uniq > "$nlist"T; then
mv -f "$nlist"T "$nlist" mv -f "$nlist"T "$nlist"
else else
rm -f "$nlist"T rm -f "$nlist"T
fi fi
# Make sure that we snagged all the symbols we need. # Make sure that we snagged all the symbols we need.
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
cat <<_LT_EOF > conftest.$ac_ext cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and test
s. */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
relocations are performed -- see ld's documentation on pseudo-relocs. *
/
# define LT@&t@_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data. */
# define LT@&t@_DLSYM_CONST
#else
# define LT@&t@_DLSYM_CONST const
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
_LT_EOF _LT_EOF
# Now generate the symbol file. # Now generate the symbol file.
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v ma in >> conftest.$ac_ext' eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v ma in >> conftest.$ac_ext'
cat <<_LT_EOF >> conftest.$ac_ext cat <<_LT_EOF >> conftest.$ac_ext
/* The mapping between symbol names and symbols. */ /* The mapping between symbol names and symbols. */
const struct { LT@&t@_DLSYM_CONST struct {
const char *name; const char *name;
void *address; void *address;
} }
lt__PROGRAM__LTX_preloaded_symbols[[]] = lt__PROGRAM__LTX_preloaded_symbols[[]] =
{ {
{ "@PROGRAM@", (void *) 0 }, { "@PROGRAM@", (void *) 0 },
_LT_EOF _LT_EOF
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2 },/" < "$nlist" | $GREP -v main >> conftest.$ac_ext $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2 },/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cat <<\_LT_EOF >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext
{0, (void *) 0} {0, (void *) 0}
skipping to change at line 4439 skipping to change at line 4796
return lt__PROGRAM__LTX_preloaded_symbols; return lt__PROGRAM__LTX_preloaded_symbols;
} }
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
_LT_EOF _LT_EOF
# Now try linking the two files. # Now try linking the two files.
mv conftest.$ac_objext conftstm.$ac_objext mv conftest.$ac_objext conftstm.$ac_objext
lt_save_LIBS="$LIBS" lt_globsym_save_LIBS=$LIBS
lt_save_CFLAGS="$CFLAGS" lt_globsym_save_CFLAGS=$CFLAGS
LIBS="conftstm.$ac_objext" LIBS="conftstm.$ac_objext"
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
pipe_works=yes pipe_works=yes
fi fi
LIBS="$lt_save_LIBS" LIBS=$lt_globsym_save_LIBS
CFLAGS="$lt_save_CFLAGS" CFLAGS=$lt_globsym_save_CFLAGS
else else
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
fi fi
else else
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
fi fi
else else
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
fi fi
else else
skipping to change at line 4480 skipping to change at line 4837
]) ])
if test -z "$lt_cv_sys_global_symbol_pipe"; then if test -z "$lt_cv_sys_global_symbol_pipe"; then
lt_cv_sys_global_symbol_to_cdecl= lt_cv_sys_global_symbol_to_cdecl=
fi fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl" ; then if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl" ; then
AC_MSG_RESULT(failed) AC_MSG_RESULT(failed)
else else
AC_MSG_RESULT(ok) AC_MSG_RESULT(ok)
fi fi
# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
nm_file_list_spec='@'
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
nm_file_list_spec='@'
fi
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
[Take the output of nm and produce a listing of raw symbols and C names ]) [Take the output of nm and produce a listing of raw symbols and C names ])
_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_DECL([global_symbol_to_c_name_address_lib_prefix],
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [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]) [Transform the output of nm in a C name address pair when lib prefix is needed])
_LT_DECL([], [nm_file_list_spec], [1],
[Specify filename containing input files for $NM])
]) # _LT_CMD_GLOBAL_SYMBOLS ]) # _LT_CMD_GLOBAL_SYMBOLS
# _LT_COMPILER_PIC([TAGNAME]) # _LT_COMPILER_PIC([TAGNAME])
# --------------------------- # ---------------------------
m4_defun([_LT_COMPILER_PIC], m4_defun([_LT_COMPILER_PIC],
[m4_require([_LT_TAG_COMPILER])dnl [m4_require([_LT_TAG_COMPILER])dnl
_LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_wl, $1)=
_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)=
_LT_TAGVAR(lt_prog_compiler_static, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)=
AC_MSG_CHECKING([for $compiler option to produce PIC])
m4_if([$1], [CXX], [ m4_if([$1], [CXX], [
# C++ specific cases for pic, static, wl, etc. # C++ specific cases for pic, static, wl, etc.
if test "$GXX" = yes; then if test "$GXX" = yes; then
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
case $host_os in case $host_os in
aix*) aix*)
# All AIX code is PIC. # All AIX code is PIC.
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
skipping to change at line 4551 skipping to change at line 4916
;; ;;
darwin* | rhapsody*) darwin* | rhapsody*)
# PIC is the default on this platform # PIC is the default on this platform
# 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'
;; ;;
*djgpp*) *djgpp*)
# DJGPP does not support shared libraries at all # DJGPP does not support shared libraries at all
_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)=
;; ;;
haiku*)
# PIC is the default for Haiku.
# The "-static" flag exists, but is broken.
_LT_TAGVAR(lt_prog_compiler_static, $1)=
;;
interix[[3-9]]*) interix[[3-9]]*)
# Interix 3.x gcc -fpic/-fPIC options generate broken code. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
# Instead, we relocate shared libraries at runtime. # Instead, we relocate shared libraries at runtime.
;; ;;
sysv4*MP*) sysv4*MP*)
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*)
skipping to change at line 4600 skipping to change at line 4970
fi fi
;; ;;
chorus*) chorus*)
case $cc_basename in case $cc_basename in
cxch68*) cxch68*)
# 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/C C/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/C C/libC.a $MVME_DIR/lib/classix/libcx.s.a"
;; ;;
esac esac
;; ;;
mingw* | cygwin* | os2* | pw32* | cegcc*)
# 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 exampl
e).
m4_if([$1], [GCJ], [],
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
;;
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'
;; ;;
ghcx*) ghcx*)
# Green Hills C++ Compiler # Green Hills C++ Compiler
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
;; ;;
*) *)
skipping to change at line 4656 skipping to change at line 5032
case $cc_basename in case $cc_basename in
CC*) CC*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
# CC pic flag -KPIC is the default. # CC pic flag -KPIC is the default.
;; ;;
*) *)
;; ;;
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'
;; ;;
ecpc* ) ecpc* )
# old Intel C++ for x86_64 which still supported -KPIC. # 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'
skipping to change at line 4689 skipping to change at line 5065
_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'
;; ;;
cxx*) cxx*)
# Compaq C++ # Compaq C++
# 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*) xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
# IBM XL 8.0 on PPC # IBM XL 8.0, 9.0 on PPC and BlueGene
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' _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'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
skipping to change at line 4720 skipping to change at line 5096
;; ;;
mvs*) mvs*)
case $cc_basename in case $cc_basename in
cxx*) cxx*)
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
;; ;;
*) *)
;; ;;
esac esac
;; ;;
netbsd*) netbsd* | netbsdelf*-gnu)
;; ;;
*qnx* | *nto*) *qnx* | *nto*)
# QNX uses GNU C++, but need to define -shared option too, otherwis e # QNX uses GNU C++, but need to define -shared option too, otherwis e
# it will coredump. # it will coredump.
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
;; ;;
osf3* | osf4* | osf5*) osf3* | osf4* | osf5*)
case $cc_basename in case $cc_basename in
KCC*) KCC*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
skipping to change at line 4752 skipping to change at line 5128
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
;; ;;
*) *)
;; ;;
esac esac
;; ;;
psos*) psos*)
;; ;;
solaris*) solaris*)
case $cc_basename in case $cc_basename in
CC*) CC* | sunCC*)
# Sun C++ 4.2, 5.x and Centerline C++ # Sun C++ 4.2, 5.x and Centerline C++
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
;; ;;
gcx*) gcx*)
# Green Hills C++ Compiler # Green Hills C++ Compiler
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
;; ;;
*) *)
skipping to change at line 4856 skipping to change at line 5232
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'])
;; ;;
darwin* | rhapsody*) darwin* | rhapsody*)
# PIC is the default on this platform # PIC is the default on this platform
# 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'
;; ;;
haiku*)
# PIC is the default for Haiku.
# The "-static" flag exists, but is broken.
_LT_TAGVAR(lt_prog_compiler_static, $1)=
;;
hpux*) hpux*)
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
# sets the default TLS model and affects inlining. # sets the default TLS model and affects inlining.
case $host_cpu in case $host_cpu in
hppa*64*) hppa*64*)
# +Z the default # +Z the default
;; ;;
*) *)
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
skipping to change at line 4898 skipping to change at line 5280
sysv4*MP*) sysv4*MP*)
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
;; ;;
*) *)
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
;; ;;
esac esac
case $cc_basename in
nvcc*) # Cuda Compiler Driver 2.2
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
_LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_pro
g_compiler_pic, $1)"
fi
;;
esac
else else
# PORTME Check for flag to pass linker flags through the system compile r. # PORTME Check for flag to pass linker flags through the system compile r.
case $host_os in case $host_os in
aix*) aix*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
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'
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 '
skipping to change at line 4940 skipping to change at line 5331
# Is there a better lt_prog_compiler_static that works with the bundl ed CC? # Is there a better lt_prog_compiler_static that works with the bundl ed CC?
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
;; ;;
irix5* | irix6* | nonstopux*) irix5* | irix6* | nonstopux*)
_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
# old Intel for x86_64 which still supported -KPIC. # old Intel for x86_64 which still supported -KPIC.
ecc*) 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 used to be incompatible with GCC.
# ICC 10 doesn't accept -KPIC any more. # ICC 10 doesn't accept -KPIC any more.
icc* | ifort*) icc* | ifort*)
_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)='-static' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
;; ;;
# Lahey Fortran 8.1. # Lahey Fortran 8.1.
lf95*) lf95*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
;; ;;
pgcc* | pgf77* | pgf90* | pgf95*) nagfor*)
# NAG Fortran compiler
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
;;
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
# 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'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
;; ;;
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*) xl* | bgxl* | bgf* | mpixl*)
# IBM XL C 8.0/Fortran 10.1 on PPC # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' _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\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.
[[0-3]]*)
# Sun Fortran 8.3 passes all unrecognized flags to the linker
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
;;
*Sun\ F* | *Sun*Fortran*)
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
;;
*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'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
;; ;;
*Sun\ F*) *Intel*\ [[CF]]*Compiler*)
# Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
;;
*Portland\ Group*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
;; ;;
esac esac
;; ;;
esac esac
;; ;;
newsos6) newsos6)
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
;; ;;
skipping to change at line 5023 skipping to change at line 5435
;; ;;
rdos*) rdos*)
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
;; ;;
solaris*) solaris*)
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
case $cc_basename in case $cc_basename in
f77* | f90* | f95*) f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
*) *)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
esac esac
;; ;;
sunos4*) sunos4*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
skipping to change at line 5080 skipping to change at line 5492
]) ])
case $host_os in case $host_os in
# For platforms which do not support PIC, -DPIC is meaningless: # For platforms which do not support PIC, -DPIC is meaningless:
*djgpp*) *djgpp*)
_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)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
;; ;;
esac esac
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], AC_CACHE_CHECK([for $compiler option to produce PIC],
[How to pass a linker flag through the compiler]) [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic
, $1)])
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $
1)
# #
# 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_p ic, $1) works], _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_p ic, $1) works],
[_LT_TAGVAR(lt_cv_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],
[_LT_TAGVAR(lt_prog_compiler_pic, $1)= [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
fi fi
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
[Additional compiler flags for building library objects]) [Additional compiler flags for building library objects])
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
[How to pass a linker flag through the compiler])
# #
# 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_TAGV AR(lt_prog_compiler_static, $1)\" wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGV AR(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_cv_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])
])# _LT_COMPILER_PIC ])# _LT_COMPILER_PIC
# _LT_LINKER_SHLIBS([TAGNAME]) # _LT_LINKER_SHLIBS([TAGNAME])
# ---------------------------- # ----------------------------
# See if the linker supports building shared libraries. # See if the linker supports building shared libraries.
m4_defun([_LT_LINKER_SHLIBS], m4_defun([_LT_LINKER_SHLIBS],
[AC_REQUIRE([LT_PATH_LD])dnl [AC_REQUIRE([LT_PATH_LD])dnl
AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_NM])dnl
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_EGREP])dnl
m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_SED])dnl
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
m4_require([_LT_TAG_COMPILER])dnl m4_require([_LT_TAG_COMPILER])dnl
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared librari es]) AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared librari es])
m4_if([$1], [CXX], [ m4_if([$1], [CXX], [
_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'
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.* ']
case $host_os in case $host_os in
aix[[4-9]]*) aix[[4-9]]*)
# If we're using GNU nm, then we don't want the "-C" option. # If we're using GNU nm, then we don't want the "-C" option.
# -C means demangle to AIX nm, but means don't demangle with GNU nm # -C means demangle to AIX nm, but means don't demangle with GNU nm
# Also, AIX nm treats weak defined symbols like other global defined
# symbols, whereas GNU nm marks them as "W".
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([subst r](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $ex port_symbols'
else else
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([subs tr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([subs tr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
fi fi
;; ;;
pw32*) pw32*)
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
;; ;;
cygwin* | mingw* | cegcc*) cygwin* | mingw* | cegcc*)
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $globa case $cc_basename in
l_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/ cl*)
;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/ _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESC
d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' RIPTOR_.*'
;; ;;
*)
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $glo
bal_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DAT
A/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[
]]/s/.* //'\'' | sort | uniq > $export_symbols'
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL
__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
;;
esac
;;
linux* | k*bsd*-gnu | gnu*)
_LT_TAGVAR(link_all_deplibs, $1)=no
;;
*) *)
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $globa l_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $globa l_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)=
_LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)=
_LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(compiler_needs_object, $1)=no
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
_LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)=
_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'
_LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no
_LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no
_LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
_LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)=
_LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_minus_L, $1)=no
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
_LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no
_LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(link_all_deplibs, $1)=unknown
_LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_cmds, $1)=
_LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)=
_LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)=
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
_LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)=
skipping to change at line 5208 skipping to change at line 5637
with_gnu_ld=no with_gnu_ld=no
fi fi
;; ;;
interix*) interix*)
# we just hope/assume this is gcc and not c89 (= MSVC++) # we just hope/assume this is gcc and not c89 (= MSVC++)
with_gnu_ld=yes with_gnu_ld=yes
;; ;;
openbsd*) openbsd*)
with_gnu_ld=no with_gnu_ld=no
;; ;;
linux* | k*bsd*-gnu | gnu*)
_LT_TAGVAR(link_all_deplibs, $1)=no
;;
esac esac
_LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(ld_shlibs, $1)=yes
# On some targets, GNU ld is compatible enough with the native linker
# that we're better off using the native interface for both.
lt_use_gnu_ld_interface=no
if test "$with_gnu_ld" = yes; then if test "$with_gnu_ld" = yes; then
case $host_os in
aix*)
# The AIX port of GNU ld has always aspired to compatibility
# with the native linker. However, as the warning in the GNU ld
# block says, versions before 2.19.5* couldn't really create working
# shared libraries, regardless of the interface used.
case `$LD -v 2>&1` in
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
*\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
*\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
*)
lt_use_gnu_ld_interface=yes
;;
esac
;;
*)
lt_use_gnu_ld_interface=yes
;;
esac
fi
if test "$lt_use_gnu_ld_interface" = yes; then
# If archive_cmds runs LD, not CC, wlarc should be empty # If archive_cmds runs LD, not CC, wlarc should be empty
wlarc='${wl}' wlarc='${wl}'
# Set some defaults for GNU ld with shared library support. These # Set some defaults for GNU ld with shared library support. These
# are reset later if shared libraries are not supported. Putting them # are reset later if shared libraries are not supported. Putting them
# here allows them to be overridden if necessary. # here allows them to be overridden if necessary.
runpath_var=LD_RUN_PATH runpath_var=LD_RUN_PATH
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
# ancient GNU ld didn't support --whole-archive et. al. # ancient GNU ld didn't support --whole-archive et. al.
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$conv enience '"$wlarc"'--no-whole-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$conv enience '"$wlarc"'--no-whole-archive'
else else
_LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)=
fi fi
supports_anon_versioning=no supports_anon_versioning=no
case `$LD -v 2>&1` in case `$LD -v 2>&1` in
*GNU\ gold*) supports_anon_versioning=yes ;;
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 .. . *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 .. .
*\ 2.11.*) ;; # other 2.11 versions *\ 2.11.*) ;; # other 2.11 versions
*) supports_anon_versioning=yes ;; *) supports_anon_versioning=yes ;;
esac esac
# See if GNU ld supports shared libraries. # See if GNU ld supports shared libraries.
case $host_os in case $host_os in
aix[[3-9]]*) aix[[3-9]]*)
# On AIX/PPC, the GNU linker is very broken # On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then if test "$host_cpu" != ia64; then
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
cat <<_LT_EOF 1>&2 cat <<_LT_EOF 1>&2
*** Warning: the GNU linker, at least up to release 2.9.1, is reported *** Warning: the GNU linker, at least up to release 2.19, is reported
*** to be unable to reliably create shared libraries on AIX. *** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support. If you *** Therefore, libtool is disabling shared libraries support. If you
*** really care for shared libraries, you may want to modify your PATH *** really care for shared libraries, you may want to install binutils
*** so that a non-GNU linker is found, and then restart. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
*** You will then need to restart the configuration process.
_LT_EOF _LT_EOF
fi fi
;; ;;
amigaos*) amigaos*)
case $host_cpu in case $host_cpu in
powerpc) powerpc)
# see comment about AmigaOS4 .so support # see comment about AmigaOS4 .so support
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $co mpiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $co mpiler_flags ${wl}-soname $wl$soname -o $lib'
skipping to change at line 5284 skipping to change at line 5744
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compil er_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compil er_flags ${wl}-soname $wl$soname -o $lib'
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
cygwin* | mingw* | pw32* | cegcc*) 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(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
_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
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $glo _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $glo
bal_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DAT bal_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DAT
A/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $expor A/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[
t_symbols' ]]/s/.* //'\'' | sort | uniq > $export_symbols'
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL
__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compil er_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker - -out-implib -Xlinker $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compil er_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker - -out-implib -Xlinker $lib'
# If the export-symbols file already is a .def file (1st line # If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is; otherwise, prepend... # is EXPORTS), use it as is; otherwise, prepend...
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symb ols`" = xEXPORTS; then _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symb ols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname.def; cp $export_symbols $output_objdir/$soname.def;
else else
echo EXPORTS > $output_objdir/$soname.def; echo EXPORTS > $output_objdir/$soname.def;
cat $export_symbols >> $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def;
fi~ fi~
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_f lags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out -implib -Xlinker $lib' $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_f lags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out -implib -Xlinker $lib'
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
haiku*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler
_flags ${wl}-soname $wl$soname -o $lib'
_LT_TAGVAR(link_all_deplibs, $1)=yes
;;
interix[[3-9]]*) interix[[3-9]]*)
_LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $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}-E' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc . # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc .
# Instead, shared libraries are loaded at an image base (0x10000000 b y # Instead, shared libraries are loaded at an image base (0x10000000 b y
# default) and relocated if they conflict, which is a slow very memor y # default) and relocated if they conflict, which is a slow very memor y
# consuming and fragmenting process. To avoid this, we pick a random , # consuming and fragmenting process. To avoid this, we pick a random ,
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at lin k # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at lin k
# 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-$$} % 409 6 / 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-$$} % 409 6 / 2 \* 262144 + 1342177280` -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$o utput_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compil er_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname. expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 13421772 80` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$o utput_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compil er_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname. expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 13421772 80` -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=' $pic_flag'
tmp_sharedflag='-shared' 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_c onvenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archi ve' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_c onvenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-who le-archive'
tmp_addflag=' $pic_flag' tmp_addflag=' $pic_flag'
;; ;;
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compile pgf77* | pgf90* | pgf95* | pgfortran*)
rs # Portland Group f77 and f90 compile
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for rs
conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_c _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for
onvenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archi conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_c
ve' onvenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-who
le-archive'
tmp_addflag=' $pic_flag -Mnomain' ;; tmp_addflag=' $pic_flag -Mnomain' ;;
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
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 lf95*) # Lahey Fortran 8.1
_LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)=
tmp_sharedflag='--shared' ;; tmp_sharedflag='--shared' ;;
xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
tmp_sharedflag='-qmkshrobj' tmp_sharedflag='-qmkshrobj'
tmp_addflag= ;; tmp_addflag= ;;
nvcc*) # Cuda Compiler Driver 2.2
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for
conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_c
onvenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-who
le-archive'
_LT_TAGVAR(compiler_needs_object, $1)=yes
;;
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_con venience=\"$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_con venience=\"$new_convenience,$conv\"; done; func_echo_all \"$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' ;;
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_o bjdir/$libname.ver~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_o bjdir/$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 $compile r_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$l ibname.ver -o $lib' $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compile r_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$l ibname.ver -o $lib'
fi fi
case $cc_basename in case $cc_basename in
xlf*) xlf* | bgf* | bgxlf* | mpixlf*)
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenien ce --no-whole-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenien ce --no-whole-archive'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdi
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' r'
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compi _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linke
ler_flags -soname $soname -o $lib' r_flags -soname $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~
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' $LD -shared $libobjs $deplibs $linker_flags -soname $soname -v ersion-script $output_objdir/$libname.ver -o $lib'
fi fi
;; ;;
esac esac
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
netbsd*) netbsd* | netbsdelf*-gnu)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $lin ker_flags -o $lib' _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $lin ker_flags -o $lib'
wlarc= wlarc=
else else
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib
r_flags ${wl}-soname $wl$soname -o $lib' s $compiler_flags ${wl}-soname $wl$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs
compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file
_symbols -o $lib' $wl$export_symbols -o $lib'
fi fi
;; ;;
solaris*) solaris*)
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
cat <<_LT_EOF 1>&2 cat <<_LT_EOF 1>&2
*** Warning: The releases 2.8.* of the GNU linker cannot reliably *** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems. Therefore, libtool *** create shared libraries on Solaris systems. Therefore, libtool
*** is disabling shared libraries support. We urge you to upgrade GNU *** is disabling shared libraries support. We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer. Another option is to modify *** binutils to release 2.9.1 or newer. Another option is to modify
*** your PATH or compiler configuration so that the native linker is *** your PATH or compiler configuration so that the native linker is
*** used, and then restart. *** used, and then restart.
_LT_EOF _LT_EOF
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null ; then elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null ; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib
r_flags ${wl}-soname $wl$soname -o $lib' s $compiler_flags ${wl}-soname $wl$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs
compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file
_symbols -o $lib' $wl$export_symbols -o $lib'
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
case `$LD -v 2>&1` in case `$LD -v 2>&1` in
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
cat <<_LT_EOF 1>&2 cat <<_LT_EOF 1>&2
skipping to change at line 5461 skipping to change at line 5932
sunos4*) sunos4*)
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $l ib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $l ib $libobjs $deplibs $linker_flags'
wlarc= wlarc=
_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
;; ;;
*) *)
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(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib
r_flags ${wl}-soname $wl$soname -o $lib' s $compiler_flags ${wl}-soname $wl$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs
compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file
_symbols -o $lib' $wl$export_symbols -o $lib'
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
esac esac
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
runpath_var= runpath_var=
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
_LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)=
skipping to change at line 5502 skipping to change at line 5973
aix[[4-9]]*) aix[[4-9]]*)
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
# On IA64, the linker does run time linking by default, so we don't # On IA64, the linker does run time linking by default, so we don't
# have to do anything special. # have to do anything special.
aix_use_runtimelinking=no aix_use_runtimelinking=no
exp_sym_flag='-Bexport' exp_sym_flag='-Bexport'
no_entry_flag="" no_entry_flag=""
else else
# If we're using GNU nm, then we don't want the "-C" option. # If we're using GNU nm, then we don't want the "-C" option.
# -C means demangle to AIX nm, but means don't demangle with GNU nm # -C means demangle to AIX nm, but means don't demangle with GNU nm
# Also, AIX nm treats weak defined symbols like other global
# defined symbols, whereas GNU nm marks them as "W".
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenienc e | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([su bstr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenienc e | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
else else
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenien ce | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([s ubstr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenien ce | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([s ubstr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
fi fi
aix_use_runtimelinking=no aix_use_runtimelinking=no
# Test if we are trying to use run time linking or normal # Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we # AIX style linking. If -brtl is somewhere in LDFLAGS, we
# need to do runtime linking. # need to do runtime linking.
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
for ld_flag in $LDFLAGS; do for ld_flag in $LDFLAGS; do
skipping to change at line 5565 skipping to change at line 6038
_LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)=
fi fi
;; ;;
esac esac
shared_flag='-shared' shared_flag='-shared'
if test "$aix_use_runtimelinking" = yes; then if test "$aix_use_runtimelinking" = yes; then
shared_flag="$shared_flag "'${wl}-G' shared_flag="$shared_flag "'${wl}-G'
fi fi
_LT_TAGVAR(link_all_deplibs, $1)=no
else else
# not using gcc # not using gcc
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
# chokes on -Wl,-G. The following line is correct: # chokes on -Wl,-G. The following line is correct:
shared_flag='-G' shared_flag='-G'
else else
if test "$aix_use_runtimelinking" = yes; then if test "$aix_use_runtimelinking" = yes; then
shared_flag='${wl}-G' shared_flag='${wl}-G'
else else
skipping to change at line 5590 skipping to change at line 6064
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' _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 ex port. # underscore (_), so it is better to generate a list of symbols to ex port.
_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),
# -berok will link without error, but may produce a broken library. # -berok will link without error, but may produce a broken library.
_LT_TAGVAR(allow_undefined_flag, $1)='-berok' _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
# Determine the default libpath from the value encoded in an # Determine the default libpath from the value encoded in an
# empty executable. # empty executable.
_LT_SYS_MODULE_PATH_AIX _LT_SYS_MODULE_PATH_AIX([$1])
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:' "$aix_libpath" _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:' "$aix_libpath"
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${all ow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $X sed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${all ow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag }"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
else else
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/li b:/lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/li b:/lib'
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $outpu t_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $outpu t_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
else else
# Determine the default libpath from the value encoded in an # Determine the default libpath from the value encoded in an
# empty executable. # empty executable.
_LT_SYS_MODULE_PATH_AIX _LT_SYS_MODULE_PATH_AIX([$1])
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:' "$aix_libpath" _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:' "$aix_libpath"
# Warning - without using the other run time loading flags, # Warning - without using the other run time loading flags,
# -berok will link without error, but may produce a broken library . # -berok will link without error, but may produce a broken library .
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
# Exported symbols can be pulled into shared objects from archives if test "$with_gnu_ld" = yes; then
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' # We only use this code for GNU lds that support --whole-archive
.
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$co
nvenience ${wl}--no-whole-archive'
else
# Exported symbols can be pulled into shared objects from archiv
es
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
fi
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
# This is similar to how AIX traditionally builds its shared libra ries. # This is similar to how AIX traditionally builds its shared libra ries.
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $outpu t_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE: $export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libnam e$release.a $output_objdir/$soname' _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $outpu t_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE: $export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libnam e$release.a $output_objdir/$soname'
fi fi
fi fi
;; ;;
amigaos*) amigaos*)
case $host_cpu in case $host_cpu in
powerpc) powerpc)
skipping to change at line 5640 skipping to change at line 6119
bsdi[[45]]*) bsdi[[45]]*)
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
;; ;;
cygwin* | mingw* | pw32* | cegcc*) 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)=' ' case $cc_basename in
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported cl*)
# Tell ltmain to make .lib files, not .a files. # Native MSVC
libext=lib _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
# Tell ltmain to make .dll files, not .so files. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
shrext_cmds=".dll" _LT_TAGVAR(always_export_symbols, $1)=yes
# FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(file_list_spec, $1)='@'
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ # Tell ltmain to make .lib files, not .a files.
ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' libext=lib
# The linker will automatically build a .lib file if we build a DLL. # Tell ltmain to make .dll files, not .so files.
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true' shrext_cmds=".dll"
# FIXME: Should let the user specify the lib program. # FIXME: Setting linknames here is a bad hack.
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplib _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs
s' $compiler_flags $deplibs -Wl,-dll~linknames='
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symb
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ols`" = xEXPORTS; then
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '
1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
else
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $expo
rt_symbols > $output_objdir/$soname.exp;
fi~
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplib
s "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$l
ibname.dll.lib"~
linknames='
# The linker will not automatically build a static lib if we build a
DLL.
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DES
CRIPTOR_.*'
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $gl
obal_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DA
TA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $expo
rt_symbols'
# Don't use ranlib
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
lt_tool_outputfile="@TOOL_OUTPUT@"~
case $lt_outputfile in
*.exe|*.EXE) ;;
*)
lt_outputfile="$lt_outputfile.exe"
lt_tool_outputfile="$lt_tool_outputfile.exe"
;;
esac~
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifes
t"; then
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputr
esource:"$lt_tool_outputfile" || exit 1;
$RM "$lt_outputfile.manifest";
fi'
;;
*)
# Assume MSVC wrapper
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
# Tell ltmain to make .lib files, not .a files.
libext=lib
# Tell ltmain to make .dll files, not .so files.
shrext_cmds=".dll"
# FIXME: Setting linknames here is a bad hack.
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `
func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
# The linker will automatically build a .lib file if we build a DLL.
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
# FIXME: Should let the user specify the lib program.
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_depli
bs'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
;;
esac
;; ;;
darwin* | rhapsody*) darwin* | rhapsody*)
_LT_DARWIN_LINKER_FEATURES($1) _LT_DARWIN_LINKER_FEATURES($1)
;; ;;
dgux*) dgux*)
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $dep libs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $dep libs $linker_flags'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
;; ;;
freebsd1*)
_LT_TAGVAR(ld_shlibs, $1)=no
;;
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructo r # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructo r
# support. Future versions do this automatically, but an explicit c++r t0.o # support. Future versions do this automatically, but an explicit c++r t0.o
# does not break anything, and helps significantly (at the cost of a li ttle # does not break anything, and helps significantly (at the cost of a li ttle
# extra space). # extra space).
freebsd2.2*) freebsd2.2*)
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depli bs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depli bs $linker_flags /usr/lib/c++rt0.o'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
_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
;; ;;
# Unfortunately, older versions of FreeBSD 2 do not have this feature. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
freebsd2*) freebsd2.*)
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depli bs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depli bs $linker_flags'
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
;; ;;
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
freebsd* | dragonfly*) freebsd* | dragonfly*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -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)='-R$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
_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
;; ;;
hpux9*) hpux9*)
if test "$GCC" = yes; then if test "$GCC" = yes; then
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $dep libs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdi r/$soname $lib' _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_o bjdir/$soname $lib'
else else
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $ install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~te st $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $ install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~te st $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
fi fi
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
# hardcode_minus_L: Not really in the search PATH, # hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library. # but as the default location of the library.
_LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
;; ;;
hpux10*) hpux10*)
if test "$GCC" = yes -a "$with_gnu_ld" = no; then if test "$GCC" = yes && test "$with_gnu_ld" = no; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$so
${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' name ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags
'
else else
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir - o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir - o $lib $libobjs $deplibs $linker_flags'
fi fi
if test "$with_gnu_ld" = no; then if test "$with_gnu_ld" = no; then
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
# hardcode_minus_L: Not really in the search PATH, # hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library. # but as the default location of the library.
_LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes
fi fi
;; ;;
hpux11*) hpux11*)
if test "$GCC" = yes -a "$with_gnu_ld" = no; then if test "$GCC" = yes && test "$with_gnu_ld" = no; then
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 -fPIC ${wl}+h ${wl}$sona me ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$ soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
;; ;;
*) *)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$sona me ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$ soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_fla gs'
;; ;;
esac esac
else else
case $host_cpu in case $host_cpu in
hppa*64*) hppa*64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
;; ;;
ia64*) ia64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+no defaultrpath -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+no defaultrpath -o $lib $libobjs $deplibs $compiler_flags'
;; ;;
*) *)
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b m4_if($1, [], [
${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' # Older versions of the 11.00 compiler do not understand -b yet
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP
does)
_LT_LINKER_OPTION([if $CC understands -b],
_LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}
+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_lib
dir -o $lib $libobjs $deplibs $linker_flags'])],
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b
${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
;; ;;
esac esac
fi fi
if test "$with_gnu_ld" = no; then if test "$with_gnu_ld" = no; then
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
case $host_cpu in case $host_cpu in
hppa*64*|ia64*) hppa*64*|ia64*)
_LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no
skipping to change at line 5782 skipping to change at line 6307
# hardcode_minus_L: Not really in the search PATH, # hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library. # but as the default location of the library.
_LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes
;; ;;
esac esac
fi fi
;; ;;
irix5* | irix6* | nonstopux*) irix5* | irix6* | nonstopux*)
if test "$GCC" = yes; then if test "$GCC" = yes; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile r_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-se t_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_obj dir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib s $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_e cho_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${o utput_objdir}/so_locations -o $lib'
# Try to use the -exported_symbol ld option, if it does not # Try to use the -exported_symbol ld option, if it does not
# work, assume that -exports_file does not work either and # work, assume that -exports_file does not work either and
# implicitly export all symbols. # implicitly export all symbols.
save_LDFLAGS="$LDFLAGS" # This should be the same for all languages, so no per-tag cache var
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-upda iable.
te_registry ${wl}/dev/null" AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol
AC_LINK_IFELSE(int foo(void) {}, ],
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplib [lt_cv_irix_exported_symbol],
s $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO [save_LDFLAGS="$LDFLAGS"
"X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-up
output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib date_registry ${wl}/dev/null"
' AC_LINK_IFELSE(
) [AC_LANG_SOURCE(
LDFLAGS="$save_LDFLAGS" [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
[C++], [[int foo (void) { return 0; }]],
[Fortran 77], [[
subroutine foo
end]],
[Fortran], [[
subroutine foo
end]])])],
[lt_cv_irix_exported_symbol=yes],
[lt_cv_irix_exported_symbol=no])
LDFLAGS="$save_LDFLAGS"])
if test "$lt_cv_irix_exported_symbol" = yes; then
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libob
js $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring"
&& func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registr
y ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbol
s -o $lib'
fi
else else
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile
r_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $vers r_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_versio
tring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' n $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $
compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_versio compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set
n $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -expo _version $verstring"` -update_registry ${output_objdir}/so_locations -expor
rts_file $export_symbols -o $lib' ts_file $export_symbols -o $lib'
fi fi
_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 ${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
_LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes
;; ;;
netbsd*) netbsd* | netbsdelf*-gnu)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depl ibs $linker_flags' # a.out _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depl ibs $linker_flags' # a.out
else else
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
fi fi
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
_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
;; ;;
skipping to change at line 5856 skipping to change at line 6396
fi fi
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi 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
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_ob jdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$ libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtd ll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_ob jdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NO NSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$lib name.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$ libname.a $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$ libname.a $output_objdir/$libname.def'
;; ;;
osf3*) osf3*)
if test "$GCC" = yes; then if test "$GCC" = yes; then
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl} \*' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl} \*'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstri ng" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_reg istry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstri ng" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_regi stry ${wl}${output_objdir}/so_locations -o $lib'
else else
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $EC HO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so _locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && fun c_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_ locations -o $lib'
fi fi
_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 ${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)=:
;; ;;
osf4* | osf5*) # as osf3* with the addition of -msym flag osf4* | osf5*) # as osf3* with the addition of -msym flag
if test "$GCC" = yes; then if test "$GCC" = yes; then
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl} \*' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl} \*'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test - n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl} -update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pi c_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$sona me `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstrin g"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
else else
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objd ir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdi r}/so_locations -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\ \n" "-hidden">> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\ \n" "-hidden">> $lib.exp~
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compil er_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO " X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_loc ations -o $lib~$RM $lib.exp' $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compil er_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO " -set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
# Both c and cxx compiler support -rpath directly # Both c and cxx compiler support -rpath directly
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
fi fi
_LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
;; ;;
solaris*) solaris*)
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs' _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
if test "$GCC" = yes; then if test "$GCC" = yes; then
wlarc='${wl}' wlarc='${wl}'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}tex t ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$ soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl }-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
else else
case `$CC -V 2>&1` in case `$CC -V 2>&1` in
*"Compilers 5.0"*) *"Compilers 5.0"*)
wlarc='' wlarc=''
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $so name -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $so name -o $lib $libobjs $deplibs $linker_flags'
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~c at $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; }; " >> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~c at $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; }; " >> $lib.exp~
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libo bjs $deplibs $linker_flags~$RM $lib.exp' $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libo bjs $deplibs $linker_flags~$RM $lib.exp'
;; ;;
*) *)
wlarc='${wl}' wlarc='${wl}'
skipping to change at line 6073 skipping to change at line 6613
if test "$enable_shared" = yes && test "$GCC" = yes; then if test "$enable_shared" = yes && test "$GCC" = yes; then
case $_LT_TAGVAR(archive_cmds, $1) in case $_LT_TAGVAR(archive_cmds, $1) in
*'~'*) *'~'*)
# FIXME: we may have to deal with multi-command sequences. # FIXME: we may have to deal with multi-command sequences.
;; ;;
'$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),
echo "$lt_simple_compile_test_code" > conftest.$ac_ext [$RM conftest*
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
soname=conftest if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
lib=conftest soname=conftest
libobjs=conftest.$ac_objext lib=conftest
deplibs= libobjs=conftest.$ac_objext
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) deplibs=
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
compiler_flags=-v pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
linker_flags=-v compiler_flags=-v
verstring= linker_flags=-v
output_objdir=. verstring=
libname=conftest output_objdir=.
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) libname=conftest
_LT_TAGVAR(allow_undefined_flag, $1)= lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc _LT_TAGVAR(allow_undefined_flag, $1)=
\" \>/dev/null 2\>\&1) if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc
then \" \>/dev/null 2\>\&1)
_LT_TAGVAR(archive_cmds_need_lc, $1)=no then
else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes else
fi lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag fi
else _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
cat conftest.err 1>&5 else
fi cat conftest.err 1>&5
$RM conftest* fi
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) $RM conftest*
])
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds
_need_lc, $1)
;; ;;
esac esac
fi fi
;; ;;
esac esac
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
[Whether or not to add -lc for building shared libraries]) [Whether or not to add -lc for building shared libraries])
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
[enable_shared_with_static_runtimes], [0], [enable_shared_with_static_runtimes], [0],
skipping to change at line 6139 skipping to change at line 6681
_LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [module_expsym_cmds], [2])
_LT_TAGDECL([], [with_gnu_ld], [1], _LT_TAGDECL([], [with_gnu_ld], [1],
[Whether we are building with GNU ld or not]) [Whether we are building with GNU ld or not])
_LT_TAGDECL([], [allow_undefined_flag], [1], _LT_TAGDECL([], [allow_undefined_flag], [1],
[Flag that allows shared libraries with undefined symbols to be built]) [Flag that allows shared libraries with undefined symbols to be built])
_LT_TAGDECL([], [no_undefined_flag], [1], _LT_TAGDECL([], [no_undefined_flag], [1],
[Flag that enforces no undefined symbols]) [Flag that enforces no undefined symbols])
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
[Flag to hardcode $libdir into a binary during linking. [Flag to hardcode $libdir into a binary during linking.
This must work even if $libdir does not exist]) This must work even if $libdir does not exist])
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
[[If ld is used when linking, flag to hardcode $libdir into a binary
during linking. This must work even if $libdir does not exist]])
_LT_TAGDECL([], [hardcode_libdir_separator], [1], _LT_TAGDECL([], [hardcode_libdir_separator], [1],
[Whether we need a single "-rpath" flag with a separated argument]) [Whether we need a single "-rpath" flag with a separated argument])
_LT_TAGDECL([], [hardcode_direct], [0], _LT_TAGDECL([], [hardcode_direct], [0],
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcode s [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcode s
DIR into the resulting binary]) DIR into the resulting binary])
_LT_TAGDECL([], [hardcode_direct_absolute], [0], _LT_TAGDECL([], [hardcode_direct_absolute], [0],
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcode s [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcode s
DIR into the resulting binary and the resulting library dependency is DIR into the resulting binary and the resulting library dependency is
"absolute", i.e impossible to change by setting ${shlibpath_var} if the "absolute", i.e impossible to change by setting ${shlibpath_var} if the
library is relocated]) library is relocated])
skipping to change at line 6167 skipping to change at line 6706
into the resulting binary]) into the resulting binary])
_LT_TAGDECL([], [hardcode_automatic], [0], _LT_TAGDECL([], [hardcode_automatic], [0],
[Set to "yes" if building a shared library automatically hardcodes DIR [Set to "yes" if building a shared library automatically hardcodes DIR
into the library and all subsequent libraries and executables linked into the library and all subsequent libraries and executables linked
against it]) against it])
_LT_TAGDECL([], [inherit_rpath], [0], _LT_TAGDECL([], [inherit_rpath], [0],
[Set to yes if linker adds runtime paths of dependent libraries [Set to yes if linker adds runtime paths of dependent libraries
to runtime path list]) to runtime path list])
_LT_TAGDECL([], [link_all_deplibs], [0], _LT_TAGDECL([], [link_all_deplibs], [0],
[Whether libtool must link a program against all its dependency librari es]) [Whether libtool must link a program against all its dependency librari es])
_LT_TAGDECL([], [fix_srcfile_path], [1],
[Fix the shell variable $srcfile for the compiler])
_LT_TAGDECL([], [always_export_symbols], [0], _LT_TAGDECL([], [always_export_symbols], [0],
[Set to "yes" if exported symbols are required]) [Set to "yes" if exported symbols are required])
_LT_TAGDECL([], [export_symbols_cmds], [2], _LT_TAGDECL([], [export_symbols_cmds], [2],
[The commands to list exported symbols]) [The commands to list exported symbols])
_LT_TAGDECL([], [exclude_expsyms], [1], _LT_TAGDECL([], [exclude_expsyms], [1],
[Symbols that should not be listed in the preloaded symbols]) [Symbols that should not be listed in the preloaded symbols])
_LT_TAGDECL([], [include_expsyms], [1], _LT_TAGDECL([], [include_expsyms], [1],
[Symbols that must always be exported]) [Symbols that must always be exported])
_LT_TAGDECL([], [prelink_cmds], [2], _LT_TAGDECL([], [prelink_cmds], [2],
[Commands necessary for linking programs (against libraries) with templ ates]) [Commands necessary for linking programs (against libraries) with templ ates])
_LT_TAGDECL([], [postlink_cmds], [2],
[Commands necessary for finishing linking programs])
_LT_TAGDECL([], [file_list_spec], [1], _LT_TAGDECL([], [file_list_spec], [1],
[Specify filename containing input files]) [Specify filename containing input files])
dnl FIXME: Not yet implemented dnl FIXME: Not yet implemented
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
dnl [Compiler flag to generate thread safe objects]) dnl [Compiler flag to generate thread safe objects])
])# _LT_LINKER_SHLIBS ])# _LT_LINKER_SHLIBS
# _LT_LANG_C_CONFIG([TAG]) # _LT_LANG_C_CONFIG([TAG])
# ------------------------ # ------------------------
# Ensure that the configuration variables for a C compiler are suitably # Ensure that the configuration variables for a C compiler are suitably
skipping to change at line 6266 skipping to change at line 6805
# Make sure either enable_shared or enable_static is yes. # Make sure either enable_shared or enable_static is yes.
test "$enable_shared" = yes || enable_static=yes test "$enable_shared" = yes || enable_static=yes
AC_MSG_RESULT([$enable_static]) AC_MSG_RESULT([$enable_static])
_LT_CONFIG($1) _LT_CONFIG($1)
fi fi
AC_LANG_POP AC_LANG_POP
CC="$lt_save_CC" CC="$lt_save_CC"
])# _LT_LANG_C_CONFIG ])# _LT_LANG_C_CONFIG
# _LT_PROG_CXX
# ------------
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
# compiler, we have our own version here.
m4_defun([_LT_PROG_CXX],
[
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
AC_PROG_CXX
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
(test "X$CXX" != "Xg++"))) ; then
AC_PROG_CXXCPP
else
_lt_caught_CXX_error=yes
fi
popdef([AC_MSG_ERROR])
])# _LT_PROG_CXX
dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([_LT_PROG_CXX], [])
# _LT_LANG_CXX_CONFIG([TAG]) # _LT_LANG_CXX_CONFIG([TAG])
# -------------------------- # --------------------------
# Ensure that the configuration variables for a C++ compiler are suitably # Ensure that the configuration variables for a C++ compiler are suitably
# defined. These variables are subsequently used by _LT_CONFIG to write # defined. These variables are subsequently used by _LT_CONFIG to write
# the compiler configuration to `libtool'. # the compiler configuration to `libtool'.
m4_defun([_LT_LANG_CXX_CONFIG], m4_defun([_LT_LANG_CXX_CONFIG],
[AC_REQUIRE([_LT_PROG_CXX])dnl [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_EGREP])dnl
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
(test "X$CXX" != "Xg++"))) ; then
AC_PROG_CXXCPP
else
_lt_caught_CXX_error=yes
fi
AC_LANG_PUSH(C++) AC_LANG_PUSH(C++)
_LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(archive_cmds_need_lc, $1)=no
_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_expsym_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)=
_LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(compiler_needs_object, $1)=no
_LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)=
_LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no
_LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
_LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)=
_LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_minus_L, $1)=no
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
_LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no
_LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no
_LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_cmds, $1)=
_LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)=
_LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(link_all_deplibs, $1)=unknown
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
_LT_TAGVAR(reload_flag, $1)=$reload_flag
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
_LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(no_undefined_flag, $1)=
_LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)=
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
# Source file extension for C++ test sources. # Source file extension for C++ test sources.
ac_ext=cpp ac_ext=cpp
# Object file extension for compiled C++ test sources. # Object file extension for compiled C++ test sources.
objext=o objext=o
_LT_TAGVAR(objext, $1)=$objext _LT_TAGVAR(objext, $1)=$objext
skipping to change at line 6348 skipping to change at line 6874
# ltmain only uses $CC for tagged configurations so make sure $CC is set. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER _LT_TAG_COMPILER
# save warnings/boilerplate of simple test code # save warnings/boilerplate of simple test code
_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_CFLAGS=$CFLAGS
lt_save_LD=$LD lt_save_LD=$LD
lt_save_GCC=$GCC lt_save_GCC=$GCC
GCC=$GXX GCC=$GXX
lt_save_with_gnu_ld=$with_gnu_ld lt_save_with_gnu_ld=$with_gnu_ld
lt_save_path_LD=$lt_cv_path_LD lt_save_path_LD=$lt_cv_path_LD
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
else else
$as_unset lt_cv_prog_gnu_ld $as_unset lt_cv_prog_gnu_ld
fi fi
if test -n "${lt_cv_path_LDCXX+set}"; then if test -n "${lt_cv_path_LDCXX+set}"; then
lt_cv_path_LD=$lt_cv_path_LDCXX lt_cv_path_LD=$lt_cv_path_LDCXX
else else
$as_unset lt_cv_path_LD $as_unset lt_cv_path_LD
fi fi
test -z "${LDCXX+set}" || LD=$LDCXX test -z "${LDCXX+set}" || LD=$LDCXX
CC=${CXX-"c++"} CC=${CXX-"c++"}
CFLAGS=$CXXFLAGS
compiler=$CC compiler=$CC
_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
# We don't want -fno-exception when compiling C++ code, so set the # We don't want -fno-exception when compiling C++ code, so set the
# no_builtin_flag separately # no_builtin_flag separately
if test "$GXX" = yes; then if test "$GXX" = yes; then
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
else else
skipping to change at line 6386 skipping to change at line 6914
fi fi
if test "$GXX" = yes; then if test "$GXX" = yes; then
# Set up default GNU C++ configuration # Set up default GNU C++ configuration
LT_PATH_LD LT_PATH_LD
# Check if GNU C++ uses GNU ld as the underlying linker, since the # Check if GNU C++ uses GNU ld as the underlying linker, since the
# archiving commands below assume that GNU ld is being used. # archiving commands below assume that GNU ld is being used.
if test "$with_gnu_ld" = yes; then if test "$with_gnu_ld" = yes; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $pred
$libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname
-o $lib' $wl$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdli
objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-
$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir ' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir '
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
# If archive_cmds runs LD, not CC, wlarc should be empty # If archive_cmds runs LD, not CC, wlarc should be empty
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
# investigate it a little bit more. (MM) # investigate it a little bit more. (MM)
wlarc='${wl}' wlarc='${wl}'
# ancient GNU ld didn't support --whole-archive et. al. # ancient GNU ld didn't support --whole-archive et. al.
skipping to change at line 6419 skipping to change at line 6947
# command for GNU C++ for the case where it uses the native # command for GNU C++ for the case where it uses the native
# linker, instead of GNU ld. If possible, this setting should # linker, instead of GNU ld. If possible, this setting should
# overridden to take advantage of the native linker features on # overridden to take advantage of the native linker features on
# the platform it is being used on. # the platform it is being used on.
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
fi fi
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when # what "hidden" libraries, object files and flags are used when
# linking a shared library. # linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
else else
GXX=no GXX=no
with_gnu_ld=no with_gnu_ld=no
wlarc= wlarc=
fi fi
# PORTME: fill in a description of your system's C++ link characteristi cs # PORTME: fill in a description of your system's C++ link characteristi cs
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared lib raries]) AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared lib raries])
_LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(ld_shlibs, $1)=yes
skipping to change at line 6528 skipping to change at line 7056
# 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
# Warning - without using the other runtime loading flags (-brtl) , # Warning - without using the other runtime loading flags (-brtl) ,
# -berok will link without error, but may produce a broken librar y. # -berok will link without error, but may produce a broken librar y.
_LT_TAGVAR(allow_undefined_flag, $1)='-berok' _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
# Determine the default libpath from the value encoded in an empt y # Determine the default libpath from the value encoded in an empt y
# executable. # executable.
_LT_SYS_MODULE_PATH_AIX _LT_SYS_MODULE_PATH_AIX([$1])
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir :'"$aix_libpath" _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir :'"$aix_libpath"
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$sonam e $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${a llow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$sonam e $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${a llow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_fl ag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
else else
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/ lib:/lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/ lib:/lib'
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $out put_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_fla gs ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $out put_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_fla gs ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
else else
# Determine the default libpath from the value encoded in an # Determine the default libpath from the value encoded in an
# empty executable. # empty executable.
_LT_SYS_MODULE_PATH_AIX _LT_SYS_MODULE_PATH_AIX([$1])
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdi r:'"$aix_libpath" _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdi r:'"$aix_libpath"
# Warning - without using the other run time loading flags, # Warning - without using the other run time loading flags,
# -berok will link without error, but may produce a broken libra ry. # -berok will link without error, but may produce a broken libra ry.
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
# Exported symbols can be pulled into shared objects from archiv if test "$with_gnu_ld" = yes; then
es # We only use this code for GNU lds that support --whole-archi
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' ve.
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$
convenience ${wl}--no-whole-archive'
else
# Exported symbols can be pulled into shared objects from arch
ives
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
fi
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
# This is similar to how AIX traditionally builds its shared # This is similar to how AIX traditionally builds its shared
# libraries. # libraries.
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $out put_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-b E:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libn ame$release.a $output_objdir/$soname' _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $out put_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-b E:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libn ame$release.a $output_objdir/$soname'
fi fi
fi fi
;; ;;
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
skipping to change at line 6577 skipping to change at line 7110
chorus*) chorus*)
case $cc_basename in case $cc_basename in
*) *)
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
esac esac
;; ;;
cygwin* | mingw* | pw32* | cegcc*) cygwin* | mingw* | pw32* | cegcc*)
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless case $GXX,$cc_basename in
, ,cl* | no,cl*)
# as there is no search path for DLLs. # Native MSVC
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' # hardcode_libdir_flag_spec is actually meaningless, as there is
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported # no search path for DLLs.
_LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
_LT_TAGVAR(always_export_symbols, $1)=yes
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(file_list_spec, $1)='@'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objec # Tell ltmain to make .lib files, not .a files.
ts $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$so libext=lib
name ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # Tell ltmain to make .dll files, not .so files.
# If the export-symbols file already is a .def file (1st line shrext_cmds=".dll"
# is EXPORTS), use it as is; otherwise, prepend... # FIXME: Setting linknames here is a bad hack.
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_s _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libob
ymbols`" = xEXPORTS; then js $compiler_flags $deplibs -Wl,-dll~linknames='
cp $export_symbols $output_objdir/$soname.def; _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_sy
else mbols`" = xEXPORTS; then
echo EXPORTS > $output_objdir/$soname.def; $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -
cat $export_symbols >> $output_objdir/$soname.def; e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
fi~ else
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $e
$libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$sonam xport_symbols > $output_objdir/$soname.exp;
e ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' fi~
else $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $depl
_LT_TAGVAR(ld_shlibs, $1)=no ibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir
fi $libname.dll.lib"~
;; linknames='
# The linker will not automatically build a static lib if we build
a DLL.
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
# Don't use ranlib
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
lt_tool_outputfile="@TOOL_OUTPUT@"~
case $lt_outputfile in
*.exe|*.EXE) ;;
*)
lt_outputfile="$lt_outputfile.exe"
lt_tool_outputfile="$lt_tool_outputfile.exe"
;;
esac~
func_to_tool_file "$lt_outputfile"~
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manif
est"; then
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outpu
tresource:"$lt_tool_outputfile" || exit 1;
$RM "$lt_outputfile.manifest";
fi'
;;
*)
# g++
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningles
s,
# as there is no search path for DLLs.
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbol
s'
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
_LT_TAGVAR(always_export_symbols, $1)=no
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$s
oname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
# If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is; otherwise, prepend...
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_
symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname.def;
else
echo EXPORTS > $output_objdir/$soname.def;
cat $export_symbols >> $output_objdir/$soname.def;
fi~
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects
$libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$sona
me ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
else
_LT_TAGVAR(ld_shlibs, $1)=no
fi
;;
esac
;;
darwin* | rhapsody*) darwin* | rhapsody*)
_LT_DARWIN_LINKER_FEATURES($1) _LT_DARWIN_LINKER_FEATURES($1)
;; ;;
dgux*) dgux*)
case $cc_basename in case $cc_basename in
ec++*) ec++*)
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
skipping to change at line 6621 skipping to change at line 7201
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
*) *)
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
esac esac
;; ;;
freebsd[[12]]*) freebsd2.*)
# C++ shared libraries reported to be fairly broken before # C++ shared libraries reported to be fairly broken before
# switch to ELF # switch to ELF
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
freebsd-elf*) freebsd-elf*)
_LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(archive_cmds_need_lc, $1)=no
;; ;;
freebsd* | dragonfly*) freebsd* | dragonfly*)
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
# conventions # conventions
_LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(ld_shlibs, $1)=yes
;; ;;
gnu*) gnu*)
;; ;;
haiku*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compil
er_flags ${wl}-soname $wl$soname -o $lib'
_LT_TAGVAR(link_all_deplibs, $1)=yes
;;
hpux9*) hpux9*)
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
# but as the default # but as the default
# location of the library. # location of the library.
case $cc_basename in case $cc_basename in
skipping to change at line 6664 skipping to change at line 7249
aCC*) aCC*)
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when # what "hidden" libraries, object files and flags are used when
# linking a shared library. # linking a shared library.
# #
# There doesn't appear to be a way to prevent this compiler fro m # There doesn't appear to be a way to prevent this compiler fro m
# explicitly linking system object files so we need to strip th em # explicitly linking system object files so we need to strip th em
# from the output so that they don't get included in the librar y # from the output so that they don't get included in the librar y
# dependencies. # dependencies.
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest. $objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in c onftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; d one; $ECHO "X$list" | $Xsed' output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest. $objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in c onftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; d one; func_echo_all "$list"'
;; ;;
*) *)
if test "$GXX" = yes; then if test "$GXX" = yes; then
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$son ame $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/ $soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~ test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
else else
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
esac esac
;; ;;
hpux10*|hpux11*) hpux10*|hpux11*)
if test $with_gnu_ld = no; then if test $with_gnu_ld = no; then
skipping to change at line 6729 skipping to change at line 7314
;; ;;
esac esac
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when # what "hidden" libraries, object files and flags are used when
# linking a shared library. # linking a shared library.
# #
# There doesn't appear to be a way to prevent this compiler from # There doesn't appear to be a way to prevent this compiler from
# explicitly linking system object files so we need to strip the m # explicitly linking system object files so we need to strip the m
# 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 -b $CFLAGS -v conftest.$ objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in con ftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; don e; $ECHO "X$list" | $Xsed' output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$ objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in con ftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; don e; func_echo_all "$list"'
;; ;;
*) *)
if test "$GXX" = yes; then if test "$GXX" = yes; then
if test $with_gnu_ld = no; then if test $with_gnu_ld = no; then
case $host_cpu in case $host_cpu in
hppa*64*) hppa*64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPI C ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o bjects $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPI C ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o bjects $compiler_flags'
;; ;;
ia64*) ia64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPI C ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobj s $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic _flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags'
;; ;;
*) *)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPI C ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic _flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_obj ects $libobjs $deplibs $postdep_objects $compiler_flags'
;; ;;
esac esac
fi fi
else else
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
esac esac
;; ;;
skipping to change at line 6772 skipping to change at line 7357
# consuming and fragmenting process. To avoid this, we pick a rando m, # consuming and fragmenting process. To avoid this, we pick a rando m,
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at li nk # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at li nk
# 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 $deplib s $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 40 96 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib s $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 40 96 / 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 $compi ler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname .expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177 280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$ output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compi ler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname .expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177 280` -o $lib'
;; ;;
irix5* | irix6*) irix5* | irix6*)
case $cc_basename in case $cc_basename in
CC*) CC*)
# SGI C++ # SGI C++
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep _objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update _registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep _objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_ registry ${output_objdir}/so_locations -o $lib'
# Archives containing C++ object files must be created using # Archives containing C++ object files must be created using
# "CC -ar", where "CC" is the IRIX C++ compiler. This is # "CC -ar", where "CC" is the IRIX C++ compiler. This is
# necessary to make sure instantiated templates are included # necessary to make sure instantiated templates are included
# in the archive. # in the archive.
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $old objs' _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $old objs'
;; ;;
*) *)
if test "$GXX" = yes; then if test "$GXX" = yes; then
if test "$with_gnu_ld" = no; then if test "$with_gnu_ld" = no; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_ objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${w l}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstrin g" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $li b' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdli b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}- soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_versi on ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locatio ns -o $lib'
else else
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_ objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${w l}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstrin g" | $Xsed` -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdli b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}- soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_versi on ${wl}$verstring"` -o $lib'
fi fi
fi fi
_LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes
;; ;;
esac esac
_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
# ends with ".so" (or ".sl" for HP-UX), so rename the library # ends with ".so" (or ".sl" for HP-UX), so rename the library
# to its proper name (with version) after linking. # to its proper name (with version) after linking.
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED - e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_o bjects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED - e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_o bjects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $ SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $po stdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-sy mbols-file,$export_symbols; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $ SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $po stdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-sy mbols-file,$export_symbols; mv \$templib $lib'
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when # what "hidden" libraries, object files and flags are used when
# linking a shared library. # linking a shared library.
# #
# There doesn't appear to be a way to prevent this compiler from # There doesn't appear to be a way to prevent this compiler from
# explicitly linking system object files so we need to strip the m # explicitly linking system object files so we need to strip the m
# 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 $CFLAGS -v conftest.$obje xt -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_e xt; list=""; for z in $templist; do case $z in conftest.$objext) list="$lis t $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed ' output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$obje xt -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_e xt; list=""; for z in $templist; do case $z in conftest.$objext) list="$lis t $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
_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'
# Archives containing C++ object files must be created using # Archives containing C++ object files must be created using
# "CC -Bstatic", where "CC" is the KAI C++ compiler. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldob js' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldob js'
;; ;;
icpc* | ecpc* ) icpc* | ecpc* )
# Intel C++ # Intel C++
skipping to change at line 6851 skipping to change at line 7436
;; ;;
esac esac
_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$co nvenience ${wl}--no-whole-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$co nvenience ${wl}--no-whole-archive'
;; ;;
pgCC* | pgcpp*) pgCC* | pgcpp*)
# Portland Group C++ compiler # Portland Group C++ compiler
case `$CC -V` in case `$CC -V` in
*pgCC\ [[1-5]]* | *pgcpp\ [[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 $lib objs $compile_deplibs~ $CC --prelink_objects --instantiation_dir $tpldir $objs $lib objs $compile_deplibs~
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
rm -rf $tpldir~ rm -rf $tpldir~
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$o ld_deplibs~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$o ld_deplibs~
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -nam e \*.o | $NL2SP`~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -nam e \*.o | sort | $NL2SP`~
$RANLIB $oldlib' $RANLIB $oldlib'
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
rm -rf $tpldir~ rm -rf $tpldir~
$CC --prelink_objects --instantiation_dir $tpldir $predep_ob jects $libobjs $deplibs $convenience $postdep_objects~ $CC --prelink_objects --instantiation_dir $tpldir $predep_ob jects $libobjs $deplibs $convenience $postdep_objects~
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `fin d $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-sonam e ${wl}$soname -o $lib' $CC -shared $pic_flag $predep_objects $libobjs $deplibs `fin d $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl }-soname ${wl}$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
rm -rf $tpldir~ rm -rf $tpldir~
$CC --prelink_objects --instantiation_dir $tpldir $predep_ob jects $libobjs $deplibs $convenience $postdep_objects~ $CC --prelink_objects --instantiation_dir $tpldir $predep_ob jects $libobjs $deplibs $convenience $postdep_objects~
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `fin d $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-sonam e ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' $CC -shared $pic_flag $predep_objects $libobjs $deplibs `fin d $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl }-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $li b'
;; ;;
*) # Version 6 will use weak symbols *) # Version 6 and above use weak symbols
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_ob jects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl} $soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_ob jects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl} $soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $pr edep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-sonam e ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $pr edep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-sonam e ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
;; ;;
esac esac
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$li bdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$li bdir'
_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`fo r conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new _convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-arc hive' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`fo r conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new _convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-w hole-archive'
;; ;;
cxx*) cxx*)
# Compaq C++ # Compaq C++
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libob js $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $li b' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libob js $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $li b'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
runpath_var=LD_RUN_PATH runpath_var=LD_RUN_PATH
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when # what "hidden" libraries, object files and flags are used when
# linking a shared library. # linking a shared library.
# #
# There doesn't appear to be a way to prevent this compiler from # There doesn't appear to be a way to prevent this compiler from
# explicitly linking system object files so we need to strip the m # explicitly linking system object files so we need to strip the m
# 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 confte st.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\ (^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in c onftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; d one; $ECHO "X$list" | $Xsed' output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v confte st.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED " s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z i n conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac ; done; func_echo_all "X$list" | $Xsed'
;; ;;
xl*) xl* | mpixl* | bgxl*)
# IBM XL 8.0 on PPC, with GNU ld # IBM XL 8.0 on PPC, with GNU ld
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$lib dir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$lib dir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _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' _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 if test "x$supports_anon_versioning" = xyes; then
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $outpu t_objdir/$libname.ver~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $outpu t_objdir/$libname.ver~
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objd ir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objd ir/$libname.ver~
echo "local: *; };" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-sonam e $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-sonam e $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
fi 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'
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compile r_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compile r_flags'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_f lag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $ compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_f lag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $ compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
_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; func_echo_all \"$new_conveni ence\"` ${wl}--no-whole-archive'
_LT_TAGVAR(compiler_needs_object, $1)=yes _LT_TAGVAR(compiler_needs_object, $1)=yes
# Not sure whether something based on # Not sure whether something based on
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2> &1 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2> &1
# would be better. # would be better.
output_verbose_link_cmd='echo' output_verbose_link_cmd='func_echo_all'
# Archives containing C++ object files must be created using # Archives containing C++ object files must be created using
# "CC -xar", where "CC" is the Sun C++ compiler. This is # "CC -xar", where "CC" is the Sun C++ compiler. This is
# necessary to make sure instantiated templates are included # necessary to make sure instantiated templates are included
# in the archive. # in the archive.
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs ' _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs '
;; ;;
esac esac
;; ;;
esac esac
skipping to change at line 6994 skipping to change at line 7579
_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_object s $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_object s $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'
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$ho st_os-$host_cpu" = "openbsd2.8-powerpc"; then if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$ho st_os-$host_cpu" = "openbsd2.8-powerpc"; then
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $pred ep_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 $pred ep_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=func_echo_all
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
osf3* | osf4* | osf5*) osf3* | osf4* | osf5*)
case $cc_basename in case $cc_basename in
KCC*) KCC*)
# Kuck and Associates, Inc. (KAI) C++ Compiler # Kuck and Associates, Inc. (KAI) C++ Compiler
skipping to change at line 7029 skipping to change at line 7614
;; ;;
RCC*) RCC*)
# Rational C++ 2.4.1 # Rational C++ 2.4.1
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
cxx*) cxx*)
case $host in case $host in
osf3*) osf3*)
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolv ed ${wl}\*' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolv ed ${wl}\*'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_f lag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w l}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verst ring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_f lag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w l}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl} $libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl} $libdir'
;; ;;
*) *)
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \* ' _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \* '
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_f lag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -ms ym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring " | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_f lag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -ms ym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $ve rstring"` -update_registry ${output_objdir}/so_locations -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_s ymbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_s ymbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
echo "-hidden">> $lib.exp~ echo "-hidden">> $lib.exp~
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` - update_registry ${output_objdir}/so_locations -o $lib~
$RM $lib.exp' $RM $lib.exp'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
;; ;;
esac esac
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when # what "hidden" libraries, object files and flags are used when
# linking a shared library. # linking a shared library.
# #
# There doesn't appear to be a way to prevent this compiler from # There doesn't appear to be a way to prevent this compiler from
# explicitly linking system object files so we need to strip the m # explicitly linking system object files so we need to strip the m
# 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 confte st.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist " | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$l ist $z";;esac; done; $ECHO "X$list" | $Xsed' output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v confte st.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$t emplist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templi st; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list= "$list $z";;esac; done; func_echo_all "$list"'
;; ;;
*) *)
if test "$GXX" = yes && test "$with_gnu_ld" = no; then if test "$GXX" = yes && test "$with_gnu_ld" = no; then
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
case $host in case $host in
osf3*) osf3*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allo w_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}- set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_o bjdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allo w_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_ob jdir}/so_locations -o $lib'
;; ;;
*) *)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allo w_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $EC HO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl} ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostd lib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_obje cts $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstri ng" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_regi stry ${wl}${output_objdir}/so_locations -o $lib'
;; ;;
esac esac
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$l ibdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$l ibdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used whe n # what "hidden" libraries, object files and flags are used whe n
# linking a shared library. # linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$obje xt 2>&1 | $GREP "\-L"' output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$obje xt 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
else else
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
esac esac
;; ;;
psos*) psos*)
skipping to change at line 7109 skipping to change at line 7694
;; ;;
*) *)
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
esac esac
;; ;;
solaris*) solaris*)
case $cc_basename in case $cc_basename in
CC*) CC* | sunCC*)
# Sun C++ 4.2, 5.x and Centerline C++ # Sun C++ 4.2, 5.x and Centerline C++
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$ soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler _flags' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$ soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler _flags'
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~ $RM $lib.exp' $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~ $RM $lib.exp'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
case $host_os in case $host_os in
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
*) *)
# The compiler driver will combine and reorder linker option s, # The compiler driver will combine and reorder linker option s,
# but understands `-z linker_flag'. # but understands `-z linker_flag'.
# Supported since Solaris 2.6 (maybe 2.5.1?) # Supported since Solaris 2.6 (maybe 2.5.1?)
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$conve nience -z defaultextract' _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$conve nience -z defaultextract'
;; ;;
esac esac
_LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes
output_verbose_link_cmd='echo' output_verbose_link_cmd='func_echo_all'
# Archives containing C++ object files must be created using # Archives containing C++ object files must be created using
# "CC -xar", where "CC" is the Sun C++ compiler. This is # "CC -xar", where "CC" is the Sun C++ compiler. This is
# necessary to make sure instantiated templates are included # necessary to make sure instantiated templates are included
# in the archive. # in the archive.
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
;; ;;
gcx*) gcx*)
# Green Hills C++ Compiler # Green Hills C++ Compiler
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libob js $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libob js $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
# The C++ compiler must be used to create the archive. # The C++ compiler must be used to create the archive.
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldl ib $oldobjs' _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldl ib $oldobjs'
;; ;;
*) *)
# GNU C++ compiler with Solaris linker # GNU C++ compiler with Solaris linker
if test "$GXX" = yes && test "$with_gnu_ld" = no; then if test "$GXX" = yes && test "$with_gnu_ld" = no; then
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
if $CC --version | $GREP -v '^2\.7' > /dev/null; then if $CC --version | $GREP -v '^2\.7' > /dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdli b $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla gs ${wl}-h $wl$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib .exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib .exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_ objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $li b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $l ib.exp'
# Commands to make compiler produce verbose output that list s # Commands to make compiler produce verbose output that list s
# what "hidden" libraries, object files and flags are used w hen # what "hidden" libraries, object files and flags are used w hen
# linking a shared library. # linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$ob jext 2>&1 | $GREP "\-L"' output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$ob jext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
else else
# g++ 2.7 appears to require `-G' NOT `-shared' on this # g++ 2.7 appears to require `-G' NOT `-shared' on this
# platform. # platform.
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $pre dep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$ soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $pre dep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$ soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib .exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib .exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objec ts $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objec ts $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
# Commands to make compiler produce verbose output that list s # Commands to make compiler produce verbose output that list s
# what "hidden" libraries, object files and flags are used w hen # what "hidden" libraries, object files and flags are used w hen
# linking a shared library. # linking a shared library.
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
fi fi
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
case $host_os in case $host_os in
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
*) *)
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}alle xtract$convenience ${wl}-z ${wl}defaultextract' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}alle xtract$convenience ${wl}-z ${wl}defaultextract'
;; ;;
esac esac
fi fi
skipping to change at line 7222 skipping to change at line 7807
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
_LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
runpath_var='LD_RUN_PATH' runpath_var='LD_RUN_PATH'
case $cc_basename in case $cc_basename in
CC*) CC*)
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $li bobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $li bobjs $deplibs $compiler_flags'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$expor t_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$expor t_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs
~
'"$_LT_TAGVAR(old_archive_cmds, $1)"
_LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
'"$_LT_TAGVAR(reload_cmds, $1)"
;; ;;
*) *)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $li b $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $li b $libobjs $deplibs $compiler_flags'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$ export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$ export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
;; ;;
esac esac
;; ;;
tandem*) tandem*)
case $cc_basename in case $cc_basename in
skipping to change at line 7277 skipping to change at line 7866
_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_SYS_DYNAMIC_LINKER($1)
_LT_LINKER_HARDCODE_LIBPATH($1) _LT_LINKER_HARDCODE_LIBPATH($1)
_LT_CONFIG($1) _LT_CONFIG($1)
fi # test -n "$compiler" fi # test -n "$compiler"
CC=$lt_save_CC CC=$lt_save_CC
CFLAGS=$lt_save_CFLAGS
LDCXX=$LD LDCXX=$LD
LD=$lt_save_LD LD=$lt_save_LD
GCC=$lt_save_GCC GCC=$lt_save_GCC
with_gnu_ld=$lt_save_with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld
lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LDCXX=$lt_cv_path_LD
lt_cv_path_LD=$lt_save_path_LD lt_cv_path_LD=$lt_save_path_LD
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes fi # test "$_lt_caught_CXX_error" != yes
AC_LANG_POP AC_LANG_POP
])# _LT_LANG_CXX_CONFIG ])# _LT_LANG_CXX_CONFIG
# _LT_FUNC_STRIPNAME_CNF
# ----------------------
# func_stripname_cnf prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
#
# This function is identical to the (non-XSI) version of func_stripname,
# except this one can be used by m4 code that may be executed by configure,
# rather than the libtool script.
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
AC_REQUIRE([_LT_DECL_SED])
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
func_stripname_cnf ()
{
case ${2} in
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%
"`;;
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
esac
} # func_stripname_cnf
])# _LT_FUNC_STRIPNAME_CNF
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
# --------------------------------- # ---------------------------------
# Figure out "hidden" library dependencies from verbose # Figure out "hidden" library dependencies from verbose
# compiler output when linking a shared library. # compiler output when linking a shared library.
# Parse the compiler output and extract the necessary # Parse the compiler output and extract the necessary
# objects, libraries and library flags. # objects, libraries and library flags.
m4_defun([_LT_SYS_HIDDEN_LIBDEPS], m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
# Dependencies to place before and after the object being linked: # Dependencies to place before and after the object being linked:
_LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(predep_objects, $1)=
_LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)=
_LT_TAGVAR(predeps, $1)= _LT_TAGVAR(predeps, $1)=
_LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(postdeps, $1)=
_LT_TAGVAR(compiler_lib_search_path, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)=
dnl we can't use the lt_simple_compile_test_code here, dnl we can't use the lt_simple_compile_test_code here,
dnl because it contains code intended for an executable, dnl because it contains code intended for an executable,
dnl not a library. It's possible we should let each dnl not a library. It's possible we should let each
skipping to change at line 7347 skipping to change at line 7961
end end
_LT_EOF _LT_EOF
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
public class foo { public class foo {
private int a; private int a;
public void bar (void) { public void bar (void) {
a = 0; a = 0;
} }
}; };
_LT_EOF _LT_EOF
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
package foo
func foo() {
}
_LT_EOF
]) ])
_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
esac
dnl Parse the compiler output and extract the necessary dnl Parse the compiler output and extract the necessary
dnl objects, libraries and library flags. dnl objects, libraries and library flags.
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
# Parse the compiler output and extract the necessary # Parse the compiler output and extract the necessary
# objects, libraries and library flags. # objects, libraries and library flags.
# 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
for p in `eval "$output_verbose_link_cmd"`; do for p in `eval "$output_verbose_link_cmd"`; do
case $p in case ${prev}${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.
if test $p = "-L" || if test $p = "-L" ||
test $p = "-R"; then test $p = "-R"; then
prev=$p prev=$p
continue continue
else
prev=
fi fi
# Expand the sysroot to ease extracting the directories later.
if test -z "$prev"; then
case $p in
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_r
esult ;;
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_r
esult ;;
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_r
esult ;;
esac
fi
case $p in
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_res
ult ;;
esac
if test "$pre_test_object_deps_done" = no; then if test "$pre_test_object_deps_done" = no; then
case $p in case ${prev} in
-L* | -R*) -L | -R)
# Internal compiler library paths should come after those # Internal compiler library paths should come after those
# provided the user. The postdeps already come after the # provided the user. The postdeps already come after the
# user supplied libs so there is no need to process them. # user supplied libs so there is no need to process them.
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
else else
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler _lib_search_path, $1)} ${prev}${p}" _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler _lib_search_path, $1)} ${prev}${p}"
fi fi
;; ;;
# The "-l" case would never come before the object being # The "-l" case would never come before the object being
# linked, so don't bother handling this case. # linked, so don't bother handling this case.
esac esac
else else
if test -z "$_LT_TAGVAR(postdeps, $1)"; then if test -z "$_LT_TAGVAR(postdeps, $1)"; then
_LT_TAGVAR(postdeps, $1)="${prev}${p}" _LT_TAGVAR(postdeps, $1)="${prev}${p}"
else else
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p} " _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p} "
fi fi
fi fi
prev=
;; ;;
*.lto.$objext) ;; # Ignore GCC LTO objects
*.$objext) *.$objext)
# This assumes that the test object file only shows up # This assumes that the test object file only shows up
# once in the compiler output. # once in the compiler output.
if test "$p" = "conftest.$objext"; then if test "$p" = "conftest.$objext"; then
pre_test_object_deps_done=yes pre_test_object_deps_done=yes
continue continue
fi fi
if test "$pre_test_object_deps_done" = no; then if test "$pre_test_object_deps_done" = no; then
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
skipping to change at line 7431 skipping to change at line 8069
esac esac
done done
# Clean up. # Clean up.
rm -f a.out a.exe rm -f a.out a.exe
else else
echo "libtool.m4: error: problem compiling $1 test program" echo "libtool.m4: error: problem compiling $1 test program"
fi fi
$RM -f confest.$objext $RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS
# PORTME: override above test on systems where it is broken # PORTME: override above test on systems where it is broken
m4_if([$1], [CXX], m4_if([$1], [CXX],
[case $host_os in [case $host_os in
interix[[3-9]]*) interix[[3-9]]*)
# Interix 3.5 installs completely hosed .la files for C++, so rather than # Interix 3.5 installs completely hosed .la files for C++, so rather than
# hack all around it, let's just trust "g++" to DTRT. # hack all around it, let's just trust "g++" to DTRT.
_LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(predep_objects,$1)=
_LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)=
_LT_TAGVAR(postdeps,$1)= _LT_TAGVAR(postdeps,$1)=
skipping to change at line 7467 skipping to change at line 8106
if test "$solaris_use_stlport4" != yes; then if test "$solaris_use_stlport4" != yes; then
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
fi fi
;; ;;
esac esac
;; ;;
solaris*) solaris*)
case $cc_basename in case $cc_basename in
CC*) CC* | sunCC*)
# The more standards-conforming stlport4 library is # The more standards-conforming stlport4 library is
# incompatible with the Cstd library. Avoid specifying # incompatible with the Cstd library. Avoid specifying
# it if it's in CXXFLAGS. Ignore libCrun as # it if it's in CXXFLAGS. Ignore libCrun as
# -library=stlport4 depends on it. # -library=stlport4 depends on it.
case " $CXX $CXXFLAGS " in case " $CXX $CXXFLAGS " in
*" -library=stlport4 "*) *" -library=stlport4 "*)
solaris_use_stlport4=yes solaris_use_stlport4=yes
;; ;;
esac esac
skipping to change at line 7510 skipping to change at line 8149
[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])
_LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [postdeps], [1])
_LT_TAGDECL([], [compiler_lib_search_path], [1], _LT_TAGDECL([], [compiler_lib_search_path], [1],
[The library search path used internally by the compiler when linking [The library search path used internally by the compiler when linking
a shared library]) a shared library])
])# _LT_SYS_HIDDEN_LIBDEPS ])# _LT_SYS_HIDDEN_LIBDEPS
# _LT_PROG_F77
# ------------
# Since AC_PROG_F77 is broken, in that it returns the empty string
# if there is no fortran compiler, we have our own version here.
m4_defun([_LT_PROG_F77],
[
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
AC_PROG_F77
if test -z "$F77" || test "X$F77" = "Xno"; then
_lt_disable_F77=yes
fi
popdef([AC_MSG_ERROR])
])# _LT_PROG_F77
dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([_LT_PROG_F77], [])
# _LT_LANG_F77_CONFIG([TAG]) # _LT_LANG_F77_CONFIG([TAG])
# -------------------------- # --------------------------
# Ensure that the configuration variables for a Fortran 77 compiler are # Ensure that the configuration variables for a Fortran 77 compiler are
# suitably defined. These variables are subsequently used by _LT_CONFIG # suitably defined. These variables are subsequently used by _LT_CONFIG
# to write the compiler configuration to `libtool'. # to write the compiler configuration to `libtool'.
m4_defun([_LT_LANG_F77_CONFIG], m4_defun([_LT_LANG_F77_CONFIG],
[AC_REQUIRE([_LT_PROG_F77])dnl [AC_LANG_PUSH(Fortran 77)
AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test "X$F77" = "Xno"; then
_lt_disable_F77=yes
fi
_LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(archive_cmds_need_lc, $1)=no
_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_expsym_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)=
_LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)=
_LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no
_LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
_LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)=
_LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_minus_L, $1)=no
_LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no
_LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no
_LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_cmds, $1)=
_LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)=
_LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(link_all_deplibs, $1)=unknown
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
_LT_TAGVAR(reload_flag, $1)=$reload_flag
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
_LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(no_undefined_flag, $1)=
_LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)=
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
# Source file extension for f77 test sources. # Source file extension for f77 test sources.
ac_ext=f ac_ext=f
# Object file extension for compiled f77 test sources. # Object file extension for compiled f77 test sources.
objext=o objext=o
_LT_TAGVAR(objext, $1)=$objext _LT_TAGVAR(objext, $1)=$objext
skipping to change at line 7592 skipping to change at line 8217
# ltmain only uses $CC for tagged configurations so make sure $CC is set. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER _LT_TAG_COMPILER
# save warnings/boilerplate of simple test code # save warnings/boilerplate of simple test code
_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 lt_save_GCC=$GCC
lt_save_CFLAGS=$CFLAGS
CC=${F77-"f77"} CC=${F77-"f77"}
CFLAGS=$FFLAGS
compiler=$CC compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(compiler, $1)=$CC
_LT_CC_BASENAME([$compiler]) _LT_CC_BASENAME([$compiler])
GCC=$G77 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])
test "$can_build_shared" = "no" && enable_shared=no test "$can_build_shared" = "no" && enable_shared=no
skipping to change at line 7646 skipping to change at line 8273
_LT_COMPILER_FILE_LOCKS($1) _LT_COMPILER_FILE_LOCKS($1)
_LT_LINKER_SHLIBS($1) _LT_LINKER_SHLIBS($1)
_LT_SYS_DYNAMIC_LINKER($1) _LT_SYS_DYNAMIC_LINKER($1)
_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 GCC=$lt_save_GCC
CC="$lt_save_CC" CC="$lt_save_CC"
CFLAGS="$lt_save_CFLAGS"
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
# _LT_PROG_FC
# -----------
# Since AC_PROG_FC is broken, in that it returns the empty string
# if there is no fortran compiler, we have our own version here.
m4_defun([_LT_PROG_FC],
[
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
AC_PROG_FC
if test -z "$FC" || test "X$FC" = "Xno"; then
_lt_disable_FC=yes
fi
popdef([AC_MSG_ERROR])
])# _LT_PROG_FC
dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([_LT_PROG_FC], [])
# _LT_LANG_FC_CONFIG([TAG]) # _LT_LANG_FC_CONFIG([TAG])
# ------------------------- # -------------------------
# Ensure that the configuration variables for a Fortran compiler are # Ensure that the configuration variables for a Fortran compiler are
# suitably defined. These variables are subsequently used by _LT_CONFIG # suitably defined. These variables are subsequently used by _LT_CONFIG
# to write the compiler configuration to `libtool'. # to write the compiler configuration to `libtool'.
m4_defun([_LT_LANG_FC_CONFIG], m4_defun([_LT_LANG_FC_CONFIG],
[AC_REQUIRE([_LT_PROG_FC])dnl [AC_LANG_PUSH(Fortran)
AC_LANG_PUSH(Fortran)
if test -z "$FC" || test "X$FC" = "Xno"; then
_lt_disable_FC=yes
fi
_LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(archive_cmds_need_lc, $1)=no
_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_expsym_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)=
_LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)=
_LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no
_LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
_LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)=
_LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_minus_L, $1)=no
_LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no
_LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no
_LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_cmds, $1)=
_LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)=
_LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(link_all_deplibs, $1)=unknown
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
_LT_TAGVAR(reload_flag, $1)=$reload_flag
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
_LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(no_undefined_flag, $1)=
_LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)=
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
# Source file extension for fc test sources. # Source file extension for fc test sources.
ac_ext=${ac_fc_srcext-f} ac_ext=${ac_fc_srcext-f}
# Object file extension for compiled fc test sources. # Object file extension for compiled fc test sources.
objext=o objext=o
_LT_TAGVAR(objext, $1)=$objext _LT_TAGVAR(objext, $1)=$objext
skipping to change at line 7733 skipping to change at line 8348
# ltmain only uses $CC for tagged configurations so make sure $CC is set. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER _LT_TAG_COMPILER
# save warnings/boilerplate of simple test code # save warnings/boilerplate of simple test code
_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 lt_save_GCC=$GCC
lt_save_CFLAGS=$CFLAGS
CC=${FC-"f95"} CC=${FC-"f95"}
CFLAGS=$FCFLAGS
compiler=$CC compiler=$CC
GCC=$ac_cv_fc_compiler_gnu 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])
AC_MSG_RESULT([$can_build_shared]) AC_MSG_RESULT([$can_build_shared])
skipping to change at line 7789 skipping to change at line 8406
_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_SYS_DYNAMIC_LINKER($1)
_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 GCC=$lt_save_GCC
CC="$lt_save_CC" CC=$lt_save_CC
CFLAGS=$lt_save_CFLAGS
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
# _LT_LANG_GCJ_CONFIG([TAG]) # _LT_LANG_GCJ_CONFIG([TAG])
# -------------------------- # --------------------------
# Ensure that the configuration variables for the GNU Java Compiler compile r # Ensure that the configuration variables for the GNU Java Compiler compile r
# are suitably defined. These variables are subsequently used by _LT_CONFI G # are suitably defined. These variables are subsequently used by _LT_CONFI G
# to write the compiler configuration to `libtool'. # to write the compiler configuration to `libtool'.
skipping to change at line 7825 skipping to change at line 8443
lt_simple_link_test_code='public class conftest { public static void main(S tring[[]] argv) {}; }' lt_simple_link_test_code='public class conftest { public static void main(S tring[[]] argv) {}; }'
# ltmain only uses $CC for tagged configurations so make sure $CC is set. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER _LT_TAG_COMPILER
# save warnings/boilerplate of simple test code # save warnings/boilerplate of simple test code
_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_CFLAGS=$CFLAGS
lt_save_GCC=$GCC lt_save_GCC=$GCC
GCC=yes GCC=yes
CC=${GCJ-"gcj"} CC=${GCJ-"gcj"}
CFLAGS=$GCJFLAGS
compiler=$CC compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(compiler, $1)=$CC
_LT_TAGVAR(LD, $1)="$LD" _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
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
_LT_TAGVAR(reload_flag, $1)=$reload_flag
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
if test -n "$compiler"; then if test -n "$compiler"; then
_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_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 GCC=$lt_save_GCC
CC="$lt_save_CC" CC=$lt_save_CC
CFLAGS=$lt_save_CFLAGS
])# _LT_LANG_GCJ_CONFIG ])# _LT_LANG_GCJ_CONFIG
# _LT_LANG_GO_CONFIG([TAG])
# --------------------------
# Ensure that the configuration variables for the GNU Go compiler
# are suitably defined. These variables are subsequently used by _LT_CONFI
G
# to write the compiler configuration to `libtool'.
m4_defun([_LT_LANG_GO_CONFIG],
[AC_REQUIRE([LT_PROG_GO])dnl
AC_LANG_SAVE
# Source file extension for Go test sources.
ac_ext=go
# Object file extension for compiled Go test sources.
objext=o
_LT_TAGVAR(objext, $1)=$objext
# Code to be used in simple compile tests
lt_simple_compile_test_code="package main; func main() { }"
# Code to be used in simple link tests
lt_simple_link_test_code='package main; func main() { }'
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER
# save warnings/boilerplate of simple test code
_LT_COMPILER_BOILERPLATE
_LT_LINKER_BOILERPLATE
# Allow CC to be a program name with arguments.
lt_save_CC=$CC
lt_save_CFLAGS=$CFLAGS
lt_save_GCC=$GCC
GCC=yes
CC=${GOC-"gccgo"}
CFLAGS=$GOFLAGS
compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC
_LT_TAGVAR(LD, $1)="$LD"
_LT_CC_BASENAME([$compiler])
# Go did not exist at the time GCC didn't implicitly link libc in.
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
_LT_TAGVAR(reload_flag, $1)=$reload_flag
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
if test -n "$compiler"; then
_LT_COMPILER_NO_RTTI($1)
_LT_COMPILER_PIC($1)
_LT_COMPILER_C_O($1)
_LT_COMPILER_FILE_LOCKS($1)
_LT_LINKER_SHLIBS($1)
_LT_LINKER_HARDCODE_LIBPATH($1)
_LT_CONFIG($1)
fi
AC_LANG_RESTORE
GCC=$lt_save_GCC
CC=$lt_save_CC
CFLAGS=$lt_save_CFLAGS
])# _LT_LANG_GO_CONFIG
# _LT_LANG_RC_CONFIG([TAG]) # _LT_LANG_RC_CONFIG([TAG])
# ------------------------- # -------------------------
# Ensure that the configuration variables for the Windows resource compiler # Ensure that the configuration variables for the Windows resource compiler
# are suitably defined. These variables are subsequently used by _LT_CONFI G # are suitably defined. These variables are subsequently used by _LT_CONFI G
# to write the compiler configuration to `libtool'. # to write the compiler configuration to `libtool'.
m4_defun([_LT_LANG_RC_CONFIG], m4_defun([_LT_LANG_RC_CONFIG],
[AC_REQUIRE([LT_PROG_RC])dnl [AC_REQUIRE([LT_PROG_RC])dnl
AC_LANG_SAVE AC_LANG_SAVE
# Source file extension for RC test sources. # Source file extension for RC test sources.
skipping to change at line 7887 skipping to change at line 8576
# ltmain only uses $CC for tagged configurations so make sure $CC is set. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER _LT_TAG_COMPILER
# save warnings/boilerplate of simple test code # save warnings/boilerplate of simple test code
_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_CFLAGS=$CFLAGS
lt_save_GCC=$GCC lt_save_GCC=$GCC
GCC= GCC=
CC=${RC-"windres"} CC=${RC-"windres"}
CFLAGS=
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
if test -n "$compiler"; then if test -n "$compiler"; then
: :
_LT_CONFIG($1) _LT_CONFIG($1)
fi fi
GCC=$lt_save_GCC GCC=$lt_save_GCC
AC_LANG_RESTORE AC_LANG_RESTORE
CC="$lt_save_CC" CC=$lt_save_CC
CFLAGS=$lt_save_CFLAGS
])# _LT_LANG_RC_CONFIG ])# _LT_LANG_RC_CONFIG
# LT_PROG_GCJ # LT_PROG_GCJ
# ----------- # -----------
AC_DEFUN([LT_PROG_GCJ], AC_DEFUN([LT_PROG_GCJ],
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
[AC_CHECK_TOOL(GCJ, gcj,) [AC_CHECK_TOOL(GCJ, gcj,)
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
AC_SUBST(GCJFLAGS)])])[]dnl AC_SUBST(GCJFLAGS)])])[]dnl
]) ])
# Old name: # Old name:
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
dnl aclocal-1.4 backwards compatibility: dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([LT_AC_PROG_GCJ], []) dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
# LT_PROG_GO
# ----------
AC_DEFUN([LT_PROG_GO],
[AC_CHECK_TOOL(GOC, gccgo,)
])
# LT_PROG_RC # LT_PROG_RC
# ---------- # ----------
AC_DEFUN([LT_PROG_RC], AC_DEFUN([LT_PROG_RC],
[AC_CHECK_TOOL(RC, windres,) [AC_CHECK_TOOL(RC, windres,)
]) ])
# Old name: # Old name:
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
dnl aclocal-1.4 backwards compatibility: dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([LT_AC_PROG_RC], []) dnl AC_DEFUN([LT_AC_PROG_RC], [])
skipping to change at line 7957 skipping to change at line 8655
# -------------- # --------------
# If we don't have a new enough Autoconf to choose the best 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. # available, choose the one first in the user's PATH.
m4_defun([_LT_DECL_OBJDUMP], m4_defun([_LT_DECL_OBJDUMP],
[AC_CHECK_TOOL(OBJDUMP, objdump, false) [AC_CHECK_TOOL(OBJDUMP, objdump, false)
test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$OBJDUMP" && OBJDUMP=objdump
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
AC_SUBST([OBJDUMP]) AC_SUBST([OBJDUMP])
]) ])
# _LT_DECL_DLLTOOL
# ----------------
# Ensure DLLTOOL variable is set.
m4_defun([_LT_DECL_DLLTOOL],
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
test -z "$DLLTOOL" && DLLTOOL=dlltool
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
AC_SUBST([DLLTOOL])
])
# _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],
[AC_PROG_SED [AC_PROG_SED
test -z "$SED" && SED=sed test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//" Xsed="$SED -e 1s/^X//"
_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
skipping to change at line 8046 skipping to change at line 8754
# _LT_CHECK_SHELL_FEATURES # _LT_CHECK_SHELL_FEATURES
# ------------------------ # ------------------------
# Find out whether the shell is Bourne or XSI compatible, # Find out whether the shell is Bourne or XSI compatible,
# or has some other useful features. # or has some other useful features.
m4_defun([_LT_CHECK_SHELL_FEATURES], m4_defun([_LT_CHECK_SHELL_FEATURES],
[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%"$_lt_
= c,a/b,, \ dummy"}, \
= c,a/b,b/c, \
&& eval 'test $(( 1 + 1 )) -eq 2 \ && eval 'test $(( 1 + 1 )) -eq 2 \
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && 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 "+="])
lt_shell_append=no lt_shell_append=no
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
>/dev/null 2>&1 \ >/dev/null 2>&1 \
skipping to change at line 8085 skipping to change at line 8793
;; ;;
*) # EBCDIC based system *) # EBCDIC based system
lt_SP2NL='tr \100 \n' lt_SP2NL='tr \100 \n'
lt_NL2SP='tr \r\n \100\100' lt_NL2SP='tr \r\n \100\100'
;; ;;
esac esac
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
])# _LT_CHECK_SHELL_FEATURES ])# _LT_CHECK_SHELL_FEATURES
# _LT_PROG_XSI_SHELLFNS # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
# --------------------- # ------------------------------------------------------
# Bourne and XSI compatible variants of some useful shell functions. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' an
m4_defun([_LT_PROG_XSI_SHELLFNS], d
[case $xsi_shell in # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
yes) m4_defun([_LT_PROG_FUNCTION_REPLACE],
cat << \_LT_EOF >> "$cfgfile" [dnl {
sed -e '/^$1 ()$/,/^} # $1 /c\
# func_dirname file append nondir_replacement $1 ()\
# Compute the dirname of FILE. If nonempty, add APPEND to the result, {\
# otherwise set result to NONDIR_REPLACEMENT. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
func_dirname () } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
{ && mv -f "$cfgfile.tmp" "$cfgfile" \
case ${1} in || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile
*/*) func_dirname_result="${1%/*}${2}" ;; .tmp")
* ) func_dirname_result="${3}" ;; test 0 -eq $? || _lt_function_replace_fail=:
esac ])
}
# func_basename file
func_basename ()
{
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
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
func_stripname ()
{
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
# positional parameters, so assign one to ordinary parameter first.
func_stripname_result=${3}
func_stripname_result=${func_stripname_result#"${1}"}
func_stripname_result=${func_stripname_result%"${2}"}
}
# func_opt_split
func_opt_split ()
{
func_opt_split_opt=${1%%=*}
func_opt_split_arg=${1#*=}
}
# func_lo2o object
func_lo2o ()
{
case ${1} in
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
*) func_lo2o_result=${1} ;;
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 # _LT_PROG_REPLACE_SHELLFNS
# STRING may not start with a hyphen. # -------------------------
func_len () # Replace existing portable implementations of several shell functions with
{ # equivalent extended shell implementations where those features are availa
func_len_result=${#1} ble..
} m4_defun([_LT_PROG_REPLACE_SHELLFNS],
[if test x"$xsi_shell" = xyes; then
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
case ${1} in
*/*) func_dirname_result="${1%/*}${2}" ;;
* ) func_dirname_result="${3}" ;;
esac])
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
func_basename_result="${1##*/}"])
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
case ${1} in
*/*) func_dirname_result="${1%/*}${2}" ;;
* ) func_dirname_result="${3}" ;;
esac
func_basename_result="${1##*/}"])
_LT_EOF _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
;; # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
*) # Bourne compatible functions. # positional parameters, so assign one to ordinary parameter first.
cat << \_LT_EOF >> "$cfgfile" func_stripname_result=${3}
func_stripname_result=${func_stripname_result#"${1}"}
func_stripname_result=${func_stripname_result%"${2}"}])
# func_dirname file append nondir_replacement _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
# Compute the dirname of FILE. If nonempty, add APPEND to the result, func_split_long_opt_name=${1%%=*}
# otherwise set result to NONDIR_REPLACEMENT. func_split_long_opt_arg=${1#*=}])
func_dirname ()
{
# Extract subdirectory from the argument.
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
if test "X$func_dirname_result" = "X${1}"; then
func_dirname_result="${3}"
else
func_dirname_result="$func_dirname_result${2}"
fi
}
# func_basename file _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
func_basename () func_split_short_opt_arg=${1#??}
{ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
}
dnl func_dirname_and_basename _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
dnl A portable version of this function is already defined in general.m4sh case ${1} in
dnl so there is no need for it here. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
*) func_lo2o_result=${1} ;;
esac])
# func_stripname prefix suffix name _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo
# strip PREFIX and SUFFIX off of NAME. ])
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
# func_strip_suffix prefix name
func_stripname ()
{
case ${2} in
.*) func_stripname_result=`$ECHO "X${3}" \
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
*) func_stripname_result=`$ECHO "X${3}" \
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
esac
}
# sed scripts:
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
my_sed_long_arg='1s/^-[[^=]]*=//'
# func_opt_split _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] )
func_opt_split () )])
{
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
}
# func_lo2o object _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
func_lo2o () fi
{
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
}
# func_xform libobj-or-source if test x"$lt_shell_append" = xyes; then
func_xform () _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
{
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
}
# func_arith arithmetic-term... _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
func_arith () func_quote_for_eval "${2}"
{ dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that int
func_arith_result=`expr "$[@]"` o \
} eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
# func_len string # Save a `func_append' function call where possible by direct use of '+='
# STRING may not start with a hyphen. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfil
func_len () e.tmp \
{ && mv -f "$cfgfile.tmp" "$cfgfile" \
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfi
} le.tmp")
test 0 -eq $? || _lt_function_replace_fail=:
else
# Save a `func_append' function call even when '+=' is not available
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgf
ile.tmp \
&& mv -f "$cfgfile.tmp" "$cfgfile" \
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfi
le.tmp")
test 0 -eq $? || _lt_function_replace_fail=:
fi
_LT_EOF if test x"$_lt_function_replace_fail" = x":"; then
esac AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
fi
])
case $lt_shell_append in # _LT_PATH_CONVERSION_FUNCTIONS
yes) # -----------------------------
cat << \_LT_EOF >> "$cfgfile" # Determine which file name conversion functions should be used by
# func_to_host_file (and, implicitly, by func_to_host_path). These are nee
# func_append var value ded
# Append VALUE to the end of shell variable VAR. # for certain cross-compile configurations and native mingw.
func_append () m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
{ [AC_REQUIRE([AC_CANONICAL_HOST])dnl
eval "$[1]+=\$[2]" AC_REQUIRE([AC_CANONICAL_BUILD])dnl
} AC_MSG_CHECKING([how to convert $build file names to $host format])
_LT_EOF AC_CACHE_VAL(lt_cv_to_host_file_cmd,
[case $host in
*-*-mingw* )
case $build in
*-*-mingw* ) # actually msys
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
;;
*-*-cygwin* )
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
;;
* ) # otherwise, assume *nix
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
;;
esac
;; ;;
*) *-*-cygwin* )
cat << \_LT_EOF >> "$cfgfile" case $build in
*-*-mingw* ) # actually msys
# func_append var value lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
# Append VALUE to the end of shell variable VAR. ;;
func_append () *-*-cygwin* )
{ lt_cv_to_host_file_cmd=func_convert_file_noop
eval "$[1]=\$$[1]\$[2]" ;;
} * ) # otherwise, assume *nix
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
_LT_EOF ;;
esac
;; ;;
esac * ) # unhandled hosts (and "normal" native builds)
lt_cv_to_host_file_cmd=func_convert_file_noop
;;
esac
])
to_host_file_cmd=$lt_cv_to_host_file_cmd
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
[0], [convert $build file names to $host format])dnl
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
[#assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
*-*-mingw* )
case $build in
*-*-mingw* ) # actually msys
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
;;
esac
;;
esac
]) ])
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
[0], [convert $build files to toolchain format])dnl
])# _LT_PATH_CONVERSION_FUNCTIONS
# Helper functions for option handling. -*- Autoconf -*- # Helper functions for option handling. -*- Autoconf -*-
# #
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
# Inc.
# Written by Gary V. Vaughan, 2004 # Written by Gary V. Vaughan, 2004
# #
# 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.
# serial 6 ltoptions.m4 # serial 7 ltoptions.m4
# This is to help aclocal find these macros, as it can't see m4_define. # This is to help aclocal find these macros, as it can't see m4_define.
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
# ------------------------------------------ # ------------------------------------------
m4_define([_LT_MANGLE_OPTION], m4_define([_LT_MANGLE_OPTION],
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
skipping to change at line 8405 skipping to change at line 9067
dnl aclocal-1.4 backwards compatibility: dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
# win32-dll # win32-dll
# --------- # ---------
# Declare package support for building win32 dll's. # Declare package support for building win32 dll's.
LT_OPTION_DEFINE([LT_INIT], [win32-dll], LT_OPTION_DEFINE([LT_INIT], [win32-dll],
[enable_win32_dll=yes [enable_win32_dll=yes
case $host in case $host in
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(AS, as, false)
AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false)
AC_CHECK_TOOL(OBJDUMP, objdump, false) AC_CHECK_TOOL(OBJDUMP, objdump, false)
;; ;;
esac esac
test -z "$AS" && AS=as test -z "$AS" && AS=as
_LT_DECL([], [AS], [0], [Assembler program])dnl _LT_DECL([], [AS], [1], [Assembler program])dnl
test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$DLLTOOL" && DLLTOOL=dlltool
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$OBJDUMP" && OBJDUMP=objdump
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
])# win32-dll ])# win32-dll
AU_DEFUN([AC_LIBTOOL_WIN32_DLL], AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl [AC_REQUIRE([AC_CANONICAL_HOST])dnl
_LT_SET_OPTION([LT_INIT], [win32-dll]) _LT_SET_OPTION([LT_INIT], [win32-dll])
AC_DIAGNOSE([obsolete], AC_DIAGNOSE([obsolete],
[$0: Remove this warning and the call to _LT_SET_OPTION when you [$0: Remove this warning and the call to _LT_SET_OPTION when you
put the `win32-dll' option into LT_INIT's first parameter.]) put the `win32-dll' option into LT_INIT's first parameter.])
]) ])
skipping to change at line 8599 skipping to change at line 9261
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
# _LT_WITH_PIC([MODE]) # _LT_WITH_PIC([MODE])
# -------------------- # --------------------
# implement the --with-pic flag, and support the `pic-only' and `no-pic' # implement the --with-pic flag, and support the `pic-only' and `no-pic'
# LT_INIT options. # LT_INIT options.
# MODE is either `yes' or `no'. If omitted, it defaults to `both'. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
m4_define([_LT_WITH_PIC], m4_define([_LT_WITH_PIC],
[AC_ARG_WITH([pic], [AC_ARG_WITH([pic],
[AS_HELP_STRING([--with-pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
[pic_mode="$withval"], [lt_p=${PACKAGE-default}
case $withval in
yes|no) pic_mode=$withval ;;
*)
pic_mode=default
# Look at the argument we got. We use all the common list separators
.
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
for lt_pkg in $withval; do
IFS="$lt_save_ifs"
if test "X$lt_pkg" = "X$lt_p"; then
pic_mode=yes
fi
done
IFS="$lt_save_ifs"
;;
esac],
[pic_mode=default]) [pic_mode=default])
test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
])# _LT_WITH_PIC ])# _LT_WITH_PIC
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
skipping to change at line 8759 skipping to change at line 9436
# ltversion.m4 -- version numbers -*- Autoconf -*- # ltversion.m4 -- version numbers -*- Autoconf -*-
# #
# Copyright (C) 2004 Free Software Foundation, Inc. # Copyright (C) 2004 Free Software Foundation, Inc.
# Written by Scott James Remnant, 2004 # Written by Scott James Remnant, 2004
# #
# 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.
# Generated from ltversion.in. # @configure_input@
# serial 3012 ltversion.m4 # serial 3337 ltversion.m4
# This file is part of GNU Libtool # This file is part of GNU Libtool
m4_define([LT_PACKAGE_VERSION], [2.2.6]) m4_define([LT_PACKAGE_VERSION], [2.4.2])
m4_define([LT_PACKAGE_REVISION], [1.3012]) m4_define([LT_PACKAGE_REVISION], [1.3337])
AC_DEFUN([LTVERSION_VERSION], AC_DEFUN([LTVERSION_VERSION],
[macro_version='2.2.6' [macro_version='2.4.2'
macro_revision='1.3012' macro_revision='1.3337'
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
_LT_DECL(, macro_revision, 0) _LT_DECL(, macro_revision, 0)
]) ])
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf -*- # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf -*-
# #
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
# Written by Scott James Remnant, 2004. # Written by Scott James Remnant, 2004.
# #
# 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.
# serial 4 lt~obsolete.m4 # serial 5 lt~obsolete.m4
# These exist entirely to fool aclocal when bootstrapping libtool. # These exist entirely to fool aclocal when bootstrapping libtool.
# #
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
# which have later been changed to m4_define as they aren't part of the # which have later been changed to m4_define as they aren't part of the
# exported API, or moved to Autoconf or Automake where they belong. # exported API, or moved to Autoconf or Automake where they belong.
# #
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
# using a macro with the same name in our local m4/libtool.m4 it'll # using a macro with the same name in our local m4/libtool.m4 it'll
skipping to change at line 8853 skipping to change at line 9530
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])] ) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])] )
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFC N])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFC N])])
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DY NAMIC_LINKER])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DY NAMIC_LINKER])])
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL]) ]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL]) ])
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG] )]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG] )])
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C XX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C XX_CONFIG])])
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])] ) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])] )
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F 77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F 77_CONFIG])])
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])] ) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])] )
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_G CJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_G CJ_CONFIG])])
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])] ) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])] )
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG ])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG ])])
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARW
IN_CHECKS])])
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCP
P])])
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_Q
UOTE_VARS])])
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])
])
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
# serial 1 (pkg-config-0.24)
# #
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or # the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, but # This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
skipping to change at line 8894 skipping to change at line 9578
# #
# As a special exception to the GNU General Public License, if you # As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a # distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under # configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program. # the same distribution terms that you use for the rest of that program.
# PKG_PROG_PKG_CONFIG([MIN-VERSION]) # PKG_PROG_PKG_CONFIG([MIN-VERSION])
# ---------------------------------- # ----------------------------------
AC_DEFUN([PKG_PROG_PKG_CONFIG], AC_DEFUN([PKG_PROG_PKG_CONFIG],
[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAG
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl S|LIBS)))?$])
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW
)$])
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search pa
th])
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in sear
ch path])
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
fi fi
if test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG"; then
_pkg_min_version=m4_default([$1], [0.9.0]) _pkg_min_version=m4_default([$1], [0.9.0])
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
PKG_CONFIG="" PKG_CONFIG=""
fi fi
fi[]dnl fi[]dnl
])# PKG_PROG_PKG_CONFIG ])# PKG_PROG_PKG_CONFIG
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
# #
# Check to see whether a particular set of modules exists. Similar # Check to see whether a particular set of modules exists. Similar
# to PKG_CHECK_MODULES(), but does not set variables or print errors. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
# #
# # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
# Similar to PKG_CHECK_MODULES, make sure that the first instance of # only at the first occurence in configure.ac, so if the first place
# this or PKG_CHECK_MODULES is called, or make sure to call # it's called might be skipped (such as if it is within an "if", you
# PKG_CHECK_EXISTS manually # have to call PKG_CHECK_EXISTS manually
# -------------------------------------------------------------- # --------------------------------------------------------------
AC_DEFUN([PKG_CHECK_EXISTS], AC_DEFUN([PKG_CHECK_EXISTS],
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
if test -n "$PKG_CONFIG" && \ if test -n "$PKG_CONFIG" && \
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
m4_ifval([$2], [$2], [:]) m4_default([$2], [:])
m4_ifvaln([$3], [else m4_ifvaln([$3], [else
$3])dnl $3])dnl
fi]) fi])
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
# --------------------------------------------- # ---------------------------------------------
m4_define([_PKG_CONFIG], m4_define([_PKG_CONFIG],
[if test -n "$$1"; then [if test -n "$$1"; then
pkg_cv_[]$1="$$1" pkg_cv_[]$1="$$1"
elif test -n "$PKG_CONFIG"; then elif test -n "$PKG_CONFIG"; then
PKG_CHECK_EXISTS([$3], PKG_CHECK_EXISTS([$3],
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes ],
[pkg_failed=yes]) [pkg_failed=yes])
else else
pkg_failed=untried pkg_failed=untried
fi[]dnl fi[]dnl
])# _PKG_CONFIG ])# _PKG_CONFIG
# _PKG_SHORT_ERRORS_SUPPORTED # _PKG_SHORT_ERRORS_SUPPORTED
# ----------------------------- # -----------------------------
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
skipping to change at line 8982 skipping to change at line 9670
AC_MSG_CHECKING([for $1]) AC_MSG_CHECKING([for $1])
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
_PKG_CONFIG([$1][_LIBS], [libs], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2])
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variable s $1[]_CFLAGS m4_define([_PKG_TEXT], [Alternatively, you may set the environment variable s $1[]_CFLAGS
and $1[]_LIBS to avoid the need to call pkg-config. and $1[]_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.]) See the pkg-config man page for more details.])
if test $pkg_failed = yes; then if test $pkg_failed = yes; then
AC_MSG_RESULT([no])
_PKG_SHORT_ERRORS_SUPPORTED _PKG_SHORT_ERRORS_SUPPORTED
if test $_pkg_short_errors_supported = yes; then if test $_pkg_short_errors_supported = yes; then
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " $2" 2>&1` $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors - -cflags --libs "$2" 2>&1`
else else
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
fi fi
# Put the nasty error message in config.log where it belongs # Put the nasty error message in config.log where it belongs
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
ifelse([$4], , [AC_MSG_ERROR(dnl m4_default([$4], [AC_MSG_ERROR(
[Package requirements ($2) were not met: [Package requirements ($2) were not met:
$$1_PKG_ERRORS $$1_PKG_ERRORS
Consider adjusting the PKG_CONFIG_PATH environment variable if you Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix. installed software in a non-standard prefix.
_PKG_TEXT _PKG_TEXT])[]dnl
])], ])
[AC_MSG_RESULT([no])
$4])
elif test $pkg_failed = untried; then elif test $pkg_failed = untried; then
ifelse([$4], , [AC_MSG_FAILURE(dnl AC_MSG_RESULT([no])
m4_default([$4], [AC_MSG_FAILURE(
[The pkg-config script could not be found or is too old. Make sure it [The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config. path to pkg-config.
_PKG_TEXT _PKG_TEXT
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
[$4]) ])
else else
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
ifelse([$3], , :, [$3]) $3
fi[]dnl fi[]dnl
])# PKG_CHECK_MODULES ])# PKG_CHECK_MODULES
 End of changes. 405 change blocks. 
984 lines changed or deleted 1760 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/