udis86sx/udis86/build/m4/libtool.m4
changeset 21 7d99b51b4784
parent 0 e4a716697bef
equal deleted inserted replaced
20:7f2660be9066 21:7d99b51b4784
     1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
     1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
     2 #
     2 #
     3 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
     3 #   Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
     4 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
       
     5 #                 Foundation, Inc.
       
     6 #   Written by Gordon Matzigkeit, 1996
     4 #   Written by Gordon Matzigkeit, 1996
     7 #
     5 #
     8 # This file is free software; the Free Software Foundation gives
     6 # This file is free software; the Free Software Foundation gives
     9 # unlimited permission to copy and/or distribute it, with or without
     7 # unlimited permission to copy and/or distribute it, with or without
    10 # modifications, as long as this notice is preserved.
     8 # modifications, as long as this notice is preserved.
    11 
     9 
    12 m4_define([_LT_COPYING], [dnl
    10 m4_define([_LT_COPYING], [dnl
    13 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    11 # Copyright (C) 2014 Free Software Foundation, Inc.
    14 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
    12 # This is free software; see the source for copying conditions.  There is NO
    15 #                 Foundation, Inc.
    13 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    16 #   Written by Gordon Matzigkeit, 1996
    14 
       
    15 # GNU Libtool is free software; you can redistribute it and/or modify
       
    16 # it under the terms of the GNU General Public License as published by
       
    17 # the Free Software Foundation; either version 2 of of the License, or
       
    18 # (at your option) any later version.
    17 #
    19 #
    18 #   This file is part of GNU Libtool.
    20 # As a special exception to the GNU General Public License, if you
       
    21 # distribute this file as part of a program or library that is built
       
    22 # using GNU Libtool, you may include this file under the  same
       
    23 # distribution terms that you use for the rest of that program.
    19 #
    24 #
    20 # GNU Libtool is free software; you can redistribute it and/or
    25 # GNU Libtool is distributed in the hope that it will be useful, but
    21 # modify it under the terms of the GNU General Public License as
    26 # WITHOUT ANY WARRANTY; without even the implied warranty of
    22 # published by the Free Software Foundation; either version 2 of
       
    23 # the License, or (at your option) any later version.
       
    24 #
       
    25 # As a special exception to the GNU General Public License,
       
    26 # if you distribute this file as part of a program or library that
       
    27 # is built using GNU Libtool, you may include this file under the
       
    28 # same distribution terms that you use for the rest of that program.
       
    29 #
       
    30 # GNU Libtool is distributed in the hope that it will be useful,
       
    31 # but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    32 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    33 # GNU General Public License for more details.
    28 # GNU General Public License for more details.
    34 #
    29 #
    35 # You should have received a copy of the GNU General Public License
    30 # You should have received a copy of the GNU General Public License
    36 # along with GNU Libtool; see the file COPYING.  If not, a copy
    31 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
    37 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
       
    38 # obtained by writing to the Free Software Foundation, Inc.,
       
    39 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
       
    40 ])
    32 ])
    41 
    33 
    42 # serial 57 LT_INIT
    34 # serial 58 LT_INIT
    43 
    35 
    44 
    36 
    45 # LT_PREREQ(VERSION)
    37 # LT_PREREQ(VERSION)
    46 # ------------------
    38 # ------------------
    47 # Complain and exit if this libtool version is less that VERSION.
    39 # Complain and exit if this libtool version is less that VERSION.
    65 
    57 
    66 
    58 
    67 # LT_INIT([OPTIONS])
    59 # LT_INIT([OPTIONS])
    68 # ------------------
    60 # ------------------
    69 AC_DEFUN([LT_INIT],
    61 AC_DEFUN([LT_INIT],
    70 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
    62 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
    71 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    63 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    72 AC_BEFORE([$0], [LT_LANG])dnl
    64 AC_BEFORE([$0], [LT_LANG])dnl
    73 AC_BEFORE([$0], [LT_OUTPUT])dnl
    65 AC_BEFORE([$0], [LT_OUTPUT])dnl
    74 AC_BEFORE([$0], [LTDL_INIT])dnl
    66 AC_BEFORE([$0], [LTDL_INIT])dnl
    75 m4_require([_LT_CHECK_BUILDDIR])dnl
    67 m4_require([_LT_CHECK_BUILDDIR])dnl
    89 
    81 
    90 dnl Parse OPTIONS
    82 dnl Parse OPTIONS
    91 _LT_SET_OPTIONS([$0], [$1])
    83 _LT_SET_OPTIONS([$0], [$1])
    92 
    84 
    93 # This can be used to rebuild libtool when needed
    85 # This can be used to rebuild libtool when needed
    94 LIBTOOL_DEPS="$ltmain"
    86 LIBTOOL_DEPS=$ltmain
    95 
    87 
    96 # Always use our own libtool.
    88 # Always use our own libtool.
    97 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
    89 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
    98 AC_SUBST(LIBTOOL)dnl
    90 AC_SUBST(LIBTOOL)dnl
    99 
    91 
   109 dnl aclocal-1.4 backwards compatibility:
   101 dnl aclocal-1.4 backwards compatibility:
   110 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
   102 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
   111 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
   103 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
   112 
   104 
   113 
   105 
       
   106 # _LT_PREPARE_CC_BASENAME
       
   107 # -----------------------
       
   108 m4_defun([_LT_PREPARE_CC_BASENAME], [
       
   109 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
       
   110 func_cc_basename ()
       
   111 {
       
   112     for cc_temp in @S|@*""; do
       
   113       case $cc_temp in
       
   114         compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
       
   115         distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
       
   116         \-*) ;;
       
   117         *) break;;
       
   118       esac
       
   119     done
       
   120     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
       
   121 }
       
   122 ])# _LT_PREPARE_CC_BASENAME
       
   123 
       
   124 
   114 # _LT_CC_BASENAME(CC)
   125 # _LT_CC_BASENAME(CC)
   115 # -------------------
   126 # -------------------
   116 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   127 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
       
   128 # but that macro is also expanded into generated libtool script, which
       
   129 # arranges for $SED and $ECHO to be set by different means.
   117 m4_defun([_LT_CC_BASENAME],
   130 m4_defun([_LT_CC_BASENAME],
   118 [for cc_temp in $1""; do
   131 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
   119   case $cc_temp in
   132 AC_REQUIRE([_LT_DECL_SED])dnl
   120     compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
   133 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
   121     distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
   134 func_cc_basename $1
   122     \-*) ;;
   135 cc_basename=$func_cc_basename_result
   123     *) break;;
       
   124   esac
       
   125 done
       
   126 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
       
   127 ])
   136 ])
   128 
   137 
   129 
   138 
   130 # _LT_FILEUTILS_DEFAULTS
   139 # _LT_FILEUTILS_DEFAULTS
   131 # ----------------------
   140 # ----------------------
   132 # It is okay to use these file commands and assume they have been set
   141 # It is okay to use these file commands and assume they have been set
   133 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
   142 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
   134 m4_defun([_LT_FILEUTILS_DEFAULTS],
   143 m4_defun([_LT_FILEUTILS_DEFAULTS],
   135 [: ${CP="cp -f"}
   144 [: ${CP="cp -f"}
   136 : ${MV="mv -f"}
   145 : ${MV="mv -f"}
   137 : ${RM="rm -f"}
   146 : ${RM="rm -f"}
   138 ])# _LT_FILEUTILS_DEFAULTS
   147 ])# _LT_FILEUTILS_DEFAULTS
   175 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
   184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
   176 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
   185 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
   177 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
   186 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
   178 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
   187 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
   179 m4_require([_LT_WITH_SYSROOT])dnl
   188 m4_require([_LT_WITH_SYSROOT])dnl
       
   189 m4_require([_LT_CMD_TRUNCATE])dnl
   180 
   190 
   181 _LT_CONFIG_LIBTOOL_INIT([
   191 _LT_CONFIG_LIBTOOL_INIT([
   182 # See if we are running on zsh, and set the options which allow our
   192 # See if we are running on zsh, and set the options that allow our
   183 # commands through without removal of \ escapes INIT.
   193 # commands through without removal of \ escapes INIT.
   184 if test -n "\${ZSH_VERSION+set}" ; then
   194 if test -n "\${ZSH_VERSION+set}"; then
   185    setopt NO_GLOB_SUBST
   195    setopt NO_GLOB_SUBST
   186 fi
   196 fi
   187 ])
   197 ])
   188 if test -n "${ZSH_VERSION+set}" ; then
   198 if test -n "${ZSH_VERSION+set}"; then
   189    setopt NO_GLOB_SUBST
   199    setopt NO_GLOB_SUBST
   190 fi
   200 fi
   191 
   201 
   192 _LT_CHECK_OBJDIR
   202 _LT_CHECK_OBJDIR
   193 
   203 
   196 case $host_os in
   206 case $host_os in
   197 aix3*)
   207 aix3*)
   198   # AIX sometimes has problems with the GCC collect2 program.  For some
   208   # AIX sometimes has problems with the GCC collect2 program.  For some
   199   # reason, if we set the COLLECT_NAMES environment variable, the problems
   209   # reason, if we set the COLLECT_NAMES environment variable, the problems
   200   # vanish in a puff of smoke.
   210   # vanish in a puff of smoke.
   201   if test "X${COLLECT_NAMES+set}" != Xset; then
   211   if test set != "${COLLECT_NAMES+set}"; then
   202     COLLECT_NAMES=
   212     COLLECT_NAMES=
   203     export COLLECT_NAMES
   213     export COLLECT_NAMES
   204   fi
   214   fi
   205   ;;
   215   ;;
   206 esac
   216 esac
   207 
   217 
   208 # Global variables:
   218 # Global variables:
   209 ofile=libtool
   219 ofile=libtool
   210 can_build_shared=yes
   220 can_build_shared=yes
   211 
   221 
   212 # All known linkers require a `.a' archive for static linking (except MSVC,
   222 # All known linkers require a '.a' archive for static linking (except MSVC,
   213 # which needs '.lib').
   223 # which needs '.lib').
   214 libext=a
   224 libext=a
   215 
   225 
   216 with_gnu_ld="$lt_cv_prog_gnu_ld"
   226 with_gnu_ld=$lt_cv_prog_gnu_ld
   217 
   227 
   218 old_CC="$CC"
   228 old_CC=$CC
   219 old_CFLAGS="$CFLAGS"
   229 old_CFLAGS=$CFLAGS
   220 
   230 
   221 # Set sane defaults for various variables
   231 # Set sane defaults for various variables
   222 test -z "$CC" && CC=cc
   232 test -z "$CC" && CC=cc
   223 test -z "$LTCC" && LTCC=$CC
   233 test -z "$LTCC" && LTCC=$CC
   224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   234 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   267 no_glob_subst='s/\*/\\\*/g'
   277 no_glob_subst='s/\*/\\\*/g'
   268 ])
   278 ])
   269 
   279 
   270 # _LT_PROG_LTMAIN
   280 # _LT_PROG_LTMAIN
   271 # ---------------
   281 # ---------------
   272 # Note that this code is called both from `configure', and `config.status'
   282 # Note that this code is called both from 'configure', and 'config.status'
   273 # now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
   283 # now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
   274 # `config.status' has no value for ac_aux_dir unless we are using Automake,
   284 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
   275 # so we pass a copy along to make sure it has a sensible value anyway.
   285 # so we pass a copy along to make sure it has a sensible value anyway.
   276 m4_defun([_LT_PROG_LTMAIN],
   286 m4_defun([_LT_PROG_LTMAIN],
   277 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
   287 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
   278 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
   288 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
   279 ltmain="$ac_aux_dir/ltmain.sh"
   289 ltmain=$ac_aux_dir/ltmain.sh
   280 ])# _LT_PROG_LTMAIN
   290 ])# _LT_PROG_LTMAIN
   281 
   291 
   282 
   292 
   283 ## ------------------------------------- ##
   293 ## ------------------------------------- ##
   284 ## Accumulate code for creating libtool. ##
   294 ## Accumulate code for creating libtool. ##
   285 ## ------------------------------------- ##
   295 ## ------------------------------------- ##
   286 
   296 
   287 # So that we can recreate a full libtool script including additional
   297 # So that we can recreate a full libtool script including additional
   288 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
   298 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
   289 # in macros and then make a single call at the end using the `libtool'
   299 # in macros and then make a single call at the end using the 'libtool'
   290 # label.
   300 # label.
   291 
   301 
   292 
   302 
   293 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
   303 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
   294 # ----------------------------------------
   304 # ----------------------------------------
   419 ])
   429 ])
   420 
   430 
   421 
   431 
   422 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
   432 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
   423 # ------------------------------------
   433 # ------------------------------------
   424 # Quote a variable value, and forward it to `config.status' so that its
   434 # Quote a variable value, and forward it to 'config.status' so that its
   425 # declaration there will have the same value as in `configure'.  VARNAME
   435 # declaration there will have the same value as in 'configure'.  VARNAME
   426 # must have a single quote delimited value for this to work.
   436 # must have a single quote delimited value for this to work.
   427 m4_define([_LT_CONFIG_STATUS_DECLARE],
   437 m4_define([_LT_CONFIG_STATUS_DECLARE],
   428 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
   438 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
   429 
   439 
   430 
   440 
   444 # _LT_LIBTOOL_TAGS
   454 # _LT_LIBTOOL_TAGS
   445 # ----------------
   455 # ----------------
   446 # Output comment and list of tags supported by the script
   456 # Output comment and list of tags supported by the script
   447 m4_defun([_LT_LIBTOOL_TAGS],
   457 m4_defun([_LT_LIBTOOL_TAGS],
   448 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
   458 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
   449 available_tags="_LT_TAGS"dnl
   459 available_tags='_LT_TAGS'dnl
   450 ])
   460 ])
   451 
   461 
   452 
   462 
   453 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
   463 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
   454 # -----------------------------------
   464 # -----------------------------------
   472 
   482 
   473 
   483 
   474 # _LT_LIBTOOL_CONFIG_VARS
   484 # _LT_LIBTOOL_CONFIG_VARS
   475 # -----------------------
   485 # -----------------------
   476 # Produce commented declarations of non-tagged libtool config variables
   486 # Produce commented declarations of non-tagged libtool config variables
   477 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
   487 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
   478 # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
   488 # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
   479 # section) are produced by _LT_LIBTOOL_TAG_VARS.
   489 # section) are produced by _LT_LIBTOOL_TAG_VARS.
   480 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
   490 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
   481 [m4_foreach([_lt_var],
   491 [m4_foreach([_lt_var],
   482     m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
   492     m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
   498 # _LT_CONFIG_COMMANDS
   508 # _LT_CONFIG_COMMANDS
   499 # -------------------
   509 # -------------------
   500 # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
   510 # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
   501 # variables for single and double quote escaping we saved from calls
   511 # variables for single and double quote escaping we saved from calls
   502 # to _LT_DECL, we can put quote escaped variables declarations
   512 # to _LT_DECL, we can put quote escaped variables declarations
   503 # into `config.status', and then the shell code to quote escape them in
   513 # into 'config.status', and then the shell code to quote escape them in
   504 # for loops in `config.status'.  Finally, any additional code accumulated
   514 # for loops in 'config.status'.  Finally, any additional code accumulated
   505 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
   515 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
   506 m4_defun([_LT_CONFIG_COMMANDS],
   516 m4_defun([_LT_CONFIG_COMMANDS],
   507 [AC_PROVIDE_IFELSE([LT_OUTPUT],
   517 [AC_PROVIDE_IFELSE([LT_OUTPUT],
   508 	dnl If the libtool generation code has been placed in $CONFIG_LT,
   518 	dnl If the libtool generation code has been placed in $CONFIG_LT,
   509 	dnl instead of duplicating it all over again into config.status,
   519 	dnl instead of duplicating it all over again into config.status,
   545 # Quote evaled strings.
   555 # Quote evaled strings.
   546 for var in lt_decl_all_varnames([[ \
   556 for var in lt_decl_all_varnames([[ \
   547 ]], lt_decl_quote_varnames); do
   557 ]], lt_decl_quote_varnames); do
   548     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   558     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   549     *[[\\\\\\\`\\"\\\$]]*)
   559     *[[\\\\\\\`\\"\\\$]]*)
   550       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   560       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   551       ;;
   561       ;;
   552     *)
   562     *)
   553       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   563       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   554       ;;
   564       ;;
   555     esac
   565     esac
   558 # Double-quote double-evaled strings.
   568 # Double-quote double-evaled strings.
   559 for var in lt_decl_all_varnames([[ \
   569 for var in lt_decl_all_varnames([[ \
   560 ]], lt_decl_dquote_varnames); do
   570 ]], lt_decl_dquote_varnames); do
   561     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   571     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   562     *[[\\\\\\\`\\"\\\$]]*)
   572     *[[\\\\\\\`\\"\\\$]]*)
   563       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   573       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   564       ;;
   574       ;;
   565     *)
   575     *)
   566       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   576       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   567       ;;
   577       ;;
   568     esac
   578     esac
   574 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
   584 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
   575 # ------------------------------------
   585 # ------------------------------------
   576 # Generate a child script FILE with all initialization necessary to
   586 # Generate a child script FILE with all initialization necessary to
   577 # reuse the environment learned by the parent script, and make the
   587 # reuse the environment learned by the parent script, and make the
   578 # file executable.  If COMMENT is supplied, it is inserted after the
   588 # file executable.  If COMMENT is supplied, it is inserted after the
   579 # `#!' sequence but before initialization text begins.  After this
   589 # '#!' sequence but before initialization text begins.  After this
   580 # macro, additional text can be appended to FILE to form the body of
   590 # macro, additional text can be appended to FILE to form the body of
   581 # the child script.  The macro ends with non-zero status if the
   591 # the child script.  The macro ends with non-zero status if the
   582 # file could not be fully written (such as if the disk is full).
   592 # file could not be fully written (such as if the disk is full).
   583 m4_ifdef([AS_INIT_GENERATED],
   593 m4_ifdef([AS_INIT_GENERATED],
   584 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
   594 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
   596 cat >>$1 <<\_ASEOF || lt_write_fail=1
   606 cat >>$1 <<\_ASEOF || lt_write_fail=1
   597 AS_SHELL_SANITIZE
   607 AS_SHELL_SANITIZE
   598 _AS_PREPARE
   608 _AS_PREPARE
   599 exec AS_MESSAGE_FD>&1
   609 exec AS_MESSAGE_FD>&1
   600 _ASEOF
   610 _ASEOF
   601 test $lt_write_fail = 0 && chmod +x $1[]dnl
   611 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
   602 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
   612 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
   603 
   613 
   604 # LT_OUTPUT
   614 # LT_OUTPUT
   605 # ---------
   615 # ---------
   606 # This macro allows early generation of the libtool script (before
   616 # This macro allows early generation of the libtool script (before
   619   echo
   629   echo
   620   AS_BOX([Running $as_me.])
   630   AS_BOX([Running $as_me.])
   621 } >&AS_MESSAGE_LOG_FD
   631 } >&AS_MESSAGE_LOG_FD
   622 
   632 
   623 lt_cl_help="\
   633 lt_cl_help="\
   624 \`$as_me' creates a local libtool stub from the current configuration,
   634 '$as_me' creates a local libtool stub from the current configuration,
   625 for use in further configure time tests before the real libtool is
   635 for use in further configure time tests before the real libtool is
   626 generated.
   636 generated.
   627 
   637 
   628 Usage: $[0] [[OPTIONS]]
   638 Usage: $[0] [[OPTIONS]]
   629 
   639 
   641 
   651 
   642 Copyright (C) 2011 Free Software Foundation, Inc.
   652 Copyright (C) 2011 Free Software Foundation, Inc.
   643 This config.lt script is free software; the Free Software Foundation
   653 This config.lt script is free software; the Free Software Foundation
   644 gives unlimited permision to copy, distribute and modify it."
   654 gives unlimited permision to copy, distribute and modify it."
   645 
   655 
   646 while test $[#] != 0
   656 while test 0 != $[#]
   647 do
   657 do
   648   case $[1] in
   658   case $[1] in
   649     --version | --v* | -V )
   659     --version | --v* | -V )
   650       echo "$lt_cl_version"; exit 0 ;;
   660       echo "$lt_cl_version"; exit 0 ;;
   651     --help | --h* | -h )
   661     --help | --h* | -h )
   654       debug=: ;;
   664       debug=: ;;
   655     --quiet | --q* | --silent | --s* | -q )
   665     --quiet | --q* | --silent | --s* | -q )
   656       lt_cl_silent=: ;;
   666       lt_cl_silent=: ;;
   657 
   667 
   658     -*) AC_MSG_ERROR([unrecognized option: $[1]
   668     -*) AC_MSG_ERROR([unrecognized option: $[1]
   659 Try \`$[0] --help' for more information.]) ;;
   669 Try '$[0] --help' for more information.]) ;;
   660 
   670 
   661     *) AC_MSG_ERROR([unrecognized argument: $[1]
   671     *) AC_MSG_ERROR([unrecognized argument: $[1]
   662 Try \`$[0] --help' for more information.]) ;;
   672 Try '$[0] --help' for more information.]) ;;
   663   esac
   673   esac
   664   shift
   674   shift
   665 done
   675 done
   666 
   676 
   667 if $lt_cl_silent; then
   677 if $lt_cl_silent; then
   683 # configure is writing to config.log, but config.lt does its own redirection,
   693 # configure is writing to config.log, but config.lt does its own redirection,
   684 # appending to config.log, which fails on DOS, as config.log is still kept
   694 # appending to config.log, which fails on DOS, as config.log is still kept
   685 # open by configure.  Here we exec the FD to /dev/null, effectively closing
   695 # open by configure.  Here we exec the FD to /dev/null, effectively closing
   686 # config.log, so it can be properly (re)opened and appended to by config.lt.
   696 # config.log, so it can be properly (re)opened and appended to by config.lt.
   687 lt_cl_success=:
   697 lt_cl_success=:
   688 test "$silent" = yes &&
   698 test yes = "$silent" &&
   689   lt_config_lt_args="$lt_config_lt_args --quiet"
   699   lt_config_lt_args="$lt_config_lt_args --quiet"
   690 exec AS_MESSAGE_LOG_FD>/dev/null
   700 exec AS_MESSAGE_LOG_FD>/dev/null
   691 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   701 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   692 exec AS_MESSAGE_LOG_FD>>config.log
   702 exec AS_MESSAGE_LOG_FD>>config.log
   693 $lt_cl_success || AS_EXIT(1)
   703 $lt_cl_success || AS_EXIT(1)
   703 m4_defun([_LT_CONFIG],
   713 m4_defun([_LT_CONFIG],
   704 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   714 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   705 _LT_CONFIG_SAVE_COMMANDS([
   715 _LT_CONFIG_SAVE_COMMANDS([
   706   m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
   716   m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
   707   m4_if(_LT_TAG, [C], [
   717   m4_if(_LT_TAG, [C], [
   708     # See if we are running on zsh, and set the options which allow our
   718     # See if we are running on zsh, and set the options that allow our
   709     # commands through without removal of \ escapes.
   719     # commands through without removal of \ escapes.
   710     if test -n "${ZSH_VERSION+set}" ; then
   720     if test -n "${ZSH_VERSION+set}"; then
   711       setopt NO_GLOB_SUBST
   721       setopt NO_GLOB_SUBST
   712     fi
   722     fi
   713 
   723 
   714     cfgfile="${ofile}T"
   724     cfgfile=${ofile}T
   715     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   725     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   716     $RM "$cfgfile"
   726     $RM "$cfgfile"
   717 
   727 
   718     cat <<_LT_EOF >> "$cfgfile"
   728     cat <<_LT_EOF >> "$cfgfile"
   719 #! $SHELL
   729 #! $SHELL
   720 
   730 # Generated automatically by $as_me ($PACKAGE) $VERSION
   721 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
       
   722 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
       
   723 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   724 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   725 #
   733 
       
   734 # Provide generalized library-building support services.
       
   735 # Written by Gordon Matzigkeit, 1996
       
   736 
   726 _LT_COPYING
   737 _LT_COPYING
   727 _LT_LIBTOOL_TAGS
   738 _LT_LIBTOOL_TAGS
       
   739 
       
   740 # Configured defaults for sys_lib_dlsearch_path munging.
       
   741 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   728 
   742 
   729 # ### BEGIN LIBTOOL CONFIG
   743 # ### BEGIN LIBTOOL CONFIG
   730 _LT_LIBTOOL_CONFIG_VARS
   744 _LT_LIBTOOL_CONFIG_VARS
   731 _LT_LIBTOOL_TAG_VARS
   745 _LT_LIBTOOL_TAG_VARS
   732 # ### END LIBTOOL CONFIG
   746 # ### END LIBTOOL CONFIG
       
   747 
       
   748 _LT_EOF
       
   749 
       
   750     cat <<'_LT_EOF' >> "$cfgfile"
       
   751 
       
   752 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
       
   753 
       
   754 _LT_PREPARE_MUNGE_PATH_LIST
       
   755 _LT_PREPARE_CC_BASENAME
       
   756 
       
   757 # ### END FUNCTIONS SHARED WITH CONFIGURE
   733 
   758 
   734 _LT_EOF
   759 _LT_EOF
   735 
   760 
   736   case $host_os in
   761   case $host_os in
   737   aix3*)
   762   aix3*)
   738     cat <<\_LT_EOF >> "$cfgfile"
   763     cat <<\_LT_EOF >> "$cfgfile"
   739 # AIX sometimes has problems with the GCC collect2 program.  For some
   764 # AIX sometimes has problems with the GCC collect2 program.  For some
   740 # reason, if we set the COLLECT_NAMES environment variable, the problems
   765 # reason, if we set the COLLECT_NAMES environment variable, the problems
   741 # vanish in a puff of smoke.
   766 # vanish in a puff of smoke.
   742 if test "X${COLLECT_NAMES+set}" != Xset; then
   767 if test set != "${COLLECT_NAMES+set}"; then
   743   COLLECT_NAMES=
   768   COLLECT_NAMES=
   744   export COLLECT_NAMES
   769   export COLLECT_NAMES
   745 fi
   770 fi
   746 _LT_EOF
   771 _LT_EOF
   747     ;;
   772     ;;
   753   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   778   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   754   # text mode, it properly converts lines to CR/LF.  This bash problem
   779   # text mode, it properly converts lines to CR/LF.  This bash problem
   755   # is reportedly fixed, but why not run on old versions too?
   780   # is reportedly fixed, but why not run on old versions too?
   756   sed '$q' "$ltmain" >> "$cfgfile" \
   781   sed '$q' "$ltmain" >> "$cfgfile" \
   757      || (rm -f "$cfgfile"; exit 1)
   782      || (rm -f "$cfgfile"; exit 1)
   758 
       
   759   _LT_PROG_REPLACE_SHELLFNS
       
   760 
   783 
   761    mv -f "$cfgfile" "$ofile" ||
   784    mv -f "$cfgfile" "$ofile" ||
   762     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   785     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   763   chmod +x "$ofile"
   786   chmod +x "$ofile"
   764 ],
   787 ],
   773 ])dnl /m4_if
   796 ])dnl /m4_if
   774 ],
   797 ],
   775 [m4_if([$1], [], [
   798 [m4_if([$1], [], [
   776     PACKAGE='$PACKAGE'
   799     PACKAGE='$PACKAGE'
   777     VERSION='$VERSION'
   800     VERSION='$VERSION'
   778     TIMESTAMP='$TIMESTAMP'
       
   779     RM='$RM'
   801     RM='$RM'
   780     ofile='$ofile'], [])
   802     ofile='$ofile'], [])
   781 ])dnl /_LT_CONFIG_SAVE_COMMANDS
   803 ])dnl /_LT_CONFIG_SAVE_COMMANDS
   782 ])# _LT_CONFIG
   804 ])# _LT_CONFIG
   783 
   805 
   972     _LT_DECL([], [OTOOL64], [1],
   994     _LT_DECL([], [OTOOL64], [1],
   973       [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
   995       [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
   974 
   996 
   975     AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
   997     AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
   976       [lt_cv_apple_cc_single_mod=no
   998       [lt_cv_apple_cc_single_mod=no
   977       if test -z "${LT_MULTI_MODULE}"; then
   999       if test -z "$LT_MULTI_MODULE"; then
   978 	# By default we will add the -single_module flag. You can override
  1000 	# By default we will add the -single_module flag. You can override
   979 	# by either setting the environment variable LT_MULTI_MODULE
  1001 	# by either setting the environment variable LT_MULTI_MODULE
   980 	# non-empty at configure time, or by adding -multi_module to the
  1002 	# non-empty at configure time, or by adding -multi_module to the
   981 	# link flags.
  1003 	# link flags.
   982 	rm -rf libconftest.dylib*
  1004 	rm -rf libconftest.dylib*
   990 	# appears in it, assume the flag caused a linker warning
  1012 	# appears in it, assume the flag caused a linker warning
   991         if test -s conftest.err && $GREP single_module conftest.err; then
  1013         if test -s conftest.err && $GREP single_module conftest.err; then
   992 	  cat conftest.err >&AS_MESSAGE_LOG_FD
  1014 	  cat conftest.err >&AS_MESSAGE_LOG_FD
   993 	# Otherwise, if the output was created with a 0 exit code from
  1015 	# Otherwise, if the output was created with a 0 exit code from
   994 	# the compiler, it worked.
  1016 	# the compiler, it worked.
   995 	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  1017 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   996 	  lt_cv_apple_cc_single_mod=yes
  1018 	  lt_cv_apple_cc_single_mod=yes
   997 	else
  1019 	else
   998 	  cat conftest.err >&AS_MESSAGE_LOG_FD
  1020 	  cat conftest.err >&AS_MESSAGE_LOG_FD
   999 	fi
  1021 	fi
  1000 	rm -rf libconftest.dylib*
  1022 	rm -rf libconftest.dylib*
  1008       echo "_main" > conftest.sym
  1030       echo "_main" > conftest.sym
  1009       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1031       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1010       AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1032       AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1011 	[lt_cv_ld_exported_symbols_list=yes],
  1033 	[lt_cv_ld_exported_symbols_list=yes],
  1012 	[lt_cv_ld_exported_symbols_list=no])
  1034 	[lt_cv_ld_exported_symbols_list=no])
  1013 	LDFLAGS="$save_LDFLAGS"
  1035 	LDFLAGS=$save_LDFLAGS
  1014     ])
  1036     ])
  1015 
  1037 
  1016     AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  1038     AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  1017       [lt_cv_ld_force_load=no
  1039       [lt_cv_ld_force_load=no
  1018       cat > conftest.c << _LT_EOF
  1040       cat > conftest.c << _LT_EOF
  1030       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  1052       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  1031       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  1053       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  1032       _lt_result=$?
  1054       _lt_result=$?
  1033       if test -s conftest.err && $GREP force_load conftest.err; then
  1055       if test -s conftest.err && $GREP force_load conftest.err; then
  1034 	cat conftest.err >&AS_MESSAGE_LOG_FD
  1056 	cat conftest.err >&AS_MESSAGE_LOG_FD
  1035       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  1057       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  1036 	lt_cv_ld_force_load=yes
  1058 	lt_cv_ld_force_load=yes
  1037       else
  1059       else
  1038 	cat conftest.err >&AS_MESSAGE_LOG_FD
  1060 	cat conftest.err >&AS_MESSAGE_LOG_FD
  1039       fi
  1061       fi
  1040         rm -f conftest.err libconftest.a conftest conftest.c
  1062         rm -f conftest.err libconftest.a conftest conftest.c
  1041         rm -rf conftest.dSYM
  1063         rm -rf conftest.dSYM
  1042     ])
  1064     ])
  1043     case $host_os in
  1065     case $host_os in
  1044     rhapsody* | darwin1.[[012]])
  1066     rhapsody* | darwin1.[[012]])
  1045       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1067       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  1046     darwin1.*)
  1068     darwin1.*)
  1047       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1069       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  1048     darwin*) # darwin 5.x on
  1070     darwin*) # darwin 5.x on
  1049       # if running on 10.5 or later, the deployment target defaults
  1071       # if running on 10.5 or later, the deployment target defaults
  1050       # to the OS version, if on x86, and 10.4, the deployment
  1072       # to the OS version, if on x86, and 10.4, the deployment
  1051       # target defaults to 10.4. Don't you love it?
  1073       # target defaults to 10.4. Don't you love it?
  1052       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1074       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1053 	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1075 	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1054 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1076 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  1055 	10.[[012]]*)
  1077 	10.[[012]][[,.]]*)
  1056 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1078 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  1057 	10.*)
  1079 	10.*)
  1058 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1080 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  1059       esac
  1081       esac
  1060     ;;
  1082     ;;
  1061   esac
  1083   esac
  1062     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1084     if test yes = "$lt_cv_apple_cc_single_mod"; then
  1063       _lt_dar_single_mod='$single_module'
  1085       _lt_dar_single_mod='$single_module'
  1064     fi
  1086     fi
  1065     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1087     if test yes = "$lt_cv_ld_exported_symbols_list"; then
  1066       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1088       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  1067     else
  1089     else
  1068       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1090       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  1069     fi
  1091     fi
  1070     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  1092     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  1071       _lt_dsymutil='~$DSYMUTIL $lib || :'
  1093       _lt_dsymutil='~$DSYMUTIL $lib || :'
  1072     else
  1094     else
  1073       _lt_dsymutil=
  1095       _lt_dsymutil=
  1074     fi
  1096     fi
  1075     ;;
  1097     ;;
  1085   m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1107   m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1086   _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1108   _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1087   _LT_TAGVAR(hardcode_direct, $1)=no
  1109   _LT_TAGVAR(hardcode_direct, $1)=no
  1088   _LT_TAGVAR(hardcode_automatic, $1)=yes
  1110   _LT_TAGVAR(hardcode_automatic, $1)=yes
  1089   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1111   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1090   if test "$lt_cv_ld_force_load" = "yes"; then
  1112   if test yes = "$lt_cv_ld_force_load"; then
  1091     _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  1113     _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  1092     m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  1114     m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  1093                   [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  1115                   [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  1094   else
  1116   else
  1095     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1117     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1096   fi
  1118   fi
  1097   _LT_TAGVAR(link_all_deplibs, $1)=yes
  1119   _LT_TAGVAR(link_all_deplibs, $1)=yes
  1098   _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1120   _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
  1099   case $cc_basename in
  1121   case $cc_basename in
  1100      ifort*) _lt_dar_can_shared=yes ;;
  1122      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  1101      *) _lt_dar_can_shared=$GCC ;;
  1123      *) _lt_dar_can_shared=$GCC ;;
  1102   esac
  1124   esac
  1103   if test "$_lt_dar_can_shared" = "yes"; then
  1125   if test yes = "$_lt_dar_can_shared"; then
  1104     output_verbose_link_cmd=func_echo_all
  1126     output_verbose_link_cmd=func_echo_all
  1105     _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}"
  1127     _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"
  1106     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1128     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  1107     _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  1129     _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  1108     _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}"
  1130     _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"
  1109     m4_if([$1], [CXX],
  1131     m4_if([$1], [CXX],
  1110 [   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1132 [   if test yes != "$lt_cv_apple_cc_single_mod"; then
  1111       _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1133       _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  1112       _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1134       _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  1113     fi
  1135     fi
  1114 ],[])
  1136 ],[])
  1115   else
  1137   else
  1116   _LT_TAGVAR(ld_shlibs, $1)=no
  1138   _LT_TAGVAR(ld_shlibs, $1)=no
  1117   fi
  1139   fi
  1127 # to the aix ld manual.
  1149 # to the aix ld manual.
  1128 # Store the results from the different compilers for each TAGNAME.
  1150 # Store the results from the different compilers for each TAGNAME.
  1129 # Allow to override them for all tags through lt_cv_aix_libpath.
  1151 # Allow to override them for all tags through lt_cv_aix_libpath.
  1130 m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1152 m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1131 [m4_require([_LT_DECL_SED])dnl
  1153 [m4_require([_LT_DECL_SED])dnl
  1132 if test "${lt_cv_aix_libpath+set}" = set; then
  1154 if test set = "${lt_cv_aix_libpath+set}"; then
  1133   aix_libpath=$lt_cv_aix_libpath
  1155   aix_libpath=$lt_cv_aix_libpath
  1134 else
  1156 else
  1135   AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  1157   AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  1136   [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  1158   [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  1137   lt_aix_libpath_sed='[
  1159   lt_aix_libpath_sed='[
  1145   # Check for a 64-bit object if we didn't find anything.
  1167   # Check for a 64-bit object if we didn't find anything.
  1146   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1168   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1147     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1169     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1148   fi],[])
  1170   fi],[])
  1149   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1171   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1150     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  1172     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
  1151   fi
  1173   fi
  1152   ])
  1174   ])
  1153   aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1175   aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1154 fi
  1176 fi
  1155 ])# _LT_SYS_MODULE_PATH_AIX
  1177 ])# _LT_SYS_MODULE_PATH_AIX
  1165 
  1187 
  1166 # _LT_PROG_ECHO_BACKSLASH
  1188 # _LT_PROG_ECHO_BACKSLASH
  1167 # -----------------------
  1189 # -----------------------
  1168 # Find how we can fake an echo command that does not interpret backslash.
  1190 # Find how we can fake an echo command that does not interpret backslash.
  1169 # In particular, with Autoconf 2.60 or later we add some code to the start
  1191 # In particular, with Autoconf 2.60 or later we add some code to the start
  1170 # of the generated configure script which will find a shell with a builtin
  1192 # of the generated configure script that will find a shell with a builtin
  1171 # printf (which we can use as an echo command).
  1193 # printf (that we can use as an echo command).
  1172 m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1194 m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1173 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1195 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1196 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1175 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1197 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1176 
  1198 
  1194 
  1216 
  1195 # func_echo_all arg...
  1217 # func_echo_all arg...
  1196 # Invoke $ECHO with all args, space-separated.
  1218 # Invoke $ECHO with all args, space-separated.
  1197 func_echo_all ()
  1219 func_echo_all ()
  1198 {
  1220 {
  1199     $ECHO "$*" 
  1221     $ECHO "$*"
  1200 }
  1222 }
  1201 
  1223 
  1202 case "$ECHO" in
  1224 case $ECHO in
  1203   printf*) AC_MSG_RESULT([printf]) ;;
  1225   printf*) AC_MSG_RESULT([printf]) ;;
  1204   print*) AC_MSG_RESULT([print -r]) ;;
  1226   print*) AC_MSG_RESULT([print -r]) ;;
  1205   *) AC_MSG_RESULT([cat]) ;;
  1227   *) AC_MSG_RESULT([cat]) ;;
  1206 esac
  1228 esac
  1207 
  1229 
  1223 # _LT_WITH_SYSROOT
  1245 # _LT_WITH_SYSROOT
  1224 # ----------------
  1246 # ----------------
  1225 AC_DEFUN([_LT_WITH_SYSROOT],
  1247 AC_DEFUN([_LT_WITH_SYSROOT],
  1226 [AC_MSG_CHECKING([for sysroot])
  1248 [AC_MSG_CHECKING([for sysroot])
  1227 AC_ARG_WITH([sysroot],
  1249 AC_ARG_WITH([sysroot],
  1228 [  --with-sysroot[=DIR] Search for dependent libraries within DIR
  1250 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
  1229                         (or the compiler's sysroot if not specified).],
  1251   [Search for dependent libraries within DIR (or the compiler's sysroot
       
  1252    if not specified).])],
  1230 [], [with_sysroot=no])
  1253 [], [with_sysroot=no])
  1231 
  1254 
  1232 dnl lt_sysroot will always be passed unquoted.  We quote it here
  1255 dnl lt_sysroot will always be passed unquoted.  We quote it here
  1233 dnl in case the user passed a directory name.
  1256 dnl in case the user passed a directory name.
  1234 lt_sysroot=
  1257 lt_sysroot=
  1235 case ${with_sysroot} in #(
  1258 case $with_sysroot in #(
  1236  yes)
  1259  yes)
  1237    if test "$GCC" = yes; then
  1260    if test yes = "$GCC"; then
  1238      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1261      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1239    fi
  1262    fi
  1240    ;; #(
  1263    ;; #(
  1241  /*)
  1264  /*)
  1242    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1265    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1243    ;; #(
  1266    ;; #(
  1244  no|'')
  1267  no|'')
  1245    ;; #(
  1268    ;; #(
  1246  *)
  1269  *)
  1247    AC_MSG_RESULT([${with_sysroot}])
  1270    AC_MSG_RESULT([$with_sysroot])
  1248    AC_MSG_ERROR([The sysroot must be an absolute path.])
  1271    AC_MSG_ERROR([The sysroot must be an absolute path.])
  1249    ;;
  1272    ;;
  1250 esac
  1273 esac
  1251 
  1274 
  1252  AC_MSG_RESULT([${lt_sysroot:-no}])
  1275  AC_MSG_RESULT([${lt_sysroot:-no}])
  1253 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1276 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1254 [dependent libraries, and in which our libraries should be installed.])])
  1277 [dependent libraries, and where our libraries should be installed.])])
  1255 
  1278 
  1256 # _LT_ENABLE_LOCK
  1279 # _LT_ENABLE_LOCK
  1257 # ---------------
  1280 # ---------------
  1258 m4_defun([_LT_ENABLE_LOCK],
  1281 m4_defun([_LT_ENABLE_LOCK],
  1259 [AC_ARG_ENABLE([libtool-lock],
  1282 [AC_ARG_ENABLE([libtool-lock],
  1260   [AS_HELP_STRING([--disable-libtool-lock],
  1283   [AS_HELP_STRING([--disable-libtool-lock],
  1261     [avoid locking (might break parallel builds)])])
  1284     [avoid locking (might break parallel builds)])])
  1262 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1285 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  1263 
  1286 
  1264 # Some flags need to be propagated to the compiler or linker for good
  1287 # Some flags need to be propagated to the compiler or linker for good
  1265 # libtool support.
  1288 # libtool support.
  1266 case $host in
  1289 case $host in
  1267 ia64-*-hpux*)
  1290 ia64-*-hpux*)
  1268   # Find out which ABI we are using.
  1291   # Find out what ABI is being produced by ac_compile, and set mode
       
  1292   # options accordingly.
  1269   echo 'int i;' > conftest.$ac_ext
  1293   echo 'int i;' > conftest.$ac_ext
  1270   if AC_TRY_EVAL(ac_compile); then
  1294   if AC_TRY_EVAL(ac_compile); then
  1271     case `/usr/bin/file conftest.$ac_objext` in
  1295     case `/usr/bin/file conftest.$ac_objext` in
  1272       *ELF-32*)
  1296       *ELF-32*)
  1273 	HPUX_IA64_MODE="32"
  1297 	HPUX_IA64_MODE=32
  1274 	;;
  1298 	;;
  1275       *ELF-64*)
  1299       *ELF-64*)
  1276 	HPUX_IA64_MODE="64"
  1300 	HPUX_IA64_MODE=64
  1277 	;;
  1301 	;;
  1278     esac
  1302     esac
  1279   fi
  1303   fi
  1280   rm -rf conftest*
  1304   rm -rf conftest*
  1281   ;;
  1305   ;;
  1282 *-*-irix6*)
  1306 *-*-irix6*)
  1283   # Find out which ABI we are using.
  1307   # Find out what ABI is being produced by ac_compile, and set linker
       
  1308   # options accordingly.
  1284   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1309   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1285   if AC_TRY_EVAL(ac_compile); then
  1310   if AC_TRY_EVAL(ac_compile); then
  1286     if test "$lt_cv_prog_gnu_ld" = yes; then
  1311     if test yes = "$lt_cv_prog_gnu_ld"; then
  1287       case `/usr/bin/file conftest.$ac_objext` in
  1312       case `/usr/bin/file conftest.$ac_objext` in
  1288 	*32-bit*)
  1313 	*32-bit*)
  1289 	  LD="${LD-ld} -melf32bsmip"
  1314 	  LD="${LD-ld} -melf32bsmip"
  1290 	  ;;
  1315 	  ;;
  1291 	*N32*)
  1316 	*N32*)
  1310     fi
  1335     fi
  1311   fi
  1336   fi
  1312   rm -rf conftest*
  1337   rm -rf conftest*
  1313   ;;
  1338   ;;
  1314 
  1339 
  1315 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1340 mips64*-*linux*)
       
  1341   # Find out what ABI is being produced by ac_compile, and set linker
       
  1342   # options accordingly.
       
  1343   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
       
  1344   if AC_TRY_EVAL(ac_compile); then
       
  1345     emul=elf
       
  1346     case `/usr/bin/file conftest.$ac_objext` in
       
  1347       *32-bit*)
       
  1348 	emul="${emul}32"
       
  1349 	;;
       
  1350       *64-bit*)
       
  1351 	emul="${emul}64"
       
  1352 	;;
       
  1353     esac
       
  1354     case `/usr/bin/file conftest.$ac_objext` in
       
  1355       *MSB*)
       
  1356 	emul="${emul}btsmip"
       
  1357 	;;
       
  1358       *LSB*)
       
  1359 	emul="${emul}ltsmip"
       
  1360 	;;
       
  1361     esac
       
  1362     case `/usr/bin/file conftest.$ac_objext` in
       
  1363       *N32*)
       
  1364 	emul="${emul}n32"
       
  1365 	;;
       
  1366     esac
       
  1367     LD="${LD-ld} -m $emul"
       
  1368   fi
       
  1369   rm -rf conftest*
       
  1370   ;;
       
  1371 
       
  1372 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  1316 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1373 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1317   # Find out which ABI we are using.
  1374   # Find out what ABI is being produced by ac_compile, and set linker
       
  1375   # options accordingly.  Note that the listed cases only cover the
       
  1376   # situations where additional linker options are needed (such as when
       
  1377   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
       
  1378   # vice versa); the common cases where no linker options are needed do
       
  1379   # not appear in the list.
  1318   echo 'int i;' > conftest.$ac_ext
  1380   echo 'int i;' > conftest.$ac_ext
  1319   if AC_TRY_EVAL(ac_compile); then
  1381   if AC_TRY_EVAL(ac_compile); then
  1320     case `/usr/bin/file conftest.o` in
  1382     case `/usr/bin/file conftest.o` in
  1321       *32-bit*)
  1383       *32-bit*)
  1322 	case $host in
  1384 	case $host in
  1323 	  x86_64-*kfreebsd*-gnu)
  1385 	  x86_64-*kfreebsd*-gnu)
  1324 	    LD="${LD-ld} -m elf_i386_fbsd"
  1386 	    LD="${LD-ld} -m elf_i386_fbsd"
  1325 	    ;;
  1387 	    ;;
  1326 	  x86_64-*linux*)
  1388 	  x86_64-*linux*)
  1327 	    LD="${LD-ld} -m elf_i386"
  1389 	    case `/usr/bin/file conftest.o` in
       
  1390 	      *x86-64*)
       
  1391 		LD="${LD-ld} -m elf32_x86_64"
       
  1392 		;;
       
  1393 	      *)
       
  1394 		LD="${LD-ld} -m elf_i386"
       
  1395 		;;
       
  1396 	    esac
  1328 	    ;;
  1397 	    ;;
  1329 	  ppc64-*linux*|powerpc64-*linux*)
  1398 	  powerpc64le-*linux*)
       
  1399 	    LD="${LD-ld} -m elf32lppclinux"
       
  1400 	    ;;
       
  1401 	  powerpc64-*linux*)
  1330 	    LD="${LD-ld} -m elf32ppclinux"
  1402 	    LD="${LD-ld} -m elf32ppclinux"
  1331 	    ;;
  1403 	    ;;
  1332 	  s390x-*linux*)
  1404 	  s390x-*linux*)
  1333 	    LD="${LD-ld} -m elf_s390"
  1405 	    LD="${LD-ld} -m elf_s390"
  1334 	    ;;
  1406 	    ;;
  1343 	    LD="${LD-ld} -m elf_x86_64_fbsd"
  1415 	    LD="${LD-ld} -m elf_x86_64_fbsd"
  1344 	    ;;
  1416 	    ;;
  1345 	  x86_64-*linux*)
  1417 	  x86_64-*linux*)
  1346 	    LD="${LD-ld} -m elf_x86_64"
  1418 	    LD="${LD-ld} -m elf_x86_64"
  1347 	    ;;
  1419 	    ;;
  1348 	  ppc*-*linux*|powerpc*-*linux*)
  1420 	  powerpcle-*linux*)
       
  1421 	    LD="${LD-ld} -m elf64lppc"
       
  1422 	    ;;
       
  1423 	  powerpc-*linux*)
  1349 	    LD="${LD-ld} -m elf64ppc"
  1424 	    LD="${LD-ld} -m elf64ppc"
  1350 	    ;;
  1425 	    ;;
  1351 	  s390*-*linux*|s390*-*tpf*)
  1426 	  s390*-*linux*|s390*-*tpf*)
  1352 	    LD="${LD-ld} -m elf64_s390"
  1427 	    LD="${LD-ld} -m elf64_s390"
  1353 	    ;;
  1428 	    ;;
  1361   rm -rf conftest*
  1436   rm -rf conftest*
  1362   ;;
  1437   ;;
  1363 
  1438 
  1364 *-*-sco3.2v5*)
  1439 *-*-sco3.2v5*)
  1365   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1440   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1366   SAVE_CFLAGS="$CFLAGS"
  1441   SAVE_CFLAGS=$CFLAGS
  1367   CFLAGS="$CFLAGS -belf"
  1442   CFLAGS="$CFLAGS -belf"
  1368   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1443   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1369     [AC_LANG_PUSH(C)
  1444     [AC_LANG_PUSH(C)
  1370      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1445      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1371      AC_LANG_POP])
  1446      AC_LANG_POP])
  1372   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1447   if test yes != "$lt_cv_cc_needs_belf"; then
  1373     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1448     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1374     CFLAGS="$SAVE_CFLAGS"
  1449     CFLAGS=$SAVE_CFLAGS
  1375   fi
  1450   fi
  1376   ;;
  1451   ;;
  1377 *-*solaris*)
  1452 *-*solaris*)
  1378   # Find out which ABI we are using.
  1453   # Find out what ABI is being produced by ac_compile, and set linker
       
  1454   # options accordingly.
  1379   echo 'int i;' > conftest.$ac_ext
  1455   echo 'int i;' > conftest.$ac_ext
  1380   if AC_TRY_EVAL(ac_compile); then
  1456   if AC_TRY_EVAL(ac_compile); then
  1381     case `/usr/bin/file conftest.o` in
  1457     case `/usr/bin/file conftest.o` in
  1382     *64-bit*)
  1458     *64-bit*)
  1383       case $lt_cv_prog_gnu_ld in
  1459       case $lt_cv_prog_gnu_ld in
  1384       yes*)
  1460       yes*)
  1385         case $host in
  1461         case $host in
  1386         i?86-*-solaris*)
  1462         i?86-*-solaris*|x86_64-*-solaris*)
  1387           LD="${LD-ld} -m elf_x86_64"
  1463           LD="${LD-ld} -m elf_x86_64"
  1388           ;;
  1464           ;;
  1389         sparc*-*-solaris*)
  1465         sparc*-*-solaris*)
  1390           LD="${LD-ld} -m elf64_sparc"
  1466           LD="${LD-ld} -m elf64_sparc"
  1391           ;;
  1467           ;;
  1392         esac
  1468         esac
  1393         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  1469         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  1394         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1470         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1395           LD="${LD-ld}_sol2"
  1471           LD=${LD-ld}_sol2
  1396         fi
  1472         fi
  1397         ;;
  1473         ;;
  1398       *)
  1474       *)
  1399 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1475 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1400 	  LD="${LD-ld} -64"
  1476 	  LD="${LD-ld} -64"
  1406   fi
  1482   fi
  1407   rm -rf conftest*
  1483   rm -rf conftest*
  1408   ;;
  1484   ;;
  1409 esac
  1485 esac
  1410 
  1486 
  1411 need_locks="$enable_libtool_lock"
  1487 need_locks=$enable_libtool_lock
  1412 ])# _LT_ENABLE_LOCK
  1488 ])# _LT_ENABLE_LOCK
  1413 
  1489 
  1414 
  1490 
  1415 # _LT_PROG_AR
  1491 # _LT_PROG_AR
  1416 # -----------
  1492 # -----------
  1425   [lt_cv_ar_at_file=no
  1501   [lt_cv_ar_at_file=no
  1426    AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1502    AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1427      [echo conftest.$ac_objext > conftest.lst
  1503      [echo conftest.$ac_objext > conftest.lst
  1428       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1504       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1429       AC_TRY_EVAL([lt_ar_try])
  1505       AC_TRY_EVAL([lt_ar_try])
  1430       if test "$ac_status" -eq 0; then
  1506       if test 0 -eq "$ac_status"; then
  1431 	# Ensure the archiver fails upon bogus file names.
  1507 	# Ensure the archiver fails upon bogus file names.
  1432 	rm -f conftest.$ac_objext libconftest.a
  1508 	rm -f conftest.$ac_objext libconftest.a
  1433 	AC_TRY_EVAL([lt_ar_try])
  1509 	AC_TRY_EVAL([lt_ar_try])
  1434 	if test "$ac_status" -ne 0; then
  1510 	if test 0 -ne "$ac_status"; then
  1435           lt_cv_ar_at_file=@
  1511           lt_cv_ar_at_file=@
  1436         fi
  1512         fi
  1437       fi
  1513       fi
  1438       rm -f conftest.* libconftest.a
  1514       rm -f conftest.* libconftest.a
  1439      ])
  1515      ])
  1440   ])
  1516   ])
  1441 
  1517 
  1442 if test "x$lt_cv_ar_at_file" = xno; then
  1518 if test no = "$lt_cv_ar_at_file"; then
  1443   archiver_list_spec=
  1519   archiver_list_spec=
  1444 else
  1520 else
  1445   archiver_list_spec=$lt_cv_ar_at_file
  1521   archiver_list_spec=$lt_cv_ar_at_file
  1446 fi
  1522 fi
  1447 _LT_DECL([], [archiver_list_spec], [1],
  1523 _LT_DECL([], [archiver_list_spec], [1],
  1468 old_postinstall_cmds='chmod 644 $oldlib'
  1544 old_postinstall_cmds='chmod 644 $oldlib'
  1469 old_postuninstall_cmds=
  1545 old_postuninstall_cmds=
  1470 
  1546 
  1471 if test -n "$RANLIB"; then
  1547 if test -n "$RANLIB"; then
  1472   case $host_os in
  1548   case $host_os in
  1473   openbsd*)
  1549   bitrig* | openbsd*)
  1474     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1550     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1475     ;;
  1551     ;;
  1476   *)
  1552   *)
  1477     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1553     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1478     ;;
  1554     ;;
  1504 m4_require([_LT_DECL_SED])dnl
  1580 m4_require([_LT_DECL_SED])dnl
  1505 AC_CACHE_CHECK([$1], [$2],
  1581 AC_CACHE_CHECK([$1], [$2],
  1506   [$2=no
  1582   [$2=no
  1507    m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1583    m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1508    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1584    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1509    lt_compiler_flag="$3"
  1585    lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
  1510    # Insert the option either (1) after the last *FLAGS variable, or
  1586    # Insert the option either (1) after the last *FLAGS variable, or
  1511    # (2) before a word containing "conftest.", or (3) at the end.
  1587    # (2) before a word containing "conftest.", or (3) at the end.
  1512    # Note that $ac_compile itself does not contain backslashes and begins
  1588    # Note that $ac_compile itself does not contain backslashes and begins
  1513    # with a dollar sign (not a hyphen), so the echo should work correctly.
  1589    # with a dollar sign (not a hyphen), so the echo should work correctly.
  1514    # The option is referenced via a variable to avoid confusing sed.
  1590    # The option is referenced via a variable to avoid confusing sed.
  1531      fi
  1607      fi
  1532    fi
  1608    fi
  1533    $RM conftest*
  1609    $RM conftest*
  1534 ])
  1610 ])
  1535 
  1611 
  1536 if test x"[$]$2" = xyes; then
  1612 if test yes = "[$]$2"; then
  1537     m4_if([$5], , :, [$5])
  1613     m4_if([$5], , :, [$5])
  1538 else
  1614 else
  1539     m4_if([$6], , :, [$6])
  1615     m4_if([$6], , :, [$6])
  1540 fi
  1616 fi
  1541 ])# _LT_COMPILER_OPTION
  1617 ])# _LT_COMPILER_OPTION
  1553 AC_DEFUN([_LT_LINKER_OPTION],
  1629 AC_DEFUN([_LT_LINKER_OPTION],
  1554 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1630 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1555 m4_require([_LT_DECL_SED])dnl
  1631 m4_require([_LT_DECL_SED])dnl
  1556 AC_CACHE_CHECK([$1], [$2],
  1632 AC_CACHE_CHECK([$1], [$2],
  1557   [$2=no
  1633   [$2=no
  1558    save_LDFLAGS="$LDFLAGS"
  1634    save_LDFLAGS=$LDFLAGS
  1559    LDFLAGS="$LDFLAGS $3"
  1635    LDFLAGS="$LDFLAGS $3"
  1560    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1636    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1561    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1637    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1562      # The linker can only warn and ignore the option if not recognized
  1638      # The linker can only warn and ignore the option if not recognized
  1563      # So say no if there are warnings
  1639      # So say no if there are warnings
  1572      else
  1648      else
  1573        $2=yes
  1649        $2=yes
  1574      fi
  1650      fi
  1575    fi
  1651    fi
  1576    $RM -r conftest*
  1652    $RM -r conftest*
  1577    LDFLAGS="$save_LDFLAGS"
  1653    LDFLAGS=$save_LDFLAGS
  1578 ])
  1654 ])
  1579 
  1655 
  1580 if test x"[$]$2" = xyes; then
  1656 if test yes = "[$]$2"; then
  1581     m4_if([$4], , :, [$4])
  1657     m4_if([$4], , :, [$4])
  1582 else
  1658 else
  1583     m4_if([$5], , :, [$5])
  1659     m4_if([$5], , :, [$5])
  1584 fi
  1660 fi
  1585 ])# _LT_LINKER_OPTION
  1661 ])# _LT_LINKER_OPTION
  1596 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1672 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1597 # find the maximum length of command line arguments
  1673 # find the maximum length of command line arguments
  1598 AC_MSG_CHECKING([the maximum length of command line arguments])
  1674 AC_MSG_CHECKING([the maximum length of command line arguments])
  1599 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1675 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1600   i=0
  1676   i=0
  1601   teststring="ABCD"
  1677   teststring=ABCD
  1602 
  1678 
  1603   case $build_os in
  1679   case $build_os in
  1604   msdosdjgpp*)
  1680   msdosdjgpp*)
  1605     # On DJGPP, this test can blow up pretty badly due to problems in libc
  1681     # On DJGPP, this test can blow up pretty badly due to problems in libc
  1606     # (any single argument exceeding 2000 bytes causes a buffer overrun
  1682     # (any single argument exceeding 2000 bytes causes a buffer overrun
  1636     # On AmigaOS with pdksh, this test takes hours, literally.
  1712     # On AmigaOS with pdksh, this test takes hours, literally.
  1637     # So we just punt and use a minimum line length of 8192.
  1713     # So we just punt and use a minimum line length of 8192.
  1638     lt_cv_sys_max_cmd_len=8192;
  1714     lt_cv_sys_max_cmd_len=8192;
  1639     ;;
  1715     ;;
  1640 
  1716 
  1641   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1717   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  1642     # This has been around since 386BSD, at least.  Likely further.
  1718     # This has been around since 386BSD, at least.  Likely further.
  1643     if test -x /sbin/sysctl; then
  1719     if test -x /sbin/sysctl; then
  1644       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1720       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1645     elif test -x /usr/sbin/sysctl; then
  1721     elif test -x /usr/sbin/sysctl; then
  1646       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1722       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1686       lt_cv_sys_max_cmd_len=32768
  1762       lt_cv_sys_max_cmd_len=32768
  1687     fi
  1763     fi
  1688     ;;
  1764     ;;
  1689   *)
  1765   *)
  1690     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1766     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1691     if test -n "$lt_cv_sys_max_cmd_len"; then
  1767     if test -n "$lt_cv_sys_max_cmd_len" && \
       
  1768        test undefined != "$lt_cv_sys_max_cmd_len"; then
  1692       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1769       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1693       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1770       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1694     else
  1771     else
  1695       # Make teststring a little bigger before we do anything with it.
  1772       # Make teststring a little bigger before we do anything with it.
  1696       # a 1K string should be a reasonable start.
  1773       # a 1K string should be a reasonable start.
  1697       for i in 1 2 3 4 5 6 7 8 ; do
  1774       for i in 1 2 3 4 5 6 7 8; do
  1698         teststring=$teststring$teststring
  1775         teststring=$teststring$teststring
  1699       done
  1776       done
  1700       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1777       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1701       # If test is not a shell built-in, we'll probably end up computing a
  1778       # If test is not a shell built-in, we'll probably end up computing a
  1702       # maximum length that is only half of the actual maximum length, but
  1779       # maximum length that is only half of the actual maximum length, but
  1703       # we can't tell.
  1780       # we can't tell.
  1704       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1781       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  1705 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1782 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1706 	      test $i != 17 # 1/2 MB should be enough
  1783 	      test 17 != "$i" # 1/2 MB should be enough
  1707       do
  1784       do
  1708         i=`expr $i + 1`
  1785         i=`expr $i + 1`
  1709         teststring=$teststring$teststring
  1786         teststring=$teststring$teststring
  1710       done
  1787       done
  1711       # Only check the string length outside the loop.
  1788       # Only check the string length outside the loop.
  1717       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1794       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1718     fi
  1795     fi
  1719     ;;
  1796     ;;
  1720   esac
  1797   esac
  1721 ])
  1798 ])
  1722 if test -n $lt_cv_sys_max_cmd_len ; then
  1799 if test -n "$lt_cv_sys_max_cmd_len"; then
  1723   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1800   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1724 else
  1801 else
  1725   AC_MSG_RESULT(none)
  1802   AC_MSG_RESULT(none)
  1726 fi
  1803 fi
  1727 max_cmd_len=$lt_cv_sys_max_cmd_len
  1804 max_cmd_len=$lt_cv_sys_max_cmd_len
  1745 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1822 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1746 #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1823 #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1747 # ----------------------------------------------------------------
  1824 # ----------------------------------------------------------------
  1748 m4_defun([_LT_TRY_DLOPEN_SELF],
  1825 m4_defun([_LT_TRY_DLOPEN_SELF],
  1749 [m4_require([_LT_HEADER_DLFCN])dnl
  1826 [m4_require([_LT_HEADER_DLFCN])dnl
  1750 if test "$cross_compiling" = yes; then :
  1827 if test yes = "$cross_compiling"; then :
  1751   [$4]
  1828   [$4]
  1752 else
  1829 else
  1753   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1830   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1754   lt_status=$lt_dlunknown
  1831   lt_status=$lt_dlunknown
  1755   cat > conftest.$ac_ext <<_LT_EOF
  1832   cat > conftest.$ac_ext <<_LT_EOF
  1792 #      endif
  1869 #      endif
  1793 #    endif
  1870 #    endif
  1794 #  endif
  1871 #  endif
  1795 #endif
  1872 #endif
  1796 
  1873 
  1797 /* When -fvisbility=hidden is used, assume the code has been annotated
  1874 /* When -fvisibility=hidden is used, assume the code has been annotated
  1798    correspondingly for the symbols needed.  */
  1875    correspondingly for the symbols needed.  */
  1799 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1876 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1800 int fnord () __attribute__((visibility("default")));
  1877 int fnord () __attribute__((visibility("default")));
  1801 #endif
  1878 #endif
  1802 
  1879 
  1803 int fnord () { return 42; }
  1880 int fnord () { return 42; }
  1804 int main ()
  1881 int main ()
  1820     puts (dlerror ());
  1897     puts (dlerror ());
  1821 
  1898 
  1822   return status;
  1899   return status;
  1823 }]
  1900 }]
  1824 _LT_EOF
  1901 _LT_EOF
  1825   if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1902   if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
  1826     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1903     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1827     lt_status=$?
  1904     lt_status=$?
  1828     case x$lt_status in
  1905     case x$lt_status in
  1829       x$lt_dlno_uscore) $1 ;;
  1906       x$lt_dlno_uscore) $1 ;;
  1830       x$lt_dlneed_uscore) $2 ;;
  1907       x$lt_dlneed_uscore) $2 ;;
  1841 
  1918 
  1842 # LT_SYS_DLOPEN_SELF
  1919 # LT_SYS_DLOPEN_SELF
  1843 # ------------------
  1920 # ------------------
  1844 AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1921 AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1845 [m4_require([_LT_HEADER_DLFCN])dnl
  1922 [m4_require([_LT_HEADER_DLFCN])dnl
  1846 if test "x$enable_dlopen" != xyes; then
  1923 if test yes != "$enable_dlopen"; then
  1847   enable_dlopen=unknown
  1924   enable_dlopen=unknown
  1848   enable_dlopen_self=unknown
  1925   enable_dlopen_self=unknown
  1849   enable_dlopen_self_static=unknown
  1926   enable_dlopen_self_static=unknown
  1850 else
  1927 else
  1851   lt_cv_dlopen=no
  1928   lt_cv_dlopen=no
  1852   lt_cv_dlopen_libs=
  1929   lt_cv_dlopen_libs=
  1853 
  1930 
  1854   case $host_os in
  1931   case $host_os in
  1855   beos*)
  1932   beos*)
  1856     lt_cv_dlopen="load_add_on"
  1933     lt_cv_dlopen=load_add_on
  1857     lt_cv_dlopen_libs=
  1934     lt_cv_dlopen_libs=
  1858     lt_cv_dlopen_self=yes
  1935     lt_cv_dlopen_self=yes
  1859     ;;
  1936     ;;
  1860 
  1937 
  1861   mingw* | pw32* | cegcc*)
  1938   mingw* | pw32* | cegcc*)
  1862     lt_cv_dlopen="LoadLibrary"
  1939     lt_cv_dlopen=LoadLibrary
  1863     lt_cv_dlopen_libs=
  1940     lt_cv_dlopen_libs=
  1864     ;;
  1941     ;;
  1865 
  1942 
  1866   cygwin*)
  1943   cygwin*)
  1867     lt_cv_dlopen="dlopen"
  1944     lt_cv_dlopen=dlopen
  1868     lt_cv_dlopen_libs=
  1945     lt_cv_dlopen_libs=
  1869     ;;
  1946     ;;
  1870 
  1947 
  1871   darwin*)
  1948   darwin*)
  1872   # if libdl is installed we need to link against it
  1949     # if libdl is installed we need to link against it
  1873     AC_CHECK_LIB([dl], [dlopen],
  1950     AC_CHECK_LIB([dl], [dlopen],
  1874 		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1951 		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
  1875     lt_cv_dlopen="dyld"
  1952     lt_cv_dlopen=dyld
  1876     lt_cv_dlopen_libs=
  1953     lt_cv_dlopen_libs=
  1877     lt_cv_dlopen_self=yes
  1954     lt_cv_dlopen_self=yes
  1878     ])
  1955     ])
  1879     ;;
  1956     ;;
  1880 
  1957 
       
  1958   tpf*)
       
  1959     # Don't try to run any link tests for TPF.  We know it's impossible
       
  1960     # because TPF is a cross-compiler, and we know how we open DSOs.
       
  1961     lt_cv_dlopen=dlopen
       
  1962     lt_cv_dlopen_libs=
       
  1963     lt_cv_dlopen_self=no
       
  1964     ;;
       
  1965 
  1881   *)
  1966   *)
  1882     AC_CHECK_FUNC([shl_load],
  1967     AC_CHECK_FUNC([shl_load],
  1883 	  [lt_cv_dlopen="shl_load"],
  1968 	  [lt_cv_dlopen=shl_load],
  1884       [AC_CHECK_LIB([dld], [shl_load],
  1969       [AC_CHECK_LIB([dld], [shl_load],
  1885 	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1970 	    [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
  1886 	[AC_CHECK_FUNC([dlopen],
  1971 	[AC_CHECK_FUNC([dlopen],
  1887 	      [lt_cv_dlopen="dlopen"],
  1972 	      [lt_cv_dlopen=dlopen],
  1888 	  [AC_CHECK_LIB([dl], [dlopen],
  1973 	  [AC_CHECK_LIB([dl], [dlopen],
  1889 		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1974 		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
  1890 	    [AC_CHECK_LIB([svld], [dlopen],
  1975 	    [AC_CHECK_LIB([svld], [dlopen],
  1891 		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1976 		  [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
  1892 	      [AC_CHECK_LIB([dld], [dld_link],
  1977 	      [AC_CHECK_LIB([dld], [dld_link],
  1893 		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1978 		    [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
  1894 	      ])
  1979 	      ])
  1895 	    ])
  1980 	    ])
  1896 	  ])
  1981 	  ])
  1897 	])
  1982 	])
  1898       ])
  1983       ])
  1899     ;;
  1984     ;;
  1900   esac
  1985   esac
  1901 
  1986 
  1902   if test "x$lt_cv_dlopen" != xno; then
  1987   if test no = "$lt_cv_dlopen"; then
       
  1988     enable_dlopen=no
       
  1989   else
  1903     enable_dlopen=yes
  1990     enable_dlopen=yes
  1904   else
       
  1905     enable_dlopen=no
       
  1906   fi
  1991   fi
  1907 
  1992 
  1908   case $lt_cv_dlopen in
  1993   case $lt_cv_dlopen in
  1909   dlopen)
  1994   dlopen)
  1910     save_CPPFLAGS="$CPPFLAGS"
  1995     save_CPPFLAGS=$CPPFLAGS
  1911     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1996     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1912 
  1997 
  1913     save_LDFLAGS="$LDFLAGS"
  1998     save_LDFLAGS=$LDFLAGS
  1914     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1999     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1915 
  2000 
  1916     save_LIBS="$LIBS"
  2001     save_LIBS=$LIBS
  1917     LIBS="$lt_cv_dlopen_libs $LIBS"
  2002     LIBS="$lt_cv_dlopen_libs $LIBS"
  1918 
  2003 
  1919     AC_CACHE_CHECK([whether a program can dlopen itself],
  2004     AC_CACHE_CHECK([whether a program can dlopen itself],
  1920 	  lt_cv_dlopen_self, [dnl
  2005 	  lt_cv_dlopen_self, [dnl
  1921 	  _LT_TRY_DLOPEN_SELF(
  2006 	  _LT_TRY_DLOPEN_SELF(
  1922 	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  2007 	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1923 	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  2008 	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1924     ])
  2009     ])
  1925 
  2010 
  1926     if test "x$lt_cv_dlopen_self" = xyes; then
  2011     if test yes = "$lt_cv_dlopen_self"; then
  1927       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  2012       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1928       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  2013       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1929 	  lt_cv_dlopen_self_static, [dnl
  2014 	  lt_cv_dlopen_self_static, [dnl
  1930 	  _LT_TRY_DLOPEN_SELF(
  2015 	  _LT_TRY_DLOPEN_SELF(
  1931 	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  2016 	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1932 	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
  2017 	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
  1933       ])
  2018       ])
  1934     fi
  2019     fi
  1935 
  2020 
  1936     CPPFLAGS="$save_CPPFLAGS"
  2021     CPPFLAGS=$save_CPPFLAGS
  1937     LDFLAGS="$save_LDFLAGS"
  2022     LDFLAGS=$save_LDFLAGS
  1938     LIBS="$save_LIBS"
  2023     LIBS=$save_LIBS
  1939     ;;
  2024     ;;
  1940   esac
  2025   esac
  1941 
  2026 
  1942   case $lt_cv_dlopen_self in
  2027   case $lt_cv_dlopen_self in
  1943   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  2028   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  2025 m4_defun([_LT_COMPILER_FILE_LOCKS],
  2110 m4_defun([_LT_COMPILER_FILE_LOCKS],
  2026 [m4_require([_LT_ENABLE_LOCK])dnl
  2111 [m4_require([_LT_ENABLE_LOCK])dnl
  2027 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2112 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2028 _LT_COMPILER_C_O([$1])
  2113 _LT_COMPILER_C_O([$1])
  2029 
  2114 
  2030 hard_links="nottested"
  2115 hard_links=nottested
  2031 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2116 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
  2032   # do not overwrite the value of need_locks provided by the user
  2117   # do not overwrite the value of need_locks provided by the user
  2033   AC_MSG_CHECKING([if we can lock with hard links])
  2118   AC_MSG_CHECKING([if we can lock with hard links])
  2034   hard_links=yes
  2119   hard_links=yes
  2035   $RM conftest*
  2120   $RM conftest*
  2036   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2121   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2037   touch conftest.a
  2122   touch conftest.a
  2038   ln conftest.a conftest.b 2>&5 || hard_links=no
  2123   ln conftest.a conftest.b 2>&5 || hard_links=no
  2039   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2124   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2040   AC_MSG_RESULT([$hard_links])
  2125   AC_MSG_RESULT([$hard_links])
  2041   if test "$hard_links" = no; then
  2126   if test no = "$hard_links"; then
  2042     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  2127     AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
  2043     need_locks=warn
  2128     need_locks=warn
  2044   fi
  2129   fi
  2045 else
  2130 else
  2046   need_locks=no
  2131   need_locks=no
  2047 fi
  2132 fi
  2064 rmdir .libs 2>/dev/null])
  2149 rmdir .libs 2>/dev/null])
  2065 objdir=$lt_cv_objdir
  2150 objdir=$lt_cv_objdir
  2066 _LT_DECL([], [objdir], [0],
  2151 _LT_DECL([], [objdir], [0],
  2067          [The name of the directory that contains temporary libtool files])dnl
  2152          [The name of the directory that contains temporary libtool files])dnl
  2068 m4_pattern_allow([LT_OBJDIR])dnl
  2153 m4_pattern_allow([LT_OBJDIR])dnl
  2069 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2154 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
  2070   [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2155   [Define to the sub-directory where libtool stores uninstalled libraries.])
  2071 ])# _LT_CHECK_OBJDIR
  2156 ])# _LT_CHECK_OBJDIR
  2072 
  2157 
  2073 
  2158 
  2074 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2159 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2075 # --------------------------------------
  2160 # --------------------------------------
  2077 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2162 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2078 [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2163 [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2079 _LT_TAGVAR(hardcode_action, $1)=
  2164 _LT_TAGVAR(hardcode_action, $1)=
  2080 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2165 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2081    test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2166    test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2082    test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2167    test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
  2083 
  2168 
  2084   # We can hardcode non-existent directories.
  2169   # We can hardcode non-existent directories.
  2085   if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2170   if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
  2086      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2171      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2087      # have to relink, otherwise we might link with an installed library
  2172      # have to relink, otherwise we might link with an installed library
  2088      # when we should be linking with a yet-to-be-installed one
  2173      # when we should be linking with a yet-to-be-installed one
  2089      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2174      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
  2090      test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2175      test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
  2091     # Linking always hardcodes the temporary library directory.
  2176     # Linking always hardcodes the temporary library directory.
  2092     _LT_TAGVAR(hardcode_action, $1)=relink
  2177     _LT_TAGVAR(hardcode_action, $1)=relink
  2093   else
  2178   else
  2094     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2179     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2095     _LT_TAGVAR(hardcode_action, $1)=immediate
  2180     _LT_TAGVAR(hardcode_action, $1)=immediate
  2099   # directories.
  2184   # directories.
  2100   _LT_TAGVAR(hardcode_action, $1)=unsupported
  2185   _LT_TAGVAR(hardcode_action, $1)=unsupported
  2101 fi
  2186 fi
  2102 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2187 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2103 
  2188 
  2104 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2189 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
  2105    test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2190    test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
  2106   # Fast installation is not supported
  2191   # Fast installation is not supported
  2107   enable_fast_install=no
  2192   enable_fast_install=no
  2108 elif test "$shlibpath_overrides_runpath" = yes ||
  2193 elif test yes = "$shlibpath_overrides_runpath" ||
  2109      test "$enable_shared" = no; then
  2194      test no = "$enable_shared"; then
  2110   # Fast installation is not necessary
  2195   # Fast installation is not necessary
  2111   enable_fast_install=needless
  2196   enable_fast_install=needless
  2112 fi
  2197 fi
  2113 _LT_TAGDECL([], [hardcode_action], [0],
  2198 _LT_TAGDECL([], [hardcode_action], [0],
  2114     [How to hardcode a shared library path into an executable])
  2199     [How to hardcode a shared library path into an executable])
  2128   AC_MSG_RESULT([yes])
  2213   AC_MSG_RESULT([yes])
  2129 else
  2214 else
  2130 # FIXME - insert some real tests, host_os isn't really good enough
  2215 # FIXME - insert some real tests, host_os isn't really good enough
  2131   case $host_os in
  2216   case $host_os in
  2132   darwin*)
  2217   darwin*)
  2133     if test -n "$STRIP" ; then
  2218     if test -n "$STRIP"; then
  2134       striplib="$STRIP -x"
  2219       striplib="$STRIP -x"
  2135       old_striplib="$STRIP -S"
  2220       old_striplib="$STRIP -S"
  2136       AC_MSG_RESULT([yes])
  2221       AC_MSG_RESULT([yes])
  2137     else
  2222     else
  2138       AC_MSG_RESULT([no])
  2223       AC_MSG_RESULT([no])
  2146 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2231 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2147 _LT_DECL([], [striplib], [1])
  2232 _LT_DECL([], [striplib], [1])
  2148 ])# _LT_CMD_STRIPLIB
  2233 ])# _LT_CMD_STRIPLIB
  2149 
  2234 
  2150 
  2235 
       
  2236 # _LT_PREPARE_MUNGE_PATH_LIST
       
  2237 # ---------------------------
       
  2238 # Make sure func_munge_path_list() is defined correctly.
       
  2239 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
       
  2240 [[# func_munge_path_list VARIABLE PATH
       
  2241 # -----------------------------------
       
  2242 # VARIABLE is name of variable containing _space_ separated list of
       
  2243 # directories to be munged by the contents of PATH, which is string
       
  2244 # having a format:
       
  2245 # "DIR[:DIR]:"
       
  2246 #       string "DIR[ DIR]" will be prepended to VARIABLE
       
  2247 # ":DIR[:DIR]"
       
  2248 #       string "DIR[ DIR]" will be appended to VARIABLE
       
  2249 # "DIRP[:DIRP]::[DIRA:]DIRA"
       
  2250 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
       
  2251 #       "DIRA[ DIRA]" will be appended to VARIABLE
       
  2252 # "DIR[:DIR]"
       
  2253 #       VARIABLE will be replaced by "DIR[ DIR]"
       
  2254 func_munge_path_list ()
       
  2255 {
       
  2256     case x@S|@2 in
       
  2257     x)
       
  2258         ;;
       
  2259     *:)
       
  2260         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
       
  2261         ;;
       
  2262     x:*)
       
  2263         eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
       
  2264         ;;
       
  2265     *::*)
       
  2266         eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
       
  2267         eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
       
  2268         ;;
       
  2269     *)
       
  2270         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
       
  2271         ;;
       
  2272     esac
       
  2273 }
       
  2274 ]])# _LT_PREPARE_PATH_LIST
       
  2275 
       
  2276 
  2151 # _LT_SYS_DYNAMIC_LINKER([TAG])
  2277 # _LT_SYS_DYNAMIC_LINKER([TAG])
  2152 # -----------------------------
  2278 # -----------------------------
  2153 # PORTME Fill in your ld.so characteristics
  2279 # PORTME Fill in your ld.so characteristics
  2154 m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2280 m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2155 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2281 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2156 m4_require([_LT_DECL_EGREP])dnl
  2282 m4_require([_LT_DECL_EGREP])dnl
  2157 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2283 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2158 m4_require([_LT_DECL_OBJDUMP])dnl
  2284 m4_require([_LT_DECL_OBJDUMP])dnl
  2159 m4_require([_LT_DECL_SED])dnl
  2285 m4_require([_LT_DECL_SED])dnl
  2160 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  2286 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
       
  2287 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
  2161 AC_MSG_CHECKING([dynamic linker characteristics])
  2288 AC_MSG_CHECKING([dynamic linker characteristics])
  2162 m4_if([$1],
  2289 m4_if([$1],
  2163 	[], [
  2290 	[], [
  2164 if test "$GCC" = yes; then
  2291 if test yes = "$GCC"; then
  2165   case $host_os in
  2292   case $host_os in
  2166     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2293     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  2167     *) lt_awk_arg="/^libraries:/" ;;
  2294     *) lt_awk_arg='/^libraries:/' ;;
  2168   esac
  2295   esac
  2169   case $host_os in
  2296   case $host_os in
  2170     mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  2297     mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
  2171     *) lt_sed_strip_eq="s,=/,/,g" ;;
  2298     *) lt_sed_strip_eq='s|=/|/|g' ;;
  2172   esac
  2299   esac
  2173   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  2300   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  2174   case $lt_search_path_spec in
  2301   case $lt_search_path_spec in
  2175   *\;*)
  2302   *\;*)
  2176     # if the path contains ";" then we assume it to be the separator
  2303     # if the path contains ";" then we assume it to be the separator
  2182   *)
  2309   *)
  2183     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2310     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2184     ;;
  2311     ;;
  2185   esac
  2312   esac
  2186   # Ok, now we have the path, separated by spaces, we can step through it
  2313   # Ok, now we have the path, separated by spaces, we can step through it
  2187   # and add multilib dir if necessary.
  2314   # and add multilib dir if necessary...
  2188   lt_tmp_lt_search_path_spec=
  2315   lt_tmp_lt_search_path_spec=
  2189   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2316   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
       
  2317   # ...but if some path component already ends with the multilib dir we assume
       
  2318   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
       
  2319   case "$lt_multi_os_dir; $lt_search_path_spec " in
       
  2320   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
       
  2321     lt_multi_os_dir=
       
  2322     ;;
       
  2323   esac
  2190   for lt_sys_path in $lt_search_path_spec; do
  2324   for lt_sys_path in $lt_search_path_spec; do
  2191     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2325     if test -d "$lt_sys_path$lt_multi_os_dir"; then
  2192       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2326       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  2193     else
  2327     elif test -n "$lt_multi_os_dir"; then
  2194       test -d "$lt_sys_path" && \
  2328       test -d "$lt_sys_path" && \
  2195 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2329 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2196     fi
  2330     fi
  2197   done
  2331   done
  2198   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2332   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2199 BEGIN {RS=" "; FS="/|\n";} {
  2333 BEGIN {RS = " "; FS = "/|\n";} {
  2200   lt_foo="";
  2334   lt_foo = "";
  2201   lt_count=0;
  2335   lt_count = 0;
  2202   for (lt_i = NF; lt_i > 0; lt_i--) {
  2336   for (lt_i = NF; lt_i > 0; lt_i--) {
  2203     if ($lt_i != "" && $lt_i != ".") {
  2337     if ($lt_i != "" && $lt_i != ".") {
  2204       if ($lt_i == "..") {
  2338       if ($lt_i == "..") {
  2205         lt_count++;
  2339         lt_count++;
  2206       } else {
  2340       } else {
  2207         if (lt_count == 0) {
  2341         if (lt_count == 0) {
  2208           lt_foo="/" $lt_i lt_foo;
  2342           lt_foo = "/" $lt_i lt_foo;
  2209         } else {
  2343         } else {
  2210           lt_count--;
  2344           lt_count--;
  2211         }
  2345         }
  2212       }
  2346       }
  2213     }
  2347     }
  2217 }'`
  2351 }'`
  2218   # AWK program above erroneously prepends '/' to C:/dos/paths
  2352   # AWK program above erroneously prepends '/' to C:/dos/paths
  2219   # for these hosts.
  2353   # for these hosts.
  2220   case $host_os in
  2354   case $host_os in
  2221     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2355     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2222       $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  2356       $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
  2223   esac
  2357   esac
  2224   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2358   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2225 else
  2359 else
  2226   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2360   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2227 fi])
  2361 fi])
  2228 library_names_spec=
  2362 library_names_spec=
  2229 libname_spec='lib$name'
  2363 libname_spec='lib$name'
  2230 soname_spec=
  2364 soname_spec=
  2231 shrext_cmds=".so"
  2365 shrext_cmds=.so
  2232 postinstall_cmds=
  2366 postinstall_cmds=
  2233 postuninstall_cmds=
  2367 postuninstall_cmds=
  2234 finish_cmds=
  2368 finish_cmds=
  2235 finish_eval=
  2369 finish_eval=
  2236 shlibpath_var=
  2370 shlibpath_var=
  2243 
  2377 
  2244 # when you set need_version to no, make sure it does not cause -set_version
  2378 # when you set need_version to no, make sure it does not cause -set_version
  2245 # flags to be left without arguments
  2379 # flags to be left without arguments
  2246 need_version=unknown
  2380 need_version=unknown
  2247 
  2381 
       
  2382 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
       
  2383 [User-defined run-time library search path.])
       
  2384 
  2248 case $host_os in
  2385 case $host_os in
  2249 aix3*)
  2386 aix3*)
  2250   version_type=linux # correct to gnu/linux during the next big refactor
  2387   version_type=linux # correct to gnu/linux during the next big refactor
  2251   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2388   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  2252   shlibpath_var=LIBPATH
  2389   shlibpath_var=LIBPATH
  2253 
  2390 
  2254   # AIX 3 has no versioning support, so we append a major version to the name.
  2391   # AIX 3 has no versioning support, so we append a major version to the name.
  2255   soname_spec='${libname}${release}${shared_ext}$major'
  2392   soname_spec='$libname$release$shared_ext$major'
  2256   ;;
  2393   ;;
  2257 
  2394 
  2258 aix[[4-9]]*)
  2395 aix[[4-9]]*)
  2259   version_type=linux # correct to gnu/linux during the next big refactor
  2396   version_type=linux # correct to gnu/linux during the next big refactor
  2260   need_lib_prefix=no
  2397   need_lib_prefix=no
  2261   need_version=no
  2398   need_version=no
  2262   hardcode_into_libs=yes
  2399   hardcode_into_libs=yes
  2263   if test "$host_cpu" = ia64; then
  2400   if test ia64 = "$host_cpu"; then
  2264     # AIX 5 supports IA64
  2401     # AIX 5 supports IA64
  2265     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2402     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  2266     shlibpath_var=LD_LIBRARY_PATH
  2403     shlibpath_var=LD_LIBRARY_PATH
  2267   else
  2404   else
  2268     # With GCC up to 2.95.x, collect2 would create an import file
  2405     # With GCC up to 2.95.x, collect2 would create an import file
  2269     # for dependence libraries.  The import file would start with
  2406     # for dependence libraries.  The import file would start with
  2270     # the line `#! .'.  This would cause the generated library to
  2407     # the line '#! .'.  This would cause the generated library to
  2271     # depend on `.', always an invalid library.  This was fixed in
  2408     # depend on '.', always an invalid library.  This was fixed in
  2272     # development snapshots of GCC prior to 3.0.
  2409     # development snapshots of GCC prior to 3.0.
  2273     case $host_os in
  2410     case $host_os in
  2274       aix4 | aix4.[[01]] | aix4.[[01]].*)
  2411       aix4 | aix4.[[01]] | aix4.[[01]].*)
  2275       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2412       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2276 	   echo ' yes '
  2413 	   echo ' yes '
  2277 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2414 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  2278 	:
  2415 	:
  2279       else
  2416       else
  2280 	can_build_shared=no
  2417 	can_build_shared=no
  2281       fi
  2418       fi
  2282       ;;
  2419       ;;
  2283     esac
  2420     esac
  2284     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2421     # Using Import Files as archive members, it is possible to support
       
  2422     # filename-based versioning of shared library archives on AIX. While
       
  2423     # this would work for both with and without runtime linking, it will
       
  2424     # prevent static linking of such archives. So we do filename-based
       
  2425     # shared library versioning with .so extension only, which is used
       
  2426     # when both runtime linking and shared linking is enabled.
       
  2427     # Unfortunately, runtime linking may impact performance, so we do
       
  2428     # not want this to be the default eventually. Also, we use the
       
  2429     # versioned .so libs for executables only if there is the -brtl
       
  2430     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
       
  2431     # To allow for filename-based versioning support, we need to create
       
  2432     # libNAME.so.V as an archive file, containing:
       
  2433     # *) an Import File, referring to the versioned filename of the
       
  2434     #    archive as well as the shared archive member, telling the
       
  2435     #    bitwidth (32 or 64) of that shared object, and providing the
       
  2436     #    list of exported symbols of that shared object, eventually
       
  2437     #    decorated with the 'weak' keyword
       
  2438     # *) the shared object with the F_LOADONLY flag set, to really avoid
       
  2439     #    it being seen by the linker.
       
  2440     # At run time we better use the real file rather than another symlink,
       
  2441     # but for link time we create the symlink libNAME.so -> libNAME.so.V
       
  2442 
       
  2443     case $with_aix_soname,$aix_use_runtimelinking in
       
  2444     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  2285     # soname into executable. Probably we can add versioning support to
  2445     # soname into executable. Probably we can add versioning support to
  2286     # collect2, so additional links can be useful in future.
  2446     # collect2, so additional links can be useful in future.
  2287     if test "$aix_use_runtimelinking" = yes; then
  2447     aix,yes) # traditional libtool
       
  2448       dynamic_linker='AIX unversionable lib.so'
  2288       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2449       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2289       # instead of lib<name>.a to let people know that these are not
  2450       # instead of lib<name>.a to let people know that these are not
  2290       # typical AIX shared libraries.
  2451       # typical AIX shared libraries.
  2291       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2452       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2292     else
  2453       ;;
       
  2454     aix,no) # traditional AIX only
       
  2455       dynamic_linker='AIX lib.a[(]lib.so.V[)]'
  2293       # We preserve .a as extension for shared libraries through AIX4.2
  2456       # We preserve .a as extension for shared libraries through AIX4.2
  2294       # and later when we are not doing run time linking.
  2457       # and later when we are not doing run time linking.
  2295       library_names_spec='${libname}${release}.a $libname.a'
  2458       library_names_spec='$libname$release.a $libname.a'
  2296       soname_spec='${libname}${release}${shared_ext}$major'
  2459       soname_spec='$libname$release$shared_ext$major'
  2297     fi
  2460       ;;
       
  2461     svr4,*) # full svr4 only
       
  2462       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
       
  2463       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
       
  2464       # We do not specify a path in Import Files, so LIBPATH fires.
       
  2465       shlibpath_overrides_runpath=yes
       
  2466       ;;
       
  2467     *,yes) # both, prefer svr4
       
  2468       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
       
  2469       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
       
  2470       # unpreferred sharedlib libNAME.a needs extra handling
       
  2471       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
       
  2472       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
       
  2473       # We do not specify a path in Import Files, so LIBPATH fires.
       
  2474       shlibpath_overrides_runpath=yes
       
  2475       ;;
       
  2476     *,no) # both, prefer aix
       
  2477       dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
       
  2478       library_names_spec='$libname$release.a $libname.a'
       
  2479       soname_spec='$libname$release$shared_ext$major'
       
  2480       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
       
  2481       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
       
  2482       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
       
  2483       ;;
       
  2484     esac
  2298     shlibpath_var=LIBPATH
  2485     shlibpath_var=LIBPATH
  2299   fi
  2486   fi
  2300   ;;
  2487   ;;
  2301 
  2488 
  2302 amigaos*)
  2489 amigaos*)
  2303   case $host_cpu in
  2490   case $host_cpu in
  2304   powerpc)
  2491   powerpc)
  2305     # Since July 2007 AmigaOS4 officially supports .so libraries.
  2492     # Since July 2007 AmigaOS4 officially supports .so libraries.
  2306     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2493     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2494     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2308     ;;
  2495     ;;
  2309   m68k)
  2496   m68k)
  2310     library_names_spec='$libname.ixlibrary $libname.a'
  2497     library_names_spec='$libname.ixlibrary $libname.a'
  2311     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2498     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2312     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2499     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
  2313     ;;
  2500     ;;
  2314   esac
  2501   esac
  2315   ;;
  2502   ;;
  2316 
  2503 
  2317 beos*)
  2504 beos*)
  2318   library_names_spec='${libname}${shared_ext}'
  2505   library_names_spec='$libname$shared_ext'
  2319   dynamic_linker="$host_os ld.so"
  2506   dynamic_linker="$host_os ld.so"
  2320   shlibpath_var=LIBRARY_PATH
  2507   shlibpath_var=LIBRARY_PATH
  2321   ;;
  2508   ;;
  2322 
  2509 
  2323 bsdi[[45]]*)
  2510 bsdi[[45]]*)
  2324   version_type=linux # correct to gnu/linux during the next big refactor
  2511   version_type=linux # correct to gnu/linux during the next big refactor
  2325   need_version=no
  2512   need_version=no
  2326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2513   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2327   soname_spec='${libname}${release}${shared_ext}$major'
  2514   soname_spec='$libname$release$shared_ext$major'
  2328   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2515   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2329   shlibpath_var=LD_LIBRARY_PATH
  2516   shlibpath_var=LD_LIBRARY_PATH
  2330   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2517   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2331   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2518   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2332   # the default ld.so.conf also contains /usr/contrib/lib and
  2519   # the default ld.so.conf also contains /usr/contrib/lib and
  2334   # libtool to hard-code these into programs
  2521   # libtool to hard-code these into programs
  2335   ;;
  2522   ;;
  2336 
  2523 
  2337 cygwin* | mingw* | pw32* | cegcc*)
  2524 cygwin* | mingw* | pw32* | cegcc*)
  2338   version_type=windows
  2525   version_type=windows
  2339   shrext_cmds=".dll"
  2526   shrext_cmds=.dll
  2340   need_version=no
  2527   need_version=no
  2341   need_lib_prefix=no
  2528   need_lib_prefix=no
  2342 
  2529 
  2343   case $GCC,$cc_basename in
  2530   case $GCC,$cc_basename in
  2344   yes,*)
  2531   yes,*)
  2345     # gcc
  2532     # gcc
  2346     library_names_spec='$libname.dll.a'
  2533     library_names_spec='$libname.dll.a'
  2347     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2534     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2348     postinstall_cmds='base_file=`basename \${file}`~
  2535     postinstall_cmds='base_file=`basename \$file`~
  2349       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2536       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2350       dldir=$destdir/`dirname \$dlpath`~
  2537       dldir=$destdir/`dirname \$dlpath`~
  2351       test -d \$dldir || mkdir -p \$dldir~
  2538       test -d \$dldir || mkdir -p \$dldir~
  2352       $install_prog $dir/$dlname \$dldir/$dlname~
  2539       $install_prog $dir/$dlname \$dldir/$dlname~
  2353       chmod a+x \$dldir/$dlname~
  2540       chmod a+x \$dldir/$dlname~
  2354       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2541       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2360     shlibpath_overrides_runpath=yes
  2547     shlibpath_overrides_runpath=yes
  2361 
  2548 
  2362     case $host_os in
  2549     case $host_os in
  2363     cygwin*)
  2550     cygwin*)
  2364       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2551       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2365       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2552       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2366 m4_if([$1], [],[
  2553 m4_if([$1], [],[
  2367       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2554       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2368       ;;
  2555       ;;
  2369     mingw* | cegcc*)
  2556     mingw* | cegcc*)
  2370       # MinGW DLLs use traditional 'lib' prefix
  2557       # MinGW DLLs use traditional 'lib' prefix
  2371       soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2558       soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2372       ;;
  2559       ;;
  2373     pw32*)
  2560     pw32*)
  2374       # pw32 DLLs use 'pw' prefix rather than 'lib'
  2561       # pw32 DLLs use 'pw' prefix rather than 'lib'
  2375       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2562       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2376       ;;
  2563       ;;
  2377     esac
  2564     esac
  2378     dynamic_linker='Win32 ld.exe'
  2565     dynamic_linker='Win32 ld.exe'
  2379     ;;
  2566     ;;
  2380 
  2567 
  2381   *,cl*)
  2568   *,cl*)
  2382     # Native MSVC
  2569     # Native MSVC
  2383     libname_spec='$name'
  2570     libname_spec='$name'
  2384     soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2571     soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2385     library_names_spec='${libname}.dll.lib'
  2572     library_names_spec='$libname.dll.lib'
  2386 
  2573 
  2387     case $build_os in
  2574     case $build_os in
  2388     mingw*)
  2575     mingw*)
  2389       sys_lib_search_path_spec=
  2576       sys_lib_search_path_spec=
  2390       lt_save_ifs=$IFS
  2577       lt_save_ifs=$IFS
  2407       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2594       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2408       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2595       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2409       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2596       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2410       ;;
  2597       ;;
  2411     *)
  2598     *)
  2412       sys_lib_search_path_spec="$LIB"
  2599       sys_lib_search_path_spec=$LIB
  2413       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2600       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2414         # It is most probably a Windows format PATH.
  2601         # It is most probably a Windows format PATH.
  2415         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2602         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2416       else
  2603       else
  2417         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2604         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2420       # common. (e.g. "Program Files" -> "PROGRA~1")
  2607       # common. (e.g. "Program Files" -> "PROGRA~1")
  2421       ;;
  2608       ;;
  2422     esac
  2609     esac
  2423 
  2610 
  2424     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2611     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2425     postinstall_cmds='base_file=`basename \${file}`~
  2612     postinstall_cmds='base_file=`basename \$file`~
  2426       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2613       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2427       dldir=$destdir/`dirname \$dlpath`~
  2614       dldir=$destdir/`dirname \$dlpath`~
  2428       test -d \$dldir || mkdir -p \$dldir~
  2615       test -d \$dldir || mkdir -p \$dldir~
  2429       $install_prog $dir/$dlname \$dldir/$dlname'
  2616       $install_prog $dir/$dlname \$dldir/$dlname'
  2430     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2617     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2431       dlpath=$dir/\$dldll~
  2618       dlpath=$dir/\$dldll~
  2434     dynamic_linker='Win32 link.exe'
  2621     dynamic_linker='Win32 link.exe'
  2435     ;;
  2622     ;;
  2436 
  2623 
  2437   *)
  2624   *)
  2438     # Assume MSVC wrapper
  2625     # Assume MSVC wrapper
  2439     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2626     library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
  2440     dynamic_linker='Win32 ld.exe'
  2627     dynamic_linker='Win32 ld.exe'
  2441     ;;
  2628     ;;
  2442   esac
  2629   esac
  2443   # FIXME: first we should search . and the directory the executable is in
  2630   # FIXME: first we should search . and the directory the executable is in
  2444   shlibpath_var=PATH
  2631   shlibpath_var=PATH
  2447 darwin* | rhapsody*)
  2634 darwin* | rhapsody*)
  2448   dynamic_linker="$host_os dyld"
  2635   dynamic_linker="$host_os dyld"
  2449   version_type=darwin
  2636   version_type=darwin
  2450   need_lib_prefix=no
  2637   need_lib_prefix=no
  2451   need_version=no
  2638   need_version=no
  2452   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2639   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  2453   soname_spec='${libname}${release}${major}$shared_ext'
  2640   soname_spec='$libname$release$major$shared_ext'
  2454   shlibpath_overrides_runpath=yes
  2641   shlibpath_overrides_runpath=yes
  2455   shlibpath_var=DYLD_LIBRARY_PATH
  2642   shlibpath_var=DYLD_LIBRARY_PATH
  2456   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2643   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2457 m4_if([$1], [],[
  2644 m4_if([$1], [],[
  2458   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2645   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2461 
  2648 
  2462 dgux*)
  2649 dgux*)
  2463   version_type=linux # correct to gnu/linux during the next big refactor
  2650   version_type=linux # correct to gnu/linux during the next big refactor
  2464   need_lib_prefix=no
  2651   need_lib_prefix=no
  2465   need_version=no
  2652   need_version=no
  2466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2653   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2467   soname_spec='${libname}${release}${shared_ext}$major'
  2654   soname_spec='$libname$release$shared_ext$major'
  2468   shlibpath_var=LD_LIBRARY_PATH
  2655   shlibpath_var=LD_LIBRARY_PATH
  2469   ;;
  2656   ;;
  2470 
  2657 
  2471 freebsd* | dragonfly*)
  2658 freebsd* | dragonfly*)
  2472   # DragonFly does not have aout.  When/if they implement a new
  2659   # DragonFly does not have aout.  When/if they implement a new
  2480     esac
  2667     esac
  2481   fi
  2668   fi
  2482   version_type=freebsd-$objformat
  2669   version_type=freebsd-$objformat
  2483   case $version_type in
  2670   case $version_type in
  2484     freebsd-elf*)
  2671     freebsd-elf*)
  2485       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2672       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
       
  2673       soname_spec='$libname$release$shared_ext$major'
  2486       need_version=no
  2674       need_version=no
  2487       need_lib_prefix=no
  2675       need_lib_prefix=no
  2488       ;;
  2676       ;;
  2489     freebsd-*)
  2677     freebsd-*)
  2490       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2678       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2491       need_version=yes
  2679       need_version=yes
  2492       ;;
  2680       ;;
  2493   esac
  2681   esac
  2494   shlibpath_var=LD_LIBRARY_PATH
  2682   shlibpath_var=LD_LIBRARY_PATH
  2495   case $host_os in
  2683   case $host_os in
  2510     hardcode_into_libs=yes
  2698     hardcode_into_libs=yes
  2511     ;;
  2699     ;;
  2512   esac
  2700   esac
  2513   ;;
  2701   ;;
  2514 
  2702 
  2515 gnu*)
       
  2516   version_type=linux # correct to gnu/linux during the next big refactor
       
  2517   need_lib_prefix=no
       
  2518   need_version=no
       
  2519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
       
  2520   soname_spec='${libname}${release}${shared_ext}$major'
       
  2521   shlibpath_var=LD_LIBRARY_PATH
       
  2522   shlibpath_overrides_runpath=no
       
  2523   hardcode_into_libs=yes
       
  2524   ;;
       
  2525 
       
  2526 haiku*)
  2703 haiku*)
  2527   version_type=linux # correct to gnu/linux during the next big refactor
  2704   version_type=linux # correct to gnu/linux during the next big refactor
  2528   need_lib_prefix=no
  2705   need_lib_prefix=no
  2529   need_version=no
  2706   need_version=no
  2530   dynamic_linker="$host_os runtime_loader"
  2707   dynamic_linker="$host_os runtime_loader"
  2531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2708   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2532   soname_spec='${libname}${release}${shared_ext}$major'
  2709   soname_spec='$libname$release$shared_ext$major'
  2533   shlibpath_var=LIBRARY_PATH
  2710   shlibpath_var=LIBRARY_PATH
  2534   shlibpath_overrides_runpath=yes
  2711   shlibpath_overrides_runpath=no
  2535   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2712   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2536   hardcode_into_libs=yes
  2713   hardcode_into_libs=yes
  2537   ;;
  2714   ;;
  2538 
  2715 
  2539 hpux9* | hpux10* | hpux11*)
  2716 hpux9* | hpux10* | hpux11*)
  2547     shrext_cmds='.so'
  2724     shrext_cmds='.so'
  2548     hardcode_into_libs=yes
  2725     hardcode_into_libs=yes
  2549     dynamic_linker="$host_os dld.so"
  2726     dynamic_linker="$host_os dld.so"
  2550     shlibpath_var=LD_LIBRARY_PATH
  2727     shlibpath_var=LD_LIBRARY_PATH
  2551     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2728     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2729     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2553     soname_spec='${libname}${release}${shared_ext}$major'
  2730     soname_spec='$libname$release$shared_ext$major'
  2554     if test "X$HPUX_IA64_MODE" = X32; then
  2731     if test 32 = "$HPUX_IA64_MODE"; then
  2555       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2732       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
       
  2733       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  2556     else
  2734     else
  2557       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2735       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
       
  2736       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  2558     fi
  2737     fi
  2559     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
       
  2560     ;;
  2738     ;;
  2561   hppa*64*)
  2739   hppa*64*)
  2562     shrext_cmds='.sl'
  2740     shrext_cmds='.sl'
  2563     hardcode_into_libs=yes
  2741     hardcode_into_libs=yes
  2564     dynamic_linker="$host_os dld.sl"
  2742     dynamic_linker="$host_os dld.sl"
  2565     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2743     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2566     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2744     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2745     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2568     soname_spec='${libname}${release}${shared_ext}$major'
  2746     soname_spec='$libname$release$shared_ext$major'
  2569     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2747     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2570     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2571     ;;
  2749     ;;
  2572   *)
  2750   *)
  2573     shrext_cmds='.sl'
  2751     shrext_cmds='.sl'
  2574     dynamic_linker="$host_os dld.sl"
  2752     dynamic_linker="$host_os dld.sl"
  2575     shlibpath_var=SHLIB_PATH
  2753     shlibpath_var=SHLIB_PATH
  2576     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2754     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2577     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2755     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2578     soname_spec='${libname}${release}${shared_ext}$major'
  2756     soname_spec='$libname$release$shared_ext$major'
  2579     ;;
  2757     ;;
  2580   esac
  2758   esac
  2581   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2759   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2582   postinstall_cmds='chmod 555 $lib'
  2760   postinstall_cmds='chmod 555 $lib'
  2583   # or fails outright, so override atomically:
  2761   # or fails outright, so override atomically:
  2586 
  2764 
  2587 interix[[3-9]]*)
  2765 interix[[3-9]]*)
  2588   version_type=linux # correct to gnu/linux during the next big refactor
  2766   version_type=linux # correct to gnu/linux during the next big refactor
  2589   need_lib_prefix=no
  2767   need_lib_prefix=no
  2590   need_version=no
  2768   need_version=no
  2591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2769   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2592   soname_spec='${libname}${release}${shared_ext}$major'
  2770   soname_spec='$libname$release$shared_ext$major'
  2593   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2771   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2594   shlibpath_var=LD_LIBRARY_PATH
  2772   shlibpath_var=LD_LIBRARY_PATH
  2595   shlibpath_overrides_runpath=no
  2773   shlibpath_overrides_runpath=no
  2596   hardcode_into_libs=yes
  2774   hardcode_into_libs=yes
  2597   ;;
  2775   ;;
  2598 
  2776 
  2599 irix5* | irix6* | nonstopux*)
  2777 irix5* | irix6* | nonstopux*)
  2600   case $host_os in
  2778   case $host_os in
  2601     nonstopux*) version_type=nonstopux ;;
  2779     nonstopux*) version_type=nonstopux ;;
  2602     *)
  2780     *)
  2603 	if test "$lt_cv_prog_gnu_ld" = yes; then
  2781 	if test yes = "$lt_cv_prog_gnu_ld"; then
  2604 		version_type=linux # correct to gnu/linux during the next big refactor
  2782 		version_type=linux # correct to gnu/linux during the next big refactor
  2605 	else
  2783 	else
  2606 		version_type=irix
  2784 		version_type=irix
  2607 	fi ;;
  2785 	fi ;;
  2608   esac
  2786   esac
  2609   need_lib_prefix=no
  2787   need_lib_prefix=no
  2610   need_version=no
  2788   need_version=no
  2611   soname_spec='${libname}${release}${shared_ext}$major'
  2789   soname_spec='$libname$release$shared_ext$major'
  2612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2790   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  2613   case $host_os in
  2791   case $host_os in
  2614   irix5* | nonstopux*)
  2792   irix5* | nonstopux*)
  2615     libsuff= shlibsuff=
  2793     libsuff= shlibsuff=
  2616     ;;
  2794     ;;
  2617   *)
  2795   *)
  2626     esac
  2804     esac
  2627     ;;
  2805     ;;
  2628   esac
  2806   esac
  2629   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2807   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2630   shlibpath_overrides_runpath=no
  2808   shlibpath_overrides_runpath=no
  2631   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2809   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  2632   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2810   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  2633   hardcode_into_libs=yes
  2811   hardcode_into_libs=yes
  2634   ;;
  2812   ;;
  2635 
  2813 
  2636 # No shared lib support for Linux oldld, aout, or coff.
  2814 # No shared lib support for Linux oldld, aout, or coff.
  2637 linux*oldld* | linux*aout* | linux*coff*)
  2815 linux*oldld* | linux*aout* | linux*coff*)
  2638   dynamic_linker=no
  2816   dynamic_linker=no
  2639   ;;
  2817   ;;
  2640 
  2818 
       
  2819 linux*android*)
       
  2820   version_type=none # Android doesn't support versioned libraries.
       
  2821   need_lib_prefix=no
       
  2822   need_version=no
       
  2823   library_names_spec='$libname$release$shared_ext'
       
  2824   soname_spec='$libname$release$shared_ext'
       
  2825   finish_cmds=
       
  2826   shlibpath_var=LD_LIBRARY_PATH
       
  2827   shlibpath_overrides_runpath=yes
       
  2828 
       
  2829   # This implies no fast_install, which is unacceptable.
       
  2830   # Some rework will be needed to allow for fast_install
       
  2831   # before this can be enabled.
       
  2832   hardcode_into_libs=yes
       
  2833 
       
  2834   dynamic_linker='Android linker'
       
  2835   # Don't embed -rpath directories since the linker doesn't support them.
       
  2836   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
       
  2837   ;;
       
  2838 
  2641 # This must be glibc/ELF.
  2839 # This must be glibc/ELF.
  2642 linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2840 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  2643   version_type=linux # correct to gnu/linux during the next big refactor
  2841   version_type=linux # correct to gnu/linux during the next big refactor
  2644   need_lib_prefix=no
  2842   need_lib_prefix=no
  2645   need_version=no
  2843   need_version=no
  2646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2844   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2647   soname_spec='${libname}${release}${shared_ext}$major'
  2845   soname_spec='$libname$release$shared_ext$major'
  2648   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2846   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2649   shlibpath_var=LD_LIBRARY_PATH
  2847   shlibpath_var=LD_LIBRARY_PATH
  2650   shlibpath_overrides_runpath=no
  2848   shlibpath_overrides_runpath=no
  2651 
  2849 
  2652   # Some binutils ld are patched to set DT_RUNPATH
  2850   # Some binutils ld are patched to set DT_RUNPATH
  2667   # This implies no fast_install, which is unacceptable.
  2865   # This implies no fast_install, which is unacceptable.
  2668   # Some rework will be needed to allow for fast_install
  2866   # Some rework will be needed to allow for fast_install
  2669   # before this can be enabled.
  2867   # before this can be enabled.
  2670   hardcode_into_libs=yes
  2868   hardcode_into_libs=yes
  2671 
  2869 
  2672   # Append ld.so.conf contents to the search path
  2870   # Ideally, we could use ldconfig to report *all* directores which are
       
  2871   # searched for libraries, however this is still not possible.  Aside from not
       
  2872   # being certain /sbin/ldconfig is available, command
       
  2873   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
       
  2874   # even though it is searched at run-time.  Try to do the best guess by
       
  2875   # appending ld.so.conf contents (and includes) to the search path.
  2673   if test -f /etc/ld.so.conf; then
  2876   if test -f /etc/ld.so.conf; then
  2674     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  2877     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  2675     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2878     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2676   fi
  2879   fi
  2677 
  2880 
  2682   # people can always --disable-shared, the test was removed, and we
  2885   # people can always --disable-shared, the test was removed, and we
  2683   # assume the GNU/Linux dynamic linker is in use.
  2886   # assume the GNU/Linux dynamic linker is in use.
  2684   dynamic_linker='GNU/Linux ld.so'
  2887   dynamic_linker='GNU/Linux ld.so'
  2685   ;;
  2888   ;;
  2686 
  2889 
       
  2890 netbsdelf*-gnu)
       
  2891   version_type=linux
       
  2892   need_lib_prefix=no
       
  2893   need_version=no
       
  2894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
       
  2895   soname_spec='${libname}${release}${shared_ext}$major'
       
  2896   shlibpath_var=LD_LIBRARY_PATH
       
  2897   shlibpath_overrides_runpath=no
       
  2898   hardcode_into_libs=yes
       
  2899   dynamic_linker='NetBSD ld.elf_so'
       
  2900   ;;
       
  2901 
  2687 netbsd*)
  2902 netbsd*)
  2688   version_type=sunos
  2903   version_type=sunos
  2689   need_lib_prefix=no
  2904   need_lib_prefix=no
  2690   need_version=no
  2905   need_version=no
  2691   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2906   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2907     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2693     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2908     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2694     dynamic_linker='NetBSD (a.out) ld.so'
  2909     dynamic_linker='NetBSD (a.out) ld.so'
  2695   else
  2910   else
  2696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2911     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2697     soname_spec='${libname}${release}${shared_ext}$major'
  2912     soname_spec='$libname$release$shared_ext$major'
  2698     dynamic_linker='NetBSD ld.elf_so'
  2913     dynamic_linker='NetBSD ld.elf_so'
  2699   fi
  2914   fi
  2700   shlibpath_var=LD_LIBRARY_PATH
  2915   shlibpath_var=LD_LIBRARY_PATH
  2701   shlibpath_overrides_runpath=yes
  2916   shlibpath_overrides_runpath=yes
  2702   hardcode_into_libs=yes
  2917   hardcode_into_libs=yes
  2703   ;;
  2918   ;;
  2704 
  2919 
  2705 newsos6)
  2920 newsos6)
  2706   version_type=linux # correct to gnu/linux during the next big refactor
  2921   version_type=linux # correct to gnu/linux during the next big refactor
  2707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2922   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2708   shlibpath_var=LD_LIBRARY_PATH
  2923   shlibpath_var=LD_LIBRARY_PATH
  2709   shlibpath_overrides_runpath=yes
  2924   shlibpath_overrides_runpath=yes
  2710   ;;
  2925   ;;
  2711 
  2926 
  2712 *nto* | *qnx*)
  2927 *nto* | *qnx*)
  2713   version_type=qnx
  2928   version_type=qnx
  2714   need_lib_prefix=no
  2929   need_lib_prefix=no
  2715   need_version=no
  2930   need_version=no
  2716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2931   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2717   soname_spec='${libname}${release}${shared_ext}$major'
  2932   soname_spec='$libname$release$shared_ext$major'
  2718   shlibpath_var=LD_LIBRARY_PATH
  2933   shlibpath_var=LD_LIBRARY_PATH
  2719   shlibpath_overrides_runpath=no
  2934   shlibpath_overrides_runpath=no
  2720   hardcode_into_libs=yes
  2935   hardcode_into_libs=yes
  2721   dynamic_linker='ldqnx.so'
  2936   dynamic_linker='ldqnx.so'
  2722   ;;
  2937   ;;
  2723 
  2938 
  2724 openbsd*)
  2939 openbsd* | bitrig*)
  2725   version_type=sunos
  2940   version_type=sunos
  2726   sys_lib_dlsearch_path_spec="/usr/lib"
  2941   sys_lib_dlsearch_path_spec=/usr/lib
  2727   need_lib_prefix=no
  2942   need_lib_prefix=no
  2728   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2943   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  2729   case $host_os in
  2944     need_version=no
  2730     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
  2945   else
  2731     *)				need_version=no  ;;
  2946     need_version=yes
  2732   esac
  2947   fi
  2733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2948   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2734   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2735   shlibpath_var=LD_LIBRARY_PATH
  2950   shlibpath_var=LD_LIBRARY_PATH
  2736   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2951   shlibpath_overrides_runpath=yes
  2737     case $host_os in
       
  2738       openbsd2.[[89]] | openbsd2.[[89]].*)
       
  2739 	shlibpath_overrides_runpath=no
       
  2740 	;;
       
  2741       *)
       
  2742 	shlibpath_overrides_runpath=yes
       
  2743 	;;
       
  2744       esac
       
  2745   else
       
  2746     shlibpath_overrides_runpath=yes
       
  2747   fi
       
  2748   ;;
  2952   ;;
  2749 
  2953 
  2750 os2*)
  2954 os2*)
  2751   libname_spec='$name'
  2955   libname_spec='$name'
  2752   shrext_cmds=".dll"
  2956   version_type=windows
       
  2957   shrext_cmds=.dll
       
  2958   need_version=no
  2753   need_lib_prefix=no
  2959   need_lib_prefix=no
  2754   library_names_spec='$libname${shared_ext} $libname.a'
  2960   # OS/2 can only load a DLL with a base name of 8 characters or less.
       
  2961   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
       
  2962     v=$($ECHO $release$versuffix | tr -d .-);
       
  2963     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
       
  2964     $ECHO $n$v`$shared_ext'
       
  2965   library_names_spec='${libname}_dll.$libext'
  2755   dynamic_linker='OS/2 ld.exe'
  2966   dynamic_linker='OS/2 ld.exe'
  2756   shlibpath_var=LIBPATH
  2967   shlibpath_var=BEGINLIBPATH
       
  2968   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
       
  2969   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
       
  2970   postinstall_cmds='base_file=`basename \$file`~
       
  2971     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
       
  2972     dldir=$destdir/`dirname \$dlpath`~
       
  2973     test -d \$dldir || mkdir -p \$dldir~
       
  2974     $install_prog $dir/$dlname \$dldir/$dlname~
       
  2975     chmod a+x \$dldir/$dlname~
       
  2976     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
       
  2977       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
       
  2978     fi'
       
  2979   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
       
  2980     dlpath=$dir/\$dldll~
       
  2981     $RM \$dlpath'
  2757   ;;
  2982   ;;
  2758 
  2983 
  2759 osf3* | osf4* | osf5*)
  2984 osf3* | osf4* | osf5*)
  2760   version_type=osf
  2985   version_type=osf
  2761   need_lib_prefix=no
  2986   need_lib_prefix=no
  2762   need_version=no
  2987   need_version=no
  2763   soname_spec='${libname}${release}${shared_ext}$major'
  2988   soname_spec='$libname$release$shared_ext$major'
  2764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2989   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2765   shlibpath_var=LD_LIBRARY_PATH
  2990   shlibpath_var=LD_LIBRARY_PATH
  2766   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2991   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2767   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2992   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2768   ;;
  2993   ;;
  2769 
  2994 
  2770 rdos*)
  2995 rdos*)
  2771   dynamic_linker=no
  2996   dynamic_linker=no
  2772   ;;
  2997   ;;
  2773 
  2998 
  2774 solaris*)
  2999 solaris*)
  2775   version_type=linux # correct to gnu/linux during the next big refactor
  3000   version_type=linux # correct to gnu/linux during the next big refactor
  2776   need_lib_prefix=no
  3001   need_lib_prefix=no
  2777   need_version=no
  3002   need_version=no
  2778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3003   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2779   soname_spec='${libname}${release}${shared_ext}$major'
  3004   soname_spec='$libname$release$shared_ext$major'
  2780   shlibpath_var=LD_LIBRARY_PATH
  3005   shlibpath_var=LD_LIBRARY_PATH
  2781   shlibpath_overrides_runpath=yes
  3006   shlibpath_overrides_runpath=yes
  2782   hardcode_into_libs=yes
  3007   hardcode_into_libs=yes
  2783   # ldd complains unless libraries are executable
  3008   # ldd complains unless libraries are executable
  2784   postinstall_cmds='chmod +x $lib'
  3009   postinstall_cmds='chmod +x $lib'
  2785   ;;
  3010   ;;
  2786 
  3011 
  2787 sunos4*)
  3012 sunos4*)
  2788   version_type=sunos
  3013   version_type=sunos
  2789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3014   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2790   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3015   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2791   shlibpath_var=LD_LIBRARY_PATH
  3016   shlibpath_var=LD_LIBRARY_PATH
  2792   shlibpath_overrides_runpath=yes
  3017   shlibpath_overrides_runpath=yes
  2793   if test "$with_gnu_ld" = yes; then
  3018   if test yes = "$with_gnu_ld"; then
  2794     need_lib_prefix=no
  3019     need_lib_prefix=no
  2795   fi
  3020   fi
  2796   need_version=yes
  3021   need_version=yes
  2797   ;;
  3022   ;;
  2798 
  3023 
  2799 sysv4 | sysv4.3*)
  3024 sysv4 | sysv4.3*)
  2800   version_type=linux # correct to gnu/linux during the next big refactor
  3025   version_type=linux # correct to gnu/linux during the next big refactor
  2801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3026   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2802   soname_spec='${libname}${release}${shared_ext}$major'
  3027   soname_spec='$libname$release$shared_ext$major'
  2803   shlibpath_var=LD_LIBRARY_PATH
  3028   shlibpath_var=LD_LIBRARY_PATH
  2804   case $host_vendor in
  3029   case $host_vendor in
  2805     sni)
  3030     sni)
  2806       shlibpath_overrides_runpath=no
  3031       shlibpath_overrides_runpath=no
  2807       need_lib_prefix=no
  3032       need_lib_prefix=no
  2818       ;;
  3043       ;;
  2819   esac
  3044   esac
  2820   ;;
  3045   ;;
  2821 
  3046 
  2822 sysv4*MP*)
  3047 sysv4*MP*)
  2823   if test -d /usr/nec ;then
  3048   if test -d /usr/nec; then
  2824     version_type=linux # correct to gnu/linux during the next big refactor
  3049     version_type=linux # correct to gnu/linux during the next big refactor
  2825     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3050     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  2826     soname_spec='$libname${shared_ext}.$major'
  3051     soname_spec='$libname$shared_ext.$major'
  2827     shlibpath_var=LD_LIBRARY_PATH
  3052     shlibpath_var=LD_LIBRARY_PATH
  2828   fi
  3053   fi
  2829   ;;
  3054   ;;
  2830 
  3055 
  2831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2832   version_type=freebsd-elf
  3057   version_type=sco
  2833   need_lib_prefix=no
  3058   need_lib_prefix=no
  2834   need_version=no
  3059   need_version=no
  2835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3060   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  2836   soname_spec='${libname}${release}${shared_ext}$major'
  3061   soname_spec='$libname$release$shared_ext$major'
  2837   shlibpath_var=LD_LIBRARY_PATH
  3062   shlibpath_var=LD_LIBRARY_PATH
  2838   shlibpath_overrides_runpath=yes
  3063   shlibpath_overrides_runpath=yes
  2839   hardcode_into_libs=yes
  3064   hardcode_into_libs=yes
  2840   if test "$with_gnu_ld" = yes; then
  3065   if test yes = "$with_gnu_ld"; then
  2841     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3066     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2842   else
  3067   else
  2843     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3068     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2844     case $host_os in
  3069     case $host_os in
  2845       sco3.2v5*)
  3070       sco3.2v5*)
  2853 tpf*)
  3078 tpf*)
  2854   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  3079   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  2855   version_type=linux # correct to gnu/linux during the next big refactor
  3080   version_type=linux # correct to gnu/linux during the next big refactor
  2856   need_lib_prefix=no
  3081   need_lib_prefix=no
  2857   need_version=no
  3082   need_version=no
  2858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3083   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2859   shlibpath_var=LD_LIBRARY_PATH
  3084   shlibpath_var=LD_LIBRARY_PATH
  2860   shlibpath_overrides_runpath=no
  3085   shlibpath_overrides_runpath=no
  2861   hardcode_into_libs=yes
  3086   hardcode_into_libs=yes
  2862   ;;
  3087   ;;
  2863 
  3088 
  2864 uts4*)
  3089 uts4*)
  2865   version_type=linux # correct to gnu/linux during the next big refactor
  3090   version_type=linux # correct to gnu/linux during the next big refactor
  2866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3091   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2867   soname_spec='${libname}${release}${shared_ext}$major'
  3092   soname_spec='$libname$release$shared_ext$major'
  2868   shlibpath_var=LD_LIBRARY_PATH
  3093   shlibpath_var=LD_LIBRARY_PATH
  2869   ;;
  3094   ;;
  2870 
  3095 
  2871 *)
  3096 *)
  2872   dynamic_linker=no
  3097   dynamic_linker=no
  2873   ;;
  3098   ;;
  2874 esac
  3099 esac
  2875 AC_MSG_RESULT([$dynamic_linker])
  3100 AC_MSG_RESULT([$dynamic_linker])
  2876 test "$dynamic_linker" = no && can_build_shared=no
  3101 test no = "$dynamic_linker" && can_build_shared=no
  2877 
  3102 
  2878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3103 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2879 if test "$GCC" = yes; then
  3104 if test yes = "$GCC"; then
  2880   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3105   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2881 fi
  3106 fi
  2882 
  3107 
  2883 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  3108 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  2884   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  3109   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  2885 fi
  3110 fi
  2886 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  3111 
  2887   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  3112 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
       
  3113   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  2888 fi
  3114 fi
       
  3115 
       
  3116 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
       
  3117 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
       
  3118 
       
  3119 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
       
  3120 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
       
  3121 
       
  3122 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
       
  3123 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  2889 
  3124 
  2890 _LT_DECL([], [variables_saved_for_relink], [1],
  3125 _LT_DECL([], [variables_saved_for_relink], [1],
  2891     [Variables whose values should be saved in libtool wrapper scripts and
  3126     [Variables whose values should be saved in libtool wrapper scripts and
  2892     restored at link time])
  3127     restored at link time])
  2893 _LT_DECL([], [need_lib_prefix], [0],
  3128 _LT_DECL([], [need_lib_prefix], [0],
  2917     not shown]])
  3152     not shown]])
  2918 _LT_DECL([], [hardcode_into_libs], [0],
  3153 _LT_DECL([], [hardcode_into_libs], [0],
  2919     [Whether we should hardcode library paths into libraries])
  3154     [Whether we should hardcode library paths into libraries])
  2920 _LT_DECL([], [sys_lib_search_path_spec], [2],
  3155 _LT_DECL([], [sys_lib_search_path_spec], [2],
  2921     [Compile-time system search path for libraries])
  3156     [Compile-time system search path for libraries])
  2922 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  3157 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
  2923     [Run-time system search path for libraries])
  3158     [Detected run-time system search path for libraries])
       
  3159 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
       
  3160     [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
  2924 ])# _LT_SYS_DYNAMIC_LINKER
  3161 ])# _LT_SYS_DYNAMIC_LINKER
  2925 
  3162 
  2926 
  3163 
  2927 # _LT_PATH_TOOL_PREFIX(TOOL)
  3164 # _LT_PATH_TOOL_PREFIX(TOOL)
  2928 # --------------------------
  3165 # --------------------------
  2929 # find a file program which can recognize shared library
  3166 # find a file program that can recognize shared library
  2930 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  3167 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2931 [m4_require([_LT_DECL_EGREP])dnl
  3168 [m4_require([_LT_DECL_EGREP])dnl
  2932 AC_MSG_CHECKING([for $1])
  3169 AC_MSG_CHECKING([for $1])
  2933 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3170 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2934 [case $MAGIC_CMD in
  3171 [case $MAGIC_CMD in
  2935 [[\\/*] |  ?:[\\/]*])
  3172 [[\\/*] |  ?:[\\/]*])
  2936   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3173   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  2937   ;;
  3174   ;;
  2938 *)
  3175 *)
  2939   lt_save_MAGIC_CMD="$MAGIC_CMD"
  3176   lt_save_MAGIC_CMD=$MAGIC_CMD
  2940   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3177   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  2941 dnl $ac_dummy forces splitting on constant user-supplied paths.
  3178 dnl $ac_dummy forces splitting on constant user-supplied paths.
  2942 dnl POSIX.2 word splitting is done only on the output of word expansions,
  3179 dnl POSIX.2 word splitting is done only on the output of word expansions,
  2943 dnl not every word.  This closes a longstanding sh security hole.
  3180 dnl not every word.  This closes a longstanding sh security hole.
  2944   ac_dummy="m4_if([$2], , $PATH, [$2])"
  3181   ac_dummy="m4_if([$2], , $PATH, [$2])"
  2945   for ac_dir in $ac_dummy; do
  3182   for ac_dir in $ac_dummy; do
  2946     IFS="$lt_save_ifs"
  3183     IFS=$lt_save_ifs
  2947     test -z "$ac_dir" && ac_dir=.
  3184     test -z "$ac_dir" && ac_dir=.
  2948     if test -f $ac_dir/$1; then
  3185     if test -f "$ac_dir/$1"; then
  2949       lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3186       lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
  2950       if test -n "$file_magic_test_file"; then
  3187       if test -n "$file_magic_test_file"; then
  2951 	case $deplibs_check_method in
  3188 	case $deplibs_check_method in
  2952 	"file_magic "*)
  3189 	"file_magic "*)
  2953 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3190 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2954 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3191 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  2955 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3192 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2956 	    $EGREP "$file_magic_regex" > /dev/null; then
  3193 	    $EGREP "$file_magic_regex" > /dev/null; then
  2957 	    :
  3194 	    :
  2958 	  else
  3195 	  else
  2959 	    cat <<_LT_EOF 1>&2
  3196 	    cat <<_LT_EOF 1>&2
  2972 	esac
  3209 	esac
  2973       fi
  3210       fi
  2974       break
  3211       break
  2975     fi
  3212     fi
  2976   done
  3213   done
  2977   IFS="$lt_save_ifs"
  3214   IFS=$lt_save_ifs
  2978   MAGIC_CMD="$lt_save_MAGIC_CMD"
  3215   MAGIC_CMD=$lt_save_MAGIC_CMD
  2979   ;;
  3216   ;;
  2980 esac])
  3217 esac])
  2981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3218 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  2982 if test -n "$MAGIC_CMD"; then
  3219 if test -n "$MAGIC_CMD"; then
  2983   AC_MSG_RESULT($MAGIC_CMD)
  3220   AC_MSG_RESULT($MAGIC_CMD)
  2984 else
  3221 else
  2985   AC_MSG_RESULT(no)
  3222   AC_MSG_RESULT(no)
  2986 fi
  3223 fi
  2994 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  3231 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2995 
  3232 
  2996 
  3233 
  2997 # _LT_PATH_MAGIC
  3234 # _LT_PATH_MAGIC
  2998 # --------------
  3235 # --------------
  2999 # find a file program which can recognize a shared library
  3236 # find a file program that can recognize a shared library
  3000 m4_defun([_LT_PATH_MAGIC],
  3237 m4_defun([_LT_PATH_MAGIC],
  3001 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3238 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3002 if test -z "$lt_cv_path_MAGIC_CMD"; then
  3239 if test -z "$lt_cv_path_MAGIC_CMD"; then
  3003   if test -n "$ac_tool_prefix"; then
  3240   if test -n "$ac_tool_prefix"; then
  3004     _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3241     _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3021 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  3258 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  3022 
  3259 
  3023 AC_ARG_WITH([gnu-ld],
  3260 AC_ARG_WITH([gnu-ld],
  3024     [AS_HELP_STRING([--with-gnu-ld],
  3261     [AS_HELP_STRING([--with-gnu-ld],
  3025 	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3262 	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3026     [test "$withval" = no || with_gnu_ld=yes],
  3263     [test no = "$withval" || with_gnu_ld=yes],
  3027     [with_gnu_ld=no])dnl
  3264     [with_gnu_ld=no])dnl
  3028 
  3265 
  3029 ac_prog=ld
  3266 ac_prog=ld
  3030 if test "$GCC" = yes; then
  3267 if test yes = "$GCC"; then
  3031   # Check if gcc -print-prog-name=ld gives a path.
  3268   # Check if gcc -print-prog-name=ld gives a path.
  3032   AC_MSG_CHECKING([for ld used by $CC])
  3269   AC_MSG_CHECKING([for ld used by $CC])
  3033   case $host in
  3270   case $host in
  3034   *-*-mingw*)
  3271   *-*-mingw*)
  3035     # gcc leaves a trailing carriage return which upsets mingw
  3272     # gcc leaves a trailing carriage return, which upsets mingw
  3036     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3273     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3037   *)
  3274   *)
  3038     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3275     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3039   esac
  3276   esac
  3040   case $ac_prog in
  3277   case $ac_prog in
  3044       # Canonicalize the pathname of ld
  3281       # Canonicalize the pathname of ld
  3045       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3282       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3046       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3283       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3047 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3284 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3048       done
  3285       done
  3049       test -z "$LD" && LD="$ac_prog"
  3286       test -z "$LD" && LD=$ac_prog
  3050       ;;
  3287       ;;
  3051   "")
  3288   "")
  3052     # If it fails, then pretend we aren't using GCC.
  3289     # If it fails, then pretend we aren't using GCC.
  3053     ac_prog=ld
  3290     ac_prog=ld
  3054     ;;
  3291     ;;
  3055   *)
  3292   *)
  3056     # If it is relative, then search for the first ld in PATH.
  3293     # If it is relative, then search for the first ld in PATH.
  3057     with_gnu_ld=unknown
  3294     with_gnu_ld=unknown
  3058     ;;
  3295     ;;
  3059   esac
  3296   esac
  3060 elif test "$with_gnu_ld" = yes; then
  3297 elif test yes = "$with_gnu_ld"; then
  3061   AC_MSG_CHECKING([for GNU ld])
  3298   AC_MSG_CHECKING([for GNU ld])
  3062 else
  3299 else
  3063   AC_MSG_CHECKING([for non-GNU ld])
  3300   AC_MSG_CHECKING([for non-GNU ld])
  3064 fi
  3301 fi
  3065 AC_CACHE_VAL(lt_cv_path_LD,
  3302 AC_CACHE_VAL(lt_cv_path_LD,
  3066 [if test -z "$LD"; then
  3303 [if test -z "$LD"; then
  3067   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3304   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3068   for ac_dir in $PATH; do
  3305   for ac_dir in $PATH; do
  3069     IFS="$lt_save_ifs"
  3306     IFS=$lt_save_ifs
  3070     test -z "$ac_dir" && ac_dir=.
  3307     test -z "$ac_dir" && ac_dir=.
  3071     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3308     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3072       lt_cv_path_LD="$ac_dir/$ac_prog"
  3309       lt_cv_path_LD=$ac_dir/$ac_prog
  3073       # Check to see if the program is GNU ld.  I'd rather use --version,
  3310       # Check to see if the program is GNU ld.  I'd rather use --version,
  3074       # but apparently some variants of GNU ld only accept -v.
  3311       # but apparently some variants of GNU ld only accept -v.
  3075       # Break only if it was the GNU/non-GNU ld that we prefer.
  3312       # Break only if it was the GNU/non-GNU ld that we prefer.
  3076       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3313       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3077       *GNU* | *'with BFD'*)
  3314       *GNU* | *'with BFD'*)
  3078 	test "$with_gnu_ld" != no && break
  3315 	test no != "$with_gnu_ld" && break
  3079 	;;
  3316 	;;
  3080       *)
  3317       *)
  3081 	test "$with_gnu_ld" != yes && break
  3318 	test yes != "$with_gnu_ld" && break
  3082 	;;
  3319 	;;
  3083       esac
  3320       esac
  3084     fi
  3321     fi
  3085   done
  3322   done
  3086   IFS="$lt_save_ifs"
  3323   IFS=$lt_save_ifs
  3087 else
  3324 else
  3088   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3325   lt_cv_path_LD=$LD # Let the user override the test with a path.
  3089 fi])
  3326 fi])
  3090 LD="$lt_cv_path_LD"
  3327 LD=$lt_cv_path_LD
  3091 if test -n "$LD"; then
  3328 if test -n "$LD"; then
  3092   AC_MSG_RESULT($LD)
  3329   AC_MSG_RESULT($LD)
  3093 else
  3330 else
  3094   AC_MSG_RESULT(no)
  3331   AC_MSG_RESULT(no)
  3095 fi
  3332 fi
  3139 *) reload_flag=" $reload_flag" ;;
  3376 *) reload_flag=" $reload_flag" ;;
  3140 esac
  3377 esac
  3141 reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3142 case $host_os in
  3379 case $host_os in
  3143   cygwin* | mingw* | pw32* | cegcc*)
  3380   cygwin* | mingw* | pw32* | cegcc*)
  3144     if test "$GCC" != yes; then
  3381     if test yes != "$GCC"; then
  3145       reload_cmds=false
  3382       reload_cmds=false
  3146     fi
  3383     fi
  3147     ;;
  3384     ;;
  3148   darwin*)
  3385   darwin*)
  3149     if test "$GCC" = yes; then
  3386     if test yes = "$GCC"; then
  3150       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3387       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  3151     else
  3388     else
  3152       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3389       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3153     fi
  3390     fi
  3154     ;;
  3391     ;;
  3155 esac
  3392 esac
  3156 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3393 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3157 _LT_TAGDECL([], [reload_cmds], [2])dnl
  3394 _LT_TAGDECL([], [reload_cmds], [2])dnl
  3158 ])# _LT_CMD_RELOAD
  3395 ])# _LT_CMD_RELOAD
       
  3396 
       
  3397 
       
  3398 # _LT_PATH_DD
       
  3399 # -----------
       
  3400 # find a working dd
       
  3401 m4_defun([_LT_PATH_DD],
       
  3402 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
       
  3403 [printf 0123456789abcdef0123456789abcdef >conftest.i
       
  3404 cat conftest.i conftest.i >conftest2.i
       
  3405 : ${lt_DD:=$DD}
       
  3406 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
       
  3407 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
       
  3408   cmp -s conftest.i conftest.out \
       
  3409   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
       
  3410 fi])
       
  3411 rm -f conftest.i conftest2.i conftest.out])
       
  3412 ])# _LT_PATH_DD
       
  3413 
       
  3414 
       
  3415 # _LT_CMD_TRUNCATE
       
  3416 # ----------------
       
  3417 # find command to truncate a binary pipe
       
  3418 m4_defun([_LT_CMD_TRUNCATE],
       
  3419 [m4_require([_LT_PATH_DD])
       
  3420 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
       
  3421 [printf 0123456789abcdef0123456789abcdef >conftest.i
       
  3422 cat conftest.i conftest.i >conftest2.i
       
  3423 lt_cv_truncate_bin=
       
  3424 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
       
  3425   cmp -s conftest.i conftest.out \
       
  3426   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
       
  3427 fi
       
  3428 rm -f conftest.i conftest2.i conftest.out
       
  3429 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
       
  3430 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
       
  3431   [Command to truncate a binary pipe])
       
  3432 ])# _LT_CMD_TRUNCATE
  3159 
  3433 
  3160 
  3434 
  3161 # _LT_CHECK_MAGIC_METHOD
  3435 # _LT_CHECK_MAGIC_METHOD
  3162 # ----------------------
  3436 # ----------------------
  3163 # how to check for library dependencies
  3437 # how to check for library dependencies
  3171 lt_cv_file_magic_test_file=
  3445 lt_cv_file_magic_test_file=
  3172 lt_cv_deplibs_check_method='unknown'
  3446 lt_cv_deplibs_check_method='unknown'
  3173 # Need to set the preceding variable on all platforms that support
  3447 # Need to set the preceding variable on all platforms that support
  3174 # interlibrary dependencies.
  3448 # interlibrary dependencies.
  3175 # 'none' -- dependencies not supported.
  3449 # 'none' -- dependencies not supported.
  3176 # `unknown' -- same as none, but documents that we really don't know.
  3450 # 'unknown' -- same as none, but documents that we really don't know.
  3177 # 'pass_all' -- all dependencies passed with no checks.
  3451 # 'pass_all' -- all dependencies passed with no checks.
  3178 # 'test_compile' -- check by making test program.
  3452 # 'test_compile' -- check by making test program.
  3179 # 'file_magic [[regex]]' -- check by looking for files in library path
  3453 # 'file_magic [[regex]]' -- check by looking for files in library path
  3180 # which responds to the $file_magic_cmd with a given extended regex.
  3454 # that responds to the $file_magic_cmd with a given extended regex.
  3181 # If you have `file' or equivalent on your system and you're not sure
  3455 # If you have 'file' or equivalent on your system and you're not sure
  3182 # whether `pass_all' will *always* work, you probably want this one.
  3456 # whether 'pass_all' will *always* work, you probably want this one.
  3183 
  3457 
  3184 case $host_os in
  3458 case $host_os in
  3185 aix[[4-9]]*)
  3459 aix[[4-9]]*)
  3186   lt_cv_deplibs_check_method=pass_all
  3460   lt_cv_deplibs_check_method=pass_all
  3187   ;;
  3461   ;;
  3204 
  3478 
  3205 mingw* | pw32*)
  3479 mingw* | pw32*)
  3206   # Base MSYS/MinGW do not provide the 'file' command needed by
  3480   # Base MSYS/MinGW do not provide the 'file' command needed by
  3207   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3481   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3208   # unless we find 'file', for example because we are cross-compiling.
  3482   # unless we find 'file', for example because we are cross-compiling.
  3209   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  3483   if ( file / ) >/dev/null 2>&1; then
  3210   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
       
  3211     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3484     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3212     lt_cv_file_magic_cmd='func_win32_libid'
  3485     lt_cv_file_magic_cmd='func_win32_libid'
  3213   else
  3486   else
  3214     # Keep this pattern in sync with the one in func_win32_libid.
  3487     # Keep this pattern in sync with the one in func_win32_libid.
  3215     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3488     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3239       ;;
  3512       ;;
  3240     esac
  3513     esac
  3241   else
  3514   else
  3242     lt_cv_deplibs_check_method=pass_all
  3515     lt_cv_deplibs_check_method=pass_all
  3243   fi
  3516   fi
  3244   ;;
       
  3245 
       
  3246 gnu*)
       
  3247   lt_cv_deplibs_check_method=pass_all
       
  3248   ;;
  3517   ;;
  3249 
  3518 
  3250 haiku*)
  3519 haiku*)
  3251   lt_cv_deplibs_check_method=pass_all
  3520   lt_cv_deplibs_check_method=pass_all
  3252   ;;
  3521   ;;
  3283   esac
  3552   esac
  3284   lt_cv_deplibs_check_method=pass_all
  3553   lt_cv_deplibs_check_method=pass_all
  3285   ;;
  3554   ;;
  3286 
  3555 
  3287 # This must be glibc/ELF.
  3556 # This must be glibc/ELF.
  3288 linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3557 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3289   lt_cv_deplibs_check_method=pass_all
  3558   lt_cv_deplibs_check_method=pass_all
  3290   ;;
  3559   ;;
  3291 
  3560 
  3292 netbsd*)
  3561 netbsd* | netbsdelf*-gnu)
  3293   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3562   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3294     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3563     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3295   else
  3564   else
  3296     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3565     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3297   fi
  3566   fi
  3305 
  3574 
  3306 *nto* | *qnx*)
  3575 *nto* | *qnx*)
  3307   lt_cv_deplibs_check_method=pass_all
  3576   lt_cv_deplibs_check_method=pass_all
  3308   ;;
  3577   ;;
  3309 
  3578 
  3310 openbsd*)
  3579 openbsd* | bitrig*)
  3311   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3580   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  3312     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3581     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3313   else
  3582   else
  3314     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3583     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3315   fi
  3584   fi
  3316   ;;
  3585   ;;
  3359   ;;
  3628   ;;
  3360 
  3629 
  3361 tpf*)
  3630 tpf*)
  3362   lt_cv_deplibs_check_method=pass_all
  3631   lt_cv_deplibs_check_method=pass_all
  3363   ;;
  3632   ;;
       
  3633 os2*)
       
  3634   lt_cv_deplibs_check_method=pass_all
       
  3635   ;;
  3364 esac
  3636 esac
  3365 ])
  3637 ])
  3366 
  3638 
  3367 file_magic_glob=
  3639 file_magic_glob=
  3368 want_nocaseglob=no
  3640 want_nocaseglob=no
  3399 AC_DEFUN([LT_PATH_NM],
  3671 AC_DEFUN([LT_PATH_NM],
  3400 [AC_REQUIRE([AC_PROG_CC])dnl
  3672 [AC_REQUIRE([AC_PROG_CC])dnl
  3401 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3673 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3402 [if test -n "$NM"; then
  3674 [if test -n "$NM"; then
  3403   # Let the user override the test.
  3675   # Let the user override the test.
  3404   lt_cv_path_NM="$NM"
  3676   lt_cv_path_NM=$NM
  3405 else
  3677 else
  3406   lt_nm_to_check="${ac_tool_prefix}nm"
  3678   lt_nm_to_check=${ac_tool_prefix}nm
  3407   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3679   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3408     lt_nm_to_check="$lt_nm_to_check nm"
  3680     lt_nm_to_check="$lt_nm_to_check nm"
  3409   fi
  3681   fi
  3410   for lt_tmp_nm in $lt_nm_to_check; do
  3682   for lt_tmp_nm in $lt_nm_to_check; do
  3411     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3683     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3412     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3684     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3413       IFS="$lt_save_ifs"
  3685       IFS=$lt_save_ifs
  3414       test -z "$ac_dir" && ac_dir=.
  3686       test -z "$ac_dir" && ac_dir=.
  3415       tmp_nm="$ac_dir/$lt_tmp_nm"
  3687       tmp_nm=$ac_dir/$lt_tmp_nm
  3416       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3688       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3417 	# Check to see if the nm accepts a BSD-compat flag.
  3689 	# Check to see if the nm accepts a BSD-compat flag.
  3418 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3690 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3419 	#   nm: unknown option "B" ignored
  3691 	#   nm: unknown option "B" ignored
  3420 	# Tru64's nm complains that /dev/null is an invalid object file
  3692 	# Tru64's nm complains that /dev/null is an invalid object file
  3421 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3693 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3422 	*/dev/null* | *'Invalid file or object type'*)
  3694 	case $build_os in
       
  3695 	mingw*) lt_bad_file=conftest.nm/nofile ;;
       
  3696 	*) lt_bad_file=/dev/null ;;
       
  3697 	esac
       
  3698 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
       
  3699 	*$lt_bad_file* | *'Invalid file or object type'*)
  3423 	  lt_cv_path_NM="$tmp_nm -B"
  3700 	  lt_cv_path_NM="$tmp_nm -B"
  3424 	  break
  3701 	  break 2
  3425 	  ;;
  3702 	  ;;
  3426 	*)
  3703 	*)
  3427 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3704 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3428 	  */dev/null*)
  3705 	  */dev/null*)
  3429 	    lt_cv_path_NM="$tmp_nm -p"
  3706 	    lt_cv_path_NM="$tmp_nm -p"
  3430 	    break
  3707 	    break 2
  3431 	    ;;
  3708 	    ;;
  3432 	  *)
  3709 	  *)
  3433 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3710 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3434 	    continue # so that we can try to find one that supports BSD flags
  3711 	    continue # so that we can try to find one that supports BSD flags
  3435 	    ;;
  3712 	    ;;
  3436 	  esac
  3713 	  esac
  3437 	  ;;
  3714 	  ;;
  3438 	esac
  3715 	esac
  3439       fi
  3716       fi
  3440     done
  3717     done
  3441     IFS="$lt_save_ifs"
  3718     IFS=$lt_save_ifs
  3442   done
  3719   done
  3443   : ${lt_cv_path_NM=no}
  3720   : ${lt_cv_path_NM=no}
  3444 fi])
  3721 fi])
  3445 if test "$lt_cv_path_NM" != "no"; then
  3722 if test no != "$lt_cv_path_NM"; then
  3446   NM="$lt_cv_path_NM"
  3723   NM=$lt_cv_path_NM
  3447 else
  3724 else
  3448   # Didn't find any BSD compatible name lister, look for dumpbin.
  3725   # Didn't find any BSD compatible name lister, look for dumpbin.
  3449   if test -n "$DUMPBIN"; then :
  3726   if test -n "$DUMPBIN"; then :
  3450     # Let the user override the test.
  3727     # Let the user override the test.
  3451   else
  3728   else
  3452     AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3729     AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3453     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3730     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3454     *COFF*)
  3731     *COFF*)
  3455       DUMPBIN="$DUMPBIN -symbols"
  3732       DUMPBIN="$DUMPBIN -symbols -headers"
  3456       ;;
  3733       ;;
  3457     *)
  3734     *)
  3458       DUMPBIN=:
  3735       DUMPBIN=:
  3459       ;;
  3736       ;;
  3460     esac
  3737     esac
  3461   fi
  3738   fi
  3462   AC_SUBST([DUMPBIN])
  3739   AC_SUBST([DUMPBIN])
  3463   if test "$DUMPBIN" != ":"; then
  3740   if test : != "$DUMPBIN"; then
  3464     NM="$DUMPBIN"
  3741     NM=$DUMPBIN
  3465   fi
  3742   fi
  3466 fi
  3743 fi
  3467 test -z "$NM" && NM=nm
  3744 test -z "$NM" && NM=nm
  3468 AC_SUBST([NM])
  3745 AC_SUBST([NM])
  3469 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3746 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3505 lt_cv_sharedlib_from_linklib_cmd,
  3782 lt_cv_sharedlib_from_linklib_cmd,
  3506 [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3783 [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3507 
  3784 
  3508 case $host_os in
  3785 case $host_os in
  3509 cygwin* | mingw* | pw32* | cegcc*)
  3786 cygwin* | mingw* | pw32* | cegcc*)
  3510   # two different shell functions defined in ltmain.sh
  3787   # two different shell functions defined in ltmain.sh;
  3511   # decide which to use based on capabilities of $DLLTOOL
  3788   # decide which one to use based on capabilities of $DLLTOOL
  3512   case `$DLLTOOL --help 2>&1` in
  3789   case `$DLLTOOL --help 2>&1` in
  3513   *--identify-strict*)
  3790   *--identify-strict*)
  3514     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3791     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3515     ;;
  3792     ;;
  3516   *)
  3793   *)
  3518     ;;
  3795     ;;
  3519   esac
  3796   esac
  3520   ;;
  3797   ;;
  3521 *)
  3798 *)
  3522   # fallback: assume linklib IS sharedlib
  3799   # fallback: assume linklib IS sharedlib
  3523   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3800   lt_cv_sharedlib_from_linklib_cmd=$ECHO
  3524   ;;
  3801   ;;
  3525 esac
  3802 esac
  3526 ])
  3803 ])
  3527 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3804 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3528 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3805 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3545   cat conftest.err >&AS_MESSAGE_LOG_FD
  3822   cat conftest.err >&AS_MESSAGE_LOG_FD
  3546   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3823   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3547     lt_cv_path_mainfest_tool=yes
  3824     lt_cv_path_mainfest_tool=yes
  3548   fi
  3825   fi
  3549   rm -f conftest*])
  3826   rm -f conftest*])
  3550 if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3827 if test yes != "$lt_cv_path_mainfest_tool"; then
  3551   MANIFEST_TOOL=:
  3828   MANIFEST_TOOL=:
  3552 fi
  3829 fi
  3553 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3830 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3554 ])# _LT_PATH_MANIFEST_TOOL
  3831 ])# _LT_PATH_MANIFEST_TOOL
       
  3832 
       
  3833 
       
  3834 # _LT_DLL_DEF_P([FILE])
       
  3835 # ---------------------
       
  3836 # True iff FILE is a Windows DLL '.def' file.
       
  3837 # Keep in sync with func_dll_def_p in the libtool script
       
  3838 AC_DEFUN([_LT_DLL_DEF_P],
       
  3839 [dnl
       
  3840   test DEF = "`$SED -n dnl
       
  3841     -e '\''s/^[[	 ]]*//'\'' dnl Strip leading whitespace
       
  3842     -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
       
  3843     -e '\''s/^\(EXPORTS\|LIBRARY\)\([[	 ]].*\)*$/DEF/p'\'' dnl
       
  3844     -e q dnl                          Only consider the first "real" line
       
  3845     $1`" dnl
       
  3846 ])# _LT_DLL_DEF_P
  3555 
  3847 
  3556 
  3848 
  3557 # LT_LIB_M
  3849 # LT_LIB_M
  3558 # --------
  3850 # --------
  3559 # check for math library
  3851 # check for math library
  3563 case $host in
  3855 case $host in
  3564 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3856 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3565   # These system don't have libm, or don't need it
  3857   # These system don't have libm, or don't need it
  3566   ;;
  3858   ;;
  3567 *-ncr-sysv4.3*)
  3859 *-ncr-sysv4.3*)
  3568   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3860   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
  3569   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3861   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3570   ;;
  3862   ;;
  3571 *)
  3863 *)
  3572   AC_CHECK_LIB(m, cos, LIBM="-lm")
  3864   AC_CHECK_LIB(m, cos, LIBM=-lm)
  3573   ;;
  3865   ;;
  3574 esac
  3866 esac
  3575 AC_SUBST([LIBM])
  3867 AC_SUBST([LIBM])
  3576 ])# LT_LIB_M
  3868 ])# LT_LIB_M
  3577 
  3869 
  3586 m4_defun([_LT_COMPILER_NO_RTTI],
  3878 m4_defun([_LT_COMPILER_NO_RTTI],
  3587 [m4_require([_LT_TAG_COMPILER])dnl
  3879 [m4_require([_LT_TAG_COMPILER])dnl
  3588 
  3880 
  3589 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3881 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3590 
  3882 
  3591 if test "$GCC" = yes; then
  3883 if test yes = "$GCC"; then
  3592   case $cc_basename in
  3884   case $cc_basename in
  3593   nvcc*)
  3885   nvcc*)
  3594     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3886     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3595   *)
  3887   *)
  3596     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3888     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3638   ;;
  3930   ;;
  3639 cygwin* | mingw* | pw32* | cegcc*)
  3931 cygwin* | mingw* | pw32* | cegcc*)
  3640   symcode='[[ABCDGISTW]]'
  3932   symcode='[[ABCDGISTW]]'
  3641   ;;
  3933   ;;
  3642 hpux*)
  3934 hpux*)
  3643   if test "$host_cpu" = ia64; then
  3935   if test ia64 = "$host_cpu"; then
  3644     symcode='[[ABCDEGRST]]'
  3936     symcode='[[ABCDEGRST]]'
  3645   fi
  3937   fi
  3646   ;;
  3938   ;;
  3647 irix* | nonstopux*)
  3939 irix* | nonstopux*)
  3648   symcode='[[BCDEGRST]]'
  3940   symcode='[[BCDEGRST]]'
  3671 case `$NM -V 2>&1` in
  3963 case `$NM -V 2>&1` in
  3672 *GNU* | *'with BFD'*)
  3964 *GNU* | *'with BFD'*)
  3673   symcode='[[ABCDGIRSTW]]' ;;
  3965   symcode='[[ABCDGIRSTW]]' ;;
  3674 esac
  3966 esac
  3675 
  3967 
       
  3968 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
       
  3969   # Gets list of data symbols to import.
       
  3970   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
       
  3971   # Adjust the below global symbol transforms to fixup imported variables.
       
  3972   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
       
  3973   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
       
  3974   lt_c_name_lib_hook="\
       
  3975   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
       
  3976   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
       
  3977 else
       
  3978   # Disable hooks by default.
       
  3979   lt_cv_sys_global_symbol_to_import=
       
  3980   lt_cdecl_hook=
       
  3981   lt_c_name_hook=
       
  3982   lt_c_name_lib_hook=
       
  3983 fi
       
  3984 
  3676 # Transform an extracted symbol line into a proper C declaration.
  3985 # Transform an extracted symbol line into a proper C declaration.
  3677 # Some systems (esp. on ia64) link data and code symbols differently,
  3986 # Some systems (esp. on ia64) link data and code symbols differently,
  3678 # so use this general approach.
  3987 # so use this general approach.
  3679 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3988 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
       
  3989 $lt_cdecl_hook\
       
  3990 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
       
  3991 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  3680 
  3992 
  3681 # Transform an extracted symbol line into symbol name and symbol address
  3993 # Transform an extracted symbol line into symbol name and symbol address
  3682 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
  3994 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  3683 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
  3995 $lt_c_name_hook\
       
  3996 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
       
  3997 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
       
  3998 
       
  3999 # Transform an extracted symbol line into symbol name with lib prefix and
       
  4000 # symbol address.
       
  4001 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
       
  4002 $lt_c_name_lib_hook\
       
  4003 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
       
  4004 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
       
  4005 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
  3684 
  4006 
  3685 # Handle CRLF in mingw tool chain
  4007 # Handle CRLF in mingw tool chain
  3686 opt_cr=
  4008 opt_cr=
  3687 case $build_os in
  4009 case $build_os in
  3688 mingw*)
  4010 mingw*)
  3696   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4018   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3697   symxfrm="\\1 $ac_symprfx\\2 \\2"
  4019   symxfrm="\\1 $ac_symprfx\\2 \\2"
  3698 
  4020 
  3699   # Write the raw and C identifiers.
  4021   # Write the raw and C identifiers.
  3700   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4022   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3701     # Fake it for dumpbin and say T for any non-static function
  4023     # Fake it for dumpbin and say T for any non-static function,
  3702     # and D for any global variable.
  4024     # D for any global variable and I for any imported variable.
  3703     # Also find C++ and __fastcall symbols from MSVC++,
  4025     # Also find C++ and __fastcall symbols from MSVC++,
  3704     # which start with @ or ?.
  4026     # which start with @ or ?.
  3705     lt_cv_sys_global_symbol_pipe="$AWK ['"\
  4027     lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3706 "     {last_section=section; section=\$ 3};"\
  4028 "     {last_section=section; section=\$ 3};"\
  3707 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4029 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3708 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4030 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
       
  4031 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
       
  4032 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
       
  4033 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  3709 "     \$ 0!~/External *\|/{next};"\
  4034 "     \$ 0!~/External *\|/{next};"\
  3710 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4035 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3711 "     {if(hide[section]) next};"\
  4036 "     {if(hide[section]) next};"\
  3712 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4037 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  3713 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4038 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  3714 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4039 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  3715 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4040 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  3716 "     ' prfx=^$ac_symprfx]"
  4041 "     ' prfx=^$ac_symprfx]"
  3717   else
  4042   else
  3718     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4043     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3719   fi
  4044   fi
  3720   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4045   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3750       # Make sure that we snagged all the symbols we need.
  4075       # Make sure that we snagged all the symbols we need.
  3751       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4076       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3752 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4077 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3753 	  cat <<_LT_EOF > conftest.$ac_ext
  4078 	  cat <<_LT_EOF > conftest.$ac_ext
  3754 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  4079 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  3755 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  4080 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  3756 /* DATA imports from DLLs on WIN32 con't be const, because runtime
  4081 /* DATA imports from DLLs on WIN32 can't be const, because runtime
  3757    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  4082    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  3758 # define LT@&t@_DLSYM_CONST
  4083 # define LT@&t@_DLSYM_CONST
  3759 #elif defined(__osf__)
  4084 #elif defined __osf__
  3760 /* This system does not cope well with relocations in const data.  */
  4085 /* This system does not cope well with relocations in const data.  */
  3761 # define LT@&t@_DLSYM_CONST
  4086 # define LT@&t@_DLSYM_CONST
  3762 #else
  4087 #else
  3763 # define LT@&t@_DLSYM_CONST const
  4088 # define LT@&t@_DLSYM_CONST const
  3764 #endif
  4089 #endif
  3780 }
  4105 }
  3781 lt__PROGRAM__LTX_preloaded_symbols[[]] =
  4106 lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3782 {
  4107 {
  3783   { "@PROGRAM@", (void *) 0 },
  4108   { "@PROGRAM@", (void *) 0 },
  3784 _LT_EOF
  4109 _LT_EOF
  3785 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4110 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3786 	  cat <<\_LT_EOF >> conftest.$ac_ext
  4111 	  cat <<\_LT_EOF >> conftest.$ac_ext
  3787   {0, (void *) 0}
  4112   {0, (void *) 0}
  3788 };
  4113 };
  3789 
  4114 
  3790 /* This works around a problem in FreeBSD linker */
  4115 /* This works around a problem in FreeBSD linker */
  3800 _LT_EOF
  4125 _LT_EOF
  3801 	  # Now try linking the two files.
  4126 	  # Now try linking the two files.
  3802 	  mv conftest.$ac_objext conftstm.$ac_objext
  4127 	  mv conftest.$ac_objext conftstm.$ac_objext
  3803 	  lt_globsym_save_LIBS=$LIBS
  4128 	  lt_globsym_save_LIBS=$LIBS
  3804 	  lt_globsym_save_CFLAGS=$CFLAGS
  4129 	  lt_globsym_save_CFLAGS=$CFLAGS
  3805 	  LIBS="conftstm.$ac_objext"
  4130 	  LIBS=conftstm.$ac_objext
  3806 	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4131 	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3807 	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  4132 	  if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  3808 	    pipe_works=yes
  4133 	    pipe_works=yes
  3809 	  fi
  4134 	  fi
  3810 	  LIBS=$lt_globsym_save_LIBS
  4135 	  LIBS=$lt_globsym_save_LIBS
  3811 	  CFLAGS=$lt_globsym_save_CFLAGS
  4136 	  CFLAGS=$lt_globsym_save_CFLAGS
  3812 	else
  4137 	else
  3823     cat conftest.$ac_ext >&5
  4148     cat conftest.$ac_ext >&5
  3824   fi
  4149   fi
  3825   rm -rf conftest* conftst*
  4150   rm -rf conftest* conftst*
  3826 
  4151 
  3827   # Do not use the global_symbol_pipe unless it works.
  4152   # Do not use the global_symbol_pipe unless it works.
  3828   if test "$pipe_works" = yes; then
  4153   if test yes = "$pipe_works"; then
  3829     break
  4154     break
  3830   else
  4155   else
  3831     lt_cv_sys_global_symbol_pipe=
  4156     lt_cv_sys_global_symbol_pipe=
  3832   fi
  4157   fi
  3833 done
  4158 done
  3850 
  4175 
  3851 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  4176 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3852     [Take the output of nm and produce a listing of raw symbols and C names])
  4177     [Take the output of nm and produce a listing of raw symbols and C names])
  3853 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  4178 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3854     [Transform the output of nm in a proper C declaration])
  4179     [Transform the output of nm in a proper C declaration])
       
  4180 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
       
  4181     [Transform the output of nm into a list of symbols to manually relocate])
  3855 _LT_DECL([global_symbol_to_c_name_address],
  4182 _LT_DECL([global_symbol_to_c_name_address],
  3856     [lt_cv_sys_global_symbol_to_c_name_address], [1],
  4183     [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3857     [Transform the output of nm in a C name address pair])
  4184     [Transform the output of nm in a C name address pair])
  3858 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  4185 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3859     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  4186     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3860     [Transform the output of nm in a C name address pair when lib prefix is needed])
  4187     [Transform the output of nm in a C name address pair when lib prefix is needed])
       
  4188 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
       
  4189     [The name lister interface])
  3861 _LT_DECL([], [nm_file_list_spec], [1],
  4190 _LT_DECL([], [nm_file_list_spec], [1],
  3862     [Specify filename containing input files for $NM])
  4191     [Specify filename containing input files for $NM])
  3863 ]) # _LT_CMD_GLOBAL_SYMBOLS
  4192 ]) # _LT_CMD_GLOBAL_SYMBOLS
  3864 
  4193 
  3865 
  4194 
  3871 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4200 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3872 _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4201 _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3873 
  4202 
  3874 m4_if([$1], [CXX], [
  4203 m4_if([$1], [CXX], [
  3875   # C++ specific cases for pic, static, wl, etc.
  4204   # C++ specific cases for pic, static, wl, etc.
  3876   if test "$GXX" = yes; then
  4205   if test yes = "$GXX"; then
  3877     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4206     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3878     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4207     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3879 
  4208 
  3880     case $host_os in
  4209     case $host_os in
  3881     aix*)
  4210     aix*)
  3882       # All AIX code is PIC.
  4211       # All AIX code is PIC.
  3883       if test "$host_cpu" = ia64; then
  4212       if test ia64 = "$host_cpu"; then
  3884 	# AIX 5 now supports IA64 processor
  4213 	# AIX 5 now supports IA64 processor
  3885 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4214 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3886       fi
  4215       fi
       
  4216       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3887       ;;
  4217       ;;
  3888 
  4218 
  3889     amigaos*)
  4219     amigaos*)
  3890       case $host_cpu in
  4220       case $host_cpu in
  3891       powerpc)
  4221       powerpc)
  3892             # see comment about AmigaOS4 .so support
  4222             # see comment about AmigaOS4 .so support
  3893             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4223             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3894         ;;
  4224         ;;
  3895       m68k)
  4225       m68k)
  3896             # FIXME: we need at least 68020 code to build shared libraries, but
  4226             # FIXME: we need at least 68020 code to build shared libraries, but
  3897             # adding the `-m68020' flag to GCC prevents building anything better,
  4227             # adding the '-m68020' flag to GCC prevents building anything better,
  3898             # like `-m68040'.
  4228             # like '-m68040'.
  3899             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4229             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3900         ;;
  4230         ;;
  3901       esac
  4231       esac
  3902       ;;
  4232       ;;
  3903 
  4233 
  3909       # built for inclusion in a dll (and should export symbols for example).
  4239       # built for inclusion in a dll (and should export symbols for example).
  3910       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4240       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3911       # (--disable-auto-import) libraries
  4241       # (--disable-auto-import) libraries
  3912       m4_if([$1], [GCJ], [],
  4242       m4_if([$1], [GCJ], [],
  3913 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4243 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
       
  4244       case $host_os in
       
  4245       os2*)
       
  4246 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
       
  4247 	;;
       
  4248       esac
  3914       ;;
  4249       ;;
  3915     darwin* | rhapsody*)
  4250     darwin* | rhapsody*)
  3916       # PIC is the default on this platform
  4251       # PIC is the default on this platform
  3917       # Common symbols not allowed in MH_DYLIB files
  4252       # Common symbols not allowed in MH_DYLIB files
  3918       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4253       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3958     esac
  4293     esac
  3959   else
  4294   else
  3960     case $host_os in
  4295     case $host_os in
  3961       aix[[4-9]]*)
  4296       aix[[4-9]]*)
  3962 	# All AIX code is PIC.
  4297 	# All AIX code is PIC.
  3963 	if test "$host_cpu" = ia64; then
  4298 	if test ia64 = "$host_cpu"; then
  3964 	  # AIX 5 now supports IA64 processor
  4299 	  # AIX 5 now supports IA64 processor
  3965 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4300 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3966 	else
  4301 	else
  3967 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4302 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3968 	fi
  4303 	fi
  3999 	;;
  4334 	;;
  4000       hpux9* | hpux10* | hpux11*)
  4335       hpux9* | hpux10* | hpux11*)
  4001 	case $cc_basename in
  4336 	case $cc_basename in
  4002 	  CC*)
  4337 	  CC*)
  4003 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4338 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4004 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4339 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  4005 	    if test "$host_cpu" != ia64; then
  4340 	    if test ia64 != "$host_cpu"; then
  4006 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4341 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4007 	    fi
  4342 	    fi
  4008 	    ;;
  4343 	    ;;
  4009 	  aCC*)
  4344 	  aCC*)
  4010 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4345 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4011 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4346 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  4012 	    case $host_cpu in
  4347 	    case $host_cpu in
  4013 	    hppa*64*|ia64*)
  4348 	    hppa*64*|ia64*)
  4014 	      # +Z the default
  4349 	      # +Z the default
  4015 	      ;;
  4350 	      ;;
  4016 	    *)
  4351 	    *)
  4035 	    ;;
  4370 	    ;;
  4036 	  *)
  4371 	  *)
  4037 	    ;;
  4372 	    ;;
  4038 	esac
  4373 	esac
  4039 	;;
  4374 	;;
  4040       linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4375       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4041 	case $cc_basename in
  4376 	case $cc_basename in
  4042 	  KCC*)
  4377 	  KCC*)
  4043 	    # KAI C++ Compiler
  4378 	    # KAI C++ Compiler
  4044 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4379 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4045 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4380 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4046 	    ;;
  4381 	    ;;
  4047 	  ecpc* )
  4382 	  ecpc* )
  4048 	    # old Intel C++ for x86_64 which still supported -KPIC.
  4383 	    # old Intel C++ for x86_64, which still supported -KPIC.
  4049 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4384 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4050 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4385 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4051 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4386 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4052 	    ;;
  4387 	    ;;
  4053 	  icpc* )
  4388 	  icpc* )
  4099 	    ;;
  4434 	    ;;
  4100 	  *)
  4435 	  *)
  4101 	    ;;
  4436 	    ;;
  4102 	esac
  4437 	esac
  4103 	;;
  4438 	;;
  4104       netbsd*)
  4439       netbsd* | netbsdelf*-gnu)
  4105 	;;
  4440 	;;
  4106       *qnx* | *nto*)
  4441       *qnx* | *nto*)
  4107         # QNX uses GNU C++, but need to define -shared option too, otherwise
  4442         # QNX uses GNU C++, but need to define -shared option too, otherwise
  4108         # it will coredump.
  4443         # it will coredump.
  4109         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4444         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4188 	;;
  4523 	;;
  4189     esac
  4524     esac
  4190   fi
  4525   fi
  4191 ],
  4526 ],
  4192 [
  4527 [
  4193   if test "$GCC" = yes; then
  4528   if test yes = "$GCC"; then
  4194     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4529     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4195     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4530     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4196 
  4531 
  4197     case $host_os in
  4532     case $host_os in
  4198       aix*)
  4533       aix*)
  4199       # All AIX code is PIC.
  4534       # All AIX code is PIC.
  4200       if test "$host_cpu" = ia64; then
  4535       if test ia64 = "$host_cpu"; then
  4201 	# AIX 5 now supports IA64 processor
  4536 	# AIX 5 now supports IA64 processor
  4202 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4537 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4203       fi
  4538       fi
       
  4539       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4204       ;;
  4540       ;;
  4205 
  4541 
  4206     amigaos*)
  4542     amigaos*)
  4207       case $host_cpu in
  4543       case $host_cpu in
  4208       powerpc)
  4544       powerpc)
  4209             # see comment about AmigaOS4 .so support
  4545             # see comment about AmigaOS4 .so support
  4210             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4546             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4211         ;;
  4547         ;;
  4212       m68k)
  4548       m68k)
  4213             # FIXME: we need at least 68020 code to build shared libraries, but
  4549             # FIXME: we need at least 68020 code to build shared libraries, but
  4214             # adding the `-m68020' flag to GCC prevents building anything better,
  4550             # adding the '-m68020' flag to GCC prevents building anything better,
  4215             # like `-m68040'.
  4551             # like '-m68040'.
  4216             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4552             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4217         ;;
  4553         ;;
  4218       esac
  4554       esac
  4219       ;;
  4555       ;;
  4220 
  4556 
  4227       # built for inclusion in a dll (and should export symbols for example).
  4563       # built for inclusion in a dll (and should export symbols for example).
  4228       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4564       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4229       # (--disable-auto-import) libraries
  4565       # (--disable-auto-import) libraries
  4230       m4_if([$1], [GCJ], [],
  4566       m4_if([$1], [GCJ], [],
  4231 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4567 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
       
  4568       case $host_os in
       
  4569       os2*)
       
  4570 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
       
  4571 	;;
       
  4572       esac
  4232       ;;
  4573       ;;
  4233 
  4574 
  4234     darwin* | rhapsody*)
  4575     darwin* | rhapsody*)
  4235       # PIC is the default on this platform
  4576       # PIC is the default on this platform
  4236       # Common symbols not allowed in MH_DYLIB files
  4577       # Common symbols not allowed in MH_DYLIB files
  4297   else
  4638   else
  4298     # PORTME Check for flag to pass linker flags through the system compiler.
  4639     # PORTME Check for flag to pass linker flags through the system compiler.
  4299     case $host_os in
  4640     case $host_os in
  4300     aix*)
  4641     aix*)
  4301       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4642       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4302       if test "$host_cpu" = ia64; then
  4643       if test ia64 = "$host_cpu"; then
  4303 	# AIX 5 now supports IA64 processor
  4644 	# AIX 5 now supports IA64 processor
  4304 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4645 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4305       else
  4646       else
  4306 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4647 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4307       fi
  4648       fi
  4308       ;;
  4649       ;;
  4309 
  4650 
       
  4651     darwin* | rhapsody*)
       
  4652       # PIC is the default on this platform
       
  4653       # Common symbols not allowed in MH_DYLIB files
       
  4654       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
       
  4655       case $cc_basename in
       
  4656       nagfor*)
       
  4657         # NAG Fortran compiler
       
  4658         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
       
  4659         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
       
  4660         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
       
  4661         ;;
       
  4662       esac
       
  4663       ;;
       
  4664 
  4310     mingw* | cygwin* | pw32* | os2* | cegcc*)
  4665     mingw* | cygwin* | pw32* | os2* | cegcc*)
  4311       # This hack is so that the source file can tell whether it is being
  4666       # This hack is so that the source file can tell whether it is being
  4312       # built for inclusion in a dll (and should export symbols for example).
  4667       # built for inclusion in a dll (and should export symbols for example).
  4313       m4_if([$1], [GCJ], [],
  4668       m4_if([$1], [GCJ], [],
  4314 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4669 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
       
  4670       case $host_os in
       
  4671       os2*)
       
  4672 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
       
  4673 	;;
       
  4674       esac
  4315       ;;
  4675       ;;
  4316 
  4676 
  4317     hpux9* | hpux10* | hpux11*)
  4677     hpux9* | hpux10* | hpux11*)
  4318       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4678       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4319       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4325       *)
  4685       *)
  4326 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4686 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4327 	;;
  4687 	;;
  4328       esac
  4688       esac
  4329       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4689       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4330       _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4690       _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  4331       ;;
  4691       ;;
  4332 
  4692 
  4333     irix5* | irix6* | nonstopux*)
  4693     irix5* | irix6* | nonstopux*)
  4334       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4694       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4335       # PIC (with -KPIC) is the default.
  4695       # PIC (with -KPIC) is the default.
  4336       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4696       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4337       ;;
  4697       ;;
  4338 
  4698 
  4339     linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4699     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4340       case $cc_basename in
  4700       case $cc_basename in
  4341       # old Intel for x86_64 which still supported -KPIC.
  4701       # old Intel for x86_64, which still supported -KPIC.
  4342       ecc*)
  4702       ecc*)
  4343 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4703 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4344 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4704 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4345 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4705 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4346         ;;
  4706         ;;
  4360       nagfor*)
  4720       nagfor*)
  4361 	# NAG Fortran compiler
  4721 	# NAG Fortran compiler
  4362 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4722 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4363 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4723 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4364 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4724 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
       
  4725 	;;
       
  4726       tcc*)
       
  4727 	# Fabrice Bellard et al's Tiny C Compiler
       
  4728 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
       
  4729 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
       
  4730 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4365 	;;
  4731 	;;
  4366       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4732       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4367         # Portland Group compilers (*not* the Pentium gcc compiler,
  4733         # Portland Group compilers (*not* the Pentium gcc compiler,
  4368 	# which looks to be a dead project)
  4734 	# which looks to be a dead project)
  4369 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4735 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4458       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4824       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4459       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4825       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4460       ;;
  4826       ;;
  4461 
  4827 
  4462     sysv4*MP*)
  4828     sysv4*MP*)
  4463       if test -d /usr/nec ;then
  4829       if test -d /usr/nec; then
  4464 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4830 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4465 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4831 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4466       fi
  4832       fi
  4467       ;;
  4833       ;;
  4468 
  4834 
  4487       ;;
  4853       ;;
  4488     esac
  4854     esac
  4489   fi
  4855   fi
  4490 ])
  4856 ])
  4491 case $host_os in
  4857 case $host_os in
  4492   # For platforms which do not support PIC, -DPIC is meaningless:
  4858   # For platforms that do not support PIC, -DPIC is meaningless:
  4493   *djgpp*)
  4859   *djgpp*)
  4494     _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4860     _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4495     ;;
  4861     ;;
  4496   *)
  4862   *)
  4497     _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4863     _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4553   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4919   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4554   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4920   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4555   case $host_os in
  4921   case $host_os in
  4556   aix[[4-9]]*)
  4922   aix[[4-9]]*)
  4557     # If we're using GNU nm, then we don't want the "-C" option.
  4923     # If we're using GNU nm, then we don't want the "-C" option.
  4558     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4924     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  4559     # Also, AIX nm treats weak defined symbols like other global defined
  4925     # Without the "-l" option, or with the "-B" option, AIX nm treats
  4560     # symbols, whereas GNU nm marks them as "W".
  4926     # weak defined symbols like other global defined symbols, whereas
       
  4927     # GNU nm marks them as "W".
       
  4928     # While the 'weak' keyword is ignored in the Export File, we need
       
  4929     # it in the Import File for the 'aix-soname' feature, so we have
       
  4930     # to replace the "-B" option with "-P" for AIX nm.
  4561     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4931     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4562       _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 > $export_symbols'
  4932       _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  4563     else
  4933     else
  4564       _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4934       _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  4565     fi
  4935     fi
  4566     ;;
  4936     ;;
  4567   pw32*)
  4937   pw32*)
  4568     _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4938     _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
  4569     ;;
  4939     ;;
  4570   cygwin* | mingw* | cegcc*)
  4940   cygwin* | mingw* | cegcc*)
  4571     case $cc_basename in
  4941     case $cc_basename in
  4572     cl*)
  4942     cl*)
  4573       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4943       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4575     *)
  4945     *)
  4576       _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4946       _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4577       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4947       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4578       ;;
  4948       ;;
  4579     esac
  4949     esac
       
  4950     ;;
       
  4951   linux* | k*bsd*-gnu | gnu*)
       
  4952     _LT_TAGVAR(link_all_deplibs, $1)=no
  4580     ;;
  4953     ;;
  4581   *)
  4954   *)
  4582     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4955     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4583     ;;
  4956     ;;
  4584   esac
  4957   esac
  4609   _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4982   _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4610   # include_expsyms should be a list of space-separated symbols to be *always*
  4983   # include_expsyms should be a list of space-separated symbols to be *always*
  4611   # included in the symbol list
  4984   # included in the symbol list
  4612   _LT_TAGVAR(include_expsyms, $1)=
  4985   _LT_TAGVAR(include_expsyms, $1)=
  4613   # exclude_expsyms can be an extended regexp of symbols to exclude
  4986   # exclude_expsyms can be an extended regexp of symbols to exclude
  4614   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4987   # it will be wrapped by ' (' and ')$', so one must not match beginning or
  4615   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4988   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  4616   # as well as any symbol that contains `d'.
  4989   # as well as any symbol that contains 'd'.
  4617   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4990   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4618   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4991   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4619   # platforms (ab)use it in PIC code, but their linkers get confused if
  4992   # platforms (ab)use it in PIC code, but their linkers get confused if
  4620   # the symbol is explicitly referenced.  Since portable code cannot
  4993   # the symbol is explicitly referenced.  Since portable code cannot
  4621   # rely on this symbol name, it's probably fine to never include it in
  4994   # rely on this symbol name, it's probably fine to never include it in
  4627   case $host_os in
  5000   case $host_os in
  4628   cygwin* | mingw* | pw32* | cegcc*)
  5001   cygwin* | mingw* | pw32* | cegcc*)
  4629     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5002     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4630     # When not using gcc, we currently assume that we are using
  5003     # When not using gcc, we currently assume that we are using
  4631     # Microsoft Visual C++.
  5004     # Microsoft Visual C++.
  4632     if test "$GCC" != yes; then
  5005     if test yes != "$GCC"; then
  4633       with_gnu_ld=no
  5006       with_gnu_ld=no
  4634     fi
  5007     fi
  4635     ;;
  5008     ;;
  4636   interix*)
  5009   interix*)
  4637     # we just hope/assume this is gcc and not c89 (= MSVC++)
  5010     # we just hope/assume this is gcc and not c89 (= MSVC++)
  4638     with_gnu_ld=yes
  5011     with_gnu_ld=yes
  4639     ;;
  5012     ;;
  4640   openbsd*)
  5013   openbsd* | bitrig*)
  4641     with_gnu_ld=no
  5014     with_gnu_ld=no
       
  5015     ;;
       
  5016   linux* | k*bsd*-gnu | gnu*)
       
  5017     _LT_TAGVAR(link_all_deplibs, $1)=no
  4642     ;;
  5018     ;;
  4643   esac
  5019   esac
  4644 
  5020 
  4645   _LT_TAGVAR(ld_shlibs, $1)=yes
  5021   _LT_TAGVAR(ld_shlibs, $1)=yes
  4646 
  5022 
  4647   # On some targets, GNU ld is compatible enough with the native linker
  5023   # On some targets, GNU ld is compatible enough with the native linker
  4648   # that we're better off using the native interface for both.
  5024   # that we're better off using the native interface for both.
  4649   lt_use_gnu_ld_interface=no
  5025   lt_use_gnu_ld_interface=no
  4650   if test "$with_gnu_ld" = yes; then
  5026   if test yes = "$with_gnu_ld"; then
  4651     case $host_os in
  5027     case $host_os in
  4652       aix*)
  5028       aix*)
  4653 	# The AIX port of GNU ld has always aspired to compatibility
  5029 	# The AIX port of GNU ld has always aspired to compatibility
  4654 	# with the native linker.  However, as the warning in the GNU ld
  5030 	# with the native linker.  However, as the warning in the GNU ld
  4655 	# block says, versions before 2.19.5* couldn't really create working
  5031 	# block says, versions before 2.19.5* couldn't really create working
  4667 	lt_use_gnu_ld_interface=yes
  5043 	lt_use_gnu_ld_interface=yes
  4668 	;;
  5044 	;;
  4669     esac
  5045     esac
  4670   fi
  5046   fi
  4671 
  5047 
  4672   if test "$lt_use_gnu_ld_interface" = yes; then
  5048   if test yes = "$lt_use_gnu_ld_interface"; then
  4673     # If archive_cmds runs LD, not CC, wlarc should be empty
  5049     # If archive_cmds runs LD, not CC, wlarc should be empty
  4674     wlarc='${wl}'
  5050     wlarc='$wl'
  4675 
  5051 
  4676     # Set some defaults for GNU ld with shared library support. These
  5052     # Set some defaults for GNU ld with shared library support. These
  4677     # are reset later if shared libraries are not supported. Putting them
  5053     # are reset later if shared libraries are not supported. Putting them
  4678     # here allows them to be overridden if necessary.
  5054     # here allows them to be overridden if necessary.
  4679     runpath_var=LD_RUN_PATH
  5055     runpath_var=LD_RUN_PATH
  4680     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5056     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4681     _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5057     _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  4682     # ancient GNU ld didn't support --whole-archive et. al.
  5058     # ancient GNU ld didn't support --whole-archive et. al.
  4683     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  5059     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4684       _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5060       _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  4685     else
  5061     else
  4686       _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5062       _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4687     fi
  5063     fi
  4688     supports_anon_versioning=no
  5064     supports_anon_versioning=no
  4689     case `$LD -v 2>&1` in
  5065     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  4690       *GNU\ gold*) supports_anon_versioning=yes ;;
  5066       *GNU\ gold*) supports_anon_versioning=yes ;;
  4691       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5067       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4692       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5068       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4693       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5069       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4694       *\ 2.11.*) ;; # other 2.11 versions
  5070       *\ 2.11.*) ;; # other 2.11 versions
  4697 
  5073 
  4698     # See if GNU ld supports shared libraries.
  5074     # See if GNU ld supports shared libraries.
  4699     case $host_os in
  5075     case $host_os in
  4700     aix[[3-9]]*)
  5076     aix[[3-9]]*)
  4701       # On AIX/PPC, the GNU linker is very broken
  5077       # On AIX/PPC, the GNU linker is very broken
  4702       if test "$host_cpu" != ia64; then
  5078       if test ia64 != "$host_cpu"; then
  4703 	_LT_TAGVAR(ld_shlibs, $1)=no
  5079 	_LT_TAGVAR(ld_shlibs, $1)=no
  4704 	cat <<_LT_EOF 1>&2
  5080 	cat <<_LT_EOF 1>&2
  4705 
  5081 
  4706 *** Warning: the GNU linker, at least up to release 2.19, is reported
  5082 *** Warning: the GNU linker, at least up to release 2.19, is reported
  4707 *** to be unable to reliably create shared libraries on AIX.
  5083 *** to be unable to reliably create shared libraries on AIX.
  4716 
  5092 
  4717     amigaos*)
  5093     amigaos*)
  4718       case $host_cpu in
  5094       case $host_cpu in
  4719       powerpc)
  5095       powerpc)
  4720             # see comment about AmigaOS4 .so support
  5096             # see comment about AmigaOS4 .so support
  4721             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5097             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4722             _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5098             _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4723         ;;
  5099         ;;
  4724       m68k)
  5100       m68k)
  4725             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5101             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  4726             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5102             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4732     beos*)
  5108     beos*)
  4733       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5109       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4734 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5110 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4735 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5111 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4736 	# support --undefined.  This deserves some investigation.  FIXME
  5112 	# support --undefined.  This deserves some investigation.  FIXME
  4737 	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5113 	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4738       else
  5114       else
  4739 	_LT_TAGVAR(ld_shlibs, $1)=no
  5115 	_LT_TAGVAR(ld_shlibs, $1)=no
  4740       fi
  5116       fi
  4741       ;;
  5117       ;;
  4742 
  5118 
  4743     cygwin* | mingw* | pw32* | cegcc*)
  5119     cygwin* | mingw* | pw32* | cegcc*)
  4744       # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5120       # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4745       # as there is no search path for DLLs.
  5121       # as there is no search path for DLLs.
  4746       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5122       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4747       _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5123       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  4748       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5124       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4749       _LT_TAGVAR(always_export_symbols, $1)=no
  5125       _LT_TAGVAR(always_export_symbols, $1)=no
  4750       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5126       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4751       _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  5127       _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4752       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  5128       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4753 
  5129 
  4754       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5130       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4755         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5131         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4756 	# If the export-symbols file already is a .def file (1st line
  5132 	# If the export-symbols file already is a .def file, use it as
  4757 	# is EXPORTS), use it as is; otherwise, prepend...
  5133 	# is; otherwise, prepend EXPORTS...
  4758 	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5134 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  4759 	  cp $export_symbols $output_objdir/$soname.def;
  5135           cp $export_symbols $output_objdir/$soname.def;
  4760 	else
  5136         else
  4761 	  echo EXPORTS > $output_objdir/$soname.def;
  5137           echo EXPORTS > $output_objdir/$soname.def;
  4762 	  cat $export_symbols >> $output_objdir/$soname.def;
  5138           cat $export_symbols >> $output_objdir/$soname.def;
  4763 	fi~
  5139         fi~
  4764 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5140         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4765       else
  5141       else
  4766 	_LT_TAGVAR(ld_shlibs, $1)=no
  5142 	_LT_TAGVAR(ld_shlibs, $1)=no
  4767       fi
  5143       fi
  4768       ;;
  5144       ;;
  4769 
  5145 
  4770     haiku*)
  5146     haiku*)
  4771       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5147       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4772       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5148       _LT_TAGVAR(link_all_deplibs, $1)=yes
       
  5149       ;;
       
  5150 
       
  5151     os2*)
       
  5152       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
       
  5153       _LT_TAGVAR(hardcode_minus_L, $1)=yes
       
  5154       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
       
  5155       shrext_cmds=.dll
       
  5156       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
       
  5157 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
       
  5158 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
       
  5159 	$ECHO EXPORTS >> $output_objdir/$libname.def~
       
  5160 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
       
  5161 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
       
  5162 	emximp -o $lib $output_objdir/$libname.def'
       
  5163       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
       
  5164 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
       
  5165 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
       
  5166 	$ECHO EXPORTS >> $output_objdir/$libname.def~
       
  5167 	prefix_cmds="$SED"~
       
  5168 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
       
  5169 	  prefix_cmds="$prefix_cmds -e 1d";
       
  5170 	fi~
       
  5171 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
       
  5172 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
       
  5173 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
       
  5174 	emximp -o $lib $output_objdir/$libname.def'
       
  5175       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
       
  5176       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4773       ;;
  5177       ;;
  4774 
  5178 
  4775     interix[[3-9]]*)
  5179     interix[[3-9]]*)
  4776       _LT_TAGVAR(hardcode_direct, $1)=no
  5180       _LT_TAGVAR(hardcode_direct, $1)=no
  4777       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5181       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4778       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5182       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  4779       _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5183       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  4780       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5184       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4781       # Instead, shared libraries are loaded at an image base (0x10000000 by
  5185       # Instead, shared libraries are loaded at an image base (0x10000000 by
  4782       # default) and relocated if they conflict, which is a slow very memory
  5186       # default) and relocated if they conflict, which is a slow very memory
  4783       # consuming and fragmenting process.  To avoid this, we pick a random,
  5187       # consuming and fragmenting process.  To avoid this, we pick a random,
  4784       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5188       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4785       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  5189       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  4786       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5190       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4787       _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5191       _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4788       ;;
  5192       ;;
  4789 
  5193 
  4790     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  5194     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4791       tmp_diet=no
  5195       tmp_diet=no
  4792       if test "$host_os" = linux-dietlibc; then
  5196       if test linux-dietlibc = "$host_os"; then
  4793 	case $cc_basename in
  5197 	case $cc_basename in
  4794 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
  5198 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
  4795 	esac
  5199 	esac
  4796       fi
  5200       fi
  4797       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  5201       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4798 	 && test "$tmp_diet" = no
  5202 	 && test no = "$tmp_diet"
  4799       then
  5203       then
  4800 	tmp_addflag=' $pic_flag'
  5204 	tmp_addflag=' $pic_flag'
  4801 	tmp_sharedflag='-shared'
  5205 	tmp_sharedflag='-shared'
  4802 	case $cc_basename,$host_cpu in
  5206 	case $cc_basename,$host_cpu in
  4803         pgcc*)				# Portland Group C compiler
  5207         pgcc*)				# Portland Group C compiler
  4804 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5208 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  4805 	  tmp_addflag=' $pic_flag'
  5209 	  tmp_addflag=' $pic_flag'
  4806 	  ;;
  5210 	  ;;
  4807 	pgf77* | pgf90* | pgf95* | pgfortran*)
  5211 	pgf77* | pgf90* | pgf95* | pgfortran*)
  4808 					# Portland Group f77 and f90 compilers
  5212 					# Portland Group f77 and f90 compilers
  4809 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5213 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  4810 	  tmp_addflag=' $pic_flag -Mnomain' ;;
  5214 	  tmp_addflag=' $pic_flag -Mnomain' ;;
  4811 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
  5215 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
  4812 	  tmp_addflag=' -i_dynamic' ;;
  5216 	  tmp_addflag=' -i_dynamic' ;;
  4813 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  5217 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  4814 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
  5218 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
  4815 	ifc* | ifort*)			# Intel Fortran compiler
  5219 	ifc* | ifort*)			# Intel Fortran compiler
  4816 	  tmp_addflag=' -nofor_main' ;;
  5220 	  tmp_addflag=' -nofor_main' ;;
  4817 	lf95*)				# Lahey Fortran 8.1
  5221 	lf95*)				# Lahey Fortran 8.1
  4818 	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5222 	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4819 	  tmp_sharedflag='--shared' ;;
  5223 	  tmp_sharedflag='--shared' ;;
       
  5224         nagfor*)                        # NAGFOR 5.3
       
  5225           tmp_sharedflag='-Wl,-shared' ;;
  4820 	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  5226 	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4821 	  tmp_sharedflag='-qmkshrobj'
  5227 	  tmp_sharedflag='-qmkshrobj'
  4822 	  tmp_addflag= ;;
  5228 	  tmp_addflag= ;;
  4823 	nvcc*)	# Cuda Compiler Driver 2.2
  5229 	nvcc*)	# Cuda Compiler Driver 2.2
  4824 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5230 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  4825 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  5231 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  4826 	  ;;
  5232 	  ;;
  4827 	esac
  5233 	esac
  4828 	case `$CC -V 2>&1 | sed 5q` in
  5234 	case `$CC -V 2>&1 | sed 5q` in
  4829 	*Sun\ C*)			# Sun C 5.9
  5235 	*Sun\ C*)			# Sun C 5.9
  4830 	  _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_convenience\"` ${wl}--no-whole-archive'
  5236 	  _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_convenience\"` $wl--no-whole-archive'
  4831 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  5237 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  4832 	  tmp_sharedflag='-G' ;;
  5238 	  tmp_sharedflag='-G' ;;
  4833 	*Sun\ F*)			# Sun Fortran 8.3
  5239 	*Sun\ F*)			# Sun Fortran 8.3
  4834 	  tmp_sharedflag='-G' ;;
  5240 	  tmp_sharedflag='-G' ;;
  4835 	esac
  5241 	esac
  4836 	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5242 	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4837 
  5243 
  4838         if test "x$supports_anon_versioning" = xyes; then
  5244         if test yes = "$supports_anon_versioning"; then
  4839           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5245           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4840 	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5246             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4841 	    echo "local: *; };" >> $output_objdir/$libname.ver~
  5247             echo "local: *; };" >> $output_objdir/$libname.ver~
  4842 	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5248             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  4843         fi
  5249         fi
  4844 
  5250 
  4845 	case $cc_basename in
  5251 	case $cc_basename in
       
  5252 	tcc*)
       
  5253 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
       
  5254 	  ;;
  4846 	xlf* | bgf* | bgxlf* | mpixlf*)
  5255 	xlf* | bgf* | bgxlf* | mpixlf*)
  4847 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  5256 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4848 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  5257 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4849 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5258 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4850 	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  5259 	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4851 	  if test "x$supports_anon_versioning" = xyes; then
  5260 	  if test yes = "$supports_anon_versioning"; then
  4852 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5261 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4853 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5262               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4854 	      echo "local: *; };" >> $output_objdir/$libname.ver~
  5263               echo "local: *; };" >> $output_objdir/$libname.ver~
  4855 	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  5264               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4856 	  fi
  5265 	  fi
  4857 	  ;;
  5266 	  ;;
  4858 	esac
  5267 	esac
  4859       else
  5268       else
  4860         _LT_TAGVAR(ld_shlibs, $1)=no
  5269         _LT_TAGVAR(ld_shlibs, $1)=no
  4861       fi
  5270       fi
  4862       ;;
  5271       ;;
  4863 
  5272 
  4864     netbsd*)
  5273     netbsd* | netbsdelf*-gnu)
  4865       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5274       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4866 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5275 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4867 	wlarc=
  5276 	wlarc=
  4868       else
  5277       else
  4869 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5278 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4870 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5279 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4871       fi
  5280       fi
  4872       ;;
  5281       ;;
  4873 
  5282 
  4874     solaris*)
  5283     solaris*)
  4875       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  5284       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4883 *** your PATH or compiler configuration so that the native linker is
  5292 *** your PATH or compiler configuration so that the native linker is
  4884 *** used, and then restart.
  5293 *** used, and then restart.
  4885 
  5294 
  4886 _LT_EOF
  5295 _LT_EOF
  4887       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5296       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4888 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5297 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4889 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5298 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4890       else
  5299       else
  4891 	_LT_TAGVAR(ld_shlibs, $1)=no
  5300 	_LT_TAGVAR(ld_shlibs, $1)=no
  4892       fi
  5301       fi
  4893       ;;
  5302       ;;
  4894 
  5303 
  4896       case `$LD -v 2>&1` in
  5305       case `$LD -v 2>&1` in
  4897         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  5306         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4898 	_LT_TAGVAR(ld_shlibs, $1)=no
  5307 	_LT_TAGVAR(ld_shlibs, $1)=no
  4899 	cat <<_LT_EOF 1>&2
  5308 	cat <<_LT_EOF 1>&2
  4900 
  5309 
  4901 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  5310 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  4902 *** reliably create shared libraries on SCO systems.  Therefore, libtool
  5311 *** reliably create shared libraries on SCO systems.  Therefore, libtool
  4903 *** is disabling shared libraries support.  We urge you to upgrade GNU
  5312 *** is disabling shared libraries support.  We urge you to upgrade GNU
  4904 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  5313 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  4905 *** your PATH or compiler configuration so that the native linker is
  5314 *** your PATH or compiler configuration so that the native linker is
  4906 *** used, and then restart.
  5315 *** used, and then restart.
  4911 	  # For security reasons, it is highly recommended that you always
  5320 	  # For security reasons, it is highly recommended that you always
  4912 	  # use absolute paths for naming shared libraries, and exclude the
  5321 	  # use absolute paths for naming shared libraries, and exclude the
  4913 	  # DT_RUNPATH tag from executables and libraries.  But doing so
  5322 	  # DT_RUNPATH tag from executables and libraries.  But doing so
  4914 	  # requires that you compile everything twice, which is a pain.
  5323 	  # requires that you compile everything twice, which is a pain.
  4915 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5324 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4916 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5325 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4917 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5326 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4918 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5327 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4919 	  else
  5328 	  else
  4920 	    _LT_TAGVAR(ld_shlibs, $1)=no
  5329 	    _LT_TAGVAR(ld_shlibs, $1)=no
  4921 	  fi
  5330 	  fi
  4922 	;;
  5331 	;;
  4923       esac
  5332       esac
  4930       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5339       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4931       ;;
  5340       ;;
  4932 
  5341 
  4933     *)
  5342     *)
  4934       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5343       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4935 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5344 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4936 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5345 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4937       else
  5346       else
  4938 	_LT_TAGVAR(ld_shlibs, $1)=no
  5347 	_LT_TAGVAR(ld_shlibs, $1)=no
  4939       fi
  5348       fi
  4940       ;;
  5349       ;;
  4941     esac
  5350     esac
  4942 
  5351 
  4943     if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  5352     if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
  4944       runpath_var=
  5353       runpath_var=
  4945       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5354       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4946       _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5355       _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4947       _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5356       _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4948     fi
  5357     fi
  4954       _LT_TAGVAR(always_export_symbols, $1)=yes
  5363       _LT_TAGVAR(always_export_symbols, $1)=yes
  4955       _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  5364       _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  4956       # Note: this linker hardcodes the directories in LIBPATH if there
  5365       # Note: this linker hardcodes the directories in LIBPATH if there
  4957       # are no directories specified by -L.
  5366       # are no directories specified by -L.
  4958       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5367       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4959       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  5368       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  4960 	# Neither direct hardcoding nor static linking is supported with a
  5369 	# Neither direct hardcoding nor static linking is supported with a
  4961 	# broken collect2.
  5370 	# broken collect2.
  4962 	_LT_TAGVAR(hardcode_direct, $1)=unsupported
  5371 	_LT_TAGVAR(hardcode_direct, $1)=unsupported
  4963       fi
  5372       fi
  4964       ;;
  5373       ;;
  4965 
  5374 
  4966     aix[[4-9]]*)
  5375     aix[[4-9]]*)
  4967       if test "$host_cpu" = ia64; then
  5376       if test ia64 = "$host_cpu"; then
  4968 	# On IA64, the linker does run time linking by default, so we don't
  5377 	# On IA64, the linker does run time linking by default, so we don't
  4969 	# have to do anything special.
  5378 	# have to do anything special.
  4970 	aix_use_runtimelinking=no
  5379 	aix_use_runtimelinking=no
  4971 	exp_sym_flag='-Bexport'
  5380 	exp_sym_flag='-Bexport'
  4972 	no_entry_flag=""
  5381 	no_entry_flag=
  4973       else
  5382       else
  4974 	# If we're using GNU nm, then we don't want the "-C" option.
  5383 	# If we're using GNU nm, then we don't want the "-C" option.
  4975 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
  5384 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
  4976 	# Also, AIX nm treats weak defined symbols like other global
  5385 	# Without the "-l" option, or with the "-B" option, AIX nm treats
  4977 	# defined symbols, whereas GNU nm marks them as "W".
  5386 	# weak defined symbols like other global defined symbols, whereas
       
  5387 	# GNU nm marks them as "W".
       
  5388 	# While the 'weak' keyword is ignored in the Export File, we need
       
  5389 	# it in the Import File for the 'aix-soname' feature, so we have
       
  5390 	# to replace the "-B" option with "-P" for AIX nm.
  4978 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5391 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4979 	  _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 > $export_symbols'
  5392 	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  4980 	else
  5393 	else
  4981 	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5394 	  _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  4982 	fi
  5395 	fi
  4983 	aix_use_runtimelinking=no
  5396 	aix_use_runtimelinking=no
  4984 
  5397 
  4985 	# Test if we are trying to use run time linking or normal
  5398 	# Test if we are trying to use run time linking or normal
  4986 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5399 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4987 	# need to do runtime linking.
  5400 	# have runtime linking enabled, and use it for executables.
       
  5401 	# For shared libraries, we enable/disable runtime linking
       
  5402 	# depending on the kind of the shared library created -
       
  5403 	# when "with_aix_soname,aix_use_runtimelinking" is:
       
  5404 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
       
  5405 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
       
  5406 	#            lib.a           static archive
       
  5407 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
       
  5408 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
       
  5409 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
       
  5410 	#            lib.a(lib.so.V) shared, rtl:no
       
  5411 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
       
  5412 	#            lib.a           static archive
  4988 	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5413 	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4989 	  for ld_flag in $LDFLAGS; do
  5414 	  for ld_flag in $LDFLAGS; do
  4990 	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5415 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  4991 	    aix_use_runtimelinking=yes
  5416 	    aix_use_runtimelinking=yes
  4992 	    break
  5417 	    break
  4993 	  fi
  5418 	  fi
  4994 	  done
  5419 	  done
       
  5420 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
       
  5421 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
       
  5422 	    # so we don't have lib.a shared libs to link our executables.
       
  5423 	    # We have to force runtime linking in this case.
       
  5424 	    aix_use_runtimelinking=yes
       
  5425 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
       
  5426 	  fi
  4995 	  ;;
  5427 	  ;;
  4996 	esac
  5428 	esac
  4997 
  5429 
  4998 	exp_sym_flag='-bexport'
  5430 	exp_sym_flag='-bexport'
  4999 	no_entry_flag='-bnoentry'
  5431 	no_entry_flag='-bnoentry'
  5008       _LT_TAGVAR(archive_cmds, $1)=''
  5440       _LT_TAGVAR(archive_cmds, $1)=''
  5009       _LT_TAGVAR(hardcode_direct, $1)=yes
  5441       _LT_TAGVAR(hardcode_direct, $1)=yes
  5010       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5442       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5011       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5443       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5012       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5444       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5013       _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5445       _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  5014 
  5446       case $with_aix_soname,$aix_use_runtimelinking in
  5015       if test "$GCC" = yes; then
  5447       aix,*) ;; # traditional, no import file
       
  5448       svr4,* | *,yes) # use import file
       
  5449 	# The Import File defines what to hardcode.
       
  5450 	_LT_TAGVAR(hardcode_direct, $1)=no
       
  5451 	_LT_TAGVAR(hardcode_direct_absolute, $1)=no
       
  5452 	;;
       
  5453       esac
       
  5454 
       
  5455       if test yes = "$GCC"; then
  5016 	case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5456 	case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5017 	# We only want to do this on AIX 4.2 and lower, the check
  5457 	# We only want to do this on AIX 4.2 and lower, the check
  5018 	# below for broken collect2 doesn't work under 4.3+
  5458 	# below for broken collect2 doesn't work under 4.3+
  5019 	  collect2name=`${CC} -print-prog-name=collect2`
  5459 	  collect2name=`$CC -print-prog-name=collect2`
  5020 	  if test -f "$collect2name" &&
  5460 	  if test -f "$collect2name" &&
  5021 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5461 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5022 	  then
  5462 	  then
  5023 	  # We have reworked collect2
  5463 	  # We have reworked collect2
  5024 	  :
  5464 	  :
  5033 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5473 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5034 	  fi
  5474 	  fi
  5035 	  ;;
  5475 	  ;;
  5036 	esac
  5476 	esac
  5037 	shared_flag='-shared'
  5477 	shared_flag='-shared'
  5038 	if test "$aix_use_runtimelinking" = yes; then
  5478 	if test yes = "$aix_use_runtimelinking"; then
  5039 	  shared_flag="$shared_flag "'${wl}-G'
  5479 	  shared_flag="$shared_flag "'$wl-G'
  5040 	fi
  5480 	fi
       
  5481 	# Need to ensure runtime linking is disabled for the traditional
       
  5482 	# shared library, or the linker may eventually find shared libraries
       
  5483 	# /with/ Import File - we do not want to mix them.
       
  5484 	shared_flag_aix='-shared'
       
  5485 	shared_flag_svr4='-shared $wl-G'
  5041       else
  5486       else
  5042 	# not using gcc
  5487 	# not using gcc
  5043 	if test "$host_cpu" = ia64; then
  5488 	if test ia64 = "$host_cpu"; then
  5044 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5489 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5045 	# chokes on -Wl,-G. The following line is correct:
  5490 	# chokes on -Wl,-G. The following line is correct:
  5046 	  shared_flag='-G'
  5491 	  shared_flag='-G'
  5047 	else
  5492 	else
  5048 	  if test "$aix_use_runtimelinking" = yes; then
  5493 	  if test yes = "$aix_use_runtimelinking"; then
  5049 	    shared_flag='${wl}-G'
  5494 	    shared_flag='$wl-G'
  5050 	  else
  5495 	  else
  5051 	    shared_flag='${wl}-bM:SRE'
  5496 	    shared_flag='$wl-bM:SRE'
  5052 	  fi
  5497 	  fi
       
  5498 	  shared_flag_aix='$wl-bM:SRE'
       
  5499 	  shared_flag_svr4='$wl-G'
  5053 	fi
  5500 	fi
  5054       fi
  5501       fi
  5055 
  5502 
  5056       _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5503       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  5057       # It seems that -bexpall does not export symbols beginning with
  5504       # It seems that -bexpall does not export symbols beginning with
  5058       # underscore (_), so it is better to generate a list of symbols to export.
  5505       # underscore (_), so it is better to generate a list of symbols to export.
  5059       _LT_TAGVAR(always_export_symbols, $1)=yes
  5506       _LT_TAGVAR(always_export_symbols, $1)=yes
  5060       if test "$aix_use_runtimelinking" = yes; then
  5507       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  5061 	# Warning - without using the other runtime loading flags (-brtl),
  5508 	# Warning - without using the other runtime loading flags (-brtl),
  5062 	# -berok will link without error, but may produce a broken library.
  5509 	# -berok will link without error, but may produce a broken library.
  5063 	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5510 	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5064         # Determine the default libpath from the value encoded in an
  5511         # Determine the default libpath from the value encoded in an
  5065         # empty executable.
  5512         # empty executable.
  5066         _LT_SYS_MODULE_PATH_AIX([$1])
  5513         _LT_SYS_MODULE_PATH_AIX([$1])
  5067         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5514         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5068         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5515         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  5069       else
  5516       else
  5070 	if test "$host_cpu" = ia64; then
  5517 	if test ia64 = "$host_cpu"; then
  5071 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5518 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  5072 	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5519 	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5073 	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  5520 	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  5074 	else
  5521 	else
  5075 	 # Determine the default libpath from the value encoded in an
  5522 	 # Determine the default libpath from the value encoded in an
  5076 	 # empty executable.
  5523 	 # empty executable.
  5077 	 _LT_SYS_MODULE_PATH_AIX([$1])
  5524 	 _LT_SYS_MODULE_PATH_AIX([$1])
  5078 	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5525 	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5079 	  # Warning - without using the other run time loading flags,
  5526 	  # Warning - without using the other run time loading flags,
  5080 	  # -berok will link without error, but may produce a broken library.
  5527 	  # -berok will link without error, but may produce a broken library.
  5081 	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5528 	  _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  5082 	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5529 	  _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  5083 	  if test "$with_gnu_ld" = yes; then
  5530 	  if test yes = "$with_gnu_ld"; then
  5084 	    # We only use this code for GNU lds that support --whole-archive.
  5531 	    # We only use this code for GNU lds that support --whole-archive.
  5085 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5532 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  5086 	  else
  5533 	  else
  5087 	    # Exported symbols can be pulled into shared objects from archives
  5534 	    # Exported symbols can be pulled into shared objects from archives
  5088 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5535 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5089 	  fi
  5536 	  fi
  5090 	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5537 	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5091 	  # This is similar to how AIX traditionally builds its shared libraries.
  5538 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  5092 	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5539 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
       
  5540 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
       
  5541 	  if test svr4 != "$with_aix_soname"; then
       
  5542 	    # This is similar to how AIX traditionally builds its shared libraries.
       
  5543 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
       
  5544 	  fi
       
  5545 	  if test aix != "$with_aix_soname"; then
       
  5546 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
       
  5547 	  else
       
  5548 	    # used by -dlpreopen to get the symbols
       
  5549 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
       
  5550 	  fi
       
  5551 	  _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
  5093 	fi
  5552 	fi
  5094       fi
  5553       fi
  5095       ;;
  5554       ;;
  5096 
  5555 
  5097     amigaos*)
  5556     amigaos*)
  5098       case $host_cpu in
  5557       case $host_cpu in
  5099       powerpc)
  5558       powerpc)
  5100             # see comment about AmigaOS4 .so support
  5559             # see comment about AmigaOS4 .so support
  5101             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5560             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5102             _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5561             _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5103         ;;
  5562         ;;
  5104       m68k)
  5563       m68k)
  5105             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5564             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5106             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5565             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5126 	_LT_TAGVAR(always_export_symbols, $1)=yes
  5585 	_LT_TAGVAR(always_export_symbols, $1)=yes
  5127 	_LT_TAGVAR(file_list_spec, $1)='@'
  5586 	_LT_TAGVAR(file_list_spec, $1)='@'
  5128 	# Tell ltmain to make .lib files, not .a files.
  5587 	# Tell ltmain to make .lib files, not .a files.
  5129 	libext=lib
  5588 	libext=lib
  5130 	# Tell ltmain to make .dll files, not .so files.
  5589 	# Tell ltmain to make .dll files, not .so files.
  5131 	shrext_cmds=".dll"
  5590 	shrext_cmds=.dll
  5132 	# FIXME: Setting linknames here is a bad hack.
  5591 	# FIXME: Setting linknames here is a bad hack.
  5133 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5592 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  5134 	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5593 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  5135 	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5594             cp "$export_symbols" "$output_objdir/$soname.def";
  5136 	  else
  5595             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  5137 	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5596           else
  5138 	  fi~
  5597             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  5139 	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5598           fi~
  5140 	  linknames='
  5599           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
       
  5600           linknames='
  5141 	# The linker will not automatically build a static lib if we build a DLL.
  5601 	# The linker will not automatically build a static lib if we build a DLL.
  5142 	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5602 	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5143 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5603 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5144 	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  5604 	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  5145 	_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  5605 	_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  5146 	# Don't use ranlib
  5606 	# Don't use ranlib
  5147 	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5607 	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5148 	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5608 	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5149 	  lt_tool_outputfile="@TOOL_OUTPUT@"~
  5609           lt_tool_outputfile="@TOOL_OUTPUT@"~
  5150 	  case $lt_outputfile in
  5610           case $lt_outputfile in
  5151 	    *.exe|*.EXE) ;;
  5611             *.exe|*.EXE) ;;
  5152 	    *)
  5612             *)
  5153 	      lt_outputfile="$lt_outputfile.exe"
  5613               lt_outputfile=$lt_outputfile.exe
  5154 	      lt_tool_outputfile="$lt_tool_outputfile.exe"
  5614               lt_tool_outputfile=$lt_tool_outputfile.exe
  5155 	      ;;
  5615               ;;
  5156 	  esac~
  5616           esac~
  5157 	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5617           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  5158 	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5618             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5159 	    $RM "$lt_outputfile.manifest";
  5619             $RM "$lt_outputfile.manifest";
  5160 	  fi'
  5620           fi'
  5161 	;;
  5621 	;;
  5162       *)
  5622       *)
  5163 	# Assume MSVC wrapper
  5623 	# Assume MSVC wrapper
  5164 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5624 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5165 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5625 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5166 	# Tell ltmain to make .lib files, not .a files.
  5626 	# Tell ltmain to make .lib files, not .a files.
  5167 	libext=lib
  5627 	libext=lib
  5168 	# Tell ltmain to make .dll files, not .so files.
  5628 	# Tell ltmain to make .dll files, not .so files.
  5169 	shrext_cmds=".dll"
  5629 	shrext_cmds=.dll
  5170 	# FIXME: Setting linknames here is a bad hack.
  5630 	# FIXME: Setting linknames here is a bad hack.
  5171 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  5631 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  5172 	# The linker will automatically build a .lib file if we build a DLL.
  5632 	# The linker will automatically build a .lib file if we build a DLL.
  5173 	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5633 	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5174 	# FIXME: Should let the user specify the lib program.
  5634 	# FIXME: Should let the user specify the lib program.
  5214       _LT_TAGVAR(hardcode_direct, $1)=yes
  5674       _LT_TAGVAR(hardcode_direct, $1)=yes
  5215       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5675       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5216       ;;
  5676       ;;
  5217 
  5677 
  5218     hpux9*)
  5678     hpux9*)
  5219       if test "$GCC" = yes; then
  5679       if test yes = "$GCC"; then
  5220 	_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_objdir/$soname $lib'
  5680 	_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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  5221       else
  5681       else
  5222 	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5682 	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  5223       fi
  5683       fi
  5224       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5684       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5225       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5685       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5226       _LT_TAGVAR(hardcode_direct, $1)=yes
  5686       _LT_TAGVAR(hardcode_direct, $1)=yes
  5227 
  5687 
  5228       # hardcode_minus_L: Not really in the search PATH,
  5688       # hardcode_minus_L: Not really in the search PATH,
  5229       # but as the default location of the library.
  5689       # but as the default location of the library.
  5230       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5690       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5231       _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5691       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5232       ;;
  5692       ;;
  5233 
  5693 
  5234     hpux10*)
  5694     hpux10*)
  5235       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  5695       if test yes,no = "$GCC,$with_gnu_ld"; then
  5236 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5696 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5237       else
  5697       else
  5238 	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5698 	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5239       fi
  5699       fi
  5240       if test "$with_gnu_ld" = no; then
  5700       if test no = "$with_gnu_ld"; then
  5241 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5701 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5242 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5702 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5243 	_LT_TAGVAR(hardcode_direct, $1)=yes
  5703 	_LT_TAGVAR(hardcode_direct, $1)=yes
  5244 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5704 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5245 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5705 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5246 	# hardcode_minus_L: Not really in the search PATH,
  5706 	# hardcode_minus_L: Not really in the search PATH,
  5247 	# but as the default location of the library.
  5707 	# but as the default location of the library.
  5248 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
  5708 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
  5249       fi
  5709       fi
  5250       ;;
  5710       ;;
  5251 
  5711 
  5252     hpux11*)
  5712     hpux11*)
  5253       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  5713       if test yes,no = "$GCC,$with_gnu_ld"; then
  5254 	case $host_cpu in
  5714 	case $host_cpu in
  5255 	hppa*64*)
  5715 	hppa*64*)
  5256 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5716 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5257 	  ;;
  5717 	  ;;
  5258 	ia64*)
  5718 	ia64*)
  5259 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5719 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5260 	  ;;
  5720 	  ;;
  5261 	*)
  5721 	*)
  5262 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5722 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5263 	  ;;
  5723 	  ;;
  5264 	esac
  5724 	esac
  5265       else
  5725       else
  5266 	case $host_cpu in
  5726 	case $host_cpu in
  5267 	hppa*64*)
  5727 	hppa*64*)
  5268 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5728 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5269 	  ;;
  5729 	  ;;
  5270 	ia64*)
  5730 	ia64*)
  5271 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5731 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5272 	  ;;
  5732 	  ;;
  5273 	*)
  5733 	*)
  5274 	m4_if($1, [], [
  5734 	m4_if($1, [], [
  5275 	  # Older versions of the 11.00 compiler do not understand -b yet
  5735 	  # Older versions of the 11.00 compiler do not understand -b yet
  5276 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  5736 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  5277 	  _LT_LINKER_OPTION([if $CC understands -b],
  5737 	  _LT_LINKER_OPTION([if $CC understands -b],
  5278 	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  5738 	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  5279 	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  5739 	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  5280 	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  5740 	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  5281 	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  5741 	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  5282 	  ;;
  5742 	  ;;
  5283 	esac
  5743 	esac
  5284       fi
  5744       fi
  5285       if test "$with_gnu_ld" = no; then
  5745       if test no = "$with_gnu_ld"; then
  5286 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5746 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5287 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5747 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5288 
  5748 
  5289 	case $host_cpu in
  5749 	case $host_cpu in
  5290 	hppa*64*|ia64*)
  5750 	hppa*64*|ia64*)
  5291 	  _LT_TAGVAR(hardcode_direct, $1)=no
  5751 	  _LT_TAGVAR(hardcode_direct, $1)=no
  5292 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5752 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5293 	  ;;
  5753 	  ;;
  5294 	*)
  5754 	*)
  5295 	  _LT_TAGVAR(hardcode_direct, $1)=yes
  5755 	  _LT_TAGVAR(hardcode_direct, $1)=yes
  5296 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5756 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5297 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5757 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5298 
  5758 
  5299 	  # hardcode_minus_L: Not really in the search PATH,
  5759 	  # hardcode_minus_L: Not really in the search PATH,
  5300 	  # but as the default location of the library.
  5760 	  # but as the default location of the library.
  5301 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5761 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5302 	  ;;
  5762 	  ;;
  5303 	esac
  5763 	esac
  5304       fi
  5764       fi
  5305       ;;
  5765       ;;
  5306 
  5766 
  5307     irix5* | irix6* | nonstopux*)
  5767     irix5* | irix6* | nonstopux*)
  5308       if test "$GCC" = yes; then
  5768       if test yes = "$GCC"; then
  5309 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5769 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  5310 	# Try to use the -exported_symbol ld option, if it does not
  5770 	# Try to use the -exported_symbol ld option, if it does not
  5311 	# work, assume that -exports_file does not work either and
  5771 	# work, assume that -exports_file does not work either and
  5312 	# implicitly export all symbols.
  5772 	# implicitly export all symbols.
  5313 	# This should be the same for all languages, so no per-tag cache variable.
  5773 	# This should be the same for all languages, so no per-tag cache variable.
  5314 	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  5774 	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  5315 	  [lt_cv_irix_exported_symbol],
  5775 	  [lt_cv_irix_exported_symbol],
  5316 	  [save_LDFLAGS="$LDFLAGS"
  5776 	  [save_LDFLAGS=$LDFLAGS
  5317 	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  5777 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  5318 	   AC_LINK_IFELSE(
  5778 	   AC_LINK_IFELSE(
  5319 	     [AC_LANG_SOURCE(
  5779 	     [AC_LANG_SOURCE(
  5320 	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  5780 	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  5321 			      [C++], [[int foo (void) { return 0; }]],
  5781 			      [C++], [[int foo (void) { return 0; }]],
  5322 			      [Fortran 77], [[
  5782 			      [Fortran 77], [[
  5325 			      [Fortran], [[
  5785 			      [Fortran], [[
  5326       subroutine foo
  5786       subroutine foo
  5327       end]])])],
  5787       end]])])],
  5328 	      [lt_cv_irix_exported_symbol=yes],
  5788 	      [lt_cv_irix_exported_symbol=yes],
  5329 	      [lt_cv_irix_exported_symbol=no])
  5789 	      [lt_cv_irix_exported_symbol=no])
  5330            LDFLAGS="$save_LDFLAGS"])
  5790            LDFLAGS=$save_LDFLAGS])
  5331 	if test "$lt_cv_irix_exported_symbol" = yes; then
  5791 	if test yes = "$lt_cv_irix_exported_symbol"; then
  5332           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  5792           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  5333 	fi
  5793 	fi
       
  5794 	_LT_TAGVAR(link_all_deplibs, $1)=no
  5334       else
  5795       else
  5335 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5796 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  5336 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  5797 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  5337       fi
  5798       fi
  5338       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5799       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5339       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5800       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5340       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5801       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5341       _LT_TAGVAR(inherit_rpath, $1)=yes
  5802       _LT_TAGVAR(inherit_rpath, $1)=yes
  5342       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5803       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5343       ;;
  5804       ;;
  5344 
  5805 
  5345     netbsd*)
  5806     linux*)
       
  5807       case $cc_basename in
       
  5808       tcc*)
       
  5809 	# Fabrice Bellard et al's Tiny C Compiler
       
  5810 	_LT_TAGVAR(ld_shlibs, $1)=yes
       
  5811 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
       
  5812 	;;
       
  5813       esac
       
  5814       ;;
       
  5815 
       
  5816     netbsd* | netbsdelf*-gnu)
  5346       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5817       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5347 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  5818 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  5348       else
  5819       else
  5349 	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  5820 	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  5350       fi
  5821       fi
  5354       ;;
  5825       ;;
  5355 
  5826 
  5356     newsos6)
  5827     newsos6)
  5357       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5828       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5358       _LT_TAGVAR(hardcode_direct, $1)=yes
  5829       _LT_TAGVAR(hardcode_direct, $1)=yes
  5359       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5830       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5360       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5831       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5361       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5832       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5362       ;;
  5833       ;;
  5363 
  5834 
  5364     *nto* | *qnx*)
  5835     *nto* | *qnx*)
  5365       ;;
  5836       ;;
  5366 
  5837 
  5367     openbsd*)
  5838     openbsd* | bitrig*)
  5368       if test -f /usr/libexec/ld.so; then
  5839       if test -f /usr/libexec/ld.so; then
  5369 	_LT_TAGVAR(hardcode_direct, $1)=yes
  5840 	_LT_TAGVAR(hardcode_direct, $1)=yes
  5370 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5841 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5371 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5842 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5372 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5843 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5373 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5844 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5374 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  5845 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  5375 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5846 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5376 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5847 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5377 	else
  5848 	else
  5378 	  case $host_os in
  5849 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5379 	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  5850 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5380 	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
       
  5381 	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
       
  5382 	     ;;
       
  5383 	   *)
       
  5384 	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
       
  5385 	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
       
  5386 	     ;;
       
  5387 	  esac
       
  5388 	fi
  5851 	fi
  5389       else
  5852       else
  5390 	_LT_TAGVAR(ld_shlibs, $1)=no
  5853 	_LT_TAGVAR(ld_shlibs, $1)=no
  5391       fi
  5854       fi
  5392       ;;
  5855       ;;
  5393 
  5856 
  5394     os2*)
  5857     os2*)
  5395       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5858       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5396       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5859       _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5397       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5860       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5398       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  5861       shrext_cmds=.dll
  5399       _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5862       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
       
  5863 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
       
  5864 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
       
  5865 	$ECHO EXPORTS >> $output_objdir/$libname.def~
       
  5866 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
       
  5867 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
       
  5868 	emximp -o $lib $output_objdir/$libname.def'
       
  5869       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
       
  5870 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
       
  5871 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
       
  5872 	$ECHO EXPORTS >> $output_objdir/$libname.def~
       
  5873 	prefix_cmds="$SED"~
       
  5874 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
       
  5875 	  prefix_cmds="$prefix_cmds -e 1d";
       
  5876 	fi~
       
  5877 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
       
  5878 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
       
  5879 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
       
  5880 	emximp -o $lib $output_objdir/$libname.def'
       
  5881       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
       
  5882       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5400       ;;
  5883       ;;
  5401 
  5884 
  5402     osf3*)
  5885     osf3*)
  5403       if test "$GCC" = yes; then
  5886       if test yes = "$GCC"; then
  5404 	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5887 	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  5405 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5888 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  5406       else
  5889       else
  5407 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5890 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5408 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5891 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  5409       fi
  5892       fi
  5410       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5893       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5411       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5894       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5412       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5895       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5413       ;;
  5896       ;;
  5414 
  5897 
  5415     osf4* | osf5*)	# as osf3* with the addition of -msym flag
  5898     osf4* | osf5*)	# as osf3* with the addition of -msym flag
  5416       if test "$GCC" = yes; then
  5899       if test yes = "$GCC"; then
  5417 	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5900 	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  5418 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5901 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  5419 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5902 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5420       else
  5903       else
  5421 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5904 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5422 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5905 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  5423 	_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~
  5906 	_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~
  5424 	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  5907           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  5425 
  5908 
  5426 	# Both c and cxx compiler support -rpath directly
  5909 	# Both c and cxx compiler support -rpath directly
  5427 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5910 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5428       fi
  5911       fi
  5429       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5912       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5430       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5913       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5431       ;;
  5914       ;;
  5432 
  5915 
  5433     solaris*)
  5916     solaris*)
  5434       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  5917       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  5435       if test "$GCC" = yes; then
  5918       if test yes = "$GCC"; then
  5436 	wlarc='${wl}'
  5919 	wlarc='$wl'
  5437 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5920 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5438 	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5921 	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5439 	  $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'
  5922           $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'
  5440       else
  5923       else
  5441 	case `$CC -V 2>&1` in
  5924 	case `$CC -V 2>&1` in
  5442 	*"Compilers 5.0"*)
  5925 	*"Compilers 5.0"*)
  5443 	  wlarc=''
  5926 	  wlarc=''
  5444 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5927 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5445 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5928 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5446 	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5929             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5447 	  ;;
  5930 	  ;;
  5448 	*)
  5931 	*)
  5449 	  wlarc='${wl}'
  5932 	  wlarc='$wl'
  5450 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5933 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5451 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5934 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5452 	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5935             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5453 	  ;;
  5936 	  ;;
  5454 	esac
  5937 	esac
  5455       fi
  5938       fi
  5456       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5939       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5457       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5940       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5458       case $host_os in
  5941       case $host_os in
  5459       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5942       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5460       *)
  5943       *)
  5461 	# The compiler driver will combine and reorder linker options,
  5944 	# The compiler driver will combine and reorder linker options,
  5462 	# but understands `-z linker_flag'.  GCC discards it without `$wl',
  5945 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
  5463 	# but is careful enough not to reorder.
  5946 	# but is careful enough not to reorder.
  5464 	# Supported since Solaris 2.6 (maybe 2.5.1?)
  5947 	# Supported since Solaris 2.6 (maybe 2.5.1?)
  5465 	if test "$GCC" = yes; then
  5948 	if test yes = "$GCC"; then
  5466 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5949 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  5467 	else
  5950 	else
  5468 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5951 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5469 	fi
  5952 	fi
  5470 	;;
  5953 	;;
  5471       esac
  5954       esac
  5472       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5955       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5473       ;;
  5956       ;;
  5474 
  5957 
  5475     sunos4*)
  5958     sunos4*)
  5476       if test "x$host_vendor" = xsequent; then
  5959       if test sequent = "$host_vendor"; then
  5477 	# Use $CC to link under sequent, because it throws in some extra .o
  5960 	# Use $CC to link under sequent, because it throws in some extra .o
  5478 	# files that make .init and .fini sections work.
  5961 	# files that make .init and .fini sections work.
  5479 	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5962 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5480       else
  5963       else
  5481 	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5964 	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5482       fi
  5965       fi
  5483       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5966       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5484       _LT_TAGVAR(hardcode_direct, $1)=yes
  5967       _LT_TAGVAR(hardcode_direct, $1)=yes
  5523 	_LT_TAGVAR(ld_shlibs, $1)=yes
  6006 	_LT_TAGVAR(ld_shlibs, $1)=yes
  5524       fi
  6007       fi
  5525       ;;
  6008       ;;
  5526 
  6009 
  5527     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6010     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5528       _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6011       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  5529       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6012       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5530       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6013       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5531       runpath_var='LD_RUN_PATH'
  6014       runpath_var='LD_RUN_PATH'
  5532 
  6015 
  5533       if test "$GCC" = yes; then
  6016       if test yes = "$GCC"; then
  5534 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6017 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5535 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6018 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5536       else
  6019       else
  5537 	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6020 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5538 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6021 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5539       fi
  6022       fi
  5540       ;;
  6023       ;;
  5541 
  6024 
  5542     sysv5* | sco3.2v5* | sco5v6*)
  6025     sysv5* | sco3.2v5* | sco5v6*)
  5543       # Note: We can NOT use -z defs as we might desire, because we do not
  6026       # Note: We CANNOT use -z defs as we might desire, because we do not
  5544       # link with -lc, and that would cause any symbols used from libc to
  6027       # link with -lc, and that would cause any symbols used from libc to
  5545       # always be unresolved, which means just about no library would
  6028       # always be unresolved, which means just about no library would
  5546       # ever link correctly.  If we're not using GNU ld we use -z text
  6029       # ever link correctly.  If we're not using GNU ld we use -z text
  5547       # though, which does catch some bad symbols but isn't as heavy-handed
  6030       # though, which does catch some bad symbols but isn't as heavy-handed
  5548       # as -z defs.
  6031       # as -z defs.
  5549       _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6032       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  5550       _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6033       _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  5551       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6034       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5552       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6035       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5553       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6036       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  5554       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6037       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5555       _LT_TAGVAR(link_all_deplibs, $1)=yes
  6038       _LT_TAGVAR(link_all_deplibs, $1)=yes
  5556       _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6039       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  5557       runpath_var='LD_RUN_PATH'
  6040       runpath_var='LD_RUN_PATH'
  5558 
  6041 
  5559       if test "$GCC" = yes; then
  6042       if test yes = "$GCC"; then
  5560 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6043 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5561 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6044 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5562       else
  6045       else
  5563 	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6046 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5564 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6047 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5565       fi
  6048       fi
  5566       ;;
  6049       ;;
  5567 
  6050 
  5568     uts4*)
  6051     uts4*)
  5569       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6052       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5574     *)
  6057     *)
  5575       _LT_TAGVAR(ld_shlibs, $1)=no
  6058       _LT_TAGVAR(ld_shlibs, $1)=no
  5576       ;;
  6059       ;;
  5577     esac
  6060     esac
  5578 
  6061 
  5579     if test x$host_vendor = xsni; then
  6062     if test sni = "$host_vendor"; then
  5580       case $host in
  6063       case $host in
  5581       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6064       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5582 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  6065 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
  5583 	;;
  6066 	;;
  5584       esac
  6067       esac
  5585     fi
  6068     fi
  5586   fi
  6069   fi
  5587 ])
  6070 ])
  5588 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6071 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5589 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6072 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  5590 
  6073 
  5591 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  6074 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5592 
  6075 
  5593 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  6076 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5594 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  6077 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5601 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  6084 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5602 x|xyes)
  6085 x|xyes)
  5603   # Assume -lc should be added
  6086   # Assume -lc should be added
  5604   _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6087   _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5605 
  6088 
  5606   if test "$enable_shared" = yes && test "$GCC" = yes; then
  6089   if test yes,yes = "$GCC,$enable_shared"; then
  5607     case $_LT_TAGVAR(archive_cmds, $1) in
  6090     case $_LT_TAGVAR(archive_cmds, $1) in
  5608     *'~'*)
  6091     *'~'*)
  5609       # FIXME: we may have to deal with multi-command sequences.
  6092       # FIXME: we may have to deal with multi-command sequences.
  5610       ;;
  6093       ;;
  5611     '$CC '*)
  6094     '$CC '*)
  5681     [Flag to hardcode $libdir into a binary during linking.
  6164     [Flag to hardcode $libdir into a binary during linking.
  5682     This must work even if $libdir does not exist])
  6165     This must work even if $libdir does not exist])
  5683 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  6166 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5684     [Whether we need a single "-rpath" flag with a separated argument])
  6167     [Whether we need a single "-rpath" flag with a separated argument])
  5685 _LT_TAGDECL([], [hardcode_direct], [0],
  6168 _LT_TAGDECL([], [hardcode_direct], [0],
  5686     [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6169     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  5687     DIR into the resulting binary])
  6170     DIR into the resulting binary])
  5688 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  6171 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5689     [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6172     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  5690     DIR into the resulting binary and the resulting library dependency is
  6173     DIR into the resulting binary and the resulting library dependency is
  5691     "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  6174     "absolute", i.e impossible to change by setting $shlibpath_var if the
  5692     library is relocated])
  6175     library is relocated])
  5693 _LT_TAGDECL([], [hardcode_minus_L], [0],
  6176 _LT_TAGDECL([], [hardcode_minus_L], [0],
  5694     [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  6177     [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5695     into the resulting binary])
  6178     into the resulting binary])
  5696 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  6179 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5727 
  6210 
  5728 # _LT_LANG_C_CONFIG([TAG])
  6211 # _LT_LANG_C_CONFIG([TAG])
  5729 # ------------------------
  6212 # ------------------------
  5730 # Ensure that the configuration variables for a C compiler are suitably
  6213 # Ensure that the configuration variables for a C compiler are suitably
  5731 # defined.  These variables are subsequently used by _LT_CONFIG to write
  6214 # defined.  These variables are subsequently used by _LT_CONFIG to write
  5732 # the compiler configuration to `libtool'.
  6215 # the compiler configuration to 'libtool'.
  5733 m4_defun([_LT_LANG_C_CONFIG],
  6216 m4_defun([_LT_LANG_C_CONFIG],
  5734 [m4_require([_LT_DECL_EGREP])dnl
  6217 [m4_require([_LT_DECL_EGREP])dnl
  5735 lt_save_CC="$CC"
  6218 lt_save_CC=$CC
  5736 AC_LANG_PUSH(C)
  6219 AC_LANG_PUSH(C)
  5737 
  6220 
  5738 # Source file extension for C test sources.
  6221 # Source file extension for C test sources.
  5739 ac_ext=c
  6222 ac_ext=c
  5740 
  6223 
  5770   _LT_SYS_DYNAMIC_LINKER($1)
  6253   _LT_SYS_DYNAMIC_LINKER($1)
  5771   _LT_LINKER_HARDCODE_LIBPATH($1)
  6254   _LT_LINKER_HARDCODE_LIBPATH($1)
  5772   LT_SYS_DLOPEN_SELF
  6255   LT_SYS_DLOPEN_SELF
  5773   _LT_CMD_STRIPLIB
  6256   _LT_CMD_STRIPLIB
  5774 
  6257 
  5775   # Report which library types will actually be built
  6258   # Report what library types will actually be built
  5776   AC_MSG_CHECKING([if libtool supports shared libraries])
  6259   AC_MSG_CHECKING([if libtool supports shared libraries])
  5777   AC_MSG_RESULT([$can_build_shared])
  6260   AC_MSG_RESULT([$can_build_shared])
  5778 
  6261 
  5779   AC_MSG_CHECKING([whether to build shared libraries])
  6262   AC_MSG_CHECKING([whether to build shared libraries])
  5780   test "$can_build_shared" = "no" && enable_shared=no
  6263   test no = "$can_build_shared" && enable_shared=no
  5781 
  6264 
  5782   # On AIX, shared libraries and static libraries use the same namespace, and
  6265   # On AIX, shared libraries and static libraries use the same namespace, and
  5783   # are all built from PIC.
  6266   # are all built from PIC.
  5784   case $host_os in
  6267   case $host_os in
  5785   aix3*)
  6268   aix3*)
  5786     test "$enable_shared" = yes && enable_static=no
  6269     test yes = "$enable_shared" && enable_static=no
  5787     if test -n "$RANLIB"; then
  6270     if test -n "$RANLIB"; then
  5788       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6271       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5789       postinstall_cmds='$RANLIB $lib'
  6272       postinstall_cmds='$RANLIB $lib'
  5790     fi
  6273     fi
  5791     ;;
  6274     ;;
  5792 
  6275 
  5793   aix[[4-9]]*)
  6276   aix[[4-9]]*)
  5794     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6277     if test ia64 != "$host_cpu"; then
  5795       test "$enable_shared" = yes && enable_static=no
  6278       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
       
  6279       yes,aix,yes) ;;			# shared object as lib.so file only
       
  6280       yes,svr4,*) ;;			# shared object as lib.so archive member only
       
  6281       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
       
  6282       esac
  5796     fi
  6283     fi
  5797     ;;
  6284     ;;
  5798   esac
  6285   esac
  5799   AC_MSG_RESULT([$enable_shared])
  6286   AC_MSG_RESULT([$enable_shared])
  5800 
  6287 
  5801   AC_MSG_CHECKING([whether to build static libraries])
  6288   AC_MSG_CHECKING([whether to build static libraries])
  5802   # Make sure either enable_shared or enable_static is yes.
  6289   # Make sure either enable_shared or enable_static is yes.
  5803   test "$enable_shared" = yes || enable_static=yes
  6290   test yes = "$enable_shared" || enable_static=yes
  5804   AC_MSG_RESULT([$enable_static])
  6291   AC_MSG_RESULT([$enable_static])
  5805 
  6292 
  5806   _LT_CONFIG($1)
  6293   _LT_CONFIG($1)
  5807 fi
  6294 fi
  5808 AC_LANG_POP
  6295 AC_LANG_POP
  5809 CC="$lt_save_CC"
  6296 CC=$lt_save_CC
  5810 ])# _LT_LANG_C_CONFIG
  6297 ])# _LT_LANG_C_CONFIG
  5811 
  6298 
  5812 
  6299 
  5813 # _LT_LANG_CXX_CONFIG([TAG])
  6300 # _LT_LANG_CXX_CONFIG([TAG])
  5814 # --------------------------
  6301 # --------------------------
  5815 # Ensure that the configuration variables for a C++ compiler are suitably
  6302 # Ensure that the configuration variables for a C++ compiler are suitably
  5816 # defined.  These variables are subsequently used by _LT_CONFIG to write
  6303 # defined.  These variables are subsequently used by _LT_CONFIG to write
  5817 # the compiler configuration to `libtool'.
  6304 # the compiler configuration to 'libtool'.
  5818 m4_defun([_LT_LANG_CXX_CONFIG],
  6305 m4_defun([_LT_LANG_CXX_CONFIG],
  5819 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6306 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5820 m4_require([_LT_DECL_EGREP])dnl
  6307 m4_require([_LT_DECL_EGREP])dnl
  5821 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  6308 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5822 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6309 if test -n "$CXX" && ( test no != "$CXX" &&
  5823     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6310     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  5824     (test "X$CXX" != "Xg++"))) ; then
  6311     (test g++ != "$CXX"))); then
  5825   AC_PROG_CXXCPP
  6312   AC_PROG_CXXCPP
  5826 else
  6313 else
  5827   _lt_caught_CXX_error=yes
  6314   _lt_caught_CXX_error=yes
  5828 fi
  6315 fi
  5829 
  6316 
  5861 
  6348 
  5862 # No sense in running all these tests if we already determined that
  6349 # No sense in running all these tests if we already determined that
  5863 # the CXX compiler isn't working.  Some variables (like enable_shared)
  6350 # the CXX compiler isn't working.  Some variables (like enable_shared)
  5864 # are currently assumed to apply to all compilers on this platform,
  6351 # are currently assumed to apply to all compilers on this platform,
  5865 # and will be corrupted by setting them based on a non-working compiler.
  6352 # and will be corrupted by setting them based on a non-working compiler.
  5866 if test "$_lt_caught_CXX_error" != yes; then
  6353 if test yes != "$_lt_caught_CXX_error"; then
  5867   # Code to be used in simple compile tests
  6354   # Code to be used in simple compile tests
  5868   lt_simple_compile_test_code="int some_variable = 0;"
  6355   lt_simple_compile_test_code="int some_variable = 0;"
  5869 
  6356 
  5870   # Code to be used in simple link tests
  6357   # Code to be used in simple link tests
  5871   lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  6358   lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5903   _LT_CC_BASENAME([$compiler])
  6390   _LT_CC_BASENAME([$compiler])
  5904 
  6391 
  5905   if test -n "$compiler"; then
  6392   if test -n "$compiler"; then
  5906     # We don't want -fno-exception when compiling C++ code, so set the
  6393     # We don't want -fno-exception when compiling C++ code, so set the
  5907     # no_builtin_flag separately
  6394     # no_builtin_flag separately
  5908     if test "$GXX" = yes; then
  6395     if test yes = "$GXX"; then
  5909       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6396       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5910     else
  6397     else
  5911       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6398       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5912     fi
  6399     fi
  5913 
  6400 
  5914     if test "$GXX" = yes; then
  6401     if test yes = "$GXX"; then
  5915       # Set up default GNU C++ configuration
  6402       # Set up default GNU C++ configuration
  5916 
  6403 
  5917       LT_PATH_LD
  6404       LT_PATH_LD
  5918 
  6405 
  5919       # Check if GNU C++ uses GNU ld as the underlying linker, since the
  6406       # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5920       # archiving commands below assume that GNU ld is being used.
  6407       # archiving commands below assume that GNU ld is being used.
  5921       if test "$with_gnu_ld" = yes; then
  6408       if test yes = "$with_gnu_ld"; then
  5922         _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6409         _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  5923         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6410         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  5924 
  6411 
  5925         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6412         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5926         _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6413         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  5927 
  6414 
  5928         # If archive_cmds runs LD, not CC, wlarc should be empty
  6415         # If archive_cmds runs LD, not CC, wlarc should be empty
  5929         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  6416         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5930         #     investigate it a little bit more. (MM)
  6417         #     investigate it a little bit more. (MM)
  5931         wlarc='${wl}'
  6418         wlarc='$wl'
  5932 
  6419 
  5933         # ancient GNU ld didn't support --whole-archive et. al.
  6420         # ancient GNU ld didn't support --whole-archive et. al.
  5934         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  6421         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5935 	  $GREP 'no-whole-archive' > /dev/null; then
  6422 	  $GREP 'no-whole-archive' > /dev/null; then
  5936           _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6423           _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  5937         else
  6424         else
  5938           _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6425           _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5939         fi
  6426         fi
  5940       else
  6427       else
  5941         with_gnu_ld=no
  6428         with_gnu_ld=no
  5967       aix3*)
  6454       aix3*)
  5968         # FIXME: insert proper C++ library support
  6455         # FIXME: insert proper C++ library support
  5969         _LT_TAGVAR(ld_shlibs, $1)=no
  6456         _LT_TAGVAR(ld_shlibs, $1)=no
  5970         ;;
  6457         ;;
  5971       aix[[4-9]]*)
  6458       aix[[4-9]]*)
  5972         if test "$host_cpu" = ia64; then
  6459         if test ia64 = "$host_cpu"; then
  5973           # On IA64, the linker does run time linking by default, so we don't
  6460           # On IA64, the linker does run time linking by default, so we don't
  5974           # have to do anything special.
  6461           # have to do anything special.
  5975           aix_use_runtimelinking=no
  6462           aix_use_runtimelinking=no
  5976           exp_sym_flag='-Bexport'
  6463           exp_sym_flag='-Bexport'
  5977           no_entry_flag=""
  6464           no_entry_flag=
  5978         else
  6465         else
  5979           aix_use_runtimelinking=no
  6466           aix_use_runtimelinking=no
  5980 
  6467 
  5981           # Test if we are trying to use run time linking or normal
  6468           # Test if we are trying to use run time linking or normal
  5982           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6469           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5983           # need to do runtime linking.
  6470           # have runtime linking enabled, and use it for executables.
       
  6471           # For shared libraries, we enable/disable runtime linking
       
  6472           # depending on the kind of the shared library created -
       
  6473           # when "with_aix_soname,aix_use_runtimelinking" is:
       
  6474           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
       
  6475           # "aix,yes"  lib.so          shared, rtl:yes, for executables
       
  6476           #            lib.a           static archive
       
  6477           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
       
  6478           #            lib.a(lib.so.V) shared, rtl:no,  for executables
       
  6479           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
       
  6480           #            lib.a(lib.so.V) shared, rtl:no
       
  6481           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
       
  6482           #            lib.a           static archive
  5984           case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  6483           case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5985 	    for ld_flag in $LDFLAGS; do
  6484 	    for ld_flag in $LDFLAGS; do
  5986 	      case $ld_flag in
  6485 	      case $ld_flag in
  5987 	      *-brtl*)
  6486 	      *-brtl*)
  5988 	        aix_use_runtimelinking=yes
  6487 	        aix_use_runtimelinking=yes
  5989 	        break
  6488 	        break
  5990 	        ;;
  6489 	        ;;
  5991 	      esac
  6490 	      esac
  5992 	    done
  6491 	    done
       
  6492 	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
       
  6493 	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
       
  6494 	      # so we don't have lib.a shared libs to link our executables.
       
  6495 	      # We have to force runtime linking in this case.
       
  6496 	      aix_use_runtimelinking=yes
       
  6497 	      LDFLAGS="$LDFLAGS -Wl,-brtl"
       
  6498 	    fi
  5993 	    ;;
  6499 	    ;;
  5994           esac
  6500           esac
  5995 
  6501 
  5996           exp_sym_flag='-bexport'
  6502           exp_sym_flag='-bexport'
  5997           no_entry_flag='-bnoentry'
  6503           no_entry_flag='-bnoentry'
  6006         _LT_TAGVAR(archive_cmds, $1)=''
  6512         _LT_TAGVAR(archive_cmds, $1)=''
  6007         _LT_TAGVAR(hardcode_direct, $1)=yes
  6513         _LT_TAGVAR(hardcode_direct, $1)=yes
  6008         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6514         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6009         _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6515         _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6010         _LT_TAGVAR(link_all_deplibs, $1)=yes
  6516         _LT_TAGVAR(link_all_deplibs, $1)=yes
  6011         _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6517         _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  6012 
  6518         case $with_aix_soname,$aix_use_runtimelinking in
  6013         if test "$GXX" = yes; then
  6519         aix,*) ;;	# no import file
       
  6520         svr4,* | *,yes) # use import file
       
  6521           # The Import File defines what to hardcode.
       
  6522           _LT_TAGVAR(hardcode_direct, $1)=no
       
  6523           _LT_TAGVAR(hardcode_direct_absolute, $1)=no
       
  6524           ;;
       
  6525         esac
       
  6526 
       
  6527         if test yes = "$GXX"; then
  6014           case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6528           case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6015           # We only want to do this on AIX 4.2 and lower, the check
  6529           # We only want to do this on AIX 4.2 and lower, the check
  6016           # below for broken collect2 doesn't work under 4.3+
  6530           # below for broken collect2 doesn't work under 4.3+
  6017 	  collect2name=`${CC} -print-prog-name=collect2`
  6531 	  collect2name=`$CC -print-prog-name=collect2`
  6018 	  if test -f "$collect2name" &&
  6532 	  if test -f "$collect2name" &&
  6019 	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6533 	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6020 	  then
  6534 	  then
  6021 	    # We have reworked collect2
  6535 	    # We have reworked collect2
  6022 	    :
  6536 	    :
  6030 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6544 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6031 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6545 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6032 	  fi
  6546 	  fi
  6033           esac
  6547           esac
  6034           shared_flag='-shared'
  6548           shared_flag='-shared'
  6035 	  if test "$aix_use_runtimelinking" = yes; then
  6549 	  if test yes = "$aix_use_runtimelinking"; then
  6036 	    shared_flag="$shared_flag "'${wl}-G'
  6550 	    shared_flag=$shared_flag' $wl-G'
  6037 	  fi
  6551 	  fi
       
  6552 	  # Need to ensure runtime linking is disabled for the traditional
       
  6553 	  # shared library, or the linker may eventually find shared libraries
       
  6554 	  # /with/ Import File - we do not want to mix them.
       
  6555 	  shared_flag_aix='-shared'
       
  6556 	  shared_flag_svr4='-shared $wl-G'
  6038         else
  6557         else
  6039           # not using gcc
  6558           # not using gcc
  6040           if test "$host_cpu" = ia64; then
  6559           if test ia64 = "$host_cpu"; then
  6041 	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6560 	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6042 	  # chokes on -Wl,-G. The following line is correct:
  6561 	  # chokes on -Wl,-G. The following line is correct:
  6043 	  shared_flag='-G'
  6562 	  shared_flag='-G'
  6044           else
  6563           else
  6045 	    if test "$aix_use_runtimelinking" = yes; then
  6564 	    if test yes = "$aix_use_runtimelinking"; then
  6046 	      shared_flag='${wl}-G'
  6565 	      shared_flag='$wl-G'
  6047 	    else
  6566 	    else
  6048 	      shared_flag='${wl}-bM:SRE'
  6567 	      shared_flag='$wl-bM:SRE'
  6049 	    fi
  6568 	    fi
       
  6569 	    shared_flag_aix='$wl-bM:SRE'
       
  6570 	    shared_flag_svr4='$wl-G'
  6050           fi
  6571           fi
  6051         fi
  6572         fi
  6052 
  6573 
  6053         _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6574         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  6054         # It seems that -bexpall does not export symbols beginning with
  6575         # It seems that -bexpall does not export symbols beginning with
  6055         # underscore (_), so it is better to generate a list of symbols to
  6576         # underscore (_), so it is better to generate a list of symbols to
  6056 	# export.
  6577 	# export.
  6057         _LT_TAGVAR(always_export_symbols, $1)=yes
  6578         _LT_TAGVAR(always_export_symbols, $1)=yes
  6058         if test "$aix_use_runtimelinking" = yes; then
  6579 	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  6059           # Warning - without using the other runtime loading flags (-brtl),
  6580           # Warning - without using the other runtime loading flags (-brtl),
  6060           # -berok will link without error, but may produce a broken library.
  6581           # -berok will link without error, but may produce a broken library.
  6061           _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6582           # The "-G" linker flag allows undefined symbols.
       
  6583           _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
  6062           # Determine the default libpath from the value encoded in an empty
  6584           # Determine the default libpath from the value encoded in an empty
  6063           # executable.
  6585           # executable.
  6064           _LT_SYS_MODULE_PATH_AIX([$1])
  6586           _LT_SYS_MODULE_PATH_AIX([$1])
  6065           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6587           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  6066 
  6588 
  6067           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6589           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  6068         else
  6590         else
  6069           if test "$host_cpu" = ia64; then
  6591           if test ia64 = "$host_cpu"; then
  6070 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6592 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  6071 	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6593 	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6072 	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  6594 	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  6073           else
  6595           else
  6074 	    # Determine the default libpath from the value encoded in an
  6596 	    # Determine the default libpath from the value encoded in an
  6075 	    # empty executable.
  6597 	    # empty executable.
  6076 	    _LT_SYS_MODULE_PATH_AIX([$1])
  6598 	    _LT_SYS_MODULE_PATH_AIX([$1])
  6077 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6599 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  6078 	    # Warning - without using the other run time loading flags,
  6600 	    # Warning - without using the other run time loading flags,
  6079 	    # -berok will link without error, but may produce a broken library.
  6601 	    # -berok will link without error, but may produce a broken library.
  6080 	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6602 	    _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  6081 	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6603 	    _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  6082 	    if test "$with_gnu_ld" = yes; then
  6604 	    if test yes = "$with_gnu_ld"; then
  6083 	      # We only use this code for GNU lds that support --whole-archive.
  6605 	      # We only use this code for GNU lds that support --whole-archive.
  6084 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  6606 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  6085 	    else
  6607 	    else
  6086 	      # Exported symbols can be pulled into shared objects from archives
  6608 	      # Exported symbols can be pulled into shared objects from archives
  6087 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6609 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6088 	    fi
  6610 	    fi
  6089 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6611 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6090 	    # This is similar to how AIX traditionally builds its shared
  6612 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  6091 	    # libraries.
  6613 	    # -brtl affects multiple linker settings, -berok does not and is overridden later
  6092 	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6614 	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
       
  6615 	    if test svr4 != "$with_aix_soname"; then
       
  6616 	      # This is similar to how AIX traditionally builds its shared
       
  6617 	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
       
  6618 	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
       
  6619 	    fi
       
  6620 	    if test aix != "$with_aix_soname"; then
       
  6621 	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
       
  6622 	    else
       
  6623 	      # used by -dlpreopen to get the symbols
       
  6624 	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
       
  6625 	    fi
       
  6626 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
  6093           fi
  6627           fi
  6094         fi
  6628         fi
  6095         ;;
  6629         ;;
  6096 
  6630 
  6097       beos*)
  6631       beos*)
  6098 	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6632 	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6099 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6633 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6100 	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6634 	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6101 	  # support --undefined.  This deserves some investigation.  FIXME
  6635 	  # support --undefined.  This deserves some investigation.  FIXME
  6102 	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6636 	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6103 	else
  6637 	else
  6104 	  _LT_TAGVAR(ld_shlibs, $1)=no
  6638 	  _LT_TAGVAR(ld_shlibs, $1)=no
  6105 	fi
  6639 	fi
  6106 	;;
  6640 	;;
  6107 
  6641 
  6125 	  _LT_TAGVAR(always_export_symbols, $1)=yes
  6659 	  _LT_TAGVAR(always_export_symbols, $1)=yes
  6126 	  _LT_TAGVAR(file_list_spec, $1)='@'
  6660 	  _LT_TAGVAR(file_list_spec, $1)='@'
  6127 	  # Tell ltmain to make .lib files, not .a files.
  6661 	  # Tell ltmain to make .lib files, not .a files.
  6128 	  libext=lib
  6662 	  libext=lib
  6129 	  # Tell ltmain to make .dll files, not .so files.
  6663 	  # Tell ltmain to make .dll files, not .so files.
  6130 	  shrext_cmds=".dll"
  6664 	  shrext_cmds=.dll
  6131 	  # FIXME: Setting linknames here is a bad hack.
  6665 	  # FIXME: Setting linknames here is a bad hack.
  6132 	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  6666 	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  6133 	  _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6667 	  _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  6134 	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  6668               cp "$export_symbols" "$output_objdir/$soname.def";
  6135 	    else
  6669               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  6136 	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  6670             else
  6137 	    fi~
  6671               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  6138 	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  6672             fi~
  6139 	    linknames='
  6673             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
       
  6674             linknames='
  6140 	  # The linker will not automatically build a static lib if we build a DLL.
  6675 	  # The linker will not automatically build a static lib if we build a DLL.
  6141 	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6676 	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6142 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6677 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6143 	  # Don't use ranlib
  6678 	  # Don't use ranlib
  6144 	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6679 	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6145 	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6680 	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6146 	    lt_tool_outputfile="@TOOL_OUTPUT@"~
  6681             lt_tool_outputfile="@TOOL_OUTPUT@"~
  6147 	    case $lt_outputfile in
  6682             case $lt_outputfile in
  6148 	      *.exe|*.EXE) ;;
  6683               *.exe|*.EXE) ;;
  6149 	      *)
  6684               *)
  6150 		lt_outputfile="$lt_outputfile.exe"
  6685                 lt_outputfile=$lt_outputfile.exe
  6151 		lt_tool_outputfile="$lt_tool_outputfile.exe"
  6686                 lt_tool_outputfile=$lt_tool_outputfile.exe
  6152 		;;
  6687                 ;;
  6153 	    esac~
  6688             esac~
  6154 	    func_to_tool_file "$lt_outputfile"~
  6689             func_to_tool_file "$lt_outputfile"~
  6155 	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  6690             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  6156 	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6691               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6157 	      $RM "$lt_outputfile.manifest";
  6692               $RM "$lt_outputfile.manifest";
  6158 	    fi'
  6693             fi'
  6159 	  ;;
  6694 	  ;;
  6160 	*)
  6695 	*)
  6161 	  # g++
  6696 	  # g++
  6162 	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6697 	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6163 	  # as there is no search path for DLLs.
  6698 	  # as there is no search path for DLLs.
  6164 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6699 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6165 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  6700 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  6166 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6701 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6167 	  _LT_TAGVAR(always_export_symbols, $1)=no
  6702 	  _LT_TAGVAR(always_export_symbols, $1)=no
  6168 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6703 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6169 
  6704 
  6170 	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6705 	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6171 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6706 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6172 	    # If the export-symbols file already is a .def file (1st line
  6707 	    # If the export-symbols file already is a .def file, use it as
  6173 	    # is EXPORTS), use it as is; otherwise, prepend...
  6708 	    # is; otherwise, prepend EXPORTS...
  6174 	    _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6709 	    _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  6175 	      cp $export_symbols $output_objdir/$soname.def;
  6710               cp $export_symbols $output_objdir/$soname.def;
  6176 	    else
  6711             else
  6177 	      echo EXPORTS > $output_objdir/$soname.def;
  6712               echo EXPORTS > $output_objdir/$soname.def;
  6178 	      cat $export_symbols >> $output_objdir/$soname.def;
  6713               cat $export_symbols >> $output_objdir/$soname.def;
  6179 	    fi~
  6714             fi~
  6180 	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6715             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6181 	  else
  6716 	  else
  6182 	    _LT_TAGVAR(ld_shlibs, $1)=no
  6717 	    _LT_TAGVAR(ld_shlibs, $1)=no
  6183 	  fi
  6718 	  fi
  6184 	  ;;
  6719 	  ;;
  6185 	esac
  6720 	esac
  6186 	;;
  6721 	;;
  6187       darwin* | rhapsody*)
  6722       darwin* | rhapsody*)
  6188         _LT_DARWIN_LINKER_FEATURES($1)
  6723         _LT_DARWIN_LINKER_FEATURES($1)
       
  6724 	;;
       
  6725 
       
  6726       os2*)
       
  6727 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
       
  6728 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
       
  6729 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
       
  6730 	shrext_cmds=.dll
       
  6731 	_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
       
  6732 	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
       
  6733 	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
       
  6734 	  $ECHO EXPORTS >> $output_objdir/$libname.def~
       
  6735 	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
       
  6736 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
       
  6737 	  emximp -o $lib $output_objdir/$libname.def'
       
  6738 	_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
       
  6739 	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
       
  6740 	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
       
  6741 	  $ECHO EXPORTS >> $output_objdir/$libname.def~
       
  6742 	  prefix_cmds="$SED"~
       
  6743 	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
       
  6744 	    prefix_cmds="$prefix_cmds -e 1d";
       
  6745 	  fi~
       
  6746 	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
       
  6747 	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
       
  6748 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
       
  6749 	  emximp -o $lib $output_objdir/$libname.def'
       
  6750 	_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
       
  6751 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6189 	;;
  6752 	;;
  6190 
  6753 
  6191       dgux*)
  6754       dgux*)
  6192         case $cc_basename in
  6755         case $cc_basename in
  6193           ec++*)
  6756           ec++*)
  6220         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  6783         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  6221         # conventions
  6784         # conventions
  6222         _LT_TAGVAR(ld_shlibs, $1)=yes
  6785         _LT_TAGVAR(ld_shlibs, $1)=yes
  6223         ;;
  6786         ;;
  6224 
  6787 
  6225       gnu*)
       
  6226         ;;
       
  6227 
       
  6228       haiku*)
  6788       haiku*)
  6229         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6789         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6230         _LT_TAGVAR(link_all_deplibs, $1)=yes
  6790         _LT_TAGVAR(link_all_deplibs, $1)=yes
  6231         ;;
  6791         ;;
  6232 
  6792 
  6233       hpux9*)
  6793       hpux9*)
  6234         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6794         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  6235         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6795         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6236         _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6796         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6237         _LT_TAGVAR(hardcode_direct, $1)=yes
  6797         _LT_TAGVAR(hardcode_direct, $1)=yes
  6238         _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6798         _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6239 				             # but as the default
  6799 				             # but as the default
  6240 				             # location of the library.
  6800 				             # location of the library.
  6241 
  6801 
  6243           CC*)
  6803           CC*)
  6244             # FIXME: insert proper C++ library support
  6804             # FIXME: insert proper C++ library support
  6245             _LT_TAGVAR(ld_shlibs, $1)=no
  6805             _LT_TAGVAR(ld_shlibs, $1)=no
  6246             ;;
  6806             ;;
  6247           aCC*)
  6807           aCC*)
  6248             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6808             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  6249             # Commands to make compiler produce verbose output that lists
  6809             # Commands to make compiler produce verbose output that lists
  6250             # what "hidden" libraries, object files and flags are used when
  6810             # what "hidden" libraries, object files and flags are used when
  6251             # linking a shared library.
  6811             # linking a shared library.
  6252             #
  6812             #
  6253             # There doesn't appear to be a way to prevent this compiler from
  6813             # There doesn't appear to be a way to prevent this compiler from
  6254             # explicitly linking system object files so we need to strip them
  6814             # explicitly linking system object files so we need to strip them
  6255             # from the output so that they don't get included in the library
  6815             # from the output so that they don't get included in the library
  6256             # dependencies.
  6816             # dependencies.
  6257             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6817             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6258             ;;
  6818             ;;
  6259           *)
  6819           *)
  6260             if test "$GXX" = yes; then
  6820             if test yes = "$GXX"; then
  6261               _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'
  6821               _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  6262             else
  6822             else
  6263               # FIXME: insert proper C++ library support
  6823               # FIXME: insert proper C++ library support
  6264               _LT_TAGVAR(ld_shlibs, $1)=no
  6824               _LT_TAGVAR(ld_shlibs, $1)=no
  6265             fi
  6825             fi
  6266             ;;
  6826             ;;
  6267         esac
  6827         esac
  6268         ;;
  6828         ;;
  6269 
  6829 
  6270       hpux10*|hpux11*)
  6830       hpux10*|hpux11*)
  6271         if test $with_gnu_ld = no; then
  6831         if test no = "$with_gnu_ld"; then
  6272 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6832 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  6273 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6833 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6274 
  6834 
  6275           case $host_cpu in
  6835           case $host_cpu in
  6276             hppa*64*|ia64*)
  6836             hppa*64*|ia64*)
  6277               ;;
  6837               ;;
  6278             *)
  6838             *)
  6279 	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6839 	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6280               ;;
  6840               ;;
  6281           esac
  6841           esac
  6282         fi
  6842         fi
  6283         case $host_cpu in
  6843         case $host_cpu in
  6284           hppa*64*|ia64*)
  6844           hppa*64*|ia64*)
  6300 	    _LT_TAGVAR(ld_shlibs, $1)=no
  6860 	    _LT_TAGVAR(ld_shlibs, $1)=no
  6301 	    ;;
  6861 	    ;;
  6302           aCC*)
  6862           aCC*)
  6303 	    case $host_cpu in
  6863 	    case $host_cpu in
  6304 	      hppa*64*)
  6864 	      hppa*64*)
  6305 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6865 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6306 	        ;;
  6866 	        ;;
  6307 	      ia64*)
  6867 	      ia64*)
  6308 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6868 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6309 	        ;;
  6869 	        ;;
  6310 	      *)
  6870 	      *)
  6311 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6871 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6312 	        ;;
  6872 	        ;;
  6313 	    esac
  6873 	    esac
  6314 	    # Commands to make compiler produce verbose output that lists
  6874 	    # Commands to make compiler produce verbose output that lists
  6315 	    # what "hidden" libraries, object files and flags are used when
  6875 	    # what "hidden" libraries, object files and flags are used when
  6316 	    # linking a shared library.
  6876 	    # linking a shared library.
  6317 	    #
  6877 	    #
  6318 	    # There doesn't appear to be a way to prevent this compiler from
  6878 	    # There doesn't appear to be a way to prevent this compiler from
  6319 	    # explicitly linking system object files so we need to strip them
  6879 	    # explicitly linking system object files so we need to strip them
  6320 	    # from the output so that they don't get included in the library
  6880 	    # from the output so that they don't get included in the library
  6321 	    # dependencies.
  6881 	    # dependencies.
  6322 	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6882 	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6323 	    ;;
  6883 	    ;;
  6324           *)
  6884           *)
  6325 	    if test "$GXX" = yes; then
  6885 	    if test yes = "$GXX"; then
  6326 	      if test $with_gnu_ld = no; then
  6886 	      if test no = "$with_gnu_ld"; then
  6327 	        case $host_cpu in
  6887 	        case $host_cpu in
  6328 	          hppa*64*)
  6888 	          hppa*64*)
  6329 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6889 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6330 	            ;;
  6890 	            ;;
  6331 	          ia64*)
  6891 	          ia64*)
  6332 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6892 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6333 	            ;;
  6893 	            ;;
  6334 	          *)
  6894 	          *)
  6335 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6895 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6336 	            ;;
  6896 	            ;;
  6337 	        esac
  6897 	        esac
  6338 	      fi
  6898 	      fi
  6339 	    else
  6899 	    else
  6340 	      # FIXME: insert proper C++ library support
  6900 	      # FIXME: insert proper C++ library support
  6345         ;;
  6905         ;;
  6346 
  6906 
  6347       interix[[3-9]]*)
  6907       interix[[3-9]]*)
  6348 	_LT_TAGVAR(hardcode_direct, $1)=no
  6908 	_LT_TAGVAR(hardcode_direct, $1)=no
  6349 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6909 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6350 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6910 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6351 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6911 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6352 	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6912 	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6353 	# Instead, shared libraries are loaded at an image base (0x10000000 by
  6913 	# Instead, shared libraries are loaded at an image base (0x10000000 by
  6354 	# default) and relocated if they conflict, which is a slow very memory
  6914 	# default) and relocated if they conflict, which is a slow very memory
  6355 	# consuming and fragmenting process.  To avoid this, we pick a random,
  6915 	# consuming and fragmenting process.  To avoid this, we pick a random,
  6356 	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6916 	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6357 	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  6917 	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  6358 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6918 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6359 	_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6919 	_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6360 	;;
  6920 	;;
  6361       irix5* | irix6*)
  6921       irix5* | irix6*)
  6362         case $cc_basename in
  6922         case $cc_basename in
  6363           CC*)
  6923           CC*)
  6364 	    # SGI C++
  6924 	    # SGI C++
  6365 	    _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'
  6925 	    _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'
  6366 
  6926 
  6367 	    # Archives containing C++ object files must be created using
  6927 	    # Archives containing C++ object files must be created using
  6368 	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  6928 	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  6369 	    # necessary to make sure instantiated templates are included
  6929 	    # necessary to make sure instantiated templates are included
  6370 	    # in the archive.
  6930 	    # in the archive.
  6371 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6931 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6372 	    ;;
  6932 	    ;;
  6373           *)
  6933           *)
  6374 	    if test "$GXX" = yes; then
  6934 	    if test yes = "$GXX"; then
  6375 	      if test "$with_gnu_ld" = no; then
  6935 	      if test no = "$with_gnu_ld"; then
  6376 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6936 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  6377 	      else
  6937 	      else
  6378 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  6938 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  6379 	      fi
  6939 	      fi
  6380 	    fi
  6940 	    fi
  6381 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  6941 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  6382 	    ;;
  6942 	    ;;
  6383         esac
  6943         esac
  6384         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6944         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6385         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6945         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6386         _LT_TAGVAR(inherit_rpath, $1)=yes
  6946         _LT_TAGVAR(inherit_rpath, $1)=yes
  6387         ;;
  6947         ;;
  6388 
  6948 
  6389       linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6949       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6390         case $cc_basename in
  6950         case $cc_basename in
  6391           KCC*)
  6951           KCC*)
  6392 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  6952 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  6393 
  6953 
  6394 	    # KCC will only create a shared library if the output file
  6954 	    # KCC will only create a shared library if the output file
  6395 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6955 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6396 	    # to its proper name (with version) after linking.
  6956 	    # to its proper name (with version) after linking.
  6397 	    _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_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  6957 	    _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_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  6398 	    _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 $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  6958 	    _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 $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  6399 	    # Commands to make compiler produce verbose output that lists
  6959 	    # Commands to make compiler produce verbose output that lists
  6400 	    # what "hidden" libraries, object files and flags are used when
  6960 	    # what "hidden" libraries, object files and flags are used when
  6401 	    # linking a shared library.
  6961 	    # linking a shared library.
  6402 	    #
  6962 	    #
  6403 	    # There doesn't appear to be a way to prevent this compiler from
  6963 	    # There doesn't appear to be a way to prevent this compiler from
  6404 	    # explicitly linking system object files so we need to strip them
  6964 	    # explicitly linking system object files so we need to strip them
  6405 	    # from the output so that they don't get included in the library
  6965 	    # from the output so that they don't get included in the library
  6406 	    # dependencies.
  6966 	    # dependencies.
  6407 	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6967 	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6408 
  6968 
  6409 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6969 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6410 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6970 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6411 
  6971 
  6412 	    # Archives containing C++ object files must be created using
  6972 	    # Archives containing C++ object files must be created using
  6413 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6973 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6414 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6974 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6415 	    ;;
  6975 	    ;;
  6419 	    # version 8.0 and above of icpc choke on multiply defined symbols
  6979 	    # version 8.0 and above of icpc choke on multiply defined symbols
  6420 	    # if we add $predep_objects and $postdep_objects, however 7.1 and
  6980 	    # if we add $predep_objects and $postdep_objects, however 7.1 and
  6421 	    # earlier do not add the objects themselves.
  6981 	    # earlier do not add the objects themselves.
  6422 	    case `$CC -V 2>&1` in
  6982 	    case `$CC -V 2>&1` in
  6423 	      *"Version 7."*)
  6983 	      *"Version 7."*)
  6424 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6984 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6425 		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6985 		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  6426 		;;
  6986 		;;
  6427 	      *)  # Version 8.0 or newer
  6987 	      *)  # Version 8.0 or newer
  6428 	        tmp_idyn=
  6988 	        tmp_idyn=
  6429 	        case $host_cpu in
  6989 	        case $host_cpu in
  6430 		  ia64*) tmp_idyn=' -i_dynamic';;
  6990 		  ia64*) tmp_idyn=' -i_dynamic';;
  6431 		esac
  6991 		esac
  6432 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6992 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6433 		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6993 		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  6434 		;;
  6994 		;;
  6435 	    esac
  6995 	    esac
  6436 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6996 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6437 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6997 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6438 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6998 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6439 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  6999 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  6440 	    ;;
  7000 	    ;;
  6441           pgCC* | pgcpp*)
  7001           pgCC* | pgcpp*)
  6442             # Portland Group C++ compiler
  7002             # Portland Group C++ compiler
  6443 	    case `$CC -V` in
  7003 	    case `$CC -V` in
  6444 	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  7004 	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  6445 	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  7005 	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  6446 		rm -rf $tpldir~
  7006                rm -rf $tpldir~
  6447 		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  7007                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  6448 		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  7008                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  6449 	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  7009 	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  6450 		rm -rf $tpldir~
  7010                 rm -rf $tpldir~
  6451 		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  7011                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  6452 		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  7012                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  6453 		$RANLIB $oldlib'
  7013                 $RANLIB $oldlib'
  6454 	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  7014 	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  6455 		rm -rf $tpldir~
  7015                 rm -rf $tpldir~
  6456 		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7016                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6457 		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7017                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6458 	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  7018 	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  6459 		rm -rf $tpldir~
  7019                 rm -rf $tpldir~
  6460 		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7020                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6461 		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  7021                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  6462 	      ;;
  7022 	      ;;
  6463 	    *) # Version 6 and above use weak symbols
  7023 	    *) # Version 6 and above use weak symbols
  6464 	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7024 	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6465 	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  7025 	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  6466 	      ;;
  7026 	      ;;
  6467 	    esac
  7027 	    esac
  6468 
  7028 
  6469 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7029 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
  6470 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7030 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6471 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7031 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  6472             ;;
  7032             ;;
  6473 	  cxx*)
  7033 	  cxx*)
  6474 	    # Compaq C++
  7034 	    # Compaq C++
  6475 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7035 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6476 	    _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'
  7036 	    _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'
  6477 
  7037 
  6478 	    runpath_var=LD_RUN_PATH
  7038 	    runpath_var=LD_RUN_PATH
  6479 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7039 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6480 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7040 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6481 
  7041 
  6485 	    #
  7045 	    #
  6486 	    # There doesn't appear to be a way to prevent this compiler from
  7046 	    # There doesn't appear to be a way to prevent this compiler from
  6487 	    # explicitly linking system object files so we need to strip them
  7047 	    # explicitly linking system object files so we need to strip them
  6488 	    # from the output so that they don't get included in the library
  7048 	    # from the output so that they don't get included in the library
  6489 	    # dependencies.
  7049 	    # dependencies.
  6490 	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  7050 	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  6491 	    ;;
  7051 	    ;;
  6492 	  xl* | mpixl* | bgxl*)
  7052 	  xl* | mpixl* | bgxl*)
  6493 	    # IBM XL 8.0 on PPC, with GNU ld
  7053 	    # IBM XL 8.0 on PPC, with GNU ld
  6494 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7054 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6495 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7055 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6496 	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7056 	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6497 	    if test "x$supports_anon_versioning" = xyes; then
  7057 	    if test yes = "$supports_anon_versioning"; then
  6498 	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7058 	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6499 		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7059                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6500 		echo "local: *; };" >> $output_objdir/$libname.ver~
  7060                 echo "local: *; };" >> $output_objdir/$libname.ver~
  6501 		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7061                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  6502 	    fi
  7062 	    fi
  6503 	    ;;
  7063 	    ;;
  6504 	  *)
  7064 	  *)
  6505 	    case `$CC -V 2>&1 | sed 5q` in
  7065 	    case `$CC -V 2>&1 | sed 5q` in
  6506 	    *Sun\ C*)
  7066 	    *Sun\ C*)
  6507 	      # Sun C++ 5.9
  7067 	      # Sun C++ 5.9
  6508 	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7068 	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6509 	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7069 	      _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6510 	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  7070 	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  6511 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7071 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6512 	      _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_convenience\"` ${wl}--no-whole-archive'
  7072 	      _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_convenience\"` $wl--no-whole-archive'
  6513 	      _LT_TAGVAR(compiler_needs_object, $1)=yes
  7073 	      _LT_TAGVAR(compiler_needs_object, $1)=yes
  6514 
  7074 
  6515 	      # Not sure whether something based on
  7075 	      # Not sure whether something based on
  6516 	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  7076 	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6517 	      # would be better.
  7077 	      # would be better.
  6565 
  7125 
  6566       *nto* | *qnx*)
  7126       *nto* | *qnx*)
  6567         _LT_TAGVAR(ld_shlibs, $1)=yes
  7127         _LT_TAGVAR(ld_shlibs, $1)=yes
  6568 	;;
  7128 	;;
  6569 
  7129 
  6570       openbsd2*)
  7130       openbsd* | bitrig*)
  6571         # C++ shared libraries are fairly broken
       
  6572 	_LT_TAGVAR(ld_shlibs, $1)=no
       
  6573 	;;
       
  6574 
       
  6575       openbsd*)
       
  6576 	if test -f /usr/libexec/ld.so; then
  7131 	if test -f /usr/libexec/ld.so; then
  6577 	  _LT_TAGVAR(hardcode_direct, $1)=yes
  7132 	  _LT_TAGVAR(hardcode_direct, $1)=yes
  6578 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7133 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6579 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7134 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6580 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7135 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6581 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7136 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6582 	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7137 	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  6583 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  7138 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  6584 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7139 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6585 	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7140 	    _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  6586 	  fi
  7141 	  fi
  6587 	  output_verbose_link_cmd=func_echo_all
  7142 	  output_verbose_link_cmd=func_echo_all
  6588 	else
  7143 	else
  6589 	  _LT_TAGVAR(ld_shlibs, $1)=no
  7144 	  _LT_TAGVAR(ld_shlibs, $1)=no
  6590 	fi
  7145 	fi
  6596 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  7151 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  6597 
  7152 
  6598 	    # KCC will only create a shared library if the output file
  7153 	    # KCC will only create a shared library if the output file
  6599 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7154 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6600 	    # to its proper name (with version) after linking.
  7155 	    # to its proper name (with version) after linking.
  6601 	    _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_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  7156 	    _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_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  6602 
  7157 
  6603 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7158 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6604 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7159 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6605 
  7160 
  6606 	    # Archives containing C++ object files must be created using
  7161 	    # Archives containing C++ object files must be created using
  6607 	    # the KAI C++ compiler.
  7162 	    # the KAI C++ compiler.
  6608 	    case $host in
  7163 	    case $host in
  6616 	    _LT_TAGVAR(ld_shlibs, $1)=no
  7171 	    _LT_TAGVAR(ld_shlibs, $1)=no
  6617 	    ;;
  7172 	    ;;
  6618           cxx*)
  7173           cxx*)
  6619 	    case $host in
  7174 	    case $host in
  6620 	      osf3*)
  7175 	      osf3*)
  6621 	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7176 	        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6622 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7177 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  6623 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7178 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6624 		;;
  7179 		;;
  6625 	      *)
  7180 	      *)
  6626 	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7181 	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6627 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7182 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  6628 	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  7183 	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6629 	          echo "-hidden">> $lib.exp~
  7184                   echo "-hidden">> $lib.exp~
  6630 	          $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~
  7185                   $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~
  6631 	          $RM $lib.exp'
  7186                   $RM $lib.exp'
  6632 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7187 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6633 		;;
  7188 		;;
  6634 	    esac
  7189 	    esac
  6635 
  7190 
  6636 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7191 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6641 	    #
  7196 	    #
  6642 	    # There doesn't appear to be a way to prevent this compiler from
  7197 	    # There doesn't appear to be a way to prevent this compiler from
  6643 	    # explicitly linking system object files so we need to strip them
  7198 	    # explicitly linking system object files so we need to strip them
  6644 	    # from the output so that they don't get included in the library
  7199 	    # from the output so that they don't get included in the library
  6645 	    # dependencies.
  7200 	    # dependencies.
  6646 	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  7201 	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6647 	    ;;
  7202 	    ;;
  6648 	  *)
  7203 	  *)
  6649 	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7204 	    if test yes,no = "$GXX,$with_gnu_ld"; then
  6650 	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7205 	      _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6651 	      case $host in
  7206 	      case $host in
  6652 	        osf3*)
  7207 	        osf3*)
  6653 	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7208 	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  6654 		  ;;
  7209 		  ;;
  6655 	        *)
  7210 	        *)
  6656 	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7211 	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  6657 		  ;;
  7212 		  ;;
  6658 	      esac
  7213 	      esac
  6659 
  7214 
  6660 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7215 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6661 	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7216 	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6662 
  7217 
  6663 	      # Commands to make compiler produce verbose output that lists
  7218 	      # Commands to make compiler produce verbose output that lists
  6664 	      # what "hidden" libraries, object files and flags are used when
  7219 	      # what "hidden" libraries, object files and flags are used when
  6665 	      # linking a shared library.
  7220 	      # linking a shared library.
  6701         case $cc_basename in
  7256         case $cc_basename in
  6702           CC* | sunCC*)
  7257           CC* | sunCC*)
  6703 	    # Sun C++ 4.2, 5.x and Centerline C++
  7258 	    # Sun C++ 4.2, 5.x and Centerline C++
  6704             _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  7259             _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6705 	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7260 	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6706 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7261 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6707 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7262 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6708 	      $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'
  7263               $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'
  6709 
  7264 
  6710 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7265 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6711 	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7266 	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6712 	    case $host_os in
  7267 	    case $host_os in
  6713 	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7268 	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6714 	      *)
  7269 	      *)
  6715 		# The compiler driver will combine and reorder linker options,
  7270 		# The compiler driver will combine and reorder linker options,
  6716 		# but understands `-z linker_flag'.
  7271 		# but understands '-z linker_flag'.
  6717 	        # Supported since Solaris 2.6 (maybe 2.5.1?)
  7272 	        # Supported since Solaris 2.6 (maybe 2.5.1?)
  6718 		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7273 		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6719 	        ;;
  7274 	        ;;
  6720 	    esac
  7275 	    esac
  6721 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  7276 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  6728 	    # in the archive.
  7283 	    # in the archive.
  6729 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7284 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6730 	    ;;
  7285 	    ;;
  6731           gcx*)
  7286           gcx*)
  6732 	    # Green Hills C++ Compiler
  7287 	    # Green Hills C++ Compiler
  6733 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7288 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6734 
  7289 
  6735 	    # The C++ compiler must be used to create the archive.
  7290 	    # The C++ compiler must be used to create the archive.
  6736 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  7291 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6737 	    ;;
  7292 	    ;;
  6738           *)
  7293           *)
  6739 	    # GNU C++ compiler with Solaris linker
  7294 	    # GNU C++ compiler with Solaris linker
  6740 	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7295 	    if test yes,no = "$GXX,$with_gnu_ld"; then
  6741 	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  7296 	      _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
  6742 	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  7297 	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6743 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7298 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6744 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7299 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6745 		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7300                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6746 
  7301 
  6747 	        # Commands to make compiler produce verbose output that lists
  7302 	        # Commands to make compiler produce verbose output that lists
  6748 	        # what "hidden" libraries, object files and flags are used when
  7303 	        # what "hidden" libraries, object files and flags are used when
  6749 	        # linking a shared library.
  7304 	        # linking a shared library.
  6750 	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  7305 	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6751 	      else
  7306 	      else
  6752 	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
  7307 	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
  6753 	        # platform.
  7308 	        # platform.
  6754 	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7309 	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6755 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7310 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6756 		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  7311                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6757 
  7312 
  6758 	        # Commands to make compiler produce verbose output that lists
  7313 	        # Commands to make compiler produce verbose output that lists
  6759 	        # what "hidden" libraries, object files and flags are used when
  7314 	        # what "hidden" libraries, object files and flags are used when
  6760 	        # linking a shared library.
  7315 	        # linking a shared library.
  6761 	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  7316 	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6762 	      fi
  7317 	      fi
  6763 
  7318 
  6764 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  7319 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
  6765 	      case $host_os in
  7320 	      case $host_os in
  6766 		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7321 		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6767 		*)
  7322 		*)
  6768 		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7323 		  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  6769 		  ;;
  7324 		  ;;
  6770 	      esac
  7325 	      esac
  6771 	    fi
  7326 	    fi
  6772 	    ;;
  7327 	    ;;
  6773         esac
  7328         esac
  6774         ;;
  7329         ;;
  6775 
  7330 
  6776     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7331     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6777       _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7332       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6778       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7333       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6779       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7334       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6780       runpath_var='LD_RUN_PATH'
  7335       runpath_var='LD_RUN_PATH'
  6781 
  7336 
  6782       case $cc_basename in
  7337       case $cc_basename in
  6783         CC*)
  7338         CC*)
  6784 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7339 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6785 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7340 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6786 	  ;;
  7341 	  ;;
  6787 	*)
  7342 	*)
  6788 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7343 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6789 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7344 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6790 	  ;;
  7345 	  ;;
  6791       esac
  7346       esac
  6792       ;;
  7347       ;;
  6793 
  7348 
  6794       sysv5* | sco3.2v5* | sco5v6*)
  7349       sysv5* | sco3.2v5* | sco5v6*)
  6795 	# Note: We can NOT use -z defs as we might desire, because we do not
  7350 	# Note: We CANNOT use -z defs as we might desire, because we do not
  6796 	# link with -lc, and that would cause any symbols used from libc to
  7351 	# link with -lc, and that would cause any symbols used from libc to
  6797 	# always be unresolved, which means just about no library would
  7352 	# always be unresolved, which means just about no library would
  6798 	# ever link correctly.  If we're not using GNU ld we use -z text
  7353 	# ever link correctly.  If we're not using GNU ld we use -z text
  6799 	# though, which does catch some bad symbols but isn't as heavy-handed
  7354 	# though, which does catch some bad symbols but isn't as heavy-handed
  6800 	# as -z defs.
  7355 	# as -z defs.
  6801 	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7356 	_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6802 	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7357 	_LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  6803 	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7358 	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6804 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7359 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6805 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  7360 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  6806 	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7361 	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6807 	_LT_TAGVAR(link_all_deplibs, $1)=yes
  7362 	_LT_TAGVAR(link_all_deplibs, $1)=yes
  6808 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  7363 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  6809 	runpath_var='LD_RUN_PATH'
  7364 	runpath_var='LD_RUN_PATH'
  6810 
  7365 
  6811 	case $cc_basename in
  7366 	case $cc_basename in
  6812           CC*)
  7367           CC*)
  6813 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7368 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6814 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7369 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6815 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  7370 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6816 	      '"$_LT_TAGVAR(old_archive_cmds, $1)"
  7371               '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6817 	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  7372 	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6818 	      '"$_LT_TAGVAR(reload_cmds, $1)"
  7373               '"$_LT_TAGVAR(reload_cmds, $1)"
  6819 	    ;;
  7374 	    ;;
  6820 	  *)
  7375 	  *)
  6821 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7376 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6822 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7377 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6823 	    ;;
  7378 	    ;;
  6824 	esac
  7379 	esac
  6825       ;;
  7380       ;;
  6826 
  7381 
  6827       tandem*)
  7382       tandem*)
  6848         _LT_TAGVAR(ld_shlibs, $1)=no
  7403         _LT_TAGVAR(ld_shlibs, $1)=no
  6849         ;;
  7404         ;;
  6850     esac
  7405     esac
  6851 
  7406 
  6852     AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  7407     AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6853     test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  7408     test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  6854 
  7409 
  6855     _LT_TAGVAR(GCC, $1)="$GXX"
  7410     _LT_TAGVAR(GCC, $1)=$GXX
  6856     _LT_TAGVAR(LD, $1)="$LD"
  7411     _LT_TAGVAR(LD, $1)=$LD
  6857 
  7412 
  6858     ## CAVEAT EMPTOR:
  7413     ## CAVEAT EMPTOR:
  6859     ## There is no encapsulation within the following macros, do not change
  7414     ## There is no encapsulation within the following macros, do not change
  6860     ## the running order or otherwise move them around unless you know exactly
  7415     ## the running order or otherwise move them around unless you know exactly
  6861     ## what you are doing...
  7416     ## what you are doing...
  6878   with_gnu_ld=$lt_save_with_gnu_ld
  7433   with_gnu_ld=$lt_save_with_gnu_ld
  6879   lt_cv_path_LDCXX=$lt_cv_path_LD
  7434   lt_cv_path_LDCXX=$lt_cv_path_LD
  6880   lt_cv_path_LD=$lt_save_path_LD
  7435   lt_cv_path_LD=$lt_save_path_LD
  6881   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  7436   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6882   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  7437   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6883 fi # test "$_lt_caught_CXX_error" != yes
  7438 fi # test yes != "$_lt_caught_CXX_error"
  6884 
  7439 
  6885 AC_LANG_POP
  7440 AC_LANG_POP
  6886 ])# _LT_LANG_CXX_CONFIG
  7441 ])# _LT_LANG_CXX_CONFIG
  6887 
  7442 
  6888 
  7443 
  6900 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  7455 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6901 AC_REQUIRE([_LT_DECL_SED])
  7456 AC_REQUIRE([_LT_DECL_SED])
  6902 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  7457 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6903 func_stripname_cnf ()
  7458 func_stripname_cnf ()
  6904 {
  7459 {
  6905   case ${2} in
  7460   case @S|@2 in
  6906   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7461   .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
  6907   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7462   *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
  6908   esac
  7463   esac
  6909 } # func_stripname_cnf
  7464 } # func_stripname_cnf
  6910 ])# _LT_FUNC_STRIPNAME_CNF
  7465 ])# _LT_FUNC_STRIPNAME_CNF
       
  7466 
  6911 
  7467 
  6912 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  7468 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6913 # ---------------------------------
  7469 # ---------------------------------
  6914 # Figure out "hidden" library dependencies from verbose
  7470 # Figure out "hidden" library dependencies from verbose
  6915 # compiler output when linking a shared library.
  7471 # compiler output when linking a shared library.
  6990   # Sentinel used to keep track of whether or not we are before
  7546   # Sentinel used to keep track of whether or not we are before
  6991   # the conftest object file.
  7547   # the conftest object file.
  6992   pre_test_object_deps_done=no
  7548   pre_test_object_deps_done=no
  6993 
  7549 
  6994   for p in `eval "$output_verbose_link_cmd"`; do
  7550   for p in `eval "$output_verbose_link_cmd"`; do
  6995     case ${prev}${p} in
  7551     case $prev$p in
  6996 
  7552 
  6997     -L* | -R* | -l*)
  7553     -L* | -R* | -l*)
  6998        # Some compilers place space between "-{L,R}" and the path.
  7554        # Some compilers place space between "-{L,R}" and the path.
  6999        # Remove the space.
  7555        # Remove the space.
  7000        if test $p = "-L" ||
  7556        if test x-L = "$p" ||
  7001           test $p = "-R"; then
  7557           test x-R = "$p"; then
  7002 	 prev=$p
  7558 	 prev=$p
  7003 	 continue
  7559 	 continue
  7004        fi
  7560        fi
  7005 
  7561 
  7006        # Expand the sysroot to ease extracting the directories later.
  7562        # Expand the sysroot to ease extracting the directories later.
  7012          esac
  7568          esac
  7013        fi
  7569        fi
  7014        case $p in
  7570        case $p in
  7015        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  7571        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  7016        esac
  7572        esac
  7017        if test "$pre_test_object_deps_done" = no; then
  7573        if test no = "$pre_test_object_deps_done"; then
  7018 	 case ${prev} in
  7574 	 case $prev in
  7019 	 -L | -R)
  7575 	 -L | -R)
  7020 	   # Internal compiler library paths should come after those
  7576 	   # Internal compiler library paths should come after those
  7021 	   # provided the user.  The postdeps already come after the
  7577 	   # provided the user.  The postdeps already come after the
  7022 	   # user supplied libs so there is no need to process them.
  7578 	   # user supplied libs so there is no need to process them.
  7023 	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  7579 	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  7024 	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  7580 	     _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
  7025 	   else
  7581 	   else
  7026 	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  7582 	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
  7027 	   fi
  7583 	   fi
  7028 	   ;;
  7584 	   ;;
  7029 	 # The "-l" case would never come before the object being
  7585 	 # The "-l" case would never come before the object being
  7030 	 # linked, so don't bother handling this case.
  7586 	 # linked, so don't bother handling this case.
  7031 	 esac
  7587 	 esac
  7032        else
  7588        else
  7033 	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  7589 	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  7034 	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  7590 	   _LT_TAGVAR(postdeps, $1)=$prev$p
  7035 	 else
  7591 	 else
  7036 	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  7592 	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
  7037 	 fi
  7593 	 fi
  7038        fi
  7594        fi
  7039        prev=
  7595        prev=
  7040        ;;
  7596        ;;
  7041 
  7597 
  7046        if test "$p" = "conftest.$objext"; then
  7602        if test "$p" = "conftest.$objext"; then
  7047 	 pre_test_object_deps_done=yes
  7603 	 pre_test_object_deps_done=yes
  7048 	 continue
  7604 	 continue
  7049        fi
  7605        fi
  7050 
  7606 
  7051        if test "$pre_test_object_deps_done" = no; then
  7607        if test no = "$pre_test_object_deps_done"; then
  7052 	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  7608 	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  7053 	   _LT_TAGVAR(predep_objects, $1)="$p"
  7609 	   _LT_TAGVAR(predep_objects, $1)=$p
  7054 	 else
  7610 	 else
  7055 	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  7611 	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  7056 	 fi
  7612 	 fi
  7057        else
  7613        else
  7058 	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  7614 	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  7059 	   _LT_TAGVAR(postdep_objects, $1)="$p"
  7615 	   _LT_TAGVAR(postdep_objects, $1)=$p
  7060 	 else
  7616 	 else
  7061 	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  7617 	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  7062 	 fi
  7618 	 fi
  7063        fi
  7619        fi
  7064        ;;
  7620        ;;
  7085   # hack all around it, let's just trust "g++" to DTRT.
  7641   # hack all around it, let's just trust "g++" to DTRT.
  7086   _LT_TAGVAR(predep_objects,$1)=
  7642   _LT_TAGVAR(predep_objects,$1)=
  7087   _LT_TAGVAR(postdep_objects,$1)=
  7643   _LT_TAGVAR(postdep_objects,$1)=
  7088   _LT_TAGVAR(postdeps,$1)=
  7644   _LT_TAGVAR(postdeps,$1)=
  7089   ;;
  7645   ;;
  7090 
       
  7091 linux*)
       
  7092   case `$CC -V 2>&1 | sed 5q` in
       
  7093   *Sun\ C*)
       
  7094     # Sun C++ 5.9
       
  7095 
       
  7096     # The more standards-conforming stlport4 library is
       
  7097     # incompatible with the Cstd library. Avoid specifying
       
  7098     # it if it's in CXXFLAGS. Ignore libCrun as
       
  7099     # -library=stlport4 depends on it.
       
  7100     case " $CXX $CXXFLAGS " in
       
  7101     *" -library=stlport4 "*)
       
  7102       solaris_use_stlport4=yes
       
  7103       ;;
       
  7104     esac
       
  7105 
       
  7106     if test "$solaris_use_stlport4" != yes; then
       
  7107       _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
       
  7108     fi
       
  7109     ;;
       
  7110   esac
       
  7111   ;;
       
  7112 
       
  7113 solaris*)
       
  7114   case $cc_basename in
       
  7115   CC* | sunCC*)
       
  7116     # The more standards-conforming stlport4 library is
       
  7117     # incompatible with the Cstd library. Avoid specifying
       
  7118     # it if it's in CXXFLAGS. Ignore libCrun as
       
  7119     # -library=stlport4 depends on it.
       
  7120     case " $CXX $CXXFLAGS " in
       
  7121     *" -library=stlport4 "*)
       
  7122       solaris_use_stlport4=yes
       
  7123       ;;
       
  7124     esac
       
  7125 
       
  7126     # Adding this requires a known-good setup of shared libraries for
       
  7127     # Sun compiler versions before 5.6, else PIC objects from an old
       
  7128     # archive will be linked into the output, leading to subtle bugs.
       
  7129     if test "$solaris_use_stlport4" != yes; then
       
  7130       _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
       
  7131     fi
       
  7132     ;;
       
  7133   esac
       
  7134   ;;
       
  7135 esac
  7646 esac
  7136 ])
  7647 ])
  7137 
  7648 
  7138 case " $_LT_TAGVAR(postdeps, $1) " in
  7649 case " $_LT_TAGVAR(postdeps, $1) " in
  7139 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  7650 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  7140 esac
  7651 esac
  7141  _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  7652  _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  7142 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  7653 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  7143  _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  7654  _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  7144 fi
  7655 fi
  7145 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  7656 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  7146     [The directories searched by this compiler when creating a shared library])
  7657     [The directories searched by this compiler when creating a shared library])
  7147 _LT_TAGDECL([], [predep_objects], [1],
  7658 _LT_TAGDECL([], [predep_objects], [1],
  7148     [Dependencies to place before and after the objects being linked to
  7659     [Dependencies to place before and after the objects being linked to
  7158 
  7669 
  7159 # _LT_LANG_F77_CONFIG([TAG])
  7670 # _LT_LANG_F77_CONFIG([TAG])
  7160 # --------------------------
  7671 # --------------------------
  7161 # Ensure that the configuration variables for a Fortran 77 compiler are
  7672 # Ensure that the configuration variables for a Fortran 77 compiler are
  7162 # suitably defined.  These variables are subsequently used by _LT_CONFIG
  7673 # suitably defined.  These variables are subsequently used by _LT_CONFIG
  7163 # to write the compiler configuration to `libtool'.
  7674 # to write the compiler configuration to 'libtool'.
  7164 m4_defun([_LT_LANG_F77_CONFIG],
  7675 m4_defun([_LT_LANG_F77_CONFIG],
  7165 [AC_LANG_PUSH(Fortran 77)
  7676 [AC_LANG_PUSH(Fortran 77)
  7166 if test -z "$F77" || test "X$F77" = "Xno"; then
  7677 if test -z "$F77" || test no = "$F77"; then
  7167   _lt_disable_F77=yes
  7678   _lt_disable_F77=yes
  7168 fi
  7679 fi
  7169 
  7680 
  7170 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7681 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7171 _LT_TAGVAR(allow_undefined_flag, $1)=
  7682 _LT_TAGVAR(allow_undefined_flag, $1)=
  7198 
  7709 
  7199 # No sense in running all these tests if we already determined that
  7710 # No sense in running all these tests if we already determined that
  7200 # the F77 compiler isn't working.  Some variables (like enable_shared)
  7711 # the F77 compiler isn't working.  Some variables (like enable_shared)
  7201 # are currently assumed to apply to all compilers on this platform,
  7712 # are currently assumed to apply to all compilers on this platform,
  7202 # and will be corrupted by setting them based on a non-working compiler.
  7713 # and will be corrupted by setting them based on a non-working compiler.
  7203 if test "$_lt_disable_F77" != yes; then
  7714 if test yes != "$_lt_disable_F77"; then
  7204   # Code to be used in simple compile tests
  7715   # Code to be used in simple compile tests
  7205   lt_simple_compile_test_code="\
  7716   lt_simple_compile_test_code="\
  7206       subroutine t
  7717       subroutine t
  7207       return
  7718       return
  7208       end
  7719       end
  7220   # save warnings/boilerplate of simple test code
  7731   # save warnings/boilerplate of simple test code
  7221   _LT_COMPILER_BOILERPLATE
  7732   _LT_COMPILER_BOILERPLATE
  7222   _LT_LINKER_BOILERPLATE
  7733   _LT_LINKER_BOILERPLATE
  7223 
  7734 
  7224   # Allow CC to be a program name with arguments.
  7735   # Allow CC to be a program name with arguments.
  7225   lt_save_CC="$CC"
  7736   lt_save_CC=$CC
  7226   lt_save_GCC=$GCC
  7737   lt_save_GCC=$GCC
  7227   lt_save_CFLAGS=$CFLAGS
  7738   lt_save_CFLAGS=$CFLAGS
  7228   CC=${F77-"f77"}
  7739   CC=${F77-"f77"}
  7229   CFLAGS=$FFLAGS
  7740   CFLAGS=$FFLAGS
  7230   compiler=$CC
  7741   compiler=$CC
  7234   if test -n "$compiler"; then
  7745   if test -n "$compiler"; then
  7235     AC_MSG_CHECKING([if libtool supports shared libraries])
  7746     AC_MSG_CHECKING([if libtool supports shared libraries])
  7236     AC_MSG_RESULT([$can_build_shared])
  7747     AC_MSG_RESULT([$can_build_shared])
  7237 
  7748 
  7238     AC_MSG_CHECKING([whether to build shared libraries])
  7749     AC_MSG_CHECKING([whether to build shared libraries])
  7239     test "$can_build_shared" = "no" && enable_shared=no
  7750     test no = "$can_build_shared" && enable_shared=no
  7240 
  7751 
  7241     # On AIX, shared libraries and static libraries use the same namespace, and
  7752     # On AIX, shared libraries and static libraries use the same namespace, and
  7242     # are all built from PIC.
  7753     # are all built from PIC.
  7243     case $host_os in
  7754     case $host_os in
  7244       aix3*)
  7755       aix3*)
  7245         test "$enable_shared" = yes && enable_static=no
  7756         test yes = "$enable_shared" && enable_static=no
  7246         if test -n "$RANLIB"; then
  7757         if test -n "$RANLIB"; then
  7247           archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7758           archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7248           postinstall_cmds='$RANLIB $lib'
  7759           postinstall_cmds='$RANLIB $lib'
  7249         fi
  7760         fi
  7250         ;;
  7761         ;;
  7251       aix[[4-9]]*)
  7762       aix[[4-9]]*)
  7252 	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7763 	if test ia64 != "$host_cpu"; then
  7253 	  test "$enable_shared" = yes && enable_static=no
  7764 	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
       
  7765 	  yes,aix,yes) ;;		# shared object as lib.so file only
       
  7766 	  yes,svr4,*) ;;		# shared object as lib.so archive member only
       
  7767 	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
       
  7768 	  esac
  7254 	fi
  7769 	fi
  7255         ;;
  7770         ;;
  7256     esac
  7771     esac
  7257     AC_MSG_RESULT([$enable_shared])
  7772     AC_MSG_RESULT([$enable_shared])
  7258 
  7773 
  7259     AC_MSG_CHECKING([whether to build static libraries])
  7774     AC_MSG_CHECKING([whether to build static libraries])
  7260     # Make sure either enable_shared or enable_static is yes.
  7775     # Make sure either enable_shared or enable_static is yes.
  7261     test "$enable_shared" = yes || enable_static=yes
  7776     test yes = "$enable_shared" || enable_static=yes
  7262     AC_MSG_RESULT([$enable_static])
  7777     AC_MSG_RESULT([$enable_static])
  7263 
  7778 
  7264     _LT_TAGVAR(GCC, $1)="$G77"
  7779     _LT_TAGVAR(GCC, $1)=$G77
  7265     _LT_TAGVAR(LD, $1)="$LD"
  7780     _LT_TAGVAR(LD, $1)=$LD
  7266 
  7781 
  7267     ## CAVEAT EMPTOR:
  7782     ## CAVEAT EMPTOR:
  7268     ## There is no encapsulation within the following macros, do not change
  7783     ## There is no encapsulation within the following macros, do not change
  7269     ## the running order or otherwise move them around unless you know exactly
  7784     ## the running order or otherwise move them around unless you know exactly
  7270     ## what you are doing...
  7785     ## what you are doing...
  7277 
  7792 
  7278     _LT_CONFIG($1)
  7793     _LT_CONFIG($1)
  7279   fi # test -n "$compiler"
  7794   fi # test -n "$compiler"
  7280 
  7795 
  7281   GCC=$lt_save_GCC
  7796   GCC=$lt_save_GCC
  7282   CC="$lt_save_CC"
  7797   CC=$lt_save_CC
  7283   CFLAGS="$lt_save_CFLAGS"
  7798   CFLAGS=$lt_save_CFLAGS
  7284 fi # test "$_lt_disable_F77" != yes
  7799 fi # test yes != "$_lt_disable_F77"
  7285 
  7800 
  7286 AC_LANG_POP
  7801 AC_LANG_POP
  7287 ])# _LT_LANG_F77_CONFIG
  7802 ])# _LT_LANG_F77_CONFIG
  7288 
  7803 
  7289 
  7804 
  7290 # _LT_LANG_FC_CONFIG([TAG])
  7805 # _LT_LANG_FC_CONFIG([TAG])
  7291 # -------------------------
  7806 # -------------------------
  7292 # Ensure that the configuration variables for a Fortran compiler are
  7807 # Ensure that the configuration variables for a Fortran compiler are
  7293 # suitably defined.  These variables are subsequently used by _LT_CONFIG
  7808 # suitably defined.  These variables are subsequently used by _LT_CONFIG
  7294 # to write the compiler configuration to `libtool'.
  7809 # to write the compiler configuration to 'libtool'.
  7295 m4_defun([_LT_LANG_FC_CONFIG],
  7810 m4_defun([_LT_LANG_FC_CONFIG],
  7296 [AC_LANG_PUSH(Fortran)
  7811 [AC_LANG_PUSH(Fortran)
  7297 
  7812 
  7298 if test -z "$FC" || test "X$FC" = "Xno"; then
  7813 if test -z "$FC" || test no = "$FC"; then
  7299   _lt_disable_FC=yes
  7814   _lt_disable_FC=yes
  7300 fi
  7815 fi
  7301 
  7816 
  7302 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7817 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7303 _LT_TAGVAR(allow_undefined_flag, $1)=
  7818 _LT_TAGVAR(allow_undefined_flag, $1)=
  7330 
  7845 
  7331 # No sense in running all these tests if we already determined that
  7846 # No sense in running all these tests if we already determined that
  7332 # the FC compiler isn't working.  Some variables (like enable_shared)
  7847 # the FC compiler isn't working.  Some variables (like enable_shared)
  7333 # are currently assumed to apply to all compilers on this platform,
  7848 # are currently assumed to apply to all compilers on this platform,
  7334 # and will be corrupted by setting them based on a non-working compiler.
  7849 # and will be corrupted by setting them based on a non-working compiler.
  7335 if test "$_lt_disable_FC" != yes; then
  7850 if test yes != "$_lt_disable_FC"; then
  7336   # Code to be used in simple compile tests
  7851   # Code to be used in simple compile tests
  7337   lt_simple_compile_test_code="\
  7852   lt_simple_compile_test_code="\
  7338       subroutine t
  7853       subroutine t
  7339       return
  7854       return
  7340       end
  7855       end
  7352   # save warnings/boilerplate of simple test code
  7867   # save warnings/boilerplate of simple test code
  7353   _LT_COMPILER_BOILERPLATE
  7868   _LT_COMPILER_BOILERPLATE
  7354   _LT_LINKER_BOILERPLATE
  7869   _LT_LINKER_BOILERPLATE
  7355 
  7870 
  7356   # Allow CC to be a program name with arguments.
  7871   # Allow CC to be a program name with arguments.
  7357   lt_save_CC="$CC"
  7872   lt_save_CC=$CC
  7358   lt_save_GCC=$GCC
  7873   lt_save_GCC=$GCC
  7359   lt_save_CFLAGS=$CFLAGS
  7874   lt_save_CFLAGS=$CFLAGS
  7360   CC=${FC-"f95"}
  7875   CC=${FC-"f95"}
  7361   CFLAGS=$FCFLAGS
  7876   CFLAGS=$FCFLAGS
  7362   compiler=$CC
  7877   compiler=$CC
  7368   if test -n "$compiler"; then
  7883   if test -n "$compiler"; then
  7369     AC_MSG_CHECKING([if libtool supports shared libraries])
  7884     AC_MSG_CHECKING([if libtool supports shared libraries])
  7370     AC_MSG_RESULT([$can_build_shared])
  7885     AC_MSG_RESULT([$can_build_shared])
  7371 
  7886 
  7372     AC_MSG_CHECKING([whether to build shared libraries])
  7887     AC_MSG_CHECKING([whether to build shared libraries])
  7373     test "$can_build_shared" = "no" && enable_shared=no
  7888     test no = "$can_build_shared" && enable_shared=no
  7374 
  7889 
  7375     # On AIX, shared libraries and static libraries use the same namespace, and
  7890     # On AIX, shared libraries and static libraries use the same namespace, and
  7376     # are all built from PIC.
  7891     # are all built from PIC.
  7377     case $host_os in
  7892     case $host_os in
  7378       aix3*)
  7893       aix3*)
  7379         test "$enable_shared" = yes && enable_static=no
  7894         test yes = "$enable_shared" && enable_static=no
  7380         if test -n "$RANLIB"; then
  7895         if test -n "$RANLIB"; then
  7381           archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7896           archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7382           postinstall_cmds='$RANLIB $lib'
  7897           postinstall_cmds='$RANLIB $lib'
  7383         fi
  7898         fi
  7384         ;;
  7899         ;;
  7385       aix[[4-9]]*)
  7900       aix[[4-9]]*)
  7386 	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7901 	if test ia64 != "$host_cpu"; then
  7387 	  test "$enable_shared" = yes && enable_static=no
  7902 	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
       
  7903 	  yes,aix,yes) ;;		# shared object as lib.so file only
       
  7904 	  yes,svr4,*) ;;		# shared object as lib.so archive member only
       
  7905 	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
       
  7906 	  esac
  7388 	fi
  7907 	fi
  7389         ;;
  7908         ;;
  7390     esac
  7909     esac
  7391     AC_MSG_RESULT([$enable_shared])
  7910     AC_MSG_RESULT([$enable_shared])
  7392 
  7911 
  7393     AC_MSG_CHECKING([whether to build static libraries])
  7912     AC_MSG_CHECKING([whether to build static libraries])
  7394     # Make sure either enable_shared or enable_static is yes.
  7913     # Make sure either enable_shared or enable_static is yes.
  7395     test "$enable_shared" = yes || enable_static=yes
  7914     test yes = "$enable_shared" || enable_static=yes
  7396     AC_MSG_RESULT([$enable_static])
  7915     AC_MSG_RESULT([$enable_static])
  7397 
  7916 
  7398     _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  7917     _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
  7399     _LT_TAGVAR(LD, $1)="$LD"
  7918     _LT_TAGVAR(LD, $1)=$LD
  7400 
  7919 
  7401     ## CAVEAT EMPTOR:
  7920     ## CAVEAT EMPTOR:
  7402     ## There is no encapsulation within the following macros, do not change
  7921     ## There is no encapsulation within the following macros, do not change
  7403     ## the running order or otherwise move them around unless you know exactly
  7922     ## the running order or otherwise move them around unless you know exactly
  7404     ## what you are doing...
  7923     ## what you are doing...
  7414   fi # test -n "$compiler"
  7933   fi # test -n "$compiler"
  7415 
  7934 
  7416   GCC=$lt_save_GCC
  7935   GCC=$lt_save_GCC
  7417   CC=$lt_save_CC
  7936   CC=$lt_save_CC
  7418   CFLAGS=$lt_save_CFLAGS
  7937   CFLAGS=$lt_save_CFLAGS
  7419 fi # test "$_lt_disable_FC" != yes
  7938 fi # test yes != "$_lt_disable_FC"
  7420 
  7939 
  7421 AC_LANG_POP
  7940 AC_LANG_POP
  7422 ])# _LT_LANG_FC_CONFIG
  7941 ])# _LT_LANG_FC_CONFIG
  7423 
  7942 
  7424 
  7943 
  7425 # _LT_LANG_GCJ_CONFIG([TAG])
  7944 # _LT_LANG_GCJ_CONFIG([TAG])
  7426 # --------------------------
  7945 # --------------------------
  7427 # Ensure that the configuration variables for the GNU Java Compiler compiler
  7946 # Ensure that the configuration variables for the GNU Java Compiler compiler
  7428 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
  7947 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
  7429 # to write the compiler configuration to `libtool'.
  7948 # to write the compiler configuration to 'libtool'.
  7430 m4_defun([_LT_LANG_GCJ_CONFIG],
  7949 m4_defun([_LT_LANG_GCJ_CONFIG],
  7431 [AC_REQUIRE([LT_PROG_GCJ])dnl
  7950 [AC_REQUIRE([LT_PROG_GCJ])dnl
  7432 AC_LANG_SAVE
  7951 AC_LANG_SAVE
  7433 
  7952 
  7434 # Source file extension for Java test sources.
  7953 # Source file extension for Java test sources.
  7458 GCC=yes
  7977 GCC=yes
  7459 CC=${GCJ-"gcj"}
  7978 CC=${GCJ-"gcj"}
  7460 CFLAGS=$GCJFLAGS
  7979 CFLAGS=$GCJFLAGS
  7461 compiler=$CC
  7980 compiler=$CC
  7462 _LT_TAGVAR(compiler, $1)=$CC
  7981 _LT_TAGVAR(compiler, $1)=$CC
  7463 _LT_TAGVAR(LD, $1)="$LD"
  7982 _LT_TAGVAR(LD, $1)=$LD
  7464 _LT_CC_BASENAME([$compiler])
  7983 _LT_CC_BASENAME([$compiler])
  7465 
  7984 
  7466 # GCJ did not exist at the time GCC didn't implicitly link libc in.
  7985 # GCJ did not exist at the time GCC didn't implicitly link libc in.
  7467 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7986 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7468 
  7987 
  7495 
  8014 
  7496 # _LT_LANG_GO_CONFIG([TAG])
  8015 # _LT_LANG_GO_CONFIG([TAG])
  7497 # --------------------------
  8016 # --------------------------
  7498 # Ensure that the configuration variables for the GNU Go compiler
  8017 # Ensure that the configuration variables for the GNU Go compiler
  7499 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
  8018 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
  7500 # to write the compiler configuration to `libtool'.
  8019 # to write the compiler configuration to 'libtool'.
  7501 m4_defun([_LT_LANG_GO_CONFIG],
  8020 m4_defun([_LT_LANG_GO_CONFIG],
  7502 [AC_REQUIRE([LT_PROG_GO])dnl
  8021 [AC_REQUIRE([LT_PROG_GO])dnl
  7503 AC_LANG_SAVE
  8022 AC_LANG_SAVE
  7504 
  8023 
  7505 # Source file extension for Go test sources.
  8024 # Source file extension for Go test sources.
  7529 GCC=yes
  8048 GCC=yes
  7530 CC=${GOC-"gccgo"}
  8049 CC=${GOC-"gccgo"}
  7531 CFLAGS=$GOFLAGS
  8050 CFLAGS=$GOFLAGS
  7532 compiler=$CC
  8051 compiler=$CC
  7533 _LT_TAGVAR(compiler, $1)=$CC
  8052 _LT_TAGVAR(compiler, $1)=$CC
  7534 _LT_TAGVAR(LD, $1)="$LD"
  8053 _LT_TAGVAR(LD, $1)=$LD
  7535 _LT_CC_BASENAME([$compiler])
  8054 _LT_CC_BASENAME([$compiler])
  7536 
  8055 
  7537 # Go did not exist at the time GCC didn't implicitly link libc in.
  8056 # Go did not exist at the time GCC didn't implicitly link libc in.
  7538 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8057 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7539 
  8058 
  7566 
  8085 
  7567 # _LT_LANG_RC_CONFIG([TAG])
  8086 # _LT_LANG_RC_CONFIG([TAG])
  7568 # -------------------------
  8087 # -------------------------
  7569 # Ensure that the configuration variables for the Windows resource compiler
  8088 # Ensure that the configuration variables for the Windows resource compiler
  7570 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
  8089 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
  7571 # to write the compiler configuration to `libtool'.
  8090 # to write the compiler configuration to 'libtool'.
  7572 m4_defun([_LT_LANG_RC_CONFIG],
  8091 m4_defun([_LT_LANG_RC_CONFIG],
  7573 [AC_REQUIRE([LT_PROG_RC])dnl
  8092 [AC_REQUIRE([LT_PROG_RC])dnl
  7574 AC_LANG_SAVE
  8093 AC_LANG_SAVE
  7575 
  8094 
  7576 # Source file extension for RC test sources.
  8095 # Source file extension for RC test sources.
  7582 
  8101 
  7583 # Code to be used in simple compile tests
  8102 # Code to be used in simple compile tests
  7584 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  8103 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  7585 
  8104 
  7586 # Code to be used in simple link tests
  8105 # Code to be used in simple link tests
  7587 lt_simple_link_test_code="$lt_simple_compile_test_code"
  8106 lt_simple_link_test_code=$lt_simple_compile_test_code
  7588 
  8107 
  7589 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8108 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7590 _LT_TAG_COMPILER
  8109 _LT_TAG_COMPILER
  7591 
  8110 
  7592 # save warnings/boilerplate of simple test code
  8111 # save warnings/boilerplate of simple test code
  7593 _LT_COMPILER_BOILERPLATE
  8112 _LT_COMPILER_BOILERPLATE
  7594 _LT_LINKER_BOILERPLATE
  8113 _LT_LINKER_BOILERPLATE
  7595 
  8114 
  7596 # Allow CC to be a program name with arguments.
  8115 # Allow CC to be a program name with arguments.
  7597 lt_save_CC="$CC"
  8116 lt_save_CC=$CC
  7598 lt_save_CFLAGS=$CFLAGS
  8117 lt_save_CFLAGS=$CFLAGS
  7599 lt_save_GCC=$GCC
  8118 lt_save_GCC=$GCC
  7600 GCC=
  8119 GCC=
  7601 CC=${RC-"windres"}
  8120 CC=${RC-"windres"}
  7602 CFLAGS=
  8121 CFLAGS=
  7621 # -----------
  8140 # -----------
  7622 AC_DEFUN([LT_PROG_GCJ],
  8141 AC_DEFUN([LT_PROG_GCJ],
  7623 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  8142 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  7624   [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  8143   [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  7625     [AC_CHECK_TOOL(GCJ, gcj,)
  8144     [AC_CHECK_TOOL(GCJ, gcj,)
  7626       test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  8145       test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
  7627       AC_SUBST(GCJFLAGS)])])[]dnl
  8146       AC_SUBST(GCJFLAGS)])])[]dnl
  7628 ])
  8147 ])
  7629 
  8148 
  7630 # Old name:
  8149 # Old name:
  7631 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  8150 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  7732 lt_ac_max=0
  8251 lt_ac_max=0
  7733 lt_ac_count=0
  8252 lt_ac_count=0
  7734 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  8253 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7735 # along with /bin/sed that truncates output.
  8254 # along with /bin/sed that truncates output.
  7736 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  8255 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7737   test ! -f $lt_ac_sed && continue
  8256   test ! -f "$lt_ac_sed" && continue
  7738   cat /dev/null > conftest.in
  8257   cat /dev/null > conftest.in
  7739   lt_ac_count=0
  8258   lt_ac_count=0
  7740   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  8259   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7741   # Check for GNU sed and select it if it is found.
  8260   # Check for GNU sed and select it if it is found.
  7742   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  8261   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7749     cp conftest.in conftest.nl
  8268     cp conftest.in conftest.nl
  7750     echo >>conftest.nl
  8269     echo >>conftest.nl
  7751     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  8270     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7752     cmp -s conftest.out conftest.nl || break
  8271     cmp -s conftest.out conftest.nl || break
  7753     # 10000 chars as input seems more than enough
  8272     # 10000 chars as input seems more than enough
  7754     test $lt_ac_count -gt 10 && break
  8273     test 10 -lt "$lt_ac_count" && break
  7755     lt_ac_count=`expr $lt_ac_count + 1`
  8274     lt_ac_count=`expr $lt_ac_count + 1`
  7756     if test $lt_ac_count -gt $lt_ac_max; then
  8275     if test "$lt_ac_count" -gt "$lt_ac_max"; then
  7757       lt_ac_max=$lt_ac_count
  8276       lt_ac_max=$lt_ac_count
  7758       lt_cv_path_SED=$lt_ac_sed
  8277       lt_cv_path_SED=$lt_ac_sed
  7759     fi
  8278     fi
  7760   done
  8279   done
  7761 done
  8280 done
  7775 # _LT_CHECK_SHELL_FEATURES
  8294 # _LT_CHECK_SHELL_FEATURES
  7776 # ------------------------
  8295 # ------------------------
  7777 # Find out whether the shell is Bourne or XSI compatible,
  8296 # Find out whether the shell is Bourne or XSI compatible,
  7778 # or has some other useful features.
  8297 # or has some other useful features.
  7779 m4_defun([_LT_CHECK_SHELL_FEATURES],
  8298 m4_defun([_LT_CHECK_SHELL_FEATURES],
  7780 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  8299 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7781 # Try some XSI features
       
  7782 xsi_shell=no
       
  7783 ( _lt_dummy="a/b/c"
       
  7784   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
       
  7785       = c,a/b,b/c, \
       
  7786     && eval 'test $(( 1 + 1 )) -eq 2 \
       
  7787     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
       
  7788   && xsi_shell=yes
       
  7789 AC_MSG_RESULT([$xsi_shell])
       
  7790 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
       
  7791 
       
  7792 AC_MSG_CHECKING([whether the shell understands "+="])
       
  7793 lt_shell_append=no
       
  7794 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
       
  7795     >/dev/null 2>&1 \
       
  7796   && lt_shell_append=yes
       
  7797 AC_MSG_RESULT([$lt_shell_append])
       
  7798 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
       
  7799 
       
  7800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
       
  7801   lt_unset=unset
  8300   lt_unset=unset
  7802 else
  8301 else
  7803   lt_unset=false
  8302   lt_unset=false
  7804 fi
  8303 fi
  7805 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  8304 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7819 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  8318 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7820 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  8319 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7821 ])# _LT_CHECK_SHELL_FEATURES
  8320 ])# _LT_CHECK_SHELL_FEATURES
  7822 
  8321 
  7823 
  8322 
  7824 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
       
  7825 # ------------------------------------------------------
       
  7826 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
       
  7827 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
       
  7828 m4_defun([_LT_PROG_FUNCTION_REPLACE],
       
  7829 [dnl {
       
  7830 sed -e '/^$1 ()$/,/^} # $1 /c\
       
  7831 $1 ()\
       
  7832 {\
       
  7833 m4_bpatsubsts([$2], [$], [\\], [^\([	 ]\)], [\\\1])
       
  7834 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
       
  7835   && mv -f "$cfgfile.tmp" "$cfgfile" \
       
  7836     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
       
  7837 test 0 -eq $? || _lt_function_replace_fail=:
       
  7838 ])
       
  7839 
       
  7840 
       
  7841 # _LT_PROG_REPLACE_SHELLFNS
       
  7842 # -------------------------
       
  7843 # Replace existing portable implementations of several shell functions with
       
  7844 # equivalent extended shell implementations where those features are available..
       
  7845 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
       
  7846 [if test x"$xsi_shell" = xyes; then
       
  7847   _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
       
  7848     case ${1} in
       
  7849       */*) func_dirname_result="${1%/*}${2}" ;;
       
  7850       *  ) func_dirname_result="${3}" ;;
       
  7851     esac])
       
  7852 
       
  7853   _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
       
  7854     func_basename_result="${1##*/}"])
       
  7855 
       
  7856   _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
       
  7857     case ${1} in
       
  7858       */*) func_dirname_result="${1%/*}${2}" ;;
       
  7859       *  ) func_dirname_result="${3}" ;;
       
  7860     esac
       
  7861     func_basename_result="${1##*/}"])
       
  7862 
       
  7863   _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
       
  7864     # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
       
  7865     # positional parameters, so assign one to ordinary parameter first.
       
  7866     func_stripname_result=${3}
       
  7867     func_stripname_result=${func_stripname_result#"${1}"}
       
  7868     func_stripname_result=${func_stripname_result%"${2}"}])
       
  7869 
       
  7870   _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
       
  7871     func_split_long_opt_name=${1%%=*}
       
  7872     func_split_long_opt_arg=${1#*=}])
       
  7873 
       
  7874   _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
       
  7875     func_split_short_opt_arg=${1#??}
       
  7876     func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
       
  7877 
       
  7878   _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
       
  7879     case ${1} in
       
  7880       *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
       
  7881       *)    func_lo2o_result=${1} ;;
       
  7882     esac])
       
  7883 
       
  7884   _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
       
  7885 
       
  7886   _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
       
  7887 
       
  7888   _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
       
  7889 fi
       
  7890 
       
  7891 if test x"$lt_shell_append" = xyes; then
       
  7892   _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
       
  7893 
       
  7894   _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
       
  7895     func_quote_for_eval "${2}"
       
  7896 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
       
  7897     eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
       
  7898 
       
  7899   # Save a `func_append' function call where possible by direct use of '+='
       
  7900   sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
       
  7901     && mv -f "$cfgfile.tmp" "$cfgfile" \
       
  7902       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
       
  7903   test 0 -eq $? || _lt_function_replace_fail=:
       
  7904 else
       
  7905   # Save a `func_append' function call even when '+=' is not available
       
  7906   sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
       
  7907     && mv -f "$cfgfile.tmp" "$cfgfile" \
       
  7908       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
       
  7909   test 0 -eq $? || _lt_function_replace_fail=:
       
  7910 fi
       
  7911 
       
  7912 if test x"$_lt_function_replace_fail" = x":"; then
       
  7913   AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
       
  7914 fi
       
  7915 ])
       
  7916 
       
  7917 # _LT_PATH_CONVERSION_FUNCTIONS
  8323 # _LT_PATH_CONVERSION_FUNCTIONS
  7918 # -----------------------------
  8324 # -----------------------------
  7919 # Determine which file name conversion functions should be used by
  8325 # Determine what file name conversion functions should be used by
  7920 # func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
  8326 # func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
  7921 # for certain cross-compile configurations and native mingw.
  8327 # for certain cross-compile configurations and native mingw.
  7922 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  8328 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7923 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  8329 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7924 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  8330 AC_REQUIRE([AC_CANONICAL_BUILD])dnl