Ignore:
Timestamp:
Mar 2, 2017, 7:39:59 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, Subpackage_levmar, Subpackage_vmg, ThirdParty_MPQC_rebuilt_buildsystem, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
Children:
73feb7
Parents:
860145
git-author:
Frederik Heber <heber@…> (11/16/16 11:14:10)
git-committer:
Frederik Heber <heber@…> (03/02/17 07:39:59)
Message:

Changes to mpqc_open to be usable as autoconf subdir.

Location:
ThirdParty/mpqc_open
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • ThirdParty/mpqc_open/aclocal.m4

    r860145 r482400e  
    1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    4 # 2005  Free Software Foundation, Inc.
     1# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
     2
     3# Copyright (C) 1996-2013 Free Software Foundation, Inc.
     4
    55# This file is free software; the Free Software Foundation
    66# gives unlimited permission to copy and/or distribute it,
     
    1212# PARTICULAR PURPOSE.
    1313
    14 m4_include([lib/autoconf/acinclude.m4])
    15 m4_include([lib/autoconf/cca.m4])
    16 m4_include([lib/autoconf/libtool.m4])
     14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
     15# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
     16#
     17#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
     18#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
     19#                 Foundation, Inc.
     20#   Written by Gordon Matzigkeit, 1996
     21#
     22# This file is free software; the Free Software Foundation gives
     23# unlimited permission to copy and/or distribute it, with or without
     24# modifications, as long as this notice is preserved.
     25
     26m4_define([_LT_COPYING], [dnl
     27#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
     28#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
     29#                 Foundation, Inc.
     30#   Written by Gordon Matzigkeit, 1996
     31#
     32#   This file is part of GNU Libtool.
     33#
     34# GNU Libtool is free software; you can redistribute it and/or
     35# modify it under the terms of the GNU General Public License as
     36# published by the Free Software Foundation; either version 2 of
     37# the License, or (at your option) any later version.
     38#
     39# As a special exception to the GNU General Public License,
     40# if you distribute this file as part of a program or library that
     41# is built using GNU Libtool, you may include this file under the
     42# same distribution terms that you use for the rest of that program.
     43#
     44# GNU Libtool is distributed in the hope that it will be useful,
     45# but WITHOUT ANY WARRANTY; without even the implied warranty of
     46# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     47# GNU General Public License for more details.
     48#
     49# You should have received a copy of the GNU General Public License
     50# along with GNU Libtool; see the file COPYING.  If not, a copy
     51# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
     52# obtained by writing to the Free Software Foundation, Inc.,
     53# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
     54])
     55
     56# serial 57 LT_INIT
     57
     58
     59# LT_PREREQ(VERSION)
     60# ------------------
     61# Complain and exit if this libtool version is less that VERSION.
     62m4_defun([LT_PREREQ],
     63[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
     64       [m4_default([$3],
     65                   [m4_fatal([Libtool version $1 or higher is required],
     66                             63)])],
     67       [$2])])
     68
     69
     70# _LT_CHECK_BUILDDIR
     71# ------------------
     72# Complain if the absolute build directory name contains unusual characters
     73m4_defun([_LT_CHECK_BUILDDIR],
     74[case `pwd` in
     75  *\ * | *\     *)
     76    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
     77esac
     78])
     79
     80
     81# LT_INIT([OPTIONS])
     82# ------------------
     83AC_DEFUN([LT_INIT],
     84[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
     85AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
     86AC_BEFORE([$0], [LT_LANG])dnl
     87AC_BEFORE([$0], [LT_OUTPUT])dnl
     88AC_BEFORE([$0], [LTDL_INIT])dnl
     89m4_require([_LT_CHECK_BUILDDIR])dnl
     90
     91dnl Autoconf doesn't catch unexpanded LT_ macros by default:
     92m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
     93m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
     94dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
     95dnl unless we require an AC_DEFUNed macro:
     96AC_REQUIRE([LTOPTIONS_VERSION])dnl
     97AC_REQUIRE([LTSUGAR_VERSION])dnl
     98AC_REQUIRE([LTVERSION_VERSION])dnl
     99AC_REQUIRE([LTOBSOLETE_VERSION])dnl
     100m4_require([_LT_PROG_LTMAIN])dnl
     101
     102_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
     103
     104dnl Parse OPTIONS
     105_LT_SET_OPTIONS([$0], [$1])
     106
     107# This can be used to rebuild libtool when needed
     108LIBTOOL_DEPS="$ltmain"
     109
     110# Always use our own libtool.
     111LIBTOOL='$(SHELL) $(top_builddir)/libtool'
     112AC_SUBST(LIBTOOL)dnl
     113
     114_LT_SETUP
     115
     116# Only expand once:
     117m4_define([LT_INIT])
     118])# LT_INIT
     119
     120# Old names:
     121AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
     122AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
     123dnl aclocal-1.4 backwards compatibility:
     124dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
     125dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
     126
     127
     128# _LT_CC_BASENAME(CC)
     129# -------------------
     130# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
     131m4_defun([_LT_CC_BASENAME],
     132[for cc_temp in $1""; do
     133  case $cc_temp in
     134    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
     135    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
     136    \-*) ;;
     137    *) break;;
     138  esac
     139done
     140cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
     141])
     142
     143
     144# _LT_FILEUTILS_DEFAULTS
     145# ----------------------
     146# It is okay to use these file commands and assume they have been set
     147# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
     148m4_defun([_LT_FILEUTILS_DEFAULTS],
     149[: ${CP="cp -f"}
     150: ${MV="mv -f"}
     151: ${RM="rm -f"}
     152])# _LT_FILEUTILS_DEFAULTS
     153
     154
     155# _LT_SETUP
     156# ---------
     157m4_defun([_LT_SETUP],
     158[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     159AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     160AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
     161AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
     162
     163_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
     164dnl
     165_LT_DECL([], [host_alias], [0], [The host system])dnl
     166_LT_DECL([], [host], [0])dnl
     167_LT_DECL([], [host_os], [0])dnl
     168dnl
     169_LT_DECL([], [build_alias], [0], [The build system])dnl
     170_LT_DECL([], [build], [0])dnl
     171_LT_DECL([], [build_os], [0])dnl
     172dnl
     173AC_REQUIRE([AC_PROG_CC])dnl
     174AC_REQUIRE([LT_PATH_LD])dnl
     175AC_REQUIRE([LT_PATH_NM])dnl
     176dnl
     177AC_REQUIRE([AC_PROG_LN_S])dnl
     178test -z "$LN_S" && LN_S="ln -s"
     179_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
     180dnl
     181AC_REQUIRE([LT_CMD_MAX_LEN])dnl
     182_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
     183_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
     184dnl
     185m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     186m4_require([_LT_CHECK_SHELL_FEATURES])dnl
     187m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
     188m4_require([_LT_CMD_RELOAD])dnl
     189m4_require([_LT_CHECK_MAGIC_METHOD])dnl
     190m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
     191m4_require([_LT_CMD_OLD_ARCHIVE])dnl
     192m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
     193m4_require([_LT_WITH_SYSROOT])dnl
     194
     195_LT_CONFIG_LIBTOOL_INIT([
     196# See if we are running on zsh, and set the options which allow our
     197# commands through without removal of \ escapes INIT.
     198if test -n "\${ZSH_VERSION+set}" ; then
     199   setopt NO_GLOB_SUBST
     200fi
     201])
     202if test -n "${ZSH_VERSION+set}" ; then
     203   setopt NO_GLOB_SUBST
     204fi
     205
     206_LT_CHECK_OBJDIR
     207
     208m4_require([_LT_TAG_COMPILER])dnl
     209
     210case $host_os in
     211aix3*)
     212  # AIX sometimes has problems with the GCC collect2 program.  For some
     213  # reason, if we set the COLLECT_NAMES environment variable, the problems
     214  # vanish in a puff of smoke.
     215  if test "X${COLLECT_NAMES+set}" != Xset; then
     216    COLLECT_NAMES=
     217    export COLLECT_NAMES
     218  fi
     219  ;;
     220esac
     221
     222# Global variables:
     223ofile=libtool
     224can_build_shared=yes
     225
     226# All known linkers require a `.a' archive for static linking (except MSVC,
     227# which needs '.lib').
     228libext=a
     229
     230with_gnu_ld="$lt_cv_prog_gnu_ld"
     231
     232old_CC="$CC"
     233old_CFLAGS="$CFLAGS"
     234
     235# Set sane defaults for various variables
     236test -z "$CC" && CC=cc
     237test -z "$LTCC" && LTCC=$CC
     238test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
     239test -z "$LD" && LD=ld
     240test -z "$ac_objext" && ac_objext=o
     241
     242_LT_CC_BASENAME([$compiler])
     243
     244# Only perform the check for file, if the check method requires it
     245test -z "$MAGIC_CMD" && MAGIC_CMD=file
     246case $deplibs_check_method in
     247file_magic*)
     248  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
     249    _LT_PATH_MAGIC
     250  fi
     251  ;;
     252esac
     253
     254# Use C for the default configuration in the libtool script
     255LT_SUPPORTED_TAG([CC])
     256_LT_LANG_C_CONFIG
     257_LT_LANG_DEFAULT_CONFIG
     258_LT_CONFIG_COMMANDS
     259])# _LT_SETUP
     260
     261
     262# _LT_PREPARE_SED_QUOTE_VARS
     263# --------------------------
     264# Define a few sed substitution that help us do robust quoting.
     265m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
     266[# Backslashify metacharacters that are still active within
     267# double-quoted strings.
     268sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
     269
     270# Same as above, but do not quote variable references.
     271double_quote_subst='s/\([["`\\]]\)/\\\1/g'
     272
     273# Sed substitution to delay expansion of an escaped shell variable in a
     274# double_quote_subst'ed string.
     275delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     276
     277# Sed substitution to delay expansion of an escaped single quote.
     278delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
     279
     280# Sed substitution to avoid accidental globbing in evaled expressions
     281no_glob_subst='s/\*/\\\*/g'
     282])
     283
     284# _LT_PROG_LTMAIN
     285# ---------------
     286# Note that this code is called both from `configure', and `config.status'
     287# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
     288# `config.status' has no value for ac_aux_dir unless we are using Automake,
     289# so we pass a copy along to make sure it has a sensible value anyway.
     290m4_defun([_LT_PROG_LTMAIN],
     291[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
     292_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
     293ltmain="$ac_aux_dir/ltmain.sh"
     294])# _LT_PROG_LTMAIN
     295
     296
     297
     298# So that we can recreate a full libtool script including additional
     299# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
     300# in macros and then make a single call at the end using the `libtool'
     301# label.
     302
     303
     304# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
     305# ----------------------------------------
     306# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
     307m4_define([_LT_CONFIG_LIBTOOL_INIT],
     308[m4_ifval([$1],
     309          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
     310                     [$1
     311])])])
     312
     313# Initialize.
     314m4_define([_LT_OUTPUT_LIBTOOL_INIT])
     315
     316
     317# _LT_CONFIG_LIBTOOL([COMMANDS])
     318# ------------------------------
     319# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
     320m4_define([_LT_CONFIG_LIBTOOL],
     321[m4_ifval([$1],
     322          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
     323                     [$1
     324])])])
     325
     326# Initialize.
     327m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
     328
     329
     330# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
     331# -----------------------------------------------------
     332m4_defun([_LT_CONFIG_SAVE_COMMANDS],
     333[_LT_CONFIG_LIBTOOL([$1])
     334_LT_CONFIG_LIBTOOL_INIT([$2])
     335])
     336
     337
     338# _LT_FORMAT_COMMENT([COMMENT])
     339# -----------------------------
     340# Add leading comment marks to the start of each line, and a trailing
     341# full-stop to the whole comment if one is not present already.
     342m4_define([_LT_FORMAT_COMMENT],
     343[m4_ifval([$1], [
     344m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
     345              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
     346)])
     347
     348
     349
     350
     351
     352# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
     353# -------------------------------------------------------------------
     354# CONFIGNAME is the name given to the value in the libtool script.
     355# VARNAME is the (base) name used in the configure script.
     356# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
     357# VARNAME.  Any other value will be used directly.
     358m4_define([_LT_DECL],
     359[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
     360    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
     361        [m4_ifval([$1], [$1], [$2])])
     362    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
     363    m4_ifval([$4],
     364        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
     365    lt_dict_add_subkey([lt_decl_dict], [$2],
     366        [tagged?], [m4_ifval([$5], [yes], [no])])])
     367])
     368
     369
     370# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
     371# --------------------------------------------------------
     372m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
     373
     374
     375# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
     376# ------------------------------------------------
     377m4_define([lt_decl_tag_varnames],
     378[_lt_decl_filter([tagged?], [yes], $@)])
     379
     380
     381# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
     382# ---------------------------------------------------------
     383m4_define([_lt_decl_filter],
     384[m4_case([$#],
     385  [0], [m4_fatal([$0: too few arguments: $#])],
     386  [1], [m4_fatal([$0: too few arguments: $#: $1])],
     387  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
     388  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
     389  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
     390])
     391
     392
     393# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
     394# --------------------------------------------------
     395m4_define([lt_decl_quote_varnames],
     396[_lt_decl_filter([value], [1], $@)])
     397
     398
     399# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
     400# ---------------------------------------------------
     401m4_define([lt_decl_dquote_varnames],
     402[_lt_decl_filter([value], [2], $@)])
     403
     404
     405# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
     406# ---------------------------------------------------
     407m4_define([lt_decl_varnames_tagged],
     408[m4_assert([$# <= 2])dnl
     409_$0(m4_quote(m4_default([$1], [[, ]])),
     410    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
     411    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
     412m4_define([_lt_decl_varnames_tagged],
     413[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
     414
     415
     416# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
     417# ------------------------------------------------
     418m4_define([lt_decl_all_varnames],
     419[_$0(m4_quote(m4_default([$1], [[, ]])),
     420     m4_if([$2], [],
     421           m4_quote(lt_decl_varnames),
     422        m4_quote(m4_shift($@))))[]dnl
     423])
     424m4_define([_lt_decl_all_varnames],
     425[lt_join($@, lt_decl_varnames_tagged([$1],
     426                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
     427])
     428
     429
     430# _LT_CONFIG_STATUS_DECLARE([VARNAME])
     431# ------------------------------------
     432# Quote a variable value, and forward it to `config.status' so that its
     433# declaration there will have the same value as in `configure'.  VARNAME
     434# must have a single quote delimited value for this to work.
     435m4_define([_LT_CONFIG_STATUS_DECLARE],
     436[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
     437
     438
     439# _LT_CONFIG_STATUS_DECLARATIONS
     440# ------------------------------
     441# We delimit libtool config variables with single quotes, so when
     442# we write them to config.status, we have to be sure to quote all
     443# embedded single quotes properly.  In configure, this macro expands
     444# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
     445#
     446#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
     447m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
     448[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
     449    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
     450
     451
     452# _LT_LIBTOOL_TAGS
     453# ----------------
     454# Output comment and list of tags supported by the script
     455m4_defun([_LT_LIBTOOL_TAGS],
     456[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
     457available_tags="_LT_TAGS"dnl
     458])
     459
     460
     461# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
     462# -----------------------------------
     463# Extract the dictionary values for VARNAME (optionally with TAG) and
     464# expand to a commented shell variable setting:
     465#
     466#    # Some comment about what VAR is for.
     467#    visible_name=$lt_internal_name
     468m4_define([_LT_LIBTOOL_DECLARE],
     469[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
     470                                           [description])))[]dnl
     471m4_pushdef([_libtool_name],
     472    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
     473m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
     474    [0], [_libtool_name=[$]$1],
     475    [1], [_libtool_name=$lt_[]$1],
     476    [2], [_libtool_name=$lt_[]$1],
     477    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
     478m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
     479])
     480
     481
     482# _LT_LIBTOOL_CONFIG_VARS
     483# -----------------------
     484# Produce commented declarations of non-tagged libtool config variables
     485# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
     486# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
     487# section) are produced by _LT_LIBTOOL_TAG_VARS.
     488m4_defun([_LT_LIBTOOL_CONFIG_VARS],
     489[m4_foreach([_lt_var],
     490    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
     491    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
     492
     493
     494# _LT_LIBTOOL_TAG_VARS(TAG)
     495# -------------------------
     496m4_define([_LT_LIBTOOL_TAG_VARS],
     497[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
     498    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
     499
     500
     501# _LT_TAGVAR(VARNAME, [TAGNAME])
     502# ------------------------------
     503m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
     504
     505
     506# _LT_CONFIG_COMMANDS
     507# -------------------
     508# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
     509# variables for single and double quote escaping we saved from calls
     510# to _LT_DECL, we can put quote escaped variables declarations
     511# into `config.status', and then the shell code to quote escape them in
     512# for loops in `config.status'.  Finally, any additional code accumulated
     513# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
     514m4_defun([_LT_CONFIG_COMMANDS],
     515[AC_PROVIDE_IFELSE([LT_OUTPUT],
     516        dnl If the libtool generation code has been placed in $CONFIG_LT,
     517        dnl instead of duplicating it all over again into config.status,
     518        dnl then we will have config.status run $CONFIG_LT later, so it
     519        dnl needs to know what name is stored there:
     520        [AC_CONFIG_COMMANDS([libtool],
     521            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
     522    dnl If the libtool generation code is destined for config.status,
     523    dnl expand the accumulated commands and init code now:
     524    [AC_CONFIG_COMMANDS([libtool],
     525        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
     526])#_LT_CONFIG_COMMANDS
     527
     528
     529# Initialize.
     530m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
     531[
     532
     533# The HP-UX ksh and POSIX shell print the target directory to stdout
     534# if CDPATH is set.
     535(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     536
     537sed_quote_subst='$sed_quote_subst'
     538double_quote_subst='$double_quote_subst'
     539delay_variable_subst='$delay_variable_subst'
     540_LT_CONFIG_STATUS_DECLARATIONS
     541LTCC='$LTCC'
     542LTCFLAGS='$LTCFLAGS'
     543compiler='$compiler_DEFAULT'
     544
     545# A function that is used when there is no print builtin or printf.
     546func_fallback_echo ()
     547{
     548  eval 'cat <<_LTECHO_EOF
     549\$[]1
     550_LTECHO_EOF'
     551}
     552
     553# Quote evaled strings.
     554for var in lt_decl_all_varnames([[ \
     555]], lt_decl_quote_varnames); do
     556    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
     557    *[[\\\\\\\`\\"\\\$]]*)
     558      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
     559      ;;
     560    *)
     561      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
     562      ;;
     563    esac
     564done
     565
     566# Double-quote double-evaled strings.
     567for var in lt_decl_all_varnames([[ \
     568]], lt_decl_dquote_varnames); do
     569    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
     570    *[[\\\\\\\`\\"\\\$]]*)
     571      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
     572      ;;
     573    *)
     574      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
     575      ;;
     576    esac
     577done
     578
     579_LT_OUTPUT_LIBTOOL_INIT
     580])
     581
     582# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
     583# ------------------------------------
     584# Generate a child script FILE with all initialization necessary to
     585# reuse the environment learned by the parent script, and make the
     586# file executable.  If COMMENT is supplied, it is inserted after the
     587# `#!' sequence but before initialization text begins.  After this
     588# macro, additional text can be appended to FILE to form the body of
     589# the child script.  The macro ends with non-zero status if the
     590# file could not be fully written (such as if the disk is full).
     591m4_ifdef([AS_INIT_GENERATED],
     592[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
     593[m4_defun([_LT_GENERATED_FILE_INIT],
     594[m4_require([AS_PREPARE])]dnl
     595[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
     596[lt_write_fail=0
     597cat >$1 <<_ASEOF || lt_write_fail=1
     598#! $SHELL
     599# Generated by $as_me.
     600$2
     601SHELL=\${CONFIG_SHELL-$SHELL}
     602export SHELL
     603_ASEOF
     604cat >>$1 <<\_ASEOF || lt_write_fail=1
     605AS_SHELL_SANITIZE
     606_AS_PREPARE
     607exec AS_MESSAGE_FD>&1
     608_ASEOF
     609test $lt_write_fail = 0 && chmod +x $1[]dnl
     610m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
     611
     612# LT_OUTPUT
     613# ---------
     614# This macro allows early generation of the libtool script (before
     615# AC_OUTPUT is called), incase it is used in configure for compilation
     616# tests.
     617AC_DEFUN([LT_OUTPUT],
     618[: ${CONFIG_LT=./config.lt}
     619AC_MSG_NOTICE([creating $CONFIG_LT])
     620_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
     621[# Run this file to recreate a libtool stub with the current configuration.])
     622
     623cat >>"$CONFIG_LT" <<\_LTEOF
     624lt_cl_silent=false
     625exec AS_MESSAGE_LOG_FD>>config.log
     626{
     627  echo
     628  AS_BOX([Running $as_me.])
     629} >&AS_MESSAGE_LOG_FD
     630
     631lt_cl_help="\
     632\`$as_me' creates a local libtool stub from the current configuration,
     633for use in further configure time tests before the real libtool is
     634generated.
     635
     636Usage: $[0] [[OPTIONS]]
     637
     638  -h, --help      print this help, then exit
     639  -V, --version   print version number, then exit
     640  -q, --quiet     do not print progress messages
     641  -d, --debug     don't remove temporary files
     642
     643Report bugs to <bug-libtool@gnu.org>."
     644
     645lt_cl_version="\
     646m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
     647m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
     648configured by $[0], generated by m4_PACKAGE_STRING.
     649
     650Copyright (C) 2011 Free Software Foundation, Inc.
     651This config.lt script is free software; the Free Software Foundation
     652gives unlimited permision to copy, distribute and modify it."
     653
     654while test $[#] != 0
     655do
     656  case $[1] in
     657    --version | --v* | -V )
     658      echo "$lt_cl_version"; exit 0 ;;
     659    --help | --h* | -h )
     660      echo "$lt_cl_help"; exit 0 ;;
     661    --debug | --d* | -d )
     662      debug=: ;;
     663    --quiet | --q* | --silent | --s* | -q )
     664      lt_cl_silent=: ;;
     665
     666    -*) AC_MSG_ERROR([unrecognized option: $[1]
     667Try \`$[0] --help' for more information.]) ;;
     668
     669    *) AC_MSG_ERROR([unrecognized argument: $[1]
     670Try \`$[0] --help' for more information.]) ;;
     671  esac
     672  shift
     673done
     674
     675if $lt_cl_silent; then
     676  exec AS_MESSAGE_FD>/dev/null
     677fi
     678_LTEOF
     679
     680cat >>"$CONFIG_LT" <<_LTEOF
     681_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
     682_LTEOF
     683
     684cat >>"$CONFIG_LT" <<\_LTEOF
     685AC_MSG_NOTICE([creating $ofile])
     686_LT_OUTPUT_LIBTOOL_COMMANDS
     687AS_EXIT(0)
     688_LTEOF
     689chmod +x "$CONFIG_LT"
     690
     691# configure is writing to config.log, but config.lt does its own redirection,
     692# appending to config.log, which fails on DOS, as config.log is still kept
     693# open by configure.  Here we exec the FD to /dev/null, effectively closing
     694# config.log, so it can be properly (re)opened and appended to by config.lt.
     695lt_cl_success=:
     696test "$silent" = yes &&
     697  lt_config_lt_args="$lt_config_lt_args --quiet"
     698exec AS_MESSAGE_LOG_FD>/dev/null
     699$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
     700exec AS_MESSAGE_LOG_FD>>config.log
     701$lt_cl_success || AS_EXIT(1)
     702])# LT_OUTPUT
     703
     704
     705# _LT_CONFIG(TAG)
     706# ---------------
     707# If TAG is the built-in tag, create an initial libtool script with a
     708# default configuration from the untagged config vars.  Otherwise add code
     709# to config.status for appending the configuration named by TAG from the
     710# matching tagged config vars.
     711m4_defun([_LT_CONFIG],
     712[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     713_LT_CONFIG_SAVE_COMMANDS([
     714  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
     715  m4_if(_LT_TAG, [C], [
     716    # See if we are running on zsh, and set the options which allow our
     717    # commands through without removal of \ escapes.
     718    if test -n "${ZSH_VERSION+set}" ; then
     719      setopt NO_GLOB_SUBST
     720    fi
     721
     722    cfgfile="${ofile}T"
     723    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
     724    $RM "$cfgfile"
     725
     726    cat <<_LT_EOF >> "$cfgfile"
     727#! $SHELL
     728
     729# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
     730# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
     731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     732# NOTE: Changes made to this file will be lost: look at ltmain.sh.
     733#
     734_LT_COPYING
     735_LT_LIBTOOL_TAGS
     736
     737# ### BEGIN LIBTOOL CONFIG
     738_LT_LIBTOOL_CONFIG_VARS
     739_LT_LIBTOOL_TAG_VARS
     740# ### END LIBTOOL CONFIG
     741
     742_LT_EOF
     743
     744  case $host_os in
     745  aix3*)
     746    cat <<\_LT_EOF >> "$cfgfile"
     747# AIX sometimes has problems with the GCC collect2 program.  For some
     748# reason, if we set the COLLECT_NAMES environment variable, the problems
     749# vanish in a puff of smoke.
     750if test "X${COLLECT_NAMES+set}" != Xset; then
     751  COLLECT_NAMES=
     752  export COLLECT_NAMES
     753fi
     754_LT_EOF
     755    ;;
     756  esac
     757
     758  _LT_PROG_LTMAIN
     759
     760  # We use sed instead of cat because bash on DJGPP gets confused if
     761  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
     762  # text mode, it properly converts lines to CR/LF.  This bash problem
     763  # is reportedly fixed, but why not run on old versions too?
     764  sed '$q' "$ltmain" >> "$cfgfile" \
     765     || (rm -f "$cfgfile"; exit 1)
     766
     767  _LT_PROG_REPLACE_SHELLFNS
     768
     769   mv -f "$cfgfile" "$ofile" ||
     770    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
     771  chmod +x "$ofile"
     772],
     773[cat <<_LT_EOF >> "$ofile"
     774
     775dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
     776dnl in a comment (ie after a #).
     777# ### BEGIN LIBTOOL TAG CONFIG: $1
     778_LT_LIBTOOL_TAG_VARS(_LT_TAG)
     779# ### END LIBTOOL TAG CONFIG: $1
     780_LT_EOF
     781])dnl /m4_if
     782],
     783[m4_if([$1], [], [
     784    PACKAGE='$PACKAGE'
     785    VERSION='$VERSION'
     786    TIMESTAMP='$TIMESTAMP'
     787    RM='$RM'
     788    ofile='$ofile'], [])
     789])dnl /_LT_CONFIG_SAVE_COMMANDS
     790])# _LT_CONFIG
     791
     792
     793# LT_SUPPORTED_TAG(TAG)
     794# ---------------------
     795# Trace this macro to discover what tags are supported by the libtool
     796# --tag option, using:
     797#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
     798AC_DEFUN([LT_SUPPORTED_TAG], [])
     799
     800
     801# C support is built-in for now
     802m4_define([_LT_LANG_C_enabled], [])
     803m4_define([_LT_TAGS], [])
     804
     805
     806# LT_LANG(LANG)
     807# -------------
     808# Enable libtool support for the given language if not already enabled.
     809AC_DEFUN([LT_LANG],
     810[AC_BEFORE([$0], [LT_OUTPUT])dnl
     811m4_case([$1],
     812  [C],                  [_LT_LANG(C)],
     813  [C++],                [_LT_LANG(CXX)],
     814  [Go],                 [_LT_LANG(GO)],
     815  [Java],               [_LT_LANG(GCJ)],
     816  [Fortran 77],         [_LT_LANG(F77)],
     817  [Fortran],            [_LT_LANG(FC)],
     818  [Windows Resource],   [_LT_LANG(RC)],
     819  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
     820    [_LT_LANG($1)],
     821    [m4_fatal([$0: unsupported language: "$1"])])])dnl
     822])# LT_LANG
     823
     824
     825# _LT_LANG(LANGNAME)
     826# ------------------
     827m4_defun([_LT_LANG],
     828[m4_ifdef([_LT_LANG_]$1[_enabled], [],
     829  [LT_SUPPORTED_TAG([$1])dnl
     830  m4_append([_LT_TAGS], [$1 ])dnl
     831  m4_define([_LT_LANG_]$1[_enabled], [])dnl
     832  _LT_LANG_$1_CONFIG($1)])dnl
     833])# _LT_LANG
     834
     835
     836m4_ifndef([AC_PROG_GO], [
     837# NOTE: This macro has been submitted for inclusion into   #
     838#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
     839#  a released version of Autoconf we should remove this    #
     840#  macro and use it instead.                               #
     841m4_defun([AC_PROG_GO],
     842[AC_LANG_PUSH(Go)dnl
     843AC_ARG_VAR([GOC],     [Go compiler command])dnl
     844AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
     845_AC_ARG_VAR_LDFLAGS()dnl
     846AC_CHECK_TOOL(GOC, gccgo)
     847if test -z "$GOC"; then
     848  if test -n "$ac_tool_prefix"; then
     849    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
     850  fi
     851fi
     852if test -z "$GOC"; then
     853  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
     854fi
     855])#m4_defun
     856])#m4_ifndef
     857
     858
     859# _LT_LANG_DEFAULT_CONFIG
     860# -----------------------
     861m4_defun([_LT_LANG_DEFAULT_CONFIG],
     862[AC_PROVIDE_IFELSE([AC_PROG_CXX],
     863  [LT_LANG(CXX)],
     864  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
     865
     866AC_PROVIDE_IFELSE([AC_PROG_F77],
     867  [LT_LANG(F77)],
     868  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
     869
     870AC_PROVIDE_IFELSE([AC_PROG_FC],
     871  [LT_LANG(FC)],
     872  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
     873
     874dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
     875dnl pulling things in needlessly.
     876AC_PROVIDE_IFELSE([AC_PROG_GCJ],
     877  [LT_LANG(GCJ)],
     878  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
     879    [LT_LANG(GCJ)],
     880    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
     881      [LT_LANG(GCJ)],
     882      [m4_ifdef([AC_PROG_GCJ],
     883        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
     884       m4_ifdef([A][M_PROG_GCJ],
     885        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
     886       m4_ifdef([LT_PROG_GCJ],
     887        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
     888
     889AC_PROVIDE_IFELSE([AC_PROG_GO],
     890  [LT_LANG(GO)],
     891  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
     892
     893AC_PROVIDE_IFELSE([LT_PROG_RC],
     894  [LT_LANG(RC)],
     895  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
     896])# _LT_LANG_DEFAULT_CONFIG
     897
     898# Obsolete macros:
     899AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
     900AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
     901AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
     902AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
     903AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
     904dnl aclocal-1.4 backwards compatibility:
     905dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
     906dnl AC_DEFUN([AC_LIBTOOL_F77], [])
     907dnl AC_DEFUN([AC_LIBTOOL_FC], [])
     908dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
     909dnl AC_DEFUN([AC_LIBTOOL_RC], [])
     910
     911
     912# _LT_TAG_COMPILER
     913# ----------------
     914m4_defun([_LT_TAG_COMPILER],
     915[AC_REQUIRE([AC_PROG_CC])dnl
     916
     917_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
     918_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
     919_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
     920_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
     921
     922# If no C compiler was specified, use CC.
     923LTCC=${LTCC-"$CC"}
     924
     925# If no C compiler flags were specified, use CFLAGS.
     926LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     927
     928# Allow CC to be a program name with arguments.
     929compiler=$CC
     930])# _LT_TAG_COMPILER
     931
     932
     933# _LT_COMPILER_BOILERPLATE
     934# ------------------------
     935# Check for compiler boilerplate output or warnings with
     936# the simple compiler test code.
     937m4_defun([_LT_COMPILER_BOILERPLATE],
     938[m4_require([_LT_DECL_SED])dnl
     939ac_outfile=conftest.$ac_objext
     940echo "$lt_simple_compile_test_code" >conftest.$ac_ext
     941eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
     942_lt_compiler_boilerplate=`cat conftest.err`
     943$RM conftest*
     944])# _LT_COMPILER_BOILERPLATE
     945
     946
     947# _LT_LINKER_BOILERPLATE
     948# ----------------------
     949# Check for linker boilerplate output or warnings with
     950# the simple link test code.
     951m4_defun([_LT_LINKER_BOILERPLATE],
     952[m4_require([_LT_DECL_SED])dnl
     953ac_outfile=conftest.$ac_objext
     954echo "$lt_simple_link_test_code" >conftest.$ac_ext
     955eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
     956_lt_linker_boilerplate=`cat conftest.err`
     957$RM -r conftest*
     958])# _LT_LINKER_BOILERPLATE
     959
     960# _LT_REQUIRED_DARWIN_CHECKS
     961# -------------------------
     962m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
     963  case $host_os in
     964    rhapsody* | darwin*)
     965    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
     966    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
     967    AC_CHECK_TOOL([LIPO], [lipo], [:])
     968    AC_CHECK_TOOL([OTOOL], [otool], [:])
     969    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
     970    _LT_DECL([], [DSYMUTIL], [1],
     971      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
     972    _LT_DECL([], [NMEDIT], [1],
     973      [Tool to change global to local symbols on Mac OS X])
     974    _LT_DECL([], [LIPO], [1],
     975      [Tool to manipulate fat objects and archives on Mac OS X])
     976    _LT_DECL([], [OTOOL], [1],
     977      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
     978    _LT_DECL([], [OTOOL64], [1],
     979      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
     980
     981    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
     982      [lt_cv_apple_cc_single_mod=no
     983      if test -z "${LT_MULTI_MODULE}"; then
     984        # By default we will add the -single_module flag. You can override
     985        # by either setting the environment variable LT_MULTI_MODULE
     986        # non-empty at configure time, or by adding -multi_module to the
     987        # link flags.
     988        rm -rf libconftest.dylib*
     989        echo "int foo(void){return 1;}" > conftest.c
     990        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
     991-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
     992        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
     993          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
     994        _lt_result=$?
     995        # If there is a non-empty error log, and "single_module"
     996        # appears in it, assume the flag caused a linker warning
     997        if test -s conftest.err && $GREP single_module conftest.err; then
     998          cat conftest.err >&AS_MESSAGE_LOG_FD
     999        # Otherwise, if the output was created with a 0 exit code from
     1000        # the compiler, it worked.
     1001        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
     1002          lt_cv_apple_cc_single_mod=yes
     1003        else
     1004          cat conftest.err >&AS_MESSAGE_LOG_FD
     1005        fi
     1006        rm -rf libconftest.dylib*
     1007        rm -f conftest.*
     1008      fi])
     1009
     1010    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
     1011      [lt_cv_ld_exported_symbols_list],
     1012      [lt_cv_ld_exported_symbols_list=no
     1013      save_LDFLAGS=$LDFLAGS
     1014      echo "_main" > conftest.sym
     1015      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
     1016      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
     1017        [lt_cv_ld_exported_symbols_list=yes],
     1018        [lt_cv_ld_exported_symbols_list=no])
     1019        LDFLAGS="$save_LDFLAGS"
     1020    ])
     1021
     1022    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
     1023      [lt_cv_ld_force_load=no
     1024      cat > conftest.c << _LT_EOF
     1025int forced_loaded() { return 2;}
     1026_LT_EOF
     1027      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
     1028      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
     1029      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
     1030      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
     1031      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
     1032      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
     1033      cat > conftest.c << _LT_EOF
     1034int main() { return 0;}
     1035_LT_EOF
     1036      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
     1037      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
     1038      _lt_result=$?
     1039      if test -s conftest.err && $GREP force_load conftest.err; then
     1040        cat conftest.err >&AS_MESSAGE_LOG_FD
     1041      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
     1042        lt_cv_ld_force_load=yes
     1043      else
     1044        cat conftest.err >&AS_MESSAGE_LOG_FD
     1045      fi
     1046        rm -f conftest.err libconftest.a conftest conftest.c
     1047        rm -rf conftest.dSYM
     1048    ])
     1049    case $host_os in
     1050    rhapsody* | darwin1.[[012]])
     1051      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
     1052    darwin1.*)
     1053      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     1054    darwin*) # darwin 5.x on
     1055      # if running on 10.5 or later, the deployment target defaults
     1056      # to the OS version, if on x86, and 10.4, the deployment
     1057      # target defaults to 10.4. Don't you love it?
     1058      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
     1059        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
     1060          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     1061        10.[[012]]*)
     1062          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     1063        10.*)
     1064          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     1065      esac
     1066    ;;
     1067  esac
     1068    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
     1069      _lt_dar_single_mod='$single_module'
     1070    fi
     1071    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
     1072      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
     1073    else
     1074      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
     1075    fi
     1076    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
     1077      _lt_dsymutil='~$DSYMUTIL $lib || :'
     1078    else
     1079      _lt_dsymutil=
     1080    fi
     1081    ;;
     1082  esac
     1083])
     1084
     1085
     1086# _LT_DARWIN_LINKER_FEATURES([TAG])
     1087# ---------------------------------
     1088# Checks for linker and compiler features on darwin
     1089m4_defun([_LT_DARWIN_LINKER_FEATURES],
     1090[
     1091  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
     1092  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
     1093  _LT_TAGVAR(hardcode_direct, $1)=no
     1094  _LT_TAGVAR(hardcode_automatic, $1)=yes
     1095  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
     1096  if test "$lt_cv_ld_force_load" = "yes"; then
     1097    _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\"`'
     1098    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
     1099                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
     1100  else
     1101    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
     1102  fi
     1103  _LT_TAGVAR(link_all_deplibs, $1)=yes
     1104  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
     1105  case $cc_basename in
     1106     ifort*) _lt_dar_can_shared=yes ;;
     1107     *) _lt_dar_can_shared=$GCC ;;
     1108  esac
     1109  if test "$_lt_dar_can_shared" = "yes"; then
     1110    output_verbose_link_cmd=func_echo_all
     1111    _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}"
     1112    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     1113    _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}"
     1114    _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}"
     1115    m4_if([$1], [CXX],
     1116[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
     1117      _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}"
     1118      _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}"
     1119    fi
     1120],[])
     1121  else
     1122  _LT_TAGVAR(ld_shlibs, $1)=no
     1123  fi
     1124])
     1125
     1126# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
     1127# ----------------------------------
     1128# Links a minimal program and checks the executable
     1129# for the system default hardcoded library path. In most cases,
     1130# this is /usr/lib:/lib, but when the MPI compilers are used
     1131# the location of the communication and MPI libs are included too.
     1132# If we don't find anything, use the default library path according
     1133# to the aix ld manual.
     1134# Store the results from the different compilers for each TAGNAME.
     1135# Allow to override them for all tags through lt_cv_aix_libpath.
     1136m4_defun([_LT_SYS_MODULE_PATH_AIX],
     1137[m4_require([_LT_DECL_SED])dnl
     1138if test "${lt_cv_aix_libpath+set}" = set; then
     1139  aix_libpath=$lt_cv_aix_libpath
     1140else
     1141  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
     1142  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
     1143  lt_aix_libpath_sed='[
     1144      /Import File Strings/,/^$/ {
     1145          /^0/ {
     1146              s/^0  *\([^ ]*\) *$/\1/
     1147              p
     1148          }
     1149      }]'
     1150  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     1151  # Check for a 64-bit object if we didn't find anything.
     1152  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
     1153    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     1154  fi],[])
     1155  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
     1156    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
     1157  fi
     1158  ])
     1159  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
     1160fi
     1161])# _LT_SYS_MODULE_PATH_AIX
     1162
     1163
     1164# _LT_SHELL_INIT(ARG)
     1165# -------------------
     1166m4_define([_LT_SHELL_INIT],
     1167[m4_divert_text([M4SH-INIT], [$1
     1168])])# _LT_SHELL_INIT
     1169
     1170
     1171
     1172# _LT_PROG_ECHO_BACKSLASH
     1173# -----------------------
     1174# Find how we can fake an echo command that does not interpret backslash.
     1175# In particular, with Autoconf 2.60 or later we add some code to the start
     1176# of the generated configure script which will find a shell with a builtin
     1177# printf (which we can use as an echo command).
     1178m4_defun([_LT_PROG_ECHO_BACKSLASH],
     1179[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     1180ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
     1181ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
     1182
     1183AC_MSG_CHECKING([how to print strings])
     1184# Test print first, because it will be a builtin if present.
     1185if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
     1186   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
     1187  ECHO='print -r --'
     1188elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
     1189  ECHO='printf %s\n'
     1190else
     1191  # Use this function as a fallback that always works.
     1192  func_fallback_echo ()
     1193  {
     1194    eval 'cat <<_LTECHO_EOF
     1195$[]1
     1196_LTECHO_EOF'
     1197  }
     1198  ECHO='func_fallback_echo'
     1199fi
     1200
     1201# func_echo_all arg...
     1202# Invoke $ECHO with all args, space-separated.
     1203func_echo_all ()
     1204{
     1205    $ECHO "$*"
     1206}
     1207
     1208case "$ECHO" in
     1209  printf*) AC_MSG_RESULT([printf]) ;;
     1210  print*) AC_MSG_RESULT([print -r]) ;;
     1211  *) AC_MSG_RESULT([cat]) ;;
     1212esac
     1213
     1214m4_ifdef([_AS_DETECT_SUGGESTED],
     1215[_AS_DETECT_SUGGESTED([
     1216  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
     1217    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     1218    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
     1219    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
     1220    PATH=/empty FPATH=/empty; export PATH FPATH
     1221    test "X`printf %s $ECHO`" = "X$ECHO" \
     1222      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
     1223
     1224_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
     1225_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
     1226])# _LT_PROG_ECHO_BACKSLASH
     1227
     1228
     1229# _LT_WITH_SYSROOT
     1230# ----------------
     1231AC_DEFUN([_LT_WITH_SYSROOT],
     1232[AC_MSG_CHECKING([for sysroot])
     1233AC_ARG_WITH([sysroot],
     1234[  --with-sysroot[=DIR] Search for dependent libraries within DIR
     1235                        (or the compiler's sysroot if not specified).],
     1236[], [with_sysroot=no])
     1237
     1238dnl lt_sysroot will always be passed unquoted.  We quote it here
     1239dnl in case the user passed a directory name.
     1240lt_sysroot=
     1241case ${with_sysroot} in #(
     1242 yes)
     1243   if test "$GCC" = yes; then
     1244     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
     1245   fi
     1246   ;; #(
     1247 /*)
     1248   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
     1249   ;; #(
     1250 no|'')
     1251   ;; #(
     1252 *)
     1253   AC_MSG_RESULT([${with_sysroot}])
     1254   AC_MSG_ERROR([The sysroot must be an absolute path.])
     1255   ;;
     1256esac
     1257
     1258 AC_MSG_RESULT([${lt_sysroot:-no}])
     1259_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
     1260[dependent libraries, and in which our libraries should be installed.])])
     1261
     1262# _LT_ENABLE_LOCK
     1263# ---------------
     1264m4_defun([_LT_ENABLE_LOCK],
     1265[AC_ARG_ENABLE([libtool-lock],
     1266  [AS_HELP_STRING([--disable-libtool-lock],
     1267    [avoid locking (might break parallel builds)])])
     1268test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
     1269
     1270# Some flags need to be propagated to the compiler or linker for good
     1271# libtool support.
     1272case $host in
     1273ia64-*-hpux*)
     1274  # Find out which ABI we are using.
     1275  echo 'int i;' > conftest.$ac_ext
     1276  if AC_TRY_EVAL(ac_compile); then
     1277    case `/usr/bin/file conftest.$ac_objext` in
     1278      *ELF-32*)
     1279        HPUX_IA64_MODE="32"
     1280        ;;
     1281      *ELF-64*)
     1282        HPUX_IA64_MODE="64"
     1283        ;;
     1284    esac
     1285  fi
     1286  rm -rf conftest*
     1287  ;;
     1288*-*-irix6*)
     1289  # Find out which ABI we are using.
     1290  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
     1291  if AC_TRY_EVAL(ac_compile); then
     1292    if test "$lt_cv_prog_gnu_ld" = yes; then
     1293      case `/usr/bin/file conftest.$ac_objext` in
     1294        *32-bit*)
     1295          LD="${LD-ld} -melf32bsmip"
     1296          ;;
     1297        *N32*)
     1298          LD="${LD-ld} -melf32bmipn32"
     1299          ;;
     1300        *64-bit*)
     1301          LD="${LD-ld} -melf64bmip"
     1302        ;;
     1303      esac
     1304    else
     1305      case `/usr/bin/file conftest.$ac_objext` in
     1306        *32-bit*)
     1307          LD="${LD-ld} -32"
     1308          ;;
     1309        *N32*)
     1310          LD="${LD-ld} -n32"
     1311          ;;
     1312        *64-bit*)
     1313          LD="${LD-ld} -64"
     1314          ;;
     1315      esac
     1316    fi
     1317  fi
     1318  rm -rf conftest*
     1319  ;;
     1320
     1321x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
     1322s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
     1323  # Find out which ABI we are using.
     1324  echo 'int i;' > conftest.$ac_ext
     1325  if AC_TRY_EVAL(ac_compile); then
     1326    case `/usr/bin/file conftest.o` in
     1327      *32-bit*)
     1328        case $host in
     1329          x86_64-*kfreebsd*-gnu)
     1330            LD="${LD-ld} -m elf_i386_fbsd"
     1331            ;;
     1332          x86_64-*linux*)
     1333            case `/usr/bin/file conftest.o` in
     1334              *x86-64*)
     1335                LD="${LD-ld} -m elf32_x86_64"
     1336                ;;
     1337              *)
     1338                LD="${LD-ld} -m elf_i386"
     1339                ;;
     1340            esac
     1341            ;;
     1342          powerpc64le-*)
     1343            LD="${LD-ld} -m elf32lppclinux"
     1344            ;;
     1345          powerpc64-*)
     1346            LD="${LD-ld} -m elf32ppclinux"
     1347            ;;
     1348          s390x-*linux*)
     1349            LD="${LD-ld} -m elf_s390"
     1350            ;;
     1351          sparc64-*linux*)
     1352            LD="${LD-ld} -m elf32_sparc"
     1353            ;;
     1354        esac
     1355        ;;
     1356      *64-bit*)
     1357        case $host in
     1358          x86_64-*kfreebsd*-gnu)
     1359            LD="${LD-ld} -m elf_x86_64_fbsd"
     1360            ;;
     1361          x86_64-*linux*)
     1362            LD="${LD-ld} -m elf_x86_64"
     1363            ;;
     1364          powerpcle-*)
     1365            LD="${LD-ld} -m elf64lppc"
     1366            ;;
     1367          powerpc-*)
     1368            LD="${LD-ld} -m elf64ppc"
     1369            ;;
     1370          s390*-*linux*|s390*-*tpf*)
     1371            LD="${LD-ld} -m elf64_s390"
     1372            ;;
     1373          sparc*-*linux*)
     1374            LD="${LD-ld} -m elf64_sparc"
     1375            ;;
     1376        esac
     1377        ;;
     1378    esac
     1379  fi
     1380  rm -rf conftest*
     1381  ;;
     1382
     1383*-*-sco3.2v5*)
     1384  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
     1385  SAVE_CFLAGS="$CFLAGS"
     1386  CFLAGS="$CFLAGS -belf"
     1387  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
     1388    [AC_LANG_PUSH(C)
     1389     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
     1390     AC_LANG_POP])
     1391  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
     1392    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
     1393    CFLAGS="$SAVE_CFLAGS"
     1394  fi
     1395  ;;
     1396*-*solaris*)
     1397  # Find out which ABI we are using.
     1398  echo 'int i;' > conftest.$ac_ext
     1399  if AC_TRY_EVAL(ac_compile); then
     1400    case `/usr/bin/file conftest.o` in
     1401    *64-bit*)
     1402      case $lt_cv_prog_gnu_ld in
     1403      yes*)
     1404        case $host in
     1405        i?86-*-solaris*)
     1406          LD="${LD-ld} -m elf_x86_64"
     1407          ;;
     1408        sparc*-*-solaris*)
     1409          LD="${LD-ld} -m elf64_sparc"
     1410          ;;
     1411        esac
     1412        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
     1413        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
     1414          LD="${LD-ld}_sol2"
     1415        fi
     1416        ;;
     1417      *)
     1418        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
     1419          LD="${LD-ld} -64"
     1420        fi
     1421        ;;
     1422      esac
     1423      ;;
     1424    esac
     1425  fi
     1426  rm -rf conftest*
     1427  ;;
     1428esac
     1429
     1430need_locks="$enable_libtool_lock"
     1431])# _LT_ENABLE_LOCK
     1432
     1433
     1434# _LT_PROG_AR
     1435# -----------
     1436m4_defun([_LT_PROG_AR],
     1437[AC_CHECK_TOOLS(AR, [ar], false)
     1438: ${AR=ar}
     1439: ${AR_FLAGS=cru}
     1440_LT_DECL([], [AR], [1], [The archiver])
     1441_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
     1442
     1443AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
     1444  [lt_cv_ar_at_file=no
     1445   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
     1446     [echo conftest.$ac_objext > conftest.lst
     1447      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
     1448      AC_TRY_EVAL([lt_ar_try])
     1449      if test "$ac_status" -eq 0; then
     1450        # Ensure the archiver fails upon bogus file names.
     1451        rm -f conftest.$ac_objext libconftest.a
     1452        AC_TRY_EVAL([lt_ar_try])
     1453        if test "$ac_status" -ne 0; then
     1454          lt_cv_ar_at_file=@
     1455        fi
     1456      fi
     1457      rm -f conftest.* libconftest.a
     1458     ])
     1459  ])
     1460
     1461if test "x$lt_cv_ar_at_file" = xno; then
     1462  archiver_list_spec=
     1463else
     1464  archiver_list_spec=$lt_cv_ar_at_file
     1465fi
     1466_LT_DECL([], [archiver_list_spec], [1],
     1467  [How to feed a file listing to the archiver])
     1468])# _LT_PROG_AR
     1469
     1470
     1471# _LT_CMD_OLD_ARCHIVE
     1472# -------------------
     1473m4_defun([_LT_CMD_OLD_ARCHIVE],
     1474[_LT_PROG_AR
     1475
     1476AC_CHECK_TOOL(STRIP, strip, :)
     1477test -z "$STRIP" && STRIP=:
     1478_LT_DECL([], [STRIP], [1], [A symbol stripping program])
     1479
     1480AC_CHECK_TOOL(RANLIB, ranlib, :)
     1481test -z "$RANLIB" && RANLIB=:
     1482_LT_DECL([], [RANLIB], [1],
     1483    [Commands used to install an old-style archive])
     1484
     1485# Determine commands to create old-style static archives.
     1486old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
     1487old_postinstall_cmds='chmod 644 $oldlib'
     1488old_postuninstall_cmds=
     1489
     1490if test -n "$RANLIB"; then
     1491  case $host_os in
     1492  openbsd*)
     1493    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
     1494    ;;
     1495  *)
     1496    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
     1497    ;;
     1498  esac
     1499  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
     1500fi
     1501
     1502case $host_os in
     1503  darwin*)
     1504    lock_old_archive_extraction=yes ;;
     1505  *)
     1506    lock_old_archive_extraction=no ;;
     1507esac
     1508_LT_DECL([], [old_postinstall_cmds], [2])
     1509_LT_DECL([], [old_postuninstall_cmds], [2])
     1510_LT_TAGDECL([], [old_archive_cmds], [2],
     1511    [Commands used to build an old-style archive])
     1512_LT_DECL([], [lock_old_archive_extraction], [0],
     1513    [Whether to use a lock for old archive extraction])
     1514])# _LT_CMD_OLD_ARCHIVE
     1515
     1516
     1517# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
     1518#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
     1519# ----------------------------------------------------------------
     1520# Check whether the given compiler option works
     1521AC_DEFUN([_LT_COMPILER_OPTION],
     1522[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     1523m4_require([_LT_DECL_SED])dnl
     1524AC_CACHE_CHECK([$1], [$2],
     1525  [$2=no
     1526   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
     1527   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     1528   lt_compiler_flag="$3"
     1529   # Insert the option either (1) after the last *FLAGS variable, or
     1530   # (2) before a word containing "conftest.", or (3) at the end.
     1531   # Note that $ac_compile itself does not contain backslashes and begins
     1532   # with a dollar sign (not a hyphen), so the echo should work correctly.
     1533   # The option is referenced via a variable to avoid confusing sed.
     1534   lt_compile=`echo "$ac_compile" | $SED \
     1535   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     1536   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
     1537   -e 's:$: $lt_compiler_flag:'`
     1538   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
     1539   (eval "$lt_compile" 2>conftest.err)
     1540   ac_status=$?
     1541   cat conftest.err >&AS_MESSAGE_LOG_FD
     1542   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
     1543   if (exit $ac_status) && test -s "$ac_outfile"; then
     1544     # The compiler can only warn and ignore the option if not recognized
     1545     # So say no if there are warnings other than the usual output.
     1546     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     1547     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     1548     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     1549       $2=yes
     1550     fi
     1551   fi
     1552   $RM conftest*
     1553])
     1554
     1555if test x"[$]$2" = xyes; then
     1556    m4_if([$5], , :, [$5])
     1557else
     1558    m4_if([$6], , :, [$6])
     1559fi
     1560])# _LT_COMPILER_OPTION
     1561
     1562# Old name:
     1563AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
     1564dnl aclocal-1.4 backwards compatibility:
     1565dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
     1566
     1567
     1568# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
     1569#                  [ACTION-SUCCESS], [ACTION-FAILURE])
     1570# ----------------------------------------------------
     1571# Check whether the given linker option works
     1572AC_DEFUN([_LT_LINKER_OPTION],
     1573[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     1574m4_require([_LT_DECL_SED])dnl
     1575AC_CACHE_CHECK([$1], [$2],
     1576  [$2=no
     1577   save_LDFLAGS="$LDFLAGS"
     1578   LDFLAGS="$LDFLAGS $3"
     1579   echo "$lt_simple_link_test_code" > conftest.$ac_ext
     1580   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     1581     # The linker can only warn and ignore the option if not recognized
     1582     # So say no if there are warnings
     1583     if test -s conftest.err; then
     1584       # Append any errors to the config.log.
     1585       cat conftest.err 1>&AS_MESSAGE_LOG_FD
     1586       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
     1587       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     1588       if diff conftest.exp conftest.er2 >/dev/null; then
     1589         $2=yes
     1590       fi
     1591     else
     1592       $2=yes
     1593     fi
     1594   fi
     1595   $RM -r conftest*
     1596   LDFLAGS="$save_LDFLAGS"
     1597])
     1598
     1599if test x"[$]$2" = xyes; then
     1600    m4_if([$4], , :, [$4])
     1601else
     1602    m4_if([$5], , :, [$5])
     1603fi
     1604])# _LT_LINKER_OPTION
     1605
     1606# Old name:
     1607AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
     1608dnl aclocal-1.4 backwards compatibility:
     1609dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
     1610
     1611
     1612# LT_CMD_MAX_LEN
     1613#---------------
     1614AC_DEFUN([LT_CMD_MAX_LEN],
     1615[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     1616# find the maximum length of command line arguments
     1617AC_MSG_CHECKING([the maximum length of command line arguments])
     1618AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
     1619  i=0
     1620  teststring="ABCD"
     1621
     1622  case $build_os in
     1623  msdosdjgpp*)
     1624    # On DJGPP, this test can blow up pretty badly due to problems in libc
     1625    # (any single argument exceeding 2000 bytes causes a buffer overrun
     1626    # during glob expansion).  Even if it were fixed, the result of this
     1627    # check would be larger than it should be.
     1628    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
     1629    ;;
     1630
     1631  gnu*)
     1632    # Under GNU Hurd, this test is not required because there is
     1633    # no limit to the length of command line arguments.
     1634    # Libtool will interpret -1 as no limit whatsoever
     1635    lt_cv_sys_max_cmd_len=-1;
     1636    ;;
     1637
     1638  cygwin* | mingw* | cegcc*)
     1639    # On Win9x/ME, this test blows up -- it succeeds, but takes
     1640    # about 5 minutes as the teststring grows exponentially.
     1641    # Worse, since 9x/ME are not pre-emptively multitasking,
     1642    # you end up with a "frozen" computer, even though with patience
     1643    # the test eventually succeeds (with a max line length of 256k).
     1644    # Instead, let's just punt: use the minimum linelength reported by
     1645    # all of the supported platforms: 8192 (on NT/2K/XP).
     1646    lt_cv_sys_max_cmd_len=8192;
     1647    ;;
     1648
     1649  mint*)
     1650    # On MiNT this can take a long time and run out of memory.
     1651    lt_cv_sys_max_cmd_len=8192;
     1652    ;;
     1653
     1654  amigaos*)
     1655    # On AmigaOS with pdksh, this test takes hours, literally.
     1656    # So we just punt and use a minimum line length of 8192.
     1657    lt_cv_sys_max_cmd_len=8192;
     1658    ;;
     1659
     1660  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
     1661    # This has been around since 386BSD, at least.  Likely further.
     1662    if test -x /sbin/sysctl; then
     1663      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
     1664    elif test -x /usr/sbin/sysctl; then
     1665      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
     1666    else
     1667      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
     1668    fi
     1669    # And add a safety zone
     1670    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     1671    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     1672    ;;
     1673
     1674  interix*)
     1675    # We know the value 262144 and hardcode it with a safety zone (like BSD)
     1676    lt_cv_sys_max_cmd_len=196608
     1677    ;;
     1678
     1679  os2*)
     1680    # The test takes a long time on OS/2.
     1681    lt_cv_sys_max_cmd_len=8192
     1682    ;;
     1683
     1684  osf*)
     1685    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
     1686    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
     1687    # nice to cause kernel panics so lets avoid the loop below.
     1688    # First set a reasonable default.
     1689    lt_cv_sys_max_cmd_len=16384
     1690    #
     1691    if test -x /sbin/sysconfig; then
     1692      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
     1693        *1*) lt_cv_sys_max_cmd_len=-1 ;;
     1694      esac
     1695    fi
     1696    ;;
     1697  sco3.2v5*)
     1698    lt_cv_sys_max_cmd_len=102400
     1699    ;;
     1700  sysv5* | sco5v6* | sysv4.2uw2*)
     1701    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
     1702    if test -n "$kargmax"; then
     1703      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
     1704    else
     1705      lt_cv_sys_max_cmd_len=32768
     1706    fi
     1707    ;;
     1708  *)
     1709    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
     1710    if test -n "$lt_cv_sys_max_cmd_len" && \
     1711        test undefined != "$lt_cv_sys_max_cmd_len"; then
     1712      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     1713      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     1714    else
     1715      # Make teststring a little bigger before we do anything with it.
     1716      # a 1K string should be a reasonable start.
     1717      for i in 1 2 3 4 5 6 7 8 ; do
     1718        teststring=$teststring$teststring
     1719      done
     1720      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
     1721      # If test is not a shell built-in, we'll probably end up computing a
     1722      # maximum length that is only half of the actual maximum length, but
     1723      # we can't tell.
     1724      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
     1725                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
     1726              test $i != 17 # 1/2 MB should be enough
     1727      do
     1728        i=`expr $i + 1`
     1729        teststring=$teststring$teststring
     1730      done
     1731      # Only check the string length outside the loop.
     1732      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
     1733      teststring=
     1734      # Add a significant safety factor because C++ compilers can tack on
     1735      # massive amounts of additional arguments before passing them to the
     1736      # linker.  It appears as though 1/2 is a usable value.
     1737      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     1738    fi
     1739    ;;
     1740  esac
     1741])
     1742if test -n $lt_cv_sys_max_cmd_len ; then
     1743  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
     1744else
     1745  AC_MSG_RESULT(none)
     1746fi
     1747max_cmd_len=$lt_cv_sys_max_cmd_len
     1748_LT_DECL([], [max_cmd_len], [0],
     1749    [What is the maximum length of a command?])
     1750])# LT_CMD_MAX_LEN
     1751
     1752# Old name:
     1753AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
     1754dnl aclocal-1.4 backwards compatibility:
     1755dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
     1756
     1757
     1758# _LT_HEADER_DLFCN
     1759# ----------------
     1760m4_defun([_LT_HEADER_DLFCN],
     1761[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
     1762])# _LT_HEADER_DLFCN
     1763
     1764
     1765# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
     1766#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
     1767# ----------------------------------------------------------------
     1768m4_defun([_LT_TRY_DLOPEN_SELF],
     1769[m4_require([_LT_HEADER_DLFCN])dnl
     1770if test "$cross_compiling" = yes; then :
     1771  [$4]
     1772else
     1773  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
     1774  lt_status=$lt_dlunknown
     1775  cat > conftest.$ac_ext <<_LT_EOF
     1776[#line $LINENO "configure"
     1777#include "confdefs.h"
     1778
     1779#if HAVE_DLFCN_H
     1780#include <dlfcn.h>
     1781#endif
     1782
     1783#include <stdio.h>
     1784
     1785#ifdef RTLD_GLOBAL
     1786#  define LT_DLGLOBAL           RTLD_GLOBAL
     1787#else
     1788#  ifdef DL_GLOBAL
     1789#    define LT_DLGLOBAL         DL_GLOBAL
     1790#  else
     1791#    define LT_DLGLOBAL         0
     1792#  endif
     1793#endif
     1794
     1795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
     1796   find out it does not work in some platform. */
     1797#ifndef LT_DLLAZY_OR_NOW
     1798#  ifdef RTLD_LAZY
     1799#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
     1800#  else
     1801#    ifdef DL_LAZY
     1802#      define LT_DLLAZY_OR_NOW          DL_LAZY
     1803#    else
     1804#      ifdef RTLD_NOW
     1805#        define LT_DLLAZY_OR_NOW        RTLD_NOW
     1806#      else
     1807#        ifdef DL_NOW
     1808#          define LT_DLLAZY_OR_NOW      DL_NOW
     1809#        else
     1810#          define LT_DLLAZY_OR_NOW      0
     1811#        endif
     1812#      endif
     1813#    endif
     1814#  endif
     1815#endif
     1816
     1817/* When -fvisbility=hidden is used, assume the code has been annotated
     1818   correspondingly for the symbols needed.  */
     1819#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
     1820int fnord () __attribute__((visibility("default")));
     1821#endif
     1822
     1823int fnord () { return 42; }
     1824int main ()
     1825{
     1826  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
     1827  int status = $lt_dlunknown;
     1828
     1829  if (self)
     1830    {
     1831      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
     1832      else
     1833        {
     1834          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
     1835          else puts (dlerror ());
     1836        }
     1837      /* dlclose (self); */
     1838    }
     1839  else
     1840    puts (dlerror ());
     1841
     1842  return status;
     1843}]
     1844_LT_EOF
     1845  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
     1846    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
     1847    lt_status=$?
     1848    case x$lt_status in
     1849      x$lt_dlno_uscore) $1 ;;
     1850      x$lt_dlneed_uscore) $2 ;;
     1851      x$lt_dlunknown|x*) $3 ;;
     1852    esac
     1853  else :
     1854    # compilation failed
     1855    $3
     1856  fi
     1857fi
     1858rm -fr conftest*
     1859])# _LT_TRY_DLOPEN_SELF
     1860
     1861
     1862# LT_SYS_DLOPEN_SELF
     1863# ------------------
     1864AC_DEFUN([LT_SYS_DLOPEN_SELF],
     1865[m4_require([_LT_HEADER_DLFCN])dnl
     1866if test "x$enable_dlopen" != xyes; then
     1867  enable_dlopen=unknown
     1868  enable_dlopen_self=unknown
     1869  enable_dlopen_self_static=unknown
     1870else
     1871  lt_cv_dlopen=no
     1872  lt_cv_dlopen_libs=
     1873
     1874  case $host_os in
     1875  beos*)
     1876    lt_cv_dlopen="load_add_on"
     1877    lt_cv_dlopen_libs=
     1878    lt_cv_dlopen_self=yes
     1879    ;;
     1880
     1881  mingw* | pw32* | cegcc*)
     1882    lt_cv_dlopen="LoadLibrary"
     1883    lt_cv_dlopen_libs=
     1884    ;;
     1885
     1886  cygwin*)
     1887    lt_cv_dlopen="dlopen"
     1888    lt_cv_dlopen_libs=
     1889    ;;
     1890
     1891  darwin*)
     1892  # if libdl is installed we need to link against it
     1893    AC_CHECK_LIB([dl], [dlopen],
     1894                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
     1895    lt_cv_dlopen="dyld"
     1896    lt_cv_dlopen_libs=
     1897    lt_cv_dlopen_self=yes
     1898    ])
     1899    ;;
     1900
     1901  *)
     1902    AC_CHECK_FUNC([shl_load],
     1903          [lt_cv_dlopen="shl_load"],
     1904      [AC_CHECK_LIB([dld], [shl_load],
     1905            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
     1906        [AC_CHECK_FUNC([dlopen],
     1907              [lt_cv_dlopen="dlopen"],
     1908          [AC_CHECK_LIB([dl], [dlopen],
     1909                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
     1910            [AC_CHECK_LIB([svld], [dlopen],
     1911                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
     1912              [AC_CHECK_LIB([dld], [dld_link],
     1913                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
     1914              ])
     1915            ])
     1916          ])
     1917        ])
     1918      ])
     1919    ;;
     1920  esac
     1921
     1922  if test "x$lt_cv_dlopen" != xno; then
     1923    enable_dlopen=yes
     1924  else
     1925    enable_dlopen=no
     1926  fi
     1927
     1928  case $lt_cv_dlopen in
     1929  dlopen)
     1930    save_CPPFLAGS="$CPPFLAGS"
     1931    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
     1932
     1933    save_LDFLAGS="$LDFLAGS"
     1934    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
     1935
     1936    save_LIBS="$LIBS"
     1937    LIBS="$lt_cv_dlopen_libs $LIBS"
     1938
     1939    AC_CACHE_CHECK([whether a program can dlopen itself],
     1940          lt_cv_dlopen_self, [dnl
     1941          _LT_TRY_DLOPEN_SELF(
     1942            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
     1943            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
     1944    ])
     1945
     1946    if test "x$lt_cv_dlopen_self" = xyes; then
     1947      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
     1948      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
     1949          lt_cv_dlopen_self_static, [dnl
     1950          _LT_TRY_DLOPEN_SELF(
     1951            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
     1952            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
     1953      ])
     1954    fi
     1955
     1956    CPPFLAGS="$save_CPPFLAGS"
     1957    LDFLAGS="$save_LDFLAGS"
     1958    LIBS="$save_LIBS"
     1959    ;;
     1960  esac
     1961
     1962  case $lt_cv_dlopen_self in
     1963  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
     1964  *) enable_dlopen_self=unknown ;;
     1965  esac
     1966
     1967  case $lt_cv_dlopen_self_static in
     1968  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
     1969  *) enable_dlopen_self_static=unknown ;;
     1970  esac
     1971fi
     1972_LT_DECL([dlopen_support], [enable_dlopen], [0],
     1973         [Whether dlopen is supported])
     1974_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
     1975         [Whether dlopen of programs is supported])
     1976_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
     1977         [Whether dlopen of statically linked programs is supported])
     1978])# LT_SYS_DLOPEN_SELF
     1979
     1980# Old name:
     1981AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
     1982dnl aclocal-1.4 backwards compatibility:
     1983dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
     1984
     1985
     1986# _LT_COMPILER_C_O([TAGNAME])
     1987# ---------------------------
     1988# Check to see if options -c and -o are simultaneously supported by compiler.
     1989# This macro does not hard code the compiler like AC_PROG_CC_C_O.
     1990m4_defun([_LT_COMPILER_C_O],
     1991[m4_require([_LT_DECL_SED])dnl
     1992m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     1993m4_require([_LT_TAG_COMPILER])dnl
     1994AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
     1995  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
     1996  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
     1997   $RM -r conftest 2>/dev/null
     1998   mkdir conftest
     1999   cd conftest
     2000   mkdir out
     2001   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     2002
     2003   lt_compiler_flag="-o out/conftest2.$ac_objext"
     2004   # Insert the option either (1) after the last *FLAGS variable, or
     2005   # (2) before a word containing "conftest.", or (3) at the end.
     2006   # Note that $ac_compile itself does not contain backslashes and begins
     2007   # with a dollar sign (not a hyphen), so the echo should work correctly.
     2008   lt_compile=`echo "$ac_compile" | $SED \
     2009   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     2010   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
     2011   -e 's:$: $lt_compiler_flag:'`
     2012   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
     2013   (eval "$lt_compile" 2>out/conftest.err)
     2014   ac_status=$?
     2015   cat out/conftest.err >&AS_MESSAGE_LOG_FD
     2016   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
     2017   if (exit $ac_status) && test -s out/conftest2.$ac_objext
     2018   then
     2019     # The compiler can only warn and ignore the option if not recognized
     2020     # So say no if there are warnings
     2021     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     2022     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     2023     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     2024       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
     2025     fi
     2026   fi
     2027   chmod u+w . 2>&AS_MESSAGE_LOG_FD
     2028   $RM conftest*
     2029   # SGI C++ compiler will create directory out/ii_files/ for
     2030   # template instantiation
     2031   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
     2032   $RM out/* && rmdir out
     2033   cd ..
     2034   $RM -r conftest
     2035   $RM conftest*
     2036])
     2037_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
     2038        [Does compiler simultaneously support -c and -o options?])
     2039])# _LT_COMPILER_C_O
     2040
     2041
     2042# _LT_COMPILER_FILE_LOCKS([TAGNAME])
     2043# ----------------------------------
     2044# Check to see if we can do hard links to lock some files if needed
     2045m4_defun([_LT_COMPILER_FILE_LOCKS],
     2046[m4_require([_LT_ENABLE_LOCK])dnl
     2047m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     2048_LT_COMPILER_C_O([$1])
     2049
     2050hard_links="nottested"
     2051if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
     2052  # do not overwrite the value of need_locks provided by the user
     2053  AC_MSG_CHECKING([if we can lock with hard links])
     2054  hard_links=yes
     2055  $RM conftest*
     2056  ln conftest.a conftest.b 2>/dev/null && hard_links=no
     2057  touch conftest.a
     2058  ln conftest.a conftest.b 2>&5 || hard_links=no
     2059  ln conftest.a conftest.b 2>/dev/null && hard_links=no
     2060  AC_MSG_RESULT([$hard_links])
     2061  if test "$hard_links" = no; then
     2062    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
     2063    need_locks=warn
     2064  fi
     2065else
     2066  need_locks=no
     2067fi
     2068_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
     2069])# _LT_COMPILER_FILE_LOCKS
     2070
     2071
     2072# _LT_CHECK_OBJDIR
     2073# ----------------
     2074m4_defun([_LT_CHECK_OBJDIR],
     2075[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
     2076[rm -f .libs 2>/dev/null
     2077mkdir .libs 2>/dev/null
     2078if test -d .libs; then
     2079  lt_cv_objdir=.libs
     2080else
     2081  # MS-DOS does not allow filenames that begin with a dot.
     2082  lt_cv_objdir=_libs
     2083fi
     2084rmdir .libs 2>/dev/null])
     2085objdir=$lt_cv_objdir
     2086_LT_DECL([], [objdir], [0],
     2087         [The name of the directory that contains temporary libtool files])dnl
     2088m4_pattern_allow([LT_OBJDIR])dnl
     2089AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
     2090  [Define to the sub-directory in which libtool stores uninstalled libraries.])
     2091])# _LT_CHECK_OBJDIR
     2092
     2093
     2094# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
     2095# --------------------------------------
     2096# Check hardcoding attributes.
     2097m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
     2098[AC_MSG_CHECKING([how to hardcode library paths into programs])
     2099_LT_TAGVAR(hardcode_action, $1)=
     2100if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
     2101   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
     2102   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
     2103
     2104  # We can hardcode non-existent directories.
     2105  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
     2106     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     2107     # have to relink, otherwise we might link with an installed library
     2108     # when we should be linking with a yet-to-be-installed one
     2109     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
     2110     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
     2111    # Linking always hardcodes the temporary library directory.
     2112    _LT_TAGVAR(hardcode_action, $1)=relink
     2113  else
     2114    # We can link without hardcoding, and we can hardcode nonexisting dirs.
     2115    _LT_TAGVAR(hardcode_action, $1)=immediate
     2116  fi
     2117else
     2118  # We cannot hardcode anything, or else we can only hardcode existing
     2119  # directories.
     2120  _LT_TAGVAR(hardcode_action, $1)=unsupported
     2121fi
     2122AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
     2123
     2124if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
     2125   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
     2126  # Fast installation is not supported
     2127  enable_fast_install=no
     2128elif test "$shlibpath_overrides_runpath" = yes ||
     2129     test "$enable_shared" = no; then
     2130  # Fast installation is not necessary
     2131  enable_fast_install=needless
     2132fi
     2133_LT_TAGDECL([], [hardcode_action], [0],
     2134    [How to hardcode a shared library path into an executable])
     2135])# _LT_LINKER_HARDCODE_LIBPATH
     2136
     2137
     2138# _LT_CMD_STRIPLIB
     2139# ----------------
     2140m4_defun([_LT_CMD_STRIPLIB],
     2141[m4_require([_LT_DECL_EGREP])
     2142striplib=
     2143old_striplib=
     2144AC_MSG_CHECKING([whether stripping libraries is possible])
     2145if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
     2146  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
     2147  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
     2148  AC_MSG_RESULT([yes])
     2149else
     2150# FIXME - insert some real tests, host_os isn't really good enough
     2151  case $host_os in
     2152  darwin*)
     2153    if test -n "$STRIP" ; then
     2154      striplib="$STRIP -x"
     2155      old_striplib="$STRIP -S"
     2156      AC_MSG_RESULT([yes])
     2157    else
     2158      AC_MSG_RESULT([no])
     2159    fi
     2160    ;;
     2161  *)
     2162    AC_MSG_RESULT([no])
     2163    ;;
     2164  esac
     2165fi
     2166_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
     2167_LT_DECL([], [striplib], [1])
     2168])# _LT_CMD_STRIPLIB
     2169
     2170
     2171# _LT_SYS_DYNAMIC_LINKER([TAG])
     2172# -----------------------------
     2173# PORTME Fill in your ld.so characteristics
     2174m4_defun([_LT_SYS_DYNAMIC_LINKER],
     2175[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     2176m4_require([_LT_DECL_EGREP])dnl
     2177m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     2178m4_require([_LT_DECL_OBJDUMP])dnl
     2179m4_require([_LT_DECL_SED])dnl
     2180m4_require([_LT_CHECK_SHELL_FEATURES])dnl
     2181AC_MSG_CHECKING([dynamic linker characteristics])
     2182m4_if([$1],
     2183        [], [
     2184if test "$GCC" = yes; then
     2185  case $host_os in
     2186    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
     2187    *) lt_awk_arg="/^libraries:/" ;;
     2188  esac
     2189  case $host_os in
     2190    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
     2191    *) lt_sed_strip_eq="s,=/,/,g" ;;
     2192  esac
     2193  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
     2194  case $lt_search_path_spec in
     2195  *\;*)
     2196    # if the path contains ";" then we assume it to be the separator
     2197    # otherwise default to the standard path separator (i.e. ":") - it is
     2198    # assumed that no part of a normal pathname contains ";" but that should
     2199    # okay in the real world where ";" in dirpaths is itself problematic.
     2200    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
     2201    ;;
     2202  *)
     2203    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
     2204    ;;
     2205  esac
     2206  # Ok, now we have the path, separated by spaces, we can step through it
     2207  # and add multilib dir if necessary.
     2208  lt_tmp_lt_search_path_spec=
     2209  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
     2210  for lt_sys_path in $lt_search_path_spec; do
     2211    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
     2212      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
     2213    else
     2214      test -d "$lt_sys_path" && \
     2215        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
     2216    fi
     2217  done
     2218  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
     2219BEGIN {RS=" "; FS="/|\n";} {
     2220  lt_foo="";
     2221  lt_count=0;
     2222  for (lt_i = NF; lt_i > 0; lt_i--) {
     2223    if ($lt_i != "" && $lt_i != ".") {
     2224      if ($lt_i == "..") {
     2225        lt_count++;
     2226      } else {
     2227        if (lt_count == 0) {
     2228          lt_foo="/" $lt_i lt_foo;
     2229        } else {
     2230          lt_count--;
     2231        }
     2232      }
     2233    }
     2234  }
     2235  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
     2236  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
     2237}'`
     2238  # AWK program above erroneously prepends '/' to C:/dos/paths
     2239  # for these hosts.
     2240  case $host_os in
     2241    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
     2242      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
     2243  esac
     2244  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
     2245else
     2246  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
     2247fi])
     2248library_names_spec=
     2249libname_spec='lib$name'
     2250soname_spec=
     2251shrext_cmds=".so"
     2252postinstall_cmds=
     2253postuninstall_cmds=
     2254finish_cmds=
     2255finish_eval=
     2256shlibpath_var=
     2257shlibpath_overrides_runpath=unknown
     2258version_type=none
     2259dynamic_linker="$host_os ld.so"
     2260sys_lib_dlsearch_path_spec="/lib /usr/lib"
     2261need_lib_prefix=unknown
     2262hardcode_into_libs=no
     2263
     2264# when you set need_version to no, make sure it does not cause -set_version
     2265# flags to be left without arguments
     2266need_version=unknown
     2267
     2268case $host_os in
     2269aix3*)
     2270  version_type=linux # correct to gnu/linux during the next big refactor
     2271  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
     2272  shlibpath_var=LIBPATH
     2273
     2274  # AIX 3 has no versioning support, so we append a major version to the name.
     2275  soname_spec='${libname}${release}${shared_ext}$major'
     2276  ;;
     2277
     2278aix[[4-9]]*)
     2279  version_type=linux # correct to gnu/linux during the next big refactor
     2280  need_lib_prefix=no
     2281  need_version=no
     2282  hardcode_into_libs=yes
     2283  if test "$host_cpu" = ia64; then
     2284    # AIX 5 supports IA64
     2285    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
     2286    shlibpath_var=LD_LIBRARY_PATH
     2287  else
     2288    # With GCC up to 2.95.x, collect2 would create an import file
     2289    # for dependence libraries.  The import file would start with
     2290    # the line `#! .'.  This would cause the generated library to
     2291    # depend on `.', always an invalid library.  This was fixed in
     2292    # development snapshots of GCC prior to 3.0.
     2293    case $host_os in
     2294      aix4 | aix4.[[01]] | aix4.[[01]].*)
     2295      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
     2296           echo ' yes '
     2297           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
     2298        :
     2299      else
     2300        can_build_shared=no
     2301      fi
     2302      ;;
     2303    esac
     2304    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
     2305    # soname into executable. Probably we can add versioning support to
     2306    # collect2, so additional links can be useful in future.
     2307    if test "$aix_use_runtimelinking" = yes; then
     2308      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
     2309      # instead of lib<name>.a to let people know that these are not
     2310      # typical AIX shared libraries.
     2311      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2312    else
     2313      # We preserve .a as extension for shared libraries through AIX4.2
     2314      # and later when we are not doing run time linking.
     2315      library_names_spec='${libname}${release}.a $libname.a'
     2316      soname_spec='${libname}${release}${shared_ext}$major'
     2317    fi
     2318    shlibpath_var=LIBPATH
     2319  fi
     2320  ;;
     2321
     2322amigaos*)
     2323  case $host_cpu in
     2324  powerpc)
     2325    # Since July 2007 AmigaOS4 officially supports .so libraries.
     2326    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
     2327    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2328    ;;
     2329  m68k)
     2330    library_names_spec='$libname.ixlibrary $libname.a'
     2331    # Create ${libname}_ixlibrary.a entries in /sys/libs.
     2332    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'
     2333    ;;
     2334  esac
     2335  ;;
     2336
     2337beos*)
     2338  library_names_spec='${libname}${shared_ext}'
     2339  dynamic_linker="$host_os ld.so"
     2340  shlibpath_var=LIBRARY_PATH
     2341  ;;
     2342
     2343bsdi[[45]]*)
     2344  version_type=linux # correct to gnu/linux during the next big refactor
     2345  need_version=no
     2346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2347  soname_spec='${libname}${release}${shared_ext}$major'
     2348  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
     2349  shlibpath_var=LD_LIBRARY_PATH
     2350  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
     2351  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
     2352  # the default ld.so.conf also contains /usr/contrib/lib and
     2353  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
     2354  # libtool to hard-code these into programs
     2355  ;;
     2356
     2357cygwin* | mingw* | pw32* | cegcc*)
     2358  version_type=windows
     2359  shrext_cmds=".dll"
     2360  need_version=no
     2361  need_lib_prefix=no
     2362
     2363  case $GCC,$cc_basename in
     2364  yes,*)
     2365    # gcc
     2366    library_names_spec='$libname.dll.a'
     2367    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     2368    postinstall_cmds='base_file=`basename \${file}`~
     2369      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
     2370      dldir=$destdir/`dirname \$dlpath`~
     2371      test -d \$dldir || mkdir -p \$dldir~
     2372      $install_prog $dir/$dlname \$dldir/$dlname~
     2373      chmod a+x \$dldir/$dlname~
     2374      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
     2375        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
     2376      fi'
     2377    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     2378      dlpath=$dir/\$dldll~
     2379       $RM \$dlpath'
     2380    shlibpath_overrides_runpath=yes
     2381
     2382    case $host_os in
     2383    cygwin*)
     2384      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
     2385      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
     2386m4_if([$1], [],[
     2387      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
     2388      ;;
     2389    mingw* | cegcc*)
     2390      # MinGW DLLs use traditional 'lib' prefix
     2391      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
     2392      ;;
     2393    pw32*)
     2394      # pw32 DLLs use 'pw' prefix rather than 'lib'
     2395      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
     2396      ;;
     2397    esac
     2398    dynamic_linker='Win32 ld.exe'
     2399    ;;
     2400
     2401  *,cl*)
     2402    # Native MSVC
     2403    libname_spec='$name'
     2404    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
     2405    library_names_spec='${libname}.dll.lib'
     2406
     2407    case $build_os in
     2408    mingw*)
     2409      sys_lib_search_path_spec=
     2410      lt_save_ifs=$IFS
     2411      IFS=';'
     2412      for lt_path in $LIB
     2413      do
     2414        IFS=$lt_save_ifs
     2415        # Let DOS variable expansion print the short 8.3 style file name.
     2416        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
     2417        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
     2418      done
     2419      IFS=$lt_save_ifs
     2420      # Convert to MSYS style.
     2421      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
     2422      ;;
     2423    cygwin*)
     2424      # Convert to unix form, then to dos form, then back to unix form
     2425      # but this time dos style (no spaces!) so that the unix form looks
     2426      # like /cygdrive/c/PROGRA~1:/cygdr...
     2427      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
     2428      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
     2429      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     2430      ;;
     2431    *)
     2432      sys_lib_search_path_spec="$LIB"
     2433      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
     2434        # It is most probably a Windows format PATH.
     2435        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     2436      else
     2437        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     2438      fi
     2439      # FIXME: find the short name or the path components, as spaces are
     2440      # common. (e.g. "Program Files" -> "PROGRA~1")
     2441      ;;
     2442    esac
     2443
     2444    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     2445    postinstall_cmds='base_file=`basename \${file}`~
     2446      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
     2447      dldir=$destdir/`dirname \$dlpath`~
     2448      test -d \$dldir || mkdir -p \$dldir~
     2449      $install_prog $dir/$dlname \$dldir/$dlname'
     2450    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     2451      dlpath=$dir/\$dldll~
     2452       $RM \$dlpath'
     2453    shlibpath_overrides_runpath=yes
     2454    dynamic_linker='Win32 link.exe'
     2455    ;;
     2456
     2457  *)
     2458    # Assume MSVC wrapper
     2459    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
     2460    dynamic_linker='Win32 ld.exe'
     2461    ;;
     2462  esac
     2463  # FIXME: first we should search . and the directory the executable is in
     2464  shlibpath_var=PATH
     2465  ;;
     2466
     2467darwin* | rhapsody*)
     2468  dynamic_linker="$host_os dyld"
     2469  version_type=darwin
     2470  need_lib_prefix=no
     2471  need_version=no
     2472  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
     2473  soname_spec='${libname}${release}${major}$shared_ext'
     2474  shlibpath_overrides_runpath=yes
     2475  shlibpath_var=DYLD_LIBRARY_PATH
     2476  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
     2477m4_if([$1], [],[
     2478  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
     2479  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
     2480  ;;
     2481
     2482dgux*)
     2483  version_type=linux # correct to gnu/linux during the next big refactor
     2484  need_lib_prefix=no
     2485  need_version=no
     2486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
     2487  soname_spec='${libname}${release}${shared_ext}$major'
     2488  shlibpath_var=LD_LIBRARY_PATH
     2489  ;;
     2490
     2491freebsd* | dragonfly*)
     2492  # DragonFly does not have aout.  When/if they implement a new
     2493  # versioning mechanism, adjust this.
     2494  if test -x /usr/bin/objformat; then
     2495    objformat=`/usr/bin/objformat`
     2496  else
     2497    case $host_os in
     2498    freebsd[[23]].*) objformat=aout ;;
     2499    *) objformat=elf ;;
     2500    esac
     2501  fi
     2502  version_type=freebsd-$objformat
     2503  case $version_type in
     2504    freebsd-elf*)
     2505      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     2506      need_version=no
     2507      need_lib_prefix=no
     2508      ;;
     2509    freebsd-*)
     2510      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
     2511      need_version=yes
     2512      ;;
     2513  esac
     2514  shlibpath_var=LD_LIBRARY_PATH
     2515  case $host_os in
     2516  freebsd2.*)
     2517    shlibpath_overrides_runpath=yes
     2518    ;;
     2519  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
     2520    shlibpath_overrides_runpath=yes
     2521    hardcode_into_libs=yes
     2522    ;;
     2523  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
     2524  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
     2525    shlibpath_overrides_runpath=no
     2526    hardcode_into_libs=yes
     2527    ;;
     2528  *) # from 4.6 on, and DragonFly
     2529    shlibpath_overrides_runpath=yes
     2530    hardcode_into_libs=yes
     2531    ;;
     2532  esac
     2533  ;;
     2534
     2535haiku*)
     2536  version_type=linux # correct to gnu/linux during the next big refactor
     2537  need_lib_prefix=no
     2538  need_version=no
     2539  dynamic_linker="$host_os runtime_loader"
     2540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
     2541  soname_spec='${libname}${release}${shared_ext}$major'
     2542  shlibpath_var=LIBRARY_PATH
     2543  shlibpath_overrides_runpath=yes
     2544  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
     2545  hardcode_into_libs=yes
     2546  ;;
     2547
     2548hpux9* | hpux10* | hpux11*)
     2549  # Give a soname corresponding to the major version so that dld.sl refuses to
     2550  # link against other versions.
     2551  version_type=sunos
     2552  need_lib_prefix=no
     2553  need_version=no
     2554  case $host_cpu in
     2555  ia64*)
     2556    shrext_cmds='.so'
     2557    hardcode_into_libs=yes
     2558    dynamic_linker="$host_os dld.so"
     2559    shlibpath_var=LD_LIBRARY_PATH
     2560    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     2561    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2562    soname_spec='${libname}${release}${shared_ext}$major'
     2563    if test "X$HPUX_IA64_MODE" = X32; then
     2564      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
     2565    else
     2566      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
     2567    fi
     2568    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     2569    ;;
     2570  hppa*64*)
     2571    shrext_cmds='.sl'
     2572    hardcode_into_libs=yes
     2573    dynamic_linker="$host_os dld.sl"
     2574    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     2575    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     2576    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2577    soname_spec='${libname}${release}${shared_ext}$major'
     2578    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     2579    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     2580    ;;
     2581  *)
     2582    shrext_cmds='.sl'
     2583    dynamic_linker="$host_os dld.sl"
     2584    shlibpath_var=SHLIB_PATH
     2585    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
     2586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2587    soname_spec='${libname}${release}${shared_ext}$major'
     2588    ;;
     2589  esac
     2590  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
     2591  postinstall_cmds='chmod 555 $lib'
     2592  # or fails outright, so override atomically:
     2593  install_override_mode=555
     2594  ;;
     2595
     2596interix[[3-9]]*)
     2597  version_type=linux # correct to gnu/linux during the next big refactor
     2598  need_lib_prefix=no
     2599  need_version=no
     2600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     2601  soname_spec='${libname}${release}${shared_ext}$major'
     2602  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
     2603  shlibpath_var=LD_LIBRARY_PATH
     2604  shlibpath_overrides_runpath=no
     2605  hardcode_into_libs=yes
     2606  ;;
     2607
     2608irix5* | irix6* | nonstopux*)
     2609  case $host_os in
     2610    nonstopux*) version_type=nonstopux ;;
     2611    *)
     2612        if test "$lt_cv_prog_gnu_ld" = yes; then
     2613                version_type=linux # correct to gnu/linux during the next big refactor
     2614        else
     2615                version_type=irix
     2616        fi ;;
     2617  esac
     2618  need_lib_prefix=no
     2619  need_version=no
     2620  soname_spec='${libname}${release}${shared_ext}$major'
     2621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
     2622  case $host_os in
     2623  irix5* | nonstopux*)
     2624    libsuff= shlibsuff=
     2625    ;;
     2626  *)
     2627    case $LD in # libtool.m4 will add one of these switches to LD
     2628    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
     2629      libsuff= shlibsuff= libmagic=32-bit;;
     2630    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
     2631      libsuff=32 shlibsuff=N32 libmagic=N32;;
     2632    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
     2633      libsuff=64 shlibsuff=64 libmagic=64-bit;;
     2634    *) libsuff= shlibsuff= libmagic=never-match;;
     2635    esac
     2636    ;;
     2637  esac
     2638  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
     2639  shlibpath_overrides_runpath=no
     2640  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
     2641  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
     2642  hardcode_into_libs=yes
     2643  ;;
     2644
     2645# No shared lib support for Linux oldld, aout, or coff.
     2646linux*oldld* | linux*aout* | linux*coff*)
     2647  dynamic_linker=no
     2648  ;;
     2649
     2650# This must be glibc/ELF.
     2651linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
     2652  version_type=linux # correct to gnu/linux during the next big refactor
     2653  need_lib_prefix=no
     2654  need_version=no
     2655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2656  soname_spec='${libname}${release}${shared_ext}$major'
     2657  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
     2658  shlibpath_var=LD_LIBRARY_PATH
     2659  shlibpath_overrides_runpath=no
     2660
     2661  # Some binutils ld are patched to set DT_RUNPATH
     2662  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
     2663    [lt_cv_shlibpath_overrides_runpath=no
     2664    save_LDFLAGS=$LDFLAGS
     2665    save_libdir=$libdir
     2666    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
     2667         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
     2668    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
     2669      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
     2670         [lt_cv_shlibpath_overrides_runpath=yes])])
     2671    LDFLAGS=$save_LDFLAGS
     2672    libdir=$save_libdir
     2673    ])
     2674  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
     2675
     2676  # This implies no fast_install, which is unacceptable.
     2677  # Some rework will be needed to allow for fast_install
     2678  # before this can be enabled.
     2679  hardcode_into_libs=yes
     2680
     2681  # Append ld.so.conf contents to the search path
     2682  if test -f /etc/ld.so.conf; then
     2683    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' ' '`
     2684    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
     2685  fi
     2686
     2687  # We used to test for /lib/ld.so.1 and disable shared libraries on
     2688  # powerpc, because MkLinux only supported shared libraries with the
     2689  # GNU dynamic linker.  Since this was broken with cross compilers,
     2690  # most powerpc-linux boxes support dynamic linking these days and
     2691  # people can always --disable-shared, the test was removed, and we
     2692  # assume the GNU/Linux dynamic linker is in use.
     2693  dynamic_linker='GNU/Linux ld.so'
     2694  ;;
     2695
     2696netbsdelf*-gnu)
     2697  version_type=linux
     2698  need_lib_prefix=no
     2699  need_version=no
     2700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     2701  soname_spec='${libname}${release}${shared_ext}$major'
     2702  shlibpath_var=LD_LIBRARY_PATH
     2703  shlibpath_overrides_runpath=no
     2704  hardcode_into_libs=yes
     2705  dynamic_linker='NetBSD ld.elf_so'
     2706  ;;
     2707
     2708netbsd*)
     2709  version_type=sunos
     2710  need_lib_prefix=no
     2711  need_version=no
     2712  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
     2713    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     2714    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     2715    dynamic_linker='NetBSD (a.out) ld.so'
     2716  else
     2717    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     2718    soname_spec='${libname}${release}${shared_ext}$major'
     2719    dynamic_linker='NetBSD ld.elf_so'
     2720  fi
     2721  shlibpath_var=LD_LIBRARY_PATH
     2722  shlibpath_overrides_runpath=yes
     2723  hardcode_into_libs=yes
     2724  ;;
     2725
     2726newsos6)
     2727  version_type=linux # correct to gnu/linux during the next big refactor
     2728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2729  shlibpath_var=LD_LIBRARY_PATH
     2730  shlibpath_overrides_runpath=yes
     2731  ;;
     2732
     2733*nto* | *qnx*)
     2734  version_type=qnx
     2735  need_lib_prefix=no
     2736  need_version=no
     2737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2738  soname_spec='${libname}${release}${shared_ext}$major'
     2739  shlibpath_var=LD_LIBRARY_PATH
     2740  shlibpath_overrides_runpath=no
     2741  hardcode_into_libs=yes
     2742  dynamic_linker='ldqnx.so'
     2743  ;;
     2744
     2745openbsd*)
     2746  version_type=sunos
     2747  sys_lib_dlsearch_path_spec="/usr/lib"
     2748  need_lib_prefix=no
     2749  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     2750  case $host_os in
     2751    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
     2752    *)                          need_version=no  ;;
     2753  esac
     2754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     2755  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     2756  shlibpath_var=LD_LIBRARY_PATH
     2757  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     2758    case $host_os in
     2759      openbsd2.[[89]] | openbsd2.[[89]].*)
     2760        shlibpath_overrides_runpath=no
     2761        ;;
     2762      *)
     2763        shlibpath_overrides_runpath=yes
     2764        ;;
     2765      esac
     2766  else
     2767    shlibpath_overrides_runpath=yes
     2768  fi
     2769  ;;
     2770
     2771os2*)
     2772  libname_spec='$name'
     2773  shrext_cmds=".dll"
     2774  need_lib_prefix=no
     2775  library_names_spec='$libname${shared_ext} $libname.a'
     2776  dynamic_linker='OS/2 ld.exe'
     2777  shlibpath_var=LIBPATH
     2778  ;;
     2779
     2780osf3* | osf4* | osf5*)
     2781  version_type=osf
     2782  need_lib_prefix=no
     2783  need_version=no
     2784  soname_spec='${libname}${release}${shared_ext}$major'
     2785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2786  shlibpath_var=LD_LIBRARY_PATH
     2787  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
     2788  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
     2789  ;;
     2790
     2791rdos*)
     2792  dynamic_linker=no
     2793  ;;
     2794
     2795solaris*)
     2796  version_type=linux # correct to gnu/linux during the next big refactor
     2797  need_lib_prefix=no
     2798  need_version=no
     2799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2800  soname_spec='${libname}${release}${shared_ext}$major'
     2801  shlibpath_var=LD_LIBRARY_PATH
     2802  shlibpath_overrides_runpath=yes
     2803  hardcode_into_libs=yes
     2804  # ldd complains unless libraries are executable
     2805  postinstall_cmds='chmod +x $lib'
     2806  ;;
     2807
     2808sunos4*)
     2809  version_type=sunos
     2810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     2811  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
     2812  shlibpath_var=LD_LIBRARY_PATH
     2813  shlibpath_overrides_runpath=yes
     2814  if test "$with_gnu_ld" = yes; then
     2815    need_lib_prefix=no
     2816  fi
     2817  need_version=yes
     2818  ;;
     2819
     2820sysv4 | sysv4.3*)
     2821  version_type=linux # correct to gnu/linux during the next big refactor
     2822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2823  soname_spec='${libname}${release}${shared_ext}$major'
     2824  shlibpath_var=LD_LIBRARY_PATH
     2825  case $host_vendor in
     2826    sni)
     2827      shlibpath_overrides_runpath=no
     2828      need_lib_prefix=no
     2829      runpath_var=LD_RUN_PATH
     2830      ;;
     2831    siemens)
     2832      need_lib_prefix=no
     2833      ;;
     2834    motorola)
     2835      need_lib_prefix=no
     2836      need_version=no
     2837      shlibpath_overrides_runpath=no
     2838      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
     2839      ;;
     2840  esac
     2841  ;;
     2842
     2843sysv4*MP*)
     2844  if test -d /usr/nec ;then
     2845    version_type=linux # correct to gnu/linux during the next big refactor
     2846    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
     2847    soname_spec='$libname${shared_ext}.$major'
     2848    shlibpath_var=LD_LIBRARY_PATH
     2849  fi
     2850  ;;
     2851
     2852sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     2853  version_type=freebsd-elf
     2854  need_lib_prefix=no
     2855  need_version=no
     2856  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     2857  soname_spec='${libname}${release}${shared_ext}$major'
     2858  shlibpath_var=LD_LIBRARY_PATH
     2859  shlibpath_overrides_runpath=yes
     2860  hardcode_into_libs=yes
     2861  if test "$with_gnu_ld" = yes; then
     2862    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
     2863  else
     2864    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
     2865    case $host_os in
     2866      sco3.2v5*)
     2867        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
     2868        ;;
     2869    esac
     2870  fi
     2871  sys_lib_dlsearch_path_spec='/usr/lib'
     2872  ;;
     2873
     2874tpf*)
     2875  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
     2876  version_type=linux # correct to gnu/linux during the next big refactor
     2877  need_lib_prefix=no
     2878  need_version=no
     2879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2880  shlibpath_var=LD_LIBRARY_PATH
     2881  shlibpath_overrides_runpath=no
     2882  hardcode_into_libs=yes
     2883  ;;
     2884
     2885uts4*)
     2886  version_type=linux # correct to gnu/linux during the next big refactor
     2887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2888  soname_spec='${libname}${release}${shared_ext}$major'
     2889  shlibpath_var=LD_LIBRARY_PATH
     2890  ;;
     2891
     2892*)
     2893  dynamic_linker=no
     2894  ;;
     2895esac
     2896AC_MSG_RESULT([$dynamic_linker])
     2897test "$dynamic_linker" = no && can_build_shared=no
     2898
     2899variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     2900if test "$GCC" = yes; then
     2901  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     2902fi
     2903
     2904if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
     2905  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
     2906fi
     2907if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
     2908  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
     2909fi
     2910
     2911_LT_DECL([], [variables_saved_for_relink], [1],
     2912    [Variables whose values should be saved in libtool wrapper scripts and
     2913    restored at link time])
     2914_LT_DECL([], [need_lib_prefix], [0],
     2915    [Do we need the "lib" prefix for modules?])
     2916_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
     2917_LT_DECL([], [version_type], [0], [Library versioning type])
     2918_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
     2919_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
     2920_LT_DECL([], [shlibpath_overrides_runpath], [0],
     2921    [Is shlibpath searched before the hard-coded library search path?])
     2922_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
     2923_LT_DECL([], [library_names_spec], [1],
     2924    [[List of archive names.  First name is the real one, the rest are links.
     2925    The last name is the one that the linker finds with -lNAME]])
     2926_LT_DECL([], [soname_spec], [1],
     2927    [[The coded name of the library, if different from the real name]])
     2928_LT_DECL([], [install_override_mode], [1],
     2929    [Permission mode override for installation of shared libraries])
     2930_LT_DECL([], [postinstall_cmds], [2],
     2931    [Command to use after installation of a shared archive])
     2932_LT_DECL([], [postuninstall_cmds], [2],
     2933    [Command to use after uninstallation of a shared archive])
     2934_LT_DECL([], [finish_cmds], [2],
     2935    [Commands used to finish a libtool library installation in a directory])
     2936_LT_DECL([], [finish_eval], [1],
     2937    [[As "finish_cmds", except a single script fragment to be evaled but
     2938    not shown]])
     2939_LT_DECL([], [hardcode_into_libs], [0],
     2940    [Whether we should hardcode library paths into libraries])
     2941_LT_DECL([], [sys_lib_search_path_spec], [2],
     2942    [Compile-time system search path for libraries])
     2943_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
     2944    [Run-time system search path for libraries])
     2945])# _LT_SYS_DYNAMIC_LINKER
     2946
     2947
     2948# _LT_PATH_TOOL_PREFIX(TOOL)
     2949# --------------------------
     2950# find a file program which can recognize shared library
     2951AC_DEFUN([_LT_PATH_TOOL_PREFIX],
     2952[m4_require([_LT_DECL_EGREP])dnl
     2953AC_MSG_CHECKING([for $1])
     2954AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
     2955[case $MAGIC_CMD in
     2956[[\\/*] |  ?:[\\/]*])
     2957  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     2958  ;;
     2959*)
     2960  lt_save_MAGIC_CMD="$MAGIC_CMD"
     2961  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     2962dnl $ac_dummy forces splitting on constant user-supplied paths.
     2963dnl POSIX.2 word splitting is done only on the output of word expansions,
     2964dnl not every word.  This closes a longstanding sh security hole.
     2965  ac_dummy="m4_if([$2], , $PATH, [$2])"
     2966  for ac_dir in $ac_dummy; do
     2967    IFS="$lt_save_ifs"
     2968    test -z "$ac_dir" && ac_dir=.
     2969    if test -f $ac_dir/$1; then
     2970      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
     2971      if test -n "$file_magic_test_file"; then
     2972        case $deplibs_check_method in
     2973        "file_magic "*)
     2974          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
     2975          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     2976          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     2977            $EGREP "$file_magic_regex" > /dev/null; then
     2978            :
     2979          else
     2980            cat <<_LT_EOF 1>&2
     2981
     2982*** Warning: the command libtool uses to detect shared libraries,
     2983*** $file_magic_cmd, produces output that libtool cannot recognize.
     2984*** The result is that libtool may fail to recognize shared libraries
     2985*** as such.  This will affect the creation of libtool libraries that
     2986*** depend on shared libraries, but programs linked with such libtool
     2987*** libraries will work regardless of this problem.  Nevertheless, you
     2988*** may want to report the problem to your system manager and/or to
     2989*** bug-libtool@gnu.org
     2990
     2991_LT_EOF
     2992          fi ;;
     2993        esac
     2994      fi
     2995      break
     2996    fi
     2997  done
     2998  IFS="$lt_save_ifs"
     2999  MAGIC_CMD="$lt_save_MAGIC_CMD"
     3000  ;;
     3001esac])
     3002MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     3003if test -n "$MAGIC_CMD"; then
     3004  AC_MSG_RESULT($MAGIC_CMD)
     3005else
     3006  AC_MSG_RESULT(no)
     3007fi
     3008_LT_DECL([], [MAGIC_CMD], [0],
     3009         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
     3010])# _LT_PATH_TOOL_PREFIX
     3011
     3012# Old name:
     3013AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
     3014dnl aclocal-1.4 backwards compatibility:
     3015dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
     3016
     3017
     3018# _LT_PATH_MAGIC
     3019# --------------
     3020# find a file program which can recognize a shared library
     3021m4_defun([_LT_PATH_MAGIC],
     3022[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
     3023if test -z "$lt_cv_path_MAGIC_CMD"; then
     3024  if test -n "$ac_tool_prefix"; then
     3025    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
     3026  else
     3027    MAGIC_CMD=:
     3028  fi
     3029fi
     3030])# _LT_PATH_MAGIC
     3031
     3032
     3033# LT_PATH_LD
     3034# ----------
     3035# find the pathname to the GNU or non-GNU linker
     3036AC_DEFUN([LT_PATH_LD],
     3037[AC_REQUIRE([AC_PROG_CC])dnl
     3038AC_REQUIRE([AC_CANONICAL_HOST])dnl
     3039AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     3040m4_require([_LT_DECL_SED])dnl
     3041m4_require([_LT_DECL_EGREP])dnl
     3042m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
     3043
     3044AC_ARG_WITH([gnu-ld],
     3045    [AS_HELP_STRING([--with-gnu-ld],
     3046        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
     3047    [test "$withval" = no || with_gnu_ld=yes],
     3048    [with_gnu_ld=no])dnl
     3049
     3050ac_prog=ld
     3051if test "$GCC" = yes; then
     3052  # Check if gcc -print-prog-name=ld gives a path.
     3053  AC_MSG_CHECKING([for ld used by $CC])
     3054  case $host in
     3055  *-*-mingw*)
     3056    # gcc leaves a trailing carriage return which upsets mingw
     3057    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
     3058  *)
     3059    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
     3060  esac
     3061  case $ac_prog in
     3062    # Accept absolute paths.
     3063    [[\\/]]* | ?:[[\\/]]*)
     3064      re_direlt='/[[^/]][[^/]]*/\.\./'
     3065      # Canonicalize the pathname of ld
     3066      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
     3067      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
     3068        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
     3069      done
     3070      test -z "$LD" && LD="$ac_prog"
     3071      ;;
     3072  "")
     3073    # If it fails, then pretend we aren't using GCC.
     3074    ac_prog=ld
     3075    ;;
     3076  *)
     3077    # If it is relative, then search for the first ld in PATH.
     3078    with_gnu_ld=unknown
     3079    ;;
     3080  esac
     3081elif test "$with_gnu_ld" = yes; then
     3082  AC_MSG_CHECKING([for GNU ld])
     3083else
     3084  AC_MSG_CHECKING([for non-GNU ld])
     3085fi
     3086AC_CACHE_VAL(lt_cv_path_LD,
     3087[if test -z "$LD"; then
     3088  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     3089  for ac_dir in $PATH; do
     3090    IFS="$lt_save_ifs"
     3091    test -z "$ac_dir" && ac_dir=.
     3092    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
     3093      lt_cv_path_LD="$ac_dir/$ac_prog"
     3094      # Check to see if the program is GNU ld.  I'd rather use --version,
     3095      # but apparently some variants of GNU ld only accept -v.
     3096      # Break only if it was the GNU/non-GNU ld that we prefer.
     3097      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
     3098      *GNU* | *'with BFD'*)
     3099        test "$with_gnu_ld" != no && break
     3100        ;;
     3101      *)
     3102        test "$with_gnu_ld" != yes && break
     3103        ;;
     3104      esac
     3105    fi
     3106  done
     3107  IFS="$lt_save_ifs"
     3108else
     3109  lt_cv_path_LD="$LD" # Let the user override the test with a path.
     3110fi])
     3111LD="$lt_cv_path_LD"
     3112if test -n "$LD"; then
     3113  AC_MSG_RESULT($LD)
     3114else
     3115  AC_MSG_RESULT(no)
     3116fi
     3117test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
     3118_LT_PATH_LD_GNU
     3119AC_SUBST([LD])
     3120
     3121_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
     3122])# LT_PATH_LD
     3123
     3124# Old names:
     3125AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
     3126AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
     3127dnl aclocal-1.4 backwards compatibility:
     3128dnl AC_DEFUN([AM_PROG_LD], [])
     3129dnl AC_DEFUN([AC_PROG_LD], [])
     3130
     3131
     3132# _LT_PATH_LD_GNU
     3133#- --------------
     3134m4_defun([_LT_PATH_LD_GNU],
     3135[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
     3136[# I'd rather use --version here, but apparently some GNU lds only accept -v.
     3137case `$LD -v 2>&1 </dev/null` in
     3138*GNU* | *'with BFD'*)
     3139  lt_cv_prog_gnu_ld=yes
     3140  ;;
     3141*)
     3142  lt_cv_prog_gnu_ld=no
     3143  ;;
     3144esac])
     3145with_gnu_ld=$lt_cv_prog_gnu_ld
     3146])# _LT_PATH_LD_GNU
     3147
     3148
     3149# _LT_CMD_RELOAD
     3150# --------------
     3151# find reload flag for linker
     3152#   -- PORTME Some linkers may need a different reload flag.
     3153m4_defun([_LT_CMD_RELOAD],
     3154[AC_CACHE_CHECK([for $LD option to reload object files],
     3155  lt_cv_ld_reload_flag,
     3156  [lt_cv_ld_reload_flag='-r'])
     3157reload_flag=$lt_cv_ld_reload_flag
     3158case $reload_flag in
     3159"" | " "*) ;;
     3160*) reload_flag=" $reload_flag" ;;
     3161esac
     3162reload_cmds='$LD$reload_flag -o $output$reload_objs'
     3163case $host_os in
     3164  cygwin* | mingw* | pw32* | cegcc*)
     3165    if test "$GCC" != yes; then
     3166      reload_cmds=false
     3167    fi
     3168    ;;
     3169  darwin*)
     3170    if test "$GCC" = yes; then
     3171      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
     3172    else
     3173      reload_cmds='$LD$reload_flag -o $output$reload_objs'
     3174    fi
     3175    ;;
     3176esac
     3177_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
     3178_LT_TAGDECL([], [reload_cmds], [2])dnl
     3179])# _LT_CMD_RELOAD
     3180
     3181
     3182# _LT_CHECK_MAGIC_METHOD
     3183# ----------------------
     3184# how to check for library dependencies
     3185#  -- PORTME fill in with the dynamic library characteristics
     3186m4_defun([_LT_CHECK_MAGIC_METHOD],
     3187[m4_require([_LT_DECL_EGREP])
     3188m4_require([_LT_DECL_OBJDUMP])
     3189AC_CACHE_CHECK([how to recognize dependent libraries],
     3190lt_cv_deplibs_check_method,
     3191[lt_cv_file_magic_cmd='$MAGIC_CMD'
     3192lt_cv_file_magic_test_file=
     3193lt_cv_deplibs_check_method='unknown'
     3194# Need to set the preceding variable on all platforms that support
     3195# interlibrary dependencies.
     3196# 'none' -- dependencies not supported.
     3197# `unknown' -- same as none, but documents that we really don't know.
     3198# 'pass_all' -- all dependencies passed with no checks.
     3199# 'test_compile' -- check by making test program.
     3200# 'file_magic [[regex]]' -- check by looking for files in library path
     3201# which responds to the $file_magic_cmd with a given extended regex.
     3202# If you have `file' or equivalent on your system and you're not sure
     3203# whether `pass_all' will *always* work, you probably want this one.
     3204
     3205case $host_os in
     3206aix[[4-9]]*)
     3207  lt_cv_deplibs_check_method=pass_all
     3208  ;;
     3209
     3210beos*)
     3211  lt_cv_deplibs_check_method=pass_all
     3212  ;;
     3213
     3214bsdi[[45]]*)
     3215  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
     3216  lt_cv_file_magic_cmd='/usr/bin/file -L'
     3217  lt_cv_file_magic_test_file=/shlib/libc.so
     3218  ;;
     3219
     3220cygwin*)
     3221  # func_win32_libid is a shell function defined in ltmain.sh
     3222  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     3223  lt_cv_file_magic_cmd='func_win32_libid'
     3224  ;;
     3225
     3226mingw* | pw32*)
     3227  # Base MSYS/MinGW do not provide the 'file' command needed by
     3228  # func_win32_libid shell function, so use a weaker test based on 'objdump',
     3229  # unless we find 'file', for example because we are cross-compiling.
     3230  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
     3231  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
     3232    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     3233    lt_cv_file_magic_cmd='func_win32_libid'
     3234  else
     3235    # Keep this pattern in sync with the one in func_win32_libid.
     3236    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
     3237    lt_cv_file_magic_cmd='$OBJDUMP -f'
     3238  fi
     3239  ;;
     3240
     3241cegcc*)
     3242  # use the weaker test based on 'objdump'. See mingw*.
     3243  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
     3244  lt_cv_file_magic_cmd='$OBJDUMP -f'
     3245  ;;
     3246
     3247darwin* | rhapsody*)
     3248  lt_cv_deplibs_check_method=pass_all
     3249  ;;
     3250
     3251freebsd* | dragonfly*)
     3252  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
     3253    case $host_cpu in
     3254    i*86 )
     3255      # Not sure whether the presence of OpenBSD here was a mistake.
     3256      # Let's accept both of them until this is cleared up.
     3257      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
     3258      lt_cv_file_magic_cmd=/usr/bin/file
     3259      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
     3260      ;;
     3261    esac
     3262  else
     3263    lt_cv_deplibs_check_method=pass_all
     3264  fi
     3265  ;;
     3266
     3267haiku*)
     3268  lt_cv_deplibs_check_method=pass_all
     3269  ;;
     3270
     3271hpux10.20* | hpux11*)
     3272  lt_cv_file_magic_cmd=/usr/bin/file
     3273  case $host_cpu in
     3274  ia64*)
     3275    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
     3276    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
     3277    ;;
     3278  hppa*64*)
     3279    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
     3280    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
     3281    ;;
     3282  *)
     3283    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
     3284    lt_cv_file_magic_test_file=/usr/lib/libc.sl
     3285    ;;
     3286  esac
     3287  ;;
     3288
     3289interix[[3-9]]*)
     3290  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
     3291  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
     3292  ;;
     3293
     3294irix5* | irix6* | nonstopux*)
     3295  case $LD in
     3296  *-32|*"-32 ") libmagic=32-bit;;
     3297  *-n32|*"-n32 ") libmagic=N32;;
     3298  *-64|*"-64 ") libmagic=64-bit;;
     3299  *) libmagic=never-match;;
     3300  esac
     3301  lt_cv_deplibs_check_method=pass_all
     3302  ;;
     3303
     3304# This must be glibc/ELF.
     3305linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
     3306  lt_cv_deplibs_check_method=pass_all
     3307  ;;
     3308
     3309netbsd* | netbsdelf*-gnu)
     3310  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
     3311    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
     3312  else
     3313    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
     3314  fi
     3315  ;;
     3316
     3317newos6*)
     3318  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
     3319  lt_cv_file_magic_cmd=/usr/bin/file
     3320  lt_cv_file_magic_test_file=/usr/lib/libnls.so
     3321  ;;
     3322
     3323*nto* | *qnx*)
     3324  lt_cv_deplibs_check_method=pass_all
     3325  ;;
     3326
     3327openbsd*)
     3328  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     3329    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
     3330  else
     3331    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
     3332  fi
     3333  ;;
     3334
     3335osf3* | osf4* | osf5*)
     3336  lt_cv_deplibs_check_method=pass_all
     3337  ;;
     3338
     3339rdos*)
     3340  lt_cv_deplibs_check_method=pass_all
     3341  ;;
     3342
     3343solaris*)
     3344  lt_cv_deplibs_check_method=pass_all
     3345  ;;
     3346
     3347sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     3348  lt_cv_deplibs_check_method=pass_all
     3349  ;;
     3350
     3351sysv4 | sysv4.3*)
     3352  case $host_vendor in
     3353  motorola)
     3354    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
     3355    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
     3356    ;;
     3357  ncr)
     3358    lt_cv_deplibs_check_method=pass_all
     3359    ;;
     3360  sequent)
     3361    lt_cv_file_magic_cmd='/bin/file'
     3362    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
     3363    ;;
     3364  sni)
     3365    lt_cv_file_magic_cmd='/bin/file'
     3366    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
     3367    lt_cv_file_magic_test_file=/lib/libc.so
     3368    ;;
     3369  siemens)
     3370    lt_cv_deplibs_check_method=pass_all
     3371    ;;
     3372  pc)
     3373    lt_cv_deplibs_check_method=pass_all
     3374    ;;
     3375  esac
     3376  ;;
     3377
     3378tpf*)
     3379  lt_cv_deplibs_check_method=pass_all
     3380  ;;
     3381esac
     3382])
     3383
     3384file_magic_glob=
     3385want_nocaseglob=no
     3386if test "$build" = "$host"; then
     3387  case $host_os in
     3388  mingw* | pw32*)
     3389    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
     3390      want_nocaseglob=yes
     3391    else
     3392      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
     3393    fi
     3394    ;;
     3395  esac
     3396fi
     3397
     3398file_magic_cmd=$lt_cv_file_magic_cmd
     3399deplibs_check_method=$lt_cv_deplibs_check_method
     3400test -z "$deplibs_check_method" && deplibs_check_method=unknown
     3401
     3402_LT_DECL([], [deplibs_check_method], [1],
     3403    [Method to check whether dependent libraries are shared objects])
     3404_LT_DECL([], [file_magic_cmd], [1],
     3405    [Command to use when deplibs_check_method = "file_magic"])
     3406_LT_DECL([], [file_magic_glob], [1],
     3407    [How to find potential files when deplibs_check_method = "file_magic"])
     3408_LT_DECL([], [want_nocaseglob], [1],
     3409    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
     3410])# _LT_CHECK_MAGIC_METHOD
     3411
     3412
     3413# LT_PATH_NM
     3414# ----------
     3415# find the pathname to a BSD- or MS-compatible name lister
     3416AC_DEFUN([LT_PATH_NM],
     3417[AC_REQUIRE([AC_PROG_CC])dnl
     3418AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
     3419[if test -n "$NM"; then
     3420  # Let the user override the test.
     3421  lt_cv_path_NM="$NM"
     3422else
     3423  lt_nm_to_check="${ac_tool_prefix}nm"
     3424  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
     3425    lt_nm_to_check="$lt_nm_to_check nm"
     3426  fi
     3427  for lt_tmp_nm in $lt_nm_to_check; do
     3428    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     3429    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
     3430      IFS="$lt_save_ifs"
     3431      test -z "$ac_dir" && ac_dir=.
     3432      tmp_nm="$ac_dir/$lt_tmp_nm"
     3433      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
     3434        # Check to see if the nm accepts a BSD-compat flag.
     3435        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
     3436        #   nm: unknown option "B" ignored
     3437        # Tru64's nm complains that /dev/null is an invalid object file
     3438        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
     3439        */dev/null* | *'Invalid file or object type'*)
     3440          lt_cv_path_NM="$tmp_nm -B"
     3441          break
     3442          ;;
     3443        *)
     3444          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
     3445          */dev/null*)
     3446            lt_cv_path_NM="$tmp_nm -p"
     3447            break
     3448            ;;
     3449          *)
     3450            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
     3451            continue # so that we can try to find one that supports BSD flags
     3452            ;;
     3453          esac
     3454          ;;
     3455        esac
     3456      fi
     3457    done
     3458    IFS="$lt_save_ifs"
     3459  done
     3460  : ${lt_cv_path_NM=no}
     3461fi])
     3462if test "$lt_cv_path_NM" != "no"; then
     3463  NM="$lt_cv_path_NM"
     3464else
     3465  # Didn't find any BSD compatible name lister, look for dumpbin.
     3466  if test -n "$DUMPBIN"; then :
     3467    # Let the user override the test.
     3468  else
     3469    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
     3470    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
     3471    *COFF*)
     3472      DUMPBIN="$DUMPBIN -symbols"
     3473      ;;
     3474    *)
     3475      DUMPBIN=:
     3476      ;;
     3477    esac
     3478  fi
     3479  AC_SUBST([DUMPBIN])
     3480  if test "$DUMPBIN" != ":"; then
     3481    NM="$DUMPBIN"
     3482  fi
     3483fi
     3484test -z "$NM" && NM=nm
     3485AC_SUBST([NM])
     3486_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
     3487
     3488AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
     3489  [lt_cv_nm_interface="BSD nm"
     3490  echo "int some_variable = 0;" > conftest.$ac_ext
     3491  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
     3492  (eval "$ac_compile" 2>conftest.err)
     3493  cat conftest.err >&AS_MESSAGE_LOG_FD
     3494  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
     3495  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
     3496  cat conftest.err >&AS_MESSAGE_LOG_FD
     3497  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
     3498  cat conftest.out >&AS_MESSAGE_LOG_FD
     3499  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     3500    lt_cv_nm_interface="MS dumpbin"
     3501  fi
     3502  rm -f conftest*])
     3503])# LT_PATH_NM
     3504
     3505# Old names:
     3506AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
     3507AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
     3508dnl aclocal-1.4 backwards compatibility:
     3509dnl AC_DEFUN([AM_PROG_NM], [])
     3510dnl AC_DEFUN([AC_PROG_NM], [])
     3511
     3512# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
     3513# --------------------------------
     3514# how to determine the name of the shared library
     3515# associated with a specific link library.
     3516#  -- PORTME fill in with the dynamic library characteristics
     3517m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
     3518[m4_require([_LT_DECL_EGREP])
     3519m4_require([_LT_DECL_OBJDUMP])
     3520m4_require([_LT_DECL_DLLTOOL])
     3521AC_CACHE_CHECK([how to associate runtime and link libraries],
     3522lt_cv_sharedlib_from_linklib_cmd,
     3523[lt_cv_sharedlib_from_linklib_cmd='unknown'
     3524
     3525case $host_os in
     3526cygwin* | mingw* | pw32* | cegcc*)
     3527  # two different shell functions defined in ltmain.sh
     3528  # decide which to use based on capabilities of $DLLTOOL
     3529  case `$DLLTOOL --help 2>&1` in
     3530  *--identify-strict*)
     3531    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
     3532    ;;
     3533  *)
     3534    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
     3535    ;;
     3536  esac
     3537  ;;
     3538*)
     3539  # fallback: assume linklib IS sharedlib
     3540  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
     3541  ;;
     3542esac
     3543])
     3544sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
     3545test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
     3546
     3547_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
     3548    [Command to associate shared and link libraries])
     3549])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
     3550
     3551
     3552# _LT_PATH_MANIFEST_TOOL
     3553# ----------------------
     3554# locate the manifest tool
     3555m4_defun([_LT_PATH_MANIFEST_TOOL],
     3556[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
     3557test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
     3558AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
     3559  [lt_cv_path_mainfest_tool=no
     3560  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
     3561  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
     3562  cat conftest.err >&AS_MESSAGE_LOG_FD
     3563  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
     3564    lt_cv_path_mainfest_tool=yes
     3565  fi
     3566  rm -f conftest*])
     3567if test "x$lt_cv_path_mainfest_tool" != xyes; then
     3568  MANIFEST_TOOL=:
     3569fi
     3570_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
     3571])# _LT_PATH_MANIFEST_TOOL
     3572
     3573
     3574# LT_LIB_M
     3575# --------
     3576# check for math library
     3577AC_DEFUN([LT_LIB_M],
     3578[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     3579LIBM=
     3580case $host in
     3581*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
     3582  # These system don't have libm, or don't need it
     3583  ;;
     3584*-ncr-sysv4.3*)
     3585  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
     3586  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
     3587  ;;
     3588*)
     3589  AC_CHECK_LIB(m, cos, LIBM="-lm")
     3590  ;;
     3591esac
     3592AC_SUBST([LIBM])
     3593])# LT_LIB_M
     3594
     3595# Old name:
     3596AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
     3597dnl aclocal-1.4 backwards compatibility:
     3598dnl AC_DEFUN([AC_CHECK_LIBM], [])
     3599
     3600
     3601# _LT_COMPILER_NO_RTTI([TAGNAME])
     3602# -------------------------------
     3603m4_defun([_LT_COMPILER_NO_RTTI],
     3604[m4_require([_LT_TAG_COMPILER])dnl
     3605
     3606_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
     3607
     3608if test "$GCC" = yes; then
     3609  case $cc_basename in
     3610  nvcc*)
     3611    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
     3612  *)
     3613    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
     3614  esac
     3615
     3616  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
     3617    lt_cv_prog_compiler_rtti_exceptions,
     3618    [-fno-rtti -fno-exceptions], [],
     3619    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
     3620fi
     3621_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
     3622        [Compiler flag to turn off builtin functions])
     3623])# _LT_COMPILER_NO_RTTI
     3624
     3625
     3626# _LT_CMD_GLOBAL_SYMBOLS
     3627# ----------------------
     3628m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
     3629[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     3630AC_REQUIRE([AC_PROG_CC])dnl
     3631AC_REQUIRE([AC_PROG_AWK])dnl
     3632AC_REQUIRE([LT_PATH_NM])dnl
     3633AC_REQUIRE([LT_PATH_LD])dnl
     3634m4_require([_LT_DECL_SED])dnl
     3635m4_require([_LT_DECL_EGREP])dnl
     3636m4_require([_LT_TAG_COMPILER])dnl
     3637
     3638# Check for command to grab the raw symbol name followed by C symbol from nm.
     3639AC_MSG_CHECKING([command to parse $NM output from $compiler object])
     3640AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
     3641[
     3642# These are sane defaults that work on at least a few old systems.
     3643# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
     3644
     3645# Character class describing NM global symbol codes.
     3646symcode='[[BCDEGRST]]'
     3647
     3648# Regexp to match symbols that can be accessed directly from C.
     3649sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
     3650
     3651# Define system-specific variables.
     3652case $host_os in
     3653aix*)
     3654  symcode='[[BCDT]]'
     3655  ;;
     3656cygwin* | mingw* | pw32* | cegcc*)
     3657  symcode='[[ABCDGISTW]]'
     3658  ;;
     3659hpux*)
     3660  if test "$host_cpu" = ia64; then
     3661    symcode='[[ABCDEGRST]]'
     3662  fi
     3663  ;;
     3664irix* | nonstopux*)
     3665  symcode='[[BCDEGRST]]'
     3666  ;;
     3667osf*)
     3668  symcode='[[BCDEGQRST]]'
     3669  ;;
     3670solaris*)
     3671  symcode='[[BDRT]]'
     3672  ;;
     3673sco3.2v5*)
     3674  symcode='[[DT]]'
     3675  ;;
     3676sysv4.2uw2*)
     3677  symcode='[[DT]]'
     3678  ;;
     3679sysv5* | sco5v6* | unixware* | OpenUNIX*)
     3680  symcode='[[ABDT]]'
     3681  ;;
     3682sysv4)
     3683  symcode='[[DFNSTU]]'
     3684  ;;
     3685esac
     3686
     3687# If we're using GNU nm, then use its standard symbol codes.
     3688case `$NM -V 2>&1` in
     3689*GNU* | *'with BFD'*)
     3690  symcode='[[ABCDGIRSTW]]' ;;
     3691esac
     3692
     3693# Transform an extracted symbol line into a proper C declaration.
     3694# Some systems (esp. on ia64) link data and code symbols differently,
     3695# so use this general approach.
     3696lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     3697
     3698# Transform an extracted symbol line into symbol name and symbol address
     3699lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
     3700lt_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'"
     3701
     3702# Handle CRLF in mingw tool chain
     3703opt_cr=
     3704case $build_os in
     3705mingw*)
     3706  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
     3707  ;;
     3708esac
     3709
     3710# Try without a prefix underscore, then with it.
     3711for ac_symprfx in "" "_"; do
     3712
     3713  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
     3714  symxfrm="\\1 $ac_symprfx\\2 \\2"
     3715
     3716  # Write the raw and C identifiers.
     3717  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
     3718    # Fake it for dumpbin and say T for any non-static function
     3719    # and D for any global variable.
     3720    # Also find C++ and __fastcall symbols from MSVC++,
     3721    # which start with @ or ?.
     3722    lt_cv_sys_global_symbol_pipe="$AWK ['"\
     3723"     {last_section=section; section=\$ 3};"\
     3724"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
     3725"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
     3726"     \$ 0!~/External *\|/{next};"\
     3727"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
     3728"     {if(hide[section]) next};"\
     3729"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
     3730"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
     3731"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
     3732"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
     3733"     ' prfx=^$ac_symprfx]"
     3734  else
     3735    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
     3736  fi
     3737  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
     3738
     3739  # Check to see that the pipe works correctly.
     3740  pipe_works=no
     3741
     3742  rm -f conftest*
     3743  cat > conftest.$ac_ext <<_LT_EOF
     3744#ifdef __cplusplus
     3745extern "C" {
     3746#endif
     3747char nm_test_var;
     3748void nm_test_func(void);
     3749void nm_test_func(void){}
     3750#ifdef __cplusplus
     3751}
     3752#endif
     3753int main(){nm_test_var='a';nm_test_func();return(0);}
     3754_LT_EOF
     3755
     3756  if AC_TRY_EVAL(ac_compile); then
     3757    # Now try to grab the symbols.
     3758    nlist=conftest.nm
     3759    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
     3760      # Try sorting and uniquifying the output.
     3761      if sort "$nlist" | uniq > "$nlist"T; then
     3762        mv -f "$nlist"T "$nlist"
     3763      else
     3764        rm -f "$nlist"T
     3765      fi
     3766
     3767      # Make sure that we snagged all the symbols we need.
     3768      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
     3769        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
     3770          cat <<_LT_EOF > conftest.$ac_ext
     3771/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
     3772#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
     3773/* DATA imports from DLLs on WIN32 con't be const, because runtime
     3774   relocations are performed -- see ld's documentation on pseudo-relocs.  */
     3775# define LT@&t@_DLSYM_CONST
     3776#elif defined(__osf__)
     3777/* This system does not cope well with relocations in const data.  */
     3778# define LT@&t@_DLSYM_CONST
     3779#else
     3780# define LT@&t@_DLSYM_CONST const
     3781#endif
     3782
     3783#ifdef __cplusplus
     3784extern "C" {
     3785#endif
     3786
     3787_LT_EOF
     3788          # Now generate the symbol file.
     3789          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
     3790
     3791          cat <<_LT_EOF >> conftest.$ac_ext
     3792
     3793/* The mapping between symbol names and symbols.  */
     3794LT@&t@_DLSYM_CONST struct {
     3795  const char *name;
     3796  void       *address;
     3797}
     3798lt__PROGRAM__LTX_preloaded_symbols[[]] =
     3799{
     3800  { "@PROGRAM@", (void *) 0 },
     3801_LT_EOF
     3802          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
     3803          cat <<\_LT_EOF >> conftest.$ac_ext
     3804  {0, (void *) 0}
     3805};
     3806
     3807/* This works around a problem in FreeBSD linker */
     3808#ifdef FREEBSD_WORKAROUND
     3809static const void *lt_preloaded_setup() {
     3810  return lt__PROGRAM__LTX_preloaded_symbols;
     3811}
     3812#endif
     3813
     3814#ifdef __cplusplus
     3815}
     3816#endif
     3817_LT_EOF
     3818          # Now try linking the two files.
     3819          mv conftest.$ac_objext conftstm.$ac_objext
     3820          lt_globsym_save_LIBS=$LIBS
     3821          lt_globsym_save_CFLAGS=$CFLAGS
     3822          LIBS="conftstm.$ac_objext"
     3823          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
     3824          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
     3825            pipe_works=yes
     3826          fi
     3827          LIBS=$lt_globsym_save_LIBS
     3828          CFLAGS=$lt_globsym_save_CFLAGS
     3829        else
     3830          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
     3831        fi
     3832      else
     3833        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
     3834      fi
     3835    else
     3836      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
     3837    fi
     3838  else
     3839    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
     3840    cat conftest.$ac_ext >&5
     3841  fi
     3842  rm -rf conftest* conftst*
     3843
     3844  # Do not use the global_symbol_pipe unless it works.
     3845  if test "$pipe_works" = yes; then
     3846    break
     3847  else
     3848    lt_cv_sys_global_symbol_pipe=
     3849  fi
     3850done
     3851])
     3852if test -z "$lt_cv_sys_global_symbol_pipe"; then
     3853  lt_cv_sys_global_symbol_to_cdecl=
     3854fi
     3855if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
     3856  AC_MSG_RESULT(failed)
     3857else
     3858  AC_MSG_RESULT(ok)
     3859fi
     3860
     3861# Response file support.
     3862if test "$lt_cv_nm_interface" = "MS dumpbin"; then
     3863  nm_file_list_spec='@'
     3864elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
     3865  nm_file_list_spec='@'
     3866fi
     3867
     3868_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
     3869    [Take the output of nm and produce a listing of raw symbols and C names])
     3870_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
     3871    [Transform the output of nm in a proper C declaration])
     3872_LT_DECL([global_symbol_to_c_name_address],
     3873    [lt_cv_sys_global_symbol_to_c_name_address], [1],
     3874    [Transform the output of nm in a C name address pair])
     3875_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
     3876    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
     3877    [Transform the output of nm in a C name address pair when lib prefix is needed])
     3878_LT_DECL([], [nm_file_list_spec], [1],
     3879    [Specify filename containing input files for $NM])
     3880]) # _LT_CMD_GLOBAL_SYMBOLS
     3881
     3882
     3883# _LT_COMPILER_PIC([TAGNAME])
     3884# ---------------------------
     3885m4_defun([_LT_COMPILER_PIC],
     3886[m4_require([_LT_TAG_COMPILER])dnl
     3887_LT_TAGVAR(lt_prog_compiler_wl, $1)=
     3888_LT_TAGVAR(lt_prog_compiler_pic, $1)=
     3889_LT_TAGVAR(lt_prog_compiler_static, $1)=
     3890
     3891m4_if([$1], [CXX], [
     3892  # C++ specific cases for pic, static, wl, etc.
     3893  if test "$GXX" = yes; then
     3894    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     3895    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
     3896
     3897    case $host_os in
     3898    aix*)
     3899      # All AIX code is PIC.
     3900      if test "$host_cpu" = ia64; then
     3901        # AIX 5 now supports IA64 processor
     3902        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     3903      fi
     3904      ;;
     3905
     3906    amigaos*)
     3907      case $host_cpu in
     3908      powerpc)
     3909            # see comment about AmigaOS4 .so support
     3910            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     3911        ;;
     3912      m68k)
     3913            # FIXME: we need at least 68020 code to build shared libraries, but
     3914            # adding the `-m68020' flag to GCC prevents building anything better,
     3915            # like `-m68040'.
     3916            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
     3917        ;;
     3918      esac
     3919      ;;
     3920
     3921    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     3922      # PIC is the default for these OSes.
     3923      ;;
     3924    mingw* | cygwin* | os2* | pw32* | cegcc*)
     3925      # This hack is so that the source file can tell whether it is being
     3926      # built for inclusion in a dll (and should export symbols for example).
     3927      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     3928      # (--disable-auto-import) libraries
     3929      m4_if([$1], [GCJ], [],
     3930        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
     3931      ;;
     3932    darwin* | rhapsody*)
     3933      # PIC is the default on this platform
     3934      # Common symbols not allowed in MH_DYLIB files
     3935      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
     3936      ;;
     3937    *djgpp*)
     3938      # DJGPP does not support shared libraries at all
     3939      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
     3940      ;;
     3941    haiku*)
     3942      # PIC is the default for Haiku.
     3943      # The "-static" flag exists, but is broken.
     3944      _LT_TAGVAR(lt_prog_compiler_static, $1)=
     3945      ;;
     3946    interix[[3-9]]*)
     3947      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     3948      # Instead, we relocate shared libraries at runtime.
     3949      ;;
     3950    sysv4*MP*)
     3951      if test -d /usr/nec; then
     3952        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
     3953      fi
     3954      ;;
     3955    hpux*)
     3956      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
     3957      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
     3958      # sets the default TLS model and affects inlining.
     3959      case $host_cpu in
     3960      hppa*64*)
     3961        ;;
     3962      *)
     3963        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     3964        ;;
     3965      esac
     3966      ;;
     3967    *qnx* | *nto*)
     3968      # QNX uses GNU C++, but need to define -shared option too, otherwise
     3969      # it will coredump.
     3970      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
     3971      ;;
     3972    *)
     3973      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     3974      ;;
     3975    esac
     3976  else
     3977    case $host_os in
     3978      aix[[4-9]]*)
     3979        # All AIX code is PIC.
     3980        if test "$host_cpu" = ia64; then
     3981          # AIX 5 now supports IA64 processor
     3982          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     3983        else
     3984          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
     3985        fi
     3986        ;;
     3987      chorus*)
     3988        case $cc_basename in
     3989        cxch68*)
     3990          # Green Hills C++ Compiler
     3991          # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
     3992          ;;
     3993        esac
     3994        ;;
     3995      mingw* | cygwin* | os2* | pw32* | cegcc*)
     3996        # This hack is so that the source file can tell whether it is being
     3997        # built for inclusion in a dll (and should export symbols for example).
     3998        m4_if([$1], [GCJ], [],
     3999          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
     4000        ;;
     4001      dgux*)
     4002        case $cc_basename in
     4003          ec++*)
     4004            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4005            ;;
     4006          ghcx*)
     4007            # Green Hills C++ Compiler
     4008            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     4009            ;;
     4010          *)
     4011            ;;
     4012        esac
     4013        ;;
     4014      freebsd* | dragonfly*)
     4015        # FreeBSD uses GNU C++
     4016        ;;
     4017      hpux9* | hpux10* | hpux11*)
     4018        case $cc_basename in
     4019          CC*)
     4020            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4021            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
     4022            if test "$host_cpu" != ia64; then
     4023              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
     4024            fi
     4025            ;;
     4026          aCC*)
     4027            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4028            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
     4029            case $host_cpu in
     4030            hppa*64*|ia64*)
     4031              # +Z the default
     4032              ;;
     4033            *)
     4034              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
     4035              ;;
     4036            esac
     4037            ;;
     4038          *)
     4039            ;;
     4040        esac
     4041        ;;
     4042      interix*)
     4043        # This is c89, which is MS Visual C++ (no shared libs)
     4044        # Anyone wants to do a port?
     4045        ;;
     4046      irix5* | irix6* | nonstopux*)
     4047        case $cc_basename in
     4048          CC*)
     4049            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4050            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     4051            # CC pic flag -KPIC is the default.
     4052            ;;
     4053          *)
     4054            ;;
     4055        esac
     4056        ;;
     4057      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
     4058        case $cc_basename in
     4059          KCC*)
     4060            # KAI C++ Compiler
     4061            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
     4062            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     4063            ;;
     4064          ecpc* )
     4065            # old Intel C++ for x86_64 which still supported -KPIC.
     4066            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4067            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4068            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
     4069            ;;
     4070          icpc* )
     4071            # Intel C++, used to be incompatible with GCC.
     4072            # ICC 10 doesn't accept -KPIC any more.
     4073            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4074            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     4075            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
     4076            ;;
     4077          pgCC* | pgcpp*)
     4078            # Portland Group C++ compiler
     4079            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4080            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
     4081            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4082            ;;
     4083          cxx*)
     4084            # Compaq C++
     4085            # Make sure the PIC flag is empty.  It appears that all Alpha
     4086            # Linux and Compaq Tru64 Unix objects are PIC.
     4087            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
     4088            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     4089            ;;
     4090          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
     4091            # IBM XL 8.0, 9.0 on PPC and BlueGene
     4092            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4093            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
     4094            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
     4095            ;;
     4096          *)
     4097            case `$CC -V 2>&1 | sed 5q` in
     4098            *Sun\ C*)
     4099              # Sun C++ 5.9
     4100              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4101              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4102              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
     4103              ;;
     4104            esac
     4105            ;;
     4106        esac
     4107        ;;
     4108      lynxos*)
     4109        ;;
     4110      m88k*)
     4111        ;;
     4112      mvs*)
     4113        case $cc_basename in
     4114          cxx*)
     4115            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
     4116            ;;
     4117          *)
     4118            ;;
     4119        esac
     4120        ;;
     4121      netbsd* | netbsdelf*-gnu)
     4122        ;;
     4123      *qnx* | *nto*)
     4124        # QNX uses GNU C++, but need to define -shared option too, otherwise
     4125        # it will coredump.
     4126        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
     4127        ;;
     4128      osf3* | osf4* | osf5*)
     4129        case $cc_basename in
     4130          KCC*)
     4131            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
     4132            ;;
     4133          RCC*)
     4134            # Rational C++ 2.4.1
     4135            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     4136            ;;
     4137          cxx*)
     4138            # Digital/Compaq C++
     4139            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4140            # Make sure the PIC flag is empty.  It appears that all Alpha
     4141            # Linux and Compaq Tru64 Unix objects are PIC.
     4142            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
     4143            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     4144            ;;
     4145          *)
     4146            ;;
     4147        esac
     4148        ;;
     4149      psos*)
     4150        ;;
     4151      solaris*)
     4152        case $cc_basename in
     4153          CC* | sunCC*)
     4154            # Sun C++ 4.2, 5.x and Centerline C++
     4155            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4156            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4157            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
     4158            ;;
     4159          gcx*)
     4160            # Green Hills C++ Compiler
     4161            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
     4162            ;;
     4163          *)
     4164            ;;
     4165        esac
     4166        ;;
     4167      sunos4*)
     4168        case $cc_basename in
     4169          CC*)
     4170            # Sun C++ 4.x
     4171            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     4172            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4173            ;;
     4174          lcc*)
     4175            # Lucid
     4176            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     4177            ;;
     4178          *)
     4179            ;;
     4180        esac
     4181        ;;
     4182      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     4183        case $cc_basename in
     4184          CC*)
     4185            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4186            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4187            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4188            ;;
     4189        esac
     4190        ;;
     4191      tandem*)
     4192        case $cc_basename in
     4193          NCC*)
     4194            # NonStop-UX NCC 3.20
     4195            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4196            ;;
     4197          *)
     4198            ;;
     4199        esac
     4200        ;;
     4201      vxworks*)
     4202        ;;
     4203      *)
     4204        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
     4205        ;;
     4206    esac
     4207  fi
     4208],
     4209[
     4210  if test "$GCC" = yes; then
     4211    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4212    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
     4213
     4214    case $host_os in
     4215      aix*)
     4216      # All AIX code is PIC.
     4217      if test "$host_cpu" = ia64; then
     4218        # AIX 5 now supports IA64 processor
     4219        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4220      fi
     4221      ;;
     4222
     4223    amigaos*)
     4224      case $host_cpu in
     4225      powerpc)
     4226            # see comment about AmigaOS4 .so support
     4227            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     4228        ;;
     4229      m68k)
     4230            # FIXME: we need at least 68020 code to build shared libraries, but
     4231            # adding the `-m68020' flag to GCC prevents building anything better,
     4232            # like `-m68040'.
     4233            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
     4234        ;;
     4235      esac
     4236      ;;
     4237
     4238    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     4239      # PIC is the default for these OSes.
     4240      ;;
     4241
     4242    mingw* | cygwin* | pw32* | os2* | cegcc*)
     4243      # This hack is so that the source file can tell whether it is being
     4244      # built for inclusion in a dll (and should export symbols for example).
     4245      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     4246      # (--disable-auto-import) libraries
     4247      m4_if([$1], [GCJ], [],
     4248        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
     4249      ;;
     4250
     4251    darwin* | rhapsody*)
     4252      # PIC is the default on this platform
     4253      # Common symbols not allowed in MH_DYLIB files
     4254      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
     4255      ;;
     4256
     4257    haiku*)
     4258      # PIC is the default for Haiku.
     4259      # The "-static" flag exists, but is broken.
     4260      _LT_TAGVAR(lt_prog_compiler_static, $1)=
     4261      ;;
     4262
     4263    hpux*)
     4264      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
     4265      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
     4266      # sets the default TLS model and affects inlining.
     4267      case $host_cpu in
     4268      hppa*64*)
     4269        # +Z the default
     4270        ;;
     4271      *)
     4272        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     4273        ;;
     4274      esac
     4275      ;;
     4276
     4277    interix[[3-9]]*)
     4278      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     4279      # Instead, we relocate shared libraries at runtime.
     4280      ;;
     4281
     4282    msdosdjgpp*)
     4283      # Just because we use GCC doesn't mean we suddenly get shared libraries
     4284      # on systems that don't support them.
     4285      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
     4286      enable_shared=no
     4287      ;;
     4288
     4289    *nto* | *qnx*)
     4290      # QNX uses GNU C++, but need to define -shared option too, otherwise
     4291      # it will coredump.
     4292      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
     4293      ;;
     4294
     4295    sysv4*MP*)
     4296      if test -d /usr/nec; then
     4297        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
     4298      fi
     4299      ;;
     4300
     4301    *)
     4302      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     4303      ;;
     4304    esac
     4305
     4306    case $cc_basename in
     4307    nvcc*) # Cuda Compiler Driver 2.2
     4308      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
     4309      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
     4310        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
     4311      fi
     4312      ;;
     4313    esac
     4314  else
     4315    # PORTME Check for flag to pass linker flags through the system compiler.
     4316    case $host_os in
     4317    aix*)
     4318      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4319      if test "$host_cpu" = ia64; then
     4320        # AIX 5 now supports IA64 processor
     4321        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4322      else
     4323        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
     4324      fi
     4325      ;;
     4326
     4327    mingw* | cygwin* | pw32* | os2* | cegcc*)
     4328      # This hack is so that the source file can tell whether it is being
     4329      # built for inclusion in a dll (and should export symbols for example).
     4330      m4_if([$1], [GCJ], [],
     4331        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
     4332      ;;
     4333
     4334    hpux9* | hpux10* | hpux11*)
     4335      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4336      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
     4337      # not for PA HP-UX.
     4338      case $host_cpu in
     4339      hppa*64*|ia64*)
     4340        # +Z the default
     4341        ;;
     4342      *)
     4343        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
     4344        ;;
     4345      esac
     4346      # Is there a better lt_prog_compiler_static that works with the bundled CC?
     4347      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
     4348      ;;
     4349
     4350    irix5* | irix6* | nonstopux*)
     4351      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4352      # PIC (with -KPIC) is the default.
     4353      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     4354      ;;
     4355
     4356    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
     4357      case $cc_basename in
     4358      # old Intel for x86_64 which still supported -KPIC.
     4359      ecc*)
     4360        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4361        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4362        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
     4363        ;;
     4364      # icc used to be incompatible with GCC.
     4365      # ICC 10 doesn't accept -KPIC any more.
     4366      icc* | ifort*)
     4367        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4368        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     4369        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
     4370        ;;
     4371      # Lahey Fortran 8.1.
     4372      lf95*)
     4373        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4374        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
     4375        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
     4376        ;;
     4377      nagfor*)
     4378        # NAG Fortran compiler
     4379        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
     4380        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
     4381        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4382        ;;
     4383      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
     4384        # Portland Group compilers (*not* the Pentium gcc compiler,
     4385        # which looks to be a dead project)
     4386        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4387        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
     4388        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4389        ;;
     4390      ccc*)
     4391        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4392        # All Alpha code is PIC.
     4393        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     4394        ;;
     4395      xl* | bgxl* | bgf* | mpixl*)
     4396        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
     4397        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4398        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
     4399        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
     4400        ;;
     4401      *)
     4402        case `$CC -V 2>&1 | sed 5q` in
     4403        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
     4404          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     4405          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4406          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4407          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
     4408          ;;
     4409        *Sun\ F* | *Sun*Fortran*)
     4410          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4411          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4412          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
     4413          ;;
     4414        *Sun\ C*)
     4415          # Sun C 5.9
     4416          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4417          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4418          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4419          ;;
     4420        *Intel*\ [[CF]]*Compiler*)
     4421          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4422          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     4423          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
     4424          ;;
     4425        *Portland\ Group*)
     4426          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4427          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
     4428          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4429          ;;
     4430        esac
     4431        ;;
     4432      esac
     4433      ;;
     4434
     4435    newsos6)
     4436      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4437      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4438      ;;
     4439
     4440    *nto* | *qnx*)
     4441      # QNX uses GNU C++, but need to define -shared option too, otherwise
     4442      # it will coredump.
     4443      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
     4444      ;;
     4445
     4446    osf3* | osf4* | osf5*)
     4447      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4448      # All OSF/1 code is PIC.
     4449      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     4450      ;;
     4451
     4452    rdos*)
     4453      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     4454      ;;
     4455
     4456    solaris*)
     4457      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4458      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4459      case $cc_basename in
     4460      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
     4461        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
     4462      *)
     4463        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
     4464      esac
     4465      ;;
     4466
     4467    sunos4*)
     4468      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
     4469      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
     4470      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4471      ;;
     4472
     4473    sysv4 | sysv4.2uw2* | sysv4.3*)
     4474      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4475      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4476      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4477      ;;
     4478
     4479    sysv4*MP*)
     4480      if test -d /usr/nec ;then
     4481        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
     4482        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4483      fi
     4484      ;;
     4485
     4486    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     4487      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4488      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4489      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4490      ;;
     4491
     4492    unicos*)
     4493      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4494      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
     4495      ;;
     4496
     4497    uts4*)
     4498      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     4499      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4500      ;;
     4501
     4502    *)
     4503      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
     4504      ;;
     4505    esac
     4506  fi
     4507])
     4508case $host_os in
     4509  # For platforms which do not support PIC, -DPIC is meaningless:
     4510  *djgpp*)
     4511    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
     4512    ;;
     4513  *)
     4514    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
     4515    ;;
     4516esac
     4517
     4518AC_CACHE_CHECK([for $compiler option to produce PIC],
     4519  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
     4520  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
     4521_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
     4522
     4523#
     4524# Check to make sure the PIC flag actually works.
     4525#
     4526if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
     4527  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
     4528    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
     4529    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
     4530    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
     4531     "" | " "*) ;;
     4532     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
     4533     esac],
     4534    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
     4535     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
     4536fi
     4537_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
     4538        [Additional compiler flags for building library objects])
     4539
     4540_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
     4541        [How to pass a linker flag through the compiler])
     4542#
     4543# Check to make sure the static flag actually works.
     4544#
     4545wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
     4546_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
     4547  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
     4548  $lt_tmp_static_flag,
     4549  [],
     4550  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
     4551_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
     4552        [Compiler flag to prevent dynamic linking])
     4553])# _LT_COMPILER_PIC
     4554
     4555
     4556# _LT_LINKER_SHLIBS([TAGNAME])
     4557# ----------------------------
     4558# See if the linker supports building shared libraries.
     4559m4_defun([_LT_LINKER_SHLIBS],
     4560[AC_REQUIRE([LT_PATH_LD])dnl
     4561AC_REQUIRE([LT_PATH_NM])dnl
     4562m4_require([_LT_PATH_MANIFEST_TOOL])dnl
     4563m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     4564m4_require([_LT_DECL_EGREP])dnl
     4565m4_require([_LT_DECL_SED])dnl
     4566m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
     4567m4_require([_LT_TAG_COMPILER])dnl
     4568AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
     4569m4_if([$1], [CXX], [
     4570  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     4571  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
     4572  case $host_os in
     4573  aix[[4-9]]*)
     4574    # If we're using GNU nm, then we don't want the "-C" option.
     4575    # -C means demangle to AIX nm, but means don't demangle with GNU nm
     4576    # Also, AIX nm treats weak defined symbols like other global defined
     4577    # symbols, whereas GNU nm marks them as "W".
     4578    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
     4579      _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'
     4580    else
     4581      _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'
     4582    fi
     4583    ;;
     4584  pw32*)
     4585    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
     4586    ;;
     4587  cygwin* | mingw* | cegcc*)
     4588    case $cc_basename in
     4589    cl*)
     4590      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
     4591      ;;
     4592    *)
     4593      _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'
     4594      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
     4595      ;;
     4596    esac
     4597    ;;
     4598  linux* | k*bsd*-gnu | gnu*)
     4599    _LT_TAGVAR(link_all_deplibs, $1)=no
     4600    ;;
     4601  *)
     4602    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     4603    ;;
     4604  esac
     4605], [
     4606  runpath_var=
     4607  _LT_TAGVAR(allow_undefined_flag, $1)=
     4608  _LT_TAGVAR(always_export_symbols, $1)=no
     4609  _LT_TAGVAR(archive_cmds, $1)=
     4610  _LT_TAGVAR(archive_expsym_cmds, $1)=
     4611  _LT_TAGVAR(compiler_needs_object, $1)=no
     4612  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
     4613  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
     4614  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     4615  _LT_TAGVAR(hardcode_automatic, $1)=no
     4616  _LT_TAGVAR(hardcode_direct, $1)=no
     4617  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
     4618  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
     4619  _LT_TAGVAR(hardcode_libdir_separator, $1)=
     4620  _LT_TAGVAR(hardcode_minus_L, $1)=no
     4621  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
     4622  _LT_TAGVAR(inherit_rpath, $1)=no
     4623  _LT_TAGVAR(link_all_deplibs, $1)=unknown
     4624  _LT_TAGVAR(module_cmds, $1)=
     4625  _LT_TAGVAR(module_expsym_cmds, $1)=
     4626  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
     4627  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
     4628  _LT_TAGVAR(thread_safe_flag_spec, $1)=
     4629  _LT_TAGVAR(whole_archive_flag_spec, $1)=
     4630  # include_expsyms should be a list of space-separated symbols to be *always*
     4631  # included in the symbol list
     4632  _LT_TAGVAR(include_expsyms, $1)=
     4633  # exclude_expsyms can be an extended regexp of symbols to exclude
     4634  # it will be wrapped by ` (' and `)$', so one must not match beginning or
     4635  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
     4636  # as well as any symbol that contains `d'.
     4637  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
     4638  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
     4639  # platforms (ab)use it in PIC code, but their linkers get confused if
     4640  # the symbol is explicitly referenced.  Since portable code cannot
     4641  # rely on this symbol name, it's probably fine to never include it in
     4642  # preloaded symbol tables.
     4643  # Exclude shared library initialization/finalization symbols.
     4644dnl Note also adjust exclude_expsyms for C++ above.
     4645  extract_expsyms_cmds=
     4646
     4647  case $host_os in
     4648  cygwin* | mingw* | pw32* | cegcc*)
     4649    # FIXME: the MSVC++ port hasn't been tested in a loooong time
     4650    # When not using gcc, we currently assume that we are using
     4651    # Microsoft Visual C++.
     4652    if test "$GCC" != yes; then
     4653      with_gnu_ld=no
     4654    fi
     4655    ;;
     4656  interix*)
     4657    # we just hope/assume this is gcc and not c89 (= MSVC++)
     4658    with_gnu_ld=yes
     4659    ;;
     4660  openbsd*)
     4661    with_gnu_ld=no
     4662    ;;
     4663  linux* | k*bsd*-gnu | gnu*)
     4664    _LT_TAGVAR(link_all_deplibs, $1)=no
     4665    ;;
     4666  esac
     4667
     4668  _LT_TAGVAR(ld_shlibs, $1)=yes
     4669
     4670  # On some targets, GNU ld is compatible enough with the native linker
     4671  # that we're better off using the native interface for both.
     4672  lt_use_gnu_ld_interface=no
     4673  if test "$with_gnu_ld" = yes; then
     4674    case $host_os in
     4675      aix*)
     4676        # The AIX port of GNU ld has always aspired to compatibility
     4677        # with the native linker.  However, as the warning in the GNU ld
     4678        # block says, versions before 2.19.5* couldn't really create working
     4679        # shared libraries, regardless of the interface used.
     4680        case `$LD -v 2>&1` in
     4681          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
     4682          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
     4683          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
     4684          *)
     4685            lt_use_gnu_ld_interface=yes
     4686            ;;
     4687        esac
     4688        ;;
     4689      *)
     4690        lt_use_gnu_ld_interface=yes
     4691        ;;
     4692    esac
     4693  fi
     4694
     4695  if test "$lt_use_gnu_ld_interface" = yes; then
     4696    # If archive_cmds runs LD, not CC, wlarc should be empty
     4697    wlarc='${wl}'
     4698
     4699    # Set some defaults for GNU ld with shared library support. These
     4700    # are reset later if shared libraries are not supported. Putting them
     4701    # here allows them to be overridden if necessary.
     4702    runpath_var=LD_RUN_PATH
     4703    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     4704    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     4705    # ancient GNU ld didn't support --whole-archive et. al.
     4706    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
     4707      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     4708    else
     4709      _LT_TAGVAR(whole_archive_flag_spec, $1)=
     4710    fi
     4711    supports_anon_versioning=no
     4712    case `$LD -v 2>&1` in
     4713      *GNU\ gold*) supports_anon_versioning=yes ;;
     4714      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
     4715      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
     4716      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
     4717      *\ 2.11.*) ;; # other 2.11 versions
     4718      *) supports_anon_versioning=yes ;;
     4719    esac
     4720
     4721    # See if GNU ld supports shared libraries.
     4722    case $host_os in
     4723    aix[[3-9]]*)
     4724      # On AIX/PPC, the GNU linker is very broken
     4725      if test "$host_cpu" != ia64; then
     4726        _LT_TAGVAR(ld_shlibs, $1)=no
     4727        cat <<_LT_EOF 1>&2
     4728
     4729*** Warning: the GNU linker, at least up to release 2.19, is reported
     4730*** to be unable to reliably create shared libraries on AIX.
     4731*** Therefore, libtool is disabling shared libraries support.  If you
     4732*** really care for shared libraries, you may want to install binutils
     4733*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
     4734*** You will then need to restart the configuration process.
     4735
     4736_LT_EOF
     4737      fi
     4738      ;;
     4739
     4740    amigaos*)
     4741      case $host_cpu in
     4742      powerpc)
     4743            # see comment about AmigaOS4 .so support
     4744            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4745            _LT_TAGVAR(archive_expsym_cmds, $1)=''
     4746        ;;
     4747      m68k)
     4748            _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)'
     4749            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     4750            _LT_TAGVAR(hardcode_minus_L, $1)=yes
     4751        ;;
     4752      esac
     4753      ;;
     4754
     4755    beos*)
     4756      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     4757        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     4758        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     4759        # support --undefined.  This deserves some investigation.  FIXME
     4760        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4761      else
     4762        _LT_TAGVAR(ld_shlibs, $1)=no
     4763      fi
     4764      ;;
     4765
     4766    cygwin* | mingw* | pw32* | cegcc*)
     4767      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
     4768      # as there is no search path for DLLs.
     4769      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     4770      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
     4771      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     4772      _LT_TAGVAR(always_export_symbols, $1)=no
     4773      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     4774      _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'
     4775      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
     4776
     4777      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     4778        _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'
     4779        # If the export-symbols file already is a .def file (1st line
     4780        # is EXPORTS), use it as is; otherwise, prepend...
     4781        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     4782          cp $export_symbols $output_objdir/$soname.def;
     4783        else
     4784          echo EXPORTS > $output_objdir/$soname.def;
     4785          cat $export_symbols >> $output_objdir/$soname.def;
     4786        fi~
     4787        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     4788      else
     4789        _LT_TAGVAR(ld_shlibs, $1)=no
     4790      fi
     4791      ;;
     4792
     4793    haiku*)
     4794      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4795      _LT_TAGVAR(link_all_deplibs, $1)=yes
     4796      ;;
     4797
     4798    interix[[3-9]]*)
     4799      _LT_TAGVAR(hardcode_direct, $1)=no
     4800      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     4801      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     4802      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     4803      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     4804      # Instead, shared libraries are loaded at an image base (0x10000000 by
     4805      # default) and relocated if they conflict, which is a slow very memory
     4806      # consuming and fragmenting process.  To avoid this, we pick a random,
     4807      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     4808      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     4809      _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'
     4810      _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'
     4811      ;;
     4812
     4813    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
     4814      tmp_diet=no
     4815      if test "$host_os" = linux-dietlibc; then
     4816        case $cc_basename in
     4817          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
     4818        esac
     4819      fi
     4820      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
     4821         && test "$tmp_diet" = no
     4822      then
     4823        tmp_addflag=' $pic_flag'
     4824        tmp_sharedflag='-shared'
     4825        case $cc_basename,$host_cpu in
     4826        pgcc*)                          # Portland Group C compiler
     4827          _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'
     4828          tmp_addflag=' $pic_flag'
     4829          ;;
     4830        pgf77* | pgf90* | pgf95* | pgfortran*)
     4831                                        # Portland Group f77 and f90 compilers
     4832          _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'
     4833          tmp_addflag=' $pic_flag -Mnomain' ;;
     4834        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
     4835          tmp_addflag=' -i_dynamic' ;;
     4836        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
     4837          tmp_addflag=' -i_dynamic -nofor_main' ;;
     4838        ifc* | ifort*)                  # Intel Fortran compiler
     4839          tmp_addflag=' -nofor_main' ;;
     4840        lf95*)                          # Lahey Fortran 8.1
     4841          _LT_TAGVAR(whole_archive_flag_spec, $1)=
     4842          tmp_sharedflag='--shared' ;;
     4843        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
     4844          tmp_sharedflag='-qmkshrobj'
     4845          tmp_addflag= ;;
     4846        nvcc*)  # Cuda Compiler Driver 2.2
     4847          _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'
     4848          _LT_TAGVAR(compiler_needs_object, $1)=yes
     4849          ;;
     4850        esac
     4851        case `$CC -V 2>&1 | sed 5q` in
     4852        *Sun\ C*)                       # Sun C 5.9
     4853          _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'
     4854          _LT_TAGVAR(compiler_needs_object, $1)=yes
     4855          tmp_sharedflag='-G' ;;
     4856        *Sun\ F*)                       # Sun Fortran 8.3
     4857          tmp_sharedflag='-G' ;;
     4858        esac
     4859        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4860
     4861        if test "x$supports_anon_versioning" = xyes; then
     4862          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
     4863            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     4864            echo "local: *; };" >> $output_objdir/$libname.ver~
     4865            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     4866        fi
     4867
     4868        case $cc_basename in
     4869        xlf* | bgf* | bgxlf* | mpixlf*)
     4870          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
     4871          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
     4872          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     4873          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
     4874          if test "x$supports_anon_versioning" = xyes; then
     4875            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
     4876              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     4877              echo "local: *; };" >> $output_objdir/$libname.ver~
     4878              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
     4879          fi
     4880          ;;
     4881        esac
     4882      else
     4883        _LT_TAGVAR(ld_shlibs, $1)=no
     4884      fi
     4885      ;;
     4886
     4887    netbsd* | netbsdelf*-gnu)
     4888      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
     4889        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     4890        wlarc=
     4891      else
     4892        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4893        _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'
     4894      fi
     4895      ;;
     4896
     4897    solaris*)
     4898      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
     4899        _LT_TAGVAR(ld_shlibs, $1)=no
     4900        cat <<_LT_EOF 1>&2
     4901
     4902*** Warning: The releases 2.8.* of the GNU linker cannot reliably
     4903*** create shared libraries on Solaris systems.  Therefore, libtool
     4904*** is disabling shared libraries support.  We urge you to upgrade GNU
     4905*** binutils to release 2.9.1 or newer.  Another option is to modify
     4906*** your PATH or compiler configuration so that the native linker is
     4907*** used, and then restart.
     4908
     4909_LT_EOF
     4910      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     4911        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4912        _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'
     4913      else
     4914        _LT_TAGVAR(ld_shlibs, $1)=no
     4915      fi
     4916      ;;
     4917
     4918    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
     4919      case `$LD -v 2>&1` in
     4920        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
     4921        _LT_TAGVAR(ld_shlibs, $1)=no
     4922        cat <<_LT_EOF 1>&2
     4923
     4924*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
     4925*** reliably create shared libraries on SCO systems.  Therefore, libtool
     4926*** is disabling shared libraries support.  We urge you to upgrade GNU
     4927*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
     4928*** your PATH or compiler configuration so that the native linker is
     4929*** used, and then restart.
     4930
     4931_LT_EOF
     4932        ;;
     4933        *)
     4934          # For security reasons, it is highly recommended that you always
     4935          # use absolute paths for naming shared libraries, and exclude the
     4936          # DT_RUNPATH tag from executables and libraries.  But doing so
     4937          # requires that you compile everything twice, which is a pain.
     4938          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     4939            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     4940            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4941            _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'
     4942          else
     4943            _LT_TAGVAR(ld_shlibs, $1)=no
     4944          fi
     4945        ;;
     4946      esac
     4947      ;;
     4948
     4949    sunos4*)
     4950      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     4951      wlarc=
     4952      _LT_TAGVAR(hardcode_direct, $1)=yes
     4953      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     4954      ;;
     4955
     4956    *)
     4957      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     4958        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4959        _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'
     4960      else
     4961        _LT_TAGVAR(ld_shlibs, $1)=no
     4962      fi
     4963      ;;
     4964    esac
     4965
     4966    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
     4967      runpath_var=
     4968      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
     4969      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
     4970      _LT_TAGVAR(whole_archive_flag_spec, $1)=
     4971    fi
     4972  else
     4973    # PORTME fill in a description of your system's linker (not GNU ld)
     4974    case $host_os in
     4975    aix3*)
     4976      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     4977      _LT_TAGVAR(always_export_symbols, $1)=yes
     4978      _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'
     4979      # Note: this linker hardcodes the directories in LIBPATH if there
     4980      # are no directories specified by -L.
     4981      _LT_TAGVAR(hardcode_minus_L, $1)=yes
     4982      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
     4983        # Neither direct hardcoding nor static linking is supported with a
     4984        # broken collect2.
     4985        _LT_TAGVAR(hardcode_direct, $1)=unsupported
     4986      fi
     4987      ;;
     4988
     4989    aix[[4-9]]*)
     4990      if test "$host_cpu" = ia64; then
     4991        # On IA64, the linker does run time linking by default, so we don't
     4992        # have to do anything special.
     4993        aix_use_runtimelinking=no
     4994        exp_sym_flag='-Bexport'
     4995        no_entry_flag=""
     4996      else
     4997        # If we're using GNU nm, then we don't want the "-C" option.
     4998        # -C means demangle to AIX nm, but means don't demangle with GNU nm
     4999        # Also, AIX nm treats weak defined symbols like other global
     5000        # defined symbols, whereas GNU nm marks them as "W".
     5001        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
     5002          _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'
     5003        else
     5004          _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'
     5005        fi
     5006        aix_use_runtimelinking=no
     5007
     5008        # Test if we are trying to use run time linking or normal
     5009        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
     5010        # need to do runtime linking.
     5011        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
     5012          for ld_flag in $LDFLAGS; do
     5013          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
     5014            aix_use_runtimelinking=yes
     5015            break
     5016          fi
     5017          done
     5018          ;;
     5019        esac
     5020
     5021        exp_sym_flag='-bexport'
     5022        no_entry_flag='-bnoentry'
     5023      fi
     5024
     5025      # When large executables or shared objects are built, AIX ld can
     5026      # have problems creating the table of contents.  If linking a library
     5027      # or program results in "error TOC overflow" add -mminimal-toc to
     5028      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
     5029      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
     5030
     5031      _LT_TAGVAR(archive_cmds, $1)=''
     5032      _LT_TAGVAR(hardcode_direct, $1)=yes
     5033      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
     5034      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
     5035      _LT_TAGVAR(link_all_deplibs, $1)=yes
     5036      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
     5037
     5038      if test "$GCC" = yes; then
     5039        case $host_os in aix4.[[012]]|aix4.[[012]].*)
     5040        # We only want to do this on AIX 4.2 and lower, the check
     5041        # below for broken collect2 doesn't work under 4.3+
     5042          collect2name=`${CC} -print-prog-name=collect2`
     5043          if test -f "$collect2name" &&
     5044           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
     5045          then
     5046          # We have reworked collect2
     5047          :
     5048          else
     5049          # We have old collect2
     5050          _LT_TAGVAR(hardcode_direct, $1)=unsupported
     5051          # It fails to find uninstalled libraries when the uninstalled
     5052          # path is not listed in the libpath.  Setting hardcode_minus_L
     5053          # to unsupported forces relinking
     5054          _LT_TAGVAR(hardcode_minus_L, $1)=yes
     5055          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     5056          _LT_TAGVAR(hardcode_libdir_separator, $1)=
     5057          fi
     5058          ;;
     5059        esac
     5060        shared_flag='-shared'
     5061        if test "$aix_use_runtimelinking" = yes; then
     5062          shared_flag="$shared_flag "'${wl}-G'
     5063        fi
     5064        _LT_TAGVAR(link_all_deplibs, $1)=no
     5065      else
     5066        # not using gcc
     5067        if test "$host_cpu" = ia64; then
     5068        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
     5069        # chokes on -Wl,-G. The following line is correct:
     5070          shared_flag='-G'
     5071        else
     5072          if test "$aix_use_runtimelinking" = yes; then
     5073            shared_flag='${wl}-G'
     5074          else
     5075            shared_flag='${wl}-bM:SRE'
     5076          fi
     5077        fi
     5078      fi
     5079
     5080      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
     5081      # It seems that -bexpall does not export symbols beginning with
     5082      # underscore (_), so it is better to generate a list of symbols to export.
     5083      _LT_TAGVAR(always_export_symbols, $1)=yes
     5084      if test "$aix_use_runtimelinking" = yes; then
     5085        # Warning - without using the other runtime loading flags (-brtl),
     5086        # -berok will link without error, but may produce a broken library.
     5087        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
     5088        # Determine the default libpath from the value encoded in an
     5089        # empty executable.
     5090        _LT_SYS_MODULE_PATH_AIX([$1])
     5091        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
     5092        _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"
     5093      else
     5094        if test "$host_cpu" = ia64; then
     5095          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
     5096          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
     5097          _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"
     5098        else
     5099         # Determine the default libpath from the value encoded in an
     5100         # empty executable.
     5101         _LT_SYS_MODULE_PATH_AIX([$1])
     5102         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
     5103          # Warning - without using the other run time loading flags,
     5104          # -berok will link without error, but may produce a broken library.
     5105          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
     5106          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
     5107          if test "$with_gnu_ld" = yes; then
     5108            # We only use this code for GNU lds that support --whole-archive.
     5109            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     5110          else
     5111            # Exported symbols can be pulled into shared objects from archives
     5112            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     5113          fi
     5114          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
     5115          # This is similar to how AIX traditionally builds its shared libraries.
     5116          _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'
     5117        fi
     5118      fi
     5119      ;;
     5120
     5121    amigaos*)
     5122      case $host_cpu in
     5123      powerpc)
     5124            # see comment about AmigaOS4 .so support
     5125            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5126            _LT_TAGVAR(archive_expsym_cmds, $1)=''
     5127        ;;
     5128      m68k)
     5129            _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)'
     5130            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     5131            _LT_TAGVAR(hardcode_minus_L, $1)=yes
     5132        ;;
     5133      esac
     5134      ;;
     5135
     5136    bsdi[[45]]*)
     5137      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
     5138      ;;
     5139
     5140    cygwin* | mingw* | pw32* | cegcc*)
     5141      # When not using gcc, we currently assume that we are using
     5142      # Microsoft Visual C++.
     5143      # hardcode_libdir_flag_spec is actually meaningless, as there is
     5144      # no search path for DLLs.
     5145      case $cc_basename in
     5146      cl*)
     5147        # Native MSVC
     5148        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     5149        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     5150        _LT_TAGVAR(always_export_symbols, $1)=yes
     5151        _LT_TAGVAR(file_list_spec, $1)='@'
     5152        # Tell ltmain to make .lib files, not .a files.
     5153        libext=lib
     5154        # Tell ltmain to make .dll files, not .so files.
     5155        shrext_cmds=".dll"
     5156        # FIXME: Setting linknames here is a bad hack.
     5157        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     5158        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     5159            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     5160          else
     5161            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     5162          fi~
     5163          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     5164          linknames='
     5165        # The linker will not automatically build a static lib if we build a DLL.
     5166        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     5167        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5168        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
     5169        _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'
     5170        # Don't use ranlib
     5171        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
     5172        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
     5173          lt_tool_outputfile="@TOOL_OUTPUT@"~
     5174          case $lt_outputfile in
     5175            *.exe|*.EXE) ;;
     5176            *)
     5177              lt_outputfile="$lt_outputfile.exe"
     5178              lt_tool_outputfile="$lt_tool_outputfile.exe"
     5179              ;;
     5180          esac~
     5181          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     5182            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     5183            $RM "$lt_outputfile.manifest";
     5184          fi'
     5185        ;;
     5186      *)
     5187        # Assume MSVC wrapper
     5188        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     5189        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     5190        # Tell ltmain to make .lib files, not .a files.
     5191        libext=lib
     5192        # Tell ltmain to make .dll files, not .so files.
     5193        shrext_cmds=".dll"
     5194        # FIXME: Setting linknames here is a bad hack.
     5195        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
     5196        # The linker will automatically build a .lib file if we build a DLL.
     5197        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     5198        # FIXME: Should let the user specify the lib program.
     5199        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
     5200        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5201        ;;
     5202      esac
     5203      ;;
     5204
     5205    darwin* | rhapsody*)
     5206      _LT_DARWIN_LINKER_FEATURES($1)
     5207      ;;
     5208
     5209    dgux*)
     5210      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5211      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     5212      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5213      ;;
     5214
     5215    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
     5216    # support.  Future versions do this automatically, but an explicit c++rt0.o
     5217    # does not break anything, and helps significantly (at the cost of a little
     5218    # extra space).
     5219    freebsd2.2*)
     5220      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
     5221      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     5222      _LT_TAGVAR(hardcode_direct, $1)=yes
     5223      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5224      ;;
     5225
     5226    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
     5227    freebsd2.*)
     5228      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     5229      _LT_TAGVAR(hardcode_direct, $1)=yes
     5230      _LT_TAGVAR(hardcode_minus_L, $1)=yes
     5231      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5232      ;;
     5233
     5234    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
     5235    freebsd* | dragonfly*)
     5236      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     5237      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     5238      _LT_TAGVAR(hardcode_direct, $1)=yes
     5239      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5240      ;;
     5241
     5242    hpux9*)
     5243      if test "$GCC" = yes; then
     5244        _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'
     5245      else
     5246        _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'
     5247      fi
     5248      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     5249      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     5250      _LT_TAGVAR(hardcode_direct, $1)=yes
     5251
     5252      # hardcode_minus_L: Not really in the search PATH,
     5253      # but as the default location of the library.
     5254      _LT_TAGVAR(hardcode_minus_L, $1)=yes
     5255      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     5256      ;;
     5257
     5258    hpux10*)
     5259      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     5260        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5261      else
     5262        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     5263      fi
     5264      if test "$with_gnu_ld" = no; then
     5265        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     5266        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     5267        _LT_TAGVAR(hardcode_direct, $1)=yes
     5268        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
     5269        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     5270        # hardcode_minus_L: Not really in the search PATH,
     5271        # but as the default location of the library.
     5272        _LT_TAGVAR(hardcode_minus_L, $1)=yes
     5273      fi
     5274      ;;
     5275
     5276    hpux11*)
     5277      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     5278        case $host_cpu in
     5279        hppa*64*)
     5280          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     5281          ;;
     5282        ia64*)
     5283          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     5284          ;;
     5285        *)
     5286          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5287          ;;
     5288        esac
     5289      else
     5290        case $host_cpu in
     5291        hppa*64*)
     5292          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     5293          ;;
     5294        ia64*)
     5295          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     5296          ;;
     5297        *)
     5298        m4_if($1, [], [
     5299          # Older versions of the 11.00 compiler do not understand -b yet
     5300          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
     5301          _LT_LINKER_OPTION([if $CC understands -b],
     5302            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
     5303            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
     5304            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
     5305          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
     5306          ;;
     5307        esac
     5308      fi
     5309      if test "$with_gnu_ld" = no; then
     5310        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     5311        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     5312
     5313        case $host_cpu in
     5314        hppa*64*|ia64*)
     5315          _LT_TAGVAR(hardcode_direct, $1)=no
     5316          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5317          ;;
     5318        *)
     5319          _LT_TAGVAR(hardcode_direct, $1)=yes
     5320          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
     5321          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     5322
     5323          # hardcode_minus_L: Not really in the search PATH,
     5324          # but as the default location of the library.
     5325          _LT_TAGVAR(hardcode_minus_L, $1)=yes
     5326          ;;
     5327        esac
     5328      fi
     5329      ;;
     5330
     5331    irix5* | irix6* | nonstopux*)
     5332      if test "$GCC" = yes; then
     5333        _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'
     5334        # Try to use the -exported_symbol ld option, if it does not
     5335        # work, assume that -exports_file does not work either and
     5336        # implicitly export all symbols.
     5337        # This should be the same for all languages, so no per-tag cache variable.
     5338        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
     5339          [lt_cv_irix_exported_symbol],
     5340          [save_LDFLAGS="$LDFLAGS"
     5341           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
     5342           AC_LINK_IFELSE(
     5343             [AC_LANG_SOURCE(
     5344                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
     5345                              [C++], [[int foo (void) { return 0; }]],
     5346                              [Fortran 77], [[
     5347      subroutine foo
     5348      end]],
     5349                              [Fortran], [[
     5350      subroutine foo
     5351      end]])])],
     5352              [lt_cv_irix_exported_symbol=yes],
     5353              [lt_cv_irix_exported_symbol=no])
     5354           LDFLAGS="$save_LDFLAGS"])
     5355        if test "$lt_cv_irix_exported_symbol" = yes; then
     5356          _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'
     5357        fi
     5358      else
     5359        _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'
     5360        _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'
     5361      fi
     5362      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
     5363      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     5364      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     5365      _LT_TAGVAR(inherit_rpath, $1)=yes
     5366      _LT_TAGVAR(link_all_deplibs, $1)=yes
     5367      ;;
     5368
     5369    netbsd* | netbsdelf*-gnu)
     5370      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
     5371        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     5372      else
     5373        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
     5374      fi
     5375      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     5376      _LT_TAGVAR(hardcode_direct, $1)=yes
     5377      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5378      ;;
     5379
     5380    newsos6)
     5381      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5382      _LT_TAGVAR(hardcode_direct, $1)=yes
     5383      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     5384      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     5385      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5386      ;;
     5387
     5388    *nto* | *qnx*)
     5389      ;;
     5390
     5391    openbsd*)
     5392      if test -f /usr/libexec/ld.so; then
     5393        _LT_TAGVAR(hardcode_direct, $1)=yes
     5394        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5395        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
     5396        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     5397          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     5398          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     5399          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     5400          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     5401        else
     5402          case $host_os in
     5403           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
     5404             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     5405             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     5406             ;;
     5407           *)
     5408             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     5409             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     5410             ;;
     5411          esac
     5412        fi
     5413      else
     5414        _LT_TAGVAR(ld_shlibs, $1)=no
     5415      fi
     5416      ;;
     5417
     5418    os2*)
     5419      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     5420      _LT_TAGVAR(hardcode_minus_L, $1)=yes
     5421      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     5422      _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'
     5423      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
     5424      ;;
     5425
     5426    osf3*)
     5427      if test "$GCC" = yes; then
     5428        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
     5429        _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'
     5430      else
     5431        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
     5432        _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'
     5433      fi
     5434      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
     5435      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     5436      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     5437      ;;
     5438
     5439    osf4* | osf5*)      # as osf3* with the addition of -msym flag
     5440      if test "$GCC" = yes; then
     5441        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
     5442        _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'
     5443        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     5444      else
     5445        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
     5446        _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'
     5447        _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~
     5448        $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'
     5449
     5450        # Both c and cxx compiler support -rpath directly
     5451        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
     5452      fi
     5453      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
     5454      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     5455      ;;
     5456
     5457    solaris*)
     5458      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
     5459      if test "$GCC" = yes; then
     5460        wlarc='${wl}'
     5461        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     5462        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     5463          $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'
     5464      else
     5465        case `$CC -V 2>&1` in
     5466        *"Compilers 5.0"*)
     5467          wlarc=''
     5468          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5469          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     5470          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
     5471          ;;
     5472        *)
     5473          wlarc='${wl}'
     5474          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
     5475          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     5476          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
     5477          ;;
     5478        esac
     5479      fi
     5480      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     5481      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5482      case $host_os in
     5483      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
     5484      *)
     5485        # The compiler driver will combine and reorder linker options,
     5486        # but understands `-z linker_flag'.  GCC discards it without `$wl',
     5487        # but is careful enough not to reorder.
     5488        # Supported since Solaris 2.6 (maybe 2.5.1?)
     5489        if test "$GCC" = yes; then
     5490          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     5491        else
     5492          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
     5493        fi
     5494        ;;
     5495      esac
     5496      _LT_TAGVAR(link_all_deplibs, $1)=yes
     5497      ;;
     5498
     5499    sunos4*)
     5500      if test "x$host_vendor" = xsequent; then
     5501        # Use $CC to link under sequent, because it throws in some extra .o
     5502        # files that make .init and .fini sections work.
     5503        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
     5504      else
     5505        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
     5506      fi
     5507      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     5508      _LT_TAGVAR(hardcode_direct, $1)=yes
     5509      _LT_TAGVAR(hardcode_minus_L, $1)=yes
     5510      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5511      ;;
     5512
     5513    sysv4)
     5514      case $host_vendor in
     5515        sni)
     5516          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5517          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
     5518        ;;
     5519        siemens)
     5520          ## LD is ld it makes a PLAMLIB
     5521          ## CC just makes a GrossModule.
     5522          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
     5523          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
     5524          _LT_TAGVAR(hardcode_direct, $1)=no
     5525        ;;
     5526        motorola)
     5527          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5528          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
     5529        ;;
     5530      esac
     5531      runpath_var='LD_RUN_PATH'
     5532      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5533      ;;
     5534
     5535    sysv4.3*)
     5536      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5537      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5538      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
     5539      ;;
     5540
     5541    sysv4*MP*)
     5542      if test -d /usr/nec; then
     5543        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5544        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5545        runpath_var=LD_RUN_PATH
     5546        hardcode_runpath_var=yes
     5547        _LT_TAGVAR(ld_shlibs, $1)=yes
     5548      fi
     5549      ;;
     5550
     5551    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
     5552      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     5553      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
     5554      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5555      runpath_var='LD_RUN_PATH'
     5556
     5557      if test "$GCC" = yes; then
     5558        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5559        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5560      else
     5561        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5562        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5563      fi
     5564      ;;
     5565
     5566    sysv5* | sco3.2v5* | sco5v6*)
     5567      # Note: We can NOT use -z defs as we might desire, because we do not
     5568      # link with -lc, and that would cause any symbols used from libc to
     5569      # always be unresolved, which means just about no library would
     5570      # ever link correctly.  If we're not using GNU ld we use -z text
     5571      # though, which does catch some bad symbols but isn't as heavy-handed
     5572      # as -z defs.
     5573      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     5574      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
     5575      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
     5576      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5577      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
     5578      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
     5579      _LT_TAGVAR(link_all_deplibs, $1)=yes
     5580      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
     5581      runpath_var='LD_RUN_PATH'
     5582
     5583      if test "$GCC" = yes; then
     5584        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5585        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5586      else
     5587        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5588        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5589      fi
     5590      ;;
     5591
     5592    uts4*)
     5593      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5594      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     5595      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     5596      ;;
     5597
     5598    *)
     5599      _LT_TAGVAR(ld_shlibs, $1)=no
     5600      ;;
     5601    esac
     5602
     5603    if test x$host_vendor = xsni; then
     5604      case $host in
     5605      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     5606        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
     5607        ;;
     5608      esac
     5609    fi
     5610  fi
     5611])
     5612AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
     5613test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
     5614
     5615_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
     5616
     5617_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
     5618_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
     5619_LT_DECL([], [extract_expsyms_cmds], [2],
     5620    [The commands to extract the exported symbol list from a shared archive])
     5621
     5622#
     5623# Do we need to explicitly link libc?
     5624#
     5625case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
     5626x|xyes)
     5627  # Assume -lc should be added
     5628  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
     5629
     5630  if test "$enable_shared" = yes && test "$GCC" = yes; then
     5631    case $_LT_TAGVAR(archive_cmds, $1) in
     5632    *'~'*)
     5633      # FIXME: we may have to deal with multi-command sequences.
     5634      ;;
     5635    '$CC '*)
     5636      # Test whether the compiler implicitly links with -lc since on some
     5637      # systems, -lgcc has to come before -lc. If gcc already passes -lc
     5638      # to ld, don't add -lc before -lgcc.
     5639      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
     5640        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
     5641        [$RM conftest*
     5642        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     5643
     5644        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
     5645          soname=conftest
     5646          lib=conftest
     5647          libobjs=conftest.$ac_objext
     5648          deplibs=
     5649          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
     5650          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
     5651          compiler_flags=-v
     5652          linker_flags=-v
     5653          verstring=
     5654          output_objdir=.
     5655          libname=conftest
     5656          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
     5657          _LT_TAGVAR(allow_undefined_flag, $1)=
     5658          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
     5659          then
     5660            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     5661          else
     5662            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
     5663          fi
     5664          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
     5665        else
     5666          cat conftest.err 1>&5
     5667        fi
     5668        $RM conftest*
     5669        ])
     5670      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
     5671      ;;
     5672    esac
     5673  fi
     5674  ;;
     5675esac
     5676
     5677_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
     5678    [Whether or not to add -lc for building shared libraries])
     5679_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
     5680    [enable_shared_with_static_runtimes], [0],
     5681    [Whether or not to disallow shared libs when runtime libs are static])
     5682_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
     5683    [Compiler flag to allow reflexive dlopens])
     5684_LT_TAGDECL([], [whole_archive_flag_spec], [1],
     5685    [Compiler flag to generate shared objects directly from archives])
     5686_LT_TAGDECL([], [compiler_needs_object], [1],
     5687    [Whether the compiler copes with passing no objects directly])
     5688_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
     5689    [Create an old-style archive from a shared archive])
     5690_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
     5691    [Create a temporary old-style archive to link instead of a shared archive])
     5692_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
     5693_LT_TAGDECL([], [archive_expsym_cmds], [2])
     5694_LT_TAGDECL([], [module_cmds], [2],
     5695    [Commands used to build a loadable module if different from building
     5696    a shared archive.])
     5697_LT_TAGDECL([], [module_expsym_cmds], [2])
     5698_LT_TAGDECL([], [with_gnu_ld], [1],
     5699    [Whether we are building with GNU ld or not])
     5700_LT_TAGDECL([], [allow_undefined_flag], [1],
     5701    [Flag that allows shared libraries with undefined symbols to be built])
     5702_LT_TAGDECL([], [no_undefined_flag], [1],
     5703    [Flag that enforces no undefined symbols])
     5704_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
     5705    [Flag to hardcode $libdir into a binary during linking.
     5706    This must work even if $libdir does not exist])
     5707_LT_TAGDECL([], [hardcode_libdir_separator], [1],
     5708    [Whether we need a single "-rpath" flag with a separated argument])
     5709_LT_TAGDECL([], [hardcode_direct], [0],
     5710    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
     5711    DIR into the resulting binary])
     5712_LT_TAGDECL([], [hardcode_direct_absolute], [0],
     5713    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
     5714    DIR into the resulting binary and the resulting library dependency is
     5715    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
     5716    library is relocated])
     5717_LT_TAGDECL([], [hardcode_minus_L], [0],
     5718    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
     5719    into the resulting binary])
     5720_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
     5721    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
     5722    into the resulting binary])
     5723_LT_TAGDECL([], [hardcode_automatic], [0],
     5724    [Set to "yes" if building a shared library automatically hardcodes DIR
     5725    into the library and all subsequent libraries and executables linked
     5726    against it])
     5727_LT_TAGDECL([], [inherit_rpath], [0],
     5728    [Set to yes if linker adds runtime paths of dependent libraries
     5729    to runtime path list])
     5730_LT_TAGDECL([], [link_all_deplibs], [0],
     5731    [Whether libtool must link a program against all its dependency libraries])
     5732_LT_TAGDECL([], [always_export_symbols], [0],
     5733    [Set to "yes" if exported symbols are required])
     5734_LT_TAGDECL([], [export_symbols_cmds], [2],
     5735    [The commands to list exported symbols])
     5736_LT_TAGDECL([], [exclude_expsyms], [1],
     5737    [Symbols that should not be listed in the preloaded symbols])
     5738_LT_TAGDECL([], [include_expsyms], [1],
     5739    [Symbols that must always be exported])
     5740_LT_TAGDECL([], [prelink_cmds], [2],
     5741    [Commands necessary for linking programs (against libraries) with templates])
     5742_LT_TAGDECL([], [postlink_cmds], [2],
     5743    [Commands necessary for finishing linking programs])
     5744_LT_TAGDECL([], [file_list_spec], [1],
     5745    [Specify filename containing input files])
     5746dnl FIXME: Not yet implemented
     5747dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
     5748dnl    [Compiler flag to generate thread safe objects])
     5749])# _LT_LINKER_SHLIBS
     5750
     5751
     5752# _LT_LANG_C_CONFIG([TAG])
     5753# ------------------------
     5754# Ensure that the configuration variables for a C compiler are suitably
     5755# defined.  These variables are subsequently used by _LT_CONFIG to write
     5756# the compiler configuration to `libtool'.
     5757m4_defun([_LT_LANG_C_CONFIG],
     5758[m4_require([_LT_DECL_EGREP])dnl
     5759lt_save_CC="$CC"
     5760AC_LANG_PUSH(C)
     5761
     5762# Source file extension for C test sources.
     5763ac_ext=c
     5764
     5765# Object file extension for compiled C test sources.
     5766objext=o
     5767_LT_TAGVAR(objext, $1)=$objext
     5768
     5769# Code to be used in simple compile tests
     5770lt_simple_compile_test_code="int some_variable = 0;"
     5771
     5772# Code to be used in simple link tests
     5773lt_simple_link_test_code='int main(){return(0);}'
     5774
     5775_LT_TAG_COMPILER
     5776# Save the default compiler, since it gets overwritten when the other
     5777# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
     5778compiler_DEFAULT=$CC
     5779
     5780# save warnings/boilerplate of simple test code
     5781_LT_COMPILER_BOILERPLATE
     5782_LT_LINKER_BOILERPLATE
     5783
     5784if test -n "$compiler"; then
     5785  _LT_COMPILER_NO_RTTI($1)
     5786  _LT_COMPILER_PIC($1)
     5787  _LT_COMPILER_C_O($1)
     5788  _LT_COMPILER_FILE_LOCKS($1)
     5789  _LT_LINKER_SHLIBS($1)
     5790  _LT_SYS_DYNAMIC_LINKER($1)
     5791  _LT_LINKER_HARDCODE_LIBPATH($1)
     5792  LT_SYS_DLOPEN_SELF
     5793  _LT_CMD_STRIPLIB
     5794
     5795  # Report which library types will actually be built
     5796  AC_MSG_CHECKING([if libtool supports shared libraries])
     5797  AC_MSG_RESULT([$can_build_shared])
     5798
     5799  AC_MSG_CHECKING([whether to build shared libraries])
     5800  test "$can_build_shared" = "no" && enable_shared=no
     5801
     5802  # On AIX, shared libraries and static libraries use the same namespace, and
     5803  # are all built from PIC.
     5804  case $host_os in
     5805  aix3*)
     5806    test "$enable_shared" = yes && enable_static=no
     5807    if test -n "$RANLIB"; then
     5808      archive_cmds="$archive_cmds~\$RANLIB \$lib"
     5809      postinstall_cmds='$RANLIB $lib'
     5810    fi
     5811    ;;
     5812
     5813  aix[[4-9]]*)
     5814    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     5815      test "$enable_shared" = yes && enable_static=no
     5816    fi
     5817    ;;
     5818  esac
     5819  AC_MSG_RESULT([$enable_shared])
     5820
     5821  AC_MSG_CHECKING([whether to build static libraries])
     5822  # Make sure either enable_shared or enable_static is yes.
     5823  test "$enable_shared" = yes || enable_static=yes
     5824  AC_MSG_RESULT([$enable_static])
     5825
     5826  _LT_CONFIG($1)
     5827fi
     5828AC_LANG_POP
     5829CC="$lt_save_CC"
     5830])# _LT_LANG_C_CONFIG
     5831
     5832
     5833# _LT_LANG_CXX_CONFIG([TAG])
     5834# --------------------------
     5835# Ensure that the configuration variables for a C++ compiler are suitably
     5836# defined.  These variables are subsequently used by _LT_CONFIG to write
     5837# the compiler configuration to `libtool'.
     5838m4_defun([_LT_LANG_CXX_CONFIG],
     5839[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     5840m4_require([_LT_DECL_EGREP])dnl
     5841m4_require([_LT_PATH_MANIFEST_TOOL])dnl
     5842if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     5843    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     5844    (test "X$CXX" != "Xg++"))) ; then
     5845  AC_PROG_CXXCPP
     5846else
     5847  _lt_caught_CXX_error=yes
     5848fi
     5849
     5850AC_LANG_PUSH(C++)
     5851_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     5852_LT_TAGVAR(allow_undefined_flag, $1)=
     5853_LT_TAGVAR(always_export_symbols, $1)=no
     5854_LT_TAGVAR(archive_expsym_cmds, $1)=
     5855_LT_TAGVAR(compiler_needs_object, $1)=no
     5856_LT_TAGVAR(export_dynamic_flag_spec, $1)=
     5857_LT_TAGVAR(hardcode_direct, $1)=no
     5858_LT_TAGVAR(hardcode_direct_absolute, $1)=no
     5859_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
     5860_LT_TAGVAR(hardcode_libdir_separator, $1)=
     5861_LT_TAGVAR(hardcode_minus_L, $1)=no
     5862_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
     5863_LT_TAGVAR(hardcode_automatic, $1)=no
     5864_LT_TAGVAR(inherit_rpath, $1)=no
     5865_LT_TAGVAR(module_cmds, $1)=
     5866_LT_TAGVAR(module_expsym_cmds, $1)=
     5867_LT_TAGVAR(link_all_deplibs, $1)=unknown
     5868_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     5869_LT_TAGVAR(reload_flag, $1)=$reload_flag
     5870_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
     5871_LT_TAGVAR(no_undefined_flag, $1)=
     5872_LT_TAGVAR(whole_archive_flag_spec, $1)=
     5873_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
     5874
     5875# Source file extension for C++ test sources.
     5876ac_ext=cpp
     5877
     5878# Object file extension for compiled C++ test sources.
     5879objext=o
     5880_LT_TAGVAR(objext, $1)=$objext
     5881
     5882# No sense in running all these tests if we already determined that
     5883# the CXX compiler isn't working.  Some variables (like enable_shared)
     5884# are currently assumed to apply to all compilers on this platform,
     5885# and will be corrupted by setting them based on a non-working compiler.
     5886if test "$_lt_caught_CXX_error" != yes; then
     5887  # Code to be used in simple compile tests
     5888  lt_simple_compile_test_code="int some_variable = 0;"
     5889
     5890  # Code to be used in simple link tests
     5891  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
     5892
     5893  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
     5894  _LT_TAG_COMPILER
     5895
     5896  # save warnings/boilerplate of simple test code
     5897  _LT_COMPILER_BOILERPLATE
     5898  _LT_LINKER_BOILERPLATE
     5899
     5900  # Allow CC to be a program name with arguments.
     5901  lt_save_CC=$CC
     5902  lt_save_CFLAGS=$CFLAGS
     5903  lt_save_LD=$LD
     5904  lt_save_GCC=$GCC
     5905  GCC=$GXX
     5906  lt_save_with_gnu_ld=$with_gnu_ld
     5907  lt_save_path_LD=$lt_cv_path_LD
     5908  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
     5909    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
     5910  else
     5911    $as_unset lt_cv_prog_gnu_ld
     5912  fi
     5913  if test -n "${lt_cv_path_LDCXX+set}"; then
     5914    lt_cv_path_LD=$lt_cv_path_LDCXX
     5915  else
     5916    $as_unset lt_cv_path_LD
     5917  fi
     5918  test -z "${LDCXX+set}" || LD=$LDCXX
     5919  CC=${CXX-"c++"}
     5920  CFLAGS=$CXXFLAGS
     5921  compiler=$CC
     5922  _LT_TAGVAR(compiler, $1)=$CC
     5923  _LT_CC_BASENAME([$compiler])
     5924
     5925  if test -n "$compiler"; then
     5926    # We don't want -fno-exception when compiling C++ code, so set the
     5927    # no_builtin_flag separately
     5928    if test "$GXX" = yes; then
     5929      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
     5930    else
     5931      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
     5932    fi
     5933
     5934    if test "$GXX" = yes; then
     5935      # Set up default GNU C++ configuration
     5936
     5937      LT_PATH_LD
     5938
     5939      # Check if GNU C++ uses GNU ld as the underlying linker, since the
     5940      # archiving commands below assume that GNU ld is being used.
     5941      if test "$with_gnu_ld" = yes; then
     5942        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5943        _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'
     5944
     5945        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     5946        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     5947
     5948        # If archive_cmds runs LD, not CC, wlarc should be empty
     5949        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
     5950        #     investigate it a little bit more. (MM)
     5951        wlarc='${wl}'
     5952
     5953        # ancient GNU ld didn't support --whole-archive et. al.
     5954        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
     5955          $GREP 'no-whole-archive' > /dev/null; then
     5956          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     5957        else
     5958          _LT_TAGVAR(whole_archive_flag_spec, $1)=
     5959        fi
     5960      else
     5961        with_gnu_ld=no
     5962        wlarc=
     5963
     5964        # A generic and very simple default shared library creation
     5965        # command for GNU C++ for the case where it uses the native
     5966        # linker, instead of GNU ld.  If possible, this setting should
     5967        # overridden to take advantage of the native linker features on
     5968        # the platform it is being used on.
     5969        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     5970      fi
     5971
     5972      # Commands to make compiler produce verbose output that lists
     5973      # what "hidden" libraries, object files and flags are used when
     5974      # linking a shared library.
     5975      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
     5976
     5977    else
     5978      GXX=no
     5979      with_gnu_ld=no
     5980      wlarc=
     5981    fi
     5982
     5983    # PORTME: fill in a description of your system's C++ link characteristics
     5984    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
     5985    _LT_TAGVAR(ld_shlibs, $1)=yes
     5986    case $host_os in
     5987      aix3*)
     5988        # FIXME: insert proper C++ library support
     5989        _LT_TAGVAR(ld_shlibs, $1)=no
     5990        ;;
     5991      aix[[4-9]]*)
     5992        if test "$host_cpu" = ia64; then
     5993          # On IA64, the linker does run time linking by default, so we don't
     5994          # have to do anything special.
     5995          aix_use_runtimelinking=no
     5996          exp_sym_flag='-Bexport'
     5997          no_entry_flag=""
     5998        else
     5999          aix_use_runtimelinking=no
     6000
     6001          # Test if we are trying to use run time linking or normal
     6002          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
     6003          # need to do runtime linking.
     6004          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
     6005            for ld_flag in $LDFLAGS; do
     6006              case $ld_flag in
     6007              *-brtl*)
     6008                aix_use_runtimelinking=yes
     6009                break
     6010                ;;
     6011              esac
     6012            done
     6013            ;;
     6014          esac
     6015
     6016          exp_sym_flag='-bexport'
     6017          no_entry_flag='-bnoentry'
     6018        fi
     6019
     6020        # When large executables or shared objects are built, AIX ld can
     6021        # have problems creating the table of contents.  If linking a library
     6022        # or program results in "error TOC overflow" add -mminimal-toc to
     6023        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
     6024        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
     6025
     6026        _LT_TAGVAR(archive_cmds, $1)=''
     6027        _LT_TAGVAR(hardcode_direct, $1)=yes
     6028        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
     6029        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
     6030        _LT_TAGVAR(link_all_deplibs, $1)=yes
     6031        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
     6032
     6033        if test "$GXX" = yes; then
     6034          case $host_os in aix4.[[012]]|aix4.[[012]].*)
     6035          # We only want to do this on AIX 4.2 and lower, the check
     6036          # below for broken collect2 doesn't work under 4.3+
     6037          collect2name=`${CC} -print-prog-name=collect2`
     6038          if test -f "$collect2name" &&
     6039             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
     6040          then
     6041            # We have reworked collect2
     6042            :
     6043          else
     6044            # We have old collect2
     6045            _LT_TAGVAR(hardcode_direct, $1)=unsupported
     6046            # It fails to find uninstalled libraries when the uninstalled
     6047            # path is not listed in the libpath.  Setting hardcode_minus_L
     6048            # to unsupported forces relinking
     6049            _LT_TAGVAR(hardcode_minus_L, $1)=yes
     6050            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     6051            _LT_TAGVAR(hardcode_libdir_separator, $1)=
     6052          fi
     6053          esac
     6054          shared_flag='-shared'
     6055          if test "$aix_use_runtimelinking" = yes; then
     6056            shared_flag="$shared_flag "'${wl}-G'
     6057          fi
     6058        else
     6059          # not using gcc
     6060          if test "$host_cpu" = ia64; then
     6061          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
     6062          # chokes on -Wl,-G. The following line is correct:
     6063          shared_flag='-G'
     6064          else
     6065            if test "$aix_use_runtimelinking" = yes; then
     6066              shared_flag='${wl}-G'
     6067            else
     6068              shared_flag='${wl}-bM:SRE'
     6069            fi
     6070          fi
     6071        fi
     6072
     6073        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
     6074        # It seems that -bexpall does not export symbols beginning with
     6075        # underscore (_), so it is better to generate a list of symbols to
     6076        # export.
     6077        _LT_TAGVAR(always_export_symbols, $1)=yes
     6078        if test "$aix_use_runtimelinking" = yes; then
     6079          # Warning - without using the other runtime loading flags (-brtl),
     6080          # -berok will link without error, but may produce a broken library.
     6081          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
     6082          # Determine the default libpath from the value encoded in an empty
     6083          # executable.
     6084          _LT_SYS_MODULE_PATH_AIX([$1])
     6085          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
     6086
     6087          _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"
     6088        else
     6089          if test "$host_cpu" = ia64; then
     6090            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
     6091            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
     6092            _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"
     6093          else
     6094            # Determine the default libpath from the value encoded in an
     6095            # empty executable.
     6096            _LT_SYS_MODULE_PATH_AIX([$1])
     6097            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
     6098            # Warning - without using the other run time loading flags,
     6099            # -berok will link without error, but may produce a broken library.
     6100            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
     6101            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
     6102            if test "$with_gnu_ld" = yes; then
     6103              # We only use this code for GNU lds that support --whole-archive.
     6104              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     6105            else
     6106              # Exported symbols can be pulled into shared objects from archives
     6107              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     6108            fi
     6109            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
     6110            # This is similar to how AIX traditionally builds its shared
     6111            # libraries.
     6112            _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'
     6113          fi
     6114        fi
     6115        ;;
     6116
     6117      beos*)
     6118        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     6119          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     6120          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     6121          # support --undefined.  This deserves some investigation.  FIXME
     6122          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6123        else
     6124          _LT_TAGVAR(ld_shlibs, $1)=no
     6125        fi
     6126        ;;
     6127
     6128      chorus*)
     6129        case $cc_basename in
     6130          *)
     6131          # FIXME: insert proper C++ library support
     6132          _LT_TAGVAR(ld_shlibs, $1)=no
     6133          ;;
     6134        esac
     6135        ;;
     6136
     6137      cygwin* | mingw* | pw32* | cegcc*)
     6138        case $GXX,$cc_basename in
     6139        ,cl* | no,cl*)
     6140          # Native MSVC
     6141          # hardcode_libdir_flag_spec is actually meaningless, as there is
     6142          # no search path for DLLs.
     6143          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     6144          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     6145          _LT_TAGVAR(always_export_symbols, $1)=yes
     6146          _LT_TAGVAR(file_list_spec, $1)='@'
     6147          # Tell ltmain to make .lib files, not .a files.
     6148          libext=lib
     6149          # Tell ltmain to make .dll files, not .so files.
     6150          shrext_cmds=".dll"
     6151          # FIXME: Setting linknames here is a bad hack.
     6152          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     6153          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6154              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     6155            else
     6156              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     6157            fi~
     6158            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     6159            linknames='
     6160          # The linker will not automatically build a static lib if we build a DLL.
     6161          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     6162          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     6163          # Don't use ranlib
     6164          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
     6165          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
     6166            lt_tool_outputfile="@TOOL_OUTPUT@"~
     6167            case $lt_outputfile in
     6168              *.exe|*.EXE) ;;
     6169              *)
     6170                lt_outputfile="$lt_outputfile.exe"
     6171                lt_tool_outputfile="$lt_tool_outputfile.exe"
     6172                ;;
     6173            esac~
     6174            func_to_tool_file "$lt_outputfile"~
     6175            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     6176              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     6177              $RM "$lt_outputfile.manifest";
     6178            fi'
     6179          ;;
     6180        *)
     6181          # g++
     6182          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
     6183          # as there is no search path for DLLs.
     6184          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     6185          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
     6186          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     6187          _LT_TAGVAR(always_export_symbols, $1)=no
     6188          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     6189
     6190          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     6191            _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'
     6192            # If the export-symbols file already is a .def file (1st line
     6193            # is EXPORTS), use it as is; otherwise, prepend...
     6194            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6195              cp $export_symbols $output_objdir/$soname.def;
     6196            else
     6197              echo EXPORTS > $output_objdir/$soname.def;
     6198              cat $export_symbols >> $output_objdir/$soname.def;
     6199            fi~
     6200            $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'
     6201          else
     6202            _LT_TAGVAR(ld_shlibs, $1)=no
     6203          fi
     6204          ;;
     6205        esac
     6206        ;;
     6207      darwin* | rhapsody*)
     6208        _LT_DARWIN_LINKER_FEATURES($1)
     6209        ;;
     6210
     6211      dgux*)
     6212        case $cc_basename in
     6213          ec++*)
     6214            # FIXME: insert proper C++ library support
     6215            _LT_TAGVAR(ld_shlibs, $1)=no
     6216            ;;
     6217          ghcx*)
     6218            # Green Hills C++ Compiler
     6219            # FIXME: insert proper C++ library support
     6220            _LT_TAGVAR(ld_shlibs, $1)=no
     6221            ;;
     6222          *)
     6223            # FIXME: insert proper C++ library support
     6224            _LT_TAGVAR(ld_shlibs, $1)=no
     6225            ;;
     6226        esac
     6227        ;;
     6228
     6229      freebsd2.*)
     6230        # C++ shared libraries reported to be fairly broken before
     6231        # switch to ELF
     6232        _LT_TAGVAR(ld_shlibs, $1)=no
     6233        ;;
     6234
     6235      freebsd-elf*)
     6236        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
     6237        ;;
     6238
     6239      freebsd* | dragonfly*)
     6240        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
     6241        # conventions
     6242        _LT_TAGVAR(ld_shlibs, $1)=yes
     6243        ;;
     6244
     6245      haiku*)
     6246        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6247        _LT_TAGVAR(link_all_deplibs, $1)=yes
     6248        ;;
     6249
     6250      hpux9*)
     6251        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     6252        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     6253        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6254        _LT_TAGVAR(hardcode_direct, $1)=yes
     6255        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
     6256                                             # but as the default
     6257                                             # location of the library.
     6258
     6259        case $cc_basename in
     6260          CC*)
     6261            # FIXME: insert proper C++ library support
     6262            _LT_TAGVAR(ld_shlibs, $1)=no
     6263            ;;
     6264          aCC*)
     6265            _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'
     6266            # Commands to make compiler produce verbose output that lists
     6267            # what "hidden" libraries, object files and flags are used when
     6268            # linking a shared library.
     6269            #
     6270            # There doesn't appear to be a way to prevent this compiler from
     6271            # explicitly linking system object files so we need to strip them
     6272            # from the output so that they don't get included in the library
     6273            # dependencies.
     6274            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"'
     6275            ;;
     6276          *)
     6277            if test "$GXX" = yes; then
     6278              _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'
     6279            else
     6280              # FIXME: insert proper C++ library support
     6281              _LT_TAGVAR(ld_shlibs, $1)=no
     6282            fi
     6283            ;;
     6284        esac
     6285        ;;
     6286
     6287      hpux10*|hpux11*)
     6288        if test $with_gnu_ld = no; then
     6289          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     6290          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     6291
     6292          case $host_cpu in
     6293            hppa*64*|ia64*)
     6294              ;;
     6295            *)
     6296              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6297              ;;
     6298          esac
     6299        fi
     6300        case $host_cpu in
     6301          hppa*64*|ia64*)
     6302            _LT_TAGVAR(hardcode_direct, $1)=no
     6303            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     6304            ;;
     6305          *)
     6306            _LT_TAGVAR(hardcode_direct, $1)=yes
     6307            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
     6308            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
     6309                                                 # but as the default
     6310                                                 # location of the library.
     6311            ;;
     6312        esac
     6313
     6314        case $cc_basename in
     6315          CC*)
     6316            # FIXME: insert proper C++ library support
     6317            _LT_TAGVAR(ld_shlibs, $1)=no
     6318            ;;
     6319          aCC*)
     6320            case $host_cpu in
     6321              hppa*64*)
     6322                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6323                ;;
     6324              ia64*)
     6325                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6326                ;;
     6327              *)
     6328                _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'
     6329                ;;
     6330            esac
     6331            # Commands to make compiler produce verbose output that lists
     6332            # what "hidden" libraries, object files and flags are used when
     6333            # linking a shared library.
     6334            #
     6335            # There doesn't appear to be a way to prevent this compiler from
     6336            # explicitly linking system object files so we need to strip them
     6337            # from the output so that they don't get included in the library
     6338            # dependencies.
     6339            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"'
     6340            ;;
     6341          *)
     6342            if test "$GXX" = yes; then
     6343              if test $with_gnu_ld = no; then
     6344                case $host_cpu in
     6345                  hppa*64*)
     6346                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6347                    ;;
     6348                  ia64*)
     6349                    _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'
     6350                    ;;
     6351                  *)
     6352                    _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'
     6353                    ;;
     6354                esac
     6355              fi
     6356            else
     6357              # FIXME: insert proper C++ library support
     6358              _LT_TAGVAR(ld_shlibs, $1)=no
     6359            fi
     6360            ;;
     6361        esac
     6362        ;;
     6363
     6364      interix[[3-9]]*)
     6365        _LT_TAGVAR(hardcode_direct, $1)=no
     6366        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     6367        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6368        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6369        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     6370        # Instead, shared libraries are loaded at an image base (0x10000000 by
     6371        # default) and relocated if they conflict, which is a slow very memory
     6372        # consuming and fragmenting process.  To avoid this, we pick a random,
     6373        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     6374        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     6375        _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'
     6376        _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'
     6377        ;;
     6378      irix5* | irix6*)
     6379        case $cc_basename in
     6380          CC*)
     6381            # SGI C++
     6382            _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'
     6383
     6384            # Archives containing C++ object files must be created using
     6385            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
     6386            # necessary to make sure instantiated templates are included
     6387            # in the archive.
     6388            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
     6389            ;;
     6390          *)
     6391            if test "$GXX" = yes; then
     6392              if test "$with_gnu_ld" = no; then
     6393                _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'
     6394              else
     6395                _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'
     6396              fi
     6397            fi
     6398            _LT_TAGVAR(link_all_deplibs, $1)=yes
     6399            ;;
     6400        esac
     6401        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     6402        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     6403        _LT_TAGVAR(inherit_rpath, $1)=yes
     6404        ;;
     6405
     6406      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
     6407        case $cc_basename in
     6408          KCC*)
     6409            # Kuck and Associates, Inc. (KAI) C++ Compiler
     6410
     6411            # KCC will only create a shared library if the output file
     6412            # ends with ".so" (or ".sl" for HP-UX), so rename the library
     6413            # to its proper name (with version) after linking.
     6414            _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'
     6415            _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'
     6416            # Commands to make compiler produce verbose output that lists
     6417            # what "hidden" libraries, object files and flags are used when
     6418            # linking a shared library.
     6419            #
     6420            # There doesn't appear to be a way to prevent this compiler from
     6421            # explicitly linking system object files so we need to strip them
     6422            # from the output so that they don't get included in the library
     6423            # dependencies.
     6424            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"'
     6425
     6426            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6427            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     6428
     6429            # Archives containing C++ object files must be created using
     6430            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
     6431            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
     6432            ;;
     6433          icpc* | ecpc* )
     6434            # Intel C++
     6435            with_gnu_ld=yes
     6436            # version 8.0 and above of icpc choke on multiply defined symbols
     6437            # if we add $predep_objects and $postdep_objects, however 7.1 and
     6438            # earlier do not add the objects themselves.
     6439            case `$CC -V 2>&1` in
     6440              *"Version 7."*)
     6441                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6442                _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'
     6443                ;;
     6444              *)  # Version 8.0 or newer
     6445                tmp_idyn=
     6446                case $host_cpu in
     6447                  ia64*) tmp_idyn=' -i_dynamic';;
     6448                esac
     6449                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6450                _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'
     6451                ;;
     6452            esac
     6453            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
     6454            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6455            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     6456            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     6457            ;;
     6458          pgCC* | pgcpp*)
     6459            # Portland Group C++ compiler
     6460            case `$CC -V` in
     6461            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
     6462              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
     6463                rm -rf $tpldir~
     6464                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
     6465                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
     6466              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
     6467                rm -rf $tpldir~
     6468                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
     6469                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
     6470                $RANLIB $oldlib'
     6471              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
     6472                rm -rf $tpldir~
     6473                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
     6474                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     6475              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
     6476                rm -rf $tpldir~
     6477                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
     6478                $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'
     6479              ;;
     6480            *) # Version 6 and above use weak symbols
     6481              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     6482              _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'
     6483              ;;
     6484            esac
     6485
     6486            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
     6487            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     6488            _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'
     6489            ;;
     6490          cxx*)
     6491            # Compaq C++
     6492            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6493            _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'
     6494
     6495            runpath_var=LD_RUN_PATH
     6496            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
     6497            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     6498
     6499            # Commands to make compiler produce verbose output that lists
     6500            # what "hidden" libraries, object files and flags are used when
     6501            # linking a shared library.
     6502            #
     6503            # There doesn't appear to be a way to prevent this compiler from
     6504            # explicitly linking system object files so we need to strip them
     6505            # from the output so that they don't get included in the library
     6506            # dependencies.
     6507            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'
     6508            ;;
     6509          xl* | mpixl* | bgxl*)
     6510            # IBM XL 8.0 on PPC, with GNU ld
     6511            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     6512            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     6513            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6514            if test "x$supports_anon_versioning" = xyes; then
     6515              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
     6516                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     6517                echo "local: *; };" >> $output_objdir/$libname.ver~
     6518                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     6519            fi
     6520            ;;
     6521          *)
     6522            case `$CC -V 2>&1 | sed 5q` in
     6523            *Sun\ C*)
     6524              # Sun C++ 5.9
     6525              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
     6526              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6527              _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'
     6528              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     6529              _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'
     6530              _LT_TAGVAR(compiler_needs_object, $1)=yes
     6531
     6532              # Not sure whether something based on
     6533              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
     6534              # would be better.
     6535              output_verbose_link_cmd='func_echo_all'
     6536
     6537              # Archives containing C++ object files must be created using
     6538              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
     6539              # necessary to make sure instantiated templates are included
     6540              # in the archive.
     6541              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
     6542              ;;
     6543            esac
     6544            ;;
     6545        esac
     6546        ;;
     6547
     6548      lynxos*)
     6549        # FIXME: insert proper C++ library support
     6550        _LT_TAGVAR(ld_shlibs, $1)=no
     6551        ;;
     6552
     6553      m88k*)
     6554        # FIXME: insert proper C++ library support
     6555        _LT_TAGVAR(ld_shlibs, $1)=no
     6556        ;;
     6557
     6558      mvs*)
     6559        case $cc_basename in
     6560          cxx*)
     6561            # FIXME: insert proper C++ library support
     6562            _LT_TAGVAR(ld_shlibs, $1)=no
     6563            ;;
     6564          *)
     6565            # FIXME: insert proper C++ library support
     6566            _LT_TAGVAR(ld_shlibs, $1)=no
     6567            ;;
     6568        esac
     6569        ;;
     6570
     6571      netbsd*)
     6572        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
     6573          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
     6574          wlarc=
     6575          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     6576          _LT_TAGVAR(hardcode_direct, $1)=yes
     6577          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     6578        fi
     6579        # Workaround some broken pre-1.5 toolchains
     6580        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
     6581        ;;
     6582
     6583      *nto* | *qnx*)
     6584        _LT_TAGVAR(ld_shlibs, $1)=yes
     6585        ;;
     6586
     6587      openbsd2*)
     6588        # C++ shared libraries are fairly broken
     6589        _LT_TAGVAR(ld_shlibs, $1)=no
     6590        ;;
     6591
     6592      openbsd*)
     6593        if test -f /usr/libexec/ld.so; then
     6594          _LT_TAGVAR(hardcode_direct, $1)=yes
     6595          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     6596          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
     6597          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     6598          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6599          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     6600            _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'
     6601            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6602            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     6603          fi
     6604          output_verbose_link_cmd=func_echo_all
     6605        else
     6606          _LT_TAGVAR(ld_shlibs, $1)=no
     6607        fi
     6608        ;;
     6609
     6610      osf3* | osf4* | osf5*)
     6611        case $cc_basename in
     6612          KCC*)
     6613            # Kuck and Associates, Inc. (KAI) C++ Compiler
     6614
     6615            # KCC will only create a shared library if the output file
     6616            # ends with ".so" (or ".sl" for HP-UX), so rename the library
     6617            # to its proper name (with version) after linking.
     6618            _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'
     6619
     6620            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6621            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     6622
     6623            # Archives containing C++ object files must be created using
     6624            # the KAI C++ compiler.
     6625            case $host in
     6626              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
     6627              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
     6628            esac
     6629            ;;
     6630          RCC*)
     6631            # Rational C++ 2.4.1
     6632            # FIXME: insert proper C++ library support
     6633            _LT_TAGVAR(ld_shlibs, $1)=no
     6634            ;;
     6635          cxx*)
     6636            case $host in
     6637              osf3*)
     6638                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
     6639                _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'
     6640                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     6641                ;;
     6642              *)
     6643                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
     6644                _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'
     6645                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
     6646                  echo "-hidden">> $lib.exp~
     6647                  $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~
     6648                  $RM $lib.exp'
     6649                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
     6650                ;;
     6651            esac
     6652
     6653            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     6654
     6655            # Commands to make compiler produce verbose output that lists
     6656            # what "hidden" libraries, object files and flags are used when
     6657            # linking a shared library.
     6658            #
     6659            # There doesn't appear to be a way to prevent this compiler from
     6660            # explicitly linking system object files so we need to strip them
     6661            # from the output so that they don't get included in the library
     6662            # dependencies.
     6663            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"'
     6664            ;;
     6665          *)
     6666            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
     6667              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
     6668              case $host in
     6669                osf3*)
     6670                  _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'
     6671                  ;;
     6672                *)
     6673                  _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'
     6674                  ;;
     6675              esac
     6676
     6677              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     6678              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
     6679
     6680              # Commands to make compiler produce verbose output that lists
     6681              # what "hidden" libraries, object files and flags are used when
     6682              # linking a shared library.
     6683              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
     6684
     6685            else
     6686              # FIXME: insert proper C++ library support
     6687              _LT_TAGVAR(ld_shlibs, $1)=no
     6688            fi
     6689            ;;
     6690        esac
     6691        ;;
     6692
     6693      psos*)
     6694        # FIXME: insert proper C++ library support
     6695        _LT_TAGVAR(ld_shlibs, $1)=no
     6696        ;;
     6697
     6698      sunos4*)
     6699        case $cc_basename in
     6700          CC*)
     6701            # Sun C++ 4.x
     6702            # FIXME: insert proper C++ library support
     6703            _LT_TAGVAR(ld_shlibs, $1)=no
     6704            ;;
     6705          lcc*)
     6706            # Lucid
     6707            # FIXME: insert proper C++ library support
     6708            _LT_TAGVAR(ld_shlibs, $1)=no
     6709            ;;
     6710          *)
     6711            # FIXME: insert proper C++ library support
     6712            _LT_TAGVAR(ld_shlibs, $1)=no
     6713            ;;
     6714        esac
     6715        ;;
     6716
     6717      solaris*)
     6718        case $cc_basename in
     6719          CC* | sunCC*)
     6720            # Sun C++ 4.2, 5.x and Centerline C++
     6721            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
     6722            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
     6723            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6724            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     6725              $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'
     6726
     6727            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     6728            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     6729            case $host_os in
     6730              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
     6731              *)
     6732                # The compiler driver will combine and reorder linker options,
     6733                # but understands `-z linker_flag'.
     6734                # Supported since Solaris 2.6 (maybe 2.5.1?)
     6735                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
     6736                ;;
     6737            esac
     6738            _LT_TAGVAR(link_all_deplibs, $1)=yes
     6739
     6740            output_verbose_link_cmd='func_echo_all'
     6741
     6742            # Archives containing C++ object files must be created using
     6743            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
     6744            # necessary to make sure instantiated templates are included
     6745            # in the archive.
     6746            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
     6747            ;;
     6748          gcx*)
     6749            # Green Hills C++ Compiler
     6750            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     6751
     6752            # The C++ compiler must be used to create the archive.
     6753            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
     6754            ;;
     6755          *)
     6756            # GNU C++ compiler with Solaris linker
     6757            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
     6758              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
     6759              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
     6760                _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'
     6761                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     6762                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
     6763
     6764                # Commands to make compiler produce verbose output that lists
     6765                # what "hidden" libraries, object files and flags are used when
     6766                # linking a shared library.
     6767                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
     6768              else
     6769                # g++ 2.7 appears to require `-G' NOT `-shared' on this
     6770                # platform.
     6771                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     6772                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     6773                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
     6774
     6775                # Commands to make compiler produce verbose output that lists
     6776                # what "hidden" libraries, object files and flags are used when
     6777                # linking a shared library.
     6778                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
     6779              fi
     6780
     6781              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
     6782              case $host_os in
     6783                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
     6784                *)
     6785                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     6786                  ;;
     6787              esac
     6788            fi
     6789            ;;
     6790        esac
     6791        ;;
     6792
     6793    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
     6794      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     6795      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
     6796      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     6797      runpath_var='LD_RUN_PATH'
     6798
     6799      case $cc_basename in
     6800        CC*)
     6801          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6802          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6803          ;;
     6804        *)
     6805          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6806          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6807          ;;
     6808      esac
     6809      ;;
     6810
     6811      sysv5* | sco3.2v5* | sco5v6*)
     6812        # Note: We can NOT use -z defs as we might desire, because we do not
     6813        # link with -lc, and that would cause any symbols used from libc to
     6814        # always be unresolved, which means just about no library would
     6815        # ever link correctly.  If we're not using GNU ld we use -z text
     6816        # though, which does catch some bad symbols but isn't as heavy-handed
     6817        # as -z defs.
     6818        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     6819        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
     6820        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
     6821        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     6822        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
     6823        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
     6824        _LT_TAGVAR(link_all_deplibs, $1)=yes
     6825        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
     6826        runpath_var='LD_RUN_PATH'
     6827
     6828        case $cc_basename in
     6829          CC*)
     6830            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6831            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6832            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
     6833              '"$_LT_TAGVAR(old_archive_cmds, $1)"
     6834            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
     6835              '"$_LT_TAGVAR(reload_cmds, $1)"
     6836            ;;
     6837          *)
     6838            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6839            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6840            ;;
     6841        esac
     6842      ;;
     6843
     6844      tandem*)
     6845        case $cc_basename in
     6846          NCC*)
     6847            # NonStop-UX NCC 3.20
     6848            # FIXME: insert proper C++ library support
     6849            _LT_TAGVAR(ld_shlibs, $1)=no
     6850            ;;
     6851          *)
     6852            # FIXME: insert proper C++ library support
     6853            _LT_TAGVAR(ld_shlibs, $1)=no
     6854            ;;
     6855        esac
     6856        ;;
     6857
     6858      vxworks*)
     6859        # FIXME: insert proper C++ library support
     6860        _LT_TAGVAR(ld_shlibs, $1)=no
     6861        ;;
     6862
     6863      *)
     6864        # FIXME: insert proper C++ library support
     6865        _LT_TAGVAR(ld_shlibs, $1)=no
     6866        ;;
     6867    esac
     6868
     6869    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
     6870    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
     6871
     6872    _LT_TAGVAR(GCC, $1)="$GXX"
     6873    _LT_TAGVAR(LD, $1)="$LD"
     6874
     6875    ## CAVEAT EMPTOR:
     6876    ## There is no encapsulation within the following macros, do not change
     6877    ## the running order or otherwise move them around unless you know exactly
     6878    ## what you are doing...
     6879    _LT_SYS_HIDDEN_LIBDEPS($1)
     6880    _LT_COMPILER_PIC($1)
     6881    _LT_COMPILER_C_O($1)
     6882    _LT_COMPILER_FILE_LOCKS($1)
     6883    _LT_LINKER_SHLIBS($1)
     6884    _LT_SYS_DYNAMIC_LINKER($1)
     6885    _LT_LINKER_HARDCODE_LIBPATH($1)
     6886
     6887    _LT_CONFIG($1)
     6888  fi # test -n "$compiler"
     6889
     6890  CC=$lt_save_CC
     6891  CFLAGS=$lt_save_CFLAGS
     6892  LDCXX=$LD
     6893  LD=$lt_save_LD
     6894  GCC=$lt_save_GCC
     6895  with_gnu_ld=$lt_save_with_gnu_ld
     6896  lt_cv_path_LDCXX=$lt_cv_path_LD
     6897  lt_cv_path_LD=$lt_save_path_LD
     6898  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
     6899  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
     6900fi # test "$_lt_caught_CXX_error" != yes
     6901
     6902AC_LANG_POP
     6903])# _LT_LANG_CXX_CONFIG
     6904
     6905
     6906# _LT_FUNC_STRIPNAME_CNF
     6907# ----------------------
     6908# func_stripname_cnf prefix suffix name
     6909# strip PREFIX and SUFFIX off of NAME.
     6910# PREFIX and SUFFIX must not contain globbing or regex special
     6911# characters, hashes, percent signs, but SUFFIX may contain a leading
     6912# dot (in which case that matches only a dot).
     6913#
     6914# This function is identical to the (non-XSI) version of func_stripname,
     6915# except this one can be used by m4 code that may be executed by configure,
     6916# rather than the libtool script.
     6917m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
     6918AC_REQUIRE([_LT_DECL_SED])
     6919AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
     6920func_stripname_cnf ()
     6921{
     6922  case ${2} in
     6923  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     6924  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     6925  esac
     6926} # func_stripname_cnf
     6927])# _LT_FUNC_STRIPNAME_CNF
     6928
     6929# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
     6930# ---------------------------------
     6931# Figure out "hidden" library dependencies from verbose
     6932# compiler output when linking a shared library.
     6933# Parse the compiler output and extract the necessary
     6934# objects, libraries and library flags.
     6935m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
     6936[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     6937AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
     6938# Dependencies to place before and after the object being linked:
     6939_LT_TAGVAR(predep_objects, $1)=
     6940_LT_TAGVAR(postdep_objects, $1)=
     6941_LT_TAGVAR(predeps, $1)=
     6942_LT_TAGVAR(postdeps, $1)=
     6943_LT_TAGVAR(compiler_lib_search_path, $1)=
     6944
     6945dnl we can't use the lt_simple_compile_test_code here,
     6946dnl because it contains code intended for an executable,
     6947dnl not a library.  It's possible we should let each
     6948dnl tag define a new lt_????_link_test_code variable,
     6949dnl but it's only used here...
     6950m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
     6951int a;
     6952void foo (void) { a = 0; }
     6953_LT_EOF
     6954], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
     6955class Foo
     6956{
     6957public:
     6958  Foo (void) { a = 0; }
     6959private:
     6960  int a;
     6961};
     6962_LT_EOF
     6963], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
     6964      subroutine foo
     6965      implicit none
     6966      integer*4 a
     6967      a=0
     6968      return
     6969      end
     6970_LT_EOF
     6971], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
     6972      subroutine foo
     6973      implicit none
     6974      integer a
     6975      a=0
     6976      return
     6977      end
     6978_LT_EOF
     6979], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
     6980public class foo {
     6981  private int a;
     6982  public void bar (void) {
     6983    a = 0;
     6984  }
     6985};
     6986_LT_EOF
     6987], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
     6988package foo
     6989func foo() {
     6990}
     6991_LT_EOF
     6992])
     6993
     6994_lt_libdeps_save_CFLAGS=$CFLAGS
     6995case "$CC $CFLAGS " in #(
     6996*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
     6997*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
     6998*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
     6999esac
     7000
     7001dnl Parse the compiler output and extract the necessary
     7002dnl objects, libraries and library flags.
     7003if AC_TRY_EVAL(ac_compile); then
     7004  # Parse the compiler output and extract the necessary
     7005  # objects, libraries and library flags.
     7006
     7007  # Sentinel used to keep track of whether or not we are before
     7008  # the conftest object file.
     7009  pre_test_object_deps_done=no
     7010
     7011  for p in `eval "$output_verbose_link_cmd"`; do
     7012    case ${prev}${p} in
     7013
     7014    -L* | -R* | -l*)
     7015       # Some compilers place space between "-{L,R}" and the path.
     7016       # Remove the space.
     7017       if test $p = "-L" ||
     7018          test $p = "-R"; then
     7019         prev=$p
     7020         continue
     7021       fi
     7022
     7023       # Expand the sysroot to ease extracting the directories later.
     7024       if test -z "$prev"; then
     7025         case $p in
     7026         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
     7027         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
     7028         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
     7029         esac
     7030       fi
     7031       case $p in
     7032       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
     7033       esac
     7034       if test "$pre_test_object_deps_done" = no; then
     7035         case ${prev} in
     7036         -L | -R)
     7037           # Internal compiler library paths should come after those
     7038           # provided the user.  The postdeps already come after the
     7039           # user supplied libs so there is no need to process them.
     7040           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
     7041             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
     7042           else
     7043             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
     7044           fi
     7045           ;;
     7046         # The "-l" case would never come before the object being
     7047         # linked, so don't bother handling this case.
     7048         esac
     7049       else
     7050         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
     7051           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
     7052         else
     7053           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
     7054         fi
     7055       fi
     7056       prev=
     7057       ;;
     7058
     7059    *.lto.$objext) ;; # Ignore GCC LTO objects
     7060    *.$objext)
     7061       # This assumes that the test object file only shows up
     7062       # once in the compiler output.
     7063       if test "$p" = "conftest.$objext"; then
     7064         pre_test_object_deps_done=yes
     7065         continue
     7066       fi
     7067
     7068       if test "$pre_test_object_deps_done" = no; then
     7069         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
     7070           _LT_TAGVAR(predep_objects, $1)="$p"
     7071         else
     7072           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
     7073         fi
     7074       else
     7075         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
     7076           _LT_TAGVAR(postdep_objects, $1)="$p"
     7077         else
     7078           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
     7079         fi
     7080       fi
     7081       ;;
     7082
     7083    *) ;; # Ignore the rest.
     7084
     7085    esac
     7086  done
     7087
     7088  # Clean up.
     7089  rm -f a.out a.exe
     7090else
     7091  echo "libtool.m4: error: problem compiling $1 test program"
     7092fi
     7093
     7094$RM -f confest.$objext
     7095CFLAGS=$_lt_libdeps_save_CFLAGS
     7096
     7097# PORTME: override above test on systems where it is broken
     7098m4_if([$1], [CXX],
     7099[case $host_os in
     7100interix[[3-9]]*)
     7101  # Interix 3.5 installs completely hosed .la files for C++, so rather than
     7102  # hack all around it, let's just trust "g++" to DTRT.
     7103  _LT_TAGVAR(predep_objects,$1)=
     7104  _LT_TAGVAR(postdep_objects,$1)=
     7105  _LT_TAGVAR(postdeps,$1)=
     7106  ;;
     7107
     7108linux*)
     7109  case `$CC -V 2>&1 | sed 5q` in
     7110  *Sun\ C*)
     7111    # Sun C++ 5.9
     7112
     7113    # The more standards-conforming stlport4 library is
     7114    # incompatible with the Cstd library. Avoid specifying
     7115    # it if it's in CXXFLAGS. Ignore libCrun as
     7116    # -library=stlport4 depends on it.
     7117    case " $CXX $CXXFLAGS " in
     7118    *" -library=stlport4 "*)
     7119      solaris_use_stlport4=yes
     7120      ;;
     7121    esac
     7122
     7123    if test "$solaris_use_stlport4" != yes; then
     7124      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
     7125    fi
     7126    ;;
     7127  esac
     7128  ;;
     7129
     7130solaris*)
     7131  case $cc_basename in
     7132  CC* | sunCC*)
     7133    # The more standards-conforming stlport4 library is
     7134    # incompatible with the Cstd library. Avoid specifying
     7135    # it if it's in CXXFLAGS. Ignore libCrun as
     7136    # -library=stlport4 depends on it.
     7137    case " $CXX $CXXFLAGS " in
     7138    *" -library=stlport4 "*)
     7139      solaris_use_stlport4=yes
     7140      ;;
     7141    esac
     7142
     7143    # Adding this requires a known-good setup of shared libraries for
     7144    # Sun compiler versions before 5.6, else PIC objects from an old
     7145    # archive will be linked into the output, leading to subtle bugs.
     7146    if test "$solaris_use_stlport4" != yes; then
     7147      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
     7148    fi
     7149    ;;
     7150  esac
     7151  ;;
     7152esac
     7153])
     7154
     7155case " $_LT_TAGVAR(postdeps, $1) " in
     7156*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
     7157esac
     7158 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
     7159if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
     7160 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
     7161fi
     7162_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
     7163    [The directories searched by this compiler when creating a shared library])
     7164_LT_TAGDECL([], [predep_objects], [1],
     7165    [Dependencies to place before and after the objects being linked to
     7166    create a shared library])
     7167_LT_TAGDECL([], [postdep_objects], [1])
     7168_LT_TAGDECL([], [predeps], [1])
     7169_LT_TAGDECL([], [postdeps], [1])
     7170_LT_TAGDECL([], [compiler_lib_search_path], [1],
     7171    [The library search path used internally by the compiler when linking
     7172    a shared library])
     7173])# _LT_SYS_HIDDEN_LIBDEPS
     7174
     7175
     7176# _LT_LANG_F77_CONFIG([TAG])
     7177# --------------------------
     7178# Ensure that the configuration variables for a Fortran 77 compiler are
     7179# suitably defined.  These variables are subsequently used by _LT_CONFIG
     7180# to write the compiler configuration to `libtool'.
     7181m4_defun([_LT_LANG_F77_CONFIG],
     7182[AC_LANG_PUSH(Fortran 77)
     7183if test -z "$F77" || test "X$F77" = "Xno"; then
     7184  _lt_disable_F77=yes
     7185fi
     7186
     7187_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     7188_LT_TAGVAR(allow_undefined_flag, $1)=
     7189_LT_TAGVAR(always_export_symbols, $1)=no
     7190_LT_TAGVAR(archive_expsym_cmds, $1)=
     7191_LT_TAGVAR(export_dynamic_flag_spec, $1)=
     7192_LT_TAGVAR(hardcode_direct, $1)=no
     7193_LT_TAGVAR(hardcode_direct_absolute, $1)=no
     7194_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
     7195_LT_TAGVAR(hardcode_libdir_separator, $1)=
     7196_LT_TAGVAR(hardcode_minus_L, $1)=no
     7197_LT_TAGVAR(hardcode_automatic, $1)=no
     7198_LT_TAGVAR(inherit_rpath, $1)=no
     7199_LT_TAGVAR(module_cmds, $1)=
     7200_LT_TAGVAR(module_expsym_cmds, $1)=
     7201_LT_TAGVAR(link_all_deplibs, $1)=unknown
     7202_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7203_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7204_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
     7205_LT_TAGVAR(no_undefined_flag, $1)=
     7206_LT_TAGVAR(whole_archive_flag_spec, $1)=
     7207_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
     7208
     7209# Source file extension for f77 test sources.
     7210ac_ext=f
     7211
     7212# Object file extension for compiled f77 test sources.
     7213objext=o
     7214_LT_TAGVAR(objext, $1)=$objext
     7215
     7216# No sense in running all these tests if we already determined that
     7217# the F77 compiler isn't working.  Some variables (like enable_shared)
     7218# are currently assumed to apply to all compilers on this platform,
     7219# and will be corrupted by setting them based on a non-working compiler.
     7220if test "$_lt_disable_F77" != yes; then
     7221  # Code to be used in simple compile tests
     7222  lt_simple_compile_test_code="\
     7223      subroutine t
     7224      return
     7225      end
     7226"
     7227
     7228  # Code to be used in simple link tests
     7229  lt_simple_link_test_code="\
     7230      program t
     7231      end
     7232"
     7233
     7234  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
     7235  _LT_TAG_COMPILER
     7236
     7237  # save warnings/boilerplate of simple test code
     7238  _LT_COMPILER_BOILERPLATE
     7239  _LT_LINKER_BOILERPLATE
     7240
     7241  # Allow CC to be a program name with arguments.
     7242  lt_save_CC="$CC"
     7243  lt_save_GCC=$GCC
     7244  lt_save_CFLAGS=$CFLAGS
     7245  CC=${F77-"f77"}
     7246  CFLAGS=$FFLAGS
     7247  compiler=$CC
     7248  _LT_TAGVAR(compiler, $1)=$CC
     7249  _LT_CC_BASENAME([$compiler])
     7250  GCC=$G77
     7251  if test -n "$compiler"; then
     7252    AC_MSG_CHECKING([if libtool supports shared libraries])
     7253    AC_MSG_RESULT([$can_build_shared])
     7254
     7255    AC_MSG_CHECKING([whether to build shared libraries])
     7256    test "$can_build_shared" = "no" && enable_shared=no
     7257
     7258    # On AIX, shared libraries and static libraries use the same namespace, and
     7259    # are all built from PIC.
     7260    case $host_os in
     7261      aix3*)
     7262        test "$enable_shared" = yes && enable_static=no
     7263        if test -n "$RANLIB"; then
     7264          archive_cmds="$archive_cmds~\$RANLIB \$lib"
     7265          postinstall_cmds='$RANLIB $lib'
     7266        fi
     7267        ;;
     7268      aix[[4-9]]*)
     7269        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     7270          test "$enable_shared" = yes && enable_static=no
     7271        fi
     7272        ;;
     7273    esac
     7274    AC_MSG_RESULT([$enable_shared])
     7275
     7276    AC_MSG_CHECKING([whether to build static libraries])
     7277    # Make sure either enable_shared or enable_static is yes.
     7278    test "$enable_shared" = yes || enable_static=yes
     7279    AC_MSG_RESULT([$enable_static])
     7280
     7281    _LT_TAGVAR(GCC, $1)="$G77"
     7282    _LT_TAGVAR(LD, $1)="$LD"
     7283
     7284    ## CAVEAT EMPTOR:
     7285    ## There is no encapsulation within the following macros, do not change
     7286    ## the running order or otherwise move them around unless you know exactly
     7287    ## what you are doing...
     7288    _LT_COMPILER_PIC($1)
     7289    _LT_COMPILER_C_O($1)
     7290    _LT_COMPILER_FILE_LOCKS($1)
     7291    _LT_LINKER_SHLIBS($1)
     7292    _LT_SYS_DYNAMIC_LINKER($1)
     7293    _LT_LINKER_HARDCODE_LIBPATH($1)
     7294
     7295    _LT_CONFIG($1)
     7296  fi # test -n "$compiler"
     7297
     7298  GCC=$lt_save_GCC
     7299  CC="$lt_save_CC"
     7300  CFLAGS="$lt_save_CFLAGS"
     7301fi # test "$_lt_disable_F77" != yes
     7302
     7303AC_LANG_POP
     7304])# _LT_LANG_F77_CONFIG
     7305
     7306
     7307# _LT_LANG_FC_CONFIG([TAG])
     7308# -------------------------
     7309# Ensure that the configuration variables for a Fortran compiler are
     7310# suitably defined.  These variables are subsequently used by _LT_CONFIG
     7311# to write the compiler configuration to `libtool'.
     7312m4_defun([_LT_LANG_FC_CONFIG],
     7313[AC_LANG_PUSH(Fortran)
     7314
     7315if test -z "$FC" || test "X$FC" = "Xno"; then
     7316  _lt_disable_FC=yes
     7317fi
     7318
     7319_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     7320_LT_TAGVAR(allow_undefined_flag, $1)=
     7321_LT_TAGVAR(always_export_symbols, $1)=no
     7322_LT_TAGVAR(archive_expsym_cmds, $1)=
     7323_LT_TAGVAR(export_dynamic_flag_spec, $1)=
     7324_LT_TAGVAR(hardcode_direct, $1)=no
     7325_LT_TAGVAR(hardcode_direct_absolute, $1)=no
     7326_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
     7327_LT_TAGVAR(hardcode_libdir_separator, $1)=
     7328_LT_TAGVAR(hardcode_minus_L, $1)=no
     7329_LT_TAGVAR(hardcode_automatic, $1)=no
     7330_LT_TAGVAR(inherit_rpath, $1)=no
     7331_LT_TAGVAR(module_cmds, $1)=
     7332_LT_TAGVAR(module_expsym_cmds, $1)=
     7333_LT_TAGVAR(link_all_deplibs, $1)=unknown
     7334_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7335_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7336_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
     7337_LT_TAGVAR(no_undefined_flag, $1)=
     7338_LT_TAGVAR(whole_archive_flag_spec, $1)=
     7339_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
     7340
     7341# Source file extension for fc test sources.
     7342ac_ext=${ac_fc_srcext-f}
     7343
     7344# Object file extension for compiled fc test sources.
     7345objext=o
     7346_LT_TAGVAR(objext, $1)=$objext
     7347
     7348# No sense in running all these tests if we already determined that
     7349# the FC compiler isn't working.  Some variables (like enable_shared)
     7350# are currently assumed to apply to all compilers on this platform,
     7351# and will be corrupted by setting them based on a non-working compiler.
     7352if test "$_lt_disable_FC" != yes; then
     7353  # Code to be used in simple compile tests
     7354  lt_simple_compile_test_code="\
     7355      subroutine t
     7356      return
     7357      end
     7358"
     7359
     7360  # Code to be used in simple link tests
     7361  lt_simple_link_test_code="\
     7362      program t
     7363      end
     7364"
     7365
     7366  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
     7367  _LT_TAG_COMPILER
     7368
     7369  # save warnings/boilerplate of simple test code
     7370  _LT_COMPILER_BOILERPLATE
     7371  _LT_LINKER_BOILERPLATE
     7372
     7373  # Allow CC to be a program name with arguments.
     7374  lt_save_CC="$CC"
     7375  lt_save_GCC=$GCC
     7376  lt_save_CFLAGS=$CFLAGS
     7377  CC=${FC-"f95"}
     7378  CFLAGS=$FCFLAGS
     7379  compiler=$CC
     7380  GCC=$ac_cv_fc_compiler_gnu
     7381
     7382  _LT_TAGVAR(compiler, $1)=$CC
     7383  _LT_CC_BASENAME([$compiler])
     7384
     7385  if test -n "$compiler"; then
     7386    AC_MSG_CHECKING([if libtool supports shared libraries])
     7387    AC_MSG_RESULT([$can_build_shared])
     7388
     7389    AC_MSG_CHECKING([whether to build shared libraries])
     7390    test "$can_build_shared" = "no" && enable_shared=no
     7391
     7392    # On AIX, shared libraries and static libraries use the same namespace, and
     7393    # are all built from PIC.
     7394    case $host_os in
     7395      aix3*)
     7396        test "$enable_shared" = yes && enable_static=no
     7397        if test -n "$RANLIB"; then
     7398          archive_cmds="$archive_cmds~\$RANLIB \$lib"
     7399          postinstall_cmds='$RANLIB $lib'
     7400        fi
     7401        ;;
     7402      aix[[4-9]]*)
     7403        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     7404          test "$enable_shared" = yes && enable_static=no
     7405        fi
     7406        ;;
     7407    esac
     7408    AC_MSG_RESULT([$enable_shared])
     7409
     7410    AC_MSG_CHECKING([whether to build static libraries])
     7411    # Make sure either enable_shared or enable_static is yes.
     7412    test "$enable_shared" = yes || enable_static=yes
     7413    AC_MSG_RESULT([$enable_static])
     7414
     7415    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
     7416    _LT_TAGVAR(LD, $1)="$LD"
     7417
     7418    ## CAVEAT EMPTOR:
     7419    ## There is no encapsulation within the following macros, do not change
     7420    ## the running order or otherwise move them around unless you know exactly
     7421    ## what you are doing...
     7422    _LT_SYS_HIDDEN_LIBDEPS($1)
     7423    _LT_COMPILER_PIC($1)
     7424    _LT_COMPILER_C_O($1)
     7425    _LT_COMPILER_FILE_LOCKS($1)
     7426    _LT_LINKER_SHLIBS($1)
     7427    _LT_SYS_DYNAMIC_LINKER($1)
     7428    _LT_LINKER_HARDCODE_LIBPATH($1)
     7429
     7430    _LT_CONFIG($1)
     7431  fi # test -n "$compiler"
     7432
     7433  GCC=$lt_save_GCC
     7434  CC=$lt_save_CC
     7435  CFLAGS=$lt_save_CFLAGS
     7436fi # test "$_lt_disable_FC" != yes
     7437
     7438AC_LANG_POP
     7439])# _LT_LANG_FC_CONFIG
     7440
     7441
     7442# _LT_LANG_GCJ_CONFIG([TAG])
     7443# --------------------------
     7444# Ensure that the configuration variables for the GNU Java Compiler compiler
     7445# are suitably defined.  These variables are subsequently used by _LT_CONFIG
     7446# to write the compiler configuration to `libtool'.
     7447m4_defun([_LT_LANG_GCJ_CONFIG],
     7448[AC_REQUIRE([LT_PROG_GCJ])dnl
     7449AC_LANG_SAVE
     7450
     7451# Source file extension for Java test sources.
     7452ac_ext=java
     7453
     7454# Object file extension for compiled Java test sources.
     7455objext=o
     7456_LT_TAGVAR(objext, $1)=$objext
     7457
     7458# Code to be used in simple compile tests
     7459lt_simple_compile_test_code="class foo {}"
     7460
     7461# Code to be used in simple link tests
     7462lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
     7463
     7464# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     7465_LT_TAG_COMPILER
     7466
     7467# save warnings/boilerplate of simple test code
     7468_LT_COMPILER_BOILERPLATE
     7469_LT_LINKER_BOILERPLATE
     7470
     7471# Allow CC to be a program name with arguments.
     7472lt_save_CC=$CC
     7473lt_save_CFLAGS=$CFLAGS
     7474lt_save_GCC=$GCC
     7475GCC=yes
     7476CC=${GCJ-"gcj"}
     7477CFLAGS=$GCJFLAGS
     7478compiler=$CC
     7479_LT_TAGVAR(compiler, $1)=$CC
     7480_LT_TAGVAR(LD, $1)="$LD"
     7481_LT_CC_BASENAME([$compiler])
     7482
     7483# GCJ did not exist at the time GCC didn't implicitly link libc in.
     7484_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     7485
     7486_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7487_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7488_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
     7489
     7490if test -n "$compiler"; then
     7491  _LT_COMPILER_NO_RTTI($1)
     7492  _LT_COMPILER_PIC($1)
     7493  _LT_COMPILER_C_O($1)
     7494  _LT_COMPILER_FILE_LOCKS($1)
     7495  _LT_LINKER_SHLIBS($1)
     7496  _LT_LINKER_HARDCODE_LIBPATH($1)
     7497
     7498  _LT_CONFIG($1)
     7499fi
     7500
     7501AC_LANG_RESTORE
     7502
     7503GCC=$lt_save_GCC
     7504CC=$lt_save_CC
     7505CFLAGS=$lt_save_CFLAGS
     7506])# _LT_LANG_GCJ_CONFIG
     7507
     7508
     7509# _LT_LANG_GO_CONFIG([TAG])
     7510# --------------------------
     7511# Ensure that the configuration variables for the GNU Go compiler
     7512# are suitably defined.  These variables are subsequently used by _LT_CONFIG
     7513# to write the compiler configuration to `libtool'.
     7514m4_defun([_LT_LANG_GO_CONFIG],
     7515[AC_REQUIRE([LT_PROG_GO])dnl
     7516AC_LANG_SAVE
     7517
     7518# Source file extension for Go test sources.
     7519ac_ext=go
     7520
     7521# Object file extension for compiled Go test sources.
     7522objext=o
     7523_LT_TAGVAR(objext, $1)=$objext
     7524
     7525# Code to be used in simple compile tests
     7526lt_simple_compile_test_code="package main; func main() { }"
     7527
     7528# Code to be used in simple link tests
     7529lt_simple_link_test_code='package main; func main() { }'
     7530
     7531# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     7532_LT_TAG_COMPILER
     7533
     7534# save warnings/boilerplate of simple test code
     7535_LT_COMPILER_BOILERPLATE
     7536_LT_LINKER_BOILERPLATE
     7537
     7538# Allow CC to be a program name with arguments.
     7539lt_save_CC=$CC
     7540lt_save_CFLAGS=$CFLAGS
     7541lt_save_GCC=$GCC
     7542GCC=yes
     7543CC=${GOC-"gccgo"}
     7544CFLAGS=$GOFLAGS
     7545compiler=$CC
     7546_LT_TAGVAR(compiler, $1)=$CC
     7547_LT_TAGVAR(LD, $1)="$LD"
     7548_LT_CC_BASENAME([$compiler])
     7549
     7550# Go did not exist at the time GCC didn't implicitly link libc in.
     7551_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     7552
     7553_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7554_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7555_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
     7556
     7557if test -n "$compiler"; then
     7558  _LT_COMPILER_NO_RTTI($1)
     7559  _LT_COMPILER_PIC($1)
     7560  _LT_COMPILER_C_O($1)
     7561  _LT_COMPILER_FILE_LOCKS($1)
     7562  _LT_LINKER_SHLIBS($1)
     7563  _LT_LINKER_HARDCODE_LIBPATH($1)
     7564
     7565  _LT_CONFIG($1)
     7566fi
     7567
     7568AC_LANG_RESTORE
     7569
     7570GCC=$lt_save_GCC
     7571CC=$lt_save_CC
     7572CFLAGS=$lt_save_CFLAGS
     7573])# _LT_LANG_GO_CONFIG
     7574
     7575
     7576# _LT_LANG_RC_CONFIG([TAG])
     7577# -------------------------
     7578# Ensure that the configuration variables for the Windows resource compiler
     7579# are suitably defined.  These variables are subsequently used by _LT_CONFIG
     7580# to write the compiler configuration to `libtool'.
     7581m4_defun([_LT_LANG_RC_CONFIG],
     7582[AC_REQUIRE([LT_PROG_RC])dnl
     7583AC_LANG_SAVE
     7584
     7585# Source file extension for RC test sources.
     7586ac_ext=rc
     7587
     7588# Object file extension for compiled RC test sources.
     7589objext=o
     7590_LT_TAGVAR(objext, $1)=$objext
     7591
     7592# Code to be used in simple compile tests
     7593lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
     7594
     7595# Code to be used in simple link tests
     7596lt_simple_link_test_code="$lt_simple_compile_test_code"
     7597
     7598# ltmain only uses $CC for tagged configurations so make sure $CC is set.
     7599_LT_TAG_COMPILER
     7600
     7601# save warnings/boilerplate of simple test code
     7602_LT_COMPILER_BOILERPLATE
     7603_LT_LINKER_BOILERPLATE
     7604
     7605# Allow CC to be a program name with arguments.
     7606lt_save_CC="$CC"
     7607lt_save_CFLAGS=$CFLAGS
     7608lt_save_GCC=$GCC
     7609GCC=
     7610CC=${RC-"windres"}
     7611CFLAGS=
     7612compiler=$CC
     7613_LT_TAGVAR(compiler, $1)=$CC
     7614_LT_CC_BASENAME([$compiler])
     7615_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
     7616
     7617if test -n "$compiler"; then
     7618  :
     7619  _LT_CONFIG($1)
     7620fi
     7621
     7622GCC=$lt_save_GCC
     7623AC_LANG_RESTORE
     7624CC=$lt_save_CC
     7625CFLAGS=$lt_save_CFLAGS
     7626])# _LT_LANG_RC_CONFIG
     7627
     7628
     7629# LT_PROG_GCJ
     7630# -----------
     7631AC_DEFUN([LT_PROG_GCJ],
     7632[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
     7633  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
     7634    [AC_CHECK_TOOL(GCJ, gcj,)
     7635      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
     7636      AC_SUBST(GCJFLAGS)])])[]dnl
     7637])
     7638
     7639# Old name:
     7640AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
     7641dnl aclocal-1.4 backwards compatibility:
     7642dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
     7643
     7644
     7645# LT_PROG_GO
     7646# ----------
     7647AC_DEFUN([LT_PROG_GO],
     7648[AC_CHECK_TOOL(GOC, gccgo,)
     7649])
     7650
     7651
     7652# LT_PROG_RC
     7653# ----------
     7654AC_DEFUN([LT_PROG_RC],
     7655[AC_CHECK_TOOL(RC, windres,)
     7656])
     7657
     7658# Old name:
     7659AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
     7660dnl aclocal-1.4 backwards compatibility:
     7661dnl AC_DEFUN([LT_AC_PROG_RC], [])
     7662
     7663
     7664# _LT_DECL_EGREP
     7665# --------------
     7666# If we don't have a new enough Autoconf to choose the best grep
     7667# available, choose the one first in the user's PATH.
     7668m4_defun([_LT_DECL_EGREP],
     7669[AC_REQUIRE([AC_PROG_EGREP])dnl
     7670AC_REQUIRE([AC_PROG_FGREP])dnl
     7671test -z "$GREP" && GREP=grep
     7672_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
     7673_LT_DECL([], [EGREP], [1], [An ERE matcher])
     7674_LT_DECL([], [FGREP], [1], [A literal string matcher])
     7675dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
     7676AC_SUBST([GREP])
     7677])
     7678
     7679
     7680# _LT_DECL_OBJDUMP
     7681# --------------
     7682# If we don't have a new enough Autoconf to choose the best objdump
     7683# available, choose the one first in the user's PATH.
     7684m4_defun([_LT_DECL_OBJDUMP],
     7685[AC_CHECK_TOOL(OBJDUMP, objdump, false)
     7686test -z "$OBJDUMP" && OBJDUMP=objdump
     7687_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
     7688AC_SUBST([OBJDUMP])
     7689])
     7690
     7691# _LT_DECL_DLLTOOL
     7692# ----------------
     7693# Ensure DLLTOOL variable is set.
     7694m4_defun([_LT_DECL_DLLTOOL],
     7695[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
     7696test -z "$DLLTOOL" && DLLTOOL=dlltool
     7697_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
     7698AC_SUBST([DLLTOOL])
     7699])
     7700
     7701# _LT_DECL_SED
     7702# ------------
     7703# Check for a fully-functional sed program, that truncates
     7704# as few characters as possible.  Prefer GNU sed if found.
     7705m4_defun([_LT_DECL_SED],
     7706[AC_PROG_SED
     7707test -z "$SED" && SED=sed
     7708Xsed="$SED -e 1s/^X//"
     7709_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
     7710_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
     7711    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
     7712])# _LT_DECL_SED
     7713
     7714m4_ifndef([AC_PROG_SED], [
     7715# NOTE: This macro has been submitted for inclusion into   #
     7716#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
     7717#  a released version of Autoconf we should remove this    #
     7718#  macro and use it instead.                               #
     7719
     7720m4_defun([AC_PROG_SED],
     7721[AC_MSG_CHECKING([for a sed that does not truncate output])
     7722AC_CACHE_VAL(lt_cv_path_SED,
     7723[# Loop through the user's path and test for sed and gsed.
     7724# Then use that list of sed's as ones to test for truncation.
     7725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7726for as_dir in $PATH
     7727do
     7728  IFS=$as_save_IFS
     7729  test -z "$as_dir" && as_dir=.
     7730  for lt_ac_prog in sed gsed; do
     7731    for ac_exec_ext in '' $ac_executable_extensions; do
     7732      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
     7733        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
     7734      fi
     7735    done
     7736  done
     7737done
     7738IFS=$as_save_IFS
     7739lt_ac_max=0
     7740lt_ac_count=0
     7741# Add /usr/xpg4/bin/sed as it is typically found on Solaris
     7742# along with /bin/sed that truncates output.
     7743for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
     7744  test ! -f $lt_ac_sed && continue
     7745  cat /dev/null > conftest.in
     7746  lt_ac_count=0
     7747  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
     7748  # Check for GNU sed and select it if it is found.
     7749  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
     7750    lt_cv_path_SED=$lt_ac_sed
     7751    break
     7752  fi
     7753  while true; do
     7754    cat conftest.in conftest.in >conftest.tmp
     7755    mv conftest.tmp conftest.in
     7756    cp conftest.in conftest.nl
     7757    echo >>conftest.nl
     7758    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
     7759    cmp -s conftest.out conftest.nl || break
     7760    # 10000 chars as input seems more than enough
     7761    test $lt_ac_count -gt 10 && break
     7762    lt_ac_count=`expr $lt_ac_count + 1`
     7763    if test $lt_ac_count -gt $lt_ac_max; then
     7764      lt_ac_max=$lt_ac_count
     7765      lt_cv_path_SED=$lt_ac_sed
     7766    fi
     7767  done
     7768done
     7769])
     7770SED=$lt_cv_path_SED
     7771AC_SUBST([SED])
     7772AC_MSG_RESULT([$SED])
     7773])#AC_PROG_SED
     7774])#m4_ifndef
     7775
     7776# Old name:
     7777AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
     7778dnl aclocal-1.4 backwards compatibility:
     7779dnl AC_DEFUN([LT_AC_PROG_SED], [])
     7780
     7781
     7782# _LT_CHECK_SHELL_FEATURES
     7783# ------------------------
     7784# Find out whether the shell is Bourne or XSI compatible,
     7785# or has some other useful features.
     7786m4_defun([_LT_CHECK_SHELL_FEATURES],
     7787[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
     7788# Try some XSI features
     7789xsi_shell=no
     7790( _lt_dummy="a/b/c"
     7791  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
     7792      = c,a/b,b/c, \
     7793    && eval 'test $(( 1 + 1 )) -eq 2 \
     7794    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
     7795  && xsi_shell=yes
     7796AC_MSG_RESULT([$xsi_shell])
     7797_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
     7798
     7799AC_MSG_CHECKING([whether the shell understands "+="])
     7800lt_shell_append=no
     7801( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
     7802    >/dev/null 2>&1 \
     7803  && lt_shell_append=yes
     7804AC_MSG_RESULT([$lt_shell_append])
     7805_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
     7806
     7807if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     7808  lt_unset=unset
     7809else
     7810  lt_unset=false
     7811fi
     7812_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
     7813
     7814# test EBCDIC or ASCII
     7815case `echo X|tr X '\101'` in
     7816 A) # ASCII based system
     7817    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
     7818  lt_SP2NL='tr \040 \012'
     7819  lt_NL2SP='tr \015\012 \040\040'
     7820  ;;
     7821 *) # EBCDIC based system
     7822  lt_SP2NL='tr \100 \n'
     7823  lt_NL2SP='tr \r\n \100\100'
     7824  ;;
     7825esac
     7826_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
     7827_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
     7828])# _LT_CHECK_SHELL_FEATURES
     7829
     7830
     7831# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
     7832# ------------------------------------------------------
     7833# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
     7834# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
     7835m4_defun([_LT_PROG_FUNCTION_REPLACE],
     7836[dnl {
     7837sed -e '/^$1 ()$/,/^} # $1 /c\
     7838$1 ()\
     7839{\
     7840m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
     7841} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
     7842  && mv -f "$cfgfile.tmp" "$cfgfile" \
     7843    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7844test 0 -eq $? || _lt_function_replace_fail=:
     7845])
     7846
     7847
     7848# _LT_PROG_REPLACE_SHELLFNS
     7849# -------------------------
     7850# Replace existing portable implementations of several shell functions with
     7851# equivalent extended shell implementations where those features are available..
     7852m4_defun([_LT_PROG_REPLACE_SHELLFNS],
     7853[if test x"$xsi_shell" = xyes; then
     7854  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
     7855    case ${1} in
     7856      */*) func_dirname_result="${1%/*}${2}" ;;
     7857      *  ) func_dirname_result="${3}" ;;
     7858    esac])
     7859
     7860  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
     7861    func_basename_result="${1##*/}"])
     7862
     7863  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
     7864    case ${1} in
     7865      */*) func_dirname_result="${1%/*}${2}" ;;
     7866      *  ) func_dirname_result="${3}" ;;
     7867    esac
     7868    func_basename_result="${1##*/}"])
     7869
     7870  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
     7871    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
     7872    # positional parameters, so assign one to ordinary parameter first.
     7873    func_stripname_result=${3}
     7874    func_stripname_result=${func_stripname_result#"${1}"}
     7875    func_stripname_result=${func_stripname_result%"${2}"}])
     7876
     7877  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
     7878    func_split_long_opt_name=${1%%=*}
     7879    func_split_long_opt_arg=${1#*=}])
     7880
     7881  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
     7882    func_split_short_opt_arg=${1#??}
     7883    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
     7884
     7885  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
     7886    case ${1} in
     7887      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
     7888      *)    func_lo2o_result=${1} ;;
     7889    esac])
     7890
     7891  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
     7892
     7893  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
     7894
     7895  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
     7896fi
     7897
     7898if test x"$lt_shell_append" = xyes; then
     7899  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
     7900
     7901  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
     7902    func_quote_for_eval "${2}"
     7903dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
     7904    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
     7905
     7906  # Save a `func_append' function call where possible by direct use of '+='
     7907  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
     7908    && mv -f "$cfgfile.tmp" "$cfgfile" \
     7909      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7910  test 0 -eq $? || _lt_function_replace_fail=:
     7911else
     7912  # Save a `func_append' function call even when '+=' is not available
     7913  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
     7914    && mv -f "$cfgfile.tmp" "$cfgfile" \
     7915      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7916  test 0 -eq $? || _lt_function_replace_fail=:
     7917fi
     7918
     7919if test x"$_lt_function_replace_fail" = x":"; then
     7920  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
     7921fi
     7922])
     7923
     7924# _LT_PATH_CONVERSION_FUNCTIONS
     7925# -----------------------------
     7926# Determine which file name conversion functions should be used by
     7927# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
     7928# for certain cross-compile configurations and native mingw.
     7929m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
     7930[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     7931AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     7932AC_MSG_CHECKING([how to convert $build file names to $host format])
     7933AC_CACHE_VAL(lt_cv_to_host_file_cmd,
     7934[case $host in
     7935  *-*-mingw* )
     7936    case $build in
     7937      *-*-mingw* ) # actually msys
     7938        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
     7939        ;;
     7940      *-*-cygwin* )
     7941        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
     7942        ;;
     7943      * ) # otherwise, assume *nix
     7944        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
     7945        ;;
     7946    esac
     7947    ;;
     7948  *-*-cygwin* )
     7949    case $build in
     7950      *-*-mingw* ) # actually msys
     7951        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
     7952        ;;
     7953      *-*-cygwin* )
     7954        lt_cv_to_host_file_cmd=func_convert_file_noop
     7955        ;;
     7956      * ) # otherwise, assume *nix
     7957        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
     7958        ;;
     7959    esac
     7960    ;;
     7961  * ) # unhandled hosts (and "normal" native builds)
     7962    lt_cv_to_host_file_cmd=func_convert_file_noop
     7963    ;;
     7964esac
     7965])
     7966to_host_file_cmd=$lt_cv_to_host_file_cmd
     7967AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
     7968_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
     7969         [0], [convert $build file names to $host format])dnl
     7970
     7971AC_MSG_CHECKING([how to convert $build file names to toolchain format])
     7972AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
     7973[#assume ordinary cross tools, or native build.
     7974lt_cv_to_tool_file_cmd=func_convert_file_noop
     7975case $host in
     7976  *-*-mingw* )
     7977    case $build in
     7978      *-*-mingw* ) # actually msys
     7979        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
     7980        ;;
     7981    esac
     7982    ;;
     7983esac
     7984])
     7985to_tool_file_cmd=$lt_cv_to_tool_file_cmd
     7986AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
     7987_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
     7988         [0], [convert $build files to toolchain format])dnl
     7989])# _LT_PATH_CONVERSION_FUNCTIONS
     7990
     7991# Helper functions for option handling.                    -*- Autoconf -*-
     7992#
     7993#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
     7994#   Inc.
     7995#   Written by Gary V. Vaughan, 2004
     7996#
     7997# This file is free software; the Free Software Foundation gives
     7998# unlimited permission to copy and/or distribute it, with or without
     7999# modifications, as long as this notice is preserved.
     8000
     8001# serial 7 ltoptions.m4
     8002
     8003# This is to help aclocal find these macros, as it can't see m4_define.
     8004AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
     8005
     8006
     8007# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
     8008# ------------------------------------------
     8009m4_define([_LT_MANGLE_OPTION],
     8010[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
     8011
     8012
     8013# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
     8014# ---------------------------------------
     8015# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
     8016# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
     8017# saved as a flag.
     8018m4_define([_LT_SET_OPTION],
     8019[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
     8020m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
     8021        _LT_MANGLE_DEFUN([$1], [$2]),
     8022    [m4_warning([Unknown $1 option `$2'])])[]dnl
     8023])
     8024
     8025
     8026# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
     8027# ------------------------------------------------------------
     8028# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
     8029m4_define([_LT_IF_OPTION],
     8030[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
     8031
     8032
     8033# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
     8034# -------------------------------------------------------
     8035# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
     8036# are set.
     8037m4_define([_LT_UNLESS_OPTIONS],
     8038[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
     8039            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
     8040                      [m4_define([$0_found])])])[]dnl
     8041m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
     8042])[]dnl
     8043])
     8044
     8045
     8046# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
     8047# ----------------------------------------
     8048# OPTION-LIST is a space-separated list of Libtool options associated
     8049# with MACRO-NAME.  If any OPTION has a matching handler declared with
     8050# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
     8051# the unknown option and exit.
     8052m4_defun([_LT_SET_OPTIONS],
     8053[# Set options
     8054m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
     8055    [_LT_SET_OPTION([$1], _LT_Option)])
     8056
     8057m4_if([$1],[LT_INIT],[
     8058  dnl
     8059  dnl Simply set some default values (i.e off) if boolean options were not
     8060  dnl specified:
     8061  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
     8062  ])
     8063  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
     8064  ])
     8065  dnl
     8066  dnl If no reference was made to various pairs of opposing options, then
     8067  dnl we run the default mode handler for the pair.  For example, if neither
     8068  dnl `shared' nor `disable-shared' was passed, we enable building of shared
     8069  dnl archives by default:
     8070  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
     8071  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
     8072  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
     8073  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
     8074                   [_LT_ENABLE_FAST_INSTALL])
     8075  ])
     8076])# _LT_SET_OPTIONS
     8077
     8078
     8079
     8080# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
     8081# -----------------------------------------
     8082m4_define([_LT_MANGLE_DEFUN],
     8083[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
     8084
     8085
     8086# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
     8087# -----------------------------------------------
     8088m4_define([LT_OPTION_DEFINE],
     8089[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
     8090])# LT_OPTION_DEFINE
     8091
     8092
     8093# dlopen
     8094# ------
     8095LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
     8096])
     8097
     8098AU_DEFUN([AC_LIBTOOL_DLOPEN],
     8099[_LT_SET_OPTION([LT_INIT], [dlopen])
     8100AC_DIAGNOSE([obsolete],
     8101[$0: Remove this warning and the call to _LT_SET_OPTION when you
     8102put the `dlopen' option into LT_INIT's first parameter.])
     8103])
     8104
     8105dnl aclocal-1.4 backwards compatibility:
     8106dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
     8107
     8108
     8109# win32-dll
     8110# ---------
     8111# Declare package support for building win32 dll's.
     8112LT_OPTION_DEFINE([LT_INIT], [win32-dll],
     8113[enable_win32_dll=yes
     8114
     8115case $host in
     8116*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
     8117  AC_CHECK_TOOL(AS, as, false)
     8118  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
     8119  AC_CHECK_TOOL(OBJDUMP, objdump, false)
     8120  ;;
     8121esac
     8122
     8123test -z "$AS" && AS=as
     8124_LT_DECL([], [AS],      [1], [Assembler program])dnl
     8125
     8126test -z "$DLLTOOL" && DLLTOOL=dlltool
     8127_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
     8128
     8129test -z "$OBJDUMP" && OBJDUMP=objdump
     8130_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
     8131])# win32-dll
     8132
     8133AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
     8134[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     8135_LT_SET_OPTION([LT_INIT], [win32-dll])
     8136AC_DIAGNOSE([obsolete],
     8137[$0: Remove this warning and the call to _LT_SET_OPTION when you
     8138put the `win32-dll' option into LT_INIT's first parameter.])
     8139])
     8140
     8141dnl aclocal-1.4 backwards compatibility:
     8142dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
     8143
     8144
     8145# _LT_ENABLE_SHARED([DEFAULT])
     8146# ----------------------------
     8147# implement the --enable-shared flag, and supports the `shared' and
     8148# `disable-shared' LT_INIT options.
     8149# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
     8150m4_define([_LT_ENABLE_SHARED],
     8151[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
     8152AC_ARG_ENABLE([shared],
     8153    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
     8154        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
     8155    [p=${PACKAGE-default}
     8156    case $enableval in
     8157    yes) enable_shared=yes ;;
     8158    no) enable_shared=no ;;
     8159    *)
     8160      enable_shared=no
     8161      # Look at the argument we got.  We use all the common list separators.
     8162      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     8163      for pkg in $enableval; do
     8164        IFS="$lt_save_ifs"
     8165        if test "X$pkg" = "X$p"; then
     8166          enable_shared=yes
     8167        fi
     8168      done
     8169      IFS="$lt_save_ifs"
     8170      ;;
     8171    esac],
     8172    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
     8173
     8174    _LT_DECL([build_libtool_libs], [enable_shared], [0],
     8175        [Whether or not to build shared libraries])
     8176])# _LT_ENABLE_SHARED
     8177
     8178LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
     8179LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
     8180
     8181# Old names:
     8182AC_DEFUN([AC_ENABLE_SHARED],
     8183[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
     8184])
     8185
     8186AC_DEFUN([AC_DISABLE_SHARED],
     8187[_LT_SET_OPTION([LT_INIT], [disable-shared])
     8188])
     8189
     8190AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
     8191AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
     8192
     8193dnl aclocal-1.4 backwards compatibility:
     8194dnl AC_DEFUN([AM_ENABLE_SHARED], [])
     8195dnl AC_DEFUN([AM_DISABLE_SHARED], [])
     8196
     8197
     8198
     8199# _LT_ENABLE_STATIC([DEFAULT])
     8200# ----------------------------
     8201# implement the --enable-static flag, and support the `static' and
     8202# `disable-static' LT_INIT options.
     8203# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
     8204m4_define([_LT_ENABLE_STATIC],
     8205[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
     8206AC_ARG_ENABLE([static],
     8207    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
     8208        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
     8209    [p=${PACKAGE-default}
     8210    case $enableval in
     8211    yes) enable_static=yes ;;
     8212    no) enable_static=no ;;
     8213    *)
     8214     enable_static=no
     8215      # Look at the argument we got.  We use all the common list separators.
     8216      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     8217      for pkg in $enableval; do
     8218        IFS="$lt_save_ifs"
     8219        if test "X$pkg" = "X$p"; then
     8220          enable_static=yes
     8221        fi
     8222      done
     8223      IFS="$lt_save_ifs"
     8224      ;;
     8225    esac],
     8226    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
     8227
     8228    _LT_DECL([build_old_libs], [enable_static], [0],
     8229        [Whether or not to build static libraries])
     8230])# _LT_ENABLE_STATIC
     8231
     8232LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
     8233LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
     8234
     8235# Old names:
     8236AC_DEFUN([AC_ENABLE_STATIC],
     8237[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
     8238])
     8239
     8240AC_DEFUN([AC_DISABLE_STATIC],
     8241[_LT_SET_OPTION([LT_INIT], [disable-static])
     8242])
     8243
     8244AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
     8245AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
     8246
     8247dnl aclocal-1.4 backwards compatibility:
     8248dnl AC_DEFUN([AM_ENABLE_STATIC], [])
     8249dnl AC_DEFUN([AM_DISABLE_STATIC], [])
     8250
     8251
     8252
     8253# _LT_ENABLE_FAST_INSTALL([DEFAULT])
     8254# ----------------------------------
     8255# implement the --enable-fast-install flag, and support the `fast-install'
     8256# and `disable-fast-install' LT_INIT options.
     8257# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
     8258m4_define([_LT_ENABLE_FAST_INSTALL],
     8259[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
     8260AC_ARG_ENABLE([fast-install],
     8261    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
     8262    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
     8263    [p=${PACKAGE-default}
     8264    case $enableval in
     8265    yes) enable_fast_install=yes ;;
     8266    no) enable_fast_install=no ;;
     8267    *)
     8268      enable_fast_install=no
     8269      # Look at the argument we got.  We use all the common list separators.
     8270      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     8271      for pkg in $enableval; do
     8272        IFS="$lt_save_ifs"
     8273        if test "X$pkg" = "X$p"; then
     8274          enable_fast_install=yes
     8275        fi
     8276      done
     8277      IFS="$lt_save_ifs"
     8278      ;;
     8279    esac],
     8280    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
     8281
     8282_LT_DECL([fast_install], [enable_fast_install], [0],
     8283         [Whether or not to optimize for fast installation])dnl
     8284])# _LT_ENABLE_FAST_INSTALL
     8285
     8286LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
     8287LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
     8288
     8289# Old names:
     8290AU_DEFUN([AC_ENABLE_FAST_INSTALL],
     8291[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
     8292AC_DIAGNOSE([obsolete],
     8293[$0: Remove this warning and the call to _LT_SET_OPTION when you put
     8294the `fast-install' option into LT_INIT's first parameter.])
     8295])
     8296
     8297AU_DEFUN([AC_DISABLE_FAST_INSTALL],
     8298[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
     8299AC_DIAGNOSE([obsolete],
     8300[$0: Remove this warning and the call to _LT_SET_OPTION when you put
     8301the `disable-fast-install' option into LT_INIT's first parameter.])
     8302])
     8303
     8304dnl aclocal-1.4 backwards compatibility:
     8305dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
     8306dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
     8307
     8308
     8309# _LT_WITH_PIC([MODE])
     8310# --------------------
     8311# implement the --with-pic flag, and support the `pic-only' and `no-pic'
     8312# LT_INIT options.
     8313# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
     8314m4_define([_LT_WITH_PIC],
     8315[AC_ARG_WITH([pic],
     8316    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
     8317        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
     8318    [lt_p=${PACKAGE-default}
     8319    case $withval in
     8320    yes|no) pic_mode=$withval ;;
     8321    *)
     8322      pic_mode=default
     8323      # Look at the argument we got.  We use all the common list separators.
     8324      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     8325      for lt_pkg in $withval; do
     8326        IFS="$lt_save_ifs"
     8327        if test "X$lt_pkg" = "X$lt_p"; then
     8328          pic_mode=yes
     8329        fi
     8330      done
     8331      IFS="$lt_save_ifs"
     8332      ;;
     8333    esac],
     8334    [pic_mode=default])
     8335
     8336test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
     8337
     8338_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
     8339])# _LT_WITH_PIC
     8340
     8341LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
     8342LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
     8343
     8344# Old name:
     8345AU_DEFUN([AC_LIBTOOL_PICMODE],
     8346[_LT_SET_OPTION([LT_INIT], [pic-only])
     8347AC_DIAGNOSE([obsolete],
     8348[$0: Remove this warning and the call to _LT_SET_OPTION when you
     8349put the `pic-only' option into LT_INIT's first parameter.])
     8350])
     8351
     8352dnl aclocal-1.4 backwards compatibility:
     8353dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
     8354
     8355
     8356m4_define([_LTDL_MODE], [])
     8357LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
     8358                 [m4_define([_LTDL_MODE], [nonrecursive])])
     8359LT_OPTION_DEFINE([LTDL_INIT], [recursive],
     8360                 [m4_define([_LTDL_MODE], [recursive])])
     8361LT_OPTION_DEFINE([LTDL_INIT], [subproject],
     8362                 [m4_define([_LTDL_MODE], [subproject])])
     8363
     8364m4_define([_LTDL_TYPE], [])
     8365LT_OPTION_DEFINE([LTDL_INIT], [installable],
     8366                 [m4_define([_LTDL_TYPE], [installable])])
     8367LT_OPTION_DEFINE([LTDL_INIT], [convenience],
     8368                 [m4_define([_LTDL_TYPE], [convenience])])
     8369
     8370# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
     8371#
     8372# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
     8373# Written by Gary V. Vaughan, 2004
     8374#
     8375# This file is free software; the Free Software Foundation gives
     8376# unlimited permission to copy and/or distribute it, with or without
     8377# modifications, as long as this notice is preserved.
     8378
     8379# serial 6 ltsugar.m4
     8380
     8381# This is to help aclocal find these macros, as it can't see m4_define.
     8382AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
     8383
     8384
     8385# lt_join(SEP, ARG1, [ARG2...])
     8386# -----------------------------
     8387# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
     8388# associated separator.
     8389# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
     8390# versions in m4sugar had bugs.
     8391m4_define([lt_join],
     8392[m4_if([$#], [1], [],
     8393       [$#], [2], [[$2]],
     8394       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
     8395m4_define([_lt_join],
     8396[m4_if([$#$2], [2], [],
     8397       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
     8398
     8399
     8400# lt_car(LIST)
     8401# lt_cdr(LIST)
     8402# ------------
     8403# Manipulate m4 lists.
     8404# These macros are necessary as long as will still need to support
     8405# Autoconf-2.59 which quotes differently.
     8406m4_define([lt_car], [[$1]])
     8407m4_define([lt_cdr],
     8408[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
     8409       [$#], 1, [],
     8410       [m4_dquote(m4_shift($@))])])
     8411m4_define([lt_unquote], $1)
     8412
     8413
     8414# lt_append(MACRO-NAME, STRING, [SEPARATOR])
     8415# ------------------------------------------
     8416# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
     8417# Note that neither SEPARATOR nor STRING are expanded; they are appended
     8418# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
     8419# No SEPARATOR is output if MACRO-NAME was previously undefined (different
     8420# than defined and empty).
     8421#
     8422# This macro is needed until we can rely on Autoconf 2.62, since earlier
     8423# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
     8424m4_define([lt_append],
     8425[m4_define([$1],
     8426           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
     8427
     8428
     8429
     8430# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
     8431# ----------------------------------------------------------
     8432# Produce a SEP delimited list of all paired combinations of elements of
     8433# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
     8434# has the form PREFIXmINFIXSUFFIXn.
     8435# Needed until we can rely on m4_combine added in Autoconf 2.62.
     8436m4_define([lt_combine],
     8437[m4_if(m4_eval([$# > 3]), [1],
     8438       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
     8439[[m4_foreach([_Lt_prefix], [$2],
     8440             [m4_foreach([_Lt_suffix],
     8441                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
     8442        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
     8443
     8444
     8445# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
     8446# -----------------------------------------------------------------------
     8447# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
     8448# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
     8449m4_define([lt_if_append_uniq],
     8450[m4_ifdef([$1],
     8451          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
     8452                 [lt_append([$1], [$2], [$3])$4],
     8453                 [$5])],
     8454          [lt_append([$1], [$2], [$3])$4])])
     8455
     8456
     8457# lt_dict_add(DICT, KEY, VALUE)
     8458# -----------------------------
     8459m4_define([lt_dict_add],
     8460[m4_define([$1($2)], [$3])])
     8461
     8462
     8463# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
     8464# --------------------------------------------
     8465m4_define([lt_dict_add_subkey],
     8466[m4_define([$1($2:$3)], [$4])])
     8467
     8468
     8469# lt_dict_fetch(DICT, KEY, [SUBKEY])
     8470# ----------------------------------
     8471m4_define([lt_dict_fetch],
     8472[m4_ifval([$3],
     8473        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
     8474    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
     8475
     8476
     8477# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
     8478# -----------------------------------------------------------------
     8479m4_define([lt_if_dict_fetch],
     8480[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
     8481        [$5],
     8482    [$6])])
     8483
     8484
     8485# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
     8486# --------------------------------------------------------------
     8487m4_define([lt_dict_filter],
     8488[m4_if([$5], [], [],
     8489  [lt_join(m4_quote(m4_default([$4], [[, ]])),
     8490           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
     8491                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
     8492])
     8493
     8494# ltversion.m4 -- version numbers                       -*- Autoconf -*-
     8495#
     8496#   Copyright (C) 2004 Free Software Foundation, Inc.
     8497#   Written by Scott James Remnant, 2004
     8498#
     8499# This file is free software; the Free Software Foundation gives
     8500# unlimited permission to copy and/or distribute it, with or without
     8501# modifications, as long as this notice is preserved.
     8502
     8503# @configure_input@
     8504
     8505# serial 3337 ltversion.m4
     8506# This file is part of GNU Libtool
     8507
     8508m4_define([LT_PACKAGE_VERSION], [2.4.2])
     8509m4_define([LT_PACKAGE_REVISION], [1.3337])
     8510
     8511AC_DEFUN([LTVERSION_VERSION],
     8512[macro_version='2.4.2'
     8513macro_revision='1.3337'
     8514_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
     8515_LT_DECL(, macro_revision, 0)
     8516])
     8517
     8518# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
     8519#
     8520#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
     8521#   Written by Scott James Remnant, 2004.
     8522#
     8523# This file is free software; the Free Software Foundation gives
     8524# unlimited permission to copy and/or distribute it, with or without
     8525# modifications, as long as this notice is preserved.
     8526
     8527# serial 5 lt~obsolete.m4
     8528
     8529# These exist entirely to fool aclocal when bootstrapping libtool.
     8530#
     8531# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
     8532# which have later been changed to m4_define as they aren't part of the
     8533# exported API, or moved to Autoconf or Automake where they belong.
     8534#
     8535# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
     8536# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
     8537# using a macro with the same name in our local m4/libtool.m4 it'll
     8538# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
     8539# and doesn't know about Autoconf macros at all.)
     8540#
     8541# So we provide this file, which has a silly filename so it's always
     8542# included after everything else.  This provides aclocal with the
     8543# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
     8544# because those macros already exist, or will be overwritten later.
     8545# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
     8546#
     8547# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
     8548# Yes, that means every name once taken will need to remain here until
     8549# we give up compatibility with versions before 1.7, at which point
     8550# we need to keep only those names which we still refer to.
     8551
     8552# This is to help aclocal find these macros, as it can't see m4_define.
     8553AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
     8554
     8555m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
     8556m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
     8557m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
     8558m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
     8559m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
     8560m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
     8561m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
     8562m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
     8563m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
     8564m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
     8565m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
     8566m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
     8567m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
     8568m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
     8569m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
     8570m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
     8571m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
     8572m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
     8573m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
     8574m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
     8575m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
     8576m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
     8577m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
     8578m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
     8579m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
     8580m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
     8581m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
     8582m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
     8583m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
     8584m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
     8585m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
     8586m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
     8587m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
     8588m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
     8589m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
     8590m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
     8591m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
     8592m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
     8593m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
     8594m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
     8595m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
     8596m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
     8597m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
     8598m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
     8599m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
     8600m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
     8601m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
     8602m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
     8603m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
     8604m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
     8605m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
     8606m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
     8607m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
     8608m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
     8609m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
     8610m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
     8611m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
     8612m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
     8613m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
     8614m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
     8615m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
     8616
     8617m4_include([m4/ac_define_dir.m4])
     8618m4_include([m4/cca.m4])
  • ThirdParty/mpqc_open/bin/ltmain.sh

    r860145 r482400e  
    1 # ltmain.sh - Provide generalized library-building support services.
    2 # NOTE: Changing this file will not affect anything until you rerun configure.
    3 #
    4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
    5 # Free Software Foundation, Inc.
    6 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    7 #
    8 # This program is free software; you can redistribute it and/or modify
     1
     2# libtool (GNU libtool) 2.4.2
     3# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
     4
     5# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
     6# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
     7# This is free software; see the source for copying conditions.  There is NO
     8# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     9
     10# GNU Libtool is free software; you can redistribute it and/or modify
    911# it under the terms of the GNU General Public License as published by
    1012# the Free Software Foundation; either version 2 of the License, or
    1113# (at your option) any later version.
    1214#
    13 # This program is distributed in the hope that it will be useful, but
     15# As a special exception to the GNU General Public License,
     16# if you distribute this file as part of a program or library that
     17# is built using GNU Libtool, you may include this file under the
     18# same distribution terms that you use for the rest of that program.
     19#
     20# GNU Libtool is distributed in the hope that it will be useful, but
    1421# WITHOUT ANY WARRANTY; without even the implied warranty of
    1522# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     
    1724#
    1825# You should have received a copy of the GNU General Public License
    19 # along with this program; if not, write to the Free Software
    20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
     26# along with GNU Libtool; see the file COPYING.  If not, a copy
     27# can be downloaded from http://www.gnu.org/licenses/gpl.html,
     28# or obtained by writing to the Free Software Foundation, Inc.,
     29# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
     30
     31# Usage: $progname [OPTION]... [MODE-ARG]...
    2132#
    22 # As a special exception to the GNU General Public License, if you
    23 # distribute this file as part of a program that contains a
    24 # configuration script generated by Autoconf, you may include it under
    25 # the same distribution terms that you use for the rest of that program.
    26 
    27 basename="s,^.*/,,g"
     33# Provide generalized library-building support services.
     34#
     35#       --config             show all configuration variables
     36#       --debug              enable verbose shell tracing
     37#   -n, --dry-run            display commands without modifying any files
     38#       --features           display basic configuration information and exit
     39#       --mode=MODE          use operation mode MODE
     40#       --preserve-dup-deps  don't remove duplicate dependency libraries
     41#       --quiet, --silent    don't print informational messages
     42#       --no-quiet, --no-silent
     43#                            print informational messages (default)
     44#       --no-warn            don't display warning messages
     45#       --tag=TAG            use configuration variables from tag TAG
     46#   -v, --verbose            print more informational messages than default
     47#       --no-verbose         don't print the extra informational messages
     48#       --version            print version information
     49#   -h, --help, --help-all   print short, long, or detailed help message
     50#
     51# MODE must be one of the following:
     52#
     53#         clean              remove files from the build directory
     54#         compile            compile a source file into a libtool object
     55#         execute            automatically set library path, then run a program
     56#         finish             complete the installation of libtool libraries
     57#         install            install libraries or executables
     58#         link               create a library or an executable
     59#         uninstall          remove libraries from an installed directory
     60#
     61# MODE-ARGS vary depending on the MODE.  When passed as first option,
     62# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
     63# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
     64#
     65# When reporting a bug, please describe a test case to reproduce it and
     66# include the following information:
     67#
     68#         host-triplet: $host
     69#         shell:                $SHELL
     70#         compiler:             $LTCC
     71#         compiler flags:               $LTCFLAGS
     72#         linker:               $LD (gnu? $with_gnu_ld)
     73#         $progname:    (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
     74#         automake:     $automake_version
     75#         autoconf:     $autoconf_version
     76#
     77# Report bugs to <bug-libtool@gnu.org>.
     78# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
     79# General help using GNU software: <http://www.gnu.org/gethelp/>.
     80
     81PROGRAM=libtool
     82PACKAGE=libtool
     83VERSION="2.4.2 Debian-2.4.2-1.7ubuntu1"
     84TIMESTAMP=""
     85package_revision=1.3337
     86
     87# Be Bourne compatible
     88if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     89  emulate sh
     90  NULLCMD=:
     91  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     92  # is contrary to our usage.  Disable this feature.
     93  alias -g '${1+"$@"}'='"$@"'
     94  setopt NO_GLOB_SUBST
     95else
     96  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
     97fi
     98BIN_SH=xpg4; export BIN_SH # for Tru64
     99DUALCASE=1; export DUALCASE # for MKS sh
     100
     101# A function that is used when there is no print builtin or printf.
     102func_fallback_echo ()
     103{
     104  eval 'cat <<_LTECHO_EOF
     105$1
     106_LTECHO_EOF'
     107}
     108
     109# NLS nuisances: We save the old values to restore during execute mode.
     110lt_user_locale=
     111lt_safe_locale=
     112for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
     113do
     114  eval "if test \"\${$lt_var+set}\" = set; then
     115          save_$lt_var=\$$lt_var
     116          $lt_var=C
     117          export $lt_var
     118          lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
     119          lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
     120        fi"
     121done
     122LC_ALL=C
     123LANGUAGE=C
     124export LANGUAGE LC_ALL
     125
     126$lt_unset CDPATH
     127
    28128
    29129# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
     
    34134progpath="$0"
    35135
    36 # define SED for historic ltconfig's generated by Libtool 1.3
    37 test -z "$SED" && SED=sed
    38 
    39 # The name of this program:
    40 progname=`echo "$progpath" | $SED $basename`
    41 modename="$progname"
     136
     137
     138: ${CP="cp -f"}
     139test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
     140: ${MAKE="make"}
     141: ${MKDIR="mkdir"}
     142: ${MV="mv -f"}
     143: ${RM="rm -f"}
     144: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
     145: ${Xsed="$SED -e 1s/^X//"}
    42146
    43147# Global variables:
    44148EXIT_SUCCESS=0
    45149EXIT_FAILURE=1
    46 
    47 PROGRAM=ltmain.sh
    48 PACKAGE=libtool
    49 VERSION=1.5.22
    50 TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
    51 
    52 # See if we are running on zsh, and set the options which allow our
    53 # commands through without removal of \ escapes.
    54 if test -n "${ZSH_VERSION+set}" ; then
    55   setopt NO_GLOB_SUBST
    56 fi
    57 # Same for EGREP, and just to be sure, do LTCC as well
    58 if test "X$EGREP" = X ; then
    59     EGREP=egrep
    60 fi
    61 if test "X$LTCC" = X ; then
    62     LTCC=${CC-gcc}
    63 fi
    64 
    65 # Check that we have a working $echo.
    66 if test "X$1" = X--no-reexec; then
    67   # Discard the --no-reexec flag, and continue.
    68   shift
    69 elif test "X$1" = X--fallback-echo; then
    70   # Avoid inline document here, it may be left over
    71   :
    72 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
    73   # Yippee, $echo works!
    74   :
    75 else
    76   # Restart under the correct shell, and then maybe $echo will work.
    77   exec $SHELL "$progpath" --no-reexec ${1+"$@"}
    78 fi
    79 
    80 if test "X$1" = X--fallback-echo; then
    81   # used as fallback echo
    82   shift
    83   cat <<EOF
    84 $*
    85 EOF
    86   exit $EXIT_SUCCESS
    87 fi
    88 
    89 default_mode=
    90 help="Try \`$progname --help' for more information."
    91 magic="%%%MAGIC variable%%%"
    92 mkdir="mkdir"
    93 mv="mv -f"
    94 rm="rm -f"
    95 
    96 # Sed substitution that helps us do robust quoting.  It backslashifies
    97 # metacharacters that are still active within double-quoted strings.
    98 Xsed="${SED}"' -e 1s/^X//'
    99 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
    100 # test EBCDIC or ASCII
    101 case `echo X|tr X '\101'` in
    102  A) # ASCII based system
    103     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
    104   SP2NL='tr \040 \012'
    105   NL2SP='tr \015\012 \040\040'
    106   ;;
    107  *) # EBCDIC based system
    108   SP2NL='tr \100 \n'
    109   NL2SP='tr \r\n \100\100'
    110   ;;
    111 esac
    112 
    113 # NLS nuisances.
    114 # Only set LANG and LC_ALL to C if already set.
    115 # These must not be set unconditionally because not all systems understand
    116 # e.g. LANG=C (notably SCO).
    117 # We save the old values to restore during execute mode.
    118 if test "${LC_ALL+set}" = set; then
    119   save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
    120 fi
    121 if test "${LANG+set}" = set; then
    122   save_LANG="$LANG"; LANG=C; export LANG
    123 fi
     150EXIT_MISMATCH=63  # $? = 63 is used to indicate version mismatch to missing.
     151EXIT_SKIP=77      # $? = 77 is used to indicate a skipped test to automake.
     152
     153exit_status=$EXIT_SUCCESS
    124154
    125155# Make sure IFS has a sensible default
     
    128158IFS="   $lt_nl"
    129159
    130 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
    131   $echo "$modename: not configured to build any kind of library" 1>&2
    132   $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
    133   exit $EXIT_FAILURE
    134 fi
    135 
    136 # Global variables.
    137 mode=$default_mode
    138 nonopt=
    139 prev=
    140 prevopt=
    141 run=
    142 show="$echo"
    143 show_help=
    144 execute_dlfiles=
    145 duplicate_deps=no
    146 preserve_args=
    147 lo2o="s/\\.lo\$/.${objext}/"
    148 o2lo="s/\\.${objext}\$/.lo/"
    149 
    150 if test -z "$max_cmd_len"; then
    151   i=0
    152   testring="ABCD"
    153   new_result=
    154  
    155   # If test is not a shell built-in, we'll probably end up computing a
    156   # maximum length that is only half of the actual maximum length, but
    157   # we can't tell.
    158   while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
    159              = "XX$testring") >/dev/null 2>&1 &&
    160           new_result=`expr "X$testring" : ".*" 2>&1` &&
    161           max_cmd_len="$new_result" &&
    162           test "$i" != 17 # 1/2 MB should be enough
    163   do
    164     i=`expr $i + 1`
    165     testring="$testring$testring"
     160dirname="s,/[^/]*$,,"
     161basename="s,^.*/,,"
     162
     163# func_dirname file append nondir_replacement
     164# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
     165# otherwise set result to NONDIR_REPLACEMENT.
     166func_dirname ()
     167{
     168    func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
     169    if test "X$func_dirname_result" = "X${1}"; then
     170      func_dirname_result="${3}"
     171    else
     172      func_dirname_result="$func_dirname_result${2}"
     173    fi
     174} # func_dirname may be replaced by extended shell implementation
     175
     176
     177# func_basename file
     178func_basename ()
     179{
     180    func_basename_result=`$ECHO "${1}" | $SED "$basename"`
     181} # func_basename may be replaced by extended shell implementation
     182
     183
     184# func_dirname_and_basename file append nondir_replacement
     185# perform func_basename and func_dirname in a single function
     186# call:
     187#   dirname:  Compute the dirname of FILE.  If nonempty,
     188#             add APPEND to the result, otherwise set result
     189#             to NONDIR_REPLACEMENT.
     190#             value returned in "$func_dirname_result"
     191#   basename: Compute filename of FILE.
     192#             value retuned in "$func_basename_result"
     193# Implementation must be kept synchronized with func_dirname
     194# and func_basename. For efficiency, we do not delegate to
     195# those functions but instead duplicate the functionality here.
     196func_dirname_and_basename ()
     197{
     198    # Extract subdirectory from the argument.
     199    func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
     200    if test "X$func_dirname_result" = "X${1}"; then
     201      func_dirname_result="${3}"
     202    else
     203      func_dirname_result="$func_dirname_result${2}"
     204    fi
     205    func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
     206} # func_dirname_and_basename may be replaced by extended shell implementation
     207
     208
     209# func_stripname prefix suffix name
     210# strip PREFIX and SUFFIX off of NAME.
     211# PREFIX and SUFFIX must not contain globbing or regex special
     212# characters, hashes, percent signs, but SUFFIX may contain a leading
     213# dot (in which case that matches only a dot).
     214# func_strip_suffix prefix name
     215func_stripname ()
     216{
     217    case ${2} in
     218      .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     219      *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     220    esac
     221} # func_stripname may be replaced by extended shell implementation
     222
     223
     224# These SED scripts presuppose an absolute path with a trailing slash.
     225pathcar='s,^/\([^/]*\).*$,\1,'
     226pathcdr='s,^/[^/]*,,'
     227removedotparts=':dotsl
     228                s@/\./@/@g
     229                t dotsl
     230                s,/\.$,/,'
     231collapseslashes='s@/\{1,\}@/@g'
     232finalslash='s,/*$,/,'
     233
     234# func_normal_abspath PATH
     235# Remove doubled-up and trailing slashes, "." path components,
     236# and cancel out any ".." path components in PATH after making
     237# it an absolute path.
     238#             value returned in "$func_normal_abspath_result"
     239func_normal_abspath ()
     240{
     241  # Start from root dir and reassemble the path.
     242  func_normal_abspath_result=
     243  func_normal_abspath_tpath=$1
     244  func_normal_abspath_altnamespace=
     245  case $func_normal_abspath_tpath in
     246    "")
     247      # Empty path, that just means $cwd.
     248      func_stripname '' '/' "`pwd`"
     249      func_normal_abspath_result=$func_stripname_result
     250      return
     251    ;;
     252    # The next three entries are used to spot a run of precisely
     253    # two leading slashes without using negated character classes;
     254    # we take advantage of case's first-match behaviour.
     255    ///*)
     256      # Unusual form of absolute path, do nothing.
     257    ;;
     258    //*)
     259      # Not necessarily an ordinary path; POSIX reserves leading '//'
     260      # and for example Cygwin uses it to access remote file shares
     261      # over CIFS/SMB, so we conserve a leading double slash if found.
     262      func_normal_abspath_altnamespace=/
     263    ;;
     264    /*)
     265      # Absolute path, do nothing.
     266    ;;
     267    *)
     268      # Relative path, prepend $cwd.
     269      func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
     270    ;;
     271  esac
     272  # Cancel out all the simple stuff to save iterations.  We also want
     273  # the path to end with a slash for ease of parsing, so make sure
     274  # there is one (and only one) here.
     275  func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
     276        -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
     277  while :; do
     278    # Processed it all yet?
     279    if test "$func_normal_abspath_tpath" = / ; then
     280      # If we ascended to the root using ".." the result may be empty now.
     281      if test -z "$func_normal_abspath_result" ; then
     282        func_normal_abspath_result=/
     283      fi
     284      break
     285    fi
     286    func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
     287        -e "$pathcar"`
     288    func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
     289        -e "$pathcdr"`
     290    # Figure out what to do with it
     291    case $func_normal_abspath_tcomponent in
     292      "")
     293        # Trailing empty path component, ignore it.
     294      ;;
     295      ..)
     296        # Parent dir; strip last assembled component from result.
     297        func_dirname "$func_normal_abspath_result"
     298        func_normal_abspath_result=$func_dirname_result
     299      ;;
     300      *)
     301        # Actual path component, append it.
     302        func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
     303      ;;
     304    esac
    166305  done
    167   testring=
    168   # Add a significant safety factor because C++ compilers can tack on massive
    169   # amounts of additional arguments before passing them to the linker.
    170   # It appears as though 1/2 is a usable value.
    171   max_cmd_len=`expr $max_cmd_len \/ 2`
    172 fi
    173 
    174 #####################################
    175 # Shell function definitions:
    176 # This seems to be the best place for them
     306  # Restore leading double-slash if one was found on entry.
     307  func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
     308}
     309
     310# func_relative_path SRCDIR DSTDIR
     311# generates a relative path from SRCDIR to DSTDIR, with a trailing
     312# slash if non-empty, suitable for immediately appending a filename
     313# without needing to append a separator.
     314#             value returned in "$func_relative_path_result"
     315func_relative_path ()
     316{
     317  func_relative_path_result=
     318  func_normal_abspath "$1"
     319  func_relative_path_tlibdir=$func_normal_abspath_result
     320  func_normal_abspath "$2"
     321  func_relative_path_tbindir=$func_normal_abspath_result
     322
     323  # Ascend the tree starting from libdir
     324  while :; do
     325    # check if we have found a prefix of bindir
     326    case $func_relative_path_tbindir in
     327      $func_relative_path_tlibdir)
     328        # found an exact match
     329        func_relative_path_tcancelled=
     330        break
     331        ;;
     332      $func_relative_path_tlibdir*)
     333        # found a matching prefix
     334        func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
     335        func_relative_path_tcancelled=$func_stripname_result
     336        if test -z "$func_relative_path_result"; then
     337          func_relative_path_result=.
     338        fi
     339        break
     340        ;;
     341      *)
     342        func_dirname $func_relative_path_tlibdir
     343        func_relative_path_tlibdir=${func_dirname_result}
     344        if test "x$func_relative_path_tlibdir" = x ; then
     345          # Have to descend all the way to the root!
     346          func_relative_path_result=../$func_relative_path_result
     347          func_relative_path_tcancelled=$func_relative_path_tbindir
     348          break
     349        fi
     350        func_relative_path_result=../$func_relative_path_result
     351        ;;
     352    esac
     353  done
     354
     355  # Now calculate path; take care to avoid doubling-up slashes.
     356  func_stripname '' '/' "$func_relative_path_result"
     357  func_relative_path_result=$func_stripname_result
     358  func_stripname '/' '/' "$func_relative_path_tcancelled"
     359  if test "x$func_stripname_result" != x ; then
     360    func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
     361  fi
     362
     363  # Normalisation. If bindir is libdir, return empty string,
     364  # else relative path ending with a slash; either way, target
     365  # file name can be directly appended.
     366  if test ! -z "$func_relative_path_result"; then
     367    func_stripname './' '' "$func_relative_path_result/"
     368    func_relative_path_result=$func_stripname_result
     369  fi
     370}
     371
     372# The name of this program:
     373func_dirname_and_basename "$progpath"
     374progname=$func_basename_result
     375
     376# Make sure we have an absolute path for reexecution:
     377case $progpath in
     378  [\\/]*|[A-Za-z]:\\*) ;;
     379  *[\\/]*)
     380     progdir=$func_dirname_result
     381     progdir=`cd "$progdir" && pwd`
     382     progpath="$progdir/$progname"
     383     ;;
     384  *)
     385     save_IFS="$IFS"
     386     IFS=${PATH_SEPARATOR-:}
     387     for progdir in $PATH; do
     388       IFS="$save_IFS"
     389       test -x "$progdir/$progname" && break
     390     done
     391     IFS="$save_IFS"
     392     test -n "$progdir" || progdir=`pwd`
     393     progpath="$progdir/$progname"
     394     ;;
     395esac
     396
     397# Sed substitution that helps us do robust quoting.  It backslashifies
     398# metacharacters that are still active within double-quoted strings.
     399Xsed="${SED}"' -e 1s/^X//'
     400sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
     401
     402# Same as above, but do not quote variable references.
     403double_quote_subst='s/\(["`\\]\)/\\\1/g'
     404
     405# Sed substitution that turns a string into a regex matching for the
     406# string literally.
     407sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
     408
     409# Sed substitution that converts a w32 file name or path
     410# which contains forward slashes, into one that contains
     411# (escaped) backslashes.  A very naive implementation.
     412lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
     413
     414# Re-`\' parameter expansions in output of double_quote_subst that were
     415# `\'-ed in input to the same.  If an odd number of `\' preceded a '$'
     416# in input to double_quote_subst, that '$' was protected from expansion.
     417# Since each input `\' is now two `\'s, look for any number of runs of
     418# four `\'s followed by two `\'s and then a '$'.  `\' that '$'.
     419bs='\\'
     420bs2='\\\\'
     421bs4='\\\\\\\\'
     422dollar='\$'
     423sed_double_backslash="\
     424  s/$bs4/&\\
     425/g
     426  s/^$bs2$dollar/$bs&/
     427  s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
     428  s/\n//g"
     429
     430# Standard options:
     431opt_dry_run=false
     432opt_help=false
     433opt_quiet=false
     434opt_verbose=false
     435opt_warning=:
     436
     437# func_echo arg...
     438# Echo program name prefixed message, along with the current mode
     439# name if it has been set yet.
     440func_echo ()
     441{
     442    $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
     443}
     444
     445# func_verbose arg...
     446# Echo program name prefixed message in verbose mode only.
     447func_verbose ()
     448{
     449    $opt_verbose && func_echo ${1+"$@"}
     450
     451    # A bug in bash halts the script if the last line of a function
     452    # fails when set -e is in force, so we need another command to
     453    # work around that:
     454    :
     455}
     456
     457# func_echo_all arg...
     458# Invoke $ECHO with all args, space-separated.
     459func_echo_all ()
     460{
     461    $ECHO "$*"
     462}
     463
     464# func_error arg...
     465# Echo program name prefixed message to standard error.
     466func_error ()
     467{
     468    $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
     469}
     470
     471# func_warning arg...
     472# Echo program name prefixed warning message to standard error.
     473func_warning ()
     474{
     475    $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
     476
     477    # bash bug again:
     478    :
     479}
     480
     481# func_fatal_error arg...
     482# Echo program name prefixed message to standard error, and exit.
     483func_fatal_error ()
     484{
     485    func_error ${1+"$@"}
     486    exit $EXIT_FAILURE
     487}
     488
     489# func_fatal_help arg...
     490# Echo program name prefixed message to standard error, followed by
     491# a help hint, and exit.
     492func_fatal_help ()
     493{
     494    func_error ${1+"$@"}
     495    func_fatal_error "$help"
     496}
     497help="Try \`$progname --help' for more information."  ## default
     498
     499
     500# func_grep expression filename
     501# Check whether EXPRESSION matches any line of FILENAME, without output.
     502func_grep ()
     503{
     504    $GREP "$1" "$2" >/dev/null 2>&1
     505}
     506
     507
     508# func_mkdir_p directory-path
     509# Make sure the entire path to DIRECTORY-PATH is available.
     510func_mkdir_p ()
     511{
     512    my_directory_path="$1"
     513    my_dir_list=
     514
     515    if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
     516
     517      # Protect directory names starting with `-'
     518      case $my_directory_path in
     519        -*) my_directory_path="./$my_directory_path" ;;
     520      esac
     521
     522      # While some portion of DIR does not yet exist...
     523      while test ! -d "$my_directory_path"; do
     524        # ...make a list in topmost first order.  Use a colon delimited
     525        # list incase some portion of path contains whitespace.
     526        my_dir_list="$my_directory_path:$my_dir_list"
     527
     528        # If the last portion added has no slash in it, the list is done
     529        case $my_directory_path in */*) ;; *) break ;; esac
     530
     531        # ...otherwise throw away the child directory and loop
     532        my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
     533      done
     534      my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
     535
     536      save_mkdir_p_IFS="$IFS"; IFS=':'
     537      for my_dir in $my_dir_list; do
     538        IFS="$save_mkdir_p_IFS"
     539        # mkdir can fail with a `File exist' error if two processes
     540        # try to create one of the directories concurrently.  Don't
     541        # stop in that case!
     542        $MKDIR "$my_dir" 2>/dev/null || :
     543      done
     544      IFS="$save_mkdir_p_IFS"
     545
     546      # Bail out if we (or some other process) failed to create a directory.
     547      test -d "$my_directory_path" || \
     548        func_fatal_error "Failed to create \`$1'"
     549    fi
     550}
     551
    177552
    178553# func_mktempdir [string]
     
    184559    my_template="${TMPDIR-/tmp}/${1-$progname}"
    185560
    186     if test "$run" = ":"; then
     561    if test "$opt_dry_run" = ":"; then
    187562      # Return a directory name, but don't create it in dry-run mode
    188563      my_tmpdir="${my_template}-$$"
     
    193568
    194569      if test ! -d "$my_tmpdir"; then
    195         # Failing that, at least try and use $RANDOM to avoid a race
    196         my_tmpdir="${my_template}-${RANDOM-0}$$"
    197 
    198         save_mktempdir_umask=`umask`
    199         umask 0077
    200         $mkdir "$my_tmpdir"
    201         umask $save_mktempdir_umask
     570        # Failing that, at least try and use $RANDOM to avoid a race
     571        my_tmpdir="${my_template}-${RANDOM-0}$$"
     572
     573        save_mktempdir_umask=`umask`
     574        umask 0077
     575        $MKDIR "$my_tmpdir"
     576        umask $save_mktempdir_umask
    202577      fi
    203578
    204579      # If we're not in dry-run mode, bomb out on failure
    205       test -d "$my_tmpdir" || {
    206         $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
     580      test -d "$my_tmpdir" || \
     581        func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
     582    fi
     583
     584    $ECHO "$my_tmpdir"
     585}
     586
     587
     588# func_quote_for_eval arg
     589# Aesthetically quote ARG to be evaled later.
     590# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
     591# is double-quoted, suitable for a subsequent eval, whereas
     592# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
     593# which are still active within double quotes backslashified.
     594func_quote_for_eval ()
     595{
     596    case $1 in
     597      *[\\\`\"\$]*)
     598        func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
     599      *)
     600        func_quote_for_eval_unquoted_result="$1" ;;
     601    esac
     602
     603    case $func_quote_for_eval_unquoted_result in
     604      # Double-quote args containing shell metacharacters to delay
     605      # word splitting, command substitution and and variable
     606      # expansion for a subsequent eval.
     607      # Many Bourne shells cannot handle close brackets correctly
     608      # in scan sets, so we specify it separately.
     609      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
     610        func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
     611        ;;
     612      *)
     613        func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
     614    esac
     615}
     616
     617
     618# func_quote_for_expand arg
     619# Aesthetically quote ARG to be evaled later; same as above,
     620# but do not quote variable references.
     621func_quote_for_expand ()
     622{
     623    case $1 in
     624      *[\\\`\"]*)
     625        my_arg=`$ECHO "$1" | $SED \
     626            -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
     627      *)
     628        my_arg="$1" ;;
     629    esac
     630
     631    case $my_arg in
     632      # Double-quote args containing shell metacharacters to delay
     633      # word splitting and command substitution for a subsequent eval.
     634      # Many Bourne shells cannot handle close brackets correctly
     635      # in scan sets, so we specify it separately.
     636      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
     637        my_arg="\"$my_arg\""
     638        ;;
     639    esac
     640
     641    func_quote_for_expand_result="$my_arg"
     642}
     643
     644
     645# func_show_eval cmd [fail_exp]
     646# Unless opt_silent is true, then output CMD.  Then, if opt_dryrun is
     647# not true, evaluate CMD.  If the evaluation of CMD fails, and FAIL_EXP
     648# is given, then evaluate it.
     649func_show_eval ()
     650{
     651    my_cmd="$1"
     652    my_fail_exp="${2-:}"
     653
     654    ${opt_silent-false} || {
     655      func_quote_for_expand "$my_cmd"
     656      eval "func_echo $func_quote_for_expand_result"
     657    }
     658
     659    if ${opt_dry_run-false}; then :; else
     660      eval "$my_cmd"
     661      my_status=$?
     662      if test "$my_status" -eq 0; then :; else
     663        eval "(exit $my_status); $my_fail_exp"
     664      fi
     665    fi
     666}
     667
     668
     669# func_show_eval_locale cmd [fail_exp]
     670# Unless opt_silent is true, then output CMD.  Then, if opt_dryrun is
     671# not true, evaluate CMD.  If the evaluation of CMD fails, and FAIL_EXP
     672# is given, then evaluate it.  Use the saved locale for evaluation.
     673func_show_eval_locale ()
     674{
     675    my_cmd="$1"
     676    my_fail_exp="${2-:}"
     677
     678    ${opt_silent-false} || {
     679      func_quote_for_expand "$my_cmd"
     680      eval "func_echo $func_quote_for_expand_result"
     681    }
     682
     683    if ${opt_dry_run-false}; then :; else
     684      eval "$lt_user_locale
     685            $my_cmd"
     686      my_status=$?
     687      eval "$lt_safe_locale"
     688      if test "$my_status" -eq 0; then :; else
     689        eval "(exit $my_status); $my_fail_exp"
     690      fi
     691    fi
     692}
     693
     694# func_tr_sh
     695# Turn $1 into a string suitable for a shell variable name.
     696# Result is stored in $func_tr_sh_result.  All characters
     697# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
     698# if $1 begins with a digit, a '_' is prepended as well.
     699func_tr_sh ()
     700{
     701  case $1 in
     702  [0-9]* | *[!a-zA-Z0-9_]*)
     703    func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
     704    ;;
     705  * )
     706    func_tr_sh_result=$1
     707    ;;
     708  esac
     709}
     710
     711
     712# func_version
     713# Echo version message to standard output and exit.
     714func_version ()
     715{
     716    $opt_debug
     717
     718    $SED -n '/(C)/!b go
     719        :more
     720        /\./!{
     721          N
     722          s/\n# / /
     723          b more
     724        }
     725        :go
     726        /^# '$PROGRAM' (GNU /,/# warranty; / {
     727        s/^# //
     728        s/^# *$//
     729        s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
     730        p
     731     }' < "$progpath"
     732     exit $?
     733}
     734
     735# func_usage
     736# Echo short help message to standard output and exit.
     737func_usage ()
     738{
     739    $opt_debug
     740
     741    $SED -n '/^# Usage:/,/^#  *.*--help/ {
     742        s/^# //
     743        s/^# *$//
     744        s/\$progname/'$progname'/
     745        p
     746    }' < "$progpath"
     747    echo
     748    $ECHO "run \`$progname --help | more' for full usage"
     749    exit $?
     750}
     751
     752# func_help [NOEXIT]
     753# Echo long help message to standard output and exit,
     754# unless 'noexit' is passed as argument.
     755func_help ()
     756{
     757    $opt_debug
     758
     759    $SED -n '/^# Usage:/,/# Report bugs to/ {
     760        :print
     761        s/^# //
     762        s/^# *$//
     763        s*\$progname*'$progname'*
     764        s*\$host*'"$host"'*
     765        s*\$SHELL*'"$SHELL"'*
     766        s*\$LTCC*'"$LTCC"'*
     767        s*\$LTCFLAGS*'"$LTCFLAGS"'*
     768        s*\$LD*'"$LD"'*
     769        s/\$with_gnu_ld/'"$with_gnu_ld"'/
     770        s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
     771        s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
     772        p
     773        d
     774     }
     775     /^# .* home page:/b print
     776     /^# General help using/b print
     777     ' < "$progpath"
     778    ret=$?
     779    if test -z "$1"; then
     780      exit $ret
     781    fi
     782}
     783
     784# func_missing_arg argname
     785# Echo program name prefixed message to standard error and set global
     786# exit_cmd.
     787func_missing_arg ()
     788{
     789    $opt_debug
     790
     791    func_error "missing argument for $1."
     792    exit_cmd=exit
     793}
     794
     795
     796# func_split_short_opt shortopt
     797# Set func_split_short_opt_name and func_split_short_opt_arg shell
     798# variables after splitting SHORTOPT after the 2nd character.
     799func_split_short_opt ()
     800{
     801    my_sed_short_opt='1s/^\(..\).*$/\1/;q'
     802    my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
     803
     804    func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
     805    func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
     806} # func_split_short_opt may be replaced by extended shell implementation
     807
     808
     809# func_split_long_opt longopt
     810# Set func_split_long_opt_name and func_split_long_opt_arg shell
     811# variables after splitting LONGOPT at the `=' sign.
     812func_split_long_opt ()
     813{
     814    my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
     815    my_sed_long_arg='1s/^--[^=]*=//'
     816
     817    func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
     818    func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
     819} # func_split_long_opt may be replaced by extended shell implementation
     820
     821exit_cmd=:
     822
     823
     824
     825
     826
     827magic="%%%MAGIC variable%%%"
     828magic_exe="%%%MAGIC EXE variable%%%"
     829
     830# Global variables.
     831nonopt=
     832preserve_args=
     833lo2o="s/\\.lo\$/.${objext}/"
     834o2lo="s/\\.${objext}\$/.lo/"
     835extracted_archives=
     836extracted_serial=0
     837
     838# If this variable is set in any of the actions, the command in it
     839# will be execed at the end.  This prevents here-documents from being
     840# left over by shells.
     841exec_cmd=
     842
     843# func_append var value
     844# Append VALUE to the end of shell variable VAR.
     845func_append ()
     846{
     847    eval "${1}=\$${1}\${2}"
     848} # func_append may be replaced by extended shell implementation
     849
     850# func_append_quoted var value
     851# Quote VALUE and append to the end of shell variable VAR, separated
     852# by a space.
     853func_append_quoted ()
     854{
     855    func_quote_for_eval "${2}"
     856    eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
     857} # func_append_quoted may be replaced by extended shell implementation
     858
     859
     860# func_arith arithmetic-term...
     861func_arith ()
     862{
     863    func_arith_result=`expr "${@}"`
     864} # func_arith may be replaced by extended shell implementation
     865
     866
     867# func_len string
     868# STRING may not start with a hyphen.
     869func_len ()
     870{
     871    func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
     872} # func_len may be replaced by extended shell implementation
     873
     874
     875# func_lo2o object
     876func_lo2o ()
     877{
     878    func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
     879} # func_lo2o may be replaced by extended shell implementation
     880
     881
     882# func_xform libobj-or-source
     883func_xform ()
     884{
     885    func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
     886} # func_xform may be replaced by extended shell implementation
     887
     888
     889# func_fatal_configuration arg...
     890# Echo program name prefixed message to standard error, followed by
     891# a configuration failure hint, and exit.
     892func_fatal_configuration ()
     893{
     894    func_error ${1+"$@"}
     895    func_error "See the $PACKAGE documentation for more information."
     896    func_fatal_error "Fatal configuration error."
     897}
     898
     899
     900# func_config
     901# Display the configuration for all the tags in this script.
     902func_config ()
     903{
     904    re_begincf='^# ### BEGIN LIBTOOL'
     905    re_endcf='^# ### END LIBTOOL'
     906
     907    # Default configuration.
     908    $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
     909
     910    # Now print the configurations for the tags.
     911    for tagname in $taglist; do
     912      $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
     913    done
     914
     915    exit $?
     916}
     917
     918# func_features
     919# Display the features supported by this script.
     920func_features ()
     921{
     922    echo "host: $host"
     923    if test "$build_libtool_libs" = yes; then
     924      echo "enable shared libraries"
     925    else
     926      echo "disable shared libraries"
     927    fi
     928    if test "$build_old_libs" = yes; then
     929      echo "enable static libraries"
     930    else
     931      echo "disable static libraries"
     932    fi
     933
     934    exit $?
     935}
     936
     937# func_enable_tag tagname
     938# Verify that TAGNAME is valid, and either flag an error and exit, or
     939# enable the TAGNAME tag.  We also add TAGNAME to the global $taglist
     940# variable here.
     941func_enable_tag ()
     942{
     943  # Global variable:
     944  tagname="$1"
     945
     946  re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
     947  re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
     948  sed_extractcf="/$re_begincf/,/$re_endcf/p"
     949
     950  # Validate tagname.
     951  case $tagname in
     952    *[!-_A-Za-z0-9,/]*)
     953      func_fatal_error "invalid tag name: $tagname"
     954      ;;
     955  esac
     956
     957  # Don't test for the "default" C tag, as we know it's
     958  # there but not specially marked.
     959  case $tagname in
     960    CC) ;;
     961    *)
     962      if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
     963        taglist="$taglist $tagname"
     964
     965        # Evaluate the configuration.  Be careful to quote the path
     966        # and the sed script, to avoid splitting on whitespace, but
     967        # also don't use non-portable quotes within backquotes within
     968        # quotes we have to do it in 2 steps:
     969        extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
     970        eval "$extractedcf"
     971      else
     972        func_error "ignoring unknown tag $tagname"
     973      fi
     974      ;;
     975  esac
     976}
     977
     978# func_check_version_match
     979# Ensure that we are using m4 macros, and libtool script from the same
     980# release of libtool.
     981func_check_version_match ()
     982{
     983  if test "$package_revision" != "$macro_revision"; then
     984    if test "$VERSION" != "$macro_version"; then
     985      if test -z "$macro_version"; then
     986        cat >&2 <<_LT_EOF
     987$progname: Version mismatch error.  This is $PACKAGE $VERSION, but the
     988$progname: definition of this LT_INIT comes from an older release.
     989$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
     990$progname: and run autoconf again.
     991_LT_EOF
     992      else
     993        cat >&2 <<_LT_EOF
     994$progname: Version mismatch error.  This is $PACKAGE $VERSION, but the
     995$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
     996$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
     997$progname: and run autoconf again.
     998_LT_EOF
     999      fi
     1000    else
     1001      cat >&2 <<_LT_EOF
     1002$progname: Version mismatch error.  This is $PACKAGE $VERSION, revision $package_revision,
     1003$progname: but the definition of this LT_INIT comes from revision $macro_revision.
     1004$progname: You should recreate aclocal.m4 with macros from revision $package_revision
     1005$progname: of $PACKAGE $VERSION and run autoconf again.
     1006_LT_EOF
     1007    fi
     1008
     1009    exit $EXIT_MISMATCH
     1010  fi
     1011}
     1012
     1013
     1014# Shorthand for --mode=foo, only valid as the first argument
     1015case $1 in
     1016clean|clea|cle|cl)
     1017  shift; set dummy --mode clean ${1+"$@"}; shift
     1018  ;;
     1019compile|compil|compi|comp|com|co|c)
     1020  shift; set dummy --mode compile ${1+"$@"}; shift
     1021  ;;
     1022execute|execut|execu|exec|exe|ex|e)
     1023  shift; set dummy --mode execute ${1+"$@"}; shift
     1024  ;;
     1025finish|finis|fini|fin|fi|f)
     1026  shift; set dummy --mode finish ${1+"$@"}; shift
     1027  ;;
     1028install|instal|insta|inst|ins|in|i)
     1029  shift; set dummy --mode install ${1+"$@"}; shift
     1030  ;;
     1031link|lin|li|l)
     1032  shift; set dummy --mode link ${1+"$@"}; shift
     1033  ;;
     1034uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
     1035  shift; set dummy --mode uninstall ${1+"$@"}; shift
     1036  ;;
     1037esac
     1038
     1039
     1040
     1041# Option defaults:
     1042opt_debug=:
     1043opt_dry_run=false
     1044opt_config=false
     1045opt_preserve_dup_deps=false
     1046opt_features=false
     1047opt_finish=false
     1048opt_help=false
     1049opt_help_all=false
     1050opt_silent=:
     1051opt_warning=:
     1052opt_verbose=:
     1053opt_silent=false
     1054opt_verbose=false
     1055
     1056
     1057# Parse options once, thoroughly.  This comes as soon as possible in the
     1058# script to make things like `--version' happen as quickly as we can.
     1059{
     1060  # this just eases exit handling
     1061  while test $# -gt 0; do
     1062    opt="$1"
     1063    shift
     1064    case $opt in
     1065      --debug|-x)       opt_debug='set -x'
     1066                        func_echo "enabling shell trace mode"
     1067                        $opt_debug
     1068                        ;;
     1069      --dry-run|--dryrun|-n)
     1070                        opt_dry_run=:
     1071                        ;;
     1072      --config)
     1073                        opt_config=:
     1074func_config
     1075                        ;;
     1076      --dlopen|-dlopen)
     1077                        optarg="$1"
     1078                        opt_dlopen="${opt_dlopen+$opt_dlopen
     1079}$optarg"
     1080                        shift
     1081                        ;;
     1082      --preserve-dup-deps)
     1083                        opt_preserve_dup_deps=:
     1084                        ;;
     1085      --features)
     1086                        opt_features=:
     1087func_features
     1088                        ;;
     1089      --finish)
     1090                        opt_finish=:
     1091set dummy --mode finish ${1+"$@"}; shift
     1092                        ;;
     1093      --help)
     1094                        opt_help=:
     1095                        ;;
     1096      --help-all)
     1097                        opt_help_all=:
     1098opt_help=': help-all'
     1099                        ;;
     1100      --mode)
     1101                        test $# = 0 && func_missing_arg $opt && break
     1102                        optarg="$1"
     1103                        opt_mode="$optarg"
     1104case $optarg in
     1105  # Valid mode arguments:
     1106  clean|compile|execute|finish|install|link|relink|uninstall) ;;
     1107
     1108  # Catch anything else as an error
     1109  *) func_error "invalid argument for $opt"
     1110     exit_cmd=exit
     1111     break
     1112     ;;
     1113esac
     1114                        shift
     1115                        ;;
     1116      --no-silent|--no-quiet)
     1117                        opt_silent=false
     1118func_append preserve_args " $opt"
     1119                        ;;
     1120      --no-warning|--no-warn)
     1121                        opt_warning=false
     1122func_append preserve_args " $opt"
     1123                        ;;
     1124      --no-verbose)
     1125                        opt_verbose=false
     1126func_append preserve_args " $opt"
     1127                        ;;
     1128      --silent|--quiet)
     1129                        opt_silent=:
     1130func_append preserve_args " $opt"
     1131        opt_verbose=false
     1132                        ;;
     1133      --verbose|-v)
     1134                        opt_verbose=:
     1135func_append preserve_args " $opt"
     1136opt_silent=false
     1137                        ;;
     1138      --tag)
     1139                        test $# = 0 && func_missing_arg $opt && break
     1140                        optarg="$1"
     1141                        opt_tag="$optarg"
     1142func_append preserve_args " $opt $optarg"
     1143func_enable_tag "$optarg"
     1144                        shift
     1145                        ;;
     1146
     1147      -\?|-h)           func_usage                              ;;
     1148      --help)           func_help                               ;;
     1149      --version)        func_version                            ;;
     1150
     1151      # Separate optargs to long options:
     1152      --*=*)
     1153                        func_split_long_opt "$opt"
     1154                        set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
     1155                        shift
     1156                        ;;
     1157
     1158      # Separate non-argument short options:
     1159      -\?*|-h*|-n*|-v*)
     1160                        func_split_short_opt "$opt"
     1161                        set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
     1162                        shift
     1163                        ;;
     1164
     1165      --)               break                                   ;;
     1166      -*)               func_fatal_help "unrecognized option \`$opt'" ;;
     1167      *)                set dummy "$opt" ${1+"$@"};     shift; break  ;;
     1168    esac
     1169  done
     1170
     1171  # Validate options:
     1172
     1173  # save first non-option argument
     1174  if test "$#" -gt 0; then
     1175    nonopt="$opt"
     1176    shift
     1177  fi
     1178
     1179  # preserve --debug
     1180  test "$opt_debug" = : || func_append preserve_args " --debug"
     1181
     1182  case $host in
     1183    *cygwin* | *mingw* | *pw32* | *cegcc*)
     1184      # don't eliminate duplications in $postdeps and $predeps
     1185      opt_duplicate_compiler_generated_deps=:
     1186      ;;
     1187    *)
     1188      opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
     1189      ;;
     1190  esac
     1191
     1192  $opt_help || {
     1193    # Sanity checks first:
     1194    func_check_version_match
     1195
     1196    if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
     1197      func_fatal_configuration "not configured to build any kind of library"
     1198    fi
     1199
     1200    # Darwin sucks
     1201    eval std_shrext=\"$shrext_cmds\"
     1202
     1203    # Only execute mode is allowed to have -dlopen flags.
     1204    if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
     1205      func_error "unrecognized option \`-dlopen'"
     1206      $ECHO "$help" 1>&2
     1207      exit $EXIT_FAILURE
     1208    fi
     1209
     1210    # Change the help message to a mode-specific one.
     1211    generic_help="$help"
     1212    help="Try \`$progname --help --mode=$opt_mode' for more information."
     1213  }
     1214
     1215
     1216  # Bail if the options were screwed
     1217  $exit_cmd $EXIT_FAILURE
     1218}
     1219
     1220
     1221
     1222
     1223## ----------- ##
     1224##    Main.    ##
     1225## ----------- ##
     1226
     1227# func_lalib_p file
     1228# True iff FILE is a libtool `.la' library or `.lo' object file.
     1229# This function is only a basic sanity check; it will hardly flush out
     1230# determined imposters.
     1231func_lalib_p ()
     1232{
     1233    test -f "$1" &&
     1234      $SED -e 4q "$1" 2>/dev/null \
     1235        | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
     1236}
     1237
     1238# func_lalib_unsafe_p file
     1239# True iff FILE is a libtool `.la' library or `.lo' object file.
     1240# This function implements the same check as func_lalib_p without
     1241# resorting to external programs.  To this end, it redirects stdin and
     1242# closes it afterwards, without saving the original file descriptor.
     1243# As a safety measure, use it only where a negative result would be
     1244# fatal anyway.  Works if `file' does not exist.
     1245func_lalib_unsafe_p ()
     1246{
     1247    lalib_p=no
     1248    if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
     1249        for lalib_p_l in 1 2 3 4
     1250        do
     1251            read lalib_p_line
     1252            case "$lalib_p_line" in
     1253                \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
     1254            esac
     1255        done
     1256        exec 0<&5 5<&-
     1257    fi
     1258    test "$lalib_p" = yes
     1259}
     1260
     1261# func_ltwrapper_script_p file
     1262# True iff FILE is a libtool wrapper script
     1263# This function is only a basic sanity check; it will hardly flush out
     1264# determined imposters.
     1265func_ltwrapper_script_p ()
     1266{
     1267    func_lalib_p "$1"
     1268}
     1269
     1270# func_ltwrapper_executable_p file
     1271# True iff FILE is a libtool wrapper executable
     1272# This function is only a basic sanity check; it will hardly flush out
     1273# determined imposters.
     1274func_ltwrapper_executable_p ()
     1275{
     1276    func_ltwrapper_exec_suffix=
     1277    case $1 in
     1278    *.exe) ;;
     1279    *) func_ltwrapper_exec_suffix=.exe ;;
     1280    esac
     1281    $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
     1282}
     1283
     1284# func_ltwrapper_scriptname file
     1285# Assumes file is an ltwrapper_executable
     1286# uses $file to determine the appropriate filename for a
     1287# temporary ltwrapper_script.
     1288func_ltwrapper_scriptname ()
     1289{
     1290    func_dirname_and_basename "$1" "" "."
     1291    func_stripname '' '.exe' "$func_basename_result"
     1292    func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
     1293}
     1294
     1295# func_ltwrapper_p file
     1296# True iff FILE is a libtool wrapper script or wrapper executable
     1297# This function is only a basic sanity check; it will hardly flush out
     1298# determined imposters.
     1299func_ltwrapper_p ()
     1300{
     1301    func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
     1302}
     1303
     1304
     1305# func_execute_cmds commands fail_cmd
     1306# Execute tilde-delimited COMMANDS.
     1307# If FAIL_CMD is given, eval that upon failure.
     1308# FAIL_CMD may read-access the current command in variable CMD!
     1309func_execute_cmds ()
     1310{
     1311    $opt_debug
     1312    save_ifs=$IFS; IFS='~'
     1313    for cmd in $1; do
     1314      IFS=$save_ifs
     1315      eval cmd=\"$cmd\"
     1316      func_show_eval "$cmd" "${2-:}"
     1317    done
     1318    IFS=$save_ifs
     1319}
     1320
     1321
     1322# func_source file
     1323# Source FILE, adding directory component if necessary.
     1324# Note that it is not necessary on cygwin/mingw to append a dot to
     1325# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
     1326# behavior happens only for exec(3), not for open(2)!  Also, sourcing
     1327# `FILE.' does not work on cygwin managed mounts.
     1328func_source ()
     1329{
     1330    $opt_debug
     1331    case $1 in
     1332    */* | *\\*) . "$1" ;;
     1333    *)          . "./$1" ;;
     1334    esac
     1335}
     1336
     1337
     1338# func_resolve_sysroot PATH
     1339# Replace a leading = in PATH with a sysroot.  Store the result into
     1340# func_resolve_sysroot_result
     1341func_resolve_sysroot ()
     1342{
     1343  func_resolve_sysroot_result=$1
     1344  case $func_resolve_sysroot_result in
     1345  =*)
     1346    func_stripname '=' '' "$func_resolve_sysroot_result"
     1347    func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
     1348    ;;
     1349  esac
     1350}
     1351
     1352# func_replace_sysroot PATH
     1353# If PATH begins with the sysroot, replace it with = and
     1354# store the result into func_replace_sysroot_result.
     1355func_replace_sysroot ()
     1356{
     1357  case "$lt_sysroot:$1" in
     1358  ?*:"$lt_sysroot"*)
     1359    func_stripname "$lt_sysroot" '' "$1"
     1360    func_replace_sysroot_result="=$func_stripname_result"
     1361    ;;
     1362  *)
     1363    # Including no sysroot.
     1364    func_replace_sysroot_result=$1
     1365    ;;
     1366  esac
     1367}
     1368
     1369# func_infer_tag arg
     1370# Infer tagged configuration to use if any are available and
     1371# if one wasn't chosen via the "--tag" command line option.
     1372# Only attempt this if the compiler in the base compile
     1373# command doesn't match the default compiler.
     1374# arg is usually of the form 'gcc ...'
     1375func_infer_tag ()
     1376{
     1377    $opt_debug
     1378    if test -n "$available_tags" && test -z "$tagname"; then
     1379      CC_quoted=
     1380      for arg in $CC; do
     1381        func_append_quoted CC_quoted "$arg"
     1382      done
     1383      CC_expanded=`func_echo_all $CC`
     1384      CC_quoted_expanded=`func_echo_all $CC_quoted`
     1385      case $@ in
     1386      # Blanks in the command may have been stripped by the calling shell,
     1387      # but not from the CC environment variable when configure was run.
     1388      " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
     1389      " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
     1390      # Blanks at the start of $base_compile will cause this to fail
     1391      # if we don't check for them as well.
     1392      *)
     1393        for z in $available_tags; do
     1394          if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
     1395            # Evaluate the configuration.
     1396            eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
     1397            CC_quoted=
     1398            for arg in $CC; do
     1399              # Double-quote args containing other shell metacharacters.
     1400              func_append_quoted CC_quoted "$arg"
     1401            done
     1402            CC_expanded=`func_echo_all $CC`
     1403            CC_quoted_expanded=`func_echo_all $CC_quoted`
     1404            case "$@ " in
     1405            " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
     1406            " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
     1407              # The compiler in the base compile command matches
     1408              # the one in the tagged configuration.
     1409              # Assume this is the tagged configuration we want.
     1410              tagname=$z
     1411              break
     1412              ;;
     1413            esac
     1414          fi
     1415        done
     1416        # If $tagname still isn't set, then no tagged configuration
     1417        # was found and let the user know that the "--tag" command
     1418        # line option must be used.
     1419        if test -z "$tagname"; then
     1420          func_echo "unable to infer tagged configuration"
     1421          func_fatal_error "specify a tag with \`--tag'"
     1422#       else
     1423#         func_verbose "using $tagname tagged configuration"
     1424        fi
     1425        ;;
     1426      esac
     1427    fi
     1428}
     1429
     1430
     1431
     1432# func_write_libtool_object output_name pic_name nonpic_name
     1433# Create a libtool object file (analogous to a ".la" file),
     1434# but don't create it if we're doing a dry run.
     1435func_write_libtool_object ()
     1436{
     1437    write_libobj=${1}
     1438    if test "$build_libtool_libs" = yes; then
     1439      write_lobj=\'${2}\'
     1440    else
     1441      write_lobj=none
     1442    fi
     1443
     1444    if test "$build_old_libs" = yes; then
     1445      write_oldobj=\'${3}\'
     1446    else
     1447      write_oldobj=none
     1448    fi
     1449
     1450    $opt_dry_run || {
     1451      cat >${write_libobj}T <<EOF
     1452# $write_libobj - a libtool object file
     1453# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
     1454#
     1455# Please DO NOT delete this file!
     1456# It is necessary for linking the library.
     1457
     1458# Name of the PIC object.
     1459pic_object=$write_lobj
     1460
     1461# Name of the non-PIC object
     1462non_pic_object=$write_oldobj
     1463
     1464EOF
     1465      $MV "${write_libobj}T" "${write_libobj}"
     1466    }
     1467}
     1468
     1469
     1470##################################################
     1471# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
     1472##################################################
     1473
     1474# func_convert_core_file_wine_to_w32 ARG
     1475# Helper function used by file name conversion functions when $build is *nix,
     1476# and $host is mingw, cygwin, or some other w32 environment. Relies on a
     1477# correctly configured wine environment available, with the winepath program
     1478# in $build's $PATH.
     1479#
     1480# ARG is the $build file name to be converted to w32 format.
     1481# Result is available in $func_convert_core_file_wine_to_w32_result, and will
     1482# be empty on error (or when ARG is empty)
     1483func_convert_core_file_wine_to_w32 ()
     1484{
     1485  $opt_debug
     1486  func_convert_core_file_wine_to_w32_result="$1"
     1487  if test -n "$1"; then
     1488    # Unfortunately, winepath does not exit with a non-zero error code, so we
     1489    # are forced to check the contents of stdout. On the other hand, if the
     1490    # command is not found, the shell will set an exit code of 127 and print
     1491    # *an error message* to stdout. So we must check for both error code of
     1492    # zero AND non-empty stdout, which explains the odd construction:
     1493    func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
     1494    if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
     1495      func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
     1496        $SED -e "$lt_sed_naive_backslashify"`
     1497    else
     1498      func_convert_core_file_wine_to_w32_result=
     1499    fi
     1500  fi
     1501}
     1502# end: func_convert_core_file_wine_to_w32
     1503
     1504
     1505# func_convert_core_path_wine_to_w32 ARG
     1506# Helper function used by path conversion functions when $build is *nix, and
     1507# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
     1508# configured wine environment available, with the winepath program in $build's
     1509# $PATH. Assumes ARG has no leading or trailing path separator characters.
     1510#
     1511# ARG is path to be converted from $build format to win32.
     1512# Result is available in $func_convert_core_path_wine_to_w32_result.
     1513# Unconvertible file (directory) names in ARG are skipped; if no directory names
     1514# are convertible, then the result may be empty.
     1515func_convert_core_path_wine_to_w32 ()
     1516{
     1517  $opt_debug
     1518  # unfortunately, winepath doesn't convert paths, only file names
     1519  func_convert_core_path_wine_to_w32_result=""
     1520  if test -n "$1"; then
     1521    oldIFS=$IFS
     1522    IFS=:
     1523    for func_convert_core_path_wine_to_w32_f in $1; do
     1524      IFS=$oldIFS
     1525      func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
     1526      if test -n "$func_convert_core_file_wine_to_w32_result" ; then
     1527        if test -z "$func_convert_core_path_wine_to_w32_result"; then
     1528          func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
     1529        else
     1530          func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
     1531        fi
     1532      fi
     1533    done
     1534    IFS=$oldIFS
     1535  fi
     1536}
     1537# end: func_convert_core_path_wine_to_w32
     1538
     1539
     1540# func_cygpath ARGS...
     1541# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
     1542# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
     1543# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
     1544# (2), returns the Cygwin file name or path in func_cygpath_result (input
     1545# file name or path is assumed to be in w32 format, as previously converted
     1546# from $build's *nix or MSYS format). In case (3), returns the w32 file name
     1547# or path in func_cygpath_result (input file name or path is assumed to be in
     1548# Cygwin format). Returns an empty string on error.
     1549#
     1550# ARGS are passed to cygpath, with the last one being the file name or path to
     1551# be converted.
     1552#
     1553# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
     1554# environment variable; do not put it in $PATH.
     1555func_cygpath ()
     1556{
     1557  $opt_debug
     1558  if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
     1559    func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
     1560    if test "$?" -ne 0; then
     1561      # on failure, ensure result is empty
     1562      func_cygpath_result=
     1563    fi
     1564  else
     1565    func_cygpath_result=
     1566    func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
     1567  fi
     1568}
     1569#end: func_cygpath
     1570
     1571
     1572# func_convert_core_msys_to_w32 ARG
     1573# Convert file name or path ARG from MSYS format to w32 format.  Return
     1574# result in func_convert_core_msys_to_w32_result.
     1575func_convert_core_msys_to_w32 ()
     1576{
     1577  $opt_debug
     1578  # awkward: cmd appends spaces to result
     1579  func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
     1580    $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
     1581}
     1582#end: func_convert_core_msys_to_w32
     1583
     1584
     1585# func_convert_file_check ARG1 ARG2
     1586# Verify that ARG1 (a file name in $build format) was converted to $host
     1587# format in ARG2. Otherwise, emit an error message, but continue (resetting
     1588# func_to_host_file_result to ARG1).
     1589func_convert_file_check ()
     1590{
     1591  $opt_debug
     1592  if test -z "$2" && test -n "$1" ; then
     1593    func_error "Could not determine host file name corresponding to"
     1594    func_error "  \`$1'"
     1595    func_error "Continuing, but uninstalled executables may not work."
     1596    # Fallback:
     1597    func_to_host_file_result="$1"
     1598  fi
     1599}
     1600# end func_convert_file_check
     1601
     1602
     1603# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
     1604# Verify that FROM_PATH (a path in $build format) was converted to $host
     1605# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
     1606# func_to_host_file_result to a simplistic fallback value (see below).
     1607func_convert_path_check ()
     1608{
     1609  $opt_debug
     1610  if test -z "$4" && test -n "$3"; then
     1611    func_error "Could not determine the host path corresponding to"
     1612    func_error "  \`$3'"
     1613    func_error "Continuing, but uninstalled executables may not work."
     1614    # Fallback.  This is a deliberately simplistic "conversion" and
     1615    # should not be "improved".  See libtool.info.
     1616    if test "x$1" != "x$2"; then
     1617      lt_replace_pathsep_chars="s|$1|$2|g"
     1618      func_to_host_path_result=`echo "$3" |
     1619        $SED -e "$lt_replace_pathsep_chars"`
     1620    else
     1621      func_to_host_path_result="$3"
     1622    fi
     1623  fi
     1624}
     1625# end func_convert_path_check
     1626
     1627
     1628# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
     1629# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
     1630# and appending REPL if ORIG matches BACKPAT.
     1631func_convert_path_front_back_pathsep ()
     1632{
     1633  $opt_debug
     1634  case $4 in
     1635  $1 ) func_to_host_path_result="$3$func_to_host_path_result"
     1636    ;;
     1637  esac
     1638  case $4 in
     1639  $2 ) func_append func_to_host_path_result "$3"
     1640    ;;
     1641  esac
     1642}
     1643# end func_convert_path_front_back_pathsep
     1644
     1645
     1646##################################################
     1647# $build to $host FILE NAME CONVERSION FUNCTIONS #
     1648##################################################
     1649# invoked via `$to_host_file_cmd ARG'
     1650#
     1651# In each case, ARG is the path to be converted from $build to $host format.
     1652# Result will be available in $func_to_host_file_result.
     1653
     1654
     1655# func_to_host_file ARG
     1656# Converts the file name ARG from $build format to $host format. Return result
     1657# in func_to_host_file_result.
     1658func_to_host_file ()
     1659{
     1660  $opt_debug
     1661  $to_host_file_cmd "$1"
     1662}
     1663# end func_to_host_file
     1664
     1665
     1666# func_to_tool_file ARG LAZY
     1667# converts the file name ARG from $build format to toolchain format. Return
     1668# result in func_to_tool_file_result.  If the conversion in use is listed
     1669# in (the comma separated) LAZY, no conversion takes place.
     1670func_to_tool_file ()
     1671{
     1672  $opt_debug
     1673  case ,$2, in
     1674    *,"$to_tool_file_cmd",*)
     1675      func_to_tool_file_result=$1
     1676      ;;
     1677    *)
     1678      $to_tool_file_cmd "$1"
     1679      func_to_tool_file_result=$func_to_host_file_result
     1680      ;;
     1681  esac
     1682}
     1683# end func_to_tool_file
     1684
     1685
     1686# func_convert_file_noop ARG
     1687# Copy ARG to func_to_host_file_result.
     1688func_convert_file_noop ()
     1689{
     1690  func_to_host_file_result="$1"
     1691}
     1692# end func_convert_file_noop
     1693
     1694
     1695# func_convert_file_msys_to_w32 ARG
     1696# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
     1697# conversion to w32 is not available inside the cwrapper.  Returns result in
     1698# func_to_host_file_result.
     1699func_convert_file_msys_to_w32 ()
     1700{
     1701  $opt_debug
     1702  func_to_host_file_result="$1"
     1703  if test -n "$1"; then
     1704    func_convert_core_msys_to_w32 "$1"
     1705    func_to_host_file_result="$func_convert_core_msys_to_w32_result"
     1706  fi
     1707  func_convert_file_check "$1" "$func_to_host_file_result"
     1708}
     1709# end func_convert_file_msys_to_w32
     1710
     1711
     1712# func_convert_file_cygwin_to_w32 ARG
     1713# Convert file name ARG from Cygwin to w32 format.  Returns result in
     1714# func_to_host_file_result.
     1715func_convert_file_cygwin_to_w32 ()
     1716{
     1717  $opt_debug
     1718  func_to_host_file_result="$1"
     1719  if test -n "$1"; then
     1720    # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
     1721    # LT_CYGPATH in this case.
     1722    func_to_host_file_result=`cygpath -m "$1"`
     1723  fi
     1724  func_convert_file_check "$1" "$func_to_host_file_result"
     1725}
     1726# end func_convert_file_cygwin_to_w32
     1727
     1728
     1729# func_convert_file_nix_to_w32 ARG
     1730# Convert file name ARG from *nix to w32 format.  Requires a wine environment
     1731# and a working winepath. Returns result in func_to_host_file_result.
     1732func_convert_file_nix_to_w32 ()
     1733{
     1734  $opt_debug
     1735  func_to_host_file_result="$1"
     1736  if test -n "$1"; then
     1737    func_convert_core_file_wine_to_w32 "$1"
     1738    func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
     1739  fi
     1740  func_convert_file_check "$1" "$func_to_host_file_result"
     1741}
     1742# end func_convert_file_nix_to_w32
     1743
     1744
     1745# func_convert_file_msys_to_cygwin ARG
     1746# Convert file name ARG from MSYS to Cygwin format.  Requires LT_CYGPATH set.
     1747# Returns result in func_to_host_file_result.
     1748func_convert_file_msys_to_cygwin ()
     1749{
     1750  $opt_debug
     1751  func_to_host_file_result="$1"
     1752  if test -n "$1"; then
     1753    func_convert_core_msys_to_w32 "$1"
     1754    func_cygpath -u "$func_convert_core_msys_to_w32_result"
     1755    func_to_host_file_result="$func_cygpath_result"
     1756  fi
     1757  func_convert_file_check "$1" "$func_to_host_file_result"
     1758}
     1759# end func_convert_file_msys_to_cygwin
     1760
     1761
     1762# func_convert_file_nix_to_cygwin ARG
     1763# Convert file name ARG from *nix to Cygwin format.  Requires Cygwin installed
     1764# in a wine environment, working winepath, and LT_CYGPATH set.  Returns result
     1765# in func_to_host_file_result.
     1766func_convert_file_nix_to_cygwin ()
     1767{
     1768  $opt_debug
     1769  func_to_host_file_result="$1"
     1770  if test -n "$1"; then
     1771    # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
     1772    func_convert_core_file_wine_to_w32 "$1"
     1773    func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
     1774    func_to_host_file_result="$func_cygpath_result"
     1775  fi
     1776  func_convert_file_check "$1" "$func_to_host_file_result"
     1777}
     1778# end func_convert_file_nix_to_cygwin
     1779
     1780
     1781#############################################
     1782# $build to $host PATH CONVERSION FUNCTIONS #
     1783#############################################
     1784# invoked via `$to_host_path_cmd ARG'
     1785#
     1786# In each case, ARG is the path to be converted from $build to $host format.
     1787# The result will be available in $func_to_host_path_result.
     1788#
     1789# Path separators are also converted from $build format to $host format.  If
     1790# ARG begins or ends with a path separator character, it is preserved (but
     1791# converted to $host format) on output.
     1792#
     1793# All path conversion functions are named using the following convention:
     1794#   file name conversion function    : func_convert_file_X_to_Y ()
     1795#   path conversion function         : func_convert_path_X_to_Y ()
     1796# where, for any given $build/$host combination the 'X_to_Y' value is the
     1797# same.  If conversion functions are added for new $build/$host combinations,
     1798# the two new functions must follow this pattern, or func_init_to_host_path_cmd
     1799# will break.
     1800
     1801
     1802# func_init_to_host_path_cmd
     1803# Ensures that function "pointer" variable $to_host_path_cmd is set to the
     1804# appropriate value, based on the value of $to_host_file_cmd.
     1805to_host_path_cmd=
     1806func_init_to_host_path_cmd ()
     1807{
     1808  $opt_debug
     1809  if test -z "$to_host_path_cmd"; then
     1810    func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
     1811    to_host_path_cmd="func_convert_path_${func_stripname_result}"
     1812  fi
     1813}
     1814
     1815
     1816# func_to_host_path ARG
     1817# Converts the path ARG from $build format to $host format. Return result
     1818# in func_to_host_path_result.
     1819func_to_host_path ()
     1820{
     1821  $opt_debug
     1822  func_init_to_host_path_cmd
     1823  $to_host_path_cmd "$1"
     1824}
     1825# end func_to_host_path
     1826
     1827
     1828# func_convert_path_noop ARG
     1829# Copy ARG to func_to_host_path_result.
     1830func_convert_path_noop ()
     1831{
     1832  func_to_host_path_result="$1"
     1833}
     1834# end func_convert_path_noop
     1835
     1836
     1837# func_convert_path_msys_to_w32 ARG
     1838# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
     1839# conversion to w32 is not available inside the cwrapper.  Returns result in
     1840# func_to_host_path_result.
     1841func_convert_path_msys_to_w32 ()
     1842{
     1843  $opt_debug
     1844  func_to_host_path_result="$1"
     1845  if test -n "$1"; then
     1846    # Remove leading and trailing path separator characters from ARG.  MSYS
     1847    # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
     1848    # and winepath ignores them completely.
     1849    func_stripname : : "$1"
     1850    func_to_host_path_tmp1=$func_stripname_result
     1851    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
     1852    func_to_host_path_result="$func_convert_core_msys_to_w32_result"
     1853    func_convert_path_check : ";" \
     1854      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1855    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
     1856  fi
     1857}
     1858# end func_convert_path_msys_to_w32
     1859
     1860
     1861# func_convert_path_cygwin_to_w32 ARG
     1862# Convert path ARG from Cygwin to w32 format.  Returns result in
     1863# func_to_host_file_result.
     1864func_convert_path_cygwin_to_w32 ()
     1865{
     1866  $opt_debug
     1867  func_to_host_path_result="$1"
     1868  if test -n "$1"; then
     1869    # See func_convert_path_msys_to_w32:
     1870    func_stripname : : "$1"
     1871    func_to_host_path_tmp1=$func_stripname_result
     1872    func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
     1873    func_convert_path_check : ";" \
     1874      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1875    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
     1876  fi
     1877}
     1878# end func_convert_path_cygwin_to_w32
     1879
     1880
     1881# func_convert_path_nix_to_w32 ARG
     1882# Convert path ARG from *nix to w32 format.  Requires a wine environment and
     1883# a working winepath.  Returns result in func_to_host_file_result.
     1884func_convert_path_nix_to_w32 ()
     1885{
     1886  $opt_debug
     1887  func_to_host_path_result="$1"
     1888  if test -n "$1"; then
     1889    # See func_convert_path_msys_to_w32:
     1890    func_stripname : : "$1"
     1891    func_to_host_path_tmp1=$func_stripname_result
     1892    func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
     1893    func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
     1894    func_convert_path_check : ";" \
     1895      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1896    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
     1897  fi
     1898}
     1899# end func_convert_path_nix_to_w32
     1900
     1901
     1902# func_convert_path_msys_to_cygwin ARG
     1903# Convert path ARG from MSYS to Cygwin format.  Requires LT_CYGPATH set.
     1904# Returns result in func_to_host_file_result.
     1905func_convert_path_msys_to_cygwin ()
     1906{
     1907  $opt_debug
     1908  func_to_host_path_result="$1"
     1909  if test -n "$1"; then
     1910    # See func_convert_path_msys_to_w32:
     1911    func_stripname : : "$1"
     1912    func_to_host_path_tmp1=$func_stripname_result
     1913    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
     1914    func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
     1915    func_to_host_path_result="$func_cygpath_result"
     1916    func_convert_path_check : : \
     1917      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1918    func_convert_path_front_back_pathsep ":*" "*:" : "$1"
     1919  fi
     1920}
     1921# end func_convert_path_msys_to_cygwin
     1922
     1923
     1924# func_convert_path_nix_to_cygwin ARG
     1925# Convert path ARG from *nix to Cygwin format.  Requires Cygwin installed in a
     1926# a wine environment, working winepath, and LT_CYGPATH set.  Returns result in
     1927# func_to_host_file_result.
     1928func_convert_path_nix_to_cygwin ()
     1929{
     1930  $opt_debug
     1931  func_to_host_path_result="$1"
     1932  if test -n "$1"; then
     1933    # Remove leading and trailing path separator characters from
     1934    # ARG. msys behavior is inconsistent here, cygpath turns them
     1935    # into '.;' and ';.', and winepath ignores them completely.
     1936    func_stripname : : "$1"
     1937    func_to_host_path_tmp1=$func_stripname_result
     1938    func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
     1939    func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
     1940    func_to_host_path_result="$func_cygpath_result"
     1941    func_convert_path_check : : \
     1942      "$func_to_host_path_tmp1" "$func_to_host_path_result"
     1943    func_convert_path_front_back_pathsep ":*" "*:" : "$1"
     1944  fi
     1945}
     1946# end func_convert_path_nix_to_cygwin
     1947
     1948
     1949# func_mode_compile arg...
     1950func_mode_compile ()
     1951{
     1952    $opt_debug
     1953    # Get the compilation command and the source file.
     1954    base_compile=
     1955    srcfile="$nonopt"  #  always keep a non-empty value in "srcfile"
     1956    suppress_opt=yes
     1957    suppress_output=
     1958    arg_mode=normal
     1959    libobj=
     1960    later=
     1961    pie_flag=
     1962
     1963    for arg
     1964    do
     1965      case $arg_mode in
     1966      arg  )
     1967        # do not "continue".  Instead, add this to base_compile
     1968        lastarg="$arg"
     1969        arg_mode=normal
     1970        ;;
     1971
     1972      target )
     1973        libobj="$arg"
     1974        arg_mode=normal
     1975        continue
     1976        ;;
     1977
     1978      normal )
     1979        # Accept any command-line options.
     1980        case $arg in
     1981        -o)
     1982          test -n "$libobj" && \
     1983            func_fatal_error "you cannot specify \`-o' more than once"
     1984          arg_mode=target
     1985          continue
     1986          ;;
     1987
     1988        -pie | -fpie | -fPIE)
     1989          func_append pie_flag " $arg"
     1990          continue
     1991          ;;
     1992
     1993        -shared | -static | -prefer-pic | -prefer-non-pic)
     1994          func_append later " $arg"
     1995          continue
     1996          ;;
     1997
     1998        -no-suppress)
     1999          suppress_opt=no
     2000          continue
     2001          ;;
     2002
     2003        -Xcompiler)
     2004          arg_mode=arg  #  the next one goes into the "base_compile" arg list
     2005          continue      #  The current "srcfile" will either be retained or
     2006          ;;            #  replaced later.  I would guess that would be a bug.
     2007
     2008        -Wc,*)
     2009          func_stripname '-Wc,' '' "$arg"
     2010          args=$func_stripname_result
     2011          lastarg=
     2012          save_ifs="$IFS"; IFS=','
     2013          for arg in $args; do
     2014            IFS="$save_ifs"
     2015            func_append_quoted lastarg "$arg"
     2016          done
     2017          IFS="$save_ifs"
     2018          func_stripname ' ' '' "$lastarg"
     2019          lastarg=$func_stripname_result
     2020
     2021          # Add the arguments to base_compile.
     2022          func_append base_compile " $lastarg"
     2023          continue
     2024          ;;
     2025
     2026        *)
     2027          # Accept the current argument as the source file.
     2028          # The previous "srcfile" becomes the current argument.
     2029          #
     2030          lastarg="$srcfile"
     2031          srcfile="$arg"
     2032          ;;
     2033        esac  #  case $arg
     2034        ;;
     2035      esac    #  case $arg_mode
     2036
     2037      # Aesthetically quote the previous argument.
     2038      func_append_quoted base_compile "$lastarg"
     2039    done # for arg
     2040
     2041    case $arg_mode in
     2042    arg)
     2043      func_fatal_error "you must specify an argument for -Xcompile"
     2044      ;;
     2045    target)
     2046      func_fatal_error "you must specify a target with \`-o'"
     2047      ;;
     2048    *)
     2049      # Get the name of the library object.
     2050      test -z "$libobj" && {
     2051        func_basename "$srcfile"
     2052        libobj="$func_basename_result"
     2053      }
     2054      ;;
     2055    esac
     2056
     2057    # Recognize several different file suffixes.
     2058    # If the user specifies -o file.o, it is replaced with file.lo
     2059    case $libobj in
     2060    *.[cCFSifmso] | \
     2061    *.ada | *.adb | *.ads | *.asm | \
     2062    *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
     2063    *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
     2064      func_xform "$libobj"
     2065      libobj=$func_xform_result
     2066      ;;
     2067    esac
     2068
     2069    case $libobj in
     2070    *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
     2071    *)
     2072      func_fatal_error "cannot determine name of library object from \`$libobj'"
     2073      ;;
     2074    esac
     2075
     2076    func_infer_tag $base_compile
     2077
     2078    for arg in $later; do
     2079      case $arg in
     2080      -shared)
     2081        test "$build_libtool_libs" != yes && \
     2082          func_fatal_configuration "can not build a shared library"
     2083        build_old_libs=no
     2084        continue
     2085        ;;
     2086
     2087      -static)
     2088        build_libtool_libs=no
     2089        build_old_libs=yes
     2090        continue
     2091        ;;
     2092
     2093      -prefer-pic)
     2094        pic_mode=yes
     2095        continue
     2096        ;;
     2097
     2098      -prefer-non-pic)
     2099        pic_mode=no
     2100        continue
     2101        ;;
     2102      esac
     2103    done
     2104
     2105    func_quote_for_eval "$libobj"
     2106    test "X$libobj" != "X$func_quote_for_eval_result" \
     2107      && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"'    &()|`$[]' \
     2108      && func_warning "libobj name \`$libobj' may not contain shell special characters."
     2109    func_dirname_and_basename "$obj" "/" ""
     2110    objname="$func_basename_result"
     2111    xdir="$func_dirname_result"
     2112    lobj=${xdir}$objdir/$objname
     2113
     2114    test -z "$base_compile" && \
     2115      func_fatal_help "you must specify a compilation command"
     2116
     2117    # Delete any leftover library objects.
     2118    if test "$build_old_libs" = yes; then
     2119      removelist="$obj $lobj $libobj ${libobj}T"
     2120    else
     2121      removelist="$lobj $libobj ${libobj}T"
     2122    fi
     2123
     2124    # On Cygwin there's no "real" PIC flag so we must build both object types
     2125    case $host_os in
     2126    cygwin* | mingw* | pw32* | os2* | cegcc*)
     2127      pic_mode=default
     2128      ;;
     2129    esac
     2130    if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
     2131      # non-PIC code in shared libraries is not supported
     2132      pic_mode=default
     2133    fi
     2134
     2135    # Calculate the filename of the output object if compiler does
     2136    # not support -o with -c
     2137    if test "$compiler_c_o" = no; then
     2138      output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
     2139      lockfile="$output_obj.lock"
     2140    else
     2141      output_obj=
     2142      need_locks=no
     2143      lockfile=
     2144    fi
     2145
     2146    # Lock this critical section if it is needed
     2147    # We use this script file to make the link, it avoids creating a new file
     2148    if test "$need_locks" = yes; then
     2149      until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
     2150        func_echo "Waiting for $lockfile to be removed"
     2151        sleep 2
     2152      done
     2153    elif test "$need_locks" = warn; then
     2154      if test -f "$lockfile"; then
     2155        $ECHO "\
     2156*** ERROR, $lockfile exists and contains:
     2157`cat $lockfile 2>/dev/null`
     2158
     2159This indicates that another process is trying to use the same
     2160temporary object file, and libtool could not work around it because
     2161your compiler does not support \`-c' and \`-o' together.  If you
     2162repeat this compilation, it may succeed, by chance, but you had better
     2163avoid parallel builds (make -j) in this platform, or get a better
     2164compiler."
     2165
     2166        $opt_dry_run || $RM $removelist
    2072167        exit $EXIT_FAILURE
     2168      fi
     2169      func_append removelist " $output_obj"
     2170      $ECHO "$srcfile" > "$lockfile"
     2171    fi
     2172
     2173    $opt_dry_run || $RM $removelist
     2174    func_append removelist " $lockfile"
     2175    trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
     2176
     2177    func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
     2178    srcfile=$func_to_tool_file_result
     2179    func_quote_for_eval "$srcfile"
     2180    qsrcfile=$func_quote_for_eval_result
     2181
     2182    # Only build a PIC object if we are building libtool libraries.
     2183    if test "$build_libtool_libs" = yes; then
     2184      # Without this assignment, base_compile gets emptied.
     2185      fbsd_hideous_sh_bug=$base_compile
     2186
     2187      if test "$pic_mode" != no; then
     2188        command="$base_compile $qsrcfile $pic_flag"
     2189      else
     2190        # Don't build PIC code
     2191        command="$base_compile $qsrcfile"
     2192      fi
     2193
     2194      func_mkdir_p "$xdir$objdir"
     2195
     2196      if test -z "$output_obj"; then
     2197        # Place PIC objects in $objdir
     2198        func_append command " -o $lobj"
     2199      fi
     2200
     2201      func_show_eval_locale "$command"  \
     2202          'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
     2203
     2204      if test "$need_locks" = warn &&
     2205         test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
     2206        $ECHO "\
     2207*** ERROR, $lockfile contains:
     2208`cat $lockfile 2>/dev/null`
     2209
     2210but it should contain:
     2211$srcfile
     2212
     2213This indicates that another process is trying to use the same
     2214temporary object file, and libtool could not work around it because
     2215your compiler does not support \`-c' and \`-o' together.  If you
     2216repeat this compilation, it may succeed, by chance, but you had better
     2217avoid parallel builds (make -j) in this platform, or get a better
     2218compiler."
     2219
     2220        $opt_dry_run || $RM $removelist
     2221        exit $EXIT_FAILURE
     2222      fi
     2223
     2224      # Just move the object if needed, then go on to compile the next one
     2225      if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
     2226        func_show_eval '$MV "$output_obj" "$lobj"' \
     2227          'error=$?; $opt_dry_run || $RM $removelist; exit $error'
     2228      fi
     2229
     2230      # Allow error messages only from the first compilation.
     2231      if test "$suppress_opt" = yes; then
     2232        suppress_output=' >/dev/null 2>&1'
     2233      fi
     2234    fi
     2235
     2236    # Only build a position-dependent object if we build old libraries.
     2237    if test "$build_old_libs" = yes; then
     2238      if test "$pic_mode" != yes; then
     2239        # Don't build PIC code
     2240        command="$base_compile $qsrcfile$pie_flag"
     2241      else
     2242        command="$base_compile $qsrcfile $pic_flag"
     2243      fi
     2244      if test "$compiler_c_o" = yes; then
     2245        func_append command " -o $obj"
     2246      fi
     2247
     2248      # Suppress compiler output if we already did a PIC compilation.
     2249      func_append command "$suppress_output"
     2250      func_show_eval_locale "$command" \
     2251        '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
     2252
     2253      if test "$need_locks" = warn &&
     2254         test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
     2255        $ECHO "\
     2256*** ERROR, $lockfile contains:
     2257`cat $lockfile 2>/dev/null`
     2258
     2259but it should contain:
     2260$srcfile
     2261
     2262This indicates that another process is trying to use the same
     2263temporary object file, and libtool could not work around it because
     2264your compiler does not support \`-c' and \`-o' together.  If you
     2265repeat this compilation, it may succeed, by chance, but you had better
     2266avoid parallel builds (make -j) in this platform, or get a better
     2267compiler."
     2268
     2269        $opt_dry_run || $RM $removelist
     2270        exit $EXIT_FAILURE
     2271      fi
     2272
     2273      # Just move the object if needed
     2274      if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
     2275        func_show_eval '$MV "$output_obj" "$obj"' \
     2276          'error=$?; $opt_dry_run || $RM $removelist; exit $error'
     2277      fi
     2278    fi
     2279
     2280    $opt_dry_run || {
     2281      func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
     2282
     2283      # Unlock the critical section if it was locked
     2284      if test "$need_locks" != no; then
     2285        removelist=$lockfile
     2286        $RM "$lockfile"
     2287      fi
     2288    }
     2289
     2290    exit $EXIT_SUCCESS
     2291}
     2292
     2293$opt_help || {
     2294  test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
     2295}
     2296
     2297func_mode_help ()
     2298{
     2299    # We need to display help for each of the modes.
     2300    case $opt_mode in
     2301      "")
     2302        # Generic help is extracted from the usage comments
     2303        # at the start of this file.
     2304        func_help
     2305        ;;
     2306
     2307      clean)
     2308        $ECHO \
     2309"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
     2310
     2311Remove files from the build directory.
     2312
     2313RM is the name of the program to use to delete files associated with each FILE
     2314(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
     2315to RM.
     2316
     2317If FILE is a libtool library, object or program, all the files associated
     2318with it are deleted. Otherwise, only FILE itself is deleted using RM."
     2319        ;;
     2320
     2321      compile)
     2322      $ECHO \
     2323"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
     2324
     2325Compile a source file into a libtool library object.
     2326
     2327This mode accepts the following additional options:
     2328
     2329  -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
     2330  -no-suppress      do not suppress compiler output for multiple passes
     2331  -prefer-pic       try to build PIC objects only
     2332  -prefer-non-pic   try to build non-PIC objects only
     2333  -shared           do not build a \`.o' file suitable for static linking
     2334  -static           only build a \`.o' file suitable for static linking
     2335  -Wc,FLAG          pass FLAG directly to the compiler
     2336
     2337COMPILE-COMMAND is a command to be used in creating a \`standard' object file
     2338from the given SOURCEFILE.
     2339
     2340The output file name is determined by removing the directory component from
     2341SOURCEFILE, then substituting the C source code suffix \`.c' with the
     2342library object suffix, \`.lo'."
     2343        ;;
     2344
     2345      execute)
     2346        $ECHO \
     2347"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
     2348
     2349Automatically set library path, then run a program.
     2350
     2351This mode accepts the following additional options:
     2352
     2353  -dlopen FILE      add the directory containing FILE to the library path
     2354
     2355This mode sets the library path environment variable according to \`-dlopen'
     2356flags.
     2357
     2358If any of the ARGS are libtool executable wrappers, then they are translated
     2359into their corresponding uninstalled binary, and any of their required library
     2360directories are added to the library path.
     2361
     2362Then, COMMAND is executed, with ARGS as arguments."
     2363        ;;
     2364
     2365      finish)
     2366        $ECHO \
     2367"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
     2368
     2369Complete the installation of libtool libraries.
     2370
     2371Each LIBDIR is a directory that contains libtool libraries.
     2372
     2373The commands that this mode executes may require superuser privileges.  Use
     2374the \`--dry-run' option if you just want to see what would be executed."
     2375        ;;
     2376
     2377      install)
     2378        $ECHO \
     2379"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
     2380
     2381Install executables or libraries.
     2382
     2383INSTALL-COMMAND is the installation command.  The first component should be
     2384either the \`install' or \`cp' program.
     2385
     2386The following components of INSTALL-COMMAND are treated specially:
     2387
     2388  -inst-prefix-dir PREFIX-DIR  Use PREFIX-DIR as a staging area for installation
     2389
     2390The rest of the components are interpreted as arguments to that command (only
     2391BSD-compatible install options are recognized)."
     2392        ;;
     2393
     2394      link)
     2395        $ECHO \
     2396"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
     2397
     2398Link object files or libraries together to form another library, or to
     2399create an executable program.
     2400
     2401LINK-COMMAND is a command using the C compiler that you would use to create
     2402a program from several object files.
     2403
     2404The following components of LINK-COMMAND are treated specially:
     2405
     2406  -all-static       do not do any dynamic linking at all
     2407  -avoid-version    do not add a version suffix if possible
     2408  -bindir BINDIR    specify path to binaries directory (for systems where
     2409                    libraries must be found in the PATH setting at runtime)
     2410  -dlopen FILE      \`-dlpreopen' FILE if it cannot be dlopened at runtime
     2411  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
     2412  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
     2413  -export-symbols SYMFILE
     2414                    try to export only the symbols listed in SYMFILE
     2415  -export-symbols-regex REGEX
     2416                    try to export only the symbols matching REGEX
     2417  -LLIBDIR          search LIBDIR for required installed libraries
     2418  -lNAME            OUTPUT-FILE requires the installed library libNAME
     2419  -module           build a library that can dlopened
     2420  -no-fast-install  disable the fast-install mode
     2421  -no-install       link a not-installable executable
     2422  -no-undefined     declare that a library does not refer to external symbols
     2423  -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
     2424  -objectlist FILE  Use a list of object files found in FILE to specify objects
     2425  -precious-files-regex REGEX
     2426                    don't remove output files matching REGEX
     2427  -release RELEASE  specify package release information
     2428  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
     2429  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
     2430  -shared           only do dynamic linking of libtool libraries
     2431  -shrext SUFFIX    override the standard shared library file extension
     2432  -static           do not do any dynamic linking of uninstalled libtool libraries
     2433  -static-libtool-libs
     2434                    do not do any dynamic linking of libtool libraries
     2435  -version-info CURRENT[:REVISION[:AGE]]
     2436                    specify library version info [each variable defaults to 0]
     2437  -weak LIBNAME     declare that the target provides the LIBNAME interface
     2438  -Wc,FLAG
     2439  -Xcompiler FLAG   pass linker-specific FLAG directly to the compiler
     2440  -Wl,FLAG
     2441  -Xlinker FLAG     pass linker-specific FLAG directly to the linker
     2442  -XCClinker FLAG   pass link-specific FLAG to the compiler driver (CC)
     2443
     2444All other options (arguments beginning with \`-') are ignored.
     2445
     2446Every other argument is treated as a filename.  Files ending in \`.la' are
     2447treated as uninstalled libtool libraries, other files are standard or library
     2448object files.
     2449
     2450If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
     2451only library objects (\`.lo' files) may be specified, and \`-rpath' is
     2452required, except when creating a convenience library.
     2453
     2454If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
     2455using \`ar' and \`ranlib', or on Windows using \`lib'.
     2456
     2457If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
     2458is created, otherwise an executable program is created."
     2459        ;;
     2460
     2461      uninstall)
     2462        $ECHO \
     2463"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
     2464
     2465Remove libraries from an installation directory.
     2466
     2467RM is the name of the program to use to delete files associated with each FILE
     2468(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
     2469to RM.
     2470
     2471If FILE is a libtool library, all the files associated with it are deleted.
     2472Otherwise, only FILE itself is deleted using RM."
     2473        ;;
     2474
     2475      *)
     2476        func_fatal_help "invalid operation mode \`$opt_mode'"
     2477        ;;
     2478    esac
     2479
     2480    echo
     2481    $ECHO "Try \`$progname --help' for more information about other modes."
     2482}
     2483
     2484# Now that we've collected a possible --mode arg, show help if necessary
     2485if $opt_help; then
     2486  if test "$opt_help" = :; then
     2487    func_mode_help
     2488  else
     2489    {
     2490      func_help noexit
     2491      for opt_mode in compile link execute install finish uninstall clean; do
     2492        func_mode_help
     2493      done
     2494    } | sed -n '1p; 2,$s/^Usage:/  or: /p'
     2495    {
     2496      func_help noexit
     2497      for opt_mode in compile link execute install finish uninstall clean; do
     2498        echo
     2499        func_mode_help
     2500      done
     2501    } |
     2502    sed '1d
     2503      /^When reporting/,/^Report/{
     2504        H
     2505        d
    2082506      }
     2507      $x
     2508      /information about other modes/d
     2509      /more detailed .*MODE/d
     2510      s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
     2511  fi
     2512  exit $?
     2513fi
     2514
     2515
     2516# func_mode_execute arg...
     2517func_mode_execute ()
     2518{
     2519    $opt_debug
     2520    # The first argument is the command name.
     2521    cmd="$nonopt"
     2522    test -z "$cmd" && \
     2523      func_fatal_help "you must specify a COMMAND"
     2524
     2525    # Handle -dlopen flags immediately.
     2526    for file in $opt_dlopen; do
     2527      test -f "$file" \
     2528        || func_fatal_help "\`$file' is not a file"
     2529
     2530      dir=
     2531      case $file in
     2532      *.la)
     2533        func_resolve_sysroot "$file"
     2534        file=$func_resolve_sysroot_result
     2535
     2536        # Check to see that this really is a libtool archive.
     2537        func_lalib_unsafe_p "$file" \
     2538          || func_fatal_help "\`$lib' is not a valid libtool archive"
     2539
     2540        # Read the libtool library.
     2541        dlname=
     2542        library_names=
     2543        func_source "$file"
     2544
     2545        # Skip this library if it cannot be dlopened.
     2546        if test -z "$dlname"; then
     2547          # Warn if it was a shared library.
     2548          test -n "$library_names" && \
     2549            func_warning "\`$file' was not linked with \`-export-dynamic'"
     2550          continue
     2551        fi
     2552
     2553        func_dirname "$file" "" "."
     2554        dir="$func_dirname_result"
     2555
     2556        if test -f "$dir/$objdir/$dlname"; then
     2557          func_append dir "/$objdir"
     2558        else
     2559          if test ! -f "$dir/$dlname"; then
     2560            func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
     2561          fi
     2562        fi
     2563        ;;
     2564
     2565      *.lo)
     2566        # Just add the directory containing the .lo file.
     2567        func_dirname "$file" "" "."
     2568        dir="$func_dirname_result"
     2569        ;;
     2570
     2571      *)
     2572        func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
     2573        continue
     2574        ;;
     2575      esac
     2576
     2577      # Get the absolute pathname.
     2578      absdir=`cd "$dir" && pwd`
     2579      test -n "$absdir" && dir="$absdir"
     2580
     2581      # Now add the directory to shlibpath_var.
     2582      if eval "test -z \"\$$shlibpath_var\""; then
     2583        eval "$shlibpath_var=\"\$dir\""
     2584      else
     2585        eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
     2586      fi
     2587    done
     2588
     2589    # This variable tells wrapper scripts just to set shlibpath_var
     2590    # rather than running their programs.
     2591    libtool_execute_magic="$magic"
     2592
     2593    # Check if any of the arguments is a wrapper script.
     2594    args=
     2595    for file
     2596    do
     2597      case $file in
     2598      -* | *.la | *.lo ) ;;
     2599      *)
     2600        # Do a test to see if this is really a libtool program.
     2601        if func_ltwrapper_script_p "$file"; then
     2602          func_source "$file"
     2603          # Transform arg to wrapped name.
     2604          file="$progdir/$program"
     2605        elif func_ltwrapper_executable_p "$file"; then
     2606          func_ltwrapper_scriptname "$file"
     2607          func_source "$func_ltwrapper_scriptname_result"
     2608          # Transform arg to wrapped name.
     2609          file="$progdir/$program"
     2610        fi
     2611        ;;
     2612      esac
     2613      # Quote arguments (to preserve shell metacharacters).
     2614      func_append_quoted args "$file"
     2615    done
     2616
     2617    if test "X$opt_dry_run" = Xfalse; then
     2618      if test -n "$shlibpath_var"; then
     2619        # Export the shlibpath_var.
     2620        eval "export $shlibpath_var"
     2621      fi
     2622
     2623      # Restore saved environment variables
     2624      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
     2625      do
     2626        eval "if test \"\${save_$lt_var+set}\" = set; then
     2627                $lt_var=\$save_$lt_var; export $lt_var
     2628              else
     2629                $lt_unset $lt_var
     2630              fi"
     2631      done
     2632
     2633      # Now prepare to actually exec the command.
     2634      exec_cmd="\$cmd$args"
     2635    else
     2636      # Display what would be done.
     2637      if test -n "$shlibpath_var"; then
     2638        eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
     2639        echo "export $shlibpath_var"
     2640      fi
     2641      $ECHO "$cmd$args"
     2642      exit $EXIT_SUCCESS
    2092643    fi
    210 
    211     $echo "X$my_tmpdir" | $Xsed
    212 }
    213 
     2644}
     2645
     2646test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
     2647
     2648
     2649# func_mode_finish arg...
     2650func_mode_finish ()
     2651{
     2652    $opt_debug
     2653    libs=
     2654    libdirs=
     2655    admincmds=
     2656
     2657    for opt in "$nonopt" ${1+"$@"}
     2658    do
     2659      if test -d "$opt"; then
     2660        func_append libdirs " $opt"
     2661
     2662      elif test -f "$opt"; then
     2663        if func_lalib_unsafe_p "$opt"; then
     2664          func_append libs " $opt"
     2665        else
     2666          func_warning "\`$opt' is not a valid libtool archive"
     2667        fi
     2668
     2669      else
     2670        func_fatal_error "invalid argument \`$opt'"
     2671      fi
     2672    done
     2673
     2674    if test -n "$libs"; then
     2675      if test -n "$lt_sysroot"; then
     2676        sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
     2677        sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
     2678      else
     2679        sysroot_cmd=
     2680      fi
     2681
     2682      # Remove sysroot references
     2683      if $opt_dry_run; then
     2684        for lib in $libs; do
     2685          echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
     2686        done
     2687      else
     2688        tmpdir=`func_mktempdir`
     2689        for lib in $libs; do
     2690          sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
     2691            > $tmpdir/tmp-la
     2692          mv -f $tmpdir/tmp-la $lib
     2693        done
     2694        ${RM}r "$tmpdir"
     2695      fi
     2696    fi
     2697
     2698    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
     2699      for libdir in $libdirs; do
     2700        if test -n "$finish_cmds"; then
     2701          # Do each command in the finish commands.
     2702          func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
     2703'"$cmd"'"'
     2704        fi
     2705        if test -n "$finish_eval"; then
     2706          # Do the single finish_eval.
     2707          eval cmds=\"$finish_eval\"
     2708          $opt_dry_run || eval "$cmds" || func_append admincmds "
     2709       $cmds"
     2710        fi
     2711      done
     2712    fi
     2713
     2714    # Exit here if they wanted silent mode.
     2715    $opt_silent && exit $EXIT_SUCCESS
     2716
     2717    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
     2718      echo "----------------------------------------------------------------------"
     2719      echo "Libraries have been installed in:"
     2720      for libdir in $libdirs; do
     2721        $ECHO "   $libdir"
     2722      done
     2723      echo
     2724      echo "If you ever happen to want to link against installed libraries"
     2725      echo "in a given directory, LIBDIR, you must either use libtool, and"
     2726      echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
     2727      echo "flag during linking and do at least one of the following:"
     2728      if test -n "$shlibpath_var"; then
     2729        echo "   - add LIBDIR to the \`$shlibpath_var' environment variable"
     2730        echo "     during execution"
     2731      fi
     2732      if test -n "$runpath_var"; then
     2733        echo "   - add LIBDIR to the \`$runpath_var' environment variable"
     2734        echo "     during linking"
     2735      fi
     2736      if test -n "$hardcode_libdir_flag_spec"; then
     2737        libdir=LIBDIR
     2738        eval flag=\"$hardcode_libdir_flag_spec\"
     2739
     2740        $ECHO "   - use the \`$flag' linker flag"
     2741      fi
     2742      if test -n "$admincmds"; then
     2743        $ECHO "   - have your system administrator run these commands:$admincmds"
     2744      fi
     2745      if test -f /etc/ld.so.conf; then
     2746        echo "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
     2747      fi
     2748      echo
     2749
     2750      echo "See any operating system documentation about shared libraries for"
     2751      case $host in
     2752        solaris2.[6789]|solaris2.1[0-9])
     2753          echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
     2754          echo "pages."
     2755          ;;
     2756        *)
     2757          echo "more information, such as the ld(1) and ld.so(8) manual pages."
     2758          ;;
     2759      esac
     2760      echo "----------------------------------------------------------------------"
     2761    fi
     2762    exit $EXIT_SUCCESS
     2763}
     2764
     2765test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
     2766
     2767
     2768# func_mode_install arg...
     2769func_mode_install ()
     2770{
     2771    $opt_debug
     2772    # There may be an optional sh(1) argument at the beginning of
     2773    # install_prog (especially on Windows NT).
     2774    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
     2775       # Allow the use of GNU shtool's install command.
     2776       case $nonopt in *shtool*) :;; *) false;; esac; then
     2777      # Aesthetically quote it.
     2778      func_quote_for_eval "$nonopt"
     2779      install_prog="$func_quote_for_eval_result "
     2780      arg=$1
     2781      shift
     2782    else
     2783      install_prog=
     2784      arg=$nonopt
     2785    fi
     2786
     2787    # The real first argument should be the name of the installation program.
     2788    # Aesthetically quote it.
     2789    func_quote_for_eval "$arg"
     2790    func_append install_prog "$func_quote_for_eval_result"
     2791    install_shared_prog=$install_prog
     2792    case " $install_prog " in
     2793      *[\\\ /]cp\ *) install_cp=: ;;
     2794      *) install_cp=false ;;
     2795    esac
     2796
     2797    # We need to accept at least all the BSD install flags.
     2798    dest=
     2799    files=
     2800    opts=
     2801    prev=
     2802    install_type=
     2803    isdir=no
     2804    stripme=
     2805    no_mode=:
     2806    for arg
     2807    do
     2808      arg2=
     2809      if test -n "$dest"; then
     2810        func_append files " $dest"
     2811        dest=$arg
     2812        continue
     2813      fi
     2814
     2815      case $arg in
     2816      -d) isdir=yes ;;
     2817      -f)
     2818        if $install_cp; then :; else
     2819          prev=$arg
     2820        fi
     2821        ;;
     2822      -g | -m | -o)
     2823        prev=$arg
     2824        ;;
     2825      -s)
     2826        stripme=" -s"
     2827        continue
     2828        ;;
     2829      -*)
     2830        ;;
     2831      *)
     2832        # If the previous option needed an argument, then skip it.
     2833        if test -n "$prev"; then
     2834          if test "x$prev" = x-m && test -n "$install_override_mode"; then
     2835            arg2=$install_override_mode
     2836            no_mode=false
     2837          fi
     2838          prev=
     2839        else
     2840          dest=$arg
     2841          continue
     2842        fi
     2843        ;;
     2844      esac
     2845
     2846      # Aesthetically quote the argument.
     2847      func_quote_for_eval "$arg"
     2848      func_append install_prog " $func_quote_for_eval_result"
     2849      if test -n "$arg2"; then
     2850        func_quote_for_eval "$arg2"
     2851      fi
     2852      func_append install_shared_prog " $func_quote_for_eval_result"
     2853    done
     2854
     2855    test -z "$install_prog" && \
     2856      func_fatal_help "you must specify an install program"
     2857
     2858    test -n "$prev" && \
     2859      func_fatal_help "the \`$prev' option requires an argument"
     2860
     2861    if test -n "$install_override_mode" && $no_mode; then
     2862      if $install_cp; then :; else
     2863        func_quote_for_eval "$install_override_mode"
     2864        func_append install_shared_prog " -m $func_quote_for_eval_result"
     2865      fi
     2866    fi
     2867
     2868    if test -z "$files"; then
     2869      if test -z "$dest"; then
     2870        func_fatal_help "no file or destination specified"
     2871      else
     2872        func_fatal_help "you must specify a destination"
     2873      fi
     2874    fi
     2875
     2876    # Strip any trailing slash from the destination.
     2877    func_stripname '' '/' "$dest"
     2878    dest=$func_stripname_result
     2879
     2880    # Check to see that the destination is a directory.
     2881    test -d "$dest" && isdir=yes
     2882    if test "$isdir" = yes; then
     2883      destdir="$dest"
     2884      destname=
     2885    else
     2886      func_dirname_and_basename "$dest" "" "."
     2887      destdir="$func_dirname_result"
     2888      destname="$func_basename_result"
     2889
     2890      # Not a directory, so check to see that there is only one file specified.
     2891      set dummy $files; shift
     2892      test "$#" -gt 1 && \
     2893        func_fatal_help "\`$dest' is not a directory"
     2894    fi
     2895    case $destdir in
     2896    [\\/]* | [A-Za-z]:[\\/]*) ;;
     2897    *)
     2898      for file in $files; do
     2899        case $file in
     2900        *.lo) ;;
     2901        *)
     2902          func_fatal_help "\`$destdir' must be an absolute directory name"
     2903          ;;
     2904        esac
     2905      done
     2906      ;;
     2907    esac
     2908
     2909    # This variable tells wrapper scripts just to set variables rather
     2910    # than running their programs.
     2911    libtool_install_magic="$magic"
     2912
     2913    staticlibs=
     2914    future_libdirs=
     2915    current_libdirs=
     2916    for file in $files; do
     2917
     2918      # Do each installation.
     2919      case $file in
     2920      *.$libext)
     2921        # Do the static libraries later.
     2922        func_append staticlibs " $file"
     2923        ;;
     2924
     2925      *.la)
     2926        func_resolve_sysroot "$file"
     2927        file=$func_resolve_sysroot_result
     2928
     2929        # Check to see that this really is a libtool archive.
     2930        func_lalib_unsafe_p "$file" \
     2931          || func_fatal_help "\`$file' is not a valid libtool archive"
     2932
     2933        library_names=
     2934        old_library=
     2935        relink_command=
     2936        func_source "$file"
     2937
     2938        # Add the libdir to current_libdirs if it is the destination.
     2939        if test "X$destdir" = "X$libdir"; then
     2940          case "$current_libdirs " in
     2941          *" $libdir "*) ;;
     2942          *) func_append current_libdirs " $libdir" ;;
     2943          esac
     2944        else
     2945          # Note the libdir as a future libdir.
     2946          case "$future_libdirs " in
     2947          *" $libdir "*) ;;
     2948          *) func_append future_libdirs " $libdir" ;;
     2949          esac
     2950        fi
     2951
     2952        func_dirname "$file" "/" ""
     2953        dir="$func_dirname_result"
     2954        func_append dir "$objdir"
     2955
     2956        if test -n "$relink_command"; then
     2957          # Determine the prefix the user has applied to our future dir.
     2958          inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
     2959
     2960          # Don't allow the user to place us outside of our expected
     2961          # location b/c this prevents finding dependent libraries that
     2962          # are installed to the same prefix.
     2963          # At present, this check doesn't affect windows .dll's that
     2964          # are installed into $libdir/../bin (currently, that works fine)
     2965          # but it's something to keep an eye on.
     2966          test "$inst_prefix_dir" = "$destdir" && \
     2967            func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
     2968
     2969          if test -n "$inst_prefix_dir"; then
     2970            # Stick the inst_prefix_dir data into the link command.
     2971            relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
     2972          else
     2973            relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
     2974          fi
     2975
     2976          func_warning "relinking \`$file'"
     2977          func_show_eval "$relink_command" \
     2978            'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
     2979        fi
     2980
     2981        # See the names of the shared library.
     2982        set dummy $library_names; shift
     2983        if test -n "$1"; then
     2984          realname="$1"
     2985          shift
     2986
     2987          srcname="$realname"
     2988          test -n "$relink_command" && srcname="$realname"T
     2989
     2990          # Install the shared library and build the symlinks.
     2991          func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
     2992              'exit $?'
     2993          tstripme="$stripme"
     2994          case $host_os in
     2995          cygwin* | mingw* | pw32* | cegcc*)
     2996            case $realname in
     2997            *.dll.a)
     2998              tstripme=""
     2999              ;;
     3000            esac
     3001            ;;
     3002          esac
     3003          if test -n "$tstripme" && test -n "$striplib"; then
     3004            func_show_eval "$striplib $destdir/$realname" 'exit $?'
     3005          fi
     3006
     3007          if test "$#" -gt 0; then
     3008            # Delete the old symlinks, and create new ones.
     3009            # Try `ln -sf' first, because the `ln' binary might depend on
     3010            # the symlink we replace!  Solaris /bin/ln does not understand -f,
     3011            # so we also need to try rm && ln -s.
     3012            for linkname
     3013            do
     3014              test "$linkname" != "$realname" \
     3015                && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
     3016            done
     3017          fi
     3018
     3019          # Do each command in the postinstall commands.
     3020          lib="$destdir/$realname"
     3021          func_execute_cmds "$postinstall_cmds" 'exit $?'
     3022        fi
     3023
     3024        # Install the pseudo-library for information purposes.
     3025        func_basename "$file"
     3026        name="$func_basename_result"
     3027        instname="$dir/$name"i
     3028        func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
     3029
     3030        # Maybe install the static library, too.
     3031        test -n "$old_library" && func_append staticlibs " $dir/$old_library"
     3032        ;;
     3033
     3034      *.lo)
     3035        # Install (i.e. copy) a libtool object.
     3036
     3037        # Figure out destination file name, if it wasn't already specified.
     3038        if test -n "$destname"; then
     3039          destfile="$destdir/$destname"
     3040        else
     3041          func_basename "$file"
     3042          destfile="$func_basename_result"
     3043          destfile="$destdir/$destfile"
     3044        fi
     3045
     3046        # Deduce the name of the destination old-style object file.
     3047        case $destfile in
     3048        *.lo)
     3049          func_lo2o "$destfile"
     3050          staticdest=$func_lo2o_result
     3051          ;;
     3052        *.$objext)
     3053          staticdest="$destfile"
     3054          destfile=
     3055          ;;
     3056        *)
     3057          func_fatal_help "cannot copy a libtool object to \`$destfile'"
     3058          ;;
     3059        esac
     3060
     3061        # Install the libtool object if requested.
     3062        test -n "$destfile" && \
     3063          func_show_eval "$install_prog $file $destfile" 'exit $?'
     3064
     3065        # Install the old object if enabled.
     3066        if test "$build_old_libs" = yes; then
     3067          # Deduce the name of the old-style object file.
     3068          func_lo2o "$file"
     3069          staticobj=$func_lo2o_result
     3070          func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
     3071        fi
     3072        exit $EXIT_SUCCESS
     3073        ;;
     3074
     3075      *)
     3076        # Figure out destination file name, if it wasn't already specified.
     3077        if test -n "$destname"; then
     3078          destfile="$destdir/$destname"
     3079        else
     3080          func_basename "$file"
     3081          destfile="$func_basename_result"
     3082          destfile="$destdir/$destfile"
     3083        fi
     3084
     3085        # If the file is missing, and there is a .exe on the end, strip it
     3086        # because it is most likely a libtool script we actually want to
     3087        # install
     3088        stripped_ext=""
     3089        case $file in
     3090          *.exe)
     3091            if test ! -f "$file"; then
     3092              func_stripname '' '.exe' "$file"
     3093              file=$func_stripname_result
     3094              stripped_ext=".exe"
     3095            fi
     3096            ;;
     3097        esac
     3098
     3099        # Do a test to see if this is really a libtool program.
     3100        case $host in
     3101        *cygwin* | *mingw*)
     3102            if func_ltwrapper_executable_p "$file"; then
     3103              func_ltwrapper_scriptname "$file"
     3104              wrapper=$func_ltwrapper_scriptname_result
     3105            else
     3106              func_stripname '' '.exe' "$file"
     3107              wrapper=$func_stripname_result
     3108            fi
     3109            ;;
     3110        *)
     3111            wrapper=$file
     3112            ;;
     3113        esac
     3114        if func_ltwrapper_script_p "$wrapper"; then
     3115          notinst_deplibs=
     3116          relink_command=
     3117
     3118          func_source "$wrapper"
     3119
     3120          # Check the variables that should have been set.
     3121          test -z "$generated_by_libtool_version" && \
     3122            func_fatal_error "invalid libtool wrapper script \`$wrapper'"
     3123
     3124          finalize=yes
     3125          for lib in $notinst_deplibs; do
     3126            # Check to see that each library is installed.
     3127            libdir=
     3128            if test -f "$lib"; then
     3129              func_source "$lib"
     3130            fi
     3131            libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
     3132            if test -n "$libdir" && test ! -f "$libfile"; then
     3133              func_warning "\`$lib' has not been installed in \`$libdir'"
     3134              finalize=no
     3135            fi
     3136          done
     3137
     3138          relink_command=
     3139          func_source "$wrapper"
     3140
     3141          outputname=
     3142          if test "$fast_install" = no && test -n "$relink_command"; then
     3143            $opt_dry_run || {
     3144              if test "$finalize" = yes; then
     3145                tmpdir=`func_mktempdir`
     3146                func_basename "$file$stripped_ext"
     3147                file="$func_basename_result"
     3148                outputname="$tmpdir/$file"
     3149                # Replace the output file specification.
     3150                relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
     3151
     3152                $opt_silent || {
     3153                  func_quote_for_expand "$relink_command"
     3154                  eval "func_echo $func_quote_for_expand_result"
     3155                }
     3156                if eval "$relink_command"; then :
     3157                  else
     3158                  func_error "error: relink \`$file' with the above command before installing it"
     3159                  $opt_dry_run || ${RM}r "$tmpdir"
     3160                  continue
     3161                fi
     3162                file="$outputname"
     3163              else
     3164                func_warning "cannot relink \`$file'"
     3165              fi
     3166            }
     3167          else
     3168            # Install the binary that we compiled earlier.
     3169            file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
     3170          fi
     3171        fi
     3172
     3173        # remove .exe since cygwin /usr/bin/install will append another
     3174        # one anyway
     3175        case $install_prog,$host in
     3176        */usr/bin/install*,*cygwin*)
     3177          case $file:$destfile in
     3178          *.exe:*.exe)
     3179            # this is ok
     3180            ;;
     3181          *.exe:*)
     3182            destfile=$destfile.exe
     3183            ;;
     3184          *:*.exe)
     3185            func_stripname '' '.exe' "$destfile"
     3186            destfile=$func_stripname_result
     3187            ;;
     3188          esac
     3189          ;;
     3190        esac
     3191        func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
     3192        $opt_dry_run || if test -n "$outputname"; then
     3193          ${RM}r "$tmpdir"
     3194        fi
     3195        ;;
     3196      esac
     3197    done
     3198
     3199    for file in $staticlibs; do
     3200      func_basename "$file"
     3201      name="$func_basename_result"
     3202
     3203      # Set up the ranlib parameters.
     3204      oldlib="$destdir/$name"
     3205      func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
     3206      tool_oldlib=$func_to_tool_file_result
     3207
     3208      func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
     3209
     3210      if test -n "$stripme" && test -n "$old_striplib"; then
     3211        func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
     3212      fi
     3213
     3214      # Do each command in the postinstall commands.
     3215      func_execute_cmds "$old_postinstall_cmds" 'exit $?'
     3216    done
     3217
     3218    test -n "$future_libdirs" && \
     3219      func_warning "remember to run \`$progname --finish$future_libdirs'"
     3220
     3221    if test -n "$current_libdirs"; then
     3222      # Maybe just do a dry run.
     3223      $opt_dry_run && current_libdirs=" -n$current_libdirs"
     3224      exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
     3225    else
     3226      exit $EXIT_SUCCESS
     3227    fi
     3228}
     3229
     3230test "$opt_mode" = install && func_mode_install ${1+"$@"}
     3231
     3232
     3233# func_generate_dlsyms outputname originator pic_p
     3234# Extract symbols from dlprefiles and create ${outputname}S.o with
     3235# a dlpreopen symbol table.
     3236func_generate_dlsyms ()
     3237{
     3238    $opt_debug
     3239    my_outputname="$1"
     3240    my_originator="$2"
     3241    my_pic_p="${3-no}"
     3242    my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
     3243    my_dlsyms=
     3244
     3245    if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
     3246      if test -n "$NM" && test -n "$global_symbol_pipe"; then
     3247        my_dlsyms="${my_outputname}S.c"
     3248      else
     3249        func_error "not configured to extract global symbols from dlpreopened files"
     3250      fi
     3251    fi
     3252
     3253    if test -n "$my_dlsyms"; then
     3254      case $my_dlsyms in
     3255      "") ;;
     3256      *.c)
     3257        # Discover the nlist of each of the dlfiles.
     3258        nlist="$output_objdir/${my_outputname}.nm"
     3259
     3260        func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
     3261
     3262        # Parse the name list into a source file.
     3263        func_verbose "creating $output_objdir/$my_dlsyms"
     3264
     3265        $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
     3266/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
     3267/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
     3268
     3269#ifdef __cplusplus
     3270extern \"C\" {
     3271#endif
     3272
     3273#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
     3274#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
     3275#endif
     3276
     3277/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
     3278#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
     3279/* DATA imports from DLLs on WIN32 con't be const, because runtime
     3280   relocations are performed -- see ld's documentation on pseudo-relocs.  */
     3281# define LT_DLSYM_CONST
     3282#elif defined(__osf__)
     3283/* This system does not cope well with relocations in const data.  */
     3284# define LT_DLSYM_CONST
     3285#else
     3286# define LT_DLSYM_CONST const
     3287#endif
     3288
     3289/* External symbol declarations for the compiler. */\
     3290"
     3291
     3292        if test "$dlself" = yes; then
     3293          func_verbose "generating symbol list for \`$output'"
     3294
     3295          $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
     3296
     3297          # Add our own program objects to the symbol list.
     3298          progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
     3299          for progfile in $progfiles; do
     3300            func_to_tool_file "$progfile" func_convert_file_msys_to_w32
     3301            func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
     3302            $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
     3303          done
     3304
     3305          if test -n "$exclude_expsyms"; then
     3306            $opt_dry_run || {
     3307              eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
     3308              eval '$MV "$nlist"T "$nlist"'
     3309            }
     3310          fi
     3311
     3312          if test -n "$export_symbols_regex"; then
     3313            $opt_dry_run || {
     3314              eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
     3315              eval '$MV "$nlist"T "$nlist"'
     3316            }
     3317          fi
     3318
     3319          # Prepare the list of exported symbols
     3320          if test -z "$export_symbols"; then
     3321            export_symbols="$output_objdir/$outputname.exp"
     3322            $opt_dry_run || {
     3323              $RM $export_symbols
     3324              eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
     3325              case $host in
     3326              *cygwin* | *mingw* | *cegcc* )
     3327                eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
     3328                eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
     3329                ;;
     3330              esac
     3331            }
     3332          else
     3333            $opt_dry_run || {
     3334              eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
     3335              eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
     3336              eval '$MV "$nlist"T "$nlist"'
     3337              case $host in
     3338                *cygwin* | *mingw* | *cegcc* )
     3339                  eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
     3340                  eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
     3341                  ;;
     3342              esac
     3343            }
     3344          fi
     3345        fi
     3346
     3347        for dlprefile in $dlprefiles; do
     3348          func_verbose "extracting global C symbols from \`$dlprefile'"
     3349          func_basename "$dlprefile"
     3350          name="$func_basename_result"
     3351          case $host in
     3352            *cygwin* | *mingw* | *cegcc* )
     3353              # if an import library, we need to obtain dlname
     3354              if func_win32_import_lib_p "$dlprefile"; then
     3355                func_tr_sh "$dlprefile"
     3356                eval "curr_lafile=\$libfile_$func_tr_sh_result"
     3357                dlprefile_dlbasename=""
     3358                if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
     3359                  # Use subshell, to avoid clobbering current variable values
     3360                  dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
     3361                  if test -n "$dlprefile_dlname" ; then
     3362                    func_basename "$dlprefile_dlname"
     3363                    dlprefile_dlbasename="$func_basename_result"
     3364                  else
     3365                    # no lafile. user explicitly requested -dlpreopen <import library>.
     3366                    $sharedlib_from_linklib_cmd "$dlprefile"
     3367                    dlprefile_dlbasename=$sharedlib_from_linklib_result
     3368                  fi
     3369                fi
     3370                $opt_dry_run || {
     3371                  if test -n "$dlprefile_dlbasename" ; then
     3372                    eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
     3373                  else
     3374                    func_warning "Could not compute DLL name from $name"
     3375                    eval '$ECHO ": $name " >> "$nlist"'
     3376                  fi
     3377                  func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
     3378                  eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
     3379                    $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
     3380                }
     3381              else # not an import lib
     3382                $opt_dry_run || {
     3383                  eval '$ECHO ": $name " >> "$nlist"'
     3384                  func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
     3385                  eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
     3386                }
     3387              fi
     3388            ;;
     3389            *)
     3390              $opt_dry_run || {
     3391                eval '$ECHO ": $name " >> "$nlist"'
     3392                func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
     3393                eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
     3394              }
     3395            ;;
     3396          esac
     3397        done
     3398
     3399        $opt_dry_run || {
     3400          # Make sure we have at least an empty file.
     3401          test -f "$nlist" || : > "$nlist"
     3402
     3403          if test -n "$exclude_expsyms"; then
     3404            $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
     3405            $MV "$nlist"T "$nlist"
     3406          fi
     3407
     3408          # Try sorting and uniquifying the output.
     3409          if $GREP -v "^: " < "$nlist" |
     3410              if sort -k 3 </dev/null >/dev/null 2>&1; then
     3411                sort -k 3
     3412              else
     3413                sort +2
     3414              fi |
     3415              uniq > "$nlist"S; then
     3416            :
     3417          else
     3418            $GREP -v "^: " < "$nlist" > "$nlist"S
     3419          fi
     3420
     3421          if test -f "$nlist"S; then
     3422            eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
     3423          else
     3424            echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
     3425          fi
     3426
     3427          echo >> "$output_objdir/$my_dlsyms" "\
     3428
     3429/* The mapping between symbol names and symbols.  */
     3430typedef struct {
     3431  const char *name;
     3432  void *address;
     3433} lt_dlsymlist;
     3434extern LT_DLSYM_CONST lt_dlsymlist
     3435lt_${my_prefix}_LTX_preloaded_symbols[];
     3436LT_DLSYM_CONST lt_dlsymlist
     3437lt_${my_prefix}_LTX_preloaded_symbols[] =
     3438{\
     3439  { \"$my_originator\", (void *) 0 },"
     3440
     3441          case $need_lib_prefix in
     3442          no)
     3443            eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
     3444            ;;
     3445          *)
     3446            eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
     3447            ;;
     3448          esac
     3449          echo >> "$output_objdir/$my_dlsyms" "\
     3450  {0, (void *) 0}
     3451};
     3452
     3453/* This works around a problem in FreeBSD linker */
     3454#ifdef FREEBSD_WORKAROUND
     3455static const void *lt_preloaded_setup() {
     3456  return lt_${my_prefix}_LTX_preloaded_symbols;
     3457}
     3458#endif
     3459
     3460#ifdef __cplusplus
     3461}
     3462#endif\
     3463"
     3464        } # !$opt_dry_run
     3465
     3466        pic_flag_for_symtable=
     3467        case "$compile_command " in
     3468        *" -static "*) ;;
     3469        *)
     3470          case $host in
     3471          # compiling the symbol table file with pic_flag works around
     3472          # a FreeBSD bug that causes programs to crash when -lm is
     3473          # linked before any other PIC object.  But we must not use
     3474          # pic_flag when linking with -static.  The problem exists in
     3475          # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
     3476          *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
     3477            pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
     3478          *-*-hpux*)
     3479            pic_flag_for_symtable=" $pic_flag"  ;;
     3480          *)
     3481            if test "X$my_pic_p" != Xno; then
     3482              pic_flag_for_symtable=" $pic_flag"
     3483            fi
     3484            ;;
     3485          esac
     3486          ;;
     3487        esac
     3488        symtab_cflags=
     3489        for arg in $LTCFLAGS; do
     3490          case $arg in
     3491          -pie | -fpie | -fPIE) ;;
     3492          *) func_append symtab_cflags " $arg" ;;
     3493          esac
     3494        done
     3495
     3496        # Now compile the dynamic symbol file.
     3497        func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
     3498
     3499        # Clean up the generated files.
     3500        func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
     3501
     3502        # Transform the symbol file into the correct name.
     3503        symfileobj="$output_objdir/${my_outputname}S.$objext"
     3504        case $host in
     3505        *cygwin* | *mingw* | *cegcc* )
     3506          if test -f "$output_objdir/$my_outputname.def"; then
     3507            compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
     3508            finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
     3509          else
     3510            compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
     3511            finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
     3512          fi
     3513          ;;
     3514        *)
     3515          compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
     3516          finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
     3517          ;;
     3518        esac
     3519        ;;
     3520      *)
     3521        func_fatal_error "unknown suffix for \`$my_dlsyms'"
     3522        ;;
     3523      esac
     3524    else
     3525      # We keep going just in case the user didn't refer to
     3526      # lt_preloaded_symbols.  The linker will fail if global_symbol_pipe
     3527      # really was required.
     3528
     3529      # Nullify the symbol file.
     3530      compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
     3531      finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
     3532    fi
     3533}
    2143534
    2153535# func_win32_libid arg
     
    2193539# Has to be a shell function in order to 'eat' the argument
    2203540# that is supplied when $file_magic_command is called.
     3541# Despite the name, also deal with 64 bit binaries.
    2213542func_win32_libid ()
    2223543{
     3544  $opt_debug
    2233545  win32_libid_type="unknown"
    2243546  win32_fileres=`file -L $1 2>/dev/null`
     
    2283550    ;;
    2293551  *ar\ archive*) # could be an import, or static
    230     if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
    231       $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
    232       win32_nmres=`eval $NM -f posix -A $1 | \
    233         $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
     3552    # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
     3553    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
     3554       $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
     3555      func_to_tool_file "$1" func_convert_file_msys_to_w32
     3556      win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
     3557        $SED -n -e '
     3558            1,100{
     3559                / I /{
     3560                    s,.*,import,
     3561                    p
     3562                    q
     3563                }
     3564            }'`
    2343565      case $win32_nmres in
    2353566      import*)  win32_libid_type="x86 archive import";;
     
    2493580    ;;
    2503581  esac
    251   $echo $win32_libid_type
    252 }
    253 
    254 
    255 # func_infer_tag arg
    256 # Infer tagged configuration to use if any are available and
    257 # if one wasn't chosen via the "--tag" command line option.
    258 # Only attempt this if the compiler in the base compile
    259 # command doesn't match the default compiler.
    260 # arg is usually of the form 'gcc ...'
    261 func_infer_tag ()
    262 {
    263     if test -n "$available_tags" && test -z "$tagname"; then
    264       CC_quoted=
    265       for arg in $CC; do
    266         case $arg in
    267           *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
    268           arg="\"$arg\""
    269           ;;
    270         esac
    271         CC_quoted="$CC_quoted $arg"
    272       done
    273       case $@ in
    274       # Blanks in the command may have been stripped by the calling shell,
    275       # but not from the CC environment variable when configure was run.
    276       " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
    277       # Blanks at the start of $base_compile will cause this to fail
    278       # if we don't check for them as well.
    279       *)
    280         for z in $available_tags; do
    281           if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
    282             # Evaluate the configuration.
    283             eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
    284             CC_quoted=
    285             for arg in $CC; do
    286             # Double-quote args containing other shell metacharacters.
    287             case $arg in
    288               *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    289               arg="\"$arg\""
    290               ;;
    291             esac
    292             CC_quoted="$CC_quoted $arg"
    293           done
    294             # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
    295             trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"`
    296             # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc
    297             extendcc=${host}-${CC}
    298             # and sometimes libtool has CC=<OLDHOST>-gcc but user has CC=<NEWHOST>-gcc 
    299             # (Gentoo-specific hack because we always export $CHOST)
    300             mungedcc=${CHOST-${host}}-${trimedcc}
    301             case "$@ " in
    302               "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\
    303               "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*)
    304               tagname=CC
    305               break ;;
    306               "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\
    307               "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\
    308               "$mungedcc "* | " $mungedcc "* | "`$echo $mungedcc` "* | " `$echo $mungedcc` "*|\
    309               " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
    310               # The compiler in the base compile command matches
    311               # the one in the tagged configuration.
    312               # Assume this is the tagged configuration we want.
    313               tagname=$z
    314               break
    315               ;;
    316             esac
    317           fi
    318         done
    319         # If $tagname still isn't set, then no tagged configuration
    320         # was found and let the user know that the "--tag" command
    321         # line option must be used.
    322         if test -z "$tagname"; then
    323           $echo "$modename: unable to infer tagged configuration"
    324           $echo "$modename: specify a tag with \`--tag'" 1>&2
    325           exit $EXIT_FAILURE
    326 #        else
    327 #          $echo "$modename: using $tagname tagged configuration"
    328         fi
    329         ;;
    330       esac
    331     fi
     3582  $ECHO "$win32_libid_type"
     3583}
     3584
     3585# func_cygming_dll_for_implib ARG
     3586#
     3587# Platform-specific function to extract the
     3588# name of the DLL associated with the specified
     3589# import library ARG.
     3590# Invoked by eval'ing the libtool variable
     3591#    $sharedlib_from_linklib_cmd
     3592# Result is available in the variable
     3593#    $sharedlib_from_linklib_result
     3594func_cygming_dll_for_implib ()
     3595{
     3596  $opt_debug
     3597  sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
     3598}
     3599
     3600# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
     3601#
     3602# The is the core of a fallback implementation of a
     3603# platform-specific function to extract the name of the
     3604# DLL associated with the specified import library LIBNAME.
     3605#
     3606# SECTION_NAME is either .idata$6 or .idata$7, depending
     3607# on the platform and compiler that created the implib.
     3608#
     3609# Echos the name of the DLL associated with the
     3610# specified import library.
     3611func_cygming_dll_for_implib_fallback_core ()
     3612{
     3613  $opt_debug
     3614  match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
     3615  $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
     3616    $SED '/^Contents of section '"$match_literal"':/{
     3617      # Place marker at beginning of archive member dllname section
     3618      s/.*/====MARK====/
     3619      p
     3620      d
     3621    }
     3622    # These lines can sometimes be longer than 43 characters, but
     3623    # are always uninteresting
     3624    /:[  ]*file format pe[i]\{,1\}-/d
     3625    /^In archive [^:]*:/d
     3626    # Ensure marker is printed
     3627    /^====MARK====/p
     3628    # Remove all lines with less than 43 characters
     3629    /^.\{43\}/!d
     3630    # From remaining lines, remove first 43 characters
     3631    s/^.\{43\}//' |
     3632    $SED -n '
     3633      # Join marker and all lines until next marker into a single line
     3634      /^====MARK====/ b para
     3635      H
     3636      $ b para
     3637      b
     3638      :para
     3639      x
     3640      s/\n//g
     3641      # Remove the marker
     3642      s/^====MARK====//
     3643      # Remove trailing dots and whitespace
     3644      s/[\. \t]*$//
     3645      # Print
     3646      /./p' |
     3647    # we now have a list, one entry per line, of the stringified
     3648    # contents of the appropriate section of all members of the
     3649    # archive which possess that section. Heuristic: eliminate
     3650    # all those which have a first or second character that is
     3651    # a '.' (that is, objdump's representation of an unprintable
     3652    # character.) This should work for all archives with less than
     3653    # 0x302f exports -- but will fail for DLLs whose name actually
     3654    # begins with a literal '.' or a single character followed by
     3655    # a '.'.
     3656    #
     3657    # Of those that remain, print the first one.
     3658    $SED -e '/^\./d;/^.\./d;q'
     3659}
     3660
     3661# func_cygming_gnu_implib_p ARG
     3662# This predicate returns with zero status (TRUE) if
     3663# ARG is a GNU/binutils-style import library. Returns
     3664# with nonzero status (FALSE) otherwise.
     3665func_cygming_gnu_implib_p ()
     3666{
     3667  $opt_debug
     3668  func_to_tool_file "$1" func_convert_file_msys_to_w32
     3669  func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
     3670  test -n "$func_cygming_gnu_implib_tmp"
     3671}
     3672
     3673# func_cygming_ms_implib_p ARG
     3674# This predicate returns with zero status (TRUE) if
     3675# ARG is an MS-style import library. Returns
     3676# with nonzero status (FALSE) otherwise.
     3677func_cygming_ms_implib_p ()
     3678{
     3679  $opt_debug
     3680  func_to_tool_file "$1" func_convert_file_msys_to_w32
     3681  func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
     3682  test -n "$func_cygming_ms_implib_tmp"
     3683}
     3684
     3685# func_cygming_dll_for_implib_fallback ARG
     3686# Platform-specific function to extract the
     3687# name of the DLL associated with the specified
     3688# import library ARG.
     3689#
     3690# This fallback implementation is for use when $DLLTOOL
     3691# does not support the --identify-strict option.
     3692# Invoked by eval'ing the libtool variable
     3693#    $sharedlib_from_linklib_cmd
     3694# Result is available in the variable
     3695#    $sharedlib_from_linklib_result
     3696func_cygming_dll_for_implib_fallback ()
     3697{
     3698  $opt_debug
     3699  if func_cygming_gnu_implib_p "$1" ; then
     3700    # binutils import library
     3701    sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
     3702  elif func_cygming_ms_implib_p "$1" ; then
     3703    # ms-generated import library
     3704    sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
     3705  else
     3706    # unknown
     3707    sharedlib_from_linklib_result=""
     3708  fi
    3323709}
    3333710
     
    3363713func_extract_an_archive ()
    3373714{
     3715    $opt_debug
    3383716    f_ex_an_ar_dir="$1"; shift
    3393717    f_ex_an_ar_oldlib="$1"
    340 
    341     $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
    342     $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
     3718    if test "$lock_old_archive_extraction" = yes; then
     3719      lockfile=$f_ex_an_ar_oldlib.lock
     3720      until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
     3721        func_echo "Waiting for $lockfile to be removed"
     3722        sleep 2
     3723      done
     3724    fi
     3725    func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
     3726                   'stat=$?; rm -f "$lockfile"; exit $stat'
     3727    if test "$lock_old_archive_extraction" = yes; then
     3728      $opt_dry_run || rm -f "$lockfile"
     3729    fi
    3433730    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
    3443731     :
    3453732    else
    346       $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
    347       exit $EXIT_FAILURE
     3733      func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
    3483734    fi
    3493735}
     3736
    3503737
    3513738# func_extract_archives gentop oldlib ...
    3523739func_extract_archives ()
    3533740{
     3741    $opt_debug
    3543742    my_gentop="$1"; shift
    3553743    my_oldlibs=${1+"$@"}
     
    3583746    my_xabs=""
    3593747    my_xdir=""
    360     my_status=""
    361 
    362     $show "${rm}r $my_gentop"
    363     $run ${rm}r "$my_gentop"
    364     $show "$mkdir $my_gentop"
    365     $run $mkdir "$my_gentop"
    366     my_status=$?
    367     if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
    368       exit $my_status
    369     fi
    3703748
    3713749    for my_xlib in $my_oldlibs; do
     
    3753753        *) my_xabs=`pwd`"/$my_xlib" ;;
    3763754      esac
    377       my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
    378       my_xdir="$my_gentop/$my_xlib"
    379 
    380       $show "${rm}r $my_xdir"
    381       $run ${rm}r "$my_xdir"
    382       $show "$mkdir $my_xdir"
    383       $run $mkdir "$my_xdir"
    384       exit_status=$?
    385       if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
    386         exit $exit_status
    387       fi
     3755      func_basename "$my_xlib"
     3756      my_xlib="$func_basename_result"
     3757      my_xlib_u=$my_xlib
     3758      while :; do
     3759        case " $extracted_archives " in
     3760        *" $my_xlib_u "*)
     3761          func_arith $extracted_serial + 1
     3762          extracted_serial=$func_arith_result
     3763          my_xlib_u=lt$extracted_serial-$my_xlib ;;
     3764        *) break ;;
     3765        esac
     3766      done
     3767      extracted_archives="$extracted_archives $my_xlib_u"
     3768      my_xdir="$my_gentop/$my_xlib_u"
     3769
     3770      func_mkdir_p "$my_xdir"
     3771
    3883772      case $host in
    3893773      *-darwin*)
    390         $show "Extracting $my_xabs"
     3774        func_verbose "Extracting $my_xabs"
    3913775        # Do not bother doing anything if just a dry run
    392         if test -z "$run"; then
     3776        $opt_dry_run || {
    3933777          darwin_orig_dir=`pwd`
    3943778          cd $my_xdir || exit $?
    3953779          darwin_archive=$my_xabs
    3963780          darwin_curdir=`pwd`
    397           darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
    398           darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
    399           if test -n "$darwin_arches"; then 
    400             darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
     3781          darwin_base_archive=`basename "$darwin_archive"`
     3782          darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
     3783          if test -n "$darwin_arches"; then
     3784            darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
    4013785            darwin_arch=
    402             $show "$darwin_base_archive has multiple architectures $darwin_arches"
     3786            func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
    4033787            for darwin_arch in  $darwin_arches ; do
    404               mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
    405               lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
     3788              func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
     3789              $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
    4063790              cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
    4073791              func_extract_an_archive "`pwd`" "${darwin_base_archive}"
    4083792              cd "$darwin_curdir"
    409               $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
     3793              $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
    4103794            done # $darwin_arches
    411       ## Okay now we have a bunch of thin objects, gotta fatten them up :)
    412             darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
     3795            ## Okay now we've a bunch of thin objects, gotta fatten them up :)
     3796            darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
    4133797            darwin_file=
    4143798            darwin_files=
    4153799            for darwin_file in $darwin_filelist; do
    416               darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
    417               lipo -create -output "$darwin_file" $darwin_files
     3800              darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
     3801              $LIPO -create -output "$darwin_file" $darwin_files
    4183802            done # $darwin_filelist
    419             ${rm}r unfat-$$
     3803            $RM -rf unfat-$$
    4203804            cd "$darwin_orig_dir"
    4213805          else
    422             cd "$darwin_orig_dir"
    423             func_extract_an_archive "$my_xdir" "$my_xabs"
     3806            cd $darwin_orig_dir
     3807            func_extract_an_archive "$my_xdir" "$my_xabs"
    4243808          fi # $darwin_arches
    425         fi # $run
     3809        } # !$opt_dry_run
    4263810        ;;
    4273811      *)
    4283812        func_extract_an_archive "$my_xdir" "$my_xabs"
    429         ;;
    430       esac
    431       my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
    432     done
    433     func_extract_archives_result="$my_oldobjs"
    434 }
    435 # End of Shell function definitions
    436 #####################################
    437 
    438 # Darwin sucks
    439 eval std_shrext=\"$shrext_cmds\"
    440 
    441 disable_libs=no
    442 
    443 # Parse our command line options once, thoroughly.
    444 while test "$#" -gt 0
    445 do
    446   arg="$1"
    447   shift
    448 
    449   case $arg in
    450   -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
    451   *) optarg= ;;
    452   esac
    453 
    454   # If the previous option needs an argument, assign it.
    455   if test -n "$prev"; then
    456     case $prev in
    457     execute_dlfiles)
    458       execute_dlfiles="$execute_dlfiles $arg"
    459       ;;
    460     tag)
    461       tagname="$arg"
    462       preserve_args="${preserve_args}=$arg"
    463 
    464       # Check whether tagname contains only valid characters
    465       case $tagname in
    466       *[!-_A-Za-z0-9,/]*)
    467         $echo "$progname: invalid tag name: $tagname" 1>&2
    468         exit $EXIT_FAILURE
    4693813        ;;
    4703814      esac
    471 
    472       case $tagname in
    473       CC)
    474         # Don't test for the "default" C tag, as we know, it's there, but
    475         # not specially marked.
    476         ;;
    477       *)
    478         if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
    479           taglist="$taglist $tagname"
    480           # Evaluate the configuration.
    481           eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
    482         else
    483           $echo "$progname: ignoring unknown tag $tagname" 1>&2
    484         fi
    485         ;;
    486       esac
     3815      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
     3816    done
     3817
     3818    func_extract_archives_result="$my_oldobjs"
     3819}
     3820
     3821
     3822# func_emit_wrapper [arg=no]
     3823#
     3824# Emit a libtool wrapper script on stdout.
     3825# Don't directly open a file because we may want to
     3826# incorporate the script contents within a cygwin/mingw
     3827# wrapper executable.  Must ONLY be called from within
     3828# func_mode_link because it depends on a number of variables
     3829# set therein.
     3830#
     3831# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
     3832# variable will take.  If 'yes', then the emitted script
     3833# will assume that the directory in which it is stored is
     3834# the $objdir directory.  This is a cygwin/mingw-specific
     3835# behavior.
     3836func_emit_wrapper ()
     3837{
     3838        func_emit_wrapper_arg1=${1-no}
     3839
     3840        $ECHO "\
     3841#! $SHELL
     3842
     3843# $output - temporary wrapper script for $objdir/$outputname
     3844# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
     3845#
     3846# The $output program cannot be directly executed until all the libtool
     3847# libraries that it depends on are installed.
     3848#
     3849# This wrapper script should never be moved out of the build directory.
     3850# If it is, it will not operate correctly.
     3851
     3852# Sed substitution that helps us do robust quoting.  It backslashifies
     3853# metacharacters that are still active within double-quoted strings.
     3854sed_quote_subst='$sed_quote_subst'
     3855
     3856# Be Bourne compatible
     3857if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
     3858  emulate sh
     3859  NULLCMD=:
     3860  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
     3861  # is contrary to our usage.  Disable this feature.
     3862  alias -g '\${1+\"\$@\"}'='\"\$@\"'
     3863  setopt NO_GLOB_SUBST
     3864else
     3865  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
     3866fi
     3867BIN_SH=xpg4; export BIN_SH # for Tru64
     3868DUALCASE=1; export DUALCASE # for MKS sh
     3869
     3870# The HP-UX ksh and POSIX shell print the target directory to stdout
     3871# if CDPATH is set.
     3872(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     3873
     3874relink_command=\"$relink_command\"
     3875
     3876# This environment variable determines our operation mode.
     3877if test \"\$libtool_install_magic\" = \"$magic\"; then
     3878  # install mode needs the following variables:
     3879  generated_by_libtool_version='$macro_version'
     3880  notinst_deplibs='$notinst_deplibs'
     3881else
     3882  # When we are sourced in execute mode, \$file and \$ECHO are already set.
     3883  if test \"\$libtool_execute_magic\" != \"$magic\"; then
     3884    file=\"\$0\""
     3885
     3886    qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
     3887    $ECHO "\
     3888
     3889# A function that is used when there is no print builtin or printf.
     3890func_fallback_echo ()
     3891{
     3892  eval 'cat <<_LTECHO_EOF
     3893\$1
     3894_LTECHO_EOF'
     3895}
     3896    ECHO=\"$qECHO\"
     3897  fi
     3898
     3899# Very basic option parsing. These options are (a) specific to
     3900# the libtool wrapper, (b) are identical between the wrapper
     3901# /script/ and the wrapper /executable/ which is used only on
     3902# windows platforms, and (c) all begin with the string "--lt-"
     3903# (application programs are unlikely to have options which match
     3904# this pattern).
     3905#
     3906# There are only two supported options: --lt-debug and
     3907# --lt-dump-script. There is, deliberately, no --lt-help.
     3908#
     3909# The first argument to this parsing function should be the
     3910# script's $0 value, followed by "$@".
     3911lt_option_debug=
     3912func_parse_lt_options ()
     3913{
     3914  lt_script_arg0=\$0
     3915  shift
     3916  for lt_opt
     3917  do
     3918    case \"\$lt_opt\" in
     3919    --lt-debug) lt_option_debug=1 ;;
     3920    --lt-dump-script)
     3921        lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
     3922        test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
     3923        lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
     3924        cat \"\$lt_dump_D/\$lt_dump_F\"
     3925        exit 0
    4873926      ;;
    488     *)
    489       eval "$prev=\$arg"
     3927    --lt-*)
     3928        \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
     3929        exit 1
    4903930      ;;
    4913931    esac
    492 
    493     prev=
    494     prevopt=
    495     continue
     3932  done
     3933
     3934  # Print the debug banner immediately:
     3935  if test -n \"\$lt_option_debug\"; then
     3936    echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
    4963937  fi
    497 
    498   # Have we seen a non-optional argument yet?
    499   case $arg in
    500   --help)
    501     show_help=yes
     3938}
     3939
     3940# Used when --lt-debug. Prints its arguments to stdout
     3941# (redirection is the responsibility of the caller)
     3942func_lt_dump_args ()
     3943{
     3944  lt_dump_args_N=1;
     3945  for lt_arg
     3946  do
     3947    \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
     3948    lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
     3949  done
     3950}
     3951
     3952# Core function for launching the target application
     3953func_exec_program_core ()
     3954{
     3955"
     3956  case $host in
     3957  # Backslashes separate directories on plain windows
     3958  *-*-mingw | *-*-os2* | *-cegcc*)
     3959    $ECHO "\
     3960      if test -n \"\$lt_option_debug\"; then
     3961        \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
     3962        func_lt_dump_args \${1+\"\$@\"} 1>&2
     3963      fi
     3964      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
     3965"
    5023966    ;;
    5033967
    504   --version)
    505     $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
    506     $echo
    507     $echo "Copyright (C) 2005  Free Software Foundation, Inc."
    508     $echo "This is free software; see the source for copying conditions.  There is NO"
    509     $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    510     exit $?
    511     ;;
    512 
    513   --config)
    514     ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
    515     # Now print the configurations for the tags.
    516     for tagname in $taglist; do
    517       ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
    518     done
    519     exit $?
    520     ;;
    521 
    522   --debug)
    523     $echo "$progname: enabling shell trace mode"
    524     set -x
    525     preserve_args="$preserve_args $arg"
    526     ;;
    527 
    528   --dry-run | -n)
    529     run=:
    530     ;;
    531 
    532   --features)
    533     $echo "host: $host"
    534     if test "$build_libtool_libs" = yes; then
    535       $echo "enable shared libraries"
    536     else
    537       $echo "disable shared libraries"
    538     fi
    539     if test "$build_old_libs" = yes; then
    540       $echo "enable static libraries"
    541     else
    542       $echo "disable static libraries"
    543     fi
    544     exit $?
    545     ;;
    546 
    547   --finish) mode="finish" ;;
    548 
    549   --mode) prevopt="--mode" prev=mode ;;
    550   --mode=*) mode="$optarg" ;;
    551 
    552   --preserve-dup-deps) duplicate_deps="yes" ;;
    553 
    554   --quiet | --silent)
    555     show=:
    556     preserve_args="$preserve_args $arg"
    557     ;;
    558 
    559   --tag)
    560     prevopt="--tag"
    561     prev=tag
    562     preserve_args="$preserve_args --tag"
    563     ;;
    564   --tag=*)
    565     set tag "$optarg" ${1+"$@"}
    566     shift
    567     prev=tag
    568     preserve_args="$preserve_args --tag"
    569     ;;
    570 
    571   -dlopen)
    572     prevopt="-dlopen"
    573     prev=execute_dlfiles
    574     ;;
    575 
    576   -*)
    577     $echo "$modename: unrecognized option \`$arg'" 1>&2
    578     $echo "$help" 1>&2
    579     exit $EXIT_FAILURE
    580     ;;
    581 
    5823968  *)
    583     nonopt="$arg"
    584     break
     3969    $ECHO "\
     3970      if test -n \"\$lt_option_debug\"; then
     3971        \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
     3972        func_lt_dump_args \${1+\"\$@\"} 1>&2
     3973      fi
     3974      exec \"\$progdir/\$program\" \${1+\"\$@\"}
     3975"
    5853976    ;;
    5863977  esac
    587 done
    588 
    589 if test -n "$prevopt"; then
    590   $echo "$modename: option \`$prevopt' requires an argument" 1>&2
    591   $echo "$help" 1>&2
    592   exit $EXIT_FAILURE
    593 fi
    594 
    595 case $disable_libs in
    596 no)
    597   ;;
    598 shared)
    599   build_libtool_libs=no
    600   build_old_libs=yes
    601   ;;
    602 static)
    603   build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
    604   ;;
    605 esac
    606 
    607 # If this variable is set in any of the actions, the command in it
    608 # will be execed at the end.  This prevents here-documents from being
    609 # left over by shells.
    610 exec_cmd=
    611 
    612 if test -z "$show_help"; then
    613 
    614   # Infer the operation mode.
    615   if test -z "$mode"; then
    616     $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
    617     $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
    618     case $nonopt in
    619     *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
    620       mode=link
    621       for arg
    622       do
    623         case $arg in
    624         -c)
    625            mode=compile
    626            break
    627            ;;
    628         esac
    629       done
    630       ;;
    631     *db | *dbx | *strace | *truss)
    632       mode=execute
    633       ;;
    634     *install*|cp|mv)
    635       mode=install
    636       ;;
    637     *rm)
    638       mode=uninstall
    639       ;;
    640     *)
    641       # If we have no mode, but dlfiles were specified, then do execute mode.
    642       test -n "$execute_dlfiles" && mode=execute
    643 
    644       # Just use the default operation mode.
    645       if test -z "$mode"; then
    646         if test -n "$nonopt"; then
    647           $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
    648         else
    649           $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
    650         fi
    651       fi
    652       ;;
     3978  $ECHO "\
     3979      \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
     3980      exit 1
     3981}
     3982
     3983# A function to encapsulate launching the target application
     3984# Strips options in the --lt-* namespace from \$@ and
     3985# launches target application with the remaining arguments.
     3986func_exec_program ()
     3987{
     3988  case \" \$* \" in
     3989  *\\ --lt-*)
     3990    for lt_wr_arg
     3991    do
     3992      case \$lt_wr_arg in
     3993      --lt-*) ;;
     3994      *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
     3995      esac
     3996      shift
     3997    done ;;
     3998  esac
     3999  func_exec_program_core \${1+\"\$@\"}
     4000}
     4001
     4002  # Parse options
     4003  func_parse_lt_options \"\$0\" \${1+\"\$@\"}
     4004
     4005  # Find the directory that this script lives in.
     4006  thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
     4007  test \"x\$thisdir\" = \"x\$file\" && thisdir=.
     4008
     4009  # Follow symbolic links until we get to the real thisdir.
     4010  file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
     4011  while test -n \"\$file\"; do
     4012    destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
     4013
     4014    # If there was a directory component, then change thisdir.
     4015    if test \"x\$destdir\" != \"x\$file\"; then
     4016      case \"\$destdir\" in
     4017      [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
     4018      *) thisdir=\"\$thisdir/\$destdir\" ;;
     4019      esac
     4020    fi
     4021
     4022    file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
     4023    file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
     4024  done
     4025
     4026  # Usually 'no', except on cygwin/mingw when embedded into
     4027  # the cwrapper.
     4028  WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
     4029  if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
     4030    # special case for '.'
     4031    if test \"\$thisdir\" = \".\"; then
     4032      thisdir=\`pwd\`
     4033    fi
     4034    # remove .libs from thisdir
     4035    case \"\$thisdir\" in
     4036    *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
     4037    $objdir )   thisdir=. ;;
    6534038    esac
    6544039  fi
    6554040
    656   # Only execute mode is allowed to have -dlopen flags.
    657   if test -n "$execute_dlfiles" && test "$mode" != execute; then
    658     $echo "$modename: unrecognized option \`-dlopen'" 1>&2
    659     $echo "$help" 1>&2
    660     exit $EXIT_FAILURE
     4041  # Try to get the absolute directory name.
     4042  absdir=\`cd \"\$thisdir\" && pwd\`
     4043  test -n \"\$absdir\" && thisdir=\"\$absdir\"
     4044"
     4045
     4046        if test "$fast_install" = yes; then
     4047          $ECHO "\
     4048  program=lt-'$outputname'$exeext
     4049  progdir=\"\$thisdir/$objdir\"
     4050
     4051  if test ! -f \"\$progdir/\$program\" ||
     4052     { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
     4053       test \"X\$file\" != \"X\$progdir/\$program\"; }; then
     4054
     4055    file=\"\$\$-\$program\"
     4056
     4057    if test ! -d \"\$progdir\"; then
     4058      $MKDIR \"\$progdir\"
     4059    else
     4060      $RM \"\$progdir/\$file\"
     4061    fi"
     4062
     4063          $ECHO "\
     4064
     4065    # relink executable if necessary
     4066    if test -n \"\$relink_command\"; then
     4067      if relink_command_output=\`eval \$relink_command 2>&1\`; then :
     4068      else
     4069        $ECHO \"\$relink_command_output\" >&2
     4070        $RM \"\$progdir/\$file\"
     4071        exit 1
     4072      fi
     4073    fi
     4074
     4075    $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
     4076    { $RM \"\$progdir/\$program\";
     4077      $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
     4078    $RM \"\$progdir/\$file\"
     4079  fi"
     4080        else
     4081          $ECHO "\
     4082  program='$outputname'
     4083  progdir=\"\$thisdir/$objdir\"
     4084"
     4085        fi
     4086
     4087        $ECHO "\
     4088
     4089  if test -f \"\$progdir/\$program\"; then"
     4090
     4091        # fixup the dll searchpath if we need to.
     4092        #
     4093        # Fix the DLL searchpath if we need to.  Do this before prepending
     4094        # to shlibpath, because on Windows, both are PATH and uninstalled
     4095        # libraries must come first.
     4096        if test -n "$dllsearchpath"; then
     4097          $ECHO "\
     4098    # Add the dll search path components to the executable PATH
     4099    PATH=$dllsearchpath:\$PATH
     4100"
     4101        fi
     4102
     4103        # Export our shlibpath_var if we have one.
     4104        if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
     4105          $ECHO "\
     4106    # Add our own library path to $shlibpath_var
     4107    $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
     4108
     4109    # Some systems cannot cope with colon-terminated $shlibpath_var
     4110    # The second colon is a workaround for a bug in BeOS R4 sed
     4111    $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
     4112
     4113    export $shlibpath_var
     4114"
     4115        fi
     4116
     4117        $ECHO "\
     4118    if test \"\$libtool_execute_magic\" != \"$magic\"; then
     4119      # Run the actual program with our arguments.
     4120      func_exec_program \${1+\"\$@\"}
     4121    fi
     4122  else
     4123    # The program doesn't exist.
     4124    \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
     4125    \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
     4126    \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
     4127    exit 1
    6614128  fi
    662 
    663   # Change the help message to a mode-specific one.
    664   generic_help="$help"
    665   help="Try \`$modename --help --mode=$mode' for more information."
    666 
    667   # These modes are in order of execution frequency so that they run quickly.
    668   case $mode in
    669   # libtool compile mode
    670   compile)
    671     modename="$modename: compile"
    672     # Get the compilation command and the source file.
    673     base_compile=
    674     srcfile="$nonopt"  #  always keep a non-empty value in "srcfile"
    675     suppress_opt=yes
    676     suppress_output=
    677     arg_mode=normal
    678     libobj=
    679     later=
    680 
    681     for arg
    682     do
    683       case $arg_mode in
    684       arg  )
    685         # do not "continue".  Instead, add this to base_compile
    686         lastarg="$arg"
    687         arg_mode=normal
    688         ;;
    689 
    690       target )
    691         libobj="$arg"
    692         arg_mode=normal
    693         continue
    694         ;;
    695 
    696       normal )
    697         # Accept any command-line options.
    698         case $arg in
    699         -o)
    700           if test -n "$libobj" ; then
    701             $echo "$modename: you cannot specify \`-o' more than once" 1>&2
    702             exit $EXIT_FAILURE
    703           fi
    704           arg_mode=target
    705           continue
    706           ;;
    707 
    708         -static | -prefer-pic | -prefer-non-pic)
    709           later="$later $arg"
    710           continue
    711           ;;
    712 
    713         -no-suppress)
    714           suppress_opt=no
    715           continue
    716           ;;
    717 
    718         -Xcompiler)
    719           arg_mode=arg  #  the next one goes into the "base_compile" arg list
    720           continue      #  The current "srcfile" will either be retained or
    721           ;;            #  replaced later.  I would guess that would be a bug.
    722 
    723         -Wc,*)
    724           args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
    725           lastarg=
    726           save_ifs="$IFS"; IFS=','
    727           for arg in $args; do
    728             IFS="$save_ifs"
    729 
    730             # Double-quote args containing other shell metacharacters.
    731             # Many Bourne shells cannot handle close brackets correctly
    732             # in scan sets, so we specify it separately.
    733             case $arg in
    734               *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    735               arg="\"$arg\""
    736               ;;
     4129fi\
     4130"
     4131}
     4132
     4133
     4134# func_emit_cwrapperexe_src
     4135# emit the source code for a wrapper executable on stdout
     4136# Must ONLY be called from within func_mode_link because
     4137# it depends on a number of variable set therein.
     4138func_emit_cwrapperexe_src ()
     4139{
     4140        cat <<EOF
     4141
     4142/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
     4143   Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
     4144
     4145   The $output program cannot be directly executed until all the libtool
     4146   libraries that it depends on are installed.
     4147
     4148   This wrapper executable should never be moved out of the build directory.
     4149   If it is, it will not operate correctly.
     4150*/
     4151EOF
     4152            cat <<"EOF"
     4153#ifdef _MSC_VER
     4154# define _CRT_SECURE_NO_DEPRECATE 1
     4155#endif
     4156#include <stdio.h>
     4157#include <stdlib.h>
     4158#ifdef _MSC_VER
     4159# include <direct.h>
     4160# include <process.h>
     4161# include <io.h>
     4162#else
     4163# include <unistd.h>
     4164# include <stdint.h>
     4165# ifdef __CYGWIN__
     4166#  include <io.h>
     4167# endif
     4168#endif
     4169#include <malloc.h>
     4170#include <stdarg.h>
     4171#include <assert.h>
     4172#include <string.h>
     4173#include <ctype.h>
     4174#include <errno.h>
     4175#include <fcntl.h>
     4176#include <sys/stat.h>
     4177
     4178/* declarations of non-ANSI functions */
     4179#if defined(__MINGW32__)
     4180# ifdef __STRICT_ANSI__
     4181int _putenv (const char *);
     4182# endif
     4183#elif defined(__CYGWIN__)
     4184# ifdef __STRICT_ANSI__
     4185char *realpath (const char *, char *);
     4186int putenv (char *);
     4187int setenv (const char *, const char *, int);
     4188# endif
     4189/* #elif defined (other platforms) ... */
     4190#endif
     4191
     4192/* portability defines, excluding path handling macros */
     4193#if defined(_MSC_VER)
     4194# define setmode _setmode
     4195# define stat    _stat
     4196# define chmod   _chmod
     4197# define getcwd  _getcwd
     4198# define putenv  _putenv
     4199# define S_IXUSR _S_IEXEC
     4200# ifndef _INTPTR_T_DEFINED
     4201#  define _INTPTR_T_DEFINED
     4202#  define intptr_t int
     4203# endif
     4204#elif defined(__MINGW32__)
     4205# define setmode _setmode
     4206# define stat    _stat
     4207# define chmod   _chmod
     4208# define getcwd  _getcwd
     4209# define putenv  _putenv
     4210#elif defined(__CYGWIN__)
     4211# define HAVE_SETENV
     4212# define FOPEN_WB "wb"
     4213/* #elif defined (other platforms) ... */
     4214#endif
     4215
     4216#if defined(PATH_MAX)
     4217# define LT_PATHMAX PATH_MAX
     4218#elif defined(MAXPATHLEN)
     4219# define LT_PATHMAX MAXPATHLEN
     4220#else
     4221# define LT_PATHMAX 1024
     4222#endif
     4223
     4224#ifndef S_IXOTH
     4225# define S_IXOTH 0
     4226#endif
     4227#ifndef S_IXGRP
     4228# define S_IXGRP 0
     4229#endif
     4230
     4231/* path handling portability macros */
     4232#ifndef DIR_SEPARATOR
     4233# define DIR_SEPARATOR '/'
     4234# define PATH_SEPARATOR ':'
     4235#endif
     4236
     4237#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
     4238  defined (__OS2__)
     4239# define HAVE_DOS_BASED_FILE_SYSTEM
     4240# define FOPEN_WB "wb"
     4241# ifndef DIR_SEPARATOR_2
     4242#  define DIR_SEPARATOR_2 '\\'
     4243# endif
     4244# ifndef PATH_SEPARATOR_2
     4245#  define PATH_SEPARATOR_2 ';'
     4246# endif
     4247#endif
     4248
     4249#ifndef DIR_SEPARATOR_2
     4250# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
     4251#else /* DIR_SEPARATOR_2 */
     4252# define IS_DIR_SEPARATOR(ch) \
     4253        (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
     4254#endif /* DIR_SEPARATOR_2 */
     4255
     4256#ifndef PATH_SEPARATOR_2
     4257# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
     4258#else /* PATH_SEPARATOR_2 */
     4259# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
     4260#endif /* PATH_SEPARATOR_2 */
     4261
     4262#ifndef FOPEN_WB
     4263# define FOPEN_WB "w"
     4264#endif
     4265#ifndef _O_BINARY
     4266# define _O_BINARY 0
     4267#endif
     4268
     4269#define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
     4270#define XFREE(stale) do { \
     4271  if (stale) { free ((void *) stale); stale = 0; } \
     4272} while (0)
     4273
     4274#if defined(LT_DEBUGWRAPPER)
     4275static int lt_debug = 1;
     4276#else
     4277static int lt_debug = 0;
     4278#endif
     4279
     4280const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
     4281
     4282void *xmalloc (size_t num);
     4283char *xstrdup (const char *string);
     4284const char *base_name (const char *name);
     4285char *find_executable (const char *wrapper);
     4286char *chase_symlinks (const char *pathspec);
     4287int make_executable (const char *path);
     4288int check_executable (const char *path);
     4289char *strendzap (char *str, const char *pat);
     4290void lt_debugprintf (const char *file, int line, const char *fmt, ...);
     4291void lt_fatal (const char *file, int line, const char *message, ...);
     4292static const char *nonnull (const char *s);
     4293static const char *nonempty (const char *s);
     4294void lt_setenv (const char *name, const char *value);
     4295char *lt_extend_str (const char *orig_value, const char *add, int to_end);
     4296void lt_update_exe_path (const char *name, const char *value);
     4297void lt_update_lib_path (const char *name, const char *value);
     4298char **prepare_spawn (char **argv);
     4299void lt_dump_script (FILE *f);
     4300EOF
     4301
     4302            cat <<EOF
     4303volatile const char * MAGIC_EXE = "$magic_exe";
     4304const char * LIB_PATH_VARNAME = "$shlibpath_var";
     4305EOF
     4306
     4307            if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
     4308              func_to_host_path "$temp_rpath"
     4309              cat <<EOF
     4310const char * LIB_PATH_VALUE   = "$func_to_host_path_result";
     4311EOF
     4312            else
     4313              cat <<"EOF"
     4314const char * LIB_PATH_VALUE   = "";
     4315EOF
     4316            fi
     4317
     4318            if test -n "$dllsearchpath"; then
     4319              func_to_host_path "$dllsearchpath:"
     4320              cat <<EOF
     4321const char * EXE_PATH_VARNAME = "PATH";
     4322const char * EXE_PATH_VALUE   = "$func_to_host_path_result";
     4323EOF
     4324            else
     4325              cat <<"EOF"
     4326const char * EXE_PATH_VARNAME = "";
     4327const char * EXE_PATH_VALUE   = "";
     4328EOF
     4329            fi
     4330
     4331            if test "$fast_install" = yes; then
     4332              cat <<EOF
     4333const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
     4334EOF
     4335            else
     4336              cat <<EOF
     4337const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
     4338EOF
     4339            fi
     4340
     4341
     4342            cat <<"EOF"
     4343
     4344#define LTWRAPPER_OPTION_PREFIX         "--lt-"
     4345
     4346static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
     4347static const char *dumpscript_opt       = LTWRAPPER_OPTION_PREFIX "dump-script";
     4348static const char *debug_opt            = LTWRAPPER_OPTION_PREFIX "debug";
     4349
     4350int
     4351main (int argc, char *argv[])
     4352{
     4353  char **newargz;
     4354  int  newargc;
     4355  char *tmp_pathspec;
     4356  char *actual_cwrapper_path;
     4357  char *actual_cwrapper_name;
     4358  char *target_name;
     4359  char *lt_argv_zero;
     4360  intptr_t rval = 127;
     4361
     4362  int i;
     4363
     4364  program_name = (char *) xstrdup (base_name (argv[0]));
     4365  newargz = XMALLOC (char *, argc + 1);
     4366
     4367  /* very simple arg parsing; don't want to rely on getopt
     4368   * also, copy all non cwrapper options to newargz, except
     4369   * argz[0], which is handled differently
     4370   */
     4371  newargc=0;
     4372  for (i = 1; i < argc; i++)
     4373    {
     4374      if (strcmp (argv[i], dumpscript_opt) == 0)
     4375        {
     4376EOF
     4377            case "$host" in
     4378              *mingw* | *cygwin* )
     4379                # make stdout use "unix" line endings
     4380                echo "          setmode(1,_O_BINARY);"
     4381                ;;
     4382              esac
     4383
     4384            cat <<"EOF"
     4385          lt_dump_script (stdout);
     4386          return 0;
     4387        }
     4388      if (strcmp (argv[i], debug_opt) == 0)
     4389        {
     4390          lt_debug = 1;
     4391          continue;
     4392        }
     4393      if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
     4394        {
     4395          /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
     4396             namespace, but it is not one of the ones we know about and
     4397             have already dealt with, above (inluding dump-script), then
     4398             report an error. Otherwise, targets might begin to believe
     4399             they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
     4400             namespace. The first time any user complains about this, we'll
     4401             need to make LTWRAPPER_OPTION_PREFIX a configure-time option
     4402             or a configure.ac-settable value.
     4403           */
     4404          lt_fatal (__FILE__, __LINE__,
     4405                    "unrecognized %s option: '%s'",
     4406                    ltwrapper_option_prefix, argv[i]);
     4407        }
     4408      /* otherwise ... */
     4409      newargz[++newargc] = xstrdup (argv[i]);
     4410    }
     4411  newargz[++newargc] = NULL;
     4412
     4413EOF
     4414            cat <<EOF
     4415  /* The GNU banner must be the first non-error debug message */
     4416  lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
     4417EOF
     4418            cat <<"EOF"
     4419  lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
     4420  lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
     4421
     4422  tmp_pathspec = find_executable (argv[0]);
     4423  if (tmp_pathspec == NULL)
     4424    lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
     4425  lt_debugprintf (__FILE__, __LINE__,
     4426                  "(main) found exe (before symlink chase) at: %s\n",
     4427                  tmp_pathspec);
     4428
     4429  actual_cwrapper_path = chase_symlinks (tmp_pathspec);
     4430  lt_debugprintf (__FILE__, __LINE__,
     4431                  "(main) found exe (after symlink chase) at: %s\n",
     4432                  actual_cwrapper_path);
     4433  XFREE (tmp_pathspec);
     4434
     4435  actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
     4436  strendzap (actual_cwrapper_path, actual_cwrapper_name);
     4437
     4438  /* wrapper name transforms */
     4439  strendzap (actual_cwrapper_name, ".exe");
     4440  tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
     4441  XFREE (actual_cwrapper_name);
     4442  actual_cwrapper_name = tmp_pathspec;
     4443  tmp_pathspec = 0;
     4444
     4445  /* target_name transforms -- use actual target program name; might have lt- prefix */
     4446  target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
     4447  strendzap (target_name, ".exe");
     4448  tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
     4449  XFREE (target_name);
     4450  target_name = tmp_pathspec;
     4451  tmp_pathspec = 0;
     4452
     4453  lt_debugprintf (__FILE__, __LINE__,
     4454                  "(main) libtool target name: %s\n",
     4455                  target_name);
     4456EOF
     4457
     4458            cat <<EOF
     4459  newargz[0] =
     4460    XMALLOC (char, (strlen (actual_cwrapper_path) +
     4461                    strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
     4462  strcpy (newargz[0], actual_cwrapper_path);
     4463  strcat (newargz[0], "$objdir");
     4464  strcat (newargz[0], "/");
     4465EOF
     4466
     4467            cat <<"EOF"
     4468  /* stop here, and copy so we don't have to do this twice */
     4469  tmp_pathspec = xstrdup (newargz[0]);
     4470
     4471  /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
     4472  strcat (newargz[0], actual_cwrapper_name);
     4473
     4474  /* DO want the lt- prefix here if it exists, so use target_name */
     4475  lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
     4476  XFREE (tmp_pathspec);
     4477  tmp_pathspec = NULL;
     4478EOF
     4479
     4480            case $host_os in
     4481              mingw*)
     4482            cat <<"EOF"
     4483  {
     4484    char* p;
     4485    while ((p = strchr (newargz[0], '\\')) != NULL)
     4486      {
     4487        *p = '/';
     4488      }
     4489    while ((p = strchr (lt_argv_zero, '\\')) != NULL)
     4490      {
     4491        *p = '/';
     4492      }
     4493  }
     4494EOF
     4495            ;;
    7374496            esac
    738             lastarg="$lastarg $arg"
    739           done
    740           IFS="$save_ifs"
    741           lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
    742 
    743           # Add the arguments to base_compile.
    744           base_compile="$base_compile $lastarg"
    745           continue
    746           ;;
    747 
    748         * )
    749           # Accept the current argument as the source file.
    750           # The previous "srcfile" becomes the current argument.
    751           #
    752           lastarg="$srcfile"
    753           srcfile="$arg"
    754           ;;
    755         esac  #  case $arg
    756         ;;
    757       esac    #  case $arg_mode
    758 
    759       # Aesthetically quote the previous argument.
    760       lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
    761 
    762       case $lastarg in
    763       # Double-quote args containing other shell metacharacters.
    764       # Many Bourne shells cannot handle close brackets correctly
    765       # in scan sets, and some SunOS ksh mistreat backslash-escaping
    766       # in scan sets (worked around with variable expansion),
    767       # and furthermore cannot handle '|' '&' '(' ')' in scan sets
    768       # at all, so we specify them separately.
    769       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    770         lastarg="\"$lastarg\""
    771         ;;
    772       esac
    773 
    774       base_compile="$base_compile $lastarg"
    775     done # for arg
    776 
    777     case $arg_mode in
    778     arg)
    779       $echo "$modename: you must specify an argument for -Xcompile"
    780       exit $EXIT_FAILURE
    781       ;;
    782     target)
    783       $echo "$modename: you must specify a target with \`-o'" 1>&2
    784       exit $EXIT_FAILURE
    785       ;;
    786     *)
    787       # Get the name of the library object.
    788       [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
    789       ;;
     4497
     4498            cat <<"EOF"
     4499  XFREE (target_name);
     4500  XFREE (actual_cwrapper_path);
     4501  XFREE (actual_cwrapper_name);
     4502
     4503  lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
     4504  lt_setenv ("DUALCASE", "1");  /* for MSK sh */
     4505  /* Update the DLL searchpath.  EXE_PATH_VALUE ($dllsearchpath) must
     4506     be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
     4507     because on Windows, both *_VARNAMEs are PATH but uninstalled
     4508     libraries must come first. */
     4509  lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
     4510  lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
     4511
     4512  lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
     4513                  nonnull (lt_argv_zero));
     4514  for (i = 0; i < newargc; i++)
     4515    {
     4516      lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
     4517                      i, nonnull (newargz[i]));
     4518    }
     4519
     4520EOF
     4521
     4522            case $host_os in
     4523              mingw*)
     4524                cat <<"EOF"
     4525  /* execv doesn't actually work on mingw as expected on unix */
     4526  newargz = prepare_spawn (newargz);
     4527  rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
     4528  if (rval == -1)
     4529    {
     4530      /* failed to start process */
     4531      lt_debugprintf (__FILE__, __LINE__,
     4532                      "(main) failed to launch target \"%s\": %s\n",
     4533                      lt_argv_zero, nonnull (strerror (errno)));
     4534      return 127;
     4535    }
     4536  return rval;
     4537EOF
     4538                ;;
     4539              *)
     4540                cat <<"EOF"
     4541  execv (lt_argv_zero, newargz);
     4542  return rval; /* =127, but avoids unused variable warning */
     4543EOF
     4544                ;;
     4545            esac
     4546
     4547            cat <<"EOF"
     4548}
     4549
     4550void *
     4551xmalloc (size_t num)
     4552{
     4553  void *p = (void *) malloc (num);
     4554  if (!p)
     4555    lt_fatal (__FILE__, __LINE__, "memory exhausted");
     4556
     4557  return p;
     4558}
     4559
     4560char *
     4561xstrdup (const char *string)
     4562{
     4563  return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
     4564                          string) : NULL;
     4565}
     4566
     4567const char *
     4568base_name (const char *name)
     4569{
     4570  const char *base;
     4571
     4572#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
     4573  /* Skip over the disk name in MSDOS pathnames. */
     4574  if (isalpha ((unsigned char) name[0]) && name[1] == ':')
     4575    name += 2;
     4576#endif
     4577
     4578  for (base = name; *name; name++)
     4579    if (IS_DIR_SEPARATOR (*name))
     4580      base = name + 1;
     4581  return base;
     4582}
     4583
     4584int
     4585check_executable (const char *path)
     4586{
     4587  struct stat st;
     4588
     4589  lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
     4590                  nonempty (path));
     4591  if ((!path) || (!*path))
     4592    return 0;
     4593
     4594  if ((stat (path, &st) >= 0)
     4595      && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
     4596    return 1;
     4597  else
     4598    return 0;
     4599}
     4600
     4601int
     4602make_executable (const char *path)
     4603{
     4604  int rval = 0;
     4605  struct stat st;
     4606
     4607  lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
     4608                  nonempty (path));
     4609  if ((!path) || (!*path))
     4610    return 0;
     4611
     4612  if (stat (path, &st) >= 0)
     4613    {
     4614      rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
     4615    }
     4616  return rval;
     4617}
     4618
     4619/* Searches for the full path of the wrapper.  Returns
     4620   newly allocated full path name if found, NULL otherwise
     4621   Does not chase symlinks, even on platforms that support them.
     4622*/
     4623char *
     4624find_executable (const char *wrapper)
     4625{
     4626  int has_slash = 0;
     4627  const char *p;
     4628  const char *p_next;
     4629  /* static buffer for getcwd */
     4630  char tmp[LT_PATHMAX + 1];
     4631  int tmp_len;
     4632  char *concat_name;
     4633
     4634  lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
     4635                  nonempty (wrapper));
     4636
     4637  if ((wrapper == NULL) || (*wrapper == '\0'))
     4638    return NULL;
     4639
     4640  /* Absolute path? */
     4641#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
     4642  if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
     4643    {
     4644      concat_name = xstrdup (wrapper);
     4645      if (check_executable (concat_name))
     4646        return concat_name;
     4647      XFREE (concat_name);
     4648    }
     4649  else
     4650    {
     4651#endif
     4652      if (IS_DIR_SEPARATOR (wrapper[0]))
     4653        {
     4654          concat_name = xstrdup (wrapper);
     4655          if (check_executable (concat_name))
     4656            return concat_name;
     4657          XFREE (concat_name);
     4658        }
     4659#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
     4660    }
     4661#endif
     4662
     4663  for (p = wrapper; *p; p++)
     4664    if (*p == '/')
     4665      {
     4666        has_slash = 1;
     4667        break;
     4668      }
     4669  if (!has_slash)
     4670    {
     4671      /* no slashes; search PATH */
     4672      const char *path = getenv ("PATH");
     4673      if (path != NULL)
     4674        {
     4675          for (p = path; *p; p = p_next)
     4676            {
     4677              const char *q;
     4678              size_t p_len;
     4679              for (q = p; *q; q++)
     4680                if (IS_PATH_SEPARATOR (*q))
     4681                  break;
     4682              p_len = q - p;
     4683              p_next = (*q == '\0' ? q : q + 1);
     4684              if (p_len == 0)
     4685                {
     4686                  /* empty path: current directory */
     4687                  if (getcwd (tmp, LT_PATHMAX) == NULL)
     4688                    lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
     4689                              nonnull (strerror (errno)));
     4690                  tmp_len = strlen (tmp);
     4691                  concat_name =
     4692                    XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
     4693                  memcpy (concat_name, tmp, tmp_len);
     4694                  concat_name[tmp_len] = '/';
     4695                  strcpy (concat_name + tmp_len + 1, wrapper);
     4696                }
     4697              else
     4698                {
     4699                  concat_name =
     4700                    XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
     4701                  memcpy (concat_name, p, p_len);
     4702                  concat_name[p_len] = '/';
     4703                  strcpy (concat_name + p_len + 1, wrapper);
     4704                }
     4705              if (check_executable (concat_name))
     4706                return concat_name;
     4707              XFREE (concat_name);
     4708            }
     4709        }
     4710      /* not found in PATH; assume curdir */
     4711    }
     4712  /* Relative path | not found in path: prepend cwd */
     4713  if (getcwd (tmp, LT_PATHMAX) == NULL)
     4714    lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
     4715              nonnull (strerror (errno)));
     4716  tmp_len = strlen (tmp);
     4717  concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
     4718  memcpy (concat_name, tmp, tmp_len);
     4719  concat_name[tmp_len] = '/';
     4720  strcpy (concat_name + tmp_len + 1, wrapper);
     4721
     4722  if (check_executable (concat_name))
     4723    return concat_name;
     4724  XFREE (concat_name);
     4725  return NULL;
     4726}
     4727
     4728char *
     4729chase_symlinks (const char *pathspec)
     4730{
     4731#ifndef S_ISLNK
     4732  return xstrdup (pathspec);
     4733#else
     4734  char buf[LT_PATHMAX];
     4735  struct stat s;
     4736  char *tmp_pathspec = xstrdup (pathspec);
     4737  char *p;
     4738  int has_symlinks = 0;
     4739  while (strlen (tmp_pathspec) && !has_symlinks)
     4740    {
     4741      lt_debugprintf (__FILE__, __LINE__,
     4742                      "checking path component for symlinks: %s\n",
     4743                      tmp_pathspec);
     4744      if (lstat (tmp_pathspec, &s) == 0)
     4745        {
     4746          if (S_ISLNK (s.st_mode) != 0)
     4747            {
     4748              has_symlinks = 1;
     4749              break;
     4750            }
     4751
     4752          /* search backwards for last DIR_SEPARATOR */
     4753          p = tmp_pathspec + strlen (tmp_pathspec) - 1;
     4754          while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
     4755            p--;
     4756          if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
     4757            {
     4758              /* no more DIR_SEPARATORS left */
     4759              break;
     4760            }
     4761          *p = '\0';
     4762        }
     4763      else
     4764        {
     4765          lt_fatal (__FILE__, __LINE__,
     4766                    "error accessing file \"%s\": %s",
     4767                    tmp_pathspec, nonnull (strerror (errno)));
     4768        }
     4769    }
     4770  XFREE (tmp_pathspec);
     4771
     4772  if (!has_symlinks)
     4773    {
     4774      return xstrdup (pathspec);
     4775    }
     4776
     4777  tmp_pathspec = realpath (pathspec, buf);
     4778  if (tmp_pathspec == 0)
     4779    {
     4780      lt_fatal (__FILE__, __LINE__,
     4781                "could not follow symlinks for %s", pathspec);
     4782    }
     4783  return xstrdup (tmp_pathspec);
     4784#endif
     4785}
     4786
     4787char *
     4788strendzap (char *str, const char *pat)
     4789{
     4790  size_t len, patlen;
     4791
     4792  assert (str != NULL);
     4793  assert (pat != NULL);
     4794
     4795  len = strlen (str);
     4796  patlen = strlen (pat);
     4797
     4798  if (patlen <= len)
     4799    {
     4800      str += len - patlen;
     4801      if (strcmp (str, pat) == 0)
     4802        *str = '\0';
     4803    }
     4804  return str;
     4805}
     4806
     4807void
     4808lt_debugprintf (const char *file, int line, const char *fmt, ...)
     4809{
     4810  va_list args;
     4811  if (lt_debug)
     4812    {
     4813      (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
     4814      va_start (args, fmt);
     4815      (void) vfprintf (stderr, fmt, args);
     4816      va_end (args);
     4817    }
     4818}
     4819
     4820static void
     4821lt_error_core (int exit_status, const char *file,
     4822               int line, const char *mode,
     4823               const char *message, va_list ap)
     4824{
     4825  fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
     4826  vfprintf (stderr, message, ap);
     4827  fprintf (stderr, ".\n");
     4828
     4829  if (exit_status >= 0)
     4830    exit (exit_status);
     4831}
     4832
     4833void
     4834lt_fatal (const char *file, int line, const char *message, ...)
     4835{
     4836  va_list ap;
     4837  va_start (ap, message);
     4838  lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
     4839  va_end (ap);
     4840}
     4841
     4842static const char *
     4843nonnull (const char *s)
     4844{
     4845  return s ? s : "(null)";
     4846}
     4847
     4848static const char *
     4849nonempty (const char *s)
     4850{
     4851  return (s && !*s) ? "(empty)" : nonnull (s);
     4852}
     4853
     4854void
     4855lt_setenv (const char *name, const char *value)
     4856{
     4857  lt_debugprintf (__FILE__, __LINE__,
     4858                  "(lt_setenv) setting '%s' to '%s'\n",
     4859                  nonnull (name), nonnull (value));
     4860  {
     4861#ifdef HAVE_SETENV
     4862    /* always make a copy, for consistency with !HAVE_SETENV */
     4863    char *str = xstrdup (value);
     4864    setenv (name, str, 1);
     4865#else
     4866    int len = strlen (name) + 1 + strlen (value) + 1;
     4867    char *str = XMALLOC (char, len);
     4868    sprintf (str, "%s=%s", name, value);
     4869    if (putenv (str) != EXIT_SUCCESS)
     4870      {
     4871        XFREE (str);
     4872      }
     4873#endif
     4874  }
     4875}
     4876
     4877char *
     4878lt_extend_str (const char *orig_value, const char *add, int to_end)
     4879{
     4880  char *new_value;
     4881  if (orig_value && *orig_value)
     4882    {
     4883      int orig_value_len = strlen (orig_value);
     4884      int add_len = strlen (add);
     4885      new_value = XMALLOC (char, add_len + orig_value_len + 1);
     4886      if (to_end)
     4887        {
     4888          strcpy (new_value, orig_value);
     4889          strcpy (new_value + orig_value_len, add);
     4890        }
     4891      else
     4892        {
     4893          strcpy (new_value, add);
     4894          strcpy (new_value + add_len, orig_value);
     4895        }
     4896    }
     4897  else
     4898    {
     4899      new_value = xstrdup (add);
     4900    }
     4901  return new_value;
     4902}
     4903
     4904void
     4905lt_update_exe_path (const char *name, const char *value)
     4906{
     4907  lt_debugprintf (__FILE__, __LINE__,
     4908                  "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
     4909                  nonnull (name), nonnull (value));
     4910
     4911  if (name && *name && value && *value)
     4912    {
     4913      char *new_value = lt_extend_str (getenv (name), value, 0);
     4914      /* some systems can't cope with a ':'-terminated path #' */
     4915      int len = strlen (new_value);
     4916      while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
     4917        {
     4918          new_value[len-1] = '\0';
     4919        }
     4920      lt_setenv (name, new_value);
     4921      XFREE (new_value);
     4922    }
     4923}
     4924
     4925void
     4926lt_update_lib_path (const char *name, const char *value)
     4927{
     4928  lt_debugprintf (__FILE__, __LINE__,
     4929                  "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
     4930                  nonnull (name), nonnull (value));
     4931
     4932  if (name && *name && value && *value)
     4933    {
     4934      char *new_value = lt_extend_str (getenv (name), value, 0);
     4935      lt_setenv (name, new_value);
     4936      XFREE (new_value);
     4937    }
     4938}
     4939
     4940EOF
     4941            case $host_os in
     4942              mingw*)
     4943                cat <<"EOF"
     4944
     4945/* Prepares an argument vector before calling spawn().
     4946   Note that spawn() does not by itself call the command interpreter
     4947     (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
     4948      ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
     4949         GetVersionEx(&v);
     4950         v.dwPlatformId == VER_PLATFORM_WIN32_NT;
     4951      }) ? "cmd.exe" : "command.com").
     4952   Instead it simply concatenates the arguments, separated by ' ', and calls
     4953   CreateProcess().  We must quote the arguments since Win32 CreateProcess()
     4954   interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
     4955   special way:
     4956   - Space and tab are interpreted as delimiters. They are not treated as
     4957     delimiters if they are surrounded by double quotes: "...".
     4958   - Unescaped double quotes are removed from the input. Their only effect is
     4959     that within double quotes, space and tab are treated like normal
     4960     characters.
     4961   - Backslashes not followed by double quotes are not special.
     4962   - But 2*n+1 backslashes followed by a double quote become
     4963     n backslashes followed by a double quote (n >= 0):
     4964       \" -> "
     4965       \\\" -> \"
     4966       \\\\\" -> \\"
     4967 */
     4968#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
     4969#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
     4970char **
     4971prepare_spawn (char **argv)
     4972{
     4973  size_t argc;
     4974  char **new_argv;
     4975  size_t i;
     4976
     4977  /* Count number of arguments.  */
     4978  for (argc = 0; argv[argc] != NULL; argc++)
     4979    ;
     4980
     4981  /* Allocate new argument vector.  */
     4982  new_argv = XMALLOC (char *, argc + 1);
     4983
     4984  /* Put quoted arguments into the new argument vector.  */
     4985  for (i = 0; i < argc; i++)
     4986    {
     4987      const char *string = argv[i];
     4988
     4989      if (string[0] == '\0')
     4990        new_argv[i] = xstrdup ("\"\"");
     4991      else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
     4992        {
     4993          int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
     4994          size_t length;
     4995          unsigned int backslashes;
     4996          const char *s;
     4997          char *quoted_string;
     4998          char *p;
     4999
     5000          length = 0;
     5001          backslashes = 0;
     5002          if (quote_around)
     5003            length++;
     5004          for (s = string; *s != '\0'; s++)
     5005            {
     5006              char c = *s;
     5007              if (c == '"')
     5008                length += backslashes + 1;
     5009              length++;
     5010              if (c == '\\')
     5011                backslashes++;
     5012              else
     5013                backslashes = 0;
     5014            }
     5015          if (quote_around)
     5016            length += backslashes + 1;
     5017
     5018          quoted_string = XMALLOC (char, length + 1);
     5019
     5020          p = quoted_string;
     5021          backslashes = 0;
     5022          if (quote_around)
     5023            *p++ = '"';
     5024          for (s = string; *s != '\0'; s++)
     5025            {
     5026              char c = *s;
     5027              if (c == '"')
     5028                {
     5029                  unsigned int j;
     5030                  for (j = backslashes + 1; j > 0; j--)
     5031                    *p++ = '\\';
     5032                }
     5033              *p++ = c;
     5034              if (c == '\\')
     5035                backslashes++;
     5036              else
     5037                backslashes = 0;
     5038            }
     5039          if (quote_around)
     5040            {
     5041              unsigned int j;
     5042              for (j = backslashes; j > 0; j--)
     5043                *p++ = '\\';
     5044              *p++ = '"';
     5045            }
     5046          *p = '\0';
     5047
     5048          new_argv[i] = quoted_string;
     5049        }
     5050      else
     5051        new_argv[i] = (char *) string;
     5052    }
     5053  new_argv[argc] = NULL;
     5054
     5055  return new_argv;
     5056}
     5057EOF
     5058                ;;
     5059            esac
     5060
     5061            cat <<"EOF"
     5062void lt_dump_script (FILE* f)
     5063{
     5064EOF
     5065            func_emit_wrapper yes |
     5066              $SED -n -e '
     5067s/^\(.\{79\}\)\(..*\)/\1\
     5068\2/
     5069h
     5070s/\([\\"]\)/\\\1/g
     5071s/$/\\n/
     5072s/\([^\n]*\).*/  fputs ("\1", f);/p
     5073g
     5074D'
     5075            cat <<"EOF"
     5076}
     5077EOF
     5078}
     5079# end: func_emit_cwrapperexe_src
     5080
     5081# func_win32_import_lib_p ARG
     5082# True if ARG is an import lib, as indicated by $file_magic_cmd
     5083func_win32_import_lib_p ()
     5084{
     5085    $opt_debug
     5086    case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
     5087    *import*) : ;;
     5088    *) false ;;
    7905089    esac
    791 
    792     # Recognize several different file suffixes.
    793     # If the user specifies -o file.o, it is replaced with file.lo
    794     xform='[cCFSifmso]'
    795     case $libobj in
    796     *.ada) xform=ada ;;
    797     *.adb) xform=adb ;;
    798     *.ads) xform=ads ;;
    799     *.asm) xform=asm ;;
    800     *.c++) xform=c++ ;;
    801     *.cc) xform=cc ;;
    802     *.ii) xform=ii ;;
    803     *.class) xform=class ;;
    804     *.cpp) xform=cpp ;;
    805     *.cxx) xform=cxx ;;
    806     *.f90) xform=f90 ;;
    807     *.for) xform=for ;;
    808     *.java) xform=java ;;
    809     esac
    810 
    811     libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
    812 
    813     case $libobj in
    814     *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
    815     *)
    816       $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
    817       exit $EXIT_FAILURE
    818       ;;
    819     esac
    820 
    821     func_infer_tag $base_compile
    822 
    823     for arg in $later; do
    824       case $arg in
    825       -static)
    826         build_old_libs=yes
    827         continue
    828         ;;
    829 
    830       -prefer-pic)
    831         pic_mode=yes
    832         continue
    833         ;;
    834 
    835       -prefer-non-pic)
    836         pic_mode=no
    837         continue
    838         ;;
    839       esac
    840     done
    841 
    842     qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
    843     case $qlibobj in
    844       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    845         qlibobj="\"$qlibobj\"" ;;
    846     esac
    847     test "X$libobj" != "X$qlibobj" \
    848         && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"'  &()|`$[]' \
    849         && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
    850     objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
    851     xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
    852     if test "X$xdir" = "X$obj"; then
    853       xdir=
    854     else
    855       xdir=$xdir/
    856     fi
    857     lobj=${xdir}$objdir/$objname
    858 
    859     if test -z "$base_compile"; then
    860       $echo "$modename: you must specify a compilation command" 1>&2
    861       $echo "$help" 1>&2
    862       exit $EXIT_FAILURE
    863     fi
    864 
    865     # Delete any leftover library objects.
    866     if test "$build_old_libs" = yes; then
    867       removelist="$obj $lobj $libobj ${libobj}T"
    868     else
    869       removelist="$lobj $libobj ${libobj}T"
    870     fi
    871 
    872     $run $rm $removelist
    873     trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
    874 
    875     # On Cygwin there's no "real" PIC flag so we must build both object types
    876     case $host_os in
    877     cygwin* | mingw* | pw32* | os2*)
    878       pic_mode=default
    879       ;;
    880     esac
    881     if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
    882       # non-PIC code in shared libraries is not supported
    883       pic_mode=default
    884     fi
    885 
    886     # Calculate the filename of the output object if compiler does
    887     # not support -o with -c
    888     if test "$compiler_c_o" = no; then
    889       output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
    890       lockfile="$output_obj.lock"
    891       removelist="$removelist $output_obj $lockfile"
    892       trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
    893     else
    894       output_obj=
    895       need_locks=no
    896       lockfile=
    897     fi
    898 
    899     # Lock this critical section if it is needed
    900     # We use this script file to make the link, it avoids creating a new file
    901     if test "$need_locks" = yes; then
    902       until $run ln "$srcfile" "$lockfile" 2>/dev/null; do
    903         $show "Waiting for $lockfile to be removed"
    904         sleep 2
    905       done
    906     elif test "$need_locks" = warn; then
    907       if test -f "$lockfile"; then
    908         $echo "\
    909 *** ERROR, $lockfile exists and contains:
    910 `cat $lockfile 2>/dev/null`
    911 
    912 This indicates that another process is trying to use the same
    913 temporary object file, and libtool could not work around it because
    914 your compiler does not support \`-c' and \`-o' together.  If you
    915 repeat this compilation, it may succeed, by chance, but you had better
    916 avoid parallel builds (make -j) in this platform, or get a better
    917 compiler."
    918 
    919         $run $rm $removelist
    920         exit $EXIT_FAILURE
    921       fi
    922       $echo "$srcfile" > "$lockfile"
    923     fi
    924 
    925     if test -n "$fix_srcfile_path"; then
    926       eval srcfile=\"$fix_srcfile_path\"
    927     fi
    928     qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
    929     case $qsrcfile in
    930       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    931       qsrcfile="\"$qsrcfile\"" ;;
    932     esac
    933 
    934     $run $rm "$libobj" "${libobj}T"
    935 
    936     # Create a libtool object file (analogous to a ".la" file),
    937     # but don't create it if we're doing a dry run.
    938     test -z "$run" && cat > ${libobj}T <<EOF
    939 # $libobj - a libtool object file
    940 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
    941 #
    942 # Please DO NOT delete this file!
    943 # It is necessary for linking the library.
    944 
    945 # Name of the PIC object.
    946 EOF
    947 
    948     # Only build a PIC object if we are building libtool libraries.
    949     if test "$build_libtool_libs" = yes; then
    950       # Without this assignment, base_compile gets emptied.
    951       fbsd_hideous_sh_bug=$base_compile
    952 
    953       if test "$pic_mode" != no; then
    954         command="$base_compile $qsrcfile $pic_flag"
    955       else
    956         # Don't build PIC code
    957         command="$base_compile $qsrcfile"
    958       fi
    959 
    960       if test ! -d "${xdir}$objdir"; then
    961         $show "$mkdir ${xdir}$objdir"
    962         $run $mkdir ${xdir}$objdir
    963         exit_status=$?
    964         if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
    965           exit $exit_status
    966         fi
    967       fi
    968 
    969       if test -z "$output_obj"; then
    970         # Place PIC objects in $objdir
    971         command="$command -o $lobj"
    972       fi
    973 
    974       $run $rm "$lobj" "$output_obj"
    975 
    976       $show "$command"
    977       if $run eval "$command"; then :
    978       else
    979         test -n "$output_obj" && $run $rm $removelist
    980         exit $EXIT_FAILURE
    981       fi
    982 
    983       if test "$need_locks" = warn &&
    984          test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
    985         $echo "\
    986 *** ERROR, $lockfile contains:
    987 `cat $lockfile 2>/dev/null`
    988 
    989 but it should contain:
    990 $srcfile
    991 
    992 This indicates that another process is trying to use the same
    993 temporary object file, and libtool could not work around it because
    994 your compiler does not support \`-c' and \`-o' together.  If you
    995 repeat this compilation, it may succeed, by chance, but you had better
    996 avoid parallel builds (make -j) in this platform, or get a better
    997 compiler."
    998 
    999         $run $rm $removelist
    1000         exit $EXIT_FAILURE
    1001       fi
    1002 
    1003       # Just move the object if needed, then go on to compile the next one
    1004       if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
    1005         $show "$mv $output_obj $lobj"
    1006         if $run $mv $output_obj $lobj; then :
    1007         else
    1008           error=$?
    1009           $run $rm $removelist
    1010           exit $error
    1011         fi
    1012       fi
    1013 
    1014       # Append the name of the PIC object to the libtool object file.
    1015       test -z "$run" && cat >> ${libobj}T <<EOF
    1016 pic_object='$objdir/$objname'
    1017 
    1018 EOF
    1019 
    1020       # Allow error messages only from the first compilation.
    1021       if test "$suppress_opt" = yes; then
    1022         suppress_output=' >/dev/null 2>&1'
    1023       fi
    1024     else
    1025       # No PIC object so indicate it doesn't exist in the libtool
    1026       # object file.
    1027       test -z "$run" && cat >> ${libobj}T <<EOF
    1028 pic_object=none
    1029 
    1030 EOF
    1031     fi
    1032 
    1033     # Only build a position-dependent object if we build old libraries.
    1034     if test "$build_old_libs" = yes; then
    1035       if test "$pic_mode" != yes; then
    1036         # Don't build PIC code
    1037         command="$base_compile $qsrcfile"
    1038       else
    1039         command="$base_compile $qsrcfile $pic_flag"
    1040       fi
    1041       if test "$compiler_c_o" = yes; then
    1042         command="$command -o $obj"
    1043       fi
    1044 
    1045       # Suppress compiler output if we already did a PIC compilation.
    1046       command="$command$suppress_output"
    1047       $run $rm "$obj" "$output_obj"
    1048       $show "$command"
    1049       if $run eval "$command"; then :
    1050       else
    1051         $run $rm $removelist
    1052         exit $EXIT_FAILURE
    1053       fi
    1054 
    1055       if test "$need_locks" = warn &&
    1056          test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
    1057         $echo "\
    1058 *** ERROR, $lockfile contains:
    1059 `cat $lockfile 2>/dev/null`
    1060 
    1061 but it should contain:
    1062 $srcfile
    1063 
    1064 This indicates that another process is trying to use the same
    1065 temporary object file, and libtool could not work around it because
    1066 your compiler does not support \`-c' and \`-o' together.  If you
    1067 repeat this compilation, it may succeed, by chance, but you had better
    1068 avoid parallel builds (make -j) in this platform, or get a better
    1069 compiler."
    1070 
    1071         $run $rm $removelist
    1072         exit $EXIT_FAILURE
    1073       fi
    1074 
    1075       # Just move the object if needed
    1076       if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
    1077         $show "$mv $output_obj $obj"
    1078         if $run $mv $output_obj $obj; then :
    1079         else
    1080           error=$?
    1081           $run $rm $removelist
    1082           exit $error
    1083         fi
    1084       fi
    1085 
    1086       # Append the name of the non-PIC object the libtool object file.
    1087       # Only append if the libtool object file exists.
    1088       test -z "$run" && cat >> ${libobj}T <<EOF
    1089 # Name of the non-PIC object.
    1090 non_pic_object='$objname'
    1091 
    1092 EOF
    1093     else
    1094       # Append the name of the non-PIC object the libtool object file.
    1095       # Only append if the libtool object file exists.
    1096       test -z "$run" && cat >> ${libobj}T <<EOF
    1097 # Name of the non-PIC object.
    1098 non_pic_object=none
    1099 
    1100 EOF
    1101     fi
    1102 
    1103     $run $mv "${libobj}T" "${libobj}"
    1104 
    1105     # Unlock the critical section if it was locked
    1106     if test "$need_locks" != no; then
    1107       $run $rm "$lockfile"
    1108     fi
    1109 
    1110     exit $EXIT_SUCCESS
    1111     ;;
    1112 
    1113   # libtool link mode
    1114   link | relink)
    1115     modename="$modename: link"
     5090}
     5091
     5092# func_mode_link arg...
     5093func_mode_link ()
     5094{
     5095    $opt_debug
    11165096    case $host in
    1117     *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
     5097    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
    11185098      # It is impossible to link a dll without this setting, and
    11195099      # we shouldn't force the makefile maintainer to figure out
     
    11335113      ;;
    11345114    esac
    1135     libtool_args="$nonopt"
     5115    libtool_args=$nonopt
    11365116    base_compile="$nonopt $@"
    1137     compile_command="$nonopt"
    1138     finalize_command="$nonopt"
     5117    compile_command=$nonopt
     5118    finalize_command=$nonopt
    11395119
    11405120    compile_rpath=
     
    11515131    lib_search_path=`pwd`
    11525132    inst_prefix_dir=
     5133    new_inherited_linker_flags=
    11535134
    11545135    avoid_version=no
     5136    bindir=
    11555137    dlfiles=
    11565138    dlprefiles=
     
    11665148    objs=
    11675149    non_pic_objects=
    1168     notinst_path= # paths that contain not-installed libtool libraries
    11695150    precious_files_regex=
    11705151    prefer_static_libs=no
     
    11805161    vinfo=
    11815162    vinfo_number=no
    1182 
     5163    weak_libs=
     5164    single_module="${wl}-single_module"
    11835165    func_infer_tag $base_compile
    11845166
     
    11875169    do
    11885170      case $arg in
    1189       -all-static | -static)
    1190         if test "X$arg" = "X-all-static"; then
     5171      -shared)
     5172        test "$build_libtool_libs" != yes && \
     5173          func_fatal_configuration "can not build a shared library"
     5174        build_old_libs=no
     5175        break
     5176        ;;
     5177      -all-static | -static | -static-libtool-libs)
     5178        case $arg in
     5179        -all-static)
    11915180          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
    1192             $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
     5181            func_warning "complete static linking is impossible in this configuration"
    11935182          fi
    11945183          if test -n "$link_static_flag"; then
     
    11965185          fi
    11975186          prefer_static_libs=yes
    1198         else
     5187          ;;
     5188        -static)
    11995189          if test -z "$pic_flag" && test -n "$link_static_flag"; then
    12005190            dlopen_self=$dlopen_self_static
    12015191          fi
    12025192          prefer_static_libs=built
    1203         fi
     5193          ;;
     5194        -static-libtool-libs)
     5195          if test -z "$pic_flag" && test -n "$link_static_flag"; then
     5196            dlopen_self=$dlopen_self_static
     5197          fi
     5198          prefer_static_libs=yes
     5199          ;;
     5200        esac
    12045201        build_libtool_libs=no
    12055202        build_old_libs=yes
     
    12165213      arg="$1"
    12175214      shift
    1218       case $arg in
    1219       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    1220         qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
    1221         ;;
    1222       *) qarg=$arg ;;
    1223       esac
    1224       libtool_args="$libtool_args $qarg"
     5215      func_quote_for_eval "$arg"
     5216      qarg=$func_quote_for_eval_unquoted_result
     5217      func_append libtool_args " $func_quote_for_eval_result"
    12255218
    12265219      # If the previous option needs an argument, assign it.
     
    12285221        case $prev in
    12295222        output)
    1230           compile_command="$compile_command @OUTPUT@"
    1231           finalize_command="$finalize_command @OUTPUT@"
     5223          func_append compile_command " @OUTPUT@"
     5224          func_append finalize_command " @OUTPUT@"
    12325225          ;;
    12335226        esac
    12345227
    12355228        case $prev in
     5229        bindir)
     5230          bindir="$arg"
     5231          prev=
     5232          continue
     5233          ;;
    12365234        dlfiles|dlprefiles)
    12375235          if test "$preload" = no; then
    12385236            # Add the symbol object into the linking commands.
    1239             compile_command="$compile_command @SYMFILE@"
    1240             finalize_command="$finalize_command @SYMFILE@"
     5237            func_append compile_command " @SYMFILE@"
     5238            func_append finalize_command " @SYMFILE@"
    12415239            preload=yes
    12425240          fi
     
    12655263          *)
    12665264            if test "$prev" = dlfiles; then
    1267               dlfiles="$dlfiles $arg"
     5265              func_append dlfiles " $arg"
    12685266            else
    1269               dlprefiles="$dlprefiles $arg"
     5267              func_append dlprefiles " $arg"
    12705268            fi
    12715269            prev=
     
    12765274        expsyms)
    12775275          export_symbols="$arg"
    1278           if test ! -f "$arg"; then
    1279             $echo "$modename: symbol file \`$arg' does not exist"
    1280             exit $EXIT_FAILURE
    1281           fi
     5276          test -f "$arg" \
     5277            || func_fatal_error "symbol file \`$arg' does not exist"
    12825278          prev=
    12835279          continue
     
    12885284          continue
    12895285          ;;
     5286        framework)
     5287          case $host in
     5288            *-*-darwin*)
     5289              case "$deplibs " in
     5290                *" $qarg.ltframework "*) ;;
     5291                *) func_append deplibs " $qarg.ltframework" # this is fixed later
     5292                   ;;
     5293              esac
     5294              ;;
     5295          esac
     5296          prev=
     5297          continue
     5298          ;;
    12905299        inst_prefix)
    12915300          inst_prefix_dir="$arg"
     5301          prev=
     5302          continue
     5303          ;;
     5304        objectlist)
     5305          if test -f "$arg"; then
     5306            save_arg=$arg
     5307            moreargs=
     5308            for fil in `cat "$save_arg"`
     5309            do
     5310#             func_append moreargs " $fil"
     5311              arg=$fil
     5312              # A libtool-controlled object.
     5313
     5314              # Check to see that this really is a libtool object.
     5315              if func_lalib_unsafe_p "$arg"; then
     5316                pic_object=
     5317                non_pic_object=
     5318
     5319                # Read the .lo file
     5320                func_source "$arg"
     5321
     5322                if test -z "$pic_object" ||
     5323                   test -z "$non_pic_object" ||
     5324                   test "$pic_object" = none &&
     5325                   test "$non_pic_object" = none; then
     5326                  func_fatal_error "cannot find name of object for \`$arg'"
     5327                fi
     5328
     5329                # Extract subdirectory from the argument.
     5330                func_dirname "$arg" "/" ""
     5331                xdir="$func_dirname_result"
     5332
     5333                if test "$pic_object" != none; then
     5334                  # Prepend the subdirectory the object is found in.
     5335                  pic_object="$xdir$pic_object"
     5336
     5337                  if test "$prev" = dlfiles; then
     5338                    if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
     5339                      func_append dlfiles " $pic_object"
     5340                      prev=
     5341                      continue
     5342                    else
     5343                      # If libtool objects are unsupported, then we need to preload.
     5344                      prev=dlprefiles
     5345                    fi
     5346                  fi
     5347
     5348                  # CHECK ME:  I think I busted this.  -Ossama
     5349                  if test "$prev" = dlprefiles; then
     5350                    # Preload the old-style object.
     5351                    func_append dlprefiles " $pic_object"
     5352                    prev=
     5353                  fi
     5354
     5355                  # A PIC object.
     5356                  func_append libobjs " $pic_object"
     5357                  arg="$pic_object"
     5358                fi
     5359
     5360                # Non-PIC object.
     5361                if test "$non_pic_object" != none; then
     5362                  # Prepend the subdirectory the object is found in.
     5363                  non_pic_object="$xdir$non_pic_object"
     5364
     5365                  # A standard non-PIC object
     5366                  func_append non_pic_objects " $non_pic_object"
     5367                  if test -z "$pic_object" || test "$pic_object" = none ; then
     5368                    arg="$non_pic_object"
     5369                  fi
     5370                else
     5371                  # If the PIC object exists, use it instead.
     5372                  # $xdir was prepended to $pic_object above.
     5373                  non_pic_object="$pic_object"
     5374                  func_append non_pic_objects " $non_pic_object"
     5375                fi
     5376              else
     5377                # Only an error if not doing a dry-run.
     5378                if $opt_dry_run; then
     5379                  # Extract subdirectory from the argument.
     5380                  func_dirname "$arg" "/" ""
     5381                  xdir="$func_dirname_result"
     5382
     5383                  func_lo2o "$arg"
     5384                  pic_object=$xdir$objdir/$func_lo2o_result
     5385                  non_pic_object=$xdir$func_lo2o_result
     5386                  func_append libobjs " $pic_object"
     5387                  func_append non_pic_objects " $non_pic_object"
     5388                else
     5389                  func_fatal_error "\`$arg' is not a valid libtool object"
     5390                fi
     5391              fi
     5392            done
     5393          else
     5394            func_fatal_error "link input file \`$arg' does not exist"
     5395          fi
     5396          arg=$save_arg
    12925397          prev=
    12935398          continue
     
    13035408          continue
    13045409          ;;
    1305         objectlist)
    1306           if test -f "$arg"; then
    1307             save_arg=$arg
    1308             moreargs=
    1309             for fil in `cat $save_arg`
    1310             do
    1311 #             moreargs="$moreargs $fil"
    1312               arg=$fil
    1313               # A libtool-controlled object.
    1314 
    1315               # Check to see that this really is a libtool object.
    1316               if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
    1317                 pic_object=
    1318                 non_pic_object=
    1319 
    1320                 # Read the .lo file
    1321                 # If there is no directory component, then add one.
    1322                 case $arg in
    1323                 */* | *\\*) . $arg ;;
    1324                 *) . ./$arg ;;
    1325                 esac
    1326 
    1327                 if test -z "$pic_object" || \
    1328                    test -z "$non_pic_object" ||
    1329                    test "$pic_object" = none && \
    1330                    test "$non_pic_object" = none; then
    1331                   $echo "$modename: cannot find name of object for \`$arg'" 1>&2
    1332                   exit $EXIT_FAILURE
    1333                 fi
    1334 
    1335                 # Extract subdirectory from the argument.
    1336                 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
    1337                 if test "X$xdir" = "X$arg"; then
    1338                   xdir=
    1339                 else
    1340                   xdir="$xdir/"
    1341                 fi
    1342 
    1343                 if test "$pic_object" != none; then
    1344                   # Prepend the subdirectory the object is found in.
    1345                   pic_object="$xdir$pic_object"
    1346 
    1347                   if test "$prev" = dlfiles; then
    1348                     if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
    1349                       dlfiles="$dlfiles $pic_object"
    1350                       prev=
    1351                       continue
    1352                     else
    1353                       # If libtool objects are unsupported, then we need to preload.
    1354                       prev=dlprefiles
    1355                     fi
    1356                   fi
    1357 
    1358                   # CHECK ME:  I think I busted this.  -Ossama
    1359                   if test "$prev" = dlprefiles; then
    1360                     # Preload the old-style object.
    1361                     dlprefiles="$dlprefiles $pic_object"
    1362                     prev=
    1363                   fi
    1364 
    1365                   # A PIC object.
    1366                   libobjs="$libobjs $pic_object"
    1367                   arg="$pic_object"
    1368                 fi
    1369 
    1370                 # Non-PIC object.
    1371                 if test "$non_pic_object" != none; then
    1372                   # Prepend the subdirectory the object is found in.
    1373                   non_pic_object="$xdir$non_pic_object"
    1374 
    1375                   # A standard non-PIC object
    1376                   non_pic_objects="$non_pic_objects $non_pic_object"
    1377                   if test -z "$pic_object" || test "$pic_object" = none ; then
    1378                     arg="$non_pic_object"
    1379                   fi
    1380                 else
    1381                   # If the PIC object exists, use it instead.
    1382                   # $xdir was prepended to $pic_object above.
    1383                   non_pic_object="$pic_object"
    1384                   non_pic_objects="$non_pic_objects $non_pic_object"
    1385                 fi
    1386               else
    1387                 # Only an error if not doing a dry-run.
    1388                 if test -z "$run"; then
    1389                   $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
    1390                   exit $EXIT_FAILURE
    1391                 else
    1392                   # Dry-run case.
    1393 
    1394                   # Extract subdirectory from the argument.
    1395                   xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
    1396                   if test "X$xdir" = "X$arg"; then
    1397                     xdir=
    1398                   else
    1399                     xdir="$xdir/"
    1400                   fi
    1401 
    1402                   pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
    1403                   non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
    1404                   libobjs="$libobjs $pic_object"
    1405                   non_pic_objects="$non_pic_objects $non_pic_object"
    1406                 fi
    1407               fi
    1408             done
    1409           else
    1410             $echo "$modename: link input file \`$save_arg' does not exist"
    1411             exit $EXIT_FAILURE
    1412           fi
    1413           arg=$save_arg
    1414           prev=
    1415           continue
    1416           ;;
    14175410        rpath | xrpath)
    14185411          # We need an absolute path.
     
    14205413          [\\/]* | [A-Za-z]:[\\/]*) ;;
    14215414          *)
    1422             $echo "$modename: only absolute run-paths are allowed" 1>&2
    1423             exit $EXIT_FAILURE
     5415            func_fatal_error "only absolute run-paths are allowed"
    14245416            ;;
    14255417          esac
     
    14275419            case "$rpath " in
    14285420            *" $arg "*) ;;
    1429             *) rpath="$rpath $arg" ;;
     5421            *) func_append rpath " $arg" ;;
    14305422            esac
    14315423          else
    14325424            case "$xrpath " in
    14335425            *" $arg "*) ;;
    1434             *) xrpath="$xrpath $arg" ;;
     5426            *) func_append xrpath " $arg" ;;
    14355427            esac
    14365428          fi
     
    14385430          continue
    14395431          ;;
     5432        shrext)
     5433          shrext_cmds="$arg"
     5434          prev=
     5435          continue
     5436          ;;
     5437        weak)
     5438          func_append weak_libs " $arg"
     5439          prev=
     5440          continue
     5441          ;;
     5442        xcclinker)
     5443          func_append linker_flags " $qarg"
     5444          func_append compiler_flags " $qarg"
     5445          prev=
     5446          func_append compile_command " $qarg"
     5447          func_append finalize_command " $qarg"
     5448          continue
     5449          ;;
    14405450        xcompiler)
    1441           compiler_flags="$compiler_flags $qarg"
     5451          func_append compiler_flags " $qarg"
    14425452          prev=
    1443           compile_command="$compile_command $qarg"
    1444           finalize_command="$finalize_command $qarg"
     5453          func_append compile_command " $qarg"
     5454          func_append finalize_command " $qarg"
    14455455          continue
    14465456          ;;
    14475457        xlinker)
    1448           linker_flags="$linker_flags $qarg"
    1449           compiler_flags="$compiler_flags $wl$qarg"
     5458          func_append linker_flags " $qarg"
     5459          func_append compiler_flags " $wl$qarg"
    14505460          prev=
    1451           compile_command="$compile_command $wl$qarg"
    1452           finalize_command="$finalize_command $wl$qarg"
    1453           continue
    1454           ;;
    1455         xcclinker)
    1456           linker_flags="$linker_flags $qarg"
    1457           compiler_flags="$compiler_flags $qarg"
    1458           prev=
    1459           compile_command="$compile_command $qarg"
    1460           finalize_command="$finalize_command $qarg"
    1461           continue
    1462           ;;
    1463         shrext)
    1464           shrext_cmds="$arg"
    1465           prev=
    1466           continue
    1467           ;;
    1468         darwin_framework|darwin_framework_skip)
    1469           test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
    1470           compile_command="$compile_command $arg"
    1471           finalize_command="$finalize_command $arg"
    1472           prev=
     5461          func_append compile_command " $wl$qarg"
     5462          func_append finalize_command " $wl$qarg"
    14735463          continue
    14745464          ;;
     
    14865476      -all-static)
    14875477        if test -n "$link_static_flag"; then
    1488           compile_command="$compile_command $link_static_flag"
    1489           finalize_command="$finalize_command $link_static_flag"
     5478          # See comment for -static flag below, for more details.
     5479          func_append compile_command " $link_static_flag"
     5480          func_append finalize_command " $link_static_flag"
    14905481        fi
    14915482        continue
     
    14945485      -allow-undefined)
    14955486        # FIXME: remove this flag sometime in the future.
    1496         $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
    1497         continue
     5487        func_fatal_error "\`-allow-undefined' must not be used because it is the default"
    14985488        ;;
    14995489
     
    15035493        ;;
    15045494
     5495      -bindir)
     5496        prev=bindir
     5497        continue
     5498        ;;
     5499
    15055500      -dlopen)
    15065501        prev=dlfiles
     
    15205515      -export-symbols | -export-symbols-regex)
    15215516        if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
    1522           $echo "$modename: more than one -exported-symbols argument is not allowed"
    1523           exit $EXIT_FAILURE
     5517          func_fatal_error "more than one -exported-symbols argument is not allowed"
    15245518        fi
    15255519        if test "X$arg" = "X-export-symbols"; then
     
    15315525        ;;
    15325526
    1533       -framework|-arch|-isysroot)
    1534         case " $CC " in
    1535           *" ${arg} ${1} "* | *" ${arg} ${1} "*)
    1536                 prev=darwin_framework_skip ;;
    1537           *) compiler_flags="$compiler_flags $arg"
    1538              prev=darwin_framework ;;
    1539         esac
    1540         compile_command="$compile_command $arg"
    1541         finalize_command="$finalize_command $arg"
     5527      -framework)
     5528        prev=framework
    15425529        continue
    15435530        ;;
     
    15535540        case $with_gcc/$host in
    15545541        no/*-*-irix* | /*-*-irix*)
    1555           compile_command="$compile_command $arg"
    1556           finalize_command="$finalize_command $arg"
     5542          func_append compile_command " $arg"
     5543          func_append finalize_command " $arg"
    15575544          ;;
    15585545        esac
     
    15615548
    15625549      -L*)
    1563         dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
     5550        func_stripname "-L" '' "$arg"
     5551        if test -z "$func_stripname_result"; then
     5552          if test "$#" -gt 0; then
     5553            func_fatal_error "require no space between \`-L' and \`$1'"
     5554          else
     5555            func_fatal_error "need path for \`-L' option"
     5556          fi
     5557        fi
     5558        func_resolve_sysroot "$func_stripname_result"
     5559        dir=$func_resolve_sysroot_result
    15645560        # We need an absolute path.
    15655561        case $dir in
     
    15675563        *)
    15685564          absdir=`cd "$dir" && pwd`
    1569           if test -z "$absdir"; then
    1570             $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
    1571             absdir="$dir"
    1572             notinst_path="$notinst_path $dir"
    1573           fi
     5565          test -z "$absdir" && \
     5566            func_fatal_error "cannot determine absolute directory name of \`$dir'"
    15745567          dir="$absdir"
    15755568          ;;
    15765569        esac
    15775570        case "$deplibs " in
    1578         *" -L$dir "*) ;;
     5571        *" -L$dir "* | *" $arg "*)
     5572          # Will only happen for absolute or sysroot arguments
     5573          ;;
    15795574        *)
    1580           deplibs="$deplibs -L$dir"
    1581           lib_search_path="$lib_search_path $dir"
     5575          # Preserve sysroot, but never include relative directories
     5576          case $dir in
     5577            [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
     5578            *) func_append deplibs " -L$dir" ;;
     5579          esac
     5580          func_append lib_search_path " $dir"
    15825581          ;;
    15835582        esac
    15845583        case $host in
    1585         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
    1586           testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
     5584        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
     5585          testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
    15875586          case :$dllsearchpath: in
    15885587          *":$dir:"*) ;;
    1589           *) dllsearchpath="$dllsearchpath:$dir";;
     5588          ::) dllsearchpath=$dir;;
     5589          *) func_append dllsearchpath ":$dir";;
    15905590          esac
    15915591          case :$dllsearchpath: in
    15925592          *":$testbindir:"*) ;;
    1593           *) dllsearchpath="$dllsearchpath:$testbindir";;
     5593          ::) dllsearchpath=$testbindir;;
     5594          *) func_append dllsearchpath ":$testbindir";;
    15945595          esac
    15955596          ;;
     
    16015602        if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
    16025603          case $host in
    1603           *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
     5604          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
    16045605            # These systems don't actually have a C or math library (as such)
    16055606            continue
     
    16155616          *-*-rhapsody* | *-*-darwin1.[012])
    16165617            # Rhapsody C and math libraries are in the System framework
    1617             deplibs="$deplibs -framework System"
     5618            func_append deplibs " System.ltframework"
    16185619            continue
    16195620            ;;
     
    16355636         esac
    16365637        fi
    1637         deplibs="$deplibs $arg"
    1638         continue
    1639         ;;
    1640 
    1641       # Tru64 UNIX uses -model [arg] to determine the layout of C++
    1642       # classes, name mangling, and exception handling.
    1643       -model)
    1644         compile_command="$compile_command $arg"
    1645         compiler_flags="$compiler_flags $arg"
    1646         finalize_command="$finalize_command $arg"
    1647         prev=xcompiler
    1648         continue
    1649         ;;
    1650 
    1651      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
    1652         compiler_flags="$compiler_flags $arg"
    1653         compile_command="$compile_command $arg"
    1654         finalize_command="$finalize_command $arg"
     5638        func_append deplibs " $arg"
    16555639        continue
    16565640        ;;
     
    16615645        ;;
    16625646
    1663       # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
    1664       # -r[0-9][0-9]* specifies the processor on the SGI compiler
    1665       # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
    1666       # +DA*, +DD* enable 64-bit mode on the HP compiler
    1667       # -q* pass through compiler args for the IBM compiler
    1668       # -m* pass through architecture-specific compiler args for GCC
    1669       # -m*, -t[45]*, -txscale* pass through architecture-specific
    1670       # compiler args for GCC
    1671       # -pg pass through profiling flag for GCC
    1672       # @file GCC response files
    1673       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
    1674       -t[45]*|-txscale*|@*)
    1675 
    1676         # Unknown arguments in both finalize_command and compile_command need
    1677         # to be aesthetically quoted because they are evaled later.
    1678         arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
    1679         case $arg in
    1680         *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
    1681           arg="\"$arg\""
    1682           ;;
     5647      # Tru64 UNIX uses -model [arg] to determine the layout of C++
     5648      # classes, name mangling, and exception handling.
     5649      # Darwin uses the -arch flag to determine output architecture.
     5650      -model|-arch|-isysroot|--sysroot)
     5651        func_append compiler_flags " $arg"
     5652        func_append compile_command " $arg"
     5653        func_append finalize_command " $arg"
     5654        prev=xcompiler
     5655        continue
     5656        ;;
     5657
     5658      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
     5659      |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
     5660        func_append compiler_flags " $arg"
     5661        func_append compile_command " $arg"
     5662        func_append finalize_command " $arg"
     5663        case "$new_inherited_linker_flags " in
     5664            *" $arg "*) ;;
     5665            * ) func_append new_inherited_linker_flags " $arg" ;;
    16835666        esac
    1684         compile_command="$compile_command $arg"
    1685         finalize_command="$finalize_command $arg"
    1686         compiler_flags="$compiler_flags $arg"
    1687         continue
    1688         ;;
    1689 
    1690       -shrext)
    1691         prev=shrext
     5667        continue
     5668        ;;
     5669
     5670      -multi_module)
     5671        single_module="${wl}-multi_module"
    16925672        continue
    16935673        ;;
     
    17005680      -no-install)
    17015681        case $host in
    1702         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
     5682        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
    17035683          # The PATH hackery in wrapper scripts is required on Windows
    1704           # in order for the loader to find any dlls it needs.
    1705           $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
    1706           $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
     5684          # and Darwin in order for the loader to find any dlls it needs.
     5685          func_warning "\`-no-install' is ignored for $host"
     5686          func_warning "assuming \`-no-fast-install' instead"
    17075687          fast_install=no
    17085688          ;;
     
    17455725
    17465726      -R*)
    1747         dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
     5727        func_stripname '-R' '' "$arg"
     5728        dir=$func_stripname_result
    17485729        # We need an absolute path.
    17495730        case $dir in
    17505731        [\\/]* | [A-Za-z]:[\\/]*) ;;
     5732        =*)
     5733          func_stripname '=' '' "$dir"
     5734          dir=$lt_sysroot$func_stripname_result
     5735          ;;
    17515736        *)
    1752           $echo "$modename: only absolute run-paths are allowed" 1>&2
    1753           exit $EXIT_FAILURE
     5737          func_fatal_error "only absolute run-paths are allowed"
    17545738          ;;
    17555739        esac
    17565740        case "$xrpath " in
    17575741        *" $dir "*) ;;
    1758         *) xrpath="$xrpath $dir" ;;
     5742        *) func_append xrpath " $dir" ;;
    17595743        esac
    17605744        continue
    17615745        ;;
    17625746
    1763       -static)
     5747      -shared)
     5748        # The effects of -shared are defined in a previous loop.
     5749        continue
     5750        ;;
     5751
     5752      -shrext)
     5753        prev=shrext
     5754        continue
     5755        ;;
     5756
     5757      -static | -static-libtool-libs)
    17645758        # The effects of -static are defined in a previous loop.
    17655759        # We used to do the same as -all-static on platforms that
     
    17795773        continue
    17805774        ;;
     5775
    17815776      -version-number)
    17825777        prev=vinfo
     
    17855780        ;;
    17865781
     5782      -weak)
     5783        prev=weak
     5784        continue
     5785        ;;
     5786
    17875787      -Wc,*)
    1788         args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
     5788        func_stripname '-Wc,' '' "$arg"
     5789        args=$func_stripname_result
    17895790        arg=
    17905791        save_ifs="$IFS"; IFS=','
    17915792        for flag in $args; do
    17925793          IFS="$save_ifs"
    1793           case $flag in
    1794             *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
    1795             flag="\"$flag\""
    1796             ;;
    1797           esac
    1798           arg="$arg $wl$flag"
    1799           compiler_flags="$compiler_flags $flag"
     5794          func_quote_for_eval "$flag"
     5795          func_append arg " $func_quote_for_eval_result"
     5796          func_append compiler_flags " $func_quote_for_eval_result"
    18005797        done
    18015798        IFS="$save_ifs"
    1802         arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
     5799        func_stripname ' ' '' "$arg"
     5800        arg=$func_stripname_result
    18035801        ;;
    18045802
    18055803      -Wl,*)
    1806         args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
     5804        func_stripname '-Wl,' '' "$arg"
     5805        args=$func_stripname_result
    18075806        arg=
    18085807        save_ifs="$IFS"; IFS=','
    18095808        for flag in $args; do
    18105809          IFS="$save_ifs"
    1811           case $flag in
    1812             *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
    1813             flag="\"$flag\""
    1814             ;;
    1815           esac
    1816           arg="$arg $wl$flag"
    1817           compiler_flags="$compiler_flags $wl$flag"
    1818           linker_flags="$linker_flags $flag"
     5810          func_quote_for_eval "$flag"
     5811          func_append arg " $wl$func_quote_for_eval_result"
     5812          func_append compiler_flags " $wl$func_quote_for_eval_result"
     5813          func_append linker_flags " $func_quote_for_eval_result"
    18195814        done
    18205815        IFS="$save_ifs"
    1821         arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
     5816        func_stripname ' ' '' "$arg"
     5817        arg=$func_stripname_result
    18225818        ;;
    18235819
     
    18375833        ;;
    18385834
     5835      # -msg_* for osf cc
     5836      -msg_*)
     5837        func_quote_for_eval "$arg"
     5838        arg="$func_quote_for_eval_result"
     5839        ;;
     5840
     5841      # Flags to be passed through unchanged, with rationale:
     5842      # -64, -mips[0-9]      enable 64-bit mode for the SGI compiler
     5843      # -r[0-9][0-9]*        specify processor for the SGI compiler
     5844      # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
     5845      # +DA*, +DD*           enable 64-bit mode for the HP compiler
     5846      # -q*                  compiler args for the IBM compiler
     5847      # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
     5848      # -F/path              path to uninstalled frameworks, gcc on darwin
     5849      # -p, -pg, --coverage, -fprofile-*  profiling flags for GCC
     5850      # @file                GCC response files
     5851      # -tp=*                Portland pgcc target processor selection
     5852      # --sysroot=*          for sysroot support
     5853      # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
     5854      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
     5855      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
     5856      -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
     5857        func_quote_for_eval "$arg"
     5858        arg="$func_quote_for_eval_result"
     5859        func_append compile_command " $arg"
     5860        func_append finalize_command " $arg"
     5861        func_append compiler_flags " $arg"
     5862        continue
     5863        ;;
     5864
    18395865      # Some other compiler flag.
    18405866      -* | +*)
    1841         # Unknown arguments in both finalize_command and compile_command need
    1842         # to be aesthetically quoted because they are evaled later.
    1843         arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
    1844         case $arg in
    1845         *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
    1846           arg="\"$arg\""
    1847           ;;
    1848         esac
     5867        func_quote_for_eval "$arg"
     5868        arg="$func_quote_for_eval_result"
    18495869        ;;
    18505870
    18515871      *.$objext)
    18525872        # A standard object.
    1853         objs="$objs $arg"
     5873        func_append objs " $arg"
    18545874        ;;
    18555875
     
    18585878
    18595879        # Check to see that this really is a libtool object.
    1860         if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
     5880        if func_lalib_unsafe_p "$arg"; then
    18615881          pic_object=
    18625882          non_pic_object=
    18635883
    18645884          # Read the .lo file
    1865           # If there is no directory component, then add one.
    1866           case $arg in
    1867           */* | *\\*) . $arg ;;
    1868           *) . ./$arg ;;
    1869           esac
    1870 
    1871           if test -z "$pic_object" || \
     5885          func_source "$arg"
     5886
     5887          if test -z "$pic_object" ||
    18725888             test -z "$non_pic_object" ||
    1873              test "$pic_object" = none && \
     5889             test "$pic_object" = none &&
    18745890             test "$non_pic_object" = none; then
    1875             $echo "$modename: cannot find name of object for \`$arg'" 1>&2
    1876             exit $EXIT_FAILURE
     5891            func_fatal_error "cannot find name of object for \`$arg'"
    18775892          fi
    18785893
    18795894          # Extract subdirectory from the argument.
    1880           xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
    1881           if test "X$xdir" = "X$arg"; then
    1882             xdir=
    1883           else
    1884             xdir="$xdir/"
    1885           fi
     5895          func_dirname "$arg" "/" ""
     5896          xdir="$func_dirname_result"
    18865897
    18875898          if test "$pic_object" != none; then
     
    18915902            if test "$prev" = dlfiles; then
    18925903              if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
    1893                 dlfiles="$dlfiles $pic_object"
     5904                func_append dlfiles " $pic_object"
    18945905                prev=
    18955906                continue
     
    19035914            if test "$prev" = dlprefiles; then
    19045915              # Preload the old-style object.
    1905               dlprefiles="$dlprefiles $pic_object"
     5916              func_append dlprefiles " $pic_object"
    19065917              prev=
    19075918            fi
    19085919
    19095920            # A PIC object.
    1910             libobjs="$libobjs $pic_object"
     5921            func_append libobjs " $pic_object"
    19115922            arg="$pic_object"
    19125923          fi
     
    19185929
    19195930            # A standard non-PIC object
    1920             non_pic_objects="$non_pic_objects $non_pic_object"
     5931            func_append non_pic_objects " $non_pic_object"
    19215932            if test -z "$pic_object" || test "$pic_object" = none ; then
    19225933              arg="$non_pic_object"
     
    19265937            # $xdir was prepended to $pic_object above.
    19275938            non_pic_object="$pic_object"
    1928             non_pic_objects="$non_pic_objects $non_pic_object"
     5939            func_append non_pic_objects " $non_pic_object"
    19295940          fi
    19305941        else
    19315942          # Only an error if not doing a dry-run.
    1932           if test -z "$run"; then
    1933             $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
    1934             exit $EXIT_FAILURE
     5943          if $opt_dry_run; then
     5944            # Extract subdirectory from the argument.
     5945            func_dirname "$arg" "/" ""
     5946            xdir="$func_dirname_result"
     5947
     5948            func_lo2o "$arg"
     5949            pic_object=$xdir$objdir/$func_lo2o_result
     5950            non_pic_object=$xdir$func_lo2o_result
     5951            func_append libobjs " $pic_object"
     5952            func_append non_pic_objects " $non_pic_object"
    19355953          else
    1936             # Dry-run case.
    1937 
    1938             # Extract subdirectory from the argument.
    1939             xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
    1940             if test "X$xdir" = "X$arg"; then
    1941               xdir=
    1942             else
    1943               xdir="$xdir/"
    1944             fi
    1945 
    1946             pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
    1947             non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
    1948             libobjs="$libobjs $pic_object"
    1949             non_pic_objects="$non_pic_objects $non_pic_object"
     5954            func_fatal_error "\`$arg' is not a valid libtool object"
    19505955          fi
    19515956        fi
     
    19545959      *.$libext)
    19555960        # An archive.
    1956         deplibs="$deplibs $arg"
    1957         old_deplibs="$old_deplibs $arg"
     5961        func_append deplibs " $arg"
     5962        func_append old_deplibs " $arg"
    19585963        continue
    19595964        ;;
     
    19625967        # A libtool-controlled library.
    19635968
     5969        func_resolve_sysroot "$arg"
    19645970        if test "$prev" = dlfiles; then
    19655971          # This library was specified with -dlopen.
    1966           dlfiles="$dlfiles $arg"
     5972          func_append dlfiles " $func_resolve_sysroot_result"
    19675973          prev=
    19685974        elif test "$prev" = dlprefiles; then
    19695975          # The library was specified with -dlpreopen.
    1970           dlprefiles="$dlprefiles $arg"
     5976          func_append dlprefiles " $func_resolve_sysroot_result"
    19715977          prev=
    19725978        else
    1973           deplibs="$deplibs $arg"
     5979          func_append deplibs " $func_resolve_sysroot_result"
    19745980        fi
    19755981        continue
     
    19805986        # Unknown arguments in both finalize_command and compile_command need
    19815987        # to be aesthetically quoted because they are evaled later.
    1982         arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
    1983         case $arg in
    1984         *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
    1985           arg="\"$arg\""
    1986           ;;
    1987         esac
     5988        func_quote_for_eval "$arg"
     5989        arg="$func_quote_for_eval_result"
    19885990        ;;
    19895991      esac # arg
     
    19915993      # Now actually substitute the argument into the commands.
    19925994      if test -n "$arg"; then
    1993         compile_command="$compile_command $arg"
    1994         finalize_command="$finalize_command $arg"
     5995        func_append compile_command " $arg"
     5996        func_append finalize_command " $arg"
    19955997      fi
    19965998    done # argument parsing loop
    19975999
    1998     if test -n "$prev"; then
    1999       $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
    2000       $echo "$help" 1>&2
    2001       exit $EXIT_FAILURE
    2002     fi
     6000    test -n "$prev" && \
     6001      func_fatal_help "the \`$prevarg' option requires an argument"
    20036002
    20046003    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
    20056004      eval arg=\"$export_dynamic_flag_spec\"
    2006       compile_command="$compile_command $arg"
    2007       finalize_command="$finalize_command $arg"
     6005      func_append compile_command " $arg"
     6006      func_append finalize_command " $arg"
    20086007    fi
    20096008
    20106009    oldlibs=
    20116010    # calculate the name of the file, without its directory
    2012     outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
     6011    func_basename "$output"
     6012    outputname="$func_basename_result"
    20136013    libobjs_save="$libobjs"
    20146014
    20156015    if test -n "$shlibpath_var"; then
    20166016      # get the directories listed in $shlibpath_var
    2017       eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
     6017      eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
    20186018    else
    20196019      shlib_search_path=
     
    20226022    eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
    20236023
    2024     output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
    2025     if test "X$output_objdir" = "X$output"; then
    2026       output_objdir="$objdir"
    2027     else
    2028       output_objdir="$output_objdir/$objdir"
    2029     fi
     6024    func_dirname "$output" "/" ""
     6025    output_objdir="$func_dirname_result$objdir"
     6026    func_to_tool_file "$output_objdir/"
     6027    tool_output_objdir=$func_to_tool_file_result
    20306028    # Create the object directory.
    2031     if test ! -d "$output_objdir"; then
    2032       $show "$mkdir $output_objdir"
    2033       $run $mkdir $output_objdir
    2034       exit_status=$?
    2035       if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
    2036         exit $exit_status
    2037       fi
    2038     fi
     6029    func_mkdir_p "$output_objdir"
    20396030
    20406031    # Determine the type of output
    20416032    case $output in
    20426033    "")
    2043       $echo "$modename: you must specify an output file" 1>&2
    2044       $echo "$help" 1>&2
    2045       exit $EXIT_FAILURE
     6034      func_fatal_help "you must specify an output file"
    20466035      ;;
    20476036    *.$libext) linkmode=oldlib ;;
     
    20516040    esac
    20526041
    2053     case $host in
    2054     *cygwin* | *mingw* | *pw32*)
    2055       # don't eliminate duplications in $postdeps and $predeps
    2056       duplicate_compiler_generated_deps=yes
    2057       ;;
    2058     *)
    2059       duplicate_compiler_generated_deps=$duplicate_deps
    2060       ;;
    2061     esac
    20626042    specialdeplibs=
    20636043
     
    20666046    # that are linked more than once (e.g. -la -lb -la)
    20676047    for deplib in $deplibs; do
    2068       if test "X$duplicate_deps" = "Xyes" ; then
     6048      if $opt_preserve_dup_deps ; then
    20696049        case "$libs " in
    2070         *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
     6050        *" $deplib "*) func_append specialdeplibs " $deplib" ;;
    20716051        esac
    20726052      fi
    2073       libs="$libs $deplib"
     6053      func_append libs " $deplib"
    20746054    done
    20756055
     
    20816061      # not to be eliminated).
    20826062      pre_post_deps=
    2083       if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
     6063      if $opt_duplicate_compiler_generated_deps; then
    20846064        for pre_post_dep in $predeps $postdeps; do
    20856065          case "$pre_post_deps " in
    2086           *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
     6066          *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
    20876067          esac
    2088           pre_post_deps="$pre_post_deps $pre_post_dep"
     6068          func_append pre_post_deps " $pre_post_dep"
    20896069        done
    20906070      fi
     
    20976077    need_relink=no # whether we're linking any uninstalled libtool libraries
    20986078    notinst_deplibs= # not-installed libtool libraries
     6079    notinst_path= # paths that contain not-installed libtool libraries
     6080
    20996081    case $linkmode in
    21006082    lib)
    2101         passes="conv link"
     6083        passes="conv dlpreopen link"
    21026084        for file in $dlfiles $dlprefiles; do
    21036085          case $file in
    21046086          *.la) ;;
    21056087          *)
    2106             $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
    2107             exit $EXIT_FAILURE
     6088            func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
    21086089            ;;
    21096090          esac
     
    21216102        ;;
    21226103    esac
     6104
    21236105    for pass in $passes; do
     6106      # The preopen pass in lib mode reverses $deplibs; put it back here
     6107      # so that -L comes before libs that need it for instance...
     6108      if test "$linkmode,$pass" = "lib,link"; then
     6109        ## FIXME: Find the place where the list is rebuilt in the wrong
     6110        ##        order, and fix it there properly
     6111        tmp_deplibs=
     6112        for deplib in $deplibs; do
     6113          tmp_deplibs="$deplib $tmp_deplibs"
     6114        done
     6115        deplibs="$tmp_deplibs"
     6116      fi
     6117
    21246118      if test "$linkmode,$pass" = "lib,link" ||
    21256119         test "$linkmode,$pass" = "prog,scan"; then
     
    21316125        dlopen) libs="$dlfiles" ;;
    21326126        dlpreopen) libs="$dlprefiles" ;;
    2133         link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
     6127        link)
     6128          libs="$deplibs %DEPLIBS%"
     6129          test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
     6130          ;;
    21346131        esac
     6132      fi
     6133      if test "$linkmode,$pass" = "lib,dlpreopen"; then
     6134        # Collect and forward deplibs of preopened libtool libs
     6135        for lib in $dlprefiles; do
     6136          # Ignore non-libtool-libs
     6137          dependency_libs=
     6138          func_resolve_sysroot "$lib"
     6139          case $lib in
     6140          *.la) func_source "$func_resolve_sysroot_result" ;;
     6141          esac
     6142
     6143          # Collect preopened libtool deplibs, except any this library
     6144          # has declared as weak libs
     6145          for deplib in $dependency_libs; do
     6146            func_basename "$deplib"
     6147            deplib_base=$func_basename_result
     6148            case " $weak_libs " in
     6149            *" $deplib_base "*) ;;
     6150            *) func_append deplibs " $deplib" ;;
     6151            esac
     6152          done
     6153        done
     6154        libs="$dlprefiles"
    21356155      fi
    21366156      if test "$pass" = dlopen; then
     
    21396159        deplibs=
    21406160      fi
     6161
    21416162      for deplib in $libs; do
    21426163        lib=
    21436164        found=no
    21446165        case $deplib in
    2145         -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
     6166        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
     6167        |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
    21466168          if test "$linkmode,$pass" = "prog,link"; then
    21476169            compile_deplibs="$deplib $compile_deplibs"
    21486170            finalize_deplibs="$deplib $finalize_deplibs"
    21496171          else
    2150             compiler_flags="$compiler_flags $deplib"
     6172            func_append compiler_flags " $deplib"
     6173            if test "$linkmode" = lib ; then
     6174                case "$new_inherited_linker_flags " in
     6175                    *" $deplib "*) ;;
     6176                    * ) func_append new_inherited_linker_flags " $deplib" ;;
     6177                esac
     6178            fi
    21516179          fi
    21526180          continue
     
    21546182        -l*)
    21556183          if test "$linkmode" != lib && test "$linkmode" != prog; then
    2156             $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
     6184            func_warning "\`-l' is ignored for archives/objects"
    21576185            continue
    21586186          fi
    2159           name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
    2160           for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
     6187          func_stripname '-l' '' "$deplib"
     6188          name=$func_stripname_result
     6189          if test "$linkmode" = lib; then
     6190            searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
     6191          else
     6192            searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
     6193          fi
     6194          for searchdir in $searchdirs; do
    21616195            for search_ext in .la $std_shrext .so .a; do
    21626196              # Search the libtool library
     
    21886222              case " $predeps $postdeps " in
    21896223              *" $deplib "*)
    2190                 if (${SED} -e '2q' $lib |
    2191                     grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
     6224                if func_lalib_p "$lib"; then
    21926225                  library_names=
    21936226                  old_library=
    2194                   case $lib in
    2195                   */* | *\\*) . $lib ;;
    2196                   *) . ./$lib ;;
    2197                   esac
     6227                  func_source "$lib"
    21986228                  for l in $old_library $library_names; do
    21996229                    ll="$l"
     
    22016231                  if test "X$ll" = "X$old_library" ; then # only static version available
    22026232                    found=no
    2203                     ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
    2204                     test "X$ladir" = "X$lib" && ladir="."
     6233                    func_dirname "$lib" "" "."
     6234                    ladir="$func_dirname_result"
    22056235                    lib=$ladir/$old_library
    22066236                    if test "$linkmode,$pass" = "prog,link"; then
     
    22146244                  fi
    22156245                fi
    2216                 ;;
     6246                ;;
    22176247              *) ;;
    22186248              esac
     
    22206250          fi
    22216251          ;; # -l
     6252        *.ltframework)
     6253          if test "$linkmode,$pass" = "prog,link"; then
     6254            compile_deplibs="$deplib $compile_deplibs"
     6255            finalize_deplibs="$deplib $finalize_deplibs"
     6256          else
     6257            deplibs="$deplib $deplibs"
     6258            if test "$linkmode" = lib ; then
     6259                case "$new_inherited_linker_flags " in
     6260                    *" $deplib "*) ;;
     6261                    * ) func_append new_inherited_linker_flags " $deplib" ;;
     6262                esac
     6263            fi
     6264          fi
     6265          continue
     6266          ;;
    22226267        -L*)
    22236268          case $linkmode in
     
    22266271            test "$pass" = conv && continue
    22276272            newdependency_libs="$deplib $newdependency_libs"
    2228             newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
     6273            func_stripname '-L' '' "$deplib"
     6274            func_resolve_sysroot "$func_stripname_result"
     6275            func_append newlib_search_path " $func_resolve_sysroot_result"
    22296276            ;;
    22306277          prog)
     
    22396286              finalize_deplibs="$deplib $finalize_deplibs"
    22406287            fi
    2241             newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
     6288            func_stripname '-L' '' "$deplib"
     6289            func_resolve_sysroot "$func_stripname_result"
     6290            func_append newlib_search_path " $func_resolve_sysroot_result"
    22426291            ;;
    22436292          *)
    2244             $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
     6293            func_warning "\`-L' is ignored for archives/objects"
    22456294            ;;
    22466295          esac # linkmode
     
    22496298        -R*)
    22506299          if test "$pass" = link; then
    2251             dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
     6300            func_stripname '-R' '' "$deplib"
     6301            func_resolve_sysroot "$func_stripname_result"
     6302            dir=$func_resolve_sysroot_result
    22526303            # Make sure the xrpath contains only unique directories.
    22536304            case "$xrpath " in
    22546305            *" $dir "*) ;;
    2255             *) xrpath="$xrpath $dir" ;;
     6306            *) func_append xrpath " $dir" ;;
    22566307            esac
    22576308          fi
     
    22596310          continue
    22606311          ;;
    2261         *.la) lib="$deplib" ;;
     6312        *.la)
     6313          func_resolve_sysroot "$deplib"
     6314          lib=$func_resolve_sysroot_result
     6315          ;;
    22626316        *.$libext)
    22636317          if test "$pass" = conv; then
     
    22676321          case $linkmode in
    22686322          lib)
    2269             valid_a_lib=no
    2270             case $deplibs_check_method in
    2271               match_pattern*)
    2272                 set dummy $deplibs_check_method
    2273                 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
    2274                 if eval $echo \"$deplib\" 2>/dev/null \
    2275                     | $SED 10q \
     6323            # Linking convenience modules into shared libraries is allowed,
     6324            # but linking other static libraries is non-portable.
     6325            case " $dlpreconveniencelibs " in
     6326            *" $deplib "*) ;;
     6327            *)
     6328              valid_a_lib=no
     6329              case $deplibs_check_method in
     6330                match_pattern*)
     6331                  set dummy $deplibs_check_method; shift
     6332                  match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
     6333                  if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
    22766334                    | $EGREP "$match_pattern_regex" > /dev/null; then
     6335                    valid_a_lib=yes
     6336                  fi
     6337                ;;
     6338                pass_all)
    22776339                  valid_a_lib=yes
    2278                 fi
    22796340                ;;
    2280               pass_all)
    2281                 valid_a_lib=yes
    2282                 ;;
    2283             esac
    2284             if test "$valid_a_lib" != yes; then
    2285               $echo
    2286               $echo "*** Warning: Trying to link with static lib archive $deplib."
    2287               $echo "*** I have the capability to make that library automatically link in when"
    2288               $echo "*** you link to this library.  But I can only do this if you have a"
    2289               $echo "*** shared version of the library, which you do not appear to have"
    2290               $echo "*** because the file extensions .$libext of this argument makes me believe"
    2291               $echo "*** that it is just a static archive that I should not used here."
    2292             else
    2293               $echo
    2294               $echo "*** Warning: Linking the shared library $output against the"
    2295               $echo "*** static library $deplib is not portable!"
    2296               deplibs="$deplib $deplibs"
    2297             fi
     6341              esac
     6342              if test "$valid_a_lib" != yes; then
     6343                echo
     6344                $ECHO "*** Warning: Trying to link with static lib archive $deplib."
     6345                echo "*** I have the capability to make that library automatically link in when"
     6346                echo "*** you link to this library.  But I can only do this if you have a"
     6347                echo "*** shared version of the library, which you do not appear to have"
     6348                echo "*** because the file extensions .$libext of this argument makes me believe"
     6349                echo "*** that it is just a static archive that I should not use here."
     6350              else
     6351                echo
     6352                $ECHO "*** Warning: Linking the shared library $output against the"
     6353                $ECHO "*** static library $deplib is not portable!"
     6354                deplibs="$deplib $deplibs"
     6355              fi
     6356              ;;
     6357            esac
    22986358            continue
    22996359            ;;
     
    23166376              # If there is no dlopen support or we're linking statically,
    23176377              # we need to preload.
    2318               newdlprefiles="$newdlprefiles $deplib"
     6378              func_append newdlprefiles " $deplib"
    23196379              compile_deplibs="$deplib $compile_deplibs"
    23206380              finalize_deplibs="$deplib $finalize_deplibs"
    23216381            else
    2322               newdlfiles="$newdlfiles $deplib"
     6382              func_append newdlfiles " $deplib"
    23236383            fi
    23246384          fi
     
    23306390          ;;
    23316391        esac # case $deplib
     6392
    23326393        if test "$found" = yes || test -f "$lib"; then :
    23336394        else
    2334           $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
    2335           exit $EXIT_FAILURE
     6395          func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
    23366396        fi
    23376397
    23386398        # Check to see that this really is a libtool archive.
    2339         if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
    2340         else
    2341           $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
    2342           exit $EXIT_FAILURE
    2343         fi
    2344 
    2345         ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
    2346         test "X$ladir" = "X$lib" && ladir="."
     6399        func_lalib_unsafe_p "$lib" \
     6400          || func_fatal_error "\`$lib' is not a valid libtool archive"
     6401
     6402        func_dirname "$lib" "" "."
     6403        ladir="$func_dirname_result"
    23476404
    23486405        dlname=
     
    23526409        library_names=
    23536410        old_library=
     6411        inherited_linker_flags=
    23546412        # If the library was installed with an old release of libtool,
    23556413        # it will not redefine variables installed, or shouldnotlink
     
    23606418
    23616419        # Read the .la file
    2362         case $lib in
    2363         */* | *\\*) . $lib ;;
    2364         *) . ./$lib ;;
    2365         esac
    2366 
     6420        func_source "$lib"
     6421
     6422        # Convert "-framework foo" to "foo.ltframework"
     6423        if test -n "$inherited_linker_flags"; then
     6424          tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
     6425          for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
     6426            case " $new_inherited_linker_flags " in
     6427              *" $tmp_inherited_linker_flag "*) ;;
     6428              *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
     6429            esac
     6430          done
     6431        fi
     6432        dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
    23676433        if test "$linkmode,$pass" = "lib,link" ||
    23686434           test "$linkmode,$pass" = "prog,scan" ||
    23696435           { test "$linkmode" != prog && test "$linkmode" != lib; }; then
    2370           test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
    2371           test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
     6436          test -n "$dlopen" && func_append dlfiles " $dlopen"
     6437          test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
    23726438        fi
    23736439
     
    23776443          if test -z "$libdir"; then
    23786444            if test -z "$old_library"; then
    2379               $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
    2380               exit $EXIT_FAILURE
     6445              func_fatal_error "cannot find name of link library for \`$lib'"
    23816446            fi
    23826447            # It is a libtool convenience library, so add in its objects.
    2383             convenience="$convenience $ladir/$objdir/$old_library"
    2384             old_convenience="$old_convenience $ladir/$objdir/$old_library"
     6448            func_append convenience " $ladir/$objdir/$old_library"
     6449            func_append old_convenience " $ladir/$objdir/$old_library"
    23856450            tmp_libs=
    23866451            for deplib in $dependency_libs; do
    23876452              deplibs="$deplib $deplibs"
    2388               if test "X$duplicate_deps" = "Xyes" ; then
    2389                 case "$tmp_libs " in
    2390                 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
    2391                 esac
    2392               fi
    2393               tmp_libs="$tmp_libs $deplib"
     6453              if $opt_preserve_dup_deps ; then
     6454                case "$tmp_libs " in
     6455                *" $deplib "*) func_append specialdeplibs " $deplib" ;;
     6456                esac
     6457              fi
     6458              func_append tmp_libs " $deplib"
    23946459            done
    23956460          elif test "$linkmode" != prog && test "$linkmode" != lib; then
    2396             $echo "$modename: \`$lib' is not a convenience library" 1>&2
    2397             exit $EXIT_FAILURE
     6461            func_fatal_error "\`$lib' is not a convenience library"
    23986462          fi
    23996463          continue
     
    24036467        # Get the name of the library we link against.
    24046468        linklib=
    2405         for l in $old_library $library_names; do
    2406           linklib="$l"
    2407         done
     6469        if test -n "$old_library" &&
     6470           { test "$prefer_static_libs" = yes ||
     6471             test "$prefer_static_libs,$installed" = "built,no"; }; then
     6472          linklib=$old_library
     6473        else
     6474          for l in $old_library $library_names; do
     6475            linklib="$l"
     6476          done
     6477        fi
    24086478        if test -z "$linklib"; then
    2409           $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
    2410           exit $EXIT_FAILURE
     6479          func_fatal_error "cannot find name of link library for \`$lib'"
    24116480        fi
    24126481
     
    24146483        if test "$pass" = dlopen; then
    24156484          if test -z "$libdir"; then
    2416             $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
    2417             exit $EXIT_FAILURE
     6485            func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
    24186486          fi
    24196487          if test -z "$dlname" ||
     
    24246492            # dependent libraries so libltdl's deplib preloader doesn't
    24256493            # bomb out in the load deplibs phase.
    2426             dlprefiles="$dlprefiles $lib $dependency_libs"
     6494            func_append dlprefiles " $lib $dependency_libs"
    24276495          else
    2428             newdlfiles="$newdlfiles $lib"
     6496            func_append newdlfiles " $lib"
    24296497          fi
    24306498          continue
     
    24376505          abs_ladir=`cd "$ladir" && pwd`
    24386506          if test -z "$abs_ladir"; then
    2439             $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
    2440             $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
     6507            func_warning "cannot determine absolute directory name of \`$ladir'"
     6508            func_warning "passing it literally to the linker, although it might fail"
    24416509            abs_ladir="$ladir"
    24426510          fi
    24436511          ;;
    24446512        esac
    2445         laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
     6513        func_basename "$lib"
     6514        laname="$func_basename_result"
    24466515
    24476516        # Find the relevant object directory and library name.
    24486517        if test "X$installed" = Xyes; then
    2449           if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
    2450             $echo "$modename: warning: library \`$lib' was moved." 1>&2
     6518          if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
     6519            func_warning "library \`$lib' was moved."
    24516520            dir="$ladir"
    24526521            absdir="$abs_ladir"
    24536522            libdir="$abs_ladir"
    24546523          else
    2455             dir="$libdir"
    2456             absdir="$libdir"
     6524            dir="$lt_sysroot$libdir"
     6525            absdir="$lt_sysroot$libdir"
    24576526          fi
    24586527          test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
     
    24626531            absdir="$abs_ladir"
    24636532            # Remove this search path later
    2464             notinst_path="$notinst_path $abs_ladir"
     6533            func_append notinst_path " $abs_ladir"
    24656534          else
    24666535            dir="$ladir/$objdir"
    24676536            absdir="$abs_ladir/$objdir"
    24686537            # Remove this search path later
    2469             notinst_path="$notinst_path $abs_ladir"
     6538            func_append notinst_path " $abs_ladir"
    24706539          fi
    24716540        fi # $installed = yes
    2472         name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
     6541        func_stripname 'lib' '.la' "$laname"
     6542        name=$func_stripname_result
    24736543
    24746544        # This library was specified with -dlpreopen.
    24756545        if test "$pass" = dlpreopen; then
    2476           if test -z "$libdir"; then
    2477             $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
    2478             exit $EXIT_FAILURE
     6546          if test -z "$libdir" && test "$linkmode" = prog; then
     6547            func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
    24796548          fi
    2480           # Prefer using a static library (so that no silly _DYNAMIC symbols
    2481           # are required to link).
    2482           if test -n "$old_library"; then
    2483             newdlprefiles="$newdlprefiles $dir/$old_library"
    2484           # Otherwise, use the dlname, so that lt_dlopen finds it.
    2485           elif test -n "$dlname"; then
    2486             newdlprefiles="$newdlprefiles $dir/$dlname"
    2487           else
    2488             newdlprefiles="$newdlprefiles $dir/$linklib"
    2489           fi
     6549          case "$host" in
     6550            # special handling for platforms with PE-DLLs.
     6551            *cygwin* | *mingw* | *cegcc* )
     6552              # Linker will automatically link against shared library if both
     6553              # static and shared are present.  Therefore, ensure we extract
     6554              # symbols from the import library if a shared library is present
     6555              # (otherwise, the dlopen module name will be incorrect).  We do
     6556              # this by putting the import library name into $newdlprefiles.
     6557              # We recover the dlopen module name by 'saving' the la file
     6558              # name in a special purpose variable, and (later) extracting the
     6559              # dlname from the la file.
     6560              if test -n "$dlname"; then
     6561                func_tr_sh "$dir/$linklib"
     6562                eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
     6563                func_append newdlprefiles " $dir/$linklib"
     6564              else
     6565                func_append newdlprefiles " $dir/$old_library"
     6566                # Keep a list of preopened convenience libraries to check
     6567                # that they are being used correctly in the link pass.
     6568                test -z "$libdir" && \
     6569                  func_append dlpreconveniencelibs " $dir/$old_library"
     6570              fi
     6571            ;;
     6572            * )
     6573              # Prefer using a static library (so that no silly _DYNAMIC symbols
     6574              # are required to link).
     6575              if test -n "$old_library"; then
     6576                func_append newdlprefiles " $dir/$old_library"
     6577                # Keep a list of preopened convenience libraries to check
     6578                # that they are being used correctly in the link pass.
     6579                test -z "$libdir" && \
     6580                  func_append dlpreconveniencelibs " $dir/$old_library"
     6581              # Otherwise, use the dlname, so that lt_dlopen finds it.
     6582              elif test -n "$dlname"; then
     6583                func_append newdlprefiles " $dir/$dlname"
     6584              else
     6585                func_append newdlprefiles " $dir/$linklib"
     6586              fi
     6587            ;;
     6588          esac
    24906589        fi # $pass = dlpreopen
    24916590
     
    25056604
    25066605        if test "$linkmode" = prog && test "$pass" != link; then
    2507           newlib_search_path="$newlib_search_path $ladir"
     6606          func_append newlib_search_path " $ladir"
    25086607          deplibs="$lib $deplibs"
    25096608
     
    25176616          for deplib in $dependency_libs; do
    25186617            case $deplib in
    2519             -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
     6618            -L*) func_stripname '-L' '' "$deplib"
     6619                 func_resolve_sysroot "$func_stripname_result"
     6620                 func_append newlib_search_path " $func_resolve_sysroot_result"
     6621                 ;;
    25206622            esac
    25216623            # Need to link against all dependency_libs?
     
    25276629              newdependency_libs="$deplib $newdependency_libs"
    25286630            fi
    2529             if test "X$duplicate_deps" = "Xyes" ; then
     6631            if $opt_preserve_dup_deps ; then
    25306632              case "$tmp_libs " in
    2531               *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
     6633              *" $deplib "*) func_append specialdeplibs " $deplib" ;;
    25326634              esac
    25336635            fi
    2534             tmp_libs="$tmp_libs $deplib"
     6636            func_append tmp_libs " $deplib"
    25356637          done # for deplib
    25366638          continue
     
    25396641        if test "$linkmode,$pass" = "prog,link"; then
    25406642          if test -n "$library_names" &&
    2541              { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
     6643             { { test "$prefer_static_libs" = no ||
     6644                 test "$prefer_static_libs,$installed" = "built,yes"; } ||
     6645               test -z "$old_library"; }; then
    25426646            # We need to hardcode the library path
    25436647            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
    25446648              # Make sure the rpath contains only unique directories.
    2545               case "$temp_rpath " in
    2546               *" $dir "*) ;;
    2547               *" $absdir "*) ;;
    2548               *) temp_rpath="$temp_rpath $absdir" ;;
     6649              case "$temp_rpath:" in
     6650              *"$absdir:"*) ;;
     6651              *) func_append temp_rpath "$absdir:" ;;
    25496652              esac
    25506653            fi
     
    25586661              case "$compile_rpath " in
    25596662              *" $absdir "*) ;;
    2560               *) compile_rpath="$compile_rpath $absdir"
     6663              *) func_append compile_rpath " $absdir" ;;
    25616664              esac
    25626665              ;;
     
    25676670              case "$finalize_rpath " in
    25686671              *" $libdir "*) ;;
    2569               *) finalize_rpath="$finalize_rpath $libdir"
     6672              *) func_append finalize_rpath " $libdir" ;;
    25706673              esac
    25716674              ;;
     
    25846687        link_static=no # Whether the deplib will be linked statically
    25856688        use_static_libs=$prefer_static_libs
    2586         if test "$use_static_libs" = built && test "$installed" = yes ; then
     6689        if test "$use_static_libs" = built && test "$installed" = yes; then
    25876690          use_static_libs=no
    25886691        fi
    25896692        if test -n "$library_names" &&
    25906693           { test "$use_static_libs" = no || test -z "$old_library"; }; then
    2591           if test "$installed" = no; then
    2592             notinst_deplibs="$notinst_deplibs $lib"
    2593             need_relink=yes
    2594           fi
     6694          case $host in
     6695          *cygwin* | *mingw* | *cegcc*)
     6696              # No point in relinking DLLs because paths are not encoded
     6697              func_append notinst_deplibs " $lib"
     6698              need_relink=no
     6699            ;;
     6700          *)
     6701            if test "$installed" = no; then
     6702              func_append notinst_deplibs " $lib"
     6703              need_relink=yes
     6704            fi
     6705            ;;
     6706          esac
    25956707          # This is a shared library
    25966708
    2597           # Warn about portability, can't link against -module's on
    2598           # some systems (darwin)
    2599           if test "$shouldnotlink" = yes && test "$pass" = link ; then
    2600             $echo
     6709          # Warn about portability, can't link against -module's on some
     6710          # systems (darwin).  Don't bleat about dlopened modules though!
     6711          dlopenmodule=""
     6712          for dlpremoduletest in $dlprefiles; do
     6713            if test "X$dlpremoduletest" = "X$lib"; then
     6714              dlopenmodule="$dlpremoduletest"
     6715              break
     6716            fi
     6717          done
     6718          if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
     6719            echo
    26016720            if test "$linkmode" = prog; then
    2602               $echo "*** Warning: Linking the executable $output against the loadable module"
     6721              $ECHO "*** Warning: Linking the executable $output against the loadable module"
    26036722            else
    2604               $echo "*** Warning: Linking the shared library $output against the loadable module"
     6723              $ECHO "*** Warning: Linking the shared library $output against the loadable module"
    26056724            fi
    2606             $echo "*** $linklib is not portable!"
     6725            $ECHO "*** $linklib is not portable!"
    26076726          fi
    26086727          if test "$linkmode" = lib &&
     
    26166735              case "$compile_rpath " in
    26176736              *" $absdir "*) ;;
    2618               *) compile_rpath="$compile_rpath $absdir"
     6737              *) func_append compile_rpath " $absdir" ;;
    26196738              esac
    26206739              ;;
     
    26256744              case "$finalize_rpath " in
    26266745              *" $libdir "*) ;;
    2627               *) finalize_rpath="$finalize_rpath $libdir"
     6746              *) func_append finalize_rpath " $libdir" ;;
    26286747              esac
    26296748              ;;
     
    26346753            # figure out the soname
    26356754            set dummy $library_names
    2636             realname="$2"
    2637             shift; shift
    2638             libname=`eval \\$echo \"$libname_spec\"`
     6755            shift
     6756            realname="$1"
     6757            shift
     6758            libname=`eval "\\$ECHO \"$libname_spec\""`
    26396759            # use dlname if we got it. it's perfectly good, no?
    26406760            if test -n "$dlname"; then
     
    26436763              # bleh windows
    26446764              case $host in
    2645               *cygwin* | mingw*)
    2646                 major=`expr $current - $age`
     6765              *cygwin* | mingw* | *cegcc*)
     6766                func_arith $current - $age
     6767                major=$func_arith_result
    26476768                versuffix="-$major"
    26486769                ;;
     
    26556776            # Make a new name for the extract_expsyms_cmds to use
    26566777            soroot="$soname"
    2657             soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
    2658             newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
     6778            func_basename "$soroot"
     6779            soname="$func_basename_result"
     6780            func_stripname 'lib' '.dll' "$soname"
     6781            newlib=libimp-$func_stripname_result.a
    26596782
    26606783            # If the library has no export list, then create one now
    26616784            if test -f "$output_objdir/$soname-def"; then :
    26626785            else
    2663               $show "extracting exported symbol list from \`$soname'"
    2664               save_ifs="$IFS"; IFS='~'
    2665               cmds=$extract_expsyms_cmds
    2666               for cmd in $cmds; do
    2667                 IFS="$save_ifs"
    2668                 eval cmd=\"$cmd\"
    2669                 $show "$cmd"
    2670                 $run eval "$cmd" || exit $?
    2671               done
    2672               IFS="$save_ifs"
     6786              func_verbose "extracting exported symbol list from \`$soname'"
     6787              func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
    26736788            fi
    26746789
    26756790            # Create $newlib
    26766791            if test -f "$output_objdir/$newlib"; then :; else
    2677               $show "generating import library for \`$soname'"
    2678               save_ifs="$IFS"; IFS='~'
    2679               cmds=$old_archive_from_expsyms_cmds
    2680               for cmd in $cmds; do
    2681                 IFS="$save_ifs"
    2682                 eval cmd=\"$cmd\"
    2683                 $show "$cmd"
    2684                 $run eval "$cmd" || exit $?
    2685               done
    2686               IFS="$save_ifs"
     6792              func_verbose "generating import library for \`$soname'"
     6793              func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
    26876794            fi
    26886795            # make sure the library variables are pointing to the new library
     
    26916798          fi # test -n "$old_archive_from_expsyms_cmds"
    26926799
    2693           if test "$linkmode" = prog || test "$mode" != relink; then
     6800          if test "$linkmode" = prog || test "$opt_mode" != relink; then
    26946801            add_shlibpath=
    26956802            add_dir=
     
    27066813                    *-*-unixware7*) add_dir="-L$dir" ;;
    27076814                  *-*-darwin* )
    2708                     # if the lib is a module then we can not link against
    2709                     # it, someone is ignoring the new warnings I added
     6815                    # if the lib is a (non-dlopened) module then we can not
     6816                    # link against it, someone is ignoring the earlier warnings
    27106817                    if /usr/bin/file -L $add 2> /dev/null |
    2711                       $EGREP ": [^:]* bundle" >/dev/null ; then
    2712                       $echo "** Warning, lib $linklib is a module, not a shared library"
    2713                       if test -z "$old_library" ; then
    2714                         $echo
    2715                         $echo "** And there doesn't seem to be a static archive available"
    2716                         $echo "** The link will probably fail, sorry"
    2717                       else
    2718                         add="$dir/$old_library"
     6818                         $GREP ": [^:]* bundle" >/dev/null ; then
     6819                      if test "X$dlopenmodule" != "X$lib"; then
     6820                        $ECHO "*** Warning: lib $linklib is a module, not a shared library"
     6821                        if test -z "$old_library" ; then
     6822                          echo
     6823                          echo "*** And there doesn't seem to be a static archive available"
     6824                          echo "*** The link will probably fail, sorry"
     6825                        else
     6826                          add="$dir/$old_library"
     6827                        fi
     6828                      elif test -n "$old_library"; then
     6829                        add="$dir/$old_library"
    27196830                      fi
    27206831                    fi
     
    27346845              ;;
    27356846            relink)
    2736               if test "$hardcode_direct" = yes; then
     6847              if test "$hardcode_direct" = yes &&
     6848                 test "$hardcode_direct_absolute" = no; then
    27376849                add="$dir/$linklib"
    27386850              elif test "$hardcode_minus_L" = yes; then
    2739                 add_dir="-L$dir"
     6851                add_dir="-L$absdir"
    27406852                # Try looking first in the location we're being installed to.
    27416853                if test -n "$inst_prefix_dir"; then
    27426854                  case $libdir in
    27436855                    [\\/]*)
    2744                       add_dir="$add_dir -L$inst_prefix_dir$libdir"
     6856                      func_append add_dir " -L$inst_prefix_dir$libdir"
    27456857                      ;;
    27466858                  esac
     
    27586870
    27596871            if test "$lib_linked" != yes; then
    2760               $echo "$modename: configuration error: unsupported hardcode properties"
    2761               exit $EXIT_FAILURE
     6872              func_fatal_configuration "unsupported hardcode properties"
    27626873            fi
    27636874
     
    27656876              case :$compile_shlibpath: in
    27666877              *":$add_shlibpath:"*) ;;
    2767               *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
     6878              *) func_append compile_shlibpath "$add_shlibpath:" ;;
    27686879              esac
    27696880            fi
     
    27746885              test -n "$add_dir" && deplibs="$add_dir $deplibs"
    27756886              test -n "$add" && deplibs="$add $deplibs"
    2776               if test "$hardcode_direct" != yes && \
    2777                  test "$hardcode_minus_L" != yes && \
     6887              if test "$hardcode_direct" != yes &&
     6888                 test "$hardcode_minus_L" != yes &&
    27786889                 test "$hardcode_shlibpath_var" = yes; then
    27796890                case :$finalize_shlibpath: in
    27806891                *":$libdir:"*) ;;
    2781                 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
     6892                *) func_append finalize_shlibpath "$libdir:" ;;
    27826893                esac
    27836894              fi
     
    27856896          fi
    27866897
    2787           if test "$linkmode" = prog || test "$mode" = relink; then
     6898          if test "$linkmode" = prog || test "$opt_mode" = relink; then
    27886899            add_shlibpath=
    27896900            add_dir=
    27906901            add=
    27916902            # Finalize command for both is simple: just hardcode it.
    2792             if test "$hardcode_direct" = yes; then
     6903            if test "$hardcode_direct" = yes &&
     6904               test "$hardcode_direct_absolute" = no; then
    27936905              add="$libdir/$linklib"
    27946906            elif test "$hardcode_minus_L" = yes; then
     
    27986910              case :$finalize_shlibpath: in
    27996911              *":$libdir:"*) ;;
    2800               *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
     6912              *) func_append finalize_shlibpath "$libdir:" ;;
    28016913              esac
    28026914              add="-l$name"
     
    28046916              if test -n "$inst_prefix_dir" &&
    28056917                 test -f "$inst_prefix_dir$libdir/$linklib" ; then
    2806                 add="$inst_prefix_dir$libdir/$linklib"
     6918                add="$inst_prefix_dir$libdir/$linklib"
    28076919              else
    2808                 add="$libdir/$linklib"
     6920                add="$libdir/$linklib"
    28096921              fi
    28106922            else
     
    28156927                case $libdir in
    28166928                  [\\/]*)
    2817                     add_dir="$add_dir -L$inst_prefix_dir$libdir"
     6929                    func_append add_dir " -L$inst_prefix_dir$libdir"
    28186930                    ;;
    28196931                esac
     
    28506962            # Just print a warning and add the library to dependency_libs so
    28516963            # that the program can be linked against the static library.
    2852             $echo
    2853             $echo "*** Warning: This system can not link to static lib archive $lib."
    2854             $echo "*** I have the capability to make that library automatically link in when"
    2855             $echo "*** you link to this library.  But I can only do this if you have a"
    2856             $echo "*** shared version of the library, which you do not appear to have."
     6964            echo
     6965            $ECHO "*** Warning: This system can not link to static lib archive $lib."
     6966            echo "*** I have the capability to make that library automatically link in when"
     6967            echo "*** you link to this library.  But I can only do this if you have a"
     6968            echo "*** shared version of the library, which you do not appear to have."
    28576969            if test "$module" = yes; then
    2858               $echo "*** But as you try to build a module library, libtool will still create "
    2859               $echo "*** a static module, that should work as long as the dlopening application"
    2860               $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
     6970              echo "*** But as you try to build a module library, libtool will still create "
     6971              echo "*** a static module, that should work as long as the dlopening application"
     6972              echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
    28616973              if test -z "$global_symbol_pipe"; then
    2862                 $echo
    2863                 $echo "*** However, this would only work if libtool was able to extract symbol"
    2864                 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
    2865                 $echo "*** not find such a program.  So, this module is probably useless."
    2866                 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
     6974                echo
     6975                echo "*** However, this would only work if libtool was able to extract symbol"
     6976                echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
     6977                echo "*** not find such a program.  So, this module is probably useless."
     6978                echo "*** \`nm' from GNU binutils and a full rebuild may help."
    28676979              fi
    28686980              if test "$build_old_libs" = no; then
     
    28887000            for libdir in $dependency_libs; do
    28897001              case $libdir in
    2890               -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
     7002              -R*) func_stripname '-R' '' "$libdir"
     7003                   temp_xrpath=$func_stripname_result
    28917004                   case " $xrpath " in
    28927005                   *" $temp_xrpath "*) ;;
    2893                    *) xrpath="$xrpath $temp_xrpath";;
     7006                   *) func_append xrpath " $temp_xrpath";;
    28947007                   esac;;
    2895               *) temp_deplibs="$temp_deplibs $libdir";;
     7008              *) func_append temp_deplibs " $libdir";;
    28967009              esac
    28977010            done
     
    28997012          fi
    29007013
    2901           newlib_search_path="$newlib_search_path $absdir"
     7014          func_append newlib_search_path " $absdir"
    29027015          # Link against this library
    29037016          test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
     
    29067019          for deplib in $dependency_libs; do
    29077020            newdependency_libs="$deplib $newdependency_libs"
    2908             if test "X$duplicate_deps" = "Xyes" ; then
     7021            case $deplib in
     7022              -L*) func_stripname '-L' '' "$deplib"
     7023                   func_resolve_sysroot "$func_stripname_result";;
     7024              *) func_resolve_sysroot "$deplib" ;;
     7025            esac
     7026            if $opt_preserve_dup_deps ; then
    29097027              case "$tmp_libs " in
    2910               *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
     7028              *" $func_resolve_sysroot_result "*)
     7029                func_append specialdeplibs " $func_resolve_sysroot_result" ;;
    29117030              esac
    29127031            fi
    2913             tmp_libs="$tmp_libs $deplib"
     7032            func_append tmp_libs " $func_resolve_sysroot_result"
    29147033          done
    29157034
     
    29177036            # Add the search paths of all dependency libraries
    29187037            for deplib in $dependency_libs; do
     7038              path=
    29197039              case $deplib in
    29207040              -L*) path="$deplib" ;;
    29217041              *.la)
    2922                 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
    2923                 test "X$dir" = "X$deplib" && dir="."
     7042                func_resolve_sysroot "$deplib"
     7043                deplib=$func_resolve_sysroot_result
     7044                func_dirname "$deplib" "" "."
     7045                dir=$func_dirname_result
    29247046                # We need an absolute path.
    29257047                case $dir in
     
    29287050                  absdir=`cd "$dir" && pwd`
    29297051                  if test -z "$absdir"; then
    2930                     $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
     7052                    func_warning "cannot determine absolute directory name of \`$dir'"
    29317053                    absdir="$dir"
    29327054                  fi
    29337055                  ;;
    29347056                esac
    2935                 if grep "^installed=no" $deplib > /dev/null; then
    2936                   path="$absdir/$objdir"
    2937                 else
    2938                   eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
    2939                   if test -z "$libdir"; then
    2940                     $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
    2941                     exit $EXIT_FAILURE
    2942                   fi
    2943                   if test "$absdir" != "$libdir"; then
    2944                     $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
    2945                   fi
    2946                   path="$absdir"
    2947                 fi
    2948                 depdepl=
     7057                if $GREP "^installed=no" $deplib > /dev/null; then
    29497058                case $host in
    29507059                *-*-darwin*)
    2951                   # we do not want to link against static libs,
    2952                   # but need to link against shared
     7060                  depdepl=
    29537061                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
    29547062                  if test -n "$deplibrary_names" ; then
     
    29567064                      depdepl=$tmp
    29577065                    done
    2958                     if test -f "$path/$depdepl" ; then
    2959                       depdepl="$path/$depdepl"
     7066                    if test -f "$absdir/$objdir/$depdepl" ; then
     7067                      depdepl="$absdir/$objdir/$depdepl"
     7068                      darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
     7069                      if test -z "$darwin_install_name"; then
     7070                          darwin_install_name=`${OTOOL64} -L $depdepl  | awk '{if (NR == 2) {print $1;exit}}'`
     7071                      fi
     7072                      func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
     7073                      func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
     7074                      path=
    29607075                    fi
    2961                     # do not add paths which are already there
    2962                     case " $newlib_search_path " in
    2963                     *" $path "*) ;;
    2964                     *) newlib_search_path="$newlib_search_path $path";;
    2965                     esac
    29667076                  fi
    2967                   path=""
    29687077                  ;;
    29697078                *)
    2970                   path="-L$path"
     7079                  path="-L$absdir/$objdir"
    29717080                  ;;
    29727081                esac
     7082                else
     7083                  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
     7084                  test -z "$libdir" && \
     7085                    func_fatal_error "\`$deplib' is not a valid libtool archive"
     7086                  test "$absdir" != "$libdir" && \
     7087                    func_warning "\`$deplib' seems to be moved"
     7088
     7089                  path="-L$absdir"
     7090                fi
    29737091                ;;
    2974               -l*)
    2975                 case $host in
    2976                 *-*-darwin*)
    2977                   # Again, we only want to link against shared libraries
    2978                   eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
    2979                   for tmp in $newlib_search_path ; do
    2980                     if test -f "$tmp/lib$tmp_libs.dylib" ; then
    2981                       eval depdepl="$tmp/lib$tmp_libs.dylib"
    2982                       break
    2983                     fi
    2984                   done
    2985                   path=""
    2986                   ;;
    2987                 *) continue ;;
    2988                 esac
    2989                 ;;
    2990               *) continue ;;
    29917092              esac
    29927093              case " $deplibs " in
     
    29947095              *) deplibs="$path $deplibs" ;;
    29957096              esac
    2996               case " $deplibs " in
    2997               *" $depdepl "*) ;;
    2998               *) deplibs="$depdepl $deplibs" ;;
    2999               esac
    30007097            done
    30017098          fi # link_all_deplibs != no
    30027099        fi # linkmode = lib
    30037100      done # for deplib in $libs
     7101      if test "$pass" = link; then
     7102        if test "$linkmode" = "prog"; then
     7103          compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
     7104          finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
     7105        else
     7106          compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     7107        fi
     7108      fi
    30047109      dependency_libs="$newdependency_libs"
    30057110      if test "$pass" = dlpreopen; then
     
    30167121            case "$lib_search_path " in
    30177122            *" $dir "*) ;;
    3018             *) lib_search_path="$lib_search_path $dir" ;;
     7123            *) func_append lib_search_path " $dir" ;;
    30197124            esac
    30207125          done
     
    30747179              case " $tmp_libs " in
    30757180              *" $deplib "*) ;;
    3076               *) tmp_libs="$tmp_libs $deplib" ;;
     7181              *) func_append tmp_libs " $deplib" ;;
    30777182              esac
    30787183              ;;
    3079             *) tmp_libs="$tmp_libs $deplib" ;;
     7184            *) func_append tmp_libs " $deplib" ;;
    30807185            esac
    30817186          done
     
    30937198        esac
    30947199        if test -n "$i" ; then
    3095           tmp_libs="$tmp_libs $i"
     7200          func_append tmp_libs " $i"
    30967201        fi
    30977202      done
     
    31007205    if test "$linkmode" = prog; then
    31017206      dlfiles="$newdlfiles"
     7207    fi
     7208    if test "$linkmode" = prog || test "$linkmode" = lib; then
    31027209      dlprefiles="$newdlprefiles"
    31037210    fi
     
    31057212    case $linkmode in
    31067213    oldlib)
    3107       if test -n "$deplibs"; then
    3108         $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
     7214      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
     7215        func_warning "\`-dlopen' is ignored for archives"
    31097216      fi
    31107217
    3111       if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
    3112         $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
    3113       fi
    3114 
    3115       if test -n "$rpath"; then
    3116         $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
    3117       fi
    3118 
    3119       if test -n "$xrpath"; then
    3120         $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
    3121       fi
    3122 
    3123       if test -n "$vinfo"; then
    3124         $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
    3125       fi
    3126 
    3127       if test -n "$release"; then
    3128         $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
    3129       fi
    3130 
    3131       if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
    3132         $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
    3133       fi
     7218      case " $deplibs" in
     7219      *\ -l* | *\ -L*)
     7220        func_warning "\`-l' and \`-L' are ignored for archives" ;;
     7221      esac
     7222
     7223      test -n "$rpath" && \
     7224        func_warning "\`-rpath' is ignored for archives"
     7225
     7226      test -n "$xrpath" && \
     7227        func_warning "\`-R' is ignored for archives"
     7228
     7229      test -n "$vinfo" && \
     7230        func_warning "\`-version-info/-version-number' is ignored for archives"
     7231
     7232      test -n "$release" && \
     7233        func_warning "\`-release' is ignored for archives"
     7234
     7235      test -n "$export_symbols$export_symbols_regex" && \
     7236        func_warning "\`-export-symbols' is ignored for archives"
    31347237
    31357238      # Now set the variables for building old libraries.
    31367239      build_libtool_libs=no
    31377240      oldlibs="$output"
    3138       objs="$objs$old_deplibs"
     7241      func_append objs "$old_deplibs"
    31397242      ;;
    31407243
     
    31437246      case $outputname in
    31447247      lib*)
    3145         name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
     7248        func_stripname 'lib' '.la' "$outputname"
     7249        name=$func_stripname_result
    31467250        eval shared_ext=\"$shrext_cmds\"
    31477251        eval libname=\"$libname_spec\"
    31487252        ;;
    31497253      *)
    3150         if test "$module" = no; then
    3151           $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
    3152           $echo "$help" 1>&2
    3153           exit $EXIT_FAILURE
    3154         fi
     7254        test "$module" = no && \
     7255          func_fatal_help "libtool library \`$output' must begin with \`lib'"
     7256
    31557257        if test "$need_lib_prefix" != no; then
    31567258          # Add the "lib" prefix for modules if required
    3157           name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
     7259          func_stripname '' '.la' "$outputname"
     7260          name=$func_stripname_result
    31587261          eval shared_ext=\"$shrext_cmds\"
    31597262          eval libname=\"$libname_spec\"
    31607263        else
    3161           libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
     7264          func_stripname '' '.la' "$outputname"
     7265          libname=$func_stripname_result
    31627266        fi
    31637267        ;;
     
    31667270      if test -n "$objs"; then
    31677271        if test "$deplibs_check_method" != pass_all; then
    3168           $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
    3169           exit $EXIT_FAILURE
     7272          func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
    31707273        else
    3171           $echo
    3172           $echo "*** Warning: Linking the shared library $output against the non-libtool"
    3173           $echo "*** objects $objs is not portable!"
    3174           libobjs="$libobjs $objs"
     7274          echo
     7275          $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
     7276          $ECHO "*** objects $objs is not portable!"
     7277          func_append libobjs " $objs"
    31757278        fi
    31767279      fi
    31777280
    3178       if test "$dlself" != no; then
    3179         $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
    3180       fi
     7281      test "$dlself" != no && \
     7282        func_warning "\`-dlopen self' is ignored for libtool libraries"
    31817283
    31827284      set dummy $rpath
    3183       if test "$#" -gt 2; then
    3184         $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
    3185       fi
    3186       install_libdir="$2"
     7285      shift
     7286      test "$#" -gt 1 && \
     7287        func_warning "ignoring multiple \`-rpath's for a libtool library"
     7288
     7289      install_libdir="$1"
    31877290
    31887291      oldlibs=
     
    31987301        fi
    31997302
    3200         if test -n "$vinfo"; then
    3201           $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
    3202         fi
    3203 
    3204         if test -n "$release"; then
    3205           $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
    3206         fi
     7303        test -n "$vinfo" && \
     7304          func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
     7305
     7306        test -n "$release" && \
     7307          func_warning "\`-release' is ignored for convenience libraries"
    32077308      else
    32087309
     
    32107311        save_ifs="$IFS"; IFS=':'
    32117312        set dummy $vinfo 0 0 0
     7313        shift
    32127314        IFS="$save_ifs"
    32137315
    3214         if test -n "$8"; then
    3215           $echo "$modename: too many parameters to \`-version-info'" 1>&2
    3216           $echo "$help" 1>&2
    3217           exit $EXIT_FAILURE
    3218         fi
     7316        test -n "$7" && \
     7317          func_fatal_help "too many parameters to \`-version-info'"
    32197318
    32207319        # convert absolute version numbers to libtool ages
     
    32247323        case $vinfo_number in
    32257324        yes)
    3226           number_major="$2"
    3227           number_minor="$3"
    3228           number_revision="$4"
     7325          number_major="$1"
     7326          number_minor="$2"
     7327          number_revision="$3"
    32297328          #
    32307329          # There are really only two kinds -- those that
     
    32357334          #
    32367335          case $version_type in
    3237           darwin|linux|osf|windows)
    3238             current=`expr $number_major + $number_minor`
     7336          # correct linux to gnu/linux during the next big refactor
     7337          darwin|linux|osf|windows|none)
     7338            func_arith $number_major + $number_minor
     7339            current=$func_arith_result
    32397340            age="$number_minor"
    32407341            revision="$number_revision"
    32417342            ;;
    3242           freebsd-aout|freebsd-elf|sunos)
     7343          freebsd-aout|freebsd-elf|qnx|sunos)
    32437344            current="$number_major"
    32447345            revision="$number_minor"
     
    32467347            ;;
    32477348          irix|nonstopux)
    3248             current=`expr $number_major + $number_minor - 1`
     7349            func_arith $number_major + $number_minor
     7350            current=$func_arith_result
    32497351            age="$number_minor"
    32507352            revision="$number_minor"
     7353            lt_irix_increment=no
     7354            ;;
     7355          *)
     7356            func_fatal_configuration "$modename: unknown library version type \`$version_type'"
    32517357            ;;
    32527358          esac
    32537359          ;;
    32547360        no)
    3255           current="$2"
    3256           revision="$3"
    3257           age="$4"
     7361          current="$1"
     7362          revision="$2"
     7363          age="$3"
    32587364          ;;
    32597365        esac
     
    32637369        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
    32647370        *)
    3265           $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
    3266           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    3267           exit $EXIT_FAILURE
     7371          func_error "CURRENT \`$current' must be a nonnegative integer"
     7372          func_fatal_error "\`$vinfo' is not valid version information"
    32687373          ;;
    32697374        esac
     
    32727377        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
    32737378        *)
    3274           $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
    3275           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    3276           exit $EXIT_FAILURE
     7379          func_error "REVISION \`$revision' must be a nonnegative integer"
     7380          func_fatal_error "\`$vinfo' is not valid version information"
    32777381          ;;
    32787382        esac
     
    32817385        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
    32827386        *)
    3283           $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
    3284           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    3285           exit $EXIT_FAILURE
     7387          func_error "AGE \`$age' must be a nonnegative integer"
     7388          func_fatal_error "\`$vinfo' is not valid version information"
    32867389          ;;
    32877390        esac
    32887391
    32897392        if test "$age" -gt "$current"; then
    3290           $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
    3291           $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    3292           exit $EXIT_FAILURE
     7393          func_error "AGE \`$age' is greater than the current interface number \`$current'"
     7394          func_fatal_error "\`$vinfo' is not valid version information"
    32937395        fi
    32947396
     
    33037405          # Like Linux, but with the current version available in
    33047406          # verstring for coding it into the library header
    3305           major=.`expr $current - $age`
     7407          func_arith $current - $age
     7408          major=.$func_arith_result
    33067409          versuffix="$major.$age.$revision"
    33077410          # Darwin ld doesn't like 0 for these options...
    3308           minor_current=`expr $current + 1`
    3309           verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
     7411          func_arith $current + 1
     7412          minor_current=$func_arith_result
     7413          xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
     7414          verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
    33107415          ;;
    33117416
     
    33177422        freebsd-elf)
    33187423          major=".$current"
    3319           versuffix=".$current";
     7424          versuffix=".$current"
    33207425          ;;
    33217426
    33227427        irix | nonstopux)
    3323           major=`expr $current - $age + 1`
     7428          if test "X$lt_irix_increment" = "Xno"; then
     7429            func_arith $current - $age
     7430          else
     7431            func_arith $current - $age + 1
     7432          fi
     7433          major=$func_arith_result
    33247434
    33257435          case $version_type in
     
    33327442          loop=$revision
    33337443          while test "$loop" -ne 0; do
    3334             iface=`expr $revision - $loop`
    3335             loop=`expr $loop - 1`
     7444            func_arith $revision - $loop
     7445            iface=$func_arith_result
     7446            func_arith $loop - 1
     7447            loop=$func_arith_result
    33367448            verstring="$verstring_prefix$major.$iface:$verstring"
    33377449          done
     
    33427454          ;;
    33437455
    3344         linux)
    3345           major=.`expr $current - $age`
     7456        linux) # correct to gnu/linux during the next big refactor
     7457          func_arith $current - $age
     7458          major=.$func_arith_result
    33467459          versuffix="$major.$age.$revision"
    33477460          ;;
    33487461
    33497462        osf)
    3350           major=.`expr $current - $age`
     7463          func_arith $current - $age
     7464          major=.$func_arith_result
    33517465          versuffix=".$current.$age.$revision"
    33527466          verstring="$current.$age.$revision"
     
    33557469          loop=$age
    33567470          while test "$loop" -ne 0; do
    3357             iface=`expr $current - $loop`
    3358             loop=`expr $loop - 1`
     7471            func_arith $current - $loop
     7472            iface=$func_arith_result
     7473            func_arith $loop - 1
     7474            loop=$func_arith_result
    33597475            verstring="$verstring:${iface}.0"
    33607476          done
    33617477
    33627478          # Make executables depend on our current version.
    3363           verstring="$verstring:${current}.0"
     7479          func_append verstring ":${current}.0"
     7480          ;;
     7481
     7482        qnx)
     7483          major=".$current"
     7484          versuffix=".$current"
    33647485          ;;
    33657486
     
    33727493          # Use '-' rather than '.', since we only want one
    33737494          # extension on DOS 8.3 filesystems.
    3374           major=`expr $current - $age`
     7495          func_arith $current - $age
     7496          major=$func_arith_result
    33757497          versuffix="-$major"
    33767498          ;;
    33777499
    33787500        *)
    3379           $echo "$modename: unknown library version type \`$version_type'" 1>&2
    3380           $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
    3381           exit $EXIT_FAILURE
     7501          func_fatal_configuration "unknown library version type \`$version_type'"
    33827502          ;;
    33837503        esac
     
    34137533        if test "$allow_undefined" = yes; then
    34147534          if test "$allow_undefined_flag" = unsupported; then
    3415             $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
     7535            func_warning "undefined symbols not allowed in $host shared libraries"
    34167536            build_libtool_libs=no
    34177537            build_old_libs=yes
     
    34217541          allow_undefined_flag="$no_undefined_flag"
    34227542        fi
     7543
    34237544      fi
    34247545
    3425       if test "$mode" != relink; then
     7546      func_generate_dlsyms "$libname" "$libname" "yes"
     7547      func_append libobjs " $symfileobj"
     7548      test "X$libobjs" = "X " && libobjs=
     7549
     7550      if test "$opt_mode" != relink; then
    34267551        # Remove our outputs, but don't remove object files since they
    34277552        # may have been created when compiling PIC objects.
    34287553        removelist=
    3429         tempremovelist=`$echo "$output_objdir/*"`
     7554        tempremovelist=`$ECHO "$output_objdir/*"`
    34307555        for p in $tempremovelist; do
    34317556          case $p in
    3432             *.$objext)
     7557            *.$objext | *.gcno)
    34337558               ;;
    34347559            $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
    34357560               if test "X$precious_files_regex" != "X"; then
    3436                  if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
    3437                 then
     7561                 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
     7562                then
    34387563                   continue
    34397564                 fi
    34407565               fi
    3441                removelist="$removelist $p"
     7566               func_append removelist " $p"
    34427567               ;;
    34437568            *) ;;
    34447569          esac
    34457570        done
    3446         if test -n "$removelist"; then
    3447           $show "${rm}r $removelist"
    3448           $run ${rm}r $removelist
    3449         fi
     7571        test -n "$removelist" && \
     7572          func_show_eval "${RM}r \$removelist"
    34507573      fi
    34517574
    34527575      # Now set the variables for building old libraries.
    34537576      if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
    3454         oldlibs="$oldlibs $output_objdir/$libname.$libext"
     7577        func_append oldlibs " $output_objdir/$libname.$libext"
    34557578
    34567579        # Transform .lo files to .o files.
    3457         oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
     7580        oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
    34587581      fi
    34597582
    34607583      # Eliminate all temporary directories.
    3461       for path in $notinst_path; do
    3462         lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
    3463         deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
    3464         dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
    3465       done
     7584      #for path in $notinst_path; do
     7585      # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
     7586      # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
     7587      # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
     7588      #done
    34667589
    34677590      if test -n "$xrpath"; then
     
    34697592        temp_xrpath=
    34707593        for libdir in $xrpath; do
    3471           temp_xrpath="$temp_xrpath -R$libdir"
     7594          func_replace_sysroot "$libdir"
     7595          func_append temp_xrpath " -R$func_replace_sysroot_result"
    34727596          case "$finalize_rpath " in
    34737597          *" $libdir "*) ;;
    3474           *) finalize_rpath="$finalize_rpath $libdir" ;;
     7598          *) func_append finalize_rpath " $libdir" ;;
    34757599          esac
    34767600        done
     
    34867610        case " $dlprefiles $dlfiles " in
    34877611        *" $lib "*) ;;
    3488         *) dlfiles="$dlfiles $lib" ;;
     7612        *) func_append dlfiles " $lib" ;;
    34897613        esac
    34907614      done
     
    34967620        case "$dlprefiles " in
    34977621        *" $lib "*) ;;
    3498         *) dlprefiles="$dlprefiles $lib" ;;
     7622        *) func_append dlprefiles " $lib" ;;
    34997623        esac
    35007624      done
     
    35037627        if test -n "$rpath"; then
    35047628          case $host in
    3505           *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
     7629          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
    35067630            # these systems don't actually have a c library (as such)!
    35077631            ;;
    35087632          *-*-rhapsody* | *-*-darwin1.[012])
    35097633            # Rhapsody C library is in the System framework
    3510             deplibs="$deplibs -framework System"
     7634            func_append deplibs " System.ltframework"
    35117635            ;;
    35127636          *-*-netbsd*)
     
    35227646            # Compiler inserts libc in the correct place for threads to work
    35237647            ;;
    3524           *)
     7648          *)
    35257649            # Add libc to deplibs on all other systems if necessary.
    35267650            if test "$build_libtool_need_lc" = "yes"; then
    3527               deplibs="$deplibs -lc"
     7651              func_append deplibs " -lc"
    35287652            fi
    35297653            ;;
     
    35597683          # against the deplibs as a proxy for the library.  Then we can check
    35607684          # whether they linked in statically or dynamically with ldd.
    3561           $rm conftest.c
     7685          $opt_dry_run || $RM conftest.c
    35627686          cat > conftest.c <<EOF
    35637687          int main() { return 0; }
    35647688EOF
    3565           $rm conftest
    3566           $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
    3567           if test "$?" -eq 0 ; then
     7689          $opt_dry_run || $RM conftest
     7690          if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
    35687691            ldd_output=`ldd conftest`
    35697692            for i in $deplibs; do
    3570               name=`expr $i : '-l\(.*\)'`
    3571               # If $name is empty we are operating on a -L argument.
    3572               if test "$name" != "" && test "$name" -ne "0"; then
     7693              case $i in
     7694              -l*)
     7695                func_stripname -l '' "$i"
     7696                name=$func_stripname_result
    35737697                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
    35747698                  case " $predeps $postdeps " in
    35757699                  *" $i "*)
    3576                     newdeplibs="$newdeplibs $i"
     7700                    func_append newdeplibs " $i"
    35777701                    i=""
    35787702                    ;;
    35797703                  esac
    3580                 fi
     7704                fi
    35817705                if test -n "$i" ; then
    3582                   libname=`eval \\$echo \"$libname_spec\"`
    3583                   deplib_matches=`eval \\$echo \"$library_names_spec\"`
    3584                   set dummy $deplib_matches
    3585                   deplib_match=$2
     7706                  libname=`eval "\\$ECHO \"$libname_spec\""`
     7707                  deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
     7708                  set dummy $deplib_matches; shift
     7709                  deplib_match=$1
    35867710                  if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
    3587                     newdeplibs="$newdeplibs $i"
     7711                    func_append newdeplibs " $i"
    35887712                  else
    35897713                    droppeddeps=yes
    3590                     $echo
    3591                     $echo "*** Warning: dynamic linker does not accept needed library $i."
    3592                     $echo "*** I have the capability to make that library automatically link in when"
    3593                     $echo "*** you link to this library.  But I can only do this if you have a"
    3594                     $echo "*** shared version of the library, which I believe you do not have"
    3595                     $echo "*** because a test_compile did reveal that the linker did not use it for"
    3596                     $echo "*** its dynamic dependency list that programs get resolved with at runtime."
     7714                    echo
     7715                    $ECHO "*** Warning: dynamic linker does not accept needed library $i."
     7716                    echo "*** I have the capability to make that library automatically link in when"
     7717                    echo "*** you link to this library.  But I can only do this if you have a"
     7718                    echo "*** shared version of the library, which I believe you do not have"
     7719                    echo "*** because a test_compile did reveal that the linker did not use it for"
     7720                    echo "*** its dynamic dependency list that programs get resolved with at runtime."
    35977721                  fi
    35987722                fi
    3599               else
    3600                 newdeplibs="$newdeplibs $i"
    3601               fi
     7723                ;;
     7724              *)
     7725                func_append newdeplibs " $i"
     7726                ;;
     7727              esac
    36027728            done
    36037729          else
     
    36057731            # the situation: Compile a separate program for each library.
    36067732            for i in $deplibs; do
    3607               name=`expr $i : '-l\(.*\)'`
    3608               # If $name is empty we are operating on a -L argument.
    3609               if test "$name" != "" && test "$name" != "0"; then
    3610                 $rm conftest
    3611                 $LTCC $LTCFLAGS -o conftest conftest.c $i
    3612                 # Did it work?
    3613                 if test "$?" -eq 0 ; then
     7733              case $i in
     7734              -l*)
     7735                func_stripname -l '' "$i"
     7736                name=$func_stripname_result
     7737                $opt_dry_run || $RM conftest
     7738                if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
    36147739                  ldd_output=`ldd conftest`
    36157740                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
    36167741                    case " $predeps $postdeps " in
    36177742                    *" $i "*)
    3618                       newdeplibs="$newdeplibs $i"
     7743                      func_append newdeplibs " $i"
    36197744                      i=""
    36207745                      ;;
     
    36227747                  fi
    36237748                  if test -n "$i" ; then
    3624                     libname=`eval \\$echo \"$libname_spec\"`
    3625                     deplib_matches=`eval \\$echo \"$library_names_spec\"`
    3626                     set dummy $deplib_matches
    3627                     deplib_match=$2
     7749                    libname=`eval "\\$ECHO \"$libname_spec\""`
     7750                    deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
     7751                    set dummy $deplib_matches; shift
     7752                    deplib_match=$1
    36287753                    if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
    3629                       newdeplibs="$newdeplibs $i"
     7754                      func_append newdeplibs " $i"
    36307755                    else
    36317756                      droppeddeps=yes
    3632                       $echo
    3633                       $echo "*** Warning: dynamic linker does not accept needed library $i."
    3634                       $echo "*** I have the capability to make that library automatically link in when"
    3635                       $echo "*** you link to this library.  But I can only do this if you have a"
    3636                       $echo "*** shared version of the library, which you do not appear to have"
    3637                       $echo "*** because a test_compile did reveal that the linker did not use this one"
    3638                       $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
     7757                      echo
     7758                      $ECHO "*** Warning: dynamic linker does not accept needed library $i."
     7759                      echo "*** I have the capability to make that library automatically link in when"
     7760                      echo "*** you link to this library.  But I can only do this if you have a"
     7761                      echo "*** shared version of the library, which you do not appear to have"
     7762                      echo "*** because a test_compile did reveal that the linker did not use this one"
     7763                      echo "*** as a dynamic dependency that programs can get resolved with at runtime."
    36397764                    fi
    36407765                  fi
    36417766                else
    36427767                  droppeddeps=yes
    3643                   $echo
    3644                   $echo "*** Warning!  Library $i is needed by this library but I was not able to"
    3645                   $echo "*** make it link in!  You will probably need to install it or some"
    3646                   $echo "*** library that it depends on before this library will be fully"
    3647                   $echo "*** functional.  Installing it before continuing would be even better."
     7768                  echo
     7769                  $ECHO "*** Warning!  Library $i is needed by this library but I was not able to"
     7770                  echo "*** make it link in!  You will probably need to install it or some"
     7771                  echo "*** library that it depends on before this library will be fully"
     7772                  echo "*** functional.  Installing it before continuing would be even better."
    36487773                fi
    3649               else
    3650                 newdeplibs="$newdeplibs $i"
    3651               fi
     7774                ;;
     7775              *)
     7776                func_append newdeplibs " $i"
     7777                ;;
     7778              esac
    36527779            done
    36537780          fi
    36547781          ;;
    36557782        file_magic*)
    3656           set dummy $deplibs_check_method
    3657           file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
     7783          set dummy $deplibs_check_method; shift
     7784          file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
    36587785          for a_deplib in $deplibs; do
    3659             name=`expr $a_deplib : '-l\(.*\)'`
    3660             # If $name is empty we are operating on a -L argument.
    3661             if test "$name" != "" && test  "$name" != "0"; then
     7786            case $a_deplib in
     7787            -l*)
     7788              func_stripname -l '' "$a_deplib"
     7789              name=$func_stripname_result
    36627790              if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
    36637791                case " $predeps $postdeps " in
    36647792                *" $a_deplib "*)
    3665                   newdeplibs="$newdeplibs $a_deplib"
     7793                  func_append newdeplibs " $a_deplib"
    36667794                  a_deplib=""
    36677795                  ;;
     
    36697797              fi
    36707798              if test -n "$a_deplib" ; then
    3671                 libname=`eval \\$echo \"$libname_spec\"`
     7799                libname=`eval "\\$ECHO \"$libname_spec\""`
     7800                if test -n "$file_magic_glob"; then
     7801                  libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
     7802                else
     7803                  libnameglob=$libname
     7804                fi
     7805                test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
    36727806                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
    3673                   potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
     7807                  if test "$want_nocaseglob" = yes; then
     7808                    shopt -s nocaseglob
     7809                    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
     7810                    $nocaseglob
     7811                  else
     7812                    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
     7813                  fi
    36747814                  for potent_lib in $potential_libs; do
    36757815                      # Follow soft links.
    3676                       if ls -lLd "$potent_lib" 2>/dev/null \
    3677                          | grep " -> " >/dev/null; then
     7816                      if ls -lLd "$potent_lib" 2>/dev/null |
     7817                         $GREP " -> " >/dev/null; then
    36787818                        continue
    36797819                      fi
     
    36887828                        case $potliblink in
    36897829                        [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
    3690                         *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
     7830                        *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
    36917831                        esac
    36927832                      done
    3693                       # It is ok to link against an archive when
    3694                       # building a shared library.
    3695                       if $AR -t $potlib > /dev/null 2>&1; then
    3696                         newdeplibs="$newdeplibs $a_deplib"
    3697                         a_deplib=""
    3698                         break 2
    3699                       fi
    3700                       if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
    3701                          | ${SED} 10q \
    3702                          | $EGREP "$file_magic_regex" > /dev/null; then
    3703                         newdeplibs="$newdeplibs $a_deplib"
     7833                      if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
     7834                         $SED -e 10q |
     7835                         $EGREP "$file_magic_regex" > /dev/null; then
     7836                        func_append newdeplibs " $a_deplib"
    37047837                        a_deplib=""
    37057838                        break 2
     
    37107843              if test -n "$a_deplib" ; then
    37117844                droppeddeps=yes
    3712                 $echo
    3713                 $echo "*** Warning: linker path does not have real file for library $a_deplib."
    3714                 $echo "*** I have the capability to make that library automatically link in when"
    3715                 $echo "*** you link to this library.  But I can only do this if you have a"
    3716                 $echo "*** shared version of the library, which you do not appear to have"
    3717                 $echo "*** because I did check the linker path looking for a file starting"
     7845                echo
     7846                $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
     7847                echo "*** I have the capability to make that library automatically link in when"
     7848                echo "*** you link to this library.  But I can only do this if you have a"
     7849                echo "*** shared version of the library, which you do not appear to have"
     7850                echo "*** because I did check the linker path looking for a file starting"
    37187851                if test -z "$potlib" ; then
    3719                   $echo "*** with $libname but no candidates were found. (...for file magic test)"
     7852                  $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
    37207853                else
    3721                   $echo "*** with $libname and none of the candidates passed a file format test"
    3722                   $echo "*** using a file magic. Last file checked: $potlib"
     7854                  $ECHO "*** with $libname and none of the candidates passed a file format test"
     7855                  $ECHO "*** using a file magic. Last file checked: $potlib"
    37237856                fi
    37247857              fi
    3725             else
     7858              ;;
     7859            *)
    37267860              # Add a -L argument.
    3727               newdeplibs="$newdeplibs $a_deplib"
    3728             fi
     7861              func_append newdeplibs " $a_deplib"
     7862              ;;
     7863            esac
    37297864          done # Gone through all deplibs.
    37307865          ;;
    37317866        match_pattern*)
    3732           set dummy $deplibs_check_method
    3733           match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
     7867          set dummy $deplibs_check_method; shift
     7868          match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
    37347869          for a_deplib in $deplibs; do
    3735             name=`expr $a_deplib : '-l\(.*\)'`
    3736             # If $name is empty we are operating on a -L argument.
    3737             if test -n "$name" && test "$name" != "0"; then
     7870            case $a_deplib in
     7871            -l*)
     7872              func_stripname -l '' "$a_deplib"
     7873              name=$func_stripname_result
    37387874              if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
    37397875                case " $predeps $postdeps " in
    37407876                *" $a_deplib "*)
    3741                   newdeplibs="$newdeplibs $a_deplib"
     7877                  func_append newdeplibs " $a_deplib"
    37427878                  a_deplib=""
    37437879                  ;;
     
    37457881              fi
    37467882              if test -n "$a_deplib" ; then
    3747                 libname=`eval \\$echo \"$libname_spec\"`
     7883                libname=`eval "\\$ECHO \"$libname_spec\""`
    37487884                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
    37497885                  potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
    37507886                  for potent_lib in $potential_libs; do
    37517887                    potlib="$potent_lib" # see symlink-check above in file_magic test
    3752                     if eval $echo \"$potent_lib\" 2>/dev/null \
    3753                         | ${SED} 10q \
    3754                         | $EGREP "$match_pattern_regex" > /dev/null; then
    3755                       newdeplibs="$newdeplibs $a_deplib"
     7888                    if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
     7889                       $EGREP "$match_pattern_regex" > /dev/null; then
     7890                      func_append newdeplibs " $a_deplib"
    37567891                      a_deplib=""
    37577892                      break 2
     
    37627897              if test -n "$a_deplib" ; then
    37637898                droppeddeps=yes
    3764                 $echo
    3765                 $echo "*** Warning: linker path does not have real file for library $a_deplib."
    3766                 $echo "*** I have the capability to make that library automatically link in when"
    3767                 $echo "*** you link to this library.  But I can only do this if you have a"
    3768                 $echo "*** shared version of the library, which you do not appear to have"
    3769                 $echo "*** because I did check the linker path looking for a file starting"
     7899                echo
     7900                $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
     7901                echo "*** I have the capability to make that library automatically link in when"
     7902                echo "*** you link to this library.  But I can only do this if you have a"
     7903                echo "*** shared version of the library, which you do not appear to have"
     7904                echo "*** because I did check the linker path looking for a file starting"
    37707905                if test -z "$potlib" ; then
    3771                   $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
     7906                  $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
    37727907                else
    3773                   $echo "*** with $libname and none of the candidates passed a file format test"
    3774                   $echo "*** using a regex pattern. Last file checked: $potlib"
     7908                  $ECHO "*** with $libname and none of the candidates passed a file format test"
     7909                  $ECHO "*** using a regex pattern. Last file checked: $potlib"
    37757910                fi
    37767911              fi
    3777             else
     7912              ;;
     7913            *)
    37787914              # Add a -L argument.
    3779               newdeplibs="$newdeplibs $a_deplib"
    3780             fi
     7915              func_append newdeplibs " $a_deplib"
     7916              ;;
     7917            esac
    37817918          done # Gone through all deplibs.
    37827919          ;;
    37837920        none | unknown | *)
    37847921          newdeplibs=""
    3785           tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
    3786             -e 's/ -[LR][^ ]*//g'`
     7922          tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
    37877923          if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
    37887924            for i in $predeps $postdeps ; do
    37897925              # can't use Xsed below, because $i might contain '/'
    3790               tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
     7926              tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
    37917927            done
    37927928          fi
    3793           if $echo "X $tmp_deplibs" | $Xsed -e 's/[     ]//g' \
    3794             | grep . >/dev/null; then
    3795             $echo
     7929          case $tmp_deplibs in
     7930          *[!\  \ ]*)
     7931            echo
    37967932            if test "X$deplibs_check_method" = "Xnone"; then
    3797               $echo "*** Warning: inter-library dependencies are not supported in this platform."
     7933              echo "*** Warning: inter-library dependencies are not supported in this platform."
    37987934            else
    3799               $echo "*** Warning: inter-library dependencies are not known to be supported."
     7935              echo "*** Warning: inter-library dependencies are not known to be supported."
    38007936            fi
    3801             $echo "*** All declared inter-library dependencies are being dropped."
     7937            echo "*** All declared inter-library dependencies are being dropped."
    38027938            droppeddeps=yes
    3803           fi
     7939            ;;
     7940          esac
    38047941          ;;
    38057942        esac
     
    38127949        case $host in
    38137950        *-*-rhapsody* | *-*-darwin1.[012])
    3814           # On Rhapsody replace the C library is the System framework
    3815           newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
     7951          # On Rhapsody replace the C library with the System framework
     7952          newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
    38167953          ;;
    38177954        esac
     
    38197956        if test "$droppeddeps" = yes; then
    38207957          if test "$module" = yes; then
    3821             $echo
    3822             $echo "*** Warning: libtool could not satisfy all declared inter-library"
    3823             $echo "*** dependencies of module $libname.  Therefore, libtool will create"
    3824             $echo "*** a static module, that should work as long as the dlopening"
    3825             $echo "*** application is linked with the -dlopen flag."
     7958            echo
     7959            echo "*** Warning: libtool could not satisfy all declared inter-library"
     7960            $ECHO "*** dependencies of module $libname.  Therefore, libtool will create"
     7961            echo "*** a static module, that should work as long as the dlopening"
     7962            echo "*** application is linked with the -dlopen flag."
    38267963            if test -z "$global_symbol_pipe"; then
    3827               $echo
    3828               $echo "*** However, this would only work if libtool was able to extract symbol"
    3829               $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
    3830               $echo "*** not find such a program.  So, this module is probably useless."
    3831               $echo "*** \`nm' from GNU binutils and a full rebuild may help."
     7964              echo
     7965              echo "*** However, this would only work if libtool was able to extract symbol"
     7966              echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
     7967              echo "*** not find such a program.  So, this module is probably useless."
     7968              echo "*** \`nm' from GNU binutils and a full rebuild may help."
    38327969            fi
    38337970            if test "$build_old_libs" = no; then
     
    38397976            fi
    38407977          else
    3841             $echo "*** The inter-library dependencies that have been dropped here will be"
    3842             $echo "*** automatically added whenever a program is linked with this library"
    3843             $echo "*** or is declared to -dlopen it."
     7978            echo "*** The inter-library dependencies that have been dropped here will be"
     7979            echo "*** automatically added whenever a program is linked with this library"
     7980            echo "*** or is declared to -dlopen it."
    38447981
    38457982            if test "$allow_undefined" = no; then
    3846               $echo
    3847               $echo "*** Since this library must not contain undefined symbols,"
    3848               $echo "*** because either the platform does not support them or"
    3849               $echo "*** it was explicitly requested with -no-undefined,"
    3850               $echo "*** libtool will only create a static version of it."
     7983              echo
     7984              echo "*** Since this library must not contain undefined symbols,"
     7985              echo "*** because either the platform does not support them or"
     7986              echo "*** it was explicitly requested with -no-undefined,"
     7987              echo "*** libtool will only create a static version of it."
    38517988              if test "$build_old_libs" = no; then
    38527989                oldlibs="$output_objdir/$libname.$libext"
     
    38627999        deplibs=$newdeplibs
    38638000      fi
    3864 
     8001      # Time to change all our "foo.ltframework" stuff back to "-framework foo"
     8002      case $host in
     8003        *-*-darwin*)
     8004          newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     8005          new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     8006          deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     8007          ;;
     8008      esac
    38658009
    38668010      # move library search paths that coincide with paths to not yet
     
    38738017          case " $deplibs " in
    38748018          *" -L$path/$objdir "*)
    3875             new_libs="$new_libs -L$path/$objdir" ;;
     8019            func_append new_libs " -L$path/$objdir" ;;
    38768020          esac
    38778021          ;;
     
    38838027          case " $new_libs " in
    38848028          *" $deplib "*) ;;
    3885           *) new_libs="$new_libs $deplib" ;;
     8029          *) func_append new_libs " $deplib" ;;
    38868030          esac
    38878031          ;;
    3888         *) new_libs="$new_libs $deplib" ;;
     8032        *) func_append new_libs " $deplib" ;;
    38898033        esac
    38908034      done
    38918035      deplibs="$new_libs"
    3892 
    38938036
    38948037      # All the library-specific variables (install_libdir is set above).
     
    38998042      # Test again, we may have decided not to build it any more
    39008043      if test "$build_libtool_libs" = yes; then
     8044        # Remove ${wl} instances when linking with ld.
     8045        # FIXME: should test the right _cmds variable.
     8046        case $archive_cmds in
     8047          *\$LD\ *) wl= ;;
     8048        esac
    39018049        if test "$hardcode_into_libs" = yes; then
    39028050          # Hardcode the library paths
     
    39048052          dep_rpath=
    39058053          rpath="$finalize_rpath"
    3906           test "$mode" != relink && rpath="$compile_rpath$rpath"
     8054          test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
    39078055          for libdir in $rpath; do
    39088056            if test -n "$hardcode_libdir_flag_spec"; then
    39098057              if test -n "$hardcode_libdir_separator"; then
     8058                func_replace_sysroot "$libdir"
     8059                libdir=$func_replace_sysroot_result
    39108060                if test -z "$hardcode_libdirs"; then
    39118061                  hardcode_libdirs="$libdir"
     
    39168066                    ;;
    39178067                  *)
    3918                     hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
     8068                    func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
    39198069                    ;;
    39208070                  esac
     
    39228072              else
    39238073                eval flag=\"$hardcode_libdir_flag_spec\"
    3924                 dep_rpath="$dep_rpath $flag"
     8074                func_append dep_rpath " $flag"
    39258075              fi
    39268076            elif test -n "$runpath_var"; then
    39278077              case "$perm_rpath " in
    39288078              *" $libdir "*) ;;
    3929               *) perm_rpath="$perm_rpath $libdir" ;;
     8079              *) func_append perm_rpath " $libdir" ;;
    39308080              esac
    39318081            fi
     
    39358085             test -n "$hardcode_libdirs"; then
    39368086            libdir="$hardcode_libdirs"
    3937             if test -n "$hardcode_libdir_flag_spec_ld"; then
    3938               eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
    3939             else
    3940               eval dep_rpath=\"$hardcode_libdir_flag_spec\"
    3941             fi
     8087            eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
    39428088          fi
    39438089          if test -n "$runpath_var" && test -n "$perm_rpath"; then
     
    39458091            rpath=
    39468092            for dir in $perm_rpath; do
    3947               rpath="$rpath$dir:"
     8093              func_append rpath "$dir:"
    39488094            done
    39498095            eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
     
    39538099
    39548100        shlibpath="$finalize_shlibpath"
    3955         test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
     8101        test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
    39568102        if test -n "$shlibpath"; then
    39578103          eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
     
    39628108        eval library_names=\"$library_names_spec\"
    39638109        set dummy $library_names
    3964         realname="$2"
    3965         shift; shift
     8110        shift
     8111        realname="$1"
     8112        shift
    39668113
    39678114        if test -n "$soname_spec"; then
     
    39788125        for link
    39798126        do
    3980           linknames="$linknames $link"
     8127          func_append linknames " $link"
    39818128        done
    39828129
    39838130        # Use standard objects if they are pic
    3984         test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
     8131        test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
     8132        test "X$libobjs" = "X " && libobjs=
     8133
     8134        delfiles=
     8135        if test -n "$export_symbols" && test -n "$include_expsyms"; then
     8136          $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
     8137          export_symbols="$output_objdir/$libname.uexp"
     8138          func_append delfiles " $export_symbols"
     8139        fi
     8140
     8141        orig_export_symbols=
     8142        case $host_os in
     8143        cygwin* | mingw* | cegcc*)
     8144          if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
     8145            # exporting using user supplied symfile
     8146            if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
     8147              # and it's NOT already a .def file. Must figure out
     8148              # which of the given symbols are data symbols and tag
     8149              # them as such. So, trigger use of export_symbols_cmds.
     8150              # export_symbols gets reassigned inside the "prepare
     8151              # the list of exported symbols" if statement, so the
     8152              # include_expsyms logic still works.
     8153              orig_export_symbols="$export_symbols"
     8154              export_symbols=
     8155              always_export_symbols=yes
     8156            fi
     8157          fi
     8158          ;;
     8159        esac
    39858160
    39868161        # Prepare the list of exported symbols
    39878162        if test -z "$export_symbols"; then
    39888163          if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
    3989             $show "generating symbol list for \`$libname.la'"
     8164            func_verbose "generating symbol list for \`$libname.la'"
    39908165            export_symbols="$output_objdir/$libname.exp"
    3991             $run $rm $export_symbols
     8166            $opt_dry_run || $RM $export_symbols
    39928167            cmds=$export_symbols_cmds
    39938168            save_ifs="$IFS"; IFS='~'
    3994             for cmd in $cmds; do
     8169            for cmd1 in $cmds; do
    39958170              IFS="$save_ifs"
    3996               eval cmd=\"$cmd\"
    3997               if len=`expr "X$cmd" : ".*"` &&
    3998                test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
    3999                 $show "$cmd"
    4000                 $run eval "$cmd" || exit $?
    4001                 skipped_export=false
     8171              # Take the normal branch if the nm_file_list_spec branch
     8172              # doesn't work or if tool conversion is not needed.
     8173              case $nm_file_list_spec~$to_tool_file_cmd in
     8174                *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
     8175                  try_normal_branch=yes
     8176                  eval cmd=\"$cmd1\"
     8177                  func_len " $cmd"
     8178                  len=$func_len_result
     8179                  ;;
     8180                *)
     8181                  try_normal_branch=no
     8182                  ;;
     8183              esac
     8184              if test "$try_normal_branch" = yes \
     8185                 && { test "$len" -lt "$max_cmd_len" \
     8186                      || test "$max_cmd_len" -le -1; }
     8187              then
     8188                func_show_eval "$cmd" 'exit $?'
     8189                skipped_export=false
     8190              elif test -n "$nm_file_list_spec"; then
     8191                func_basename "$output"
     8192                output_la=$func_basename_result
     8193                save_libobjs=$libobjs
     8194                save_output=$output
     8195                output=${output_objdir}/${output_la}.nm
     8196                func_to_tool_file "$output"
     8197                libobjs=$nm_file_list_spec$func_to_tool_file_result
     8198                func_append delfiles " $output"
     8199                func_verbose "creating $NM input file list: $output"
     8200                for obj in $save_libobjs; do
     8201                  func_to_tool_file "$obj"
     8202                  $ECHO "$func_to_tool_file_result"
     8203                done > "$output"
     8204                eval cmd=\"$cmd1\"
     8205                func_show_eval "$cmd" 'exit $?'
     8206                output=$save_output
     8207                libobjs=$save_libobjs
     8208                skipped_export=false
    40028209              else
    4003                 # The command line is too long to execute in one step.
    4004                 $show "using reloadable object file for export list..."
    4005                 skipped_export=:
     8210                # The command line is too long to execute in one step.
     8211                func_verbose "using reloadable object file for export list..."
     8212                skipped_export=:
    40068213                # Break out early, otherwise skipped_export may be
    40078214                # set to false by a later but shorter cmd.
     
    40108217            done
    40118218            IFS="$save_ifs"
    4012             if test -n "$export_symbols_regex"; then
    4013               $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
    4014               $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
    4015               $show "$mv \"${export_symbols}T\" \"$export_symbols\""
    4016               $run eval '$mv "${export_symbols}T" "$export_symbols"'
     8219            if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
     8220              func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
     8221              func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
    40178222            fi
    40188223          fi
     
    40208225
    40218226        if test -n "$export_symbols" && test -n "$include_expsyms"; then
    4022           $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
     8227          tmp_export_symbols="$export_symbols"
     8228          test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
     8229          $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
     8230        fi
     8231
     8232        if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
     8233          # The given exports_symbols file has to be filtered, so filter it.
     8234          func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
     8235          # FIXME: $output_objdir/$libname.filter potentially contains lots of
     8236          # 's' commands which not all seds can handle. GNU sed should be fine
     8237          # though. Also, the filter scales superlinearly with the number of
     8238          # global variables. join(1) would be nice here, but unfortunately
     8239          # isn't a blessed tool.
     8240          $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
     8241          func_append delfiles " $export_symbols $output_objdir/$libname.filter"
     8242          export_symbols=$output_objdir/$libname.def
     8243          $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
    40238244        fi
    40248245
    40258246        tmp_deplibs=
    40268247        for test_deplib in $deplibs; do
    4027                 case " $convenience " in
    4028                 *" $test_deplib "*) ;;
    4029                 *)
    4030                         tmp_deplibs="$tmp_deplibs $test_deplib"
    4031                         ;;
    4032                 esac
     8248          case " $convenience " in
     8249          *" $test_deplib "*) ;;
     8250          *)
     8251            func_append tmp_deplibs " $test_deplib"
     8252            ;;
     8253          esac
    40338254        done
    40348255        deplibs="$tmp_deplibs"
    40358256
    40368257        if test -n "$convenience"; then
     8258          if test -n "$whole_archive_flag_spec" &&
     8259            test "$compiler_needs_object" = yes &&
     8260            test -z "$libobjs"; then
     8261            # extract the archives, so we have objects to list.
     8262            # TODO: could optimize this to just extract one archive.
     8263            whole_archive_flag_spec=
     8264          fi
    40378265          if test -n "$whole_archive_flag_spec"; then
    40388266            save_libobjs=$libobjs
    40398267            eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
     8268            test "X$libobjs" = "X " && libobjs=
    40408269          else
    40418270            gentop="$output_objdir/${outputname}x"
    4042             generated="$generated $gentop"
     8271            func_append generated " $gentop"
    40438272
    40448273            func_extract_archives $gentop $convenience
    4045             libobjs="$libobjs $func_extract_archives_result"
     8274            func_append libobjs " $func_extract_archives_result"
     8275            test "X$libobjs" = "X " && libobjs=
    40468276          fi
    40478277        fi
    4048        
     8278
    40498279        if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
    40508280          eval flag=\"$thread_safe_flag_spec\"
    4051           linker_flags="$linker_flags $flag"
     8281          func_append linker_flags " $flag"
    40528282        fi
    40538283
    40548284        # Make a backup of the uninstalled library when relinking
    4055         if test "$mode" = relink; then
    4056           $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
     8285        if test "$opt_mode" = relink; then
     8286          $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
    40578287        fi
    40588288
     
    40678297          fi
    40688298        else
    4069         if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
    4070           eval test_cmds=\"$archive_expsym_cmds\"
    4071           cmds=$archive_expsym_cmds
    4072         else
    4073           eval test_cmds=\"$archive_cmds\"
    4074           cmds=$archive_cmds
     8299          if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
     8300            eval test_cmds=\"$archive_expsym_cmds\"
     8301            cmds=$archive_expsym_cmds
     8302          else
     8303            eval test_cmds=\"$archive_cmds\"
     8304            cmds=$archive_cmds
    40758305          fi
    40768306        fi
    40778307
    40788308        if test "X$skipped_export" != "X:" &&
    4079            len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
    4080            test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
     8309           func_len " $test_cmds" &&
     8310           len=$func_len_result &&
     8311           test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
    40818312          :
    40828313        else
    4083           # The command line is too long to link in one step, link piecewise.
    4084           $echo "creating reloadable object files..."
     8314          # The command line is too long to link in one step, link piecewise
     8315          # or, if using GNU ld and skipped_export is not :, use a linker
     8316          # script.
    40858317
    40868318          # Save the value of $output and $libobjs because we want to
     
    40968328          fi
    40978329          save_output=$output
    4098           output_la=`$echo "X$output" | $Xsed -e "$basename"`
     8330          func_basename "$output"
     8331          output_la=$func_basename_result
    40998332
    41008333          # Clear the reloadable object creation command queue and
     
    41038336          concat_cmds=
    41048337          objlist=
    4105           delfiles=
    41068338          last_robj=
    41078339          k=1
    4108           output=$output_objdir/$output_la-${k}.$objext
    4109           # Loop over the list of objects to be linked.
    4110           for obj in $save_libobjs
    4111           do
    4112             eval test_cmds=\"$reload_cmds $objlist $last_robj\"
    4113             if test "X$objlist" = X ||
    4114                { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
    4115                  test "$len" -le "$max_cmd_len"; }; then
    4116               objlist="$objlist $obj"
     8340
     8341          if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
     8342            output=${output_objdir}/${output_la}.lnkscript
     8343            func_verbose "creating GNU ld script: $output"
     8344            echo 'INPUT (' > $output
     8345            for obj in $save_libobjs
     8346            do
     8347              func_to_tool_file "$obj"
     8348              $ECHO "$func_to_tool_file_result" >> $output
     8349            done
     8350            echo ')' >> $output
     8351            func_append delfiles " $output"
     8352            func_to_tool_file "$output"
     8353            output=$func_to_tool_file_result
     8354          elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
     8355            output=${output_objdir}/${output_la}.lnk
     8356            func_verbose "creating linker input file list: $output"
     8357            : > $output
     8358            set x $save_libobjs
     8359            shift
     8360            firstobj=
     8361            if test "$compiler_needs_object" = yes; then
     8362              firstobj="$1 "
     8363              shift
     8364            fi
     8365            for obj
     8366            do
     8367              func_to_tool_file "$obj"
     8368              $ECHO "$func_to_tool_file_result" >> $output
     8369            done
     8370            func_append delfiles " $output"
     8371            func_to_tool_file "$output"
     8372            output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
     8373          else
     8374            if test -n "$save_libobjs"; then
     8375              func_verbose "creating reloadable object files..."
     8376              output=$output_objdir/$output_la-${k}.$objext
     8377              eval test_cmds=\"$reload_cmds\"
     8378              func_len " $test_cmds"
     8379              len0=$func_len_result
     8380              len=$len0
     8381
     8382              # Loop over the list of objects to be linked.
     8383              for obj in $save_libobjs
     8384              do
     8385                func_len " $obj"
     8386                func_arith $len + $func_len_result
     8387                len=$func_arith_result
     8388                if test "X$objlist" = X ||
     8389                   test "$len" -lt "$max_cmd_len"; then
     8390                  func_append objlist " $obj"
     8391                else
     8392                  # The command $test_cmds is almost too long, add a
     8393                  # command to the queue.
     8394                  if test "$k" -eq 1 ; then
     8395                    # The first file doesn't have a previous command to add.
     8396                    reload_objs=$objlist
     8397                    eval concat_cmds=\"$reload_cmds\"
     8398                  else
     8399                    # All subsequent reloadable object files will link in
     8400                    # the last one created.
     8401                    reload_objs="$objlist $last_robj"
     8402                    eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
     8403                  fi
     8404                  last_robj=$output_objdir/$output_la-${k}.$objext
     8405                  func_arith $k + 1
     8406                  k=$func_arith_result
     8407                  output=$output_objdir/$output_la-${k}.$objext
     8408                  objlist=" $obj"
     8409                  func_len " $last_robj"
     8410                  func_arith $len0 + $func_len_result
     8411                  len=$func_arith_result
     8412                fi
     8413              done
     8414              # Handle the remaining objects by creating one last
     8415              # reloadable object file.  All subsequent reloadable object
     8416              # files will link in the last one created.
     8417              test -z "$concat_cmds" || concat_cmds=$concat_cmds~
     8418              reload_objs="$objlist $last_robj"
     8419              eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
     8420              if test -n "$last_robj"; then
     8421                eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
     8422              fi
     8423              func_append delfiles " $output"
     8424
    41178425            else
    4118               # The command $test_cmds is almost too long, add a
    4119               # command to the queue.
    4120               if test "$k" -eq 1 ; then
    4121                 # The first file doesn't have a previous command to add.
    4122                 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
    4123               else
    4124                 # All subsequent reloadable object files will link in
    4125                 # the last one created.
    4126                 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
     8426              output=
     8427            fi
     8428
     8429            if ${skipped_export-false}; then
     8430              func_verbose "generating symbol list for \`$libname.la'"
     8431              export_symbols="$output_objdir/$libname.exp"
     8432              $opt_dry_run || $RM $export_symbols
     8433              libobjs=$output
     8434              # Append the command to create the export file.
     8435              test -z "$concat_cmds" || concat_cmds=$concat_cmds~
     8436              eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
     8437              if test -n "$last_robj"; then
     8438                eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
    41278439              fi
    4128               last_robj=$output_objdir/$output_la-${k}.$objext
    4129               k=`expr $k + 1`
    4130               output=$output_objdir/$output_la-${k}.$objext
    4131               objlist=$obj
    4132               len=1
    41338440            fi
    4134           done
    4135           # Handle the remaining objects by creating one last
    4136           # reloadable object file.  All subsequent reloadable object
    4137           # files will link in the last one created.
    4138           test -z "$concat_cmds" || concat_cmds=$concat_cmds~
    4139           eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
    4140 
    4141           if ${skipped_export-false}; then
    4142             $show "generating symbol list for \`$libname.la'"
    4143             export_symbols="$output_objdir/$libname.exp"
    4144             $run $rm $export_symbols
    4145             libobjs=$output
    4146             # Append the command to create the export file.
    4147             eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
    4148           fi
    4149 
    4150           # Set up a command to remove the reloadable object files
    4151           # after they are used.
    4152           i=0
    4153           while test "$i" -lt "$k"
    4154           do
    4155             i=`expr $i + 1`
    4156             delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
    4157           done
    4158 
    4159           $echo "creating a temporary reloadable object file: $output"
    4160 
    4161           # Loop through the commands generated above and execute them.
    4162           save_ifs="$IFS"; IFS='~'
    4163           for cmd in $concat_cmds; do
     8441
     8442            test -n "$save_libobjs" &&
     8443              func_verbose "creating a temporary reloadable object file: $output"
     8444
     8445            # Loop through the commands generated above and execute them.
     8446            save_ifs="$IFS"; IFS='~'
     8447            for cmd in $concat_cmds; do
     8448              IFS="$save_ifs"
     8449              $opt_silent || {
     8450                  func_quote_for_expand "$cmd"
     8451                  eval "func_echo $func_quote_for_expand_result"
     8452              }
     8453              $opt_dry_run || eval "$cmd" || {
     8454                lt_exit=$?
     8455
     8456                # Restore the uninstalled library and exit
     8457                if test "$opt_mode" = relink; then
     8458                  ( cd "$output_objdir" && \
     8459                    $RM "${realname}T" && \
     8460                    $MV "${realname}U" "$realname" )
     8461                fi
     8462
     8463                exit $lt_exit
     8464              }
     8465            done
    41648466            IFS="$save_ifs"
    4165             $show "$cmd"
    4166             $run eval "$cmd" || exit $?
    4167           done
    4168           IFS="$save_ifs"
     8467
     8468            if test -n "$export_symbols_regex" && ${skipped_export-false}; then
     8469              func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
     8470              func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
     8471            fi
     8472          fi
     8473
     8474          if ${skipped_export-false}; then
     8475            if test -n "$export_symbols" && test -n "$include_expsyms"; then
     8476              tmp_export_symbols="$export_symbols"
     8477              test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
     8478              $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
     8479            fi
     8480
     8481            if test -n "$orig_export_symbols"; then
     8482              # The given exports_symbols file has to be filtered, so filter it.
     8483              func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
     8484              # FIXME: $output_objdir/$libname.filter potentially contains lots of
     8485              # 's' commands which not all seds can handle. GNU sed should be fine
     8486              # though. Also, the filter scales superlinearly with the number of
     8487              # global variables. join(1) would be nice here, but unfortunately
     8488              # isn't a blessed tool.
     8489              $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
     8490              func_append delfiles " $export_symbols $output_objdir/$libname.filter"
     8491              export_symbols=$output_objdir/$libname.def
     8492              $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
     8493            fi
     8494          fi
    41698495
    41708496          libobjs=$output
     
    41748500          if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
    41758501            eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
     8502            test "X$libobjs" = "X " && libobjs=
    41768503          fi
    41778504          # Expand the library linking commands again to reset the
     
    41868513            fi
    41878514          else
    4188           if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
    4189             cmds=$archive_expsym_cmds
    4190           else
    4191             cmds=$archive_cmds
     8515            if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
     8516              cmds=$archive_expsym_cmds
     8517            else
     8518              cmds=$archive_cmds
    41928519            fi
    41938520          fi
    4194 
    4195           # Append the command to remove the reloadable object files
    4196           # to the just-reset $cmds.
    4197           eval cmds=\"\$cmds~\$rm $delfiles\"
    41988521        fi
     8522
     8523        if test -n "$delfiles"; then
     8524          # Append the command to remove temporary files to $cmds.
     8525          eval cmds=\"\$cmds~\$RM $delfiles\"
     8526        fi
     8527
     8528        # Add any objects from preloaded convenience libraries
     8529        if test -n "$dlprefiles"; then
     8530          gentop="$output_objdir/${outputname}x"
     8531          func_append generated " $gentop"
     8532
     8533          func_extract_archives $gentop $dlprefiles
     8534          func_append libobjs " $func_extract_archives_result"
     8535          test "X$libobjs" = "X " && libobjs=
     8536        fi
     8537
    41998538        save_ifs="$IFS"; IFS='~'
    42008539        for cmd in $cmds; do
    42018540          IFS="$save_ifs"
    42028541          eval cmd=\"$cmd\"
    4203           $show "$cmd"
    4204           $run eval "$cmd" || {
     8542          $opt_silent || {
     8543            func_quote_for_expand "$cmd"
     8544            eval "func_echo $func_quote_for_expand_result"
     8545          }
     8546          $opt_dry_run || eval "$cmd" || {
    42058547            lt_exit=$?
    42068548
    42078549            # Restore the uninstalled library and exit
    4208             if test "$mode" = relink; then
    4209               $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
     8550            if test "$opt_mode" = relink; then
     8551              ( cd "$output_objdir" && \
     8552                $RM "${realname}T" && \
     8553                $MV "${realname}U" "$realname" )
    42108554            fi
    42118555
     
    42168560
    42178561        # Restore the uninstalled library and exit
    4218         if test "$mode" = relink; then
    4219           $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
     8562        if test "$opt_mode" = relink; then
     8563          $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
    42208564
    42218565          if test -n "$convenience"; then
    42228566            if test -z "$whole_archive_flag_spec"; then
    4223               $show "${rm}r $gentop"
    4224               $run ${rm}r "$gentop"
     8567              func_show_eval '${RM}r "$gentop"'
    42258568            fi
    42268569          fi
     
    42328575        for linkname in $linknames; do
    42338576          if test "$realname" != "$linkname"; then
    4234             $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
    4235             $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
     8577            func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
    42368578          fi
    42378579        done
     
    42468588
    42478589    obj)
    4248       if test -n "$deplibs"; then
    4249         $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
     8590      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
     8591        func_warning "\`-dlopen' is ignored for objects"
    42508592      fi
    42518593
    4252       if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
    4253         $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
    4254       fi
    4255 
    4256       if test -n "$rpath"; then
    4257         $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
    4258       fi
    4259 
    4260       if test -n "$xrpath"; then
    4261         $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
    4262       fi
    4263 
    4264       if test -n "$vinfo"; then
    4265         $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
    4266       fi
    4267 
    4268       if test -n "$release"; then
    4269         $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
    4270       fi
     8594      case " $deplibs" in
     8595      *\ -l* | *\ -L*)
     8596        func_warning "\`-l' and \`-L' are ignored for objects" ;;
     8597      esac
     8598
     8599      test -n "$rpath" && \
     8600        func_warning "\`-rpath' is ignored for objects"
     8601
     8602      test -n "$xrpath" && \
     8603        func_warning "\`-R' is ignored for objects"
     8604
     8605      test -n "$vinfo" && \
     8606        func_warning "\`-version-info' is ignored for objects"
     8607
     8608      test -n "$release" && \
     8609        func_warning "\`-release' is ignored for objects"
    42718610
    42728611      case $output in
    42738612      *.lo)
    4274         if test -n "$objs$old_deplibs"; then
    4275           $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
    4276           exit $EXIT_FAILURE
    4277         fi
    4278         libobj="$output"
    4279         obj=`$echo "X$output" | $Xsed -e "$lo2o"`
     8613        test -n "$objs$old_deplibs" && \
     8614          func_fatal_error "cannot build library object \`$output' from non-libtool objects"
     8615
     8616        libobj=$output
     8617        func_lo2o "$libobj"
     8618        obj=$func_lo2o_result
    42808619        ;;
    42818620      *)
     
    42868625
    42878626      # Delete the old objects.
    4288       $run $rm $obj $libobj
     8627      $opt_dry_run || $RM $obj $libobj
    42898628
    42908629      # Objects from convenience libraries.  This assumes
     
    42958634      gentop=
    42968635      # reload_cmds runs $LD directly, so let us get rid of
    4297       # -Wl from whole_archive_flag_spec
     8636      # -Wl from whole_archive_flag_spec and hope we can get by with
     8637      # turning comma into space..
    42988638      wl=
    42998639
    43008640      if test -n "$convenience"; then
    43018641        if test -n "$whole_archive_flag_spec"; then
    4302           eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
     8642          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
     8643          reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
    43038644        else
    43048645          gentop="$output_objdir/${obj}x"
    4305           generated="$generated $gentop"
     8646          func_append generated " $gentop"
    43068647
    43078648          func_extract_archives $gentop $convenience
     
    43108651      fi
    43118652
     8653      # If we're not building shared, we need to use non_pic_objs
     8654      test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
     8655
    43128656      # Create the old-style object.
    4313       reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
     8657      reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
    43148658
    43158659      output="$obj"
    4316       cmds=$reload_cmds
    4317       save_ifs="$IFS"; IFS='~'
    4318       for cmd in $cmds; do
    4319         IFS="$save_ifs"
    4320         eval cmd=\"$cmd\"
    4321         $show "$cmd"
    4322         $run eval "$cmd" || exit $?
    4323       done
    4324       IFS="$save_ifs"
     8660      func_execute_cmds "$reload_cmds" 'exit $?'
    43258661
    43268662      # Exit if we aren't doing a library object file.
    43278663      if test -z "$libobj"; then
    43288664        if test -n "$gentop"; then
    4329           $show "${rm}r $gentop"
    4330           $run ${rm}r $gentop
     8665          func_show_eval '${RM}r "$gentop"'
    43318666        fi
    43328667
     
    43368671      if test "$build_libtool_libs" != yes; then
    43378672        if test -n "$gentop"; then
    4338           $show "${rm}r $gentop"
    4339           $run ${rm}r $gentop
     8673          func_show_eval '${RM}r "$gentop"'
    43408674        fi
    43418675
     
    43438677        # accidentally link it into a program.
    43448678        # $show "echo timestamp > $libobj"
    4345         # $run eval "echo timestamp > $libobj" || exit $?
     8679        # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
    43468680        exit $EXIT_SUCCESS
    43478681      fi
     
    43518685        reload_objs="$libobjs $reload_conv_objs"
    43528686        output="$libobj"
    4353         cmds=$reload_cmds
    4354         save_ifs="$IFS"; IFS='~'
    4355         for cmd in $cmds; do
    4356           IFS="$save_ifs"
    4357           eval cmd=\"$cmd\"
    4358           $show "$cmd"
    4359           $run eval "$cmd" || exit $?
    4360         done
    4361         IFS="$save_ifs"
     8687        func_execute_cmds "$reload_cmds" 'exit $?'
    43628688      fi
    43638689
    43648690      if test -n "$gentop"; then
    4365         $show "${rm}r $gentop"
    4366         $run ${rm}r $gentop
     8691        func_show_eval '${RM}r "$gentop"'
    43678692      fi
    43688693
     
    43728697    prog)
    43738698      case $host in
    4374         *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
     8699        *cygwin*) func_stripname '' '.exe' "$output"
     8700                  output=$func_stripname_result.exe;;
    43758701      esac
    4376       if test -n "$vinfo"; then
    4377         $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
    4378       fi
    4379 
    4380       if test -n "$release"; then
    4381         $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
    4382       fi
    4383 
    4384       if test "$preload" = yes; then
    4385         if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
    4386            test "$dlopen_self_static" = unknown; then
    4387           $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
    4388         fi
    4389       fi
     8702      test -n "$vinfo" && \
     8703        func_warning "\`-version-info' is ignored for programs"
     8704
     8705      test -n "$release" && \
     8706        func_warning "\`-release' is ignored for programs"
     8707
     8708      test "$preload" = yes \
     8709        && test "$dlopen_support" = unknown \
     8710        && test "$dlopen_self" = unknown \
     8711        && test "$dlopen_self_static" = unknown && \
     8712          func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
    43908713
    43918714      case $host in
    43928715      *-*-rhapsody* | *-*-darwin1.[012])
    43938716        # On Rhapsody replace the C library is the System framework
    4394         compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
    4395         finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
     8717        compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
     8718        finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
    43968719        ;;
    43978720      esac
    43988721
    43998722      case $host in
    4400       *darwin*)
    4401         # Don't allow lazy linking, it breaks C++ global constructors
    4402         if test "$tagname" = CXX ; then
    4403         compile_command="$compile_command ${wl}-bind_at_load"
    4404         finalize_command="$finalize_command ${wl}-bind_at_load"
    4405         fi
    4406         ;;
     8723      *-*-darwin*)
     8724        # Don't allow lazy linking, it breaks C++ global constructors
     8725        # But is supposedly fixed on 10.4 or later (yay!).
     8726        if test "$tagname" = CXX ; then
     8727          case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
     8728            10.[0123])
     8729              func_append compile_command " ${wl}-bind_at_load"
     8730              func_append finalize_command " ${wl}-bind_at_load"
     8731            ;;
     8732          esac
     8733        fi
     8734        # Time to change all our "foo.ltframework" stuff back to "-framework foo"
     8735        compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     8736        finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     8737        ;;
    44078738      esac
    44088739
     
    44178748          case " $compile_deplibs " in
    44188749          *" -L$path/$objdir "*)
    4419             new_libs="$new_libs -L$path/$objdir" ;;
     8750            func_append new_libs " -L$path/$objdir" ;;
    44208751          esac
    44218752          ;;
     
    44278758          case " $new_libs " in
    44288759          *" $deplib "*) ;;
    4429           *) new_libs="$new_libs $deplib" ;;
     8760          *) func_append new_libs " $deplib" ;;
    44308761          esac
    44318762          ;;
    4432         *) new_libs="$new_libs $deplib" ;;
     8763        *) func_append new_libs " $deplib" ;;
    44338764        esac
    44348765      done
     
    44368767
    44378768
    4438       compile_command="$compile_command $compile_deplibs"
    4439       finalize_command="$finalize_command $finalize_deplibs"
     8769      func_append compile_command " $compile_deplibs"
     8770      func_append finalize_command " $finalize_deplibs"
    44408771
    44418772      if test -n "$rpath$xrpath"; then
     
    44458776          case "$finalize_rpath " in
    44468777          *" $libdir "*) ;;
    4447           *) finalize_rpath="$finalize_rpath $libdir" ;;
     8778          *) func_append finalize_rpath " $libdir" ;;
    44488779          esac
    44498780        done
     
    44648795                ;;
    44658796              *)
    4466                 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
     8797                func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
    44678798                ;;
    44688799              esac
     
    44708801          else
    44718802            eval flag=\"$hardcode_libdir_flag_spec\"
    4472             rpath="$rpath $flag"
     8803            func_append rpath " $flag"
    44738804          fi
    44748805        elif test -n "$runpath_var"; then
    44758806          case "$perm_rpath " in
    44768807          *" $libdir "*) ;;
    4477           *) perm_rpath="$perm_rpath $libdir" ;;
     8808          *) func_append perm_rpath " $libdir" ;;
    44788809          esac
    44798810        fi
    44808811        case $host in
    4481         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
    4482           testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
     8812        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
     8813          testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
    44838814          case :$dllsearchpath: in
    44848815          *":$libdir:"*) ;;
    4485           *) dllsearchpath="$dllsearchpath:$libdir";;
     8816          ::) dllsearchpath=$libdir;;
     8817          *) func_append dllsearchpath ":$libdir";;
    44868818          esac
    44878819          case :$dllsearchpath: in
    44888820          *":$testbindir:"*) ;;
    4489           *) dllsearchpath="$dllsearchpath:$testbindir";;
     8821          ::) dllsearchpath=$testbindir;;
     8822          *) func_append dllsearchpath ":$testbindir";;
    44908823          esac
    44918824          ;;
     
    45138846                ;;
    45148847              *)
    4515                 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
     8848                func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
    45168849                ;;
    45178850              esac
     
    45198852          else
    45208853            eval flag=\"$hardcode_libdir_flag_spec\"
    4521             rpath="$rpath $flag"
     8854            func_append rpath " $flag"
    45228855          fi
    45238856        elif test -n "$runpath_var"; then
    45248857          case "$finalize_perm_rpath " in
    45258858          *" $libdir "*) ;;
    4526           *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
     8859          *) func_append finalize_perm_rpath " $libdir" ;;
    45278860          esac
    45288861        fi
     
    45388871      if test -n "$libobjs" && test "$build_old_libs" = yes; then
    45398872        # Transform all the library objects into standard objects.
    4540         compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
    4541         finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
     8873        compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
     8874        finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
    45428875      fi
    45438876
    4544       dlsyms=
    4545       if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
    4546         if test -n "$NM" && test -n "$global_symbol_pipe"; then
    4547           dlsyms="${outputname}S.c"
    4548         else
    4549           $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
     8877      func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
     8878
     8879      # template prelinking step
     8880      if test -n "$prelink_cmds"; then
     8881        func_execute_cmds "$prelink_cmds" 'exit $?'
     8882      fi
     8883
     8884      wrappers_required=yes
     8885      case $host in
     8886      *cegcc* | *mingw32ce*)
     8887        # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
     8888        wrappers_required=no
     8889        ;;
     8890      *cygwin* | *mingw* )
     8891        if test "$build_libtool_libs" != yes; then
     8892          wrappers_required=no
     8893        fi
     8894        ;;
     8895      *)
     8896        if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
     8897          wrappers_required=no
     8898        fi
     8899        ;;
     8900      esac
     8901      if test "$wrappers_required" = no; then
     8902        # Replace the output file specification.
     8903        compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
     8904        link_command="$compile_command$compile_rpath"
     8905
     8906        # We have no uninstalled library dependencies, so finalize right now.
     8907        exit_status=0
     8908        func_show_eval "$link_command" 'exit_status=$?'
     8909
     8910        if test -n "$postlink_cmds"; then
     8911          func_to_tool_file "$output"
     8912          postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
     8913          func_execute_cmds "$postlink_cmds" 'exit $?'
    45508914        fi
    4551       fi
    4552 
    4553       if test -n "$dlsyms"; then
    4554         case $dlsyms in
    4555         "") ;;
    4556         *.c)
    4557           # Discover the nlist of each of the dlfiles.
    4558           nlist="$output_objdir/${outputname}.nm"
    4559 
    4560           $show "$rm $nlist ${nlist}S ${nlist}T"
    4561           $run $rm "$nlist" "${nlist}S" "${nlist}T"
    4562 
    4563           # Parse the name list into a source file.
    4564           $show "creating $output_objdir/$dlsyms"
    4565 
    4566           test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
    4567 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
    4568 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
    4569 
    4570 #ifdef __cplusplus
    4571 extern \"C\" {
    4572 #endif
    4573 
    4574 /* Prevent the only kind of declaration conflicts we can make. */
    4575 #define lt_preloaded_symbols some_other_symbol
    4576 
    4577 /* External symbol declarations for the compiler. */\
    4578 "
    4579 
    4580           if test "$dlself" = yes; then
    4581             $show "generating symbol list for \`$output'"
    4582 
    4583             test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
    4584 
    4585             # Add our own program objects to the symbol list.
    4586             progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
    4587             for arg in $progfiles; do
    4588               $show "extracting global C symbols from \`$arg'"
    4589               $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
    4590             done
    4591 
    4592             if test -n "$exclude_expsyms"; then
    4593               $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
    4594               $run eval '$mv "$nlist"T "$nlist"'
    4595             fi
    4596 
    4597             if test -n "$export_symbols_regex"; then
    4598               $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
    4599               $run eval '$mv "$nlist"T "$nlist"'
    4600             fi
    4601 
    4602             # Prepare the list of exported symbols
    4603             if test -z "$export_symbols"; then
    4604               export_symbols="$output_objdir/$outputname.exp"
    4605               $run $rm $export_symbols
    4606               $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
    4607               case $host in
    4608               *cygwin* | *mingw* )
    4609                 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
    4610                 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
    4611                 ;;
    4612               esac
    4613             else
    4614               $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
    4615               $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
    4616               $run eval 'mv "$nlist"T "$nlist"'
    4617               case $host in
    4618               *cygwin* | *mingw* )
    4619                 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
    4620                 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
    4621                 ;;
    4622               esac
    4623             fi
    4624           fi
    4625 
    4626           for arg in $dlprefiles; do
    4627             $show "extracting global C symbols from \`$arg'"
    4628             name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
    4629             $run eval '$echo ": $name " >> "$nlist"'
    4630             $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
    4631           done
    4632 
    4633           if test -z "$run"; then
    4634             # Make sure we have at least an empty file.
    4635             test -f "$nlist" || : > "$nlist"
    4636 
    4637             if test -n "$exclude_expsyms"; then
    4638               $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
    4639               $mv "$nlist"T "$nlist"
    4640             fi
    4641 
    4642             # Try sorting and uniquifying the output.
    4643             if grep -v "^: " < "$nlist" |
    4644                 if sort -k 3 </dev/null >/dev/null 2>&1; then
    4645                   sort -k 3
    4646                 else
    4647                   sort +2
    4648                 fi |
    4649                 uniq > "$nlist"S; then
    4650               :
    4651             else
    4652               grep -v "^: " < "$nlist" > "$nlist"S
    4653             fi
    4654 
    4655             if test -f "$nlist"S; then
    4656               eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
    4657             else
    4658               $echo '/* NONE */' >> "$output_objdir/$dlsyms"
    4659             fi
    4660 
    4661             $echo >> "$output_objdir/$dlsyms" "\
    4662 
    4663 #undef lt_preloaded_symbols
    4664 
    4665 #if defined (__STDC__) && __STDC__
    4666 # define lt_ptr void *
    4667 #else
    4668 # define lt_ptr char *
    4669 # define const
    4670 #endif
    4671 
    4672 /* The mapping between symbol names and symbols. */
    4673 "
    4674 
    4675             case $host in
    4676             *cygwin* | *mingw* )
    4677           $echo >> "$output_objdir/$dlsyms" "\
    4678 /* DATA imports from DLLs on WIN32 can't be const, because
    4679    runtime relocations are performed -- see ld's documentation
    4680    on pseudo-relocs */
    4681 struct {
    4682 "
    4683               ;;
    4684             * )
    4685           $echo >> "$output_objdir/$dlsyms" "\
    4686 const struct {
    4687 "
    4688               ;;
    4689             esac
    4690 
    4691 
    4692           $echo >> "$output_objdir/$dlsyms" "\
    4693   const char *name;
    4694   lt_ptr address;
    4695 }
    4696 lt_preloaded_symbols[] =
    4697 {\
    4698 "
    4699 
    4700             eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
    4701 
    4702             $echo >> "$output_objdir/$dlsyms" "\
    4703   {0, (lt_ptr) 0}
    4704 };
    4705 
    4706 /* This works around a problem in FreeBSD linker */
    4707 #ifdef FREEBSD_WORKAROUND
    4708 static const void *lt_preloaded_setup() {
    4709   return lt_preloaded_symbols;
    4710 }
    4711 #endif
    4712 
    4713 #ifdef __cplusplus
    4714 }
    4715 #endif\
    4716 "
    4717           fi
    4718 
    4719           pic_flag_for_symtable=
    4720           case $host in
    4721           # compiling the symbol table file with pic_flag works around
    4722           # a FreeBSD bug that causes programs to crash when -lm is
    4723           # linked before any other PIC object.  But we must not use
    4724           # pic_flag when linking with -static.  The problem exists in
    4725           # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
    4726           *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
    4727             case "$compile_command " in
    4728             *" -static "*) ;;
    4729             *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
    4730             esac;;
    4731           *-*-hpux*)
    4732             case "$compile_command " in
    4733             *" -static "*) ;;
    4734             *) pic_flag_for_symtable=" $pic_flag";;
    4735             esac
    4736           esac
    4737 
    4738           # Now compile the dynamic symbol file.
    4739           $show "(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
    4740           $run eval '(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
    4741 
    4742           # Clean up the generated files.
    4743           $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
    4744           $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
    4745 
    4746           # Transform the symbol file into the correct name.
    4747           case $host in
    4748           *cygwin* | *mingw* )
    4749             if test -f "$output_objdir/${outputname}.def" ; then
    4750               compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
    4751               finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
    4752             else
    4753               compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
    4754               finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
    4755              fi
    4756             ;;
    4757           * )
    4758             compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
    4759             finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
    4760             ;;
    4761           esac
    4762           ;;
    4763         *)
    4764           $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
    4765           exit $EXIT_FAILURE
    4766           ;;
    4767         esac
    4768       else
    4769         # We keep going just in case the user didn't refer to
    4770         # lt_preloaded_symbols.  The linker will fail if global_symbol_pipe
    4771         # really was required.
    4772 
    4773         # Nullify the symbol file.
    4774         compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
    4775         finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
    4776       fi
    4777 
    4778       if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
    4779         # Replace the output file specification.
    4780         compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
    4781         link_command="$compile_command$compile_rpath"
    4782 
    4783         # We have no uninstalled library dependencies, so finalize right now.
    4784         $show "$link_command"
    4785         $run eval "$link_command"
    4786         exit_status=$?
    47878915
    47888916        # Delete the generated files.
    4789         if test -n "$dlsyms"; then
    4790           $show "$rm $output_objdir/${outputname}S.${objext}"
    4791           $run $rm "$output_objdir/${outputname}S.${objext}"
     8917        if test -f "$output_objdir/${outputname}S.${objext}"; then
     8918          func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
    47928919        fi
    47938920
    47948921        exit $exit_status
    4795       fi
    4796 
    4797       if test -n "$shlibpath_var"; then
    4798         # We should set the shlibpath_var
    4799         rpath=
    4800         for dir in $temp_rpath; do
    4801           case $dir in
    4802           [\\/]* | [A-Za-z]:[\\/]*)
    4803             # Absolute path.
    4804             rpath="$rpath$dir:"
    4805             ;;
    4806           *)
    4807             # Relative path: add a thisdir entry.
    4808             rpath="$rpath\$thisdir/$dir:"
    4809             ;;
    4810           esac
    4811         done
    4812         temp_rpath="$rpath"
    48138922      fi
    48148923
     
    48278936          rpath=
    48288937          for dir in $perm_rpath; do
    4829             rpath="$rpath$dir:"
     8938            func_append rpath "$dir:"
    48308939          done
    48318940          compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
     
    48358944          rpath=
    48368945          for dir in $finalize_perm_rpath; do
    4837             rpath="$rpath$dir:"
     8946            func_append rpath "$dir:"
    48388947          done
    48398948          finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
     
    48458954        link_command="$compile_var$compile_command$compile_rpath"
    48468955        # Replace the output file specification.
    4847         link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
     8956        link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
    48488957        # Delete the old output file.
    4849         $run $rm $output
     8958        $opt_dry_run || $RM $output
    48508959        # Link the executable and exit
    4851         $show "$link_command"
    4852         $run eval "$link_command" || exit $?
     8960        func_show_eval "$link_command" 'exit $?'
     8961
     8962        if test -n "$postlink_cmds"; then
     8963          func_to_tool_file "$output"
     8964          postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
     8965          func_execute_cmds "$postlink_cmds" 'exit $?'
     8966        fi
     8967
    48538968        exit $EXIT_SUCCESS
    48548969      fi
     
    48598974        relink_command="$finalize_var$finalize_command$finalize_rpath"
    48608975
    4861         $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
    4862         $echo "$modename: \`$output' will be relinked during installation" 1>&2
     8976        func_warning "this platform does not like uninstalled shared libraries"
     8977        func_warning "\`$output' will be relinked during installation"
    48638978      else
    48648979        if test "$fast_install" != no; then
    48658980          link_command="$finalize_var$compile_command$finalize_rpath"
    48668981          if test "$fast_install" = yes; then
    4867             relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
     8982            relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
    48688983          else
    48698984            # fast_install is set to needless
     
    48778992
    48788993      # Replace the output file specification.
    4879       link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
     8994      link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
    48808995
    48818996      # Delete the old output files.
    4882       $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
    4883 
    4884       $show "$link_command"
    4885       $run eval "$link_command" || exit $?
     8997      $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
     8998
     8999      func_show_eval "$link_command" 'exit $?'
     9000
     9001      if test -n "$postlink_cmds"; then
     9002        func_to_tool_file "$output_objdir/$outputname"
     9003        postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
     9004        func_execute_cmds "$postlink_cmds" 'exit $?'
     9005      fi
    48869006
    48879007      # Now create the wrapper script.
    4888       $show "creating $output"
     9008      func_verbose "creating $output"
    48899009
    48909010      # Quote the relink command for shipping.
     
    48939013        for var in $variables_saved_for_relink; do
    48949014          if eval test -z \"\${$var+set}\"; then
    4895             relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
     9015            relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
    48969016          elif eval var_value=\$$var; test -z "$var_value"; then
    48979017            relink_command="$var=; export $var; $relink_command"
    48989018          else
    4899             var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
    4900             relink_command="$var=\"$var_value\"; export $var; $relink_command"
     9019            func_quote_for_eval "$var_value"
     9020            relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
    49019021          fi
    49029022        done
    49039023        relink_command="(cd `pwd`; $relink_command)"
    4904         relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
     9024        relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
    49059025      fi
    49069026
    4907       # Quote $echo for shipping.
    4908       if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
    4909         case $progpath in
    4910         [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
    4911         *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
    4912         esac
    4913         qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
    4914       else
    4915         qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
    4916       fi
    4917 
    4918       # Only actually do things if our run command is non-null.
    4919       if test -z "$run"; then
     9027      # Only actually do things if not in dry run mode.
     9028      $opt_dry_run || {
    49209029        # win32 will think the script is a binary if it has
    49219030        # a .exe suffix, so we strip it off here.
    49229031        case $output in
    4923           *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
     9032          *.exe) func_stripname '' '.exe' "$output"
     9033                 output=$func_stripname_result ;;
    49249034        esac
    49259035        # test for cygwin because mv fails w/o .exe extensions
     
    49279037          *cygwin*)
    49289038            exeext=.exe
    4929             outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
     9039            func_stripname '' '.exe' "$outputname"
     9040            outputname=$func_stripname_result ;;
    49309041          *) exeext= ;;
    49319042        esac
    49329043        case $host in
    49339044          *cygwin* | *mingw* )
    4934             output_name=`basename $output`
    4935             output_path=`dirname $output`
    4936             cwrappersource="$output_path/$objdir/lt-$output_name.c"
    4937             cwrapper="$output_path/$output_name.exe"
    4938             $rm $cwrappersource $cwrapper
    4939             trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
    4940 
    4941             cat > $cwrappersource <<EOF
    4942 
    4943 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
    4944    Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
    4945 
    4946    The $output program cannot be directly executed until all the libtool
    4947    libraries that it depends on are installed.
    4948 
    4949    This wrapper executable should never be moved out of the build directory.
    4950    If it is, it will not operate correctly.
    4951 
    4952    Currently, it simply execs the wrapper *script* "/bin/sh $output",
    4953    but could eventually absorb all of the scripts functionality and
    4954    exec $objdir/$outputname directly.
    4955 */
    4956 EOF
    4957             cat >> $cwrappersource<<"EOF"
    4958 #include <stdio.h>
    4959 #include <stdlib.h>
    4960 #include <unistd.h>
    4961 #include <malloc.h>
    4962 #include <stdarg.h>
    4963 #include <assert.h>
    4964 #include <string.h>
    4965 #include <ctype.h>
    4966 #include <sys/stat.h>
    4967 
    4968 #if defined(PATH_MAX)
    4969 # define LT_PATHMAX PATH_MAX
    4970 #elif defined(MAXPATHLEN)
    4971 # define LT_PATHMAX MAXPATHLEN
    4972 #else
    4973 # define LT_PATHMAX 1024
    4974 #endif
    4975 
    4976 #ifndef DIR_SEPARATOR
    4977 # define DIR_SEPARATOR '/'
    4978 # define PATH_SEPARATOR ':'
    4979 #endif
    4980 
    4981 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
    4982   defined (__OS2__)
    4983 # define HAVE_DOS_BASED_FILE_SYSTEM
    4984 # ifndef DIR_SEPARATOR_2
    4985 #  define DIR_SEPARATOR_2 '\\'
    4986 # endif
    4987 # ifndef PATH_SEPARATOR_2
    4988 #  define PATH_SEPARATOR_2 ';'
    4989 # endif
    4990 #endif
    4991 
    4992 #ifndef DIR_SEPARATOR_2
    4993 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
    4994 #else /* DIR_SEPARATOR_2 */
    4995 # define IS_DIR_SEPARATOR(ch) \
    4996         (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
    4997 #endif /* DIR_SEPARATOR_2 */
    4998 
    4999 #ifndef PATH_SEPARATOR_2
    5000 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
    5001 #else /* PATH_SEPARATOR_2 */
    5002 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
    5003 #endif /* PATH_SEPARATOR_2 */
    5004 
    5005 #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
    5006 #define XFREE(stale) do { \
    5007   if (stale) { free ((void *) stale); stale = 0; } \
    5008 } while (0)
    5009 
    5010 /* -DDEBUG is fairly common in CFLAGS.  */
    5011 #undef DEBUG
    5012 #if defined DEBUGWRAPPER
    5013 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
    5014 #else
    5015 # define DEBUG(format, ...)
    5016 #endif
    5017 
    5018 const char *program_name = NULL;
    5019 
    5020 void * xmalloc (size_t num);
    5021 char * xstrdup (const char *string);
    5022 const char * base_name (const char *name);
    5023 char * find_executable(const char *wrapper);
    5024 int    check_executable(const char *path);
    5025 char * strendzap(char *str, const char *pat);
    5026 void lt_fatal (const char *message, ...);
    5027 
    5028 int
    5029 main (int argc, char *argv[])
    5030 {
    5031   char **newargz;
    5032   int i;
    5033 
    5034   program_name = (char *) xstrdup (base_name (argv[0]));
    5035   DEBUG("(main) argv[0]      : %s\n",argv[0]);
    5036   DEBUG("(main) program_name : %s\n",program_name);
    5037   newargz = XMALLOC(char *, argc+2);
    5038 EOF
    5039 
    5040             cat >> $cwrappersource <<EOF
    5041   newargz[0] = (char *) xstrdup("$SHELL");
    5042 EOF
    5043 
    5044             cat >> $cwrappersource <<"EOF"
    5045   newargz[1] = find_executable(argv[0]);
    5046   if (newargz[1] == NULL)
    5047     lt_fatal("Couldn't find %s", argv[0]);
    5048   DEBUG("(main) found exe at : %s\n",newargz[1]);
    5049   /* we know the script has the same name, without the .exe */
    5050   /* so make sure newargz[1] doesn't end in .exe */
    5051   strendzap(newargz[1],".exe");
    5052   for (i = 1; i < argc; i++)
    5053     newargz[i+1] = xstrdup(argv[i]);
    5054   newargz[argc+1] = NULL;
    5055 
    5056   for (i=0; i<argc+1; i++)
    5057   {
    5058     DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
    5059     ;
    5060   }
    5061 
    5062 EOF
    5063 
    5064             case $host_os in
    5065               mingw*)
    5066                 cat >> $cwrappersource <<EOF
    5067   execv("$SHELL",(char const **)newargz);
    5068 EOF
    5069               ;;
    5070               *)
    5071                 cat >> $cwrappersource <<EOF
    5072   execv("$SHELL",newargz);
    5073 EOF
    5074               ;;
    5075             esac
    5076 
    5077             cat >> $cwrappersource <<"EOF"
    5078   return 127;
    5079 }
    5080 
    5081 void *
    5082 xmalloc (size_t num)
    5083 {
    5084   void * p = (void *) malloc (num);
    5085   if (!p)
    5086     lt_fatal ("Memory exhausted");
    5087 
    5088   return p;
    5089 }
    5090 
    5091 char *
    5092 xstrdup (const char *string)
    5093 {
    5094   return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
    5095 ;
    5096 }
    5097 
    5098 const char *
    5099 base_name (const char *name)
    5100 {
    5101   const char *base;
    5102 
    5103 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
    5104   /* Skip over the disk name in MSDOS pathnames. */
    5105   if (isalpha ((unsigned char)name[0]) && name[1] == ':')
    5106     name += 2;
    5107 #endif
    5108 
    5109   for (base = name; *name; name++)
    5110     if (IS_DIR_SEPARATOR (*name))
    5111       base = name + 1;
    5112   return base;
    5113 }
    5114 
    5115 int
    5116 check_executable(const char * path)
    5117 {
    5118   struct stat st;
    5119 
    5120   DEBUG("(check_executable)  : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
    5121   if ((!path) || (!*path))
    5122     return 0;
    5123 
    5124   if ((stat (path, &st) >= 0) &&
    5125       (
    5126         /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
    5127 #if defined (S_IXOTH)
    5128        ((st.st_mode & S_IXOTH) == S_IXOTH) ||
    5129 #endif
    5130 #if defined (S_IXGRP)
    5131        ((st.st_mode & S_IXGRP) == S_IXGRP) ||
    5132 #endif
    5133        ((st.st_mode & S_IXUSR) == S_IXUSR))
    5134       )
    5135     return 1;
    5136   else
    5137     return 0;
    5138 }
    5139 
    5140 /* Searches for the full path of the wrapper.  Returns
    5141    newly allocated full path name if found, NULL otherwise */
    5142 char *
    5143 find_executable (const char* wrapper)
    5144 {
    5145   int has_slash = 0;
    5146   const char* p;
    5147   const char* p_next;
    5148   /* static buffer for getcwd */
    5149   char tmp[LT_PATHMAX + 1];
    5150   int tmp_len;
    5151   char* concat_name;
    5152 
    5153   DEBUG("(find_executable)  : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
    5154 
    5155   if ((wrapper == NULL) || (*wrapper == '\0'))
    5156     return NULL;
    5157 
    5158   /* Absolute path? */
    5159 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
    5160   if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
    5161   {
    5162     concat_name = xstrdup (wrapper);
    5163     if (check_executable(concat_name))
    5164       return concat_name;
    5165     XFREE(concat_name);
    5166   }
    5167   else
    5168   {
    5169 #endif
    5170     if (IS_DIR_SEPARATOR (wrapper[0]))
    5171     {
    5172       concat_name = xstrdup (wrapper);
    5173       if (check_executable(concat_name))
    5174         return concat_name;
    5175       XFREE(concat_name);
    5176     }
    5177 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
    5178   }
    5179 #endif
    5180 
    5181   for (p = wrapper; *p; p++)
    5182     if (*p == '/')
    5183     {
    5184       has_slash = 1;
    5185       break;
    5186     }
    5187   if (!has_slash)
    5188   {
    5189     /* no slashes; search PATH */
    5190     const char* path = getenv ("PATH");
    5191     if (path != NULL)
    5192     {
    5193       for (p = path; *p; p = p_next)
    5194       {
    5195         const char* q;
    5196         size_t p_len;
    5197         for (q = p; *q; q++)
    5198           if (IS_PATH_SEPARATOR(*q))
    5199             break;
    5200         p_len = q - p;
    5201         p_next = (*q == '\0' ? q : q + 1);
    5202         if (p_len == 0)
    5203         {
    5204           /* empty path: current directory */
    5205           if (getcwd (tmp, LT_PATHMAX) == NULL)
    5206             lt_fatal ("getcwd failed");
    5207           tmp_len = strlen(tmp);
    5208           concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
    5209           memcpy (concat_name, tmp, tmp_len);
    5210           concat_name[tmp_len] = '/';
    5211           strcpy (concat_name + tmp_len + 1, wrapper);
    5212         }
    5213         else
    5214         {
    5215           concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
    5216           memcpy (concat_name, p, p_len);
    5217           concat_name[p_len] = '/';
    5218           strcpy (concat_name + p_len + 1, wrapper);
    5219         }
    5220         if (check_executable(concat_name))
    5221           return concat_name;
    5222         XFREE(concat_name);
    5223       }
    5224     }
    5225     /* not found in PATH; assume curdir */
    5226   }
    5227   /* Relative path | not found in path: prepend cwd */
    5228   if (getcwd (tmp, LT_PATHMAX) == NULL)
    5229     lt_fatal ("getcwd failed");
    5230   tmp_len = strlen(tmp);
    5231   concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
    5232   memcpy (concat_name, tmp, tmp_len);
    5233   concat_name[tmp_len] = '/';
    5234   strcpy (concat_name + tmp_len + 1, wrapper);
    5235 
    5236   if (check_executable(concat_name))
    5237     return concat_name;
    5238   XFREE(concat_name);
    5239   return NULL;
    5240 }
    5241 
    5242 char *
    5243 strendzap(char *str, const char *pat)
    5244 {
    5245   size_t len, patlen;
    5246 
    5247   assert(str != NULL);
    5248   assert(pat != NULL);
    5249 
    5250   len = strlen(str);
    5251   patlen = strlen(pat);
    5252 
    5253   if (patlen <= len)
    5254   {
    5255     str += len - patlen;
    5256     if (strcmp(str, pat) == 0)
    5257       *str = '\0';
    5258   }
    5259   return str;
    5260 }
    5261 
    5262 static void
    5263 lt_error_core (int exit_status, const char * mode,
    5264           const char * message, va_list ap)
    5265 {
    5266   fprintf (stderr, "%s: %s: ", program_name, mode);
    5267   vfprintf (stderr, message, ap);
    5268   fprintf (stderr, ".\n");
    5269 
    5270   if (exit_status >= 0)
    5271     exit (exit_status);
    5272 }
    5273 
    5274 void
    5275 lt_fatal (const char *message, ...)
    5276 {
    5277   va_list ap;
    5278   va_start (ap, message);
    5279   lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
    5280   va_end (ap);
    5281 }
    5282 EOF
    5283           # we should really use a build-platform specific compiler
    5284           # here, but OTOH, the wrappers (shell script and this C one)
    5285           # are only useful if you want to execute the "real" binary.
    5286           # Since the "real" binary is built for $host, then this
    5287           # wrapper might as well be built for $host, too.
    5288           $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
    5289           ;;
    5290         esac
    5291         $rm $output
    5292         trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
    5293 
    5294         $echo > $output "\
    5295 #! $SHELL
    5296 
    5297 # $output - temporary wrapper script for $objdir/$outputname
    5298 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
    5299 #
    5300 # The $output program cannot be directly executed until all the libtool
    5301 # libraries that it depends on are installed.
    5302 #
    5303 # This wrapper script should never be moved out of the build directory.
    5304 # If it is, it will not operate correctly.
    5305 
    5306 # Sed substitution that helps us do robust quoting.  It backslashifies
    5307 # metacharacters that are still active within double-quoted strings.
    5308 Xsed='${SED} -e 1s/^X//'
    5309 sed_quote_subst='$sed_quote_subst'
    5310 
    5311 # The HP-UX ksh and POSIX shell print the target directory to stdout
    5312 # if CDPATH is set.
    5313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    5314 
    5315 relink_command=\"$relink_command\"
    5316 
    5317 # This environment variable determines our operation mode.
    5318 if test \"\$libtool_install_magic\" = \"$magic\"; then
    5319   # install mode needs the following variable:
    5320   notinst_deplibs='$notinst_deplibs'
    5321 else
    5322   # When we are sourced in execute mode, \$file and \$echo are already set.
    5323   if test \"\$libtool_execute_magic\" != \"$magic\"; then
    5324     echo=\"$qecho\"
    5325     file=\"\$0\"
    5326     # Make sure echo works.
    5327     if test \"X\$1\" = X--no-reexec; then
    5328       # Discard the --no-reexec flag, and continue.
    5329       shift
    5330     elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
    5331       # Yippee, \$echo works!
    5332       :
    5333     else
    5334       # Restart under the correct shell, and then maybe \$echo will work.
    5335       exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
    5336     fi
    5337   fi\
    5338 "
    5339         $echo >> $output "\
    5340 
    5341   # Find the directory that this script lives in.
    5342   thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
    5343   test \"x\$thisdir\" = \"x\$file\" && thisdir=.
    5344 
    5345   # Follow symbolic links until we get to the real thisdir.
    5346   file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
    5347   while test -n \"\$file\"; do
    5348     destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
    5349 
    5350     # If there was a directory component, then change thisdir.
    5351     if test \"x\$destdir\" != \"x\$file\"; then
    5352       case \"\$destdir\" in
    5353       [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
    5354       *) thisdir=\"\$thisdir/\$destdir\" ;;
    5355       esac
    5356     fi
    5357 
    5358     file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
    5359     file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
    5360   done
    5361 
    5362   # Try to get the absolute directory name.
    5363   absdir=\`cd \"\$thisdir\" && pwd\`
    5364   test -n \"\$absdir\" && thisdir=\"\$absdir\"
    5365 "
    5366 
    5367         if test "$fast_install" = yes; then
    5368           $echo >> $output "\
    5369   program=lt-'$outputname'$exeext
    5370   progdir=\"\$thisdir/$objdir\"
    5371 
    5372   if test ! -f \"\$progdir/\$program\" || \\
    5373      { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
    5374        test \"X\$file\" != \"X\$progdir/\$program\"; }; then
    5375 
    5376     file=\"\$\$-\$program\"
    5377 
    5378     if test ! -d \"\$progdir\"; then
    5379       $mkdir \"\$progdir\"
    5380     else
    5381       $rm \"\$progdir/\$file\"
    5382     fi"
    5383 
    5384           $echo >> $output "\
    5385 
    5386     # relink executable if necessary
    5387     if test -n \"\$relink_command\"; then
    5388       if relink_command_output=\`eval \$relink_command 2>&1\`; then :
    5389       else
    5390         $echo \"\$relink_command_output\" >&2
    5391         $rm \"\$progdir/\$file\"
    5392         exit $EXIT_FAILURE
    5393       fi
    5394     fi
    5395 
    5396     $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
    5397     { $rm \"\$progdir/\$program\";
    5398       $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
    5399     $rm \"\$progdir/\$file\"
    5400   fi"
    5401         else
    5402           $echo >> $output "\
    5403   program='$outputname'
    5404   progdir=\"\$thisdir/$objdir\"
    5405 "
    5406         fi
    5407 
    5408         $echo >> $output "\
    5409 
    5410   if test -f \"\$progdir/\$program\"; then"
    5411 
    5412         # Export our shlibpath_var if we have one.
    5413         if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
    5414           $echo >> $output "\
    5415     # Add our own library path to $shlibpath_var
    5416     $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
    5417 
    5418     # Some systems cannot cope with colon-terminated $shlibpath_var
    5419     # The second colon is a workaround for a bug in BeOS R4 sed
    5420     $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
    5421 
    5422     export $shlibpath_var
    5423 "
    5424         fi
    5425 
    5426         # fixup the dll searchpath if we need to.
    5427         if test -n "$dllsearchpath"; then
    5428           $echo >> $output "\
    5429     # Add the dll search path components to the executable PATH
    5430     PATH=$dllsearchpath:\$PATH
    5431 "
    5432         fi
    5433 
    5434         $echo >> $output "\
    5435     if test \"\$libtool_execute_magic\" != \"$magic\"; then
    5436       # Run the actual program with our arguments.
    5437 
    5438       # Make sure env LD_LIBRARY_PATH does not mess us up
    5439       if test -n \"\${LD_LIBRARY_PATH+set}\"; then
    5440         export LD_LIBRARY_PATH=\$progdir:\$LD_LIBRARY_PATH
    5441       fi
    5442 "
    5443         case $host in
    5444         # Backslashes separate directories on plain windows
    5445         *-*-mingw | *-*-os2*)
    5446           $echo >> $output "\
    5447       exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
    5448 "
     9045            func_dirname_and_basename "$output" "" "."
     9046            output_name=$func_basename_result
     9047            output_path=$func_dirname_result
     9048            cwrappersource="$output_path/$objdir/lt-$output_name.c"
     9049            cwrapper="$output_path/$output_name.exe"
     9050            $RM $cwrappersource $cwrapper
     9051            trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
     9052
     9053            func_emit_cwrapperexe_src > $cwrappersource
     9054
     9055            # The wrapper executable is built using the $host compiler,
     9056            # because it contains $host paths and files. If cross-
     9057            # compiling, it, like the target executable, must be
     9058            # executed on the $host or under an emulation environment.
     9059            $opt_dry_run || {
     9060              $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
     9061              $STRIP $cwrapper
     9062            }
     9063
     9064            # Now, create the wrapper script for func_source use:
     9065            func_ltwrapper_scriptname $cwrapper
     9066            $RM $func_ltwrapper_scriptname_result
     9067            trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
     9068            $opt_dry_run || {
     9069              # note: this script will not be executed, so do not chmod.
     9070              if test "x$build" = "x$host" ; then
     9071                $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
     9072              else
     9073                func_emit_wrapper no > $func_ltwrapper_scriptname_result
     9074              fi
     9075            }
    54499076          ;;
    5450 
    5451         *)
    5452           $echo >> $output "\
    5453       exec \"\$progdir/\$program\" \${1+\"\$@\"}
    5454 "
     9077          * )
     9078            $RM $output
     9079            trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
     9080
     9081            func_emit_wrapper no > $output
     9082            chmod +x $output
    54559083          ;;
    54569084        esac
    5457         $echo >> $output "\
    5458       \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
    5459       exit $EXIT_FAILURE
    5460     fi
    5461   else
    5462     # The program doesn't exist.
    5463     \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
    5464     \$echo \"This script is just a wrapper for \$program.\" 1>&2
    5465     $echo \"See the $PACKAGE documentation for more information.\" 1>&2
    5466     exit $EXIT_FAILURE
    5467   fi
    5468 fi\
    5469 "
    5470         chmod +x $output
    5471       fi
     9085      }
    54729086      exit $EXIT_SUCCESS
    54739087      ;;
     
    54789092
    54799093      if test "$build_libtool_libs" = convenience; then
    5480         oldobjs="$libobjs_save"
     9094        oldobjs="$libobjs_save $symfileobj"
    54819095        addlibs="$convenience"
    54829096        build_libtool_libs=no
     
    54879101        else
    54889102          oldobjs="$old_deplibs $non_pic_objects"
     9103          if test "$preload" = yes && test -f "$symfileobj"; then
     9104            func_append oldobjs " $symfileobj"
     9105          fi
    54899106        fi
    54909107        addlibs="$old_convenience"
     
    54939110      if test -n "$addlibs"; then
    54949111        gentop="$output_objdir/${outputname}x"
    5495         generated="$generated $gentop"
     9112        func_append generated " $gentop"
    54969113
    54979114        func_extract_archives $gentop $addlibs
    5498         oldobjs="$oldobjs $func_extract_archives_result"
     9115        func_append oldobjs " $func_extract_archives_result"
    54999116      fi
    55009117
    55019118      # Do each command in the archive commands.
    55029119      if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
    5503        cmds=$old_archive_from_new_cmds
     9120        cmds=$old_archive_from_new_cmds
    55049121      else
     9122
     9123        # Add any objects from preloaded convenience libraries
     9124        if test -n "$dlprefiles"; then
     9125          gentop="$output_objdir/${outputname}x"
     9126          func_append generated " $gentop"
     9127
     9128          func_extract_archives $gentop $dlprefiles
     9129          func_append oldobjs " $func_extract_archives_result"
     9130        fi
     9131
    55059132        # POSIX demands no paths to be encoded in archives.  We have
    55069133        # to avoid creating archives with duplicate basenames if we
     
    55119138        if (for obj in $oldobjs
    55129139            do
    5513               $echo "X$obj" | $Xsed -e 's%^.*/%%'
     9140              func_basename "$obj"
     9141              $ECHO "$func_basename_result"
    55149142            done | sort | sort -uc >/dev/null 2>&1); then
    55159143          :
    55169144        else
    5517           $echo "copying selected object files to avoid basename conflicts..."
    5518 
    5519           if test -z "$gentop"; then
    5520             gentop="$output_objdir/${outputname}x"
    5521             generated="$generated $gentop"
    5522 
    5523             $show "${rm}r $gentop"
    5524             $run ${rm}r "$gentop"
    5525             $show "$mkdir $gentop"
    5526             $run $mkdir "$gentop"
    5527             exit_status=$?
    5528             if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
    5529               exit $exit_status
    5530             fi
    5531           fi
    5532 
     9145          echo "copying selected object files to avoid basename conflicts..."
     9146          gentop="$output_objdir/${outputname}x"
     9147          func_append generated " $gentop"
     9148          func_mkdir_p "$gentop"
    55339149          save_oldobjs=$oldobjs
    55349150          oldobjs=
     
    55369152          for obj in $save_oldobjs
    55379153          do
    5538             objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
     9154            func_basename "$obj"
     9155            objbase="$func_basename_result"
    55399156            case " $oldobjs " in
    55409157            " ") oldobjs=$obj ;;
     
    55449161                # overlaps.
    55459162                newobj=lt$counter-$objbase
    5546                 counter=`expr $counter + 1`
     9163                func_arith $counter + 1
     9164                counter=$func_arith_result
    55479165                case " $oldobjs " in
    55489166                *[\ /]"$newobj "*) ;;
     
    55509168                esac
    55519169              done
    5552               $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
    5553               $run ln "$obj" "$gentop/$newobj" ||
    5554               $run cp "$obj" "$gentop/$newobj"
    5555               oldobjs="$oldobjs $gentop/$newobj"
     9170              func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
     9171              func_append oldobjs " $gentop/$newobj"
    55569172              ;;
    5557             *) oldobjs="$oldobjs $obj" ;;
     9173            *) func_append oldobjs " $obj" ;;
    55589174            esac
    55599175          done
    55609176        fi
    5561 
     9177        func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
     9178        tool_oldlib=$func_to_tool_file_result
    55629179        eval cmds=\"$old_archive_cmds\"
    55639180
    5564         if len=`expr "X$cmds" : ".*"` &&
    5565              test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
     9181        func_len " $cmds"
     9182        len=$func_len_result
     9183        if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
     9184          cmds=$old_archive_cmds
     9185        elif test -n "$archiver_list_spec"; then
     9186          func_verbose "using command file archive linking..."
     9187          for obj in $oldobjs
     9188          do
     9189            func_to_tool_file "$obj"
     9190            $ECHO "$func_to_tool_file_result"
     9191          done > $output_objdir/$libname.libcmd
     9192          func_to_tool_file "$output_objdir/$libname.libcmd"
     9193          oldobjs=" $archiver_list_spec$func_to_tool_file_result"
    55669194          cmds=$old_archive_cmds
    55679195        else
    55689196          # the command line is too long to link in one step, link in parts
    5569           $echo "using piecewise archive linking..."
     9197          func_verbose "using piecewise archive linking..."
    55709198          save_RANLIB=$RANLIB
    55719199          RANLIB=:
     
    55739201          concat_cmds=
    55749202          save_oldobjs=$oldobjs
    5575 
     9203          oldobjs=
    55769204          # Is there a better way of finding the last object in the list?
    55779205          for obj in $save_oldobjs
     
    55799207            last_oldobj=$obj
    55809208          done
     9209          eval test_cmds=\"$old_archive_cmds\"
     9210          func_len " $test_cmds"
     9211          len0=$func_len_result
     9212          len=$len0
    55819213          for obj in $save_oldobjs
    55829214          do
    5583             oldobjs="$objlist $obj"
    5584             objlist="$objlist $obj"
    5585             eval test_cmds=\"$old_archive_cmds\"
    5586             if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
    5587                test "$len" -le "$max_cmd_len"; then
     9215            func_len " $obj"
     9216            func_arith $len + $func_len_result
     9217            len=$func_arith_result
     9218            func_append objlist " $obj"
     9219            if test "$len" -lt "$max_cmd_len"; then
    55889220              :
    55899221            else
     
    55919223              oldobjs=$objlist
    55929224              if test "$obj" = "$last_oldobj" ; then
    5593                 RANLIB=$save_RANLIB
     9225                RANLIB=$save_RANLIB
    55949226              fi
    55959227              test -z "$concat_cmds" || concat_cmds=$concat_cmds~
    55969228              eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
    55979229              objlist=
     9230              len=$len0
    55989231            fi
    55999232          done
     
    56079240        fi
    56089241      fi
    5609       save_ifs="$IFS"; IFS='~'
    5610       for cmd in $cmds; do
    5611         eval cmd=\"$cmd\"
    5612         IFS="$save_ifs"
    5613         $show "$cmd"
    5614         $run eval "$cmd" || exit $?
    5615       done
    5616       IFS="$save_ifs"
     9242      func_execute_cmds "$cmds" 'exit $?'
    56179243    done
    56189244
    5619     if test -n "$generated"; then
    5620       $show "${rm}r$generated"
    5621       $run ${rm}r$generated
    5622     fi
     9245    test -n "$generated" && \
     9246      func_show_eval "${RM}r$generated"
    56239247
    56249248    # Now create the libtool archive.
     
    56279251      old_library=
    56289252      test "$build_old_libs" = yes && old_library="$libname.$libext"
    5629       $show "creating $output"
     9253      func_verbose "creating $output"
    56309254
    56319255      # Preserve any variables that may affect compiler behavior
    56329256      for var in $variables_saved_for_relink; do
    56339257        if eval test -z \"\${$var+set}\"; then
    5634           relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
     9258          relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
    56359259        elif eval var_value=\$$var; test -z "$var_value"; then
    56369260          relink_command="$var=; export $var; $relink_command"
    56379261        else
    5638           var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
    5639           relink_command="$var=\"$var_value\"; export $var; $relink_command"
     9262          func_quote_for_eval "$var_value"
     9263          relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
    56409264        fi
    56419265      done
    56429266      # Quote the link command for shipping.
    56439267      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
    5644       relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
     9268      relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
    56459269      if test "$hardcode_automatic" = yes ; then
    56469270        relink_command=
    56479271      fi
    56489272
    5649 
    56509273      # Only create the output if not a dry run.
    5651       if test -z "$run"; then
     9274      $opt_dry_run || {
    56529275        for installed in no yes; do
    56539276          if test "$installed" = yes; then
     
    56619284              case $deplib in
    56629285              *.la)
    5663                 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
    5664                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
    5665                 if test -z "$libdir"; then
    5666                   $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
    5667                   exit $EXIT_FAILURE
    5668                 fi
    5669                 if test "X$EGREP" = X ; then
    5670                         EGREP=egrep
    5671                 fi
    5672                 # We do not want portage's install root ($D) present.  Check only for
    5673                 # this if the .la is being installed.
    5674                 if test "$installed" = yes && test "$D"; then
    5675                   eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
    5676                 else
    5677                   mynewdependency_lib="$libdir/$name"
    5678                 fi
    5679                 # Do not add duplicates
    5680                 if test "$mynewdependency_lib"; then
    5681                   my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
    5682                   if test -z "$my_little_ninja_foo_1"; then
    5683                     newdependency_libs="$newdependency_libs $mynewdependency_lib"
    5684                   fi
    5685                 fi
     9286                func_basename "$deplib"
     9287                name="$func_basename_result"
     9288                func_resolve_sysroot "$deplib"
     9289                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
     9290                test -z "$libdir" && \
     9291                  func_fatal_error "\`$deplib' is not a valid libtool archive"
     9292                func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
    56869293                ;;
    5687                   *)
    5688                 if test "$installed" = yes; then
    5689                   # Rather use S=WORKDIR if our version of portage supports it.
    5690                   # This is because some ebuild (gcc) do not use $S as buildroot.
    5691                   if test "$PWORKDIR"; then
    5692                     S="$PWORKDIR"
    5693                   fi
    5694                   # We do not want portage's build root ($S) present.
    5695                   my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"`
    5696                   # We do not want portage's install root ($D) present.
    5697                   my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"`
    5698                   if test -n "$my_little_ninja_foo_2" && test "$S"; then
    5699                     mynewdependency_lib=""
    5700                   elif test -n "$my_little_ninja_foo_3" && test "$D"; then
    5701                     eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
    5702                   else
    5703                     mynewdependency_lib="$deplib"
    5704                   fi
    5705                 else
    5706                   mynewdependency_lib="$deplib"
    5707                 fi
    5708                 # Do not add duplicates
    5709                 if test "$mynewdependency_lib"; then
    5710                   my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
    5711                   if test -z "$my_little_ninja_foo_4"; then
    5712                         newdependency_libs="$newdependency_libs $mynewdependency_lib"
    5713                   fi
    5714                 fi
     9294              -L*)
     9295                func_stripname -L '' "$deplib"
     9296                func_replace_sysroot "$func_stripname_result"
     9297                func_append newdependency_libs " -L$func_replace_sysroot_result"
    57159298                ;;
     9299              -R*)
     9300                func_stripname -R '' "$deplib"
     9301                func_replace_sysroot "$func_stripname_result"
     9302                func_append newdependency_libs " -R$func_replace_sysroot_result"
     9303                ;;
     9304              *) func_append newdependency_libs " $deplib" ;;
    57169305              esac
    57179306            done
    57189307            dependency_libs="$newdependency_libs"
    57199308            newdlfiles=
     9309
    57209310            for lib in $dlfiles; do
    5721               name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
    5722               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
    5723               if test -z "$libdir"; then
    5724                 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
    5725                 exit $EXIT_FAILURE
    5726               fi
    5727               newdlfiles="$newdlfiles $libdir/$name"
     9311              case $lib in
     9312              *.la)
     9313                func_basename "$lib"
     9314                name="$func_basename_result"
     9315                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
     9316                test -z "$libdir" && \
     9317                  func_fatal_error "\`$lib' is not a valid libtool archive"
     9318                func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
     9319                ;;
     9320              *) func_append newdlfiles " $lib" ;;
     9321              esac
    57289322            done
    57299323            dlfiles="$newdlfiles"
    57309324            newdlprefiles=
    57319325            for lib in $dlprefiles; do
    5732               name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
    5733               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
    5734               if test -z "$libdir"; then
    5735                 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
    5736                 exit $EXIT_FAILURE
    5737               fi
    5738               newdlprefiles="$newdlprefiles $libdir/$name"
     9326              case $lib in
     9327              *.la)
     9328                # Only pass preopened files to the pseudo-archive (for
     9329                # eventual linking with the app. that links it) if we
     9330                # didn't already link the preopened objects directly into
     9331                # the library:
     9332                func_basename "$lib"
     9333                name="$func_basename_result"
     9334                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
     9335                test -z "$libdir" && \
     9336                  func_fatal_error "\`$lib' is not a valid libtool archive"
     9337                func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
     9338                ;;
     9339              esac
    57399340            done
    57409341            dlprefiles="$newdlprefiles"
     
    57469347                *) abs=`pwd`"/$lib" ;;
    57479348              esac
    5748               newdlfiles="$newdlfiles $abs"
     9349              func_append newdlfiles " $abs"
    57499350            done
    57509351            dlfiles="$newdlfiles"
     
    57559356                *) abs=`pwd`"/$lib" ;;
    57569357              esac
    5757               newdlprefiles="$newdlprefiles $abs"
     9358              func_append newdlprefiles " $abs"
    57589359            done
    57599360            dlprefiles="$newdlprefiles"
    57609361          fi
    5761           $rm $output
     9362          $RM $output
    57629363          # place dlname in correct position for cygwin
     9364          # In fact, it would be nice if we could use this code for all target
     9365          # systems that can't hard-code library paths into their executables
     9366          # and that have no shared library path variable independent of PATH,
     9367          # but it turns out we can't easily determine that from inspecting
     9368          # libtool variables, so we have to hard-code the OSs to which it
     9369          # applies here; at the moment, that means platforms that use the PE
     9370          # object format with DLL files.  See the long comment at the top of
     9371          # tests/bindir.at for full details.
    57639372          tdlname=$dlname
    57649373          case $host,$output,$installed,$module,$dlname in
    5765             *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
     9374            *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
     9375              # If a -bindir argument was supplied, place the dll there.
     9376              if test "x$bindir" != x ;
     9377              then
     9378                func_relative_path "$install_libdir" "$bindir"
     9379                tdlname=$func_relative_path_result$dlname
     9380              else
     9381                # Otherwise fall back on heuristic.
     9382                tdlname=../bin/$dlname
     9383              fi
     9384              ;;
    57669385          esac
    5767           # Do not add duplicates
    5768           if test "$installed" = yes && test "$D"; then
    5769             install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
    5770           fi
    5771           $echo > $output "\
     9386          $ECHO > $output "\
    57729387# $outputname - a libtool library file
    5773 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
     9388# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
    57749389#
    57759390# Please DO NOT delete this file!
     
    57859400old_library='$old_library'
    57869401
     9402# Linker flags that can not go in dependency_libs.
     9403inherited_linker_flags='$new_inherited_linker_flags'
     9404
    57879405# Libraries that this one depends upon.
    57889406dependency_libs='$dependency_libs'
     9407
     9408# Names of additional weak libraries provided by this library
     9409weak_library_names='$weak_libs'
    57899410
    57909411# Version information for $libname.
     
    58069427libdir='$install_libdir'"
    58079428          if test "$installed" = no && test "$need_relink" = yes; then
    5808             $echo >> $output "\
     9429            $ECHO >> $output "\
    58099430relink_command=\"$relink_command\""
    58109431          fi
    58119432        done
    5812       fi
     9433      }
    58139434
    58149435      # Do a symbolic link so that the libtool archive can be found in
    58159436      # LD_LIBRARY_PATH before the program is installed.
    5816       $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
    5817       $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
     9437      func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
    58189438      ;;
    58199439    esac
    58209440    exit $EXIT_SUCCESS
    5821     ;;
    5822 
    5823   # libtool install mode
    5824   install)
    5825     modename="$modename: install"
    5826 
    5827     # There may be an optional sh(1) argument at the beginning of
    5828     # install_prog (especially on Windows NT).
    5829     if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
    5830        # Allow the use of GNU shtool's install command.
    5831        $echo "X$nonopt" | grep shtool > /dev/null; then
    5832       # Aesthetically quote it.
    5833       arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
    5834       case $arg in
    5835       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    5836         arg="\"$arg\""
    5837         ;;
    5838       esac
    5839       install_prog="$arg "
    5840       arg="$1"
    5841       shift
    5842     else
    5843       install_prog=
    5844       arg=$nonopt
    5845     fi
    5846 
    5847     # The real first argument should be the name of the installation program.
    5848     # Aesthetically quote it.
    5849     arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
    5850     case $arg in
    5851     *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
    5852       arg="\"$arg\""
    5853       ;;
    5854     esac
    5855     install_prog="$install_prog$arg"
    5856 
    5857     # We need to accept at least all the BSD install flags.
    5858     dest=
     9441}
     9442
     9443{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
     9444    func_mode_link ${1+"$@"}
     9445
     9446
     9447# func_mode_uninstall arg...
     9448func_mode_uninstall ()
     9449{
     9450    $opt_debug
     9451    RM="$nonopt"
    58599452    files=
    5860     opts=
    5861     prev=
    5862     install_type=
    5863     isdir=no
    5864     stripme=
    5865     for arg
    5866     do
    5867       if test -n "$dest"; then
    5868         files="$files $dest"
    5869         dest=$arg
    5870         continue
    5871       fi
    5872 
    5873       case $arg in
    5874       -d) isdir=yes ;;
    5875       -f)
    5876         case " $install_prog " in
    5877         *[\\\ /]cp\ *) ;;
    5878         *) prev=$arg ;;
    5879         esac
    5880         ;;
    5881       -g | -m | -o) prev=$arg ;;
    5882       -s)
    5883         stripme=" -s"
    5884         continue
    5885         ;;
    5886       -*)
    5887         ;;
    5888       *)
    5889         # If the previous option needed an argument, then skip it.
    5890         if test -n "$prev"; then
    5891           prev=
    5892         else
    5893           dest=$arg
    5894           continue
    5895         fi
    5896         ;;
    5897       esac
    5898 
    5899       # Aesthetically quote the argument.
    5900       arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
    5901       case $arg in
    5902       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    5903         arg="\"$arg\""
    5904         ;;
    5905       esac
    5906       install_prog="$install_prog $arg"
    5907     done
    5908 
    5909     if test -z "$install_prog"; then
    5910       $echo "$modename: you must specify an install program" 1>&2
    5911       $echo "$help" 1>&2
    5912       exit $EXIT_FAILURE
    5913     fi
    5914 
    5915     if test -n "$prev"; then
    5916       $echo "$modename: the \`$prev' option requires an argument" 1>&2
    5917       $echo "$help" 1>&2
    5918       exit $EXIT_FAILURE
    5919     fi
    5920 
    5921     if test -z "$files"; then
    5922       if test -z "$dest"; then
    5923         $echo "$modename: no file or destination specified" 1>&2
    5924       else
    5925         $echo "$modename: you must specify a destination" 1>&2
    5926       fi
    5927       $echo "$help" 1>&2
    5928       exit $EXIT_FAILURE
    5929     fi
    5930 
    5931     # Strip any trailing slash from the destination.
    5932     dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
    5933 
    5934     # Check to see that the destination is a directory.
    5935     test -d "$dest" && isdir=yes
    5936     if test "$isdir" = yes; then
    5937       destdir="$dest"
    5938       destname=
    5939     else
    5940       destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
    5941       test "X$destdir" = "X$dest" && destdir=.
    5942       destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
    5943 
    5944       # Not a directory, so check to see that there is only one file specified.
    5945       set dummy $files
    5946       if test "$#" -gt 2; then
    5947         $echo "$modename: \`$dest' is not a directory" 1>&2
    5948         $echo "$help" 1>&2
    5949         exit $EXIT_FAILURE
    5950       fi
    5951     fi
    5952     case $destdir in
    5953     [\\/]* | [A-Za-z]:[\\/]*) ;;
    5954     *)
    5955       for file in $files; do
    5956         case $file in
    5957         *.lo) ;;
    5958         *)
    5959           $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
    5960           $echo "$help" 1>&2
    5961           exit $EXIT_FAILURE
    5962           ;;
    5963         esac
    5964       done
    5965       ;;
    5966     esac
     9453    rmforce=
     9454    exit_status=0
    59679455
    59689456    # This variable tells wrapper scripts just to set variables rather
     
    59709458    libtool_install_magic="$magic"
    59719459
    5972     staticlibs=
    5973     future_libdirs=
    5974     current_libdirs=
    5975     for file in $files; do
    5976 
    5977       # Do each installation.
    5978       case $file in
    5979       *.$libext)
    5980         # Do the static libraries later.
    5981         staticlibs="$staticlibs $file"
    5982         ;;
    5983 
    5984       *.la)
    5985         # Check to see that this really is a libtool archive.
    5986         if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
    5987         else
    5988           $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
    5989           $echo "$help" 1>&2
    5990           exit $EXIT_FAILURE
    5991         fi
    5992 
    5993         library_names=
    5994         old_library=
    5995         relink_command=
    5996         # If there is no directory component, then add one.
    5997         case $file in
    5998         */* | *\\*) . $file ;;
    5999         *) . ./$file ;;
    6000         esac
    6001 
    6002         # Add the libdir to current_libdirs if it is the destination.
    6003         if test "X$destdir" = "X$libdir"; then
    6004           case "$current_libdirs " in
    6005           *" $libdir "*) ;;
    6006           *) current_libdirs="$current_libdirs $libdir" ;;
    6007           esac
    6008         else
    6009           # Note the libdir as a future libdir.
    6010           case "$future_libdirs " in
    6011           *" $libdir "*) ;;
    6012           *) future_libdirs="$future_libdirs $libdir" ;;
    6013           esac
    6014         fi
    6015 
    6016         dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
    6017         test "X$dir" = "X$file/" && dir=
    6018         dir="$dir$objdir"
    6019 
    6020         if test -n "$relink_command"; then
    6021           # Determine the prefix the user has applied to our future dir.
    6022           inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
    6023 
    6024           # Don't allow the user to place us outside of our expected
    6025           # location b/c this prevents finding dependent libraries that
    6026           # are installed to the same prefix.
    6027           # At present, this check doesn't affect windows .dll's that
    6028           # are installed into $libdir/../bin (currently, that works fine)
    6029           # but it's something to keep an eye on.
    6030           if test "$inst_prefix_dir" = "$destdir"; then
    6031             $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
    6032             exit $EXIT_FAILURE
    6033           fi
    6034 
    6035           if test -n "$inst_prefix_dir"; then
    6036             # Stick the inst_prefix_dir data into the link command.
    6037             relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
    6038           else
    6039             relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
    6040           fi
    6041 
    6042           $echo "$modename: warning: relinking \`$file'" 1>&2
    6043           $show "$relink_command"
    6044           if $run eval "$relink_command"; then :
    6045           else
    6046             $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
    6047             exit $EXIT_FAILURE
    6048           fi
    6049         fi
    6050 
    6051         # See the names of the shared library.
    6052         set dummy $library_names
    6053         if test -n "$2"; then
    6054           realname="$2"
    6055           shift
    6056           shift
    6057 
    6058           srcname="$realname"
    6059           test -n "$relink_command" && srcname="$realname"T
    6060 
    6061           # Install the shared library and build the symlinks.
    6062           $show "$install_prog $dir/$srcname $destdir/$realname"
    6063           $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
    6064           if test -n "$stripme" && test -n "$striplib"; then
    6065             $show "$striplib $destdir/$realname"
    6066             $run eval "$striplib $destdir/$realname" || exit $?
    6067           fi
    6068 
    6069           if test "$#" -gt 0; then
    6070             # Delete the old symlinks, and create new ones.
    6071             # Try `ln -sf' first, because the `ln' binary might depend on
    6072             # the symlink we replace!  Solaris /bin/ln does not understand -f,
    6073             # so we also need to try rm && ln -s.
    6074             for linkname
    6075             do
    6076               if test "$linkname" != "$realname"; then
    6077                 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
    6078                 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
    6079               fi
    6080             done
    6081           fi
    6082 
    6083           # Do each command in the postinstall commands.
    6084           lib="$destdir/$realname"
    6085           cmds=$postinstall_cmds
    6086           save_ifs="$IFS"; IFS='~'
    6087           for cmd in $cmds; do
    6088             IFS="$save_ifs"
    6089             eval cmd=\"$cmd\"
    6090             $show "$cmd"
    6091             $run eval "$cmd" || {
    6092               lt_exit=$?
    6093 
    6094               # Restore the uninstalled library and exit
    6095               if test "$mode" = relink; then
    6096                 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
    6097               fi
    6098 
    6099               exit $lt_exit
    6100             }
    6101           done
    6102           IFS="$save_ifs"
    6103         fi
    6104 
    6105         # Install the pseudo-library for information purposes.
    6106         name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
    6107         instname="$dir/$name"i
    6108         $show "$install_prog $instname $destdir/$name"
    6109         $run eval "$install_prog $instname $destdir/$name" || exit $?
    6110 
    6111         # Maybe install the static library, too.
    6112         test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
    6113         ;;
    6114 
    6115       *.lo)
    6116         # Install (i.e. copy) a libtool object.
    6117 
    6118         # Figure out destination file name, if it wasn't already specified.
    6119         if test -n "$destname"; then
    6120           destfile="$destdir/$destname"
    6121         else
    6122           destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
    6123           destfile="$destdir/$destfile"
    6124         fi
    6125 
    6126         # Deduce the name of the destination old-style object file.
    6127         case $destfile in
    6128         *.lo)
    6129           staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
    6130           ;;
    6131         *.$objext)
    6132           staticdest="$destfile"
    6133           destfile=
    6134           ;;
    6135         *)
    6136           $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
    6137           $echo "$help" 1>&2
    6138           exit $EXIT_FAILURE
    6139           ;;
    6140         esac
    6141 
    6142         # Install the libtool object if requested.
    6143         if test -n "$destfile"; then
    6144           $show "$install_prog $file $destfile"
    6145           $run eval "$install_prog $file $destfile" || exit $?
    6146         fi
    6147 
    6148         # Install the old object if enabled.
    6149         if test "$build_old_libs" = yes; then
    6150           # Deduce the name of the old-style object file.
    6151           staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
    6152 
    6153           $show "$install_prog $staticobj $staticdest"
    6154           $run eval "$install_prog \$staticobj \$staticdest" || exit $?
    6155         fi
    6156         exit $EXIT_SUCCESS
    6157         ;;
    6158 
    6159       *)
    6160         # Figure out destination file name, if it wasn't already specified.
    6161         if test -n "$destname"; then
    6162           destfile="$destdir/$destname"
    6163         else
    6164           destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
    6165           destfile="$destdir/$destfile"
    6166         fi
    6167 
    6168         # If the file is missing, and there is a .exe on the end, strip it
    6169         # because it is most likely a libtool script we actually want to
    6170         # install
    6171         stripped_ext=""
    6172         case $file in
    6173           *.exe)
    6174             if test ! -f "$file"; then
    6175               file=`$echo $file|${SED} 's,.exe$,,'`
    6176               stripped_ext=".exe"
    6177             fi
    6178             ;;
    6179         esac
    6180 
    6181         # Do a test to see if this is really a libtool program.
    6182         case $host in
    6183         *cygwin*|*mingw*)
    6184             wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
    6185             ;;
    6186         *)
    6187             wrapper=$file
    6188             ;;
    6189         esac
    6190         if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
    6191           notinst_deplibs=
    6192           relink_command=
    6193 
    6194           # Note that it is not necessary on cygwin/mingw to append a dot to
    6195           # foo even if both foo and FILE.exe exist: automatic-append-.exe
    6196           # behavior happens only for exec(3), not for open(2)!  Also, sourcing
    6197           # `FILE.' does not work on cygwin managed mounts.
    6198           #
    6199           # If there is no directory component, then add one.
    6200           case $wrapper in
    6201           */* | *\\*) . ${wrapper} ;;
    6202           *) . ./${wrapper} ;;
    6203           esac
    6204 
    6205           # Check the variables that should have been set.
    6206           if test -z "$notinst_deplibs"; then
    6207             $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
    6208             exit $EXIT_FAILURE
    6209           fi
    6210 
    6211           finalize=yes
    6212           for lib in $notinst_deplibs; do
    6213             # Check to see that each library is installed.
    6214             libdir=
    6215             if test -f "$lib"; then
    6216               # If there is no directory component, then add one.
    6217               case $lib in
    6218               */* | *\\*) . $lib ;;
    6219               *) . ./$lib ;;
    6220               esac
    6221             fi
    6222             libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
    6223             if test -n "$libdir" && test ! -f "$libfile"; then
    6224               $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
    6225               finalize=no
    6226             fi
    6227           done
    6228 
    6229           relink_command=
    6230           # Note that it is not necessary on cygwin/mingw to append a dot to
    6231           # foo even if both foo and FILE.exe exist: automatic-append-.exe
    6232           # behavior happens only for exec(3), not for open(2)!  Also, sourcing
    6233           # `FILE.' does not work on cygwin managed mounts.
    6234           #
    6235           # If there is no directory component, then add one.
    6236           case $wrapper in
    6237           */* | *\\*) . ${wrapper} ;;
    6238           *) . ./${wrapper} ;;
    6239           esac
    6240 
    6241           outputname=
    6242           if test "$fast_install" = no && test -n "$relink_command"; then
    6243             if test "$finalize" = yes && test -z "$run"; then
    6244               tmpdir=`func_mktempdir`
    6245               file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
    6246               outputname="$tmpdir/$file"
    6247               # Replace the output file specification.
    6248               relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
    6249 
    6250               $show "$relink_command"
    6251               if $run eval "$relink_command"; then :
    6252               else
    6253                 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
    6254                 ${rm}r "$tmpdir"
    6255                 continue
    6256               fi
    6257               file="$outputname"
    6258             else
    6259               $echo "$modename: warning: cannot relink \`$file'" 1>&2
    6260             fi
    6261           else
    6262             # Install the binary that we compiled earlier.
    6263             file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
    6264           fi
    6265         fi
    6266 
    6267         # remove .exe since cygwin /usr/bin/install will append another
    6268         # one anyway
    6269         case $install_prog,$host in
    6270         */usr/bin/install*,*cygwin*)
    6271           case $file:$destfile in
    6272           *.exe:*.exe)
    6273             # this is ok
    6274             ;;
    6275           *.exe:*)
    6276             destfile=$destfile.exe
    6277             ;;
    6278           *:*.exe)
    6279             destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
    6280             ;;
    6281           esac
    6282           ;;
    6283         esac
    6284         $show "$install_prog$stripme $file $destfile"
    6285         $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
    6286         test -n "$outputname" && ${rm}r "$tmpdir"
    6287         ;;
    6288       esac
    6289     done
    6290 
    6291     for file in $staticlibs; do
    6292       name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
    6293 
    6294       # Set up the ranlib parameters.
    6295       oldlib="$destdir/$name"
    6296 
    6297       $show "$install_prog $file $oldlib"
    6298       $run eval "$install_prog \$file \$oldlib" || exit $?
    6299 
    6300       if test -n "$stripme" && test -n "$old_striplib"; then
    6301         $show "$old_striplib $oldlib"
    6302         $run eval "$old_striplib $oldlib" || exit $?
    6303       fi
    6304 
    6305       # Do each command in the postinstall commands.
    6306       cmds=$old_postinstall_cmds
    6307       save_ifs="$IFS"; IFS='~'
    6308       for cmd in $cmds; do
    6309         IFS="$save_ifs"
    6310         eval cmd=\"$cmd\"
    6311         $show "$cmd"
    6312         $run eval "$cmd" || exit $?
    6313       done
    6314       IFS="$save_ifs"
    6315     done
    6316 
    6317     if test -n "$future_libdirs"; then
    6318       $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
    6319     fi
    6320 
    6321     if test -n "$current_libdirs"; then
    6322       # Maybe just do a dry run.
    6323       test -n "$run" && current_libdirs=" -n$current_libdirs"
    6324       exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
    6325     else
    6326       exit $EXIT_SUCCESS
    6327     fi
    6328     ;;
    6329 
    6330   # libtool finish mode
    6331   finish)
    6332     modename="$modename: finish"
    6333     libdirs="$nonopt"
    6334     admincmds=
    6335 
    6336     if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
    6337       for dir
    6338       do
    6339         libdirs="$libdirs $dir"
    6340       done
    6341 
    6342       for libdir in $libdirs; do
    6343         if test -n "$finish_cmds"; then
    6344           # Do each command in the finish commands.
    6345           cmds=$finish_cmds
    6346           save_ifs="$IFS"; IFS='~'
    6347           for cmd in $cmds; do
    6348             IFS="$save_ifs"
    6349             eval cmd=\"$cmd\"
    6350             $show "$cmd"
    6351             $run eval "$cmd" || admincmds="$admincmds
    6352        $cmd"
    6353           done
    6354           IFS="$save_ifs"
    6355         fi
    6356         if test -n "$finish_eval"; then
    6357           # Do the single finish_eval.
    6358           eval cmds=\"$finish_eval\"
    6359           $run eval "$cmds" || admincmds="$admincmds
    6360        $cmds"
    6361         fi
    6362       done
    6363     fi
    6364 
    6365     # Exit here if they wanted silent mode.
    6366     test "$show" = : && exit $EXIT_SUCCESS
    6367 
    6368     $echo "X----------------------------------------------------------------------" | $Xsed
    6369     $echo "Libraries have been installed in:"
    6370     for libdir in $libdirs; do
    6371       $echo "   $libdir"
    6372     done
    6373     $echo
    6374     $echo "If you ever happen to want to link against installed libraries"
    6375     $echo "in a given directory, LIBDIR, you must either use libtool, and"
    6376     $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
    6377     $echo "flag during linking and do at least one of the following:"
    6378     if test -n "$shlibpath_var"; then
    6379       $echo "   - add LIBDIR to the \`$shlibpath_var' environment variable"
    6380       $echo "     during execution"
    6381     fi
    6382     if test -n "$runpath_var"; then
    6383       $echo "   - add LIBDIR to the \`$runpath_var' environment variable"
    6384       $echo "     during linking"
    6385     fi
    6386     if test -n "$hardcode_libdir_flag_spec"; then
    6387       libdir=LIBDIR
    6388       eval flag=\"$hardcode_libdir_flag_spec\"
    6389 
    6390       $echo "   - use the \`$flag' linker flag"
    6391     fi
    6392     if test -n "$admincmds"; then
    6393       $echo "   - have your system administrator run these commands:$admincmds"
    6394     fi
    6395     if test -f /etc/ld.so.conf; then
    6396       $echo "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
    6397     fi
    6398     $echo
    6399     $echo "See any operating system documentation about shared libraries for"
    6400     $echo "more information, such as the ld(1) and ld.so(8) manual pages."
    6401     $echo "X----------------------------------------------------------------------" | $Xsed
    6402     exit $EXIT_SUCCESS
    6403     ;;
    6404 
    6405   # libtool execute mode
    6406   execute)
    6407     modename="$modename: execute"
    6408 
    6409     # The first argument is the command name.
    6410     cmd="$nonopt"
    6411     if test -z "$cmd"; then
    6412       $echo "$modename: you must specify a COMMAND" 1>&2
    6413       $echo "$help"
    6414       exit $EXIT_FAILURE
    6415     fi
    6416 
    6417     # Handle -dlopen flags immediately.
    6418     for file in $execute_dlfiles; do
    6419       if test ! -f "$file"; then
    6420         $echo "$modename: \`$file' is not a file" 1>&2
    6421         $echo "$help" 1>&2
    6422         exit $EXIT_FAILURE
    6423       fi
    6424 
    6425       dir=
    6426       case $file in
    6427       *.la)
    6428         # Check to see that this really is a libtool archive.
    6429         if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
    6430         else
    6431           $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
    6432           $echo "$help" 1>&2
    6433           exit $EXIT_FAILURE
    6434         fi
    6435 
    6436         # Read the libtool library.
    6437         dlname=
    6438         library_names=
    6439 
    6440         # If there is no directory component, then add one.
    6441         case $file in
    6442         */* | *\\*) . $file ;;
    6443         *) . ./$file ;;
    6444         esac
    6445 
    6446         # Skip this library if it cannot be dlopened.
    6447         if test -z "$dlname"; then
    6448           # Warn if it was a shared library.
    6449           test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
    6450           continue
    6451         fi
    6452 
    6453         dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
    6454         test "X$dir" = "X$file" && dir=.
    6455 
    6456         if test -f "$dir/$objdir/$dlname"; then
    6457           dir="$dir/$objdir"
    6458         else
    6459           $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
    6460           exit $EXIT_FAILURE
    6461         fi
    6462         ;;
    6463 
    6464       *.lo)
    6465         # Just add the directory containing the .lo file.
    6466         dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
    6467         test "X$dir" = "X$file" && dir=.
    6468         ;;
    6469 
    6470       *)
    6471         $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
    6472         continue
    6473         ;;
    6474       esac
    6475 
    6476       # Get the absolute pathname.
    6477       absdir=`cd "$dir" && pwd`
    6478       test -n "$absdir" && dir="$absdir"
    6479 
    6480       # Now add the directory to shlibpath_var.
    6481       if eval "test -z \"\$$shlibpath_var\""; then
    6482         eval "$shlibpath_var=\"\$dir\""
    6483       else
    6484         eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
    6485       fi
    6486     done
    6487 
    6488     # This variable tells wrapper scripts just to set shlibpath_var
    6489     # rather than running their programs.
    6490     libtool_execute_magic="$magic"
    6491 
    6492     # Check if any of the arguments is a wrapper script.
    6493     args=
    6494     for file
    6495     do
    6496       case $file in
    6497       -*) ;;
    6498       *)
    6499         # Do a test to see if this is really a libtool program.
    6500         if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
    6501           # If there is no directory component, then add one.
    6502           case $file in
    6503           */* | *\\*) . $file ;;
    6504           *) . ./$file ;;
    6505           esac
    6506 
    6507           # Transform arg to wrapped name.
    6508           file="$progdir/$program"
    6509         fi
    6510         ;;
    6511       esac
    6512       # Quote arguments (to preserve shell metacharacters).
    6513       file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
    6514       args="$args \"$file\""
    6515     done
    6516 
    6517     if test -z "$run"; then
    6518       if test -n "$shlibpath_var"; then
    6519         # Export the shlibpath_var.
    6520         eval "export $shlibpath_var"
    6521       fi
    6522 
    6523       # Restore saved environment variables
    6524       if test "${save_LC_ALL+set}" = set; then
    6525         LC_ALL="$save_LC_ALL"; export LC_ALL
    6526       fi
    6527       if test "${save_LANG+set}" = set; then
    6528         LANG="$save_LANG"; export LANG
    6529       fi
    6530 
    6531       # Now prepare to actually exec the command.
    6532       exec_cmd="\$cmd$args"
    6533     else
    6534       # Display what would be done.
    6535       if test -n "$shlibpath_var"; then
    6536         eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
    6537         $echo "export $shlibpath_var"
    6538       fi
    6539       $echo "$cmd$args"
    6540       exit $EXIT_SUCCESS
    6541     fi
    6542     ;;
    6543 
    6544   # libtool clean and uninstall mode
    6545   clean | uninstall)
    6546     modename="$modename: $mode"
    6547     rm="$nonopt"
    6548     files=
    6549     rmforce=
    6550     exit_status=0
    6551 
    6552     # This variable tells wrapper scripts just to set variables rather
    6553     # than running their programs.
    6554     libtool_install_magic="$magic"
    6555 
    65569460    for arg
    65579461    do
    65589462      case $arg in
    6559       -f) rm="$rm $arg"; rmforce=yes ;;
    6560       -*) rm="$rm $arg" ;;
    6561       *) files="$files $arg" ;;
     9463      -f) func_append RM " $arg"; rmforce=yes ;;
     9464      -*) func_append RM " $arg" ;;
     9465      *) func_append files " $arg" ;;
    65629466      esac
    65639467    done
    65649468
    6565     if test -z "$rm"; then
    6566       $echo "$modename: you must specify an RM program" 1>&2
    6567       $echo "$help" 1>&2
    6568       exit $EXIT_FAILURE
    6569     fi
     9469    test -z "$RM" && \
     9470      func_fatal_help "you must specify an RM program"
    65709471
    65719472    rmdirs=
    65729473
    6573     origobjdir="$objdir"
    65749474    for file in $files; do
    6575       dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
    6576       if test "X$dir" = "X$file"; then
    6577         dir=.
    6578         objdir="$origobjdir"
     9475      func_dirname "$file" "" "."
     9476      dir="$func_dirname_result"
     9477      if test "X$dir" = X.; then
     9478        odir="$objdir"
    65799479      else
    6580         objdir="$dir/$origobjdir"
     9480        odir="$dir/$objdir"
    65819481      fi
    6582       name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
    6583       test "$mode" = uninstall && objdir="$dir"
    6584 
    6585       # Remember objdir for removal later, being careful to avoid duplicates
    6586       if test "$mode" = clean; then
     9482      func_basename "$file"
     9483      name="$func_basename_result"
     9484      test "$opt_mode" = uninstall && odir="$dir"
     9485
     9486      # Remember odir for removal later, being careful to avoid duplicates
     9487      if test "$opt_mode" = clean; then
    65879488        case " $rmdirs " in
    6588           *" $objdir "*) ;;
    6589           *) rmdirs="$rmdirs $objdir" ;;
     9489          *" $odir "*) ;;
     9490          *) func_append rmdirs " $odir" ;;
    65909491        esac
    65919492      fi
    65929493
    65939494      # Don't error if the file doesn't exist and rm -f was used.
    6594       if (test -L "$file") >/dev/null 2>&1 \
    6595         || (test -h "$file") >/dev/null 2>&1 \
    6596         || test -f "$file"; then
     9495      if { test -L "$file"; } >/dev/null 2>&1 ||
     9496         { test -h "$file"; } >/dev/null 2>&1 ||
     9497        test -f "$file"; then
    65979498        :
    65989499      elif test -d "$file"; then
     
    66089509      *.la)
    66099510        # Possibly a libtool archive, so verify it.
    6610         if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
    6611           . $dir/$name
     9511        if func_lalib_p "$file"; then
     9512          func_source $dir/$name
    66129513
    66139514          # Delete the libtool libraries and symlinks.
    66149515          for n in $library_names; do
    6615             rmfiles="$rmfiles $objdir/$n"
     9516            func_append rmfiles " $odir/$n"
    66169517          done
    6617           test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
    6618 
    6619           case "$mode" in
     9518          test -n "$old_library" && func_append rmfiles " $odir/$old_library"
     9519
     9520          case "$opt_mode" in
    66209521          clean)
    6621             case "  $library_names " in
    6622             # "  " in the beginning catches empty $dlname
     9522            case " $library_names " in
    66239523            *" $dlname "*) ;;
    6624             *) rmfiles="$rmfiles $objdir/$dlname" ;;
     9524            *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
    66259525            esac
    6626              test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
     9526            test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
    66279527            ;;
    66289528          uninstall)
    66299529            if test -n "$library_names"; then
    66309530              # Do each command in the postuninstall commands.
    6631               cmds=$postuninstall_cmds
    6632               save_ifs="$IFS"; IFS='~'
    6633               for cmd in $cmds; do
    6634                 IFS="$save_ifs"
    6635                 eval cmd=\"$cmd\"
    6636                 $show "$cmd"
    6637                 $run eval "$cmd"
    6638                 if test "$?" -ne 0 && test "$rmforce" != yes; then
    6639                   exit_status=1
    6640                 fi
    6641               done
    6642               IFS="$save_ifs"
     9531              func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
    66439532            fi
    66449533
    66459534            if test -n "$old_library"; then
    66469535              # Do each command in the old_postuninstall commands.
    6647               cmds=$old_postuninstall_cmds
    6648               save_ifs="$IFS"; IFS='~'
    6649               for cmd in $cmds; do
    6650                 IFS="$save_ifs"
    6651                 eval cmd=\"$cmd\"
    6652                 $show "$cmd"
    6653                 $run eval "$cmd"
    6654                 if test "$?" -ne 0 && test "$rmforce" != yes; then
    6655                   exit_status=1
    6656                 fi
    6657               done
    6658               IFS="$save_ifs"
     9536              func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
    66599537            fi
    66609538            # FIXME: should reinstall the best remaining shared library.
     
    66669544      *.lo)
    66679545        # Possibly a libtool object, so verify it.
    6668         if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
     9546        if func_lalib_p "$file"; then
    66699547
    66709548          # Read the .lo file
    6671           . $dir/$name
     9549          func_source $dir/$name
    66729550
    66739551          # Add PIC object to the list of files to remove.
    6674           if test -n "$pic_object" \
    6675              && test "$pic_object" != none; then
    6676             rmfiles="$rmfiles $dir/$pic_object"
     9552          if test -n "$pic_object" &&
     9553             test "$pic_object" != none; then
     9554            func_append rmfiles " $dir/$pic_object"
    66779555          fi
    66789556
    66799557          # Add non-PIC object to the list of files to remove.
    6680           if test -n "$non_pic_object" \
    6681              && test "$non_pic_object" != none; then
    6682             rmfiles="$rmfiles $dir/$non_pic_object"
     9558          if test -n "$non_pic_object" &&
     9559             test "$non_pic_object" != none; then
     9560            func_append rmfiles " $dir/$non_pic_object"
    66839561          fi
    66849562        fi
     
    66869564
    66879565      *)
    6688         if test "$mode" = clean ; then
     9566        if test "$opt_mode" = clean ; then
    66899567          noexename=$name
    66909568          case $file in
    66919569          *.exe)
    6692             file=`$echo $file|${SED} 's,.exe$,,'`
    6693             noexename=`$echo $name|${SED} 's,.exe$,,'`
     9570            func_stripname '' '.exe' "$file"
     9571            file=$func_stripname_result
     9572            func_stripname '' '.exe' "$name"
     9573            noexename=$func_stripname_result
    66949574            # $file with .exe has already been added to rmfiles,
    66959575            # add $file without .exe
    6696             rmfiles="$rmfiles $file"
     9576            func_append rmfiles " $file"
    66979577            ;;
    66989578          esac
    66999579          # Do a test to see if this is a libtool program.
    6700           if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
    6701             relink_command=
    6702             . $dir/$noexename
     9580          if func_ltwrapper_p "$file"; then
     9581            if func_ltwrapper_executable_p "$file"; then
     9582              func_ltwrapper_scriptname "$file"
     9583              relink_command=
     9584              func_source $func_ltwrapper_scriptname_result
     9585              func_append rmfiles " $func_ltwrapper_scriptname_result"
     9586            else
     9587              relink_command=
     9588              func_source $dir/$noexename
     9589            fi
    67039590
    67049591            # note $name still contains .exe if it was in $file originally
    67059592            # as does the version of $file that was added into $rmfiles
    6706             rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
     9593            func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
    67079594            if test "$fast_install" = yes && test -n "$relink_command"; then
    6708               rmfiles="$rmfiles $objdir/lt-$name"
     9595              func_append rmfiles " $odir/lt-$name"
    67099596            fi
    67109597            if test "X$noexename" != "X$name" ; then
    6711               rmfiles="$rmfiles $objdir/lt-${noexename}.c"
     9598              func_append rmfiles " $odir/lt-${noexename}.c"
    67129599            fi
    67139600          fi
     
    67159602        ;;
    67169603      esac
    6717       $show "$rm $rmfiles"
    6718       $run $rm $rmfiles || exit_status=1
     9604      func_show_eval "$RM $rmfiles" 'exit_status=1'
    67199605    done
    6720     objdir="$origobjdir"
    67219606
    67229607    # Try to remove the ${objdir}s in the directories where we deleted files
    67239608    for dir in $rmdirs; do
    67249609      if test -d "$dir"; then
    6725         $show "rmdir $dir"
    6726         $run rmdir $dir >/dev/null 2>&1
     9610        func_show_eval "rmdir $dir >/dev/null 2>&1"
    67279611      fi
    67289612    done
    67299613
    67309614    exit $exit_status
    6731     ;;
    6732 
    6733   "")
    6734     $echo "$modename: you must specify a MODE" 1>&2
    6735     $echo "$generic_help" 1>&2
    6736     exit $EXIT_FAILURE
    6737     ;;
    6738   esac
    6739 
    6740   if test -z "$exec_cmd"; then
    6741     $echo "$modename: invalid operation mode \`$mode'" 1>&2
    6742     $echo "$generic_help" 1>&2
    6743     exit $EXIT_FAILURE
    6744   fi
    6745 fi # test -z "$show_help"
     9615}
     9616
     9617{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
     9618    func_mode_uninstall ${1+"$@"}
     9619
     9620test -z "$opt_mode" && {
     9621  help="$generic_help"
     9622  func_fatal_help "you must specify a MODE"
     9623}
     9624
     9625test -z "$exec_cmd" && \
     9626  func_fatal_help "invalid operation mode \`$opt_mode'"
    67469627
    67479628if test -n "$exec_cmd"; then
    6748   eval exec $exec_cmd
     9629  eval exec "$exec_cmd"
    67499630  exit $EXIT_FAILURE
    67509631fi
    67519632
    6752 # We need to display help for each of the modes.
    6753 case $mode in
    6754 "") $echo \
    6755 "Usage: $modename [OPTION]... [MODE-ARG]...
    6756 
    6757 Provide generalized library-building support services.
    6758 
    6759     --config          show all configuration variables
    6760     --debug           enable verbose shell tracing
    6761 -n, --dry-run         display commands without modifying any files
    6762     --features        display basic configuration information and exit
    6763     --finish          same as \`--mode=finish'
    6764     --help            display this help message and exit
    6765     --mode=MODE       use operation mode MODE [default=inferred from MODE-ARGS]
    6766     --quiet           same as \`--silent'
    6767     --silent          don't print informational messages
    6768     --tag=TAG         use configuration variables from tag TAG
    6769     --version         print version information
    6770 
    6771 MODE must be one of the following:
    6772 
    6773       clean           remove files from the build directory
    6774       compile         compile a source file into a libtool object
    6775       execute         automatically set library path, then run a program
    6776       finish          complete the installation of libtool libraries
    6777       install         install libraries or executables
    6778       link            create a library or an executable
    6779       uninstall       remove libraries from an installed directory
    6780 
    6781 MODE-ARGS vary depending on the MODE.  Try \`$modename --help --mode=MODE' for
    6782 a more detailed description of MODE.
    6783 
    6784 Report bugs to <bug-libtool@gnu.org>."
    6785   exit $EXIT_SUCCESS
    6786   ;;
    6787 
    6788 clean)
    6789   $echo \
    6790 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
    6791 
    6792 Remove files from the build directory.
    6793 
    6794 RM is the name of the program to use to delete files associated with each FILE
    6795 (typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
    6796 to RM.
    6797 
    6798 If FILE is a libtool library, object or program, all the files associated
    6799 with it are deleted. Otherwise, only FILE itself is deleted using RM."
    6800   ;;
    6801 
    6802 compile)
    6803   $echo \
    6804 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
    6805 
    6806 Compile a source file into a libtool library object.
    6807 
    6808 This mode accepts the following additional options:
    6809 
    6810   -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
    6811   -prefer-pic       try to building PIC objects only
    6812   -prefer-non-pic   try to building non-PIC objects only
    6813   -static           always build a \`.o' file suitable for static linking
    6814 
    6815 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
    6816 from the given SOURCEFILE.
    6817 
    6818 The output file name is determined by removing the directory component from
    6819 SOURCEFILE, then substituting the C source code suffix \`.c' with the
    6820 library object suffix, \`.lo'."
    6821   ;;
    6822 
    6823 execute)
    6824   $echo \
    6825 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
    6826 
    6827 Automatically set library path, then run a program.
    6828 
    6829 This mode accepts the following additional options:
    6830 
    6831   -dlopen FILE      add the directory containing FILE to the library path
    6832 
    6833 This mode sets the library path environment variable according to \`-dlopen'
    6834 flags.
    6835 
    6836 If any of the ARGS are libtool executable wrappers, then they are translated
    6837 into their corresponding uninstalled binary, and any of their required library
    6838 directories are added to the library path.
    6839 
    6840 Then, COMMAND is executed, with ARGS as arguments."
    6841   ;;
    6842 
    6843 finish)
    6844   $echo \
    6845 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
    6846 
    6847 Complete the installation of libtool libraries.
    6848 
    6849 Each LIBDIR is a directory that contains libtool libraries.
    6850 
    6851 The commands that this mode executes may require superuser privileges.  Use
    6852 the \`--dry-run' option if you just want to see what would be executed."
    6853   ;;
    6854 
    6855 install)
    6856   $echo \
    6857 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
    6858 
    6859 Install executables or libraries.
    6860 
    6861 INSTALL-COMMAND is the installation command.  The first component should be
    6862 either the \`install' or \`cp' program.
    6863 
    6864 The rest of the components are interpreted as arguments to that command (only
    6865 BSD-compatible install options are recognized)."
    6866   ;;
    6867 
    6868 link)
    6869   $echo \
    6870 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
    6871 
    6872 Link object files or libraries together to form another library, or to
    6873 create an executable program.
    6874 
    6875 LINK-COMMAND is a command using the C compiler that you would use to create
    6876 a program from several object files.
    6877 
    6878 The following components of LINK-COMMAND are treated specially:
    6879 
    6880   -all-static       do not do any dynamic linking at all
    6881   -avoid-version    do not add a version suffix if possible
    6882   -dlopen FILE      \`-dlpreopen' FILE if it cannot be dlopened at runtime
    6883   -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
    6884   -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
    6885   -export-symbols SYMFILE
    6886                     try to export only the symbols listed in SYMFILE
    6887   -export-symbols-regex REGEX
    6888                     try to export only the symbols matching REGEX
    6889   -LLIBDIR          search LIBDIR for required installed libraries
    6890   -lNAME            OUTPUT-FILE requires the installed library libNAME
    6891   -module           build a library that can dlopened
    6892   -no-fast-install  disable the fast-install mode
    6893   -no-install       link a not-installable executable
    6894   -no-undefined     declare that a library does not refer to external symbols
    6895   -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
    6896   -objectlist FILE  Use a list of object files found in FILE to specify objects
    6897   -precious-files-regex REGEX
    6898                     don't remove output files matching REGEX
    6899   -release RELEASE  specify package release information
    6900   -rpath LIBDIR     the created library will eventually be installed in LIBDIR
    6901   -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
    6902   -static           do not do any dynamic linking of libtool libraries
    6903   -version-info CURRENT[:REVISION[:AGE]]
    6904                     specify library version info [each variable defaults to 0]
    6905 
    6906 All other options (arguments beginning with \`-') are ignored.
    6907 
    6908 Every other argument is treated as a filename.  Files ending in \`.la' are
    6909 treated as uninstalled libtool libraries, other files are standard or library
    6910 object files.
    6911 
    6912 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
    6913 only library objects (\`.lo' files) may be specified, and \`-rpath' is
    6914 required, except when creating a convenience library.
    6915 
    6916 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
    6917 using \`ar' and \`ranlib', or on Windows using \`lib'.
    6918 
    6919 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
    6920 is created, otherwise an executable program is created."
    6921   ;;
    6922 
    6923 uninstall)
    6924   $echo \
    6925 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
    6926 
    6927 Remove libraries from an installation directory.
    6928 
    6929 RM is the name of the program to use to delete files associated with each FILE
    6930 (typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
    6931 to RM.
    6932 
    6933 If FILE is a libtool library, all the files associated with it are deleted.
    6934 Otherwise, only FILE itself is deleted using RM."
    6935   ;;
    6936 
    6937 *)
    6938   $echo "$modename: invalid operation mode \`$mode'" 1>&2
    6939   $echo "$help" 1>&2
    6940   exit $EXIT_FAILURE
    6941   ;;
    6942 esac
    6943 
    6944 $echo
    6945 $echo "Try \`$modename --help' for more information about other modes."
    6946 
    6947 exit $?
     9633exit $exit_status
     9634
    69489635
    69499636# The TAGs below are defined such that we never get into a situation
     
    69599646
    69609647# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
    6961 disable_libs=shared
     9648build_libtool_libs=no
     9649build_old_libs=yes
    69629650# ### END LIBTOOL TAG CONFIG: disable-shared
    69639651
    69649652# ### BEGIN LIBTOOL TAG CONFIG: disable-static
    6965 disable_libs=static
     9653build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
    69669654# ### END LIBTOOL TAG CONFIG: disable-static
    69679655
     
    69709658# sh-indentation:2
    69719659# End:
     9660# vi:sw=2
     9661
  • ThirdParty/mpqc_open/configure

    r860145 r482400e  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59.
     3# Generated by GNU Autoconf 2.69.
    44#
    5 # Copyright (C) 2003 Free Software Foundation, Inc.
     5#
     6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
     7#
     8#
    69# This configure script is free software; the Free Software Foundation
    710# gives unlimited permission to copy, distribute and modify it.
    8 ## --------------------- ##
    9 ## M4sh Initialization.  ##
    10 ## --------------------- ##
    11 
    12 # Be Bourne compatible
    13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     11## -------------------- ##
     12## M4sh Initialization. ##
     13## -------------------- ##
     14
     15# Be more Bourne compatible
     16DUALCASE=1; export DUALCASE # for MKS sh
     17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    1418  emulate sh
    1519  NULLCMD=:
    16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    1721  # is contrary to our usage.  Disable this feature.
    1822  alias -g '${1+"$@"}'='"$@"'
    19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    20   set -o posix
    21 fi
    22 DUALCASE=1; export DUALCASE # for MKS sh
    23 
    24 # Support unset when possible.
    25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    26   as_unset=unset
    27 else
    28   as_unset=false
    29 fi
    30 
    31 
    32 # Work around bugs in pre-3.0 UWIN ksh.
    33 $as_unset ENV MAIL MAILPATH
     23  setopt NO_GLOB_SUBST
     24else
     25  case `(set -o) 2>/dev/null` in #(
     26  *posix*) :
     27    set -o posix ;; #(
     28  *) :
     29     ;;
     30esac
     31fi
     32
     33
     34as_nl='
     35'
     36export as_nl
     37# Printing a long string crashes Solaris 7 /usr/bin/printf.
     38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     41# Prefer a ksh shell builtin over an external printf program on Solaris,
     42# but without wasting forks for bash or zsh.
     43if test -z "$BASH_VERSION$ZSH_VERSION" \
     44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     45  as_echo='print -r --'
     46  as_echo_n='print -rn --'
     47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     48  as_echo='printf %s\n'
     49  as_echo_n='printf %s'
     50else
     51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     53    as_echo_n='/usr/ucb/echo -n'
     54  else
     55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     56    as_echo_n_body='eval
     57      arg=$1;
     58      case $arg in #(
     59      *"$as_nl"*)
     60        expr "X$arg" : "X\\(.*\\)$as_nl";
     61        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     62      esac;
     63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     64    '
     65    export as_echo_n_body
     66    as_echo_n='sh -c $as_echo_n_body as_echo'
     67  fi
     68  export as_echo_body
     69  as_echo='sh -c $as_echo_body as_echo'
     70fi
     71
     72# The user is always right.
     73if test "${PATH_SEPARATOR+set}" != set; then
     74  PATH_SEPARATOR=:
     75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     77      PATH_SEPARATOR=';'
     78  }
     79fi
     80
     81
     82# IFS
     83# We need space, tab and new line, in precisely that order.  Quoting is
     84# there to prevent editors from complaining about space-tab.
     85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     86# splitting by setting IFS to empty value.)
     87IFS=" ""        $as_nl"
     88
     89# Find who we are.  Look in the path if we contain no directory separator.
     90as_myself=
     91case $0 in #((
     92  *[\\/]* ) as_myself=$0 ;;
     93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94for as_dir in $PATH
     95do
     96  IFS=$as_save_IFS
     97  test -z "$as_dir" && as_dir=.
     98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     99  done
     100IFS=$as_save_IFS
     101
     102     ;;
     103esac
     104# We did not find ourselves, most probably we were run as `sh COMMAND'
     105# in which case we are not to be found in the path.
     106if test "x$as_myself" = x; then
     107  as_myself=$0
     108fi
     109if test ! -f "$as_myself"; then
     110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     111  exit 1
     112fi
     113
     114# Unset variables that we do not need and which cause bugs (e.g. in
     115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     116# suppresses any "Segmentation fault" message there.  '((' could
     117# trigger a bug in pdksh 5.2.14.
     118for as_var in BASH_ENV ENV MAIL MAILPATH
     119do eval test x\${$as_var+set} = xset \
     120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     121done
    34122PS1='$ '
    35123PS2='> '
     
    37125
    38126# NLS nuisances.
    39 for as_var in \
    40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    42   LC_TELEPHONE LC_TIME
     127LC_ALL=C
     128export LC_ALL
     129LANGUAGE=C
     130export LANGUAGE
     131
     132# CDPATH.
     133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     134
     135# Use a proper internal environment variable to ensure we don't fall
     136  # into an infinite loop, continuously re-executing ourselves.
     137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
     138    _as_can_reexec=no; export _as_can_reexec;
     139    # We cannot yet assume a decent shell, so we have to provide a
     140# neutralization value for shells without unset; and this also
     141# works around shells that cannot unset nonexistent variables.
     142# Preserve -v and -x to the replacement shell.
     143BASH_ENV=/dev/null
     144ENV=/dev/null
     145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     146case $- in # ((((
     147  *v*x* | *x*v* ) as_opts=-vx ;;
     148  *v* ) as_opts=-v ;;
     149  *x* ) as_opts=-x ;;
     150  * ) as_opts= ;;
     151esac
     152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
     153# Admittedly, this is quite paranoid, since all the known shells bail
     154# out after a failed `exec'.
     155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
     156as_fn_exit 255
     157  fi
     158  # We don't want this to propagate to other subprocesses.
     159          { _as_can_reexec=; unset _as_can_reexec;}
     160if test "x$CONFIG_SHELL" = x; then
     161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
     162  emulate sh
     163  NULLCMD=:
     164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
     165  # is contrary to our usage.  Disable this feature.
     166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
     167  setopt NO_GLOB_SUBST
     168else
     169  case \`(set -o) 2>/dev/null\` in #(
     170  *posix*) :
     171    set -o posix ;; #(
     172  *) :
     173     ;;
     174esac
     175fi
     176"
     177  as_required="as_fn_return () { (exit \$1); }
     178as_fn_success () { as_fn_return 0; }
     179as_fn_failure () { as_fn_return 1; }
     180as_fn_ret_success () { return 0; }
     181as_fn_ret_failure () { return 1; }
     182
     183exitcode=0
     184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
     185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
     186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
     187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
     188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
     189
     190else
     191  exitcode=1; echo positional parameters were not saved.
     192fi
     193test x\$exitcode = x0 || exit 1
     194test -x / || exit 1"
     195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
     196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
     197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
     198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
     199test \$(( 1 + 1 )) = 2 || exit 1
     200
     201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
     202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
     204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
     205    PATH=/empty FPATH=/empty; export PATH FPATH
     206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
     207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
     208  if (eval "$as_required") 2>/dev/null; then :
     209  as_have_required=yes
     210else
     211  as_have_required=no
     212fi
     213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
     214
     215else
     216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     217as_found=false
     218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    43219do
    44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    45     eval $as_var=C; export $as_var
     220  IFS=$as_save_IFS
     221  test -z "$as_dir" && as_dir=.
     222  as_found=:
     223  case $as_dir in #(
     224         /*)
     225           for as_base in sh bash ksh sh5; do
     226             # Try only shells that exist, to save several forks.
     227             as_shell=$as_dir/$as_base
     228             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
     229                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
     230  CONFIG_SHELL=$as_shell as_have_required=yes
     231                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
     232  break 2
     233fi
     234fi
     235           done;;
     236       esac
     237  as_found=false
     238done
     239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
     240              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
     241  CONFIG_SHELL=$SHELL as_have_required=yes
     242fi; }
     243IFS=$as_save_IFS
     244
     245
     246      if test "x$CONFIG_SHELL" != x; then :
     247  export CONFIG_SHELL
     248             # We cannot yet assume a decent shell, so we have to provide a
     249# neutralization value for shells without unset; and this also
     250# works around shells that cannot unset nonexistent variables.
     251# Preserve -v and -x to the replacement shell.
     252BASH_ENV=/dev/null
     253ENV=/dev/null
     254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     255case $- in # ((((
     256  *v*x* | *x*v* ) as_opts=-vx ;;
     257  *v* ) as_opts=-v ;;
     258  *x* ) as_opts=-x ;;
     259  * ) as_opts= ;;
     260esac
     261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
     262# Admittedly, this is quite paranoid, since all the known shells bail
     263# out after a failed `exec'.
     264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
     265exit 255
     266fi
     267
     268    if test x$as_have_required = xno; then :
     269  $as_echo "$0: This script requires a shell more modern than all"
     270  $as_echo "$0: the shells that I found on your system."
     271  if test x${ZSH_VERSION+set} = xset ; then
     272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
     273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    46274  else
    47     $as_unset $as_var
     275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
     276$0: including any error possibly output before this
     277$0: message. Then install a modern shell, or manually run
     278$0: the script under such a shell if you do have one."
    48279  fi
    49 done
    50 
    51 # Required to use basename.
    52 if expr a : '\(a\)' >/dev/null 2>&1; then
     280  exit 1
     281fi
     282fi
     283fi
     284SHELL=${CONFIG_SHELL-/bin/sh}
     285export SHELL
     286# Unset more variables known to interfere with behavior of common tools.
     287CLICOLOR_FORCE= GREP_OPTIONS=
     288unset CLICOLOR_FORCE GREP_OPTIONS
     289
     290## --------------------- ##
     291## M4sh Shell Functions. ##
     292## --------------------- ##
     293# as_fn_unset VAR
     294# ---------------
     295# Portably unset VAR.
     296as_fn_unset ()
     297{
     298  { eval $1=; unset $1;}
     299}
     300as_unset=as_fn_unset
     301
     302# as_fn_set_status STATUS
     303# -----------------------
     304# Set $? to STATUS, without forking.
     305as_fn_set_status ()
     306{
     307  return $1
     308} # as_fn_set_status
     309
     310# as_fn_exit STATUS
     311# -----------------
     312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     313as_fn_exit ()
     314{
     315  set +e
     316  as_fn_set_status $1
     317  exit $1
     318} # as_fn_exit
     319
     320# as_fn_mkdir_p
     321# -------------
     322# Create "$as_dir" as a directory, including parents if necessary.
     323as_fn_mkdir_p ()
     324{
     325
     326  case $as_dir in #(
     327  -*) as_dir=./$as_dir;;
     328  esac
     329  test -d "$as_dir" || eval $as_mkdir_p || {
     330    as_dirs=
     331    while :; do
     332      case $as_dir in #(
     333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     334      *) as_qdir=$as_dir;;
     335      esac
     336      as_dirs="'$as_qdir' $as_dirs"
     337      as_dir=`$as_dirname -- "$as_dir" ||
     338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     339         X"$as_dir" : 'X\(//\)[^/]' \| \
     340         X"$as_dir" : 'X\(//\)$' \| \
     341         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     342$as_echo X"$as_dir" |
     343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     344            s//\1/
     345            q
     346          }
     347          /^X\(\/\/\)[^/].*/{
     348            s//\1/
     349            q
     350          }
     351          /^X\(\/\/\)$/{
     352            s//\1/
     353            q
     354          }
     355          /^X\(\/\).*/{
     356            s//\1/
     357            q
     358          }
     359          s/.*/./; q'`
     360      test -d "$as_dir" && break
     361    done
     362    test -z "$as_dirs" || eval "mkdir $as_dirs"
     363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     364
     365
     366} # as_fn_mkdir_p
     367
     368# as_fn_executable_p FILE
     369# -----------------------
     370# Test if FILE is an executable regular file.
     371as_fn_executable_p ()
     372{
     373  test -f "$1" && test -x "$1"
     374} # as_fn_executable_p
     375# as_fn_append VAR VALUE
     376# ----------------------
     377# Append the text in VALUE to the end of the definition contained in VAR. Take
     378# advantage of any shell optimizations that allow amortized linear growth over
     379# repeated appends, instead of the typical quadratic growth present in naive
     380# implementations.
     381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     382  eval 'as_fn_append ()
     383  {
     384    eval $1+=\$2
     385  }'
     386else
     387  as_fn_append ()
     388  {
     389    eval $1=\$$1\$2
     390  }
     391fi # as_fn_append
     392
     393# as_fn_arith ARG...
     394# ------------------
     395# Perform arithmetic evaluation on the ARGs, and store the result in the
     396# global $as_val. Take advantage of shells that can avoid forks. The arguments
     397# must be portable across $(()) and expr.
     398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     399  eval 'as_fn_arith ()
     400  {
     401    as_val=$(( $* ))
     402  }'
     403else
     404  as_fn_arith ()
     405  {
     406    as_val=`expr "$@" || test $? -eq 1`
     407  }
     408fi # as_fn_arith
     409
     410
     411# as_fn_error STATUS ERROR [LINENO LOG_FD]
     412# ----------------------------------------
     413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     415# script with STATUS, using 1 if that was 0.
     416as_fn_error ()
     417{
     418  as_status=$1; test $as_status -eq 0 && as_status=1
     419  if test "$4"; then
     420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
     422  fi
     423  $as_echo "$as_me: error: $2" >&2
     424  as_fn_exit $as_status
     425} # as_fn_error
     426
     427if expr a : '\(a\)' >/dev/null 2>&1 &&
     428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    53429  as_expr=expr
    54430else
     
    56432fi
    57433
    58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    59435  as_basename=basename
    60436else
     
    62438fi
    63439
    64 
    65 # Name of the executable.
    66 as_me=`$as_basename "$0" ||
     440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     441  as_dirname=dirname
     442else
     443  as_dirname=false
     444fi
     445
     446as_me=`$as_basename -- "$0" ||
    67447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    68448         X"$0" : 'X\(//\)$' \| \
    69          X"$0" : 'X\(/\)$' \| \
    70          .     : '\(.\)' 2>/dev/null ||
    71 echo X/"$0" |
    72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    73           /^X\/\(\/\/\)$/{ s//\1/; q; }
    74           /^X\/\(\/\).*/{ s//\1/; q; }
    75           s/.*/./; q'`
    76 
    77 
    78 # PATH needs CR, and LINENO needs CR and PATH.
     449         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     450$as_echo X/"$0" |
     451    sed '/^.*\/\([^/][^/]*\)\/*$/{
     452            s//\1/
     453            q
     454          }
     455          /^X\/\(\/\/\)$/{
     456            s//\1/
     457            q
     458          }
     459          /^X\/\(\/\).*/{
     460            s//\1/
     461            q
     462          }
     463          s/.*/./; q'`
     464
    79465# Avoid depending upon Character Ranges.
    80466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    84470as_cr_alnum=$as_cr_Letters$as_cr_digits
    85471
    86 # The user is always right.
    87 if test "${PATH_SEPARATOR+set}" != set; then
    88   echo "#! /bin/sh" >conf$$.sh
    89   echo  "exit 0"   >>conf$$.sh
    90   chmod +x conf$$.sh
    91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    92     PATH_SEPARATOR=';'
    93   else
    94     PATH_SEPARATOR=:
    95   fi
    96   rm -f conf$$.sh
    97 fi
    98 
    99 
    100   as_lineno_1=$LINENO
    101   as_lineno_2=$LINENO
    102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    103   test "x$as_lineno_1" != "x$as_lineno_2" &&
    104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    105   # Find who we are.  Look in the path if we contain no path at all
    106   # relative or not.
    107   case $0 in
    108     *[\\/]* ) as_myself=$0 ;;
    109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    110 for as_dir in $PATH
    111 do
    112   IFS=$as_save_IFS
    113   test -z "$as_dir" && as_dir=.
    114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    115 done
    116 
    117        ;;
    118   esac
    119   # We did not find ourselves, most probably we were run as `sh COMMAND'
    120   # in which case we are not to be found in the path.
    121   if test "x$as_myself" = x; then
    122     as_myself=$0
    123   fi
    124   if test ! -f "$as_myself"; then
    125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
    126    { (exit 1); exit 1; }; }
    127   fi
    128   case $CONFIG_SHELL in
    129   '')
    130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    132 do
    133   IFS=$as_save_IFS
    134   test -z "$as_dir" && as_dir=.
    135   for as_base in sh bash ksh sh5; do
    136          case $as_dir in
    137          /*)
    138            if ("$as_dir/$as_base" -c '
    139   as_lineno_1=$LINENO
    140   as_lineno_2=$LINENO
    141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    142   test "x$as_lineno_1" != "x$as_lineno_2" &&
    143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    146              CONFIG_SHELL=$as_dir/$as_base
    147              export CONFIG_SHELL
    148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    149            fi;;
    150          esac
    151        done
    152 done
    153 ;;
    154   esac
    155 
    156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    157   # uniformly replaced by the line number.  The first 'sed' inserts a
    158   # line-number line before each line; the second 'sed' does the real
    159   # work.  The second script uses 'N' to pair each line-number line
    160   # with the numbered line, and appends trailing '-' during
    161   # substitution so that $LINENO is not a special case at line end.
    162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    164   sed '=' <$as_myself |
     472
     473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
     474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
     475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
     476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
     477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
     478  sed -n '
     479    p
     480    /[$]LINENO/=
     481  ' <$as_myself |
    165482    sed '
     483      s/[$]LINENO.*/&-/
     484      t lineno
     485      b
     486      :lineno
    166487      N
    167       s,$,-,
    168       : loop
    169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
     488      :loop
     489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    170490      t loop
    171       s,-$,,
    172       s,^['$as_cr_digits']*\n,,
     491      s/-\n.*//
    173492    ' >$as_me.lineno &&
    174   chmod +x $as_me.lineno ||
    175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    176    { (exit 1); exit 1; }; }
    177 
     493  chmod +x "$as_me.lineno" ||
     494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
     495
     496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
     497  # already done that, so ensure we don't try to do so again and fall
     498  # in an infinite loop.  This has already happened in practice.
     499  _as_can_reexec=no; export _as_can_reexec
    178500  # Don't try to exec as it changes $[0], causing all sort of problems
    179501  # (the dirname of $[0] is not the place where we might find the
    180   # original and so on.  Autoconf is especially sensible to this).
    181   . ./$as_me.lineno
     502  # original and so on.  Autoconf is especially sensitive to this).
     503  . "./$as_me.lineno"
    182504  # Exit status is that of the last command.
    183505  exit
    184506}
    185507
    186 
    187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    188   *c*,-n*) ECHO_N= ECHO_C='
    189 ' ECHO_T='      ' ;;
    190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
     508ECHO_C= ECHO_N= ECHO_T=
     509case `echo -n x` in #(((((
     510-n*)
     511  case `echo 'xy\c'` in
     512  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
     513  xy)  ECHO_C='\c';;
     514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     515       ECHO_T=' ';;
     516  esac;;
     517*)
     518  ECHO_N='-n';;
    192519esac
    193520
    194 if expr a : '\(a\)' >/dev/null 2>&1; then
    195   as_expr=expr
    196 else
    197   as_expr=false
    198 fi
    199 
    200521rm -f conf$$ conf$$.exe conf$$.file
    201 echo >conf$$.file
    202 if ln -s conf$$.file conf$$ 2>/dev/null; then
    203   # We could just check for DJGPP; but this test a) works b) is more generic
    204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    205   if test -f conf$$.exe; then
    206     # Don't use ln at all; we don't have any links
    207     as_ln_s='cp -p'
     522if test -d conf$$.dir; then
     523  rm -f conf$$.dir/conf$$.file
     524else
     525  rm -f conf$$.dir
     526  mkdir conf$$.dir 2>/dev/null
     527fi
     528if (echo >conf$$.file) 2>/dev/null; then
     529  if ln -s conf$$.file conf$$ 2>/dev/null; then
     530    as_ln_s='ln -s'
     531    # ... but there are two gotchas:
     532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     534    # In both cases, we have to default to `cp -pR'.
     535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     536      as_ln_s='cp -pR'
     537  elif ln conf$$.file conf$$ 2>/dev/null; then
     538    as_ln_s=ln
    208539  else
    209     as_ln_s='ln -s'
     540    as_ln_s='cp -pR'
    210541  fi
    211 elif ln conf$$.file conf$$ 2>/dev/null; then
    212   as_ln_s=ln
    213 else
    214   as_ln_s='cp -p'
    215 fi
    216 rm -f conf$$ conf$$.exe conf$$.file
     542else
     543  as_ln_s='cp -pR'
     544fi
     545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     546rmdir conf$$.dir 2>/dev/null
    217547
    218548if mkdir -p . 2>/dev/null; then
    219   as_mkdir_p=:
     549  as_mkdir_p='mkdir -p "$as_dir"'
    220550else
    221551  test -d ./-p && rmdir ./-p
     
    223553fi
    224554
    225 as_executable_p="test -f"
     555as_test_x='test -x'
     556as_executable_p=as_fn_executable_p
    226557
    227558# Sed expression to map a string onto a valid CPP name.
     
    231562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    232563
    233 
    234 # IFS
    235 # We need space, tab and new line, in precisely that order.
    236 as_nl='
    237 '
    238 IFS="   $as_nl"
    239 
    240 # CDPATH.
    241 $as_unset CDPATH
    242 
    243 
    244 
    245 # Check that we are running under the correct shell.
    246564SHELL=${CONFIG_SHELL-/bin/sh}
    247565
    248 case X$ECHO in
    249 X*--fallback-echo)
    250   # Remove one level of quotation (which was required for Make).
    251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
    252   ;;
    253 esac
    254 
    255 echo=${ECHO-echo}
    256 if test "X$1" = X--no-reexec; then
    257   # Discard the --no-reexec flag, and continue.
    258   shift
    259 elif test "X$1" = X--fallback-echo; then
    260   # Avoid inline document here, it may be left over
    261   :
    262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
    263   # Yippee, $echo works!
    264   :
    265 else
    266   # Restart under the correct shell.
    267   exec $SHELL "$0" --no-reexec ${1+"$@"}
    268 fi
    269 
    270 if test "X$1" = X--fallback-echo; then
    271   # used as fallback echo
    272   shift
    273   cat <<EOF
    274 $*
    275 EOF
    276   exit 0
    277 fi
    278 
    279 # The HP-UX ksh and POSIX shell print the target directory to stdout
    280 # if CDPATH is set.
    281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    282 
    283 if test -z "$ECHO"; then
    284 if test "X${echo_test_string+set}" != Xset; then
    285 # find a string as large as possible, as long as the shell can cope with it
    286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
    289        echo_test_string=`eval $cmd` &&
    290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    291     then
    292       break
    293     fi
    294   done
    295 fi
    296 
    297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
    298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
    299    test "X$echo_testing_string" = "X$echo_test_string"; then
    300   :
    301 else
    302   # The Solaris, AIX, and Digital Unix default echo programs unquote
    303   # backslashes.  This makes it impossible to quote backslashes using
    304   #   echo "$something" | sed 's/\\/\\\\/g'
    305   #
    306   # So, first we look for a working echo in the user's PATH.
    307 
    308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    309   for dir in $PATH /usr/ucb; do
    310     IFS="$lt_save_ifs"
    311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
    313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
    314        test "X$echo_testing_string" = "X$echo_test_string"; then
    315       echo="$dir/echo"
    316       break
    317     fi
    318   done
    319   IFS="$lt_save_ifs"
    320 
    321   if test "X$echo" = Xecho; then
    322     # We didn't find a better echo, so look for alternatives.
    323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
    324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
    325        test "X$echo_testing_string" = "X$echo_test_string"; then
    326       # This shell has a builtin print -r that does the trick.
    327       echo='print -r'
    328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
    329          test "X$CONFIG_SHELL" != X/bin/ksh; then
    330       # If we have ksh, try running configure again with it.
    331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
    332       export ORIGINAL_CONFIG_SHELL
    333       CONFIG_SHELL=/bin/ksh
    334       export CONFIG_SHELL
    335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
    336     else
    337       # Try using printf.
    338       echo='printf %s\n'
    339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
    340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
    341          test "X$echo_testing_string" = "X$echo_test_string"; then
    342         # Cool, printf works
    343         :
    344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
    345            test "X$echo_testing_string" = 'X\t' &&
    346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    347            test "X$echo_testing_string" = "X$echo_test_string"; then
    348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
    349         export CONFIG_SHELL
    350         SHELL="$CONFIG_SHELL"
    351         export SHELL
    352         echo="$CONFIG_SHELL $0 --fallback-echo"
    353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
    354            test "X$echo_testing_string" = 'X\t' &&
    355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    356            test "X$echo_testing_string" = "X$echo_test_string"; then
    357         echo="$CONFIG_SHELL $0 --fallback-echo"
    358       else
    359         # maybe with a smaller string...
    360         prev=:
    361 
    362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
    363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
    364           then
    365             break
    366           fi
    367           prev="$cmd"
    368         done
    369 
    370         if test "$prev" != 'sed 50q "$0"'; then
    371           echo_test_string=`eval $prev`
    372           export echo_test_string
    373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
    374         else
    375           # Oops.  We lost completely, so just stick with echo.
    376           echo=echo
    377         fi
    378       fi
    379     fi
    380   fi
    381 fi
    382 fi
    383 
    384 # Copy echo and quote the copy suitably for passing to libtool from
    385 # the Makefile, instead of quoting the original, which is used later.
    386 ECHO=$echo
    387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
    388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
    389 fi
    390 
    391 
    392 
    393 
    394 tagnames=${tagnames+${tagnames},}CXX
    395 
    396 tagnames=${tagnames+${tagnames},}F77
     566
     567test -n "$DJDIR" || exec 7<&0 </dev/null
     568exec 6>&1
    397569
    398570# Name of the host.
    399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    400572# so uname gets run too.
    401573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    402 
    403 exec 6>&1
    404574
    405575#
     
    407577#
    408578ac_default_prefix=/usr/local
     579ac_clean_files=
    409580ac_config_libobj_dir=.
     581LIBOBJS=
    410582cross_compiling=no
    411583subdirs=
    412584MFLAGS=
    413585MAKEFLAGS=
    414 SHELL=${CONFIG_SHELL-/bin/sh}
    415 
    416 # Maximum number of lines to put in a shell here document.
    417 # This variable seems obsolete.  It should probably be removed, and
    418 # only ac_max_sed_lines should be used.
    419 : ${ac_max_here_lines=38}
    420586
    421587# Identity of this package.
     
    425591PACKAGE_STRING=
    426592PACKAGE_BUGREPORT=
     593PACKAGE_URL=
    427594
    428595ac_unique_file="src/lib/util/ref/ref.h"
     
    430597ac_includes_default="\
    431598#include <stdio.h>
    432 #if HAVE_SYS_TYPES_H
     599#ifdef HAVE_SYS_TYPES_H
    433600# include <sys/types.h>
    434601#endif
    435 #if HAVE_SYS_STAT_H
     602#ifdef HAVE_SYS_STAT_H
    436603# include <sys/stat.h>
    437604#endif
    438 #if STDC_HEADERS
     605#ifdef STDC_HEADERS
    439606# include <stdlib.h>
    440607# include <stddef.h>
    441608#else
    442 # if HAVE_STDLIB_H
     609# ifdef HAVE_STDLIB_H
    443610#  include <stdlib.h>
    444611# endif
    445612#endif
    446 #if HAVE_STRING_H
    447 # if !STDC_HEADERS && HAVE_MEMORY_H
     613#ifdef HAVE_STRING_H
     614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    448615#  include <memory.h>
    449616# endif
    450617# include <string.h>
    451618#endif
    452 #if HAVE_STRINGS_H
     619#ifdef HAVE_STRINGS_H
    453620# include <strings.h>
    454621#endif
    455 #if HAVE_INTTYPES_H
     622#ifdef HAVE_INTTYPES_H
    456623# include <inttypes.h>
    457 #else
    458 # if HAVE_STDINT_H
    459 #  include <stdint.h>
    460 # endif
    461624#endif
    462 #if HAVE_UNISTD_H
     625#ifdef HAVE_STDINT_H
     626# include <stdint.h>
     627#endif
     628#ifdef HAVE_UNISTD_H
    463629# include <unistd.h>
    464630#endif"
    465631
    466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SC_SO_VERSION DOXYGEN_MAN FOOTER_HTML ENABLECCA BUILDID SC_VERSION ARFLAGS LAUNCH CCALAUNCH scdatadir scincludedir CCA_CHEM_CONFIG compiledir scbindir sclibdir LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX F77 FFLAGS ac_ct_F77 FLIBS CPP CXXCPP AR PERL WISH HAVE_DOT DOT_PATH EGREP EXTRAINCLUDE LIBDIRS OBJSUF LIBSUF CCDEPENDSUF CXXDEPENDSUF CCDEPENDFLAGS CXXDEPENDFLAGS HAVE_PERF HAVE_MPI ALWAYS_USE_MPI HAVE_ARMCI HAVE_MPIIO HAVE_PTHREAD EXTRADEFINES HAVE_FCHDIR HAVE_IOS_FMTFLAGS HAVE_SGETN HAVE_PUBSEEKOFF HAVE_SEEKOFF HAVE_SYSV_IPC F77_SYMBOLS HAVE_BLAS HAVE_LAPACK NIAMACFG HAVE_LIBINT HAVE_LIBR12 HAVE_LIBDERIV TMPLINST TMPLREPO TMPLINLIB ECHO ac_ct_AR STRIP ac_ct_STRIP LIBTOOL ENABLESHARED CCA_CHEM_INCLUDE CCA_CHEM_LIB CCA_CHEM_REPO CCAFE_CONFIG CCAFE_INCLUDE CCAFE_LIB CCAFE_SHARE CCAFE_BIN CCA_SPEC_BABEL_CONFIG CCA_SPEC_BABEL_INCLUDE CCA_SPEC_BABEL_LIB CCA_SPEC_BABEL_SHARE CCA_SPEC_CLASSIC_CONFIG CCA_SPEC_CLASSIC_INCLUDE CCA_SPEC_CLASSIC_LIB CCA_SPEC_CLASSIC_SHARE BABEL_CONFIG BABEL_INCLUDE BABEL_LIB BABEL_SHARE BABEL_BIN BABEL_CC BABEL_CFLAGS BABEL_CXX BABEL_CXXFLAGS BABEL_LIBTOOL CCAFE_MPI_ENABLE CCAFE_MPI_INCLUDE CCAFE_MPI_LIB CCAFE_MPI_BIN BABEL_PYTHON BABEL_PYTHON_VERSION BABEL_PYTHON_LIB BABEL_PYTHON_INCLUDE SCLIBS LIBOBJS LTLIBOBJS'
     632ac_subst_vars='LTLIBOBJS
     633LIBOBJS
     634SCDATADIR
     635INSTALLED_SCLIBDIR
     636SRC_SCLIBDIR
     637SCLIBS
     638BABEL_PYTHON_INCLUDE
     639BABEL_PYTHON_LIB
     640BABEL_PYTHON_VERSION
     641BABEL_PYTHON
     642CCAFE_MPI_BIN
     643CCAFE_MPI_LIB
     644CCAFE_MPI_INCLUDE
     645CCAFE_MPI_ENABLE
     646BABEL_LIBTOOL
     647BABEL_CXXFLAGS
     648BABEL_CXX
     649BABEL_CFLAGS
     650BABEL_CC
     651BABEL_BIN
     652BABEL_SHARE
     653BABEL_LIB
     654BABEL_INCLUDE
     655BABEL_CONFIG
     656CCA_SPEC_CLASSIC_SHARE
     657CCA_SPEC_CLASSIC_LIB
     658CCA_SPEC_CLASSIC_INCLUDE
     659CCA_SPEC_CLASSIC_CONFIG
     660CCA_SPEC_BABEL_SHARE
     661CCA_SPEC_BABEL_LIB
     662CCA_SPEC_BABEL_INCLUDE
     663CCA_SPEC_BABEL_CONFIG
     664CCAFE_BIN
     665CCAFE_SHARE
     666CCAFE_LIB
     667CCAFE_INCLUDE
     668CCAFE_CONFIG
     669CCA_CHEM_REPO
     670CCA_CHEM_LIB
     671CCA_CHEM_INCLUDE
     672ENABLESHARED
     673OTOOL64
     674OTOOL
     675LIPO
     676NMEDIT
     677DSYMUTIL
     678MANIFEST_TOOL
     679AWK
     680STRIP
     681ac_ct_AR
     682DLLTOOL
     683OBJDUMP
     684NM
     685ac_ct_DUMPBIN
     686DUMPBIN
     687LD
     688FGREP
     689SED
     690LIBTOOL
     691TMPLINLIB
     692TMPLREPO
     693TMPLINST
     694HAVE_LIBDERIV
     695HAVE_LIBR12
     696HAVE_LIBINT
     697NIAMACFG
     698HAVE_LAPACK
     699HAVE_BLAS
     700F77_SYMBOLS
     701HAVE_SYSV_IPC
     702HAVE_SEEKOFF
     703HAVE_PUBSEEKOFF
     704HAVE_SGETN
     705HAVE_IOS_FMTFLAGS
     706HAVE_FCHDIR
     707EXTRADEFINES
     708HAVE_PTHREAD
     709HAVE_MPIIO
     710HAVE_ARMCI
     711ALWAYS_USE_MPI
     712HAVE_MPI
     713HAVE_PERF
     714CXXDEPENDFLAGS
     715CCDEPENDFLAGS
     716CXXDEPENDSUF
     717CCDEPENDSUF
     718LIBSUF
     719OBJSUF
     720LIBDIRS
     721EXTRAINCLUDE
     722EGREP
     723GREP
     724DOT_PATH
     725HAVE_DOT
     726WISH
     727PERL
     728AR
     729CXXCPP
     730CPP
     731FLIBS
     732ac_ct_F77
     733FFLAGS
     734F77
     735ac_ct_CXX
     736CXXFLAGS
     737CXX
     738OBJEXT
     739EXEEXT
     740ac_ct_CC
     741CPPFLAGS
     742LDFLAGS
     743CFLAGS
     744CC
     745RANLIB
     746INSTALL_DATA
     747INSTALL_SCRIPT
     748INSTALL_PROGRAM
     749LN_S
     750sclibdir
     751scbindir
     752compiledir
     753CCA_CHEM_CONFIG
     754scincludedir
     755scdatadir
     756CCALAUNCH
     757LAUNCH
     758ARFLAGS
     759SC_VERSION
     760BUILDID
     761ENABLECCA
     762FOOTER_HTML
     763DOXYGEN_MAN
     764SC_SO_VERSION
     765target_os
     766target_vendor
     767target_cpu
     768target
     769host_os
     770host_vendor
     771host_cpu
     772host
     773build_os
     774build_vendor
     775build_cpu
     776build
     777target_alias
     778host_alias
     779build_alias
     780LIBS
     781ECHO_T
     782ECHO_N
     783ECHO_C
     784DEFS
     785mandir
     786localedir
     787libdir
     788psdir
     789pdfdir
     790dvidir
     791htmldir
     792infodir
     793docdir
     794oldincludedir
     795includedir
     796localstatedir
     797sharedstatedir
     798sysconfdir
     799datadir
     800datarootdir
     801libexecdir
     802sbindir
     803bindir
     804program_transform_name
     805prefix
     806exec_prefix
     807PACKAGE_URL
     808PACKAGE_BUGREPORT
     809PACKAGE_STRING
     810PACKAGE_VERSION
     811PACKAGE_TARNAME
     812PACKAGE_NAME
     813PATH_SEPARATOR
     814SHELL'
    467815ac_subst_files=''
     816ac_user_opts='
     817enable_option_checking
     818enable_debug
     819enable_strict_arch
     820enable_production
     821enable_sysv_ipc
     822enable_parallel
     823enable_always_use_mpi
     824with_default_parallel
     825with_mpi_thread
     826enable_long_long
     827enable_threads
     828enable_ref_debug
     829enable_cross_compile
     830enable_doxygen_man
     831enable_sourceforge
     832enable_components
     833with_build_id
     834with_default_memory
     835with_cc
     836with_cxx
     837with_f77
     838with_cxx_optflags
     839with_cc_optflags
     840with_dot
     841with_ranlib
     842with_ar
     843with_ar_flags
     844with_ld
     845with_launch
     846with_cca_launch
     847with_sc_datadir
     848with_include
     849with_template
     850with_sc_includedir
     851with_libs
     852with_extra_flibs
     853with_flibs
     854with_libdirs
     855with_cca_chem_config
     856enable_libtool
     857enable_shared
     858enable_static
     859with_pic
     860enable_fast_install
     861with_gnu_ld
     862with_sysroot
     863enable_libtool_lock
     864with_ccafe_config
     865'
     866      ac_precious_vars='build_alias
     867host_alias
     868target_alias
     869CC
     870CFLAGS
     871LDFLAGS
     872LIBS
     873CPPFLAGS
     874CXX
     875CXXFLAGS
     876CCC
     877F77
     878FFLAGS
     879CPP
     880CXXCPP'
     881
    468882
    469883# Initialize some variables set by options.
    470884ac_init_help=
    471885ac_init_version=false
     886ac_unrecognized_opts=
     887ac_unrecognized_sep=
    472888# The variables have the same names as the options, with
    473889# dashes changed to underlines.
     
    492908# by default will actually change.
    493909# Use braces instead of parens because sh, perl, etc. also accept them.
     910# (The list follows the same order as the GNU Coding Standards.)
    494911bindir='${exec_prefix}/bin'
    495912sbindir='${exec_prefix}/sbin'
    496913libexecdir='${exec_prefix}/libexec'
    497 datadir='${prefix}/share'
     914datarootdir='${prefix}/share'
     915datadir='${datarootdir}'
    498916sysconfdir='${prefix}/etc'
    499917sharedstatedir='${prefix}/com'
    500918localstatedir='${prefix}/var'
    501 libdir='${exec_prefix}/lib'
    502919includedir='${prefix}/include'
    503920oldincludedir='/usr/include'
    504 infodir='${prefix}/info'
    505 mandir='${prefix}/man'
     921docdir='${datarootdir}/doc/${PACKAGE}'
     922infodir='${datarootdir}/info'
     923htmldir='${docdir}'
     924dvidir='${docdir}'
     925pdfdir='${docdir}'
     926psdir='${docdir}'
     927libdir='${exec_prefix}/lib'
     928localedir='${datarootdir}/locale'
     929mandir='${datarootdir}/man'
    506930
    507931ac_prev=
     932ac_dashdash=
    508933for ac_option
    509934do
    510935  # If the previous option needs an argument, assign it.
    511936  if test -n "$ac_prev"; then
    512     eval "$ac_prev=\$ac_option"
     937    eval $ac_prev=\$ac_option
    513938    ac_prev=
    514939    continue
    515940  fi
    516941
    517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     942  case $ac_option in
     943  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     944  *=)   ac_optarg= ;;
     945  *)    ac_optarg=yes ;;
     946  esac
    518947
    519948  # Accept the important Cygnus configure options, so we can diagnose typos.
    520949
    521   case $ac_option in
     950  case $ac_dashdash$ac_option in
     951  --)
     952    ac_dashdash=yes ;;
    522953
    523954  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     
    541972    cache_file=config.cache ;;
    542973
    543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     974  -datadir | --datadir | --datadi | --datad)
    544975    ac_prev=datadir ;;
    545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    546   | --da=*)
     976  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    547977    datadir=$ac_optarg ;;
    548978
     979  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
     980  | --dataroo | --dataro | --datar)
     981    ac_prev=datarootdir ;;
     982  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
     983  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
     984    datarootdir=$ac_optarg ;;
     985
    549986  -disable-* | --disable-*)
    550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     987    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    551988    # Reject names that are not valid shell variable names.
    552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    554    { (exit 1); exit 1; }; }
    555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    556     eval "enable_$ac_feature=no" ;;
     989    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     990      as_fn_error $? "invalid feature name: $ac_useropt"
     991    ac_useropt_orig=$ac_useropt
     992    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     993    case $ac_user_opts in
     994      *"
     995"enable_$ac_useropt"
     996"*) ;;
     997      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
     998         ac_unrecognized_sep=', ';;
     999    esac
     1000    eval enable_$ac_useropt=no ;;
     1001
     1002  -docdir | --docdir | --docdi | --doc | --do)
     1003    ac_prev=docdir ;;
     1004  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
     1005    docdir=$ac_optarg ;;
     1006
     1007  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
     1008    ac_prev=dvidir ;;
     1009  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
     1010    dvidir=$ac_optarg ;;
    5571011
    5581012  -enable-* | --enable-*)
    559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     1013    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    5601014    # Reject names that are not valid shell variable names.
    561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    563    { (exit 1); exit 1; }; }
    564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
    565     case $ac_option in
    566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    567       *) ac_optarg=yes ;;
     1015    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1016      as_fn_error $? "invalid feature name: $ac_useropt"
     1017    ac_useropt_orig=$ac_useropt
     1018    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1019    case $ac_user_opts in
     1020      *"
     1021"enable_$ac_useropt"
     1022"*) ;;
     1023      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
     1024         ac_unrecognized_sep=', ';;
    5681025    esac
    569     eval "enable_$ac_feature='$ac_optarg'" ;;
     1026    eval enable_$ac_useropt=\$ac_optarg ;;
    5701027
    5711028  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    5941051    host_alias=$ac_optarg ;;
    5951052
     1053  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
     1054    ac_prev=htmldir ;;
     1055  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
     1056  | --ht=*)
     1057    htmldir=$ac_optarg ;;
     1058
    5961059  -includedir | --includedir | --includedi | --included | --include \
    5971060  | --includ | --inclu | --incl | --inc)
     
    6181081    libexecdir=$ac_optarg ;;
    6191082
     1083  -localedir | --localedir | --localedi | --localed | --locale)
     1084    ac_prev=localedir ;;
     1085  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
     1086    localedir=$ac_optarg ;;
     1087
    6201088  -localstatedir | --localstatedir | --localstatedi | --localstated \
    621   | --localstate | --localstat | --localsta | --localst \
    622   | --locals | --local | --loca | --loc | --lo)
     1089  | --localstate | --localstat | --localsta | --localst | --locals)
    6231090    ac_prev=localstatedir ;;
    6241091  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     1092  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    6271093    localstatedir=$ac_optarg ;;
    6281094
     
    6891155    program_transform_name=$ac_optarg ;;
    6901156
     1157  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
     1158    ac_prev=pdfdir ;;
     1159  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
     1160    pdfdir=$ac_optarg ;;
     1161
     1162  -psdir | --psdir | --psdi | --psd | --ps)
     1163    ac_prev=psdir ;;
     1164  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
     1165    psdir=$ac_optarg ;;
     1166
    6911167  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    6921168  | -silent | --silent | --silen | --sile | --sil)
     
    7391215
    7401216  -with-* | --with-*)
    741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     1217    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    7421218    # Reject names that are not valid shell variable names.
    743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    744       { echo "$as_me: error: invalid package name: $ac_package" >&2
    745    { (exit 1); exit 1; }; }
    746     ac_package=`echo $ac_package| sed 's/-/_/g'`
    747     case $ac_option in
    748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    749       *) ac_optarg=yes ;;
     1219    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1220      as_fn_error $? "invalid package name: $ac_useropt"
     1221    ac_useropt_orig=$ac_useropt
     1222    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1223    case $ac_user_opts in
     1224      *"
     1225"with_$ac_useropt"
     1226"*) ;;
     1227      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
     1228         ac_unrecognized_sep=', ';;
    7501229    esac
    751     eval "with_$ac_package='$ac_optarg'" ;;
     1230    eval with_$ac_useropt=\$ac_optarg ;;
    7521231
    7531232  -without-* | --without-*)
    754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     1233    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    7551234    # Reject names that are not valid shell variable names.
    756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    757       { echo "$as_me: error: invalid package name: $ac_package" >&2
    758    { (exit 1); exit 1; }; }
    759     ac_package=`echo $ac_package | sed 's/-/_/g'`
    760     eval "with_$ac_package=no" ;;
     1235    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
     1236      as_fn_error $? "invalid package name: $ac_useropt"
     1237    ac_useropt_orig=$ac_useropt
     1238    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     1239    case $ac_user_opts in
     1240      *"
     1241"with_$ac_useropt"
     1242"*) ;;
     1243      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
     1244         ac_unrecognized_sep=', ';;
     1245    esac
     1246    eval with_$ac_useropt=no ;;
    7611247
    7621248  --x)
     
    7781264    x_libraries=$ac_optarg ;;
    7791265
    780   -*) { echo "$as_me: error: unrecognized option: $ac_option
    781 Try \`$0 --help' for more information." >&2
    782    { (exit 1); exit 1; }; }
     1266  -*) as_fn_error $? "unrecognized option: \`$ac_option'
     1267Try \`$0 --help' for more information"
    7831268    ;;
    7841269
     
    7861271    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    7871272    # Reject names that are not valid shell variable names.
    788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
    789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    790    { (exit 1); exit 1; }; }
    791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
    792     eval "$ac_envvar='$ac_optarg'"
     1273    case $ac_envvar in #(
     1274      '' | [0-9]* | *[!_$as_cr_alnum]* )
     1275      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1276    esac
     1277    eval $ac_envvar=\$ac_optarg
    7931278    export $ac_envvar ;;
    7941279
    7951280  *)
    7961281    # FIXME: should be removed in autoconf 3.0.
    797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     1282    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    7981283    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
    799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     1284      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     1285    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    8011286    ;;
    8021287
     
    8061291if test -n "$ac_prev"; then
    8071292  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    808   { echo "$as_me: error: missing argument to $ac_option" >&2
    809    { (exit 1); exit 1; }; }
    810 fi
    811 
    812 # Be sure to have absolute paths.
    813 for ac_var in exec_prefix prefix
     1293  as_fn_error $? "missing argument to $ac_option"
     1294fi
     1295
     1296if test -n "$ac_unrecognized_opts"; then
     1297  case $enable_option_checking in
     1298    no) ;;
     1299    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1300    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
     1301  esac
     1302fi
     1303
     1304# Check all directory arguments for consistency.
     1305for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
     1306                datadir sysconfdir sharedstatedir localstatedir includedir \
     1307                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
     1308                libdir localedir mandir
    8141309do
    815   eval ac_val=$`echo $ac_var`
     1310  eval ac_val=\$$ac_var
     1311  # Remove trailing slashes.
    8161312  case $ac_val in
    817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
    818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    819    { (exit 1); exit 1; }; };;
     1313    */ )
     1314      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
     1315      eval $ac_var=\$ac_val;;
    8201316  esac
    821 done
    822 
    823 # Be sure to have absolute paths.
    824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    825               localstatedir libdir includedir oldincludedir infodir mandir
    826 do
    827   eval ac_val=$`echo $ac_var`
     1317  # Be sure to have absolute directory names.
    8281318  case $ac_val in
    829     [\\/$]* | ?:[\\/]* ) ;;
    830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    831    { (exit 1); exit 1; }; };;
     1319    [\\/$]* | ?:[\\/]* )  continue;;
     1320    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    8321321  esac
     1322  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
    8331323done
    8341324
     
    8441334  if test "x$build_alias" = x; then
    8451335    cross_compiling=maybe
    846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
    847     If a cross compiler is detected then cross compile mode will be used." >&2
    8481336  elif test "x$build_alias" != "x$host_alias"; then
    8491337    cross_compiling=yes
     
    8571345
    8581346
     1347ac_pwd=`pwd` && test -n "$ac_pwd" &&
     1348ac_ls_di=`ls -di .` &&
     1349ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
     1350  as_fn_error $? "working directory cannot be determined"
     1351test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
     1352  as_fn_error $? "pwd does not report name of working directory"
     1353
     1354
    8591355# Find the source files, if location was not specified.
    8601356if test -z "$srcdir"; then
    8611357  ac_srcdir_defaulted=yes
    862   # Try the directory containing this script, then its parent.
    863   ac_confdir=`(dirname "$0") 2>/dev/null ||
    864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    865          X"$0" : 'X\(//\)[^/]' \| \
    866          X"$0" : 'X\(//\)$' \| \
    867          X"$0" : 'X\(/\)' \| \
    868          .     : '\(.\)' 2>/dev/null ||
    869 echo X"$0" |
    870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    872           /^X\(\/\/\)$/{ s//\1/; q; }
    873           /^X\(\/\).*/{ s//\1/; q; }
    874           s/.*/./; q'`
     1358  # Try the directory containing this script, then the parent directory.
     1359  ac_confdir=`$as_dirname -- "$as_myself" ||
     1360$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     1361         X"$as_myself" : 'X\(//\)[^/]' \| \
     1362         X"$as_myself" : 'X\(//\)$' \| \
     1363         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
     1364$as_echo X"$as_myself" |
     1365    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     1366            s//\1/
     1367            q
     1368          }
     1369          /^X\(\/\/\)[^/].*/{
     1370            s//\1/
     1371            q
     1372          }
     1373          /^X\(\/\/\)$/{
     1374            s//\1/
     1375            q
     1376          }
     1377          /^X\(\/\).*/{
     1378            s//\1/
     1379            q
     1380          }
     1381          s/.*/./; q'`
    8751382  srcdir=$ac_confdir
    8761383  if test ! -r "$srcdir/$ac_unique_file"; then
     
    8811388fi
    8821389if test ! -r "$srcdir/$ac_unique_file"; then
    883   if test "$ac_srcdir_defaulted" = yes; then
    884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    885    { (exit 1); exit 1; }; }
    886   else
    887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    888    { (exit 1); exit 1; }; }
    889   fi
    890 fi
    891 (cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
    892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
    893    { (exit 1); exit 1; }; }
    894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
    895 ac_env_build_alias_set=${build_alias+set}
    896 ac_env_build_alias_value=$build_alias
    897 ac_cv_env_build_alias_set=${build_alias+set}
    898 ac_cv_env_build_alias_value=$build_alias
    899 ac_env_host_alias_set=${host_alias+set}
    900 ac_env_host_alias_value=$host_alias
    901 ac_cv_env_host_alias_set=${host_alias+set}
    902 ac_cv_env_host_alias_value=$host_alias
    903 ac_env_target_alias_set=${target_alias+set}
    904 ac_env_target_alias_value=$target_alias
    905 ac_cv_env_target_alias_set=${target_alias+set}
    906 ac_cv_env_target_alias_value=$target_alias
    907 ac_env_CC_set=${CC+set}
    908 ac_env_CC_value=$CC
    909 ac_cv_env_CC_set=${CC+set}
    910 ac_cv_env_CC_value=$CC
    911 ac_env_CFLAGS_set=${CFLAGS+set}
    912 ac_env_CFLAGS_value=$CFLAGS
    913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    914 ac_cv_env_CFLAGS_value=$CFLAGS
    915 ac_env_LDFLAGS_set=${LDFLAGS+set}
    916 ac_env_LDFLAGS_value=$LDFLAGS
    917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    918 ac_cv_env_LDFLAGS_value=$LDFLAGS
    919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    920 ac_env_CPPFLAGS_value=$CPPFLAGS
    921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    923 ac_env_CXX_set=${CXX+set}
    924 ac_env_CXX_value=$CXX
    925 ac_cv_env_CXX_set=${CXX+set}
    926 ac_cv_env_CXX_value=$CXX
    927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    928 ac_env_CXXFLAGS_value=$CXXFLAGS
    929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    931 ac_env_F77_set=${F77+set}
    932 ac_env_F77_value=$F77
    933 ac_cv_env_F77_set=${F77+set}
    934 ac_cv_env_F77_value=$F77
    935 ac_env_FFLAGS_set=${FFLAGS+set}
    936 ac_env_FFLAGS_value=$FFLAGS
    937 ac_cv_env_FFLAGS_set=${FFLAGS+set}
    938 ac_cv_env_FFLAGS_value=$FFLAGS
    939 ac_env_CPP_set=${CPP+set}
    940 ac_env_CPP_value=$CPP
    941 ac_cv_env_CPP_set=${CPP+set}
    942 ac_cv_env_CPP_value=$CPP
    943 ac_env_CXXCPP_set=${CXXCPP+set}
    944 ac_env_CXXCPP_value=$CXXCPP
    945 ac_cv_env_CXXCPP_set=${CXXCPP+set}
    946 ac_cv_env_CXXCPP_value=$CXXCPP
     1390  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
     1391  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1392fi
     1393ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
     1394ac_abs_confdir=`(
     1395        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1396        pwd)`
     1397# When building in place, set srcdir=.
     1398if test "$ac_abs_confdir" = "$ac_pwd"; then
     1399  srcdir=.
     1400fi
     1401# Remove unnecessary trailing slashes from srcdir.
     1402# Double slashes in file names in object file debugging info
     1403# mess up M-x gdb in Emacs.
     1404case $srcdir in
     1405*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
     1406esac
     1407for ac_var in $ac_precious_vars; do
     1408  eval ac_env_${ac_var}_set=\${${ac_var}+set}
     1409  eval ac_env_${ac_var}_value=\$${ac_var}
     1410  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
     1411  eval ac_cv_env_${ac_var}_value=\$${ac_var}
     1412done
    9471413
    9481414#
     
    9671433      --help=recursive    display the short help of all the included packages
    9681434  -V, --version           display version information and exit
    969   -q, --quiet, --silent   do not print \`checking...' messages
     1435  -q, --quiet, --silent   do not print \`checking ...' messages
    9701436      --cache-file=FILE   cache test results in FILE [disabled]
    9711437  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    9731439      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    9741440
    975 _ACEOF
    976 
    977   cat <<_ACEOF
    9781441Installation directories:
    9791442  --prefix=PREFIX         install architecture-independent files in PREFIX
    980                           [$ac_default_prefix]
     1443                          [$ac_default_prefix]
    9811444  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    982                           [PREFIX]
     1445                          [PREFIX]
    9831446
    9841447By default, \`make install' will install all the files in
     
    9901453
    9911454Fine tuning of the installation directories:
    992   --bindir=DIR           user executables [EPREFIX/bin]
    993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
    994   --libexecdir=DIR       program executables [EPREFIX/libexec]
    995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
    998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
    999   --libdir=DIR           object code libraries [EPREFIX/lib]
    1000   --includedir=DIR       C header files [PREFIX/include]
    1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    1002   --infodir=DIR          info documentation [PREFIX/info]
    1003   --mandir=DIR           man documentation [PREFIX/man]
     1455  --bindir=DIR            user executables [EPREFIX/bin]
     1456  --sbindir=DIR           system admin executables [EPREFIX/sbin]
     1457  --libexecdir=DIR        program executables [EPREFIX/libexec]
     1458  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
     1459  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
     1460  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
     1461  --libdir=DIR            object code libraries [EPREFIX/lib]
     1462  --includedir=DIR        C header files [PREFIX/include]
     1463  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
     1464  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
     1465  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
     1466  --infodir=DIR           info documentation [DATAROOTDIR/info]
     1467  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
     1468  --mandir=DIR            man documentation [DATAROOTDIR/man]
     1469  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
     1470  --htmldir=DIR           html documentation [DOCDIR]
     1471  --dvidir=DIR            dvi documentation [DOCDIR]
     1472  --pdfdir=DIR            pdf documentation [DOCDIR]
     1473  --psdir=DIR             ps documentation [DOCDIR]
    10041474_ACEOF
    10051475
     
    10181488
    10191489Optional Features:
     1490  --disable-option-checking  ignore unrecognized --enable/--with options
    10201491  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    10211492  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     
    10341505  --enable-components     Enable CCA components
    10351506  --disable-libtool       Do not use libtool.
    1036   --enable-shared[=PKGS]
    1037                           build shared libraries [default=no]
    1038   --enable-static[=PKGS]
    1039                           build static libraries [default=yes]
     1507  --enable-shared[=PKGS]  build shared libraries [default=no]
     1508  --enable-static[=PKGS]  build static libraries [default=yes]
    10401509  --enable-fast-install[=PKGS]
    10411510                          optimize for fast installation [default=yes]
     
    10701539  --with-libdirs          Specifies library directories (-Ldir1 -Ldir2).
    10711540  --with-cca-chem-config  Specifies full pathname of cca-chem-config script.
     1541  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
     1542                          both]
    10721543  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
    1073   --with-pic              try to use only PIC/non-PIC objects [default=use
    1074                           both]
    1075   --with-tags[=TAGS]
    1076                           include additional configurations [automatic]
     1544  --with-sysroot=DIR Search for dependent libraries within DIR
     1545                        (or the compiler's sysroot if not specified).
    10771546  --with-ccafe-config     path to the ccafe-config script.
    10781547
     
    10821551  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    10831552              nonstandard directory <lib dir>
    1084   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    1085               headers in a nonstandard directory <include dir>
     1553  LIBS        libraries to pass to the linker, e.g. -l<library>
     1554  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
     1555              you have headers in a nonstandard directory <include dir>
    10861556  CXX         C++ compiler command
    10871557  CXXFLAGS    C++ compiler flags
     
    10941564it to find libraries and programs with nonstandard names/locations.
    10951565
     1566Report bugs to the package provider.
    10961567_ACEOF
     1568ac_status=$?
    10971569fi
    10981570
    10991571if test "$ac_init_help" = "recursive"; then
    11001572  # If there are subdirs, report their specific --help.
    1101   ac_popdir=`pwd`
    11021573  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    1103     test -d $ac_dir || continue
     1574    test -d "$ac_dir" ||
     1575      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
     1576      continue
    11041577    ac_builddir=.
    11051578
    1106 if test "$ac_dir" != .; then
    1107   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    1108   # A "../" for each directory in $ac_dir_suffix.
    1109   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    1110 else
    1111   ac_dir_suffix= ac_top_builddir=
    1112 fi
     1579case "$ac_dir" in
     1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1581*)
     1582  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     1583  # A ".." for each directory in $ac_dir_suffix.
     1584  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     1585  case $ac_top_builddir_sub in
     1586  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     1587  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     1588  esac ;;
     1589esac
     1590ac_abs_top_builddir=$ac_pwd
     1591ac_abs_builddir=$ac_pwd$ac_dir_suffix
     1592# for backward compatibility:
     1593ac_top_builddir=$ac_top_build_prefix
    11131594
    11141595case $srcdir in
    1115   .)  # No --srcdir option.  We are building in place.
     1596  .)  # We are building in place.
    11161597    ac_srcdir=.
    1117     if test -z "$ac_top_builddir"; then
    1118        ac_top_srcdir=.
     1598    ac_top_srcdir=$ac_top_builddir_sub
     1599    ac_abs_top_srcdir=$ac_pwd ;;
     1600  [\\/]* | ?:[\\/]* )  # Absolute name.
     1601    ac_srcdir=$srcdir$ac_dir_suffix;
     1602    ac_top_srcdir=$srcdir
     1603    ac_abs_top_srcdir=$srcdir ;;
     1604  *) # Relative name.
     1605    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     1606    ac_top_srcdir=$ac_top_build_prefix$srcdir
     1607    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     1608esac
     1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     1610
     1611    cd "$ac_dir" || { ac_status=$?; continue; }
     1612    # Check for guested configure.
     1613    if test -f "$ac_srcdir/configure.gnu"; then
     1614      echo &&
     1615      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
     1616    elif test -f "$ac_srcdir/configure"; then
     1617      echo &&
     1618      $SHELL "$ac_srcdir/configure" --help=recursive
    11191619    else
    1120        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    1121     fi ;;
    1122   [\\/]* | ?:[\\/]* )  # Absolute path.
    1123     ac_srcdir=$srcdir$ac_dir_suffix;
    1124     ac_top_srcdir=$srcdir ;;
    1125   *) # Relative path.
    1126     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    1127     ac_top_srcdir=$ac_top_builddir$srcdir ;;
    1128 esac
    1129 
    1130 # Do not use `cd foo && pwd` to compute absolute paths, because
    1131 # the directories may not exist.
    1132 case `pwd` in
    1133 .) ac_abs_builddir="$ac_dir";;
    1134 *)
    1135   case "$ac_dir" in
    1136   .) ac_abs_builddir=`pwd`;;
    1137   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    1138   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    1139   esac;;
    1140 esac
    1141 case $ac_abs_builddir in
    1142 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    1143 *)
    1144   case ${ac_top_builddir}. in
    1145   .) ac_abs_top_builddir=$ac_abs_builddir;;
    1146   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    1147   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    1148   esac;;
    1149 esac
    1150 case $ac_abs_builddir in
    1151 .) ac_abs_srcdir=$ac_srcdir;;
    1152 *)
    1153   case $ac_srcdir in
    1154   .) ac_abs_srcdir=$ac_abs_builddir;;
    1155   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    1156   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    1157   esac;;
    1158 esac
    1159 case $ac_abs_builddir in
    1160 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    1161 *)
    1162   case $ac_top_srcdir in
    1163   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    1164   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    1165   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    1166   esac;;
    1167 esac
    1168 
    1169     cd $ac_dir
    1170     # Check for guested configure; otherwise get Cygnus style configure.
    1171     if test -f $ac_srcdir/configure.gnu; then
    1172       echo
    1173       $SHELL $ac_srcdir/configure.gnu  --help=recursive
    1174     elif test -f $ac_srcdir/configure; then
    1175       echo
    1176       $SHELL $ac_srcdir/configure  --help=recursive
    1177     elif test -f $ac_srcdir/configure.ac ||
    1178            test -f $ac_srcdir/configure.in; then
    1179       echo
    1180       $ac_configure --help
    1181     else
    1182       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    1183     fi
    1184     cd $ac_popdir
     1620      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
     1621    fi || ac_status=$?
     1622    cd "$ac_pwd" || { ac_status=$?; break; }
    11851623  done
    11861624fi
    11871625
    1188 test -n "$ac_init_help" && exit 0
     1626test -n "$ac_init_help" && exit $ac_status
    11891627if $ac_init_version; then
    11901628  cat <<\_ACEOF
    1191 
    1192 Copyright (C) 2003 Free Software Foundation, Inc.
     1629configure
     1630generated by GNU Autoconf 2.69
     1631
     1632Copyright (C) 2012 Free Software Foundation, Inc.
    11931633This configure script is free software; the Free Software Foundation
    11941634gives unlimited permission to copy, distribute and modify it.
    11951635_ACEOF
    1196   exit 0
    1197 fi
    1198 exec 5>config.log
    1199 cat >&5 <<_ACEOF
     1636  exit
     1637fi
     1638
     1639## ------------------------ ##
     1640## Autoconf initialization. ##
     1641## ------------------------ ##
     1642
     1643# ac_fn_c_try_compile LINENO
     1644# --------------------------
     1645# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1646ac_fn_c_try_compile ()
     1647{
     1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1649  rm -f conftest.$ac_objext
     1650  if { { ac_try="$ac_compile"
     1651case "(($ac_try" in
     1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1653  *) ac_try_echo=$ac_try;;
     1654esac
     1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1656$as_echo "$ac_try_echo"; } >&5
     1657  (eval "$ac_compile") 2>conftest.err
     1658  ac_status=$?
     1659  if test -s conftest.err; then
     1660    grep -v '^ *+' conftest.err >conftest.er1
     1661    cat conftest.er1 >&5
     1662    mv -f conftest.er1 conftest.err
     1663  fi
     1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1665  test $ac_status = 0; } && {
     1666         test -z "$ac_c_werror_flag" ||
     1667         test ! -s conftest.err
     1668       } && test -s conftest.$ac_objext; then :
     1669  ac_retval=0
     1670else
     1671  $as_echo "$as_me: failed program was:" >&5
     1672sed 's/^/| /' conftest.$ac_ext >&5
     1673
     1674        ac_retval=1
     1675fi
     1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1677  as_fn_set_status $ac_retval
     1678
     1679} # ac_fn_c_try_compile
     1680
     1681# ac_fn_cxx_try_compile LINENO
     1682# ----------------------------
     1683# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1684ac_fn_cxx_try_compile ()
     1685{
     1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1687  rm -f conftest.$ac_objext
     1688  if { { ac_try="$ac_compile"
     1689case "(($ac_try" in
     1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1691  *) ac_try_echo=$ac_try;;
     1692esac
     1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1694$as_echo "$ac_try_echo"; } >&5
     1695  (eval "$ac_compile") 2>conftest.err
     1696  ac_status=$?
     1697  if test -s conftest.err; then
     1698    grep -v '^ *+' conftest.err >conftest.er1
     1699    cat conftest.er1 >&5
     1700    mv -f conftest.er1 conftest.err
     1701  fi
     1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1703  test $ac_status = 0; } && {
     1704         test -z "$ac_cxx_werror_flag" ||
     1705         test ! -s conftest.err
     1706       } && test -s conftest.$ac_objext; then :
     1707  ac_retval=0
     1708else
     1709  $as_echo "$as_me: failed program was:" >&5
     1710sed 's/^/| /' conftest.$ac_ext >&5
     1711
     1712        ac_retval=1
     1713fi
     1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1715  as_fn_set_status $ac_retval
     1716
     1717} # ac_fn_cxx_try_compile
     1718
     1719# ac_fn_f77_try_compile LINENO
     1720# ----------------------------
     1721# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1722ac_fn_f77_try_compile ()
     1723{
     1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1725  rm -f conftest.$ac_objext
     1726  if { { ac_try="$ac_compile"
     1727case "(($ac_try" in
     1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1729  *) ac_try_echo=$ac_try;;
     1730esac
     1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1732$as_echo "$ac_try_echo"; } >&5
     1733  (eval "$ac_compile") 2>conftest.err
     1734  ac_status=$?
     1735  if test -s conftest.err; then
     1736    grep -v '^ *+' conftest.err >conftest.er1
     1737    cat conftest.er1 >&5
     1738    mv -f conftest.er1 conftest.err
     1739  fi
     1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1741  test $ac_status = 0; } && {
     1742         test -z "$ac_f77_werror_flag" ||
     1743         test ! -s conftest.err
     1744       } && test -s conftest.$ac_objext; then :
     1745  ac_retval=0
     1746else
     1747  $as_echo "$as_me: failed program was:" >&5
     1748sed 's/^/| /' conftest.$ac_ext >&5
     1749
     1750        ac_retval=1
     1751fi
     1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1753  as_fn_set_status $ac_retval
     1754
     1755} # ac_fn_f77_try_compile
     1756
     1757# ac_fn_c_try_cpp LINENO
     1758# ----------------------
     1759# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1760ac_fn_c_try_cpp ()
     1761{
     1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1763  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1764case "(($ac_try" in
     1765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1766  *) ac_try_echo=$ac_try;;
     1767esac
     1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1769$as_echo "$ac_try_echo"; } >&5
     1770  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1771  ac_status=$?
     1772  if test -s conftest.err; then
     1773    grep -v '^ *+' conftest.err >conftest.er1
     1774    cat conftest.er1 >&5
     1775    mv -f conftest.er1 conftest.err
     1776  fi
     1777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1778  test $ac_status = 0; } > conftest.i && {
     1779         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     1780         test ! -s conftest.err
     1781       }; then :
     1782  ac_retval=0
     1783else
     1784  $as_echo "$as_me: failed program was:" >&5
     1785sed 's/^/| /' conftest.$ac_ext >&5
     1786
     1787    ac_retval=1
     1788fi
     1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1790  as_fn_set_status $ac_retval
     1791
     1792} # ac_fn_c_try_cpp
     1793
     1794# ac_fn_cxx_try_cpp LINENO
     1795# ------------------------
     1796# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1797ac_fn_cxx_try_cpp ()
     1798{
     1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1800  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1801case "(($ac_try" in
     1802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1803  *) ac_try_echo=$ac_try;;
     1804esac
     1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1806$as_echo "$ac_try_echo"; } >&5
     1807  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1808  ac_status=$?
     1809  if test -s conftest.err; then
     1810    grep -v '^ *+' conftest.err >conftest.er1
     1811    cat conftest.er1 >&5
     1812    mv -f conftest.er1 conftest.err
     1813  fi
     1814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1815  test $ac_status = 0; } > conftest.i && {
     1816         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     1817         test ! -s conftest.err
     1818       }; then :
     1819  ac_retval=0
     1820else
     1821  $as_echo "$as_me: failed program was:" >&5
     1822sed 's/^/| /' conftest.$ac_ext >&5
     1823
     1824    ac_retval=1
     1825fi
     1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1827  as_fn_set_status $ac_retval
     1828
     1829} # ac_fn_cxx_try_cpp
     1830
     1831# ac_fn_cxx_try_link LINENO
     1832# -------------------------
     1833# Try to link conftest.$ac_ext, and return whether this succeeded.
     1834ac_fn_cxx_try_link ()
     1835{
     1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1837  rm -f conftest.$ac_objext conftest$ac_exeext
     1838  if { { ac_try="$ac_link"
     1839case "(($ac_try" in
     1840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1841  *) ac_try_echo=$ac_try;;
     1842esac
     1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1844$as_echo "$ac_try_echo"; } >&5
     1845  (eval "$ac_link") 2>conftest.err
     1846  ac_status=$?
     1847  if test -s conftest.err; then
     1848    grep -v '^ *+' conftest.err >conftest.er1
     1849    cat conftest.er1 >&5
     1850    mv -f conftest.er1 conftest.err
     1851  fi
     1852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1853  test $ac_status = 0; } && {
     1854         test -z "$ac_cxx_werror_flag" ||
     1855         test ! -s conftest.err
     1856       } && test -s conftest$ac_exeext && {
     1857         test "$cross_compiling" = yes ||
     1858         test -x conftest$ac_exeext
     1859       }; then :
     1860  ac_retval=0
     1861else
     1862  $as_echo "$as_me: failed program was:" >&5
     1863sed 's/^/| /' conftest.$ac_ext >&5
     1864
     1865        ac_retval=1
     1866fi
     1867  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     1868  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     1869  # interfere with the next link command; also delete a directory that is
     1870  # left behind by Apple's compiler.  We do this before executing the actions.
     1871  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1873  as_fn_set_status $ac_retval
     1874
     1875} # ac_fn_cxx_try_link
     1876
     1877# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
     1878# ---------------------------------------------------------
     1879# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     1880# the include files in INCLUDES and setting the cache variable VAR
     1881# accordingly.
     1882ac_fn_cxx_check_header_mongrel ()
     1883{
     1884  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1885  if eval \${$3+:} false; then :
     1886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1887$as_echo_n "checking for $2... " >&6; }
     1888if eval \${$3+:} false; then :
     1889  $as_echo_n "(cached) " >&6
     1890fi
     1891eval ac_res=\$$3
     1892               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1893$as_echo "$ac_res" >&6; }
     1894else
     1895  # Is the header compilable?
     1896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     1897$as_echo_n "checking $2 usability... " >&6; }
     1898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1899/* end confdefs.h.  */
     1900$4
     1901#include <$2>
     1902_ACEOF
     1903if ac_fn_cxx_try_compile "$LINENO"; then :
     1904  ac_header_compiler=yes
     1905else
     1906  ac_header_compiler=no
     1907fi
     1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     1910$as_echo "$ac_header_compiler" >&6; }
     1911
     1912# Is the header present?
     1913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     1914$as_echo_n "checking $2 presence... " >&6; }
     1915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1916/* end confdefs.h.  */
     1917#include <$2>
     1918_ACEOF
     1919if ac_fn_cxx_try_cpp "$LINENO"; then :
     1920  ac_header_preproc=yes
     1921else
     1922  ac_header_preproc=no
     1923fi
     1924rm -f conftest.err conftest.i conftest.$ac_ext
     1925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     1926$as_echo "$ac_header_preproc" >&6; }
     1927
     1928# So?  What about this header?
     1929case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
     1930  yes:no: )
     1931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     1932$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1934$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1935    ;;
     1936  no:yes:* )
     1937    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     1938$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     1940$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     1942$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     1943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     1944$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1946$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1947    ;;
     1948esac
     1949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1950$as_echo_n "checking for $2... " >&6; }
     1951if eval \${$3+:} false; then :
     1952  $as_echo_n "(cached) " >&6
     1953else
     1954  eval "$3=\$ac_header_compiler"
     1955fi
     1956eval ac_res=\$$3
     1957               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1958$as_echo "$ac_res" >&6; }
     1959fi
     1960  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1961
     1962} # ac_fn_cxx_check_header_mongrel
     1963
     1964# ac_fn_cxx_try_run LINENO
     1965# ------------------------
     1966# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1967# that executables *can* be run.
     1968ac_fn_cxx_try_run ()
     1969{
     1970  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1971  if { { ac_try="$ac_link"
     1972case "(($ac_try" in
     1973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1974  *) ac_try_echo=$ac_try;;
     1975esac
     1976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1977$as_echo "$ac_try_echo"; } >&5
     1978  (eval "$ac_link") 2>&5
     1979  ac_status=$?
     1980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1981  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1982  { { case "(($ac_try" in
     1983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1984  *) ac_try_echo=$ac_try;;
     1985esac
     1986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1987$as_echo "$ac_try_echo"; } >&5
     1988  (eval "$ac_try") 2>&5
     1989  ac_status=$?
     1990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1991  test $ac_status = 0; }; }; then :
     1992  ac_retval=0
     1993else
     1994  $as_echo "$as_me: program exited with status $ac_status" >&5
     1995       $as_echo "$as_me: failed program was:" >&5
     1996sed 's/^/| /' conftest.$ac_ext >&5
     1997
     1998       ac_retval=$ac_status
     1999fi
     2000  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     2001  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2002  as_fn_set_status $ac_retval
     2003
     2004} # ac_fn_cxx_try_run
     2005
     2006# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
     2007# ---------------------------------------------------------
     2008# Tests whether HEADER exists and can be compiled using the include files in
     2009# INCLUDES, setting the cache variable VAR accordingly.
     2010ac_fn_cxx_check_header_compile ()
     2011{
     2012  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2014$as_echo_n "checking for $2... " >&6; }
     2015if eval \${$3+:} false; then :
     2016  $as_echo_n "(cached) " >&6
     2017else
     2018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2019/* end confdefs.h.  */
     2020$4
     2021#include <$2>
     2022_ACEOF
     2023if ac_fn_cxx_try_compile "$LINENO"; then :
     2024  eval "$3=yes"
     2025else
     2026  eval "$3=no"
     2027fi
     2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2029fi
     2030eval ac_res=\$$3
     2031               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2032$as_echo "$ac_res" >&6; }
     2033  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2034
     2035} # ac_fn_cxx_check_header_compile
     2036
     2037# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
     2038# -------------------------------------------------------
     2039# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     2040# the include files in INCLUDES and setting the cache variable VAR
     2041# accordingly.
     2042ac_fn_c_check_header_mongrel ()
     2043{
     2044  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2045  if eval \${$3+:} false; then :
     2046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2047$as_echo_n "checking for $2... " >&6; }
     2048if eval \${$3+:} false; then :
     2049  $as_echo_n "(cached) " >&6
     2050fi
     2051eval ac_res=\$$3
     2052               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2053$as_echo "$ac_res" >&6; }
     2054else
     2055  # Is the header compilable?
     2056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     2057$as_echo_n "checking $2 usability... " >&6; }
     2058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2059/* end confdefs.h.  */
     2060$4
     2061#include <$2>
     2062_ACEOF
     2063if ac_fn_c_try_compile "$LINENO"; then :
     2064  ac_header_compiler=yes
     2065else
     2066  ac_header_compiler=no
     2067fi
     2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     2070$as_echo "$ac_header_compiler" >&6; }
     2071
     2072# Is the header present?
     2073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     2074$as_echo_n "checking $2 presence... " >&6; }
     2075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2076/* end confdefs.h.  */
     2077#include <$2>
     2078_ACEOF
     2079if ac_fn_c_try_cpp "$LINENO"; then :
     2080  ac_header_preproc=yes
     2081else
     2082  ac_header_preproc=no
     2083fi
     2084rm -f conftest.err conftest.i conftest.$ac_ext
     2085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     2086$as_echo "$ac_header_preproc" >&6; }
     2087
     2088# So?  What about this header?
     2089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
     2090  yes:no: )
     2091    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     2092$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     2093    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     2094$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     2095    ;;
     2096  no:yes:* )
     2097    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     2098$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     2099    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     2100$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     2101    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     2102$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     2103    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     2104$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     2105    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     2106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     2107    ;;
     2108esac
     2109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2110$as_echo_n "checking for $2... " >&6; }
     2111if eval \${$3+:} false; then :
     2112  $as_echo_n "(cached) " >&6
     2113else
     2114  eval "$3=\$ac_header_compiler"
     2115fi
     2116eval ac_res=\$$3
     2117               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2118$as_echo "$ac_res" >&6; }
     2119fi
     2120  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2121
     2122} # ac_fn_c_check_header_mongrel
     2123
     2124# ac_fn_c_try_run LINENO
     2125# ----------------------
     2126# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     2127# that executables *can* be run.
     2128ac_fn_c_try_run ()
     2129{
     2130  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2131  if { { ac_try="$ac_link"
     2132case "(($ac_try" in
     2133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2134  *) ac_try_echo=$ac_try;;
     2135esac
     2136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2137$as_echo "$ac_try_echo"; } >&5
     2138  (eval "$ac_link") 2>&5
     2139  ac_status=$?
     2140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2141  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     2142  { { case "(($ac_try" in
     2143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2144  *) ac_try_echo=$ac_try;;
     2145esac
     2146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2147$as_echo "$ac_try_echo"; } >&5
     2148  (eval "$ac_try") 2>&5
     2149  ac_status=$?
     2150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2151  test $ac_status = 0; }; }; then :
     2152  ac_retval=0
     2153else
     2154  $as_echo "$as_me: program exited with status $ac_status" >&5
     2155       $as_echo "$as_me: failed program was:" >&5
     2156sed 's/^/| /' conftest.$ac_ext >&5
     2157
     2158       ac_retval=$ac_status
     2159fi
     2160  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     2161  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2162  as_fn_set_status $ac_retval
     2163
     2164} # ac_fn_c_try_run
     2165
     2166# ac_fn_c_try_link LINENO
     2167# -----------------------
     2168# Try to link conftest.$ac_ext, and return whether this succeeded.
     2169ac_fn_c_try_link ()
     2170{
     2171  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2172  rm -f conftest.$ac_objext conftest$ac_exeext
     2173  if { { ac_try="$ac_link"
     2174case "(($ac_try" in
     2175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2176  *) ac_try_echo=$ac_try;;
     2177esac
     2178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2179$as_echo "$ac_try_echo"; } >&5
     2180  (eval "$ac_link") 2>conftest.err
     2181  ac_status=$?
     2182  if test -s conftest.err; then
     2183    grep -v '^ *+' conftest.err >conftest.er1
     2184    cat conftest.er1 >&5
     2185    mv -f conftest.er1 conftest.err
     2186  fi
     2187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2188  test $ac_status = 0; } && {
     2189         test -z "$ac_c_werror_flag" ||
     2190         test ! -s conftest.err
     2191       } && test -s conftest$ac_exeext && {
     2192         test "$cross_compiling" = yes ||
     2193         test -x conftest$ac_exeext
     2194       }; then :
     2195  ac_retval=0
     2196else
     2197  $as_echo "$as_me: failed program was:" >&5
     2198sed 's/^/| /' conftest.$ac_ext >&5
     2199
     2200        ac_retval=1
     2201fi
     2202  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     2203  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     2204  # interfere with the next link command; also delete a directory that is
     2205  # left behind by Apple's compiler.  We do this before executing the actions.
     2206  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     2207  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2208  as_fn_set_status $ac_retval
     2209
     2210} # ac_fn_c_try_link
     2211
     2212# ac_fn_c_check_func LINENO FUNC VAR
     2213# ----------------------------------
     2214# Tests whether FUNC exists, setting the cache variable VAR accordingly
     2215ac_fn_c_check_func ()
     2216{
     2217  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2219$as_echo_n "checking for $2... " >&6; }
     2220if eval \${$3+:} false; then :
     2221  $as_echo_n "(cached) " >&6
     2222else
     2223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2224/* end confdefs.h.  */
     2225/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     2226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     2227#define $2 innocuous_$2
     2228
     2229/* System header to define __stub macros and hopefully few prototypes,
     2230    which can conflict with char $2 (); below.
     2231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2232    <limits.h> exists even on freestanding compilers.  */
     2233
     2234#ifdef __STDC__
     2235# include <limits.h>
     2236#else
     2237# include <assert.h>
     2238#endif
     2239
     2240#undef $2
     2241
     2242/* Override any GCC internal prototype to avoid an error.
     2243   Use char because int might match the return type of a GCC
     2244   builtin and then its argument prototype would still apply.  */
     2245#ifdef __cplusplus
     2246extern "C"
     2247#endif
     2248char $2 ();
     2249/* The GNU C library defines this for functions which it implements
     2250    to always fail with ENOSYS.  Some functions are actually named
     2251    something starting with __ and the normal name is an alias.  */
     2252#if defined __stub_$2 || defined __stub___$2
     2253choke me
     2254#endif
     2255
     2256int
     2257main ()
     2258{
     2259return $2 ();
     2260  ;
     2261  return 0;
     2262}
     2263_ACEOF
     2264if ac_fn_c_try_link "$LINENO"; then :
     2265  eval "$3=yes"
     2266else
     2267  eval "$3=no"
     2268fi
     2269rm -f core conftest.err conftest.$ac_objext \
     2270    conftest$ac_exeext conftest.$ac_ext
     2271fi
     2272eval ac_res=\$$3
     2273               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2274$as_echo "$ac_res" >&6; }
     2275  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2276
     2277} # ac_fn_c_check_func
     2278
     2279# ac_fn_cxx_check_func LINENO FUNC VAR
     2280# ------------------------------------
     2281# Tests whether FUNC exists, setting the cache variable VAR accordingly
     2282ac_fn_cxx_check_func ()
     2283{
     2284  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2286$as_echo_n "checking for $2... " >&6; }
     2287if eval \${$3+:} false; then :
     2288  $as_echo_n "(cached) " >&6
     2289else
     2290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2291/* end confdefs.h.  */
     2292/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
     2293   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     2294#define $2 innocuous_$2
     2295
     2296/* System header to define __stub macros and hopefully few prototypes,
     2297    which can conflict with char $2 (); below.
     2298    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2299    <limits.h> exists even on freestanding compilers.  */
     2300
     2301#ifdef __STDC__
     2302# include <limits.h>
     2303#else
     2304# include <assert.h>
     2305#endif
     2306
     2307#undef $2
     2308
     2309/* Override any GCC internal prototype to avoid an error.
     2310   Use char because int might match the return type of a GCC
     2311   builtin and then its argument prototype would still apply.  */
     2312#ifdef __cplusplus
     2313extern "C"
     2314#endif
     2315char $2 ();
     2316/* The GNU C library defines this for functions which it implements
     2317    to always fail with ENOSYS.  Some functions are actually named
     2318    something starting with __ and the normal name is an alias.  */
     2319#if defined __stub_$2 || defined __stub___$2
     2320choke me
     2321#endif
     2322
     2323int
     2324main ()
     2325{
     2326return $2 ();
     2327  ;
     2328  return 0;
     2329}
     2330_ACEOF
     2331if ac_fn_cxx_try_link "$LINENO"; then :
     2332  eval "$3=yes"
     2333else
     2334  eval "$3=no"
     2335fi
     2336rm -f core conftest.err conftest.$ac_objext \
     2337    conftest$ac_exeext conftest.$ac_ext
     2338fi
     2339eval ac_res=\$$3
     2340               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2341$as_echo "$ac_res" >&6; }
     2342  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2343
     2344} # ac_fn_cxx_check_func
     2345
     2346# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
     2347# -------------------------------------------
     2348# Tests whether TYPE exists after having included INCLUDES, setting cache
     2349# variable VAR accordingly.
     2350ac_fn_c_check_type ()
     2351{
     2352  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2354$as_echo_n "checking for $2... " >&6; }
     2355if eval \${$3+:} false; then :
     2356  $as_echo_n "(cached) " >&6
     2357else
     2358  eval "$3=no"
     2359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2360/* end confdefs.h.  */
     2361$4
     2362int
     2363main ()
     2364{
     2365if (sizeof ($2))
     2366         return 0;
     2367  ;
     2368  return 0;
     2369}
     2370_ACEOF
     2371if ac_fn_c_try_compile "$LINENO"; then :
     2372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2373/* end confdefs.h.  */
     2374$4
     2375int
     2376main ()
     2377{
     2378if (sizeof (($2)))
     2379            return 0;
     2380  ;
     2381  return 0;
     2382}
     2383_ACEOF
     2384if ac_fn_c_try_compile "$LINENO"; then :
     2385
     2386else
     2387  eval "$3=yes"
     2388fi
     2389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2390fi
     2391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2392fi
     2393eval ac_res=\$$3
     2394               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2395$as_echo "$ac_res" >&6; }
     2396  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2397
     2398} # ac_fn_c_check_type
     2399
     2400# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     2401# -------------------------------------------------------
     2402# Tests whether HEADER exists and can be compiled using the include files in
     2403# INCLUDES, setting the cache variable VAR accordingly.
     2404ac_fn_c_check_header_compile ()
     2405{
     2406  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     2408$as_echo_n "checking for $2... " >&6; }
     2409if eval \${$3+:} false; then :
     2410  $as_echo_n "(cached) " >&6
     2411else
     2412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2413/* end confdefs.h.  */
     2414$4
     2415#include <$2>
     2416_ACEOF
     2417if ac_fn_c_try_compile "$LINENO"; then :
     2418  eval "$3=yes"
     2419else
     2420  eval "$3=no"
     2421fi
     2422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2423fi
     2424eval ac_res=\$$3
     2425               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2426$as_echo "$ac_res" >&6; }
     2427  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2428
     2429} # ac_fn_c_check_header_compile
     2430
     2431# ac_fn_f77_try_link LINENO
     2432# -------------------------
     2433# Try to link conftest.$ac_ext, and return whether this succeeded.
     2434ac_fn_f77_try_link ()
     2435{
     2436  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2437  rm -f conftest.$ac_objext conftest$ac_exeext
     2438  if { { ac_try="$ac_link"
     2439case "(($ac_try" in
     2440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2441  *) ac_try_echo=$ac_try;;
     2442esac
     2443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2444$as_echo "$ac_try_echo"; } >&5
     2445  (eval "$ac_link") 2>conftest.err
     2446  ac_status=$?
     2447  if test -s conftest.err; then
     2448    grep -v '^ *+' conftest.err >conftest.er1
     2449    cat conftest.er1 >&5
     2450    mv -f conftest.er1 conftest.err
     2451  fi
     2452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2453  test $ac_status = 0; } && {
     2454         test -z "$ac_f77_werror_flag" ||
     2455         test ! -s conftest.err
     2456       } && test -s conftest$ac_exeext && {
     2457         test "$cross_compiling" = yes ||
     2458         test -x conftest$ac_exeext
     2459       }; then :
     2460  ac_retval=0
     2461else
     2462  $as_echo "$as_me: failed program was:" >&5
     2463sed 's/^/| /' conftest.$ac_ext >&5
     2464
     2465        ac_retval=1
     2466fi
     2467  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     2468  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     2469  # interfere with the next link command; also delete a directory that is
     2470  # left behind by Apple's compiler.  We do this before executing the actions.
     2471  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     2472  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2473  as_fn_set_status $ac_retval
     2474
     2475} # ac_fn_f77_try_link
     2476cat >config.log <<_ACEOF
    12002477This file contains any messages produced by compilers while
    12012478running configure, to aid debugging if configure makes a mistake.
    12022479
    12032480It was created by $as_me, which was
    1204 generated by GNU Autoconf 2.59.  Invocation command line was
     2481generated by GNU Autoconf 2.69.  Invocation command line was
    12052482
    12062483  $ $0 $@
    12072484
    12082485_ACEOF
     2486exec 5>>config.log
    12092487{
    12102488cat <<_ASUNAME
     
    12252503/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    12262504/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    1227 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     2505/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
    12282506/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    12292507/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     
    12372515  IFS=$as_save_IFS
    12382516  test -z "$as_dir" && as_dir=.
    1239   echo "PATH: $as_dir"
    1240 done
     2517    $as_echo "PATH: $as_dir"
     2518  done
     2519IFS=$as_save_IFS
    12412520
    12422521} >&5
     
    12602539ac_configure_args0=
    12612540ac_configure_args1=
    1262 ac_sep=
    12632541ac_must_keep_next=false
    12642542for ac_pass in 1 2
     
    12712549    | -silent | --silent | --silen | --sile | --sil)
    12722550      continue ;;
    1273     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1274       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     2551    *\'*)
     2552      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    12752553    esac
    12762554    case $ac_pass in
    1277     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
     2555    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    12782556    2)
    1279       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
     2557      as_fn_append ac_configure_args1 " '$ac_arg'"
    12802558      if test $ac_must_keep_next = true; then
    12812559        ac_must_keep_next=false # Got value, back to normal.
     
    12932571        esac
    12942572      fi
    1295       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
    1296       # Get rid of the leading space.
    1297       ac_sep=" "
     2573      as_fn_append ac_configure_args " '$ac_arg'"
    12982574      ;;
    12992575    esac
    13002576  done
    13012577done
    1302 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
    1303 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
     2578{ ac_configure_args0=; unset ac_configure_args0;}
     2579{ ac_configure_args1=; unset ac_configure_args1;}
    13042580
    13052581# When interrupted or exit'd, cleanup temporary files, and complete
    13062582# config.log.  We remove comments because anyway the quotes in there
    13072583# would cause problems or look ugly.
    1308 # WARNING: Be sure not to use single quotes in there, as some shells,
    1309 # such as our DU 5.0 friend, will then `close' the trap.
     2584# WARNING: Use '\'' to represent an apostrophe within the trap.
     2585# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
    13102586trap 'exit_status=$?
    13112587  # Save into config.log some information that might help in debugging.
     
    13132589    echo
    13142590
    1315     cat <<\_ASBOX
    1316 ## ---------------- ##
     2591    $as_echo "## ---------------- ##
    13172592## Cache variables. ##
    1318 ## ---------------- ##
    1319 _ASBOX
     2593## ---------------- ##"
    13202594    echo
    13212595    # The following way of writing the cache mishandles newlines in values,
    1322 {
     2596(
     2597  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
     2598    eval ac_val=\$$ac_var
     2599    case $ac_val in #(
     2600    *${as_nl}*)
     2601      case $ac_var in #(
     2602      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
     2603$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
     2604      esac
     2605      case $ac_var in #(
     2606      _ | IFS | as_nl) ;; #(
     2607      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
     2608      *) { eval $ac_var=; unset $ac_var;} ;;
     2609      esac ;;
     2610    esac
     2611  done
    13232612  (set) 2>&1 |
    1324     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
    1325     *ac_space=\ *)
     2613    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
     2614    *${as_nl}ac_space=\ *)
    13262615      sed -n \
    1327         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1328           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     2616        "s/'\''/'\''\\\\'\'''\''/g;
     2617          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
     2618      ;; #(
     2619    *)
     2620      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
    13292621      ;;
    1330     *)
    1331       sed -n \
    1332         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    1333       ;;
    1334     esac;
    1335 }
     2622    esac |
     2623    sort
     2624)
    13362625    echo
    13372626
    1338     cat <<\_ASBOX
    1339 ## ----------------- ##
     2627    $as_echo "## ----------------- ##
    13402628## Output variables. ##
    1341 ## ----------------- ##
    1342 _ASBOX
     2629## ----------------- ##"
    13432630    echo
    13442631    for ac_var in $ac_subst_vars
    13452632    do
    1346       eval ac_val=$`echo $ac_var`
    1347       echo "$ac_var='"'"'$ac_val'"'"'"
     2633      eval ac_val=\$$ac_var
     2634      case $ac_val in
     2635      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2636      esac
     2637      $as_echo "$ac_var='\''$ac_val'\''"
    13482638    done | sort
    13492639    echo
    13502640
    13512641    if test -n "$ac_subst_files"; then
    1352       cat <<\_ASBOX
    1353 ## ------------- ##
    1354 ## Output files. ##
    1355 ## ------------- ##
    1356 _ASBOX
     2642      $as_echo "## ------------------- ##
     2643## File substitutions. ##
     2644## ------------------- ##"
    13572645      echo
    13582646      for ac_var in $ac_subst_files
    13592647      do
    1360         eval ac_val=$`echo $ac_var`
    1361         echo "$ac_var='"'"'$ac_val'"'"'"
     2648        eval ac_val=\$$ac_var
     2649        case $ac_val in
     2650        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
     2651        esac
     2652        $as_echo "$ac_var='\''$ac_val'\''"
    13622653      done | sort
    13632654      echo
     
    13652656
    13662657    if test -s confdefs.h; then
    1367       cat <<\_ASBOX
    1368 ## ----------- ##
     2658      $as_echo "## ----------- ##
    13692659## confdefs.h. ##
    1370 ## ----------- ##
    1371 _ASBOX
     2660## ----------- ##"
    13722661      echo
    1373       sed "/^$/d" confdefs.h | sort
     2662      cat confdefs.h
    13742663      echo
    13752664    fi
    13762665    test "$ac_signal" != 0 &&
    1377       echo "$as_me: caught signal $ac_signal"
    1378     echo "$as_me: exit $exit_status"
     2666      $as_echo "$as_me: caught signal $ac_signal"
     2667    $as_echo "$as_me: exit $exit_status"
    13792668  } >&5
    1380   rm -f core *.core &&
    1381   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
     2669  rm -f core *.core core.conftest.* &&
     2670    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    13822671    exit $exit_status
    1383      ' 0
     2672' 0
    13842673for ac_signal in 1 2 13 15; do
    1385   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     2674  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
    13862675done
    13872676ac_signal=0
    13882677
    13892678# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1390 rm -rf conftest* confdefs.h
    1391 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    1392 echo >confdefs.h
     2679rm -f -r conftest* confdefs.h
     2680
     2681$as_echo "/* confdefs.h */" > confdefs.h
    13932682
    13942683# Predefined preprocessor variables.
     
    13982687_ACEOF
    13992688
    1400 
    14012689cat >>confdefs.h <<_ACEOF
    14022690#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
    14032691_ACEOF
    14042692
    1405 
    14062693cat >>confdefs.h <<_ACEOF
    14072694#define PACKAGE_VERSION "$PACKAGE_VERSION"
    14082695_ACEOF
    14092696
    1410 
    14112697cat >>confdefs.h <<_ACEOF
    14122698#define PACKAGE_STRING "$PACKAGE_STRING"
    14132699_ACEOF
    14142700
    1415 
    14162701cat >>confdefs.h <<_ACEOF
    14172702#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
    14182703_ACEOF
    14192704
     2705cat >>confdefs.h <<_ACEOF
     2706#define PACKAGE_URL "$PACKAGE_URL"
     2707_ACEOF
     2708
    14202709
    14212710# Let the site file select an alternate cache file if it wants to.
    1422 # Prefer explicitly selected file to automatically selected ones.
    1423 if test -z "$CONFIG_SITE"; then
    1424   if test "x$prefix" != xNONE; then
    1425     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    1426   else
    1427     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    1428   fi
    1429 fi
    1430 for ac_site_file in $CONFIG_SITE; do
    1431   if test -r "$ac_site_file"; then
    1432     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
    1433 echo "$as_me: loading site script $ac_site_file" >&6;}
     2711# Prefer an explicitly selected file to automatically selected ones.
     2712ac_site_file1=NONE
     2713ac_site_file2=NONE
     2714if test -n "$CONFIG_SITE"; then
     2715  # We do not want a PATH search for config.site.
     2716  case $CONFIG_SITE in #((
     2717    -*)  ac_site_file1=./$CONFIG_SITE;;
     2718    */*) ac_site_file1=$CONFIG_SITE;;
     2719    *)   ac_site_file1=./$CONFIG_SITE;;
     2720  esac
     2721elif test "x$prefix" != xNONE; then
     2722  ac_site_file1=$prefix/share/config.site
     2723  ac_site_file2=$prefix/etc/config.site
     2724else
     2725  ac_site_file1=$ac_default_prefix/share/config.site
     2726  ac_site_file2=$ac_default_prefix/etc/config.site
     2727fi
     2728for ac_site_file in "$ac_site_file1" "$ac_site_file2"
     2729do
     2730  test "x$ac_site_file" = xNONE && continue
     2731  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
     2732    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
     2733$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    14342734    sed 's/^/| /' "$ac_site_file" >&5
    1435     . "$ac_site_file"
     2735    . "$ac_site_file" \
     2736      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2738as_fn_error $? "failed to load site script $ac_site_file
     2739See \`config.log' for more details" "$LINENO" 5; }
    14362740  fi
    14372741done
     
    14412745# value.
    14422746ac_cache_corrupted=false
    1443 for ac_var in `(set) 2>&1 |
    1444                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     2747for ac_var in $ac_precious_vars; do
    14452748  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    14462749  eval ac_new_set=\$ac_env_${ac_var}_set
    1447   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
    1448   eval ac_new_val="\$ac_env_${ac_var}_value"
     2750  eval ac_old_val=\$ac_cv_env_${ac_var}_value
     2751  eval ac_new_val=\$ac_env_${ac_var}_value
    14492752  case $ac_old_set,$ac_new_set in
    14502753    set,)
    1451       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1452 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     2754      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     2755$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    14532756      ac_cache_corrupted=: ;;
    14542757    ,set)
    1455       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
    1456 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     2758      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
     2759$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    14572760      ac_cache_corrupted=: ;;
    14582761    ,);;
    14592762    *)
    14602763      if test "x$ac_old_val" != "x$ac_new_val"; then
    1461         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    1462 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1463         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    1464 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1465         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    1466 echo "$as_me:   current value: $ac_new_val" >&2;}
    1467         ac_cache_corrupted=:
     2764        # differences in whitespace do not lead to failure.
     2765        ac_old_val_w=`echo x $ac_old_val`
     2766        ac_new_val_w=`echo x $ac_new_val`
     2767        if test "$ac_old_val_w" != "$ac_new_val_w"; then
     2768          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
     2769$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     2770          ac_cache_corrupted=:
     2771        else
     2772          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
     2773$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
     2774          eval $ac_var=\$ac_old_val
     2775        fi
     2776        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
     2777$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
     2778        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
     2779$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
    14682780      fi;;
    14692781  esac
     
    14712783  if test "$ac_new_set" = set; then
    14722784    case $ac_new_val in
    1473     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    1474       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     2785    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    14752786    *) ac_arg=$ac_var=$ac_new_val ;;
    14762787    esac
    14772788    case " $ac_configure_args " in
    14782789      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
    1479       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     2790      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    14802791    esac
    14812792  fi
    14822793done
    14832794if $ac_cache_corrupted; then
    1484   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
    1485 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1486   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1487 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1488    { (exit 1); exit 1; }; }
    1489 fi
     2795  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2797  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
     2798$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     2799  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2800fi
     2801## -------------------- ##
     2802## Main body of script. ##
     2803## -------------------- ##
    14902804
    14912805ac_ext=c
     
    14972811
    14982812
    1499 
    1500 
    1501 
    1502 
    1503 
    1504 
    1505 
    1506 
    1507 
    1508 
    1509 
    1510 
    1511 
    1512 
    1513 
    1514 
    1515 
    1516           ac_config_headers="$ac_config_headers src/lib/scconfig.h"
     2813ac_config_headers="$ac_config_headers src/lib/scconfig.h"
    15172814
    15182815ac_aux_dir=
    1519 for ac_dir in bin $srcdir/bin; do
    1520   if test -f $ac_dir/install-sh; then
     2816for ac_dir in bin "$srcdir"/bin; do
     2817  if test -f "$ac_dir/install-sh"; then
    15212818    ac_aux_dir=$ac_dir
    15222819    ac_install_sh="$ac_aux_dir/install-sh -c"
    15232820    break
    1524   elif test -f $ac_dir/install.sh; then
     2821  elif test -f "$ac_dir/install.sh"; then
    15252822    ac_aux_dir=$ac_dir
    15262823    ac_install_sh="$ac_aux_dir/install.sh -c"
    15272824    break
    1528   elif test -f $ac_dir/shtool; then
     2825  elif test -f "$ac_dir/shtool"; then
    15292826    ac_aux_dir=$ac_dir
    15302827    ac_install_sh="$ac_aux_dir/shtool install -c"
     
    15332830done
    15342831if test -z "$ac_aux_dir"; then
    1535   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in bin $srcdir/bin" >&5
    1536 echo "$as_me: error: cannot find install-sh or install.sh in bin $srcdir/bin" >&2;}
    1537    { (exit 1); exit 1; }; }
    1538 fi
    1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     2832  as_fn_error $? "cannot find install-sh, install.sh, or shtool in bin \"$srcdir\"/bin" "$LINENO" 5
     2833fi
     2834
     2835# These three variables are undocumented and unsupported,
     2836# and are intended to be withdrawn in a future Autoconf release.
     2837# They can cause serious problems if a builder's source tree is in a directory
     2838# whose full name contains unusual characters.
     2839ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
     2840ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
     2841ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
     2842
    15422843
    15432844
    15442845# Make sure we can run config.sub.
    1545 $ac_config_sub sun4 >/dev/null 2>&1 ||
    1546   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    1547 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    1548    { (exit 1); exit 1; }; }
    1549 
    1550 echo "$as_me:$LINENO: checking build system type" >&5
    1551 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    1552 if test "${ac_cv_build+set}" = set; then
    1553   echo $ECHO_N "(cached) $ECHO_C" >&6
    1554 else
    1555   ac_cv_build_alias=$build_alias
    1556 test -z "$ac_cv_build_alias" &&
    1557   ac_cv_build_alias=`$ac_config_guess`
    1558 test -z "$ac_cv_build_alias" &&
    1559   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    1560 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    1561    { (exit 1); exit 1; }; }
    1562 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    1563   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    1564 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    1565    { (exit 1); exit 1; }; }
    1566 
    1567 fi
    1568 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    1569 echo "${ECHO_T}$ac_cv_build" >&6
     2846$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     2847  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     2848
     2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     2850$as_echo_n "checking build system type... " >&6; }
     2851if ${ac_cv_build+:} false; then :
     2852  $as_echo_n "(cached) " >&6
     2853else
     2854  ac_build_alias=$build_alias
     2855test "x$ac_build_alias" = x &&
     2856  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     2857test "x$ac_build_alias" = x &&
     2858  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     2859ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     2860  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     2861
     2862fi
     2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     2864$as_echo "$ac_cv_build" >&6; }
     2865case $ac_cv_build in
     2866*-*-*) ;;
     2867*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
     2868esac
    15702869build=$ac_cv_build
    1571 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1572 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1573 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1574 
    1575 
    1576 echo "$as_me:$LINENO: checking host system type" >&5
    1577 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    1578 if test "${ac_cv_host+set}" = set; then
    1579   echo $ECHO_N "(cached) $ECHO_C" >&6
    1580 else
    1581   ac_cv_host_alias=$host_alias
    1582 test -z "$ac_cv_host_alias" &&
    1583   ac_cv_host_alias=$ac_cv_build_alias
    1584 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    1585   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    1586 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    1587    { (exit 1); exit 1; }; }
    1588 
    1589 fi
    1590 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    1591 echo "${ECHO_T}$ac_cv_host" >&6
     2870ac_save_IFS=$IFS; IFS='-'
     2871set x $ac_cv_build
     2872shift
     2873build_cpu=$1
     2874build_vendor=$2
     2875shift; shift
     2876# Remember, the first character of IFS is used to create $*,
     2877# except with old shells:
     2878build_os=$*
     2879IFS=$ac_save_IFS
     2880case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     2881
     2882
     2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     2884$as_echo_n "checking host system type... " >&6; }
     2885if ${ac_cv_host+:} false; then :
     2886  $as_echo_n "(cached) " >&6
     2887else
     2888  if test "x$host_alias" = x; then
     2889  ac_cv_host=$ac_cv_build
     2890else
     2891  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     2892    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     2893fi
     2894
     2895fi
     2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     2897$as_echo "$ac_cv_host" >&6; }
     2898case $ac_cv_host in
     2899*-*-*) ;;
     2900*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
     2901esac
    15922902host=$ac_cv_host
    1593 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1594 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1595 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1596 
    1597 
    1598 echo "$as_me:$LINENO: checking target system type" >&5
    1599 echo $ECHO_N "checking target system type... $ECHO_C" >&6
    1600 if test "${ac_cv_target+set}" = set; then
    1601   echo $ECHO_N "(cached) $ECHO_C" >&6
    1602 else
    1603   ac_cv_target_alias=$target_alias
    1604 test "x$ac_cv_target_alias" = "x" &&
    1605   ac_cv_target_alias=$ac_cv_host_alias
    1606 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
    1607   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    1608 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    1609    { (exit 1); exit 1; }; }
    1610 
    1611 fi
    1612 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
    1613 echo "${ECHO_T}$ac_cv_target" >&6
     2903ac_save_IFS=$IFS; IFS='-'
     2904set x $ac_cv_host
     2905shift
     2906host_cpu=$1
     2907host_vendor=$2
     2908shift; shift
     2909# Remember, the first character of IFS is used to create $*,
     2910# except with old shells:
     2911host_os=$*
     2912IFS=$ac_save_IFS
     2913case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     2914
     2915
     2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
     2917$as_echo_n "checking target system type... " >&6; }
     2918if ${ac_cv_target+:} false; then :
     2919  $as_echo_n "(cached) " >&6
     2920else
     2921  if test "x$target_alias" = x; then
     2922  ac_cv_target=$ac_cv_host
     2923else
     2924  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
     2925    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
     2926fi
     2927
     2928fi
     2929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
     2930$as_echo "$ac_cv_target" >&6; }
     2931case $ac_cv_target in
     2932*-*-*) ;;
     2933*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
     2934esac
    16142935target=$ac_cv_target
    1615 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1616 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1617 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     2936ac_save_IFS=$IFS; IFS='-'
     2937set x $ac_cv_target
     2938shift
     2939target_cpu=$1
     2940target_vendor=$2
     2941shift; shift
     2942# Remember, the first character of IFS is used to create $*,
     2943# except with old shells:
     2944target_os=$*
     2945IFS=$ac_save_IFS
     2946case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
    16182947
    16192948
     
    16252954  program_prefix=${target_alias}-
    16262955
     2956
     2957
    16272958cat >>confdefs.h <<_ACEOF
    16282959#define HOST_ARCH "$host"
    16292960_ACEOF
    16302961
     2962
    16312963cat >>confdefs.h <<_ACEOF
    16322964#define TARGET_ARCH "$target"
     
    16452977SC_MINOR_VERSION=`echo $SC_MMM_VERSION|sed 's/[0-9]*\.\([0-9]*\)\.[0-9]*/\1/'`
    16462978SC_MICRO_VERSION=`echo $SC_MMM_VERSION|sed 's/[0-9]*\.[0-9]*\.\([0-9]*\)/\1/'`
     2979
    16472980cat >>confdefs.h <<_ACEOF
    16482981#define SC_MAJOR_VERSION $SC_MAJOR_VERSION
    16492982_ACEOF
    16502983
     2984
    16512985cat >>confdefs.h <<_ACEOF
    16522986#define SC_MINOR_VERSION $SC_MINOR_VERSION
    16532987_ACEOF
    16542988
     2989
    16552990cat >>confdefs.h <<_ACEOF
    16562991#define SC_MICRO_VERSION $SC_MICRO_VERSION
     
    16612996
    16622997
    1663 # Check whether --enable-debug or --disable-debug was given.
    1664 if test "${enable_debug+set}" = set; then
    1665   enableval="$enable_debug"
    1666 
     2998# Check whether --enable-debug was given.
     2999if test "${enable_debug+set}" = set; then :
     3000  enableval=$enable_debug;
    16673001case $enableval in
    16683002  yes)
     
    16763010  ;;
    16773011  *)
    1678     { { echo "$as_me:$LINENO: error: Invalid value for --enable-debug ($enableval)" >&5
    1679 echo "$as_me: error: Invalid value for --enable-debug ($enableval)" >&2;}
    1680    { (exit 1); exit 1; }; }
     3012    as_fn_error $? "Invalid value for --enable-debug ($enableval)" "$LINENO" 5
    16813013  ;;
    16823014esac
     
    16873019
    16883020
    1689 fi;
    1690 
    1691 # Check whether --enable-strict-arch or --disable-strict-arch was given.
    1692 if test "${enable_strict_arch+set}" = set; then
    1693   enableval="$enable_strict_arch"
    1694 
     3021fi
     3022
     3023
     3024# Check whether --enable-strict-arch was given.
     3025if test "${enable_strict_arch+set}" = set; then :
     3026  enableval=$enable_strict_arch;
    16953027case $enableval in
    16963028  yes)
     
    17013033  ;;
    17023034  *)
    1703     { { echo "$as_me:$LINENO: error: Invalid value for --enable-strict-arch ($enableval)" >&5
    1704 echo "$as_me: error: Invalid value for --enable-strict-arch ($enableval)" >&2;}
    1705    { (exit 1); exit 1; }; }
     3035    as_fn_error $? "Invalid value for --enable-strict-arch ($enableval)" "$LINENO" 5
    17063036  ;;
    17073037esac
     
    17123042
    17133043
    1714 fi;
     3044fi
     3045
    17153046
    17163047enableproduction=no
    1717 # Check whether --enable-production or --disable-production was given.
    1718 if test "${enable_production+set}" = set; then
    1719   enableval="$enable_production"
    1720 
     3048# Check whether --enable-production was given.
     3049if test "${enable_production+set}" = set; then :
     3050  enableval=$enable_production;
    17213051case $enableval in
    17223052  yes)
     
    17263056  ;;
    17273057  *)
    1728     { { echo "$as_me:$LINENO: error: Invalid value for --enable-production ($enableval)" >&5
    1729 echo "$as_me: error: Invalid value for --enable-production ($enableval)" >&2;}
    1730    { (exit 1); exit 1; }; }
     3058    as_fn_error $? "Invalid value for --enable-production ($enableval)" "$LINENO" 5
    17313059  ;;
    17323060esac
    17333061
    1734 fi;
    1735 
    1736 # Check whether --enable-sysv-ipc or --disable-sysv-ipc was given.
    1737 if test "${enable_sysv_ipc+set}" = set; then
    1738   enableval="$enable_sysv_ipc"
    1739 
     3062fi
     3063
     3064
     3065# Check whether --enable-sysv-ipc was given.
     3066if test "${enable_sysv_ipc+set}" = set; then :
     3067  enableval=$enable_sysv_ipc;
    17403068case $enableval in
    17413069  yes)
     
    17463074  ;;
    17473075  *)
    1748     { { echo "$as_me:$LINENO: error: Invalid value for --enable-sysv-ipc ($enableval)" >&5
    1749 echo "$as_me: error: Invalid value for --enable-sysv-ipc ($enableval)" >&2;}
    1750    { (exit 1); exit 1; }; }
     3076    as_fn_error $? "Invalid value for --enable-sysv-ipc ($enableval)" "$LINENO" 5
    17513077  ;;
    17523078esac
     
    17573083
    17583084
    1759 fi;
    1760 
    1761 # Check whether --enable-parallel or --disable-parallel was given.
    1762 if test "${enable_parallel+set}" = set; then
    1763   enableval="$enable_parallel"
    1764 
     3085fi
     3086
     3087
     3088# Check whether --enable-parallel was given.
     3089if test "${enable_parallel+set}" = set; then :
     3090  enableval=$enable_parallel;
    17653091case $enableval in
    17663092  yes)
     
    17713097  ;;
    17723098  *)
    1773     { { echo "$as_me:$LINENO: error: Invalid value for --enable-parallel ($enableval)" >&5
    1774 echo "$as_me: error: Invalid value for --enable-parallel ($enableval)" >&2;}
    1775    { (exit 1); exit 1; }; }
     3099    as_fn_error $? "Invalid value for --enable-parallel ($enableval)" "$LINENO" 5
    17763100  ;;
    17773101esac
     
    17823106
    17833107
    1784 fi;
    1785 
    1786 # Check whether --enable-always-use-mpi or --disable-always-use-mpi was given.
    1787 if test "${enable_always_use_mpi+set}" = set; then
    1788   enableval="$enable_always_use_mpi"
    1789 
     3108fi
     3109
     3110
     3111# Check whether --enable-always-use-mpi was given.
     3112if test "${enable_always_use_mpi+set}" = set; then :
     3113  enableval=$enable_always_use_mpi;
    17903114case $enableval in
    17913115  yes)
     
    17963120  ;;
    17973121  *)
    1798     { { echo "$as_me:$LINENO: error: Invalid value for --enable-always-use-mpi ($enableval)" >&5
    1799 echo "$as_me: error: Invalid value for --enable-always-use-mpi ($enableval)" >&2;}
    1800    { (exit 1); exit 1; }; }
     3122    as_fn_error $? "Invalid value for --enable-always-use-mpi ($enableval)" "$LINENO" 5
    18013123  ;;
    18023124esac
     
    18073129
    18083130
    1809 fi;
     3131fi
     3132
    18103133
    18113134DEFAULT_PARALLEL=none
    18123135
    1813 # Check whether --with-default-parallel or --without-default-parallel was given.
    1814 if test "${with_default_parallel+set}" = set; then
    1815   withval="$with_default_parallel"
    1816   DEFAULT_PARALLEL=$withval
    1817 
    1818 fi;
     3136# Check whether --with-default-parallel was given.
     3137if test "${with_default_parallel+set}" = set; then :
     3138  withval=$with_default_parallel; DEFAULT_PARALLEL=$withval
     3139
     3140fi
     3141
    18193142if test $DEFAULT_PARALLEL = mpi; then
    1820   cat >>confdefs.h <<\_ACEOF
    1821 #define DEFAULT_MPI 1
    1822 _ACEOF
     3143
     3144$as_echo "#define DEFAULT_MPI 1" >>confdefs.h
    18233145
    18243146elif test $DEFAULT_PARALLEL = mtmpi; then
    1825   cat >>confdefs.h <<\_ACEOF
    1826 #define DEFAULT_MPI 1
    1827 _ACEOF
    1828 
    1829   cat >>confdefs.h <<\_ACEOF
    1830 #define DEFAULT_MTMPI 1
    1831 _ACEOF
     3147
     3148$as_echo "#define DEFAULT_MPI 1" >>confdefs.h
     3149
     3150
     3151$as_echo "#define DEFAULT_MTMPI 1" >>confdefs.h
    18323152
    18333153elif test $DEFAULT_PARALLEL = armcimpi; then
    1834   cat >>confdefs.h <<\_ACEOF
    1835 #define DEFAULT_MPI 1
    1836 _ACEOF
    1837 
    1838   cat >>confdefs.h <<\_ACEOF
    1839 #define DEFAULT_ARMCI 1
    1840 _ACEOF
     3154
     3155$as_echo "#define DEFAULT_MPI 1" >>confdefs.h
     3156
     3157
     3158$as_echo "#define DEFAULT_ARMCI 1" >>confdefs.h
    18413159
    18423160fi
     
    18443162SC_MPI_THREAD_LEVEL=MPI_THREAD_MULTIPLE
    18453163
    1846 # Check whether --with-mpi-thread or --without-mpi-thread was given.
    1847 if test "${with_mpi_thread+set}" = set; then
    1848   withval="$with_mpi_thread"
    1849 
     3164# Check whether --with-mpi-thread was given.
     3165if test "${with_mpi_thread+set}" = set; then :
     3166  withval=$with_mpi_thread;
    18503167   case $withval in
    18513168   multiple)
     
    18623179   ;;
    18633180   *)
    1864      { { echo "$as_me:$LINENO: error: Invalid value for --with-mpi-thread ($withval)" >&5
    1865 echo "$as_me: error: Invalid value for --with-mpi-thread ($withval)" >&2;}
    1866    { (exit 1); exit 1; }; }
     3181     as_fn_error $? "Invalid value for --with-mpi-thread ($withval)" "$LINENO" 5
    18673182   ;;
    18683183   esac
    18693184
    18703185
    1871 fi;
     3186fi
     3187
     3188
    18723189cat >>confdefs.h <<_ACEOF
    18733190#define SC_MPI_THREAD_LEVEL $SC_MPI_THREAD_LEVEL
     
    18753192
    18763193
    1877 # Check whether --enable-long-long or --disable-long-long was given.
    1878 if test "${enable_long_long+set}" = set; then
    1879   enableval="$enable_long_long"
    1880 
     3194# Check whether --enable-long-long was given.
     3195if test "${enable_long_long+set}" = set; then :
     3196  enableval=$enable_long_long;
    18813197case $enableval in
    18823198  yes)
     
    18873203  ;;
    18883204  *)
    1889     { { echo "$as_me:$LINENO: error: Invalid value for --enable-long-long ($enableval)" >&5
    1890 echo "$as_me: error: Invalid value for --enable-long-long ($enableval)" >&2;}
    1891    { (exit 1); exit 1; }; }
     3205    as_fn_error $? "Invalid value for --enable-long-long ($enableval)" "$LINENO" 5
    18923206  ;;
    18933207esac
     
    18983212
    18993213
    1900 fi;
    1901 
    1902 # Check whether --enable-threads or --disable-threads was given.
    1903 if test "${enable_threads+set}" = set; then
    1904   enableval="$enable_threads"
    1905 
     3214fi
     3215
     3216
     3217# Check whether --enable-threads was given.
     3218if test "${enable_threads+set}" = set; then :
     3219  enableval=$enable_threads;
    19063220case $enableval in
    19073221  yes)
     
    19123226  ;;
    19133227  *)
    1914     { { echo "$as_me:$LINENO: error: Invalid value for --enable-threads ($enableval)" >&5
    1915 echo "$as_me: error: Invalid value for --enable-threads ($enableval)" >&2;}
    1916    { (exit 1); exit 1; }; }
     3228    as_fn_error $? "Invalid value for --enable-threads ($enableval)" "$LINENO" 5
    19173229  ;;
    19183230esac
     
    19233235
    19243236
    1925 fi;
    1926 
    1927 # Check whether --enable-ref-debug or --disable-ref-debug was given.
    1928 if test "${enable_ref_debug+set}" = set; then
    1929   enableval="$enable_ref_debug"
    1930 
     3237fi
     3238
     3239
     3240# Check whether --enable-ref-debug was given.
     3241if test "${enable_ref_debug+set}" = set; then :
     3242  enableval=$enable_ref_debug;
    19313243case $enableval in
    19323244  yes)
    19333245  ;;
    19343246  no)
    1935     cat >>confdefs.h <<\_ACEOF
    1936 #define REF_OPTIMIZE 1
    1937 _ACEOF
     3247
     3248$as_echo "#define REF_OPTIMIZE 1" >>confdefs.h
    19383249
    19393250  ;;
    19403251  *)
    1941     { { echo "$as_me:$LINENO: error: Invalid value for --enable-ref-debug ($enableval)" >&5
    1942 echo "$as_me: error: Invalid value for --enable-ref-debug ($enableval)" >&2;}
    1943    { (exit 1); exit 1; }; }
     3252    as_fn_error $? "Invalid value for --enable-ref-debug ($enableval)" "$LINENO" 5
    19443253  ;;
    19453254esac
     
    19483257
    19493258  if test $DEBUG = no -o $DEBUG = opt; then
    1950     cat >>confdefs.h <<\_ACEOF
    1951 #define REF_OPTIMIZE 1
    1952 _ACEOF
     3259
     3260$as_echo "#define REF_OPTIMIZE 1" >>confdefs.h
    19533261
    19543262  fi
    19553263
    19563264
    1957 fi;
    1958 
    1959 # Check whether --enable-cross-compile or --disable-cross-compile was given.
    1960 if test "${enable_cross_compile+set}" = set; then
    1961   enableval="$enable_cross_compile"
    1962 
     3265fi
     3266
     3267
     3268# Check whether --enable-cross-compile was given.
     3269if test "${enable_cross_compile+set}" = set; then :
     3270  enableval=$enable_cross_compile;
    19633271case $enableval in
    19643272  yes)
     
    19683276  ;;
    19693277  *)
    1970     { { echo "$as_me:$LINENO: error: Invalid value for --enable-cross-compile ($enableval)" >&5
    1971 echo "$as_me: error: Invalid value for --enable-cross-compile ($enableval)" >&2;}
    1972    { (exit 1); exit 1; }; }
     3278    as_fn_error $? "Invalid value for --enable-cross-compile ($enableval)" "$LINENO" 5
    19733279  ;;
    19743280esac
    19753281
    1976 fi;
     3282fi
     3283
    19773284
    19783285DOXYGEN_MAN=YES
    1979 # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
    1980 if test "${enable_doxygen_man+set}" = set; then
    1981   enableval="$enable_doxygen_man"
    1982 
     3286# Check whether --enable-doxygen-man was given.
     3287if test "${enable_doxygen_man+set}" = set; then :
     3288  enableval=$enable_doxygen_man;
    19833289case $enableval in
    19843290  yes)
     
    19883294  ;;
    19893295  *)
    1990     { { echo "$as_me:$LINENO: error: Invalid value for --(dis|en)able-doxygen-man ($enableval)" >&5
    1991 echo "$as_me: error: Invalid value for --(dis|en)able-doxygen-man ($enableval)" >&2;}
    1992    { (exit 1); exit 1; }; }
     3296    as_fn_error $? "Invalid value for --(dis|en)able-doxygen-man ($enableval)" "$LINENO" 5
    19933297  ;;
    19943298esac
    19953299
    19963300
    1997 fi;
    1998 
    1999 
    2000 # Check whether --enable-sourceforge or --disable-sourceforge was given.
    2001 if test "${enable_sourceforge+set}" = set; then
    2002   enableval="$enable_sourceforge"
    2003 
     3301fi
     3302
     3303
     3304
     3305# Check whether --enable-sourceforge was given.
     3306if test "${enable_sourceforge+set}" = set; then :
     3307  enableval=$enable_sourceforge;
    20043308case $enableval in
    20053309  yes)
     
    20103314  ;;
    20113315  *)
    2012     { { echo "$as_me:$LINENO: error: Invalid value for --enable-sourceforge ($enableval)" >&5
    2013 echo "$as_me: error: Invalid value for --enable-sourceforge ($enableval)" >&2;}
    2014    { (exit 1); exit 1; }; }
     3316    as_fn_error $? "Invalid value for --enable-sourceforge ($enableval)" "$LINENO" 5
    20153317  ;;
    20163318esac
     
    20213323
    20223324
    2023 fi;
    2024 
    2025 
    2026 # Check whether --enable-components or --disable-components was given.
    2027 if test "${enable_components+set}" = set; then
    2028   enableval="$enable_components"
    2029 
     3325fi
     3326
     3327
     3328
     3329# Check whether --enable-components was given.
     3330if test "${enable_components+set}" = set; then :
     3331  enableval=$enable_components;
    20303332case $enableval in
    20313333  yes)
     
    20363338  ;;
    20373339  *)
    2038     { { echo "$as_me:$LINENO: error: Invalid value for --enable-components ($enableval)" >&5
    2039 echo "$as_me: error: Invalid value for --enable-components ($enableval)" >&2;}
    2040    { (exit 1); exit 1; }; }
     3340    as_fn_error $? "Invalid value for --enable-components ($enableval)" "$LINENO" 5
    20413341  ;;
    20423342esac
     
    20473347
    20483348
    2049 fi;
     3349fi
     3350
    20503351ENABLECCA=$components
    20513352
     
    20533354BUILDID=""
    20543355
    2055 # Check whether --with-build-id or --without-build-id was given.
    2056 if test "${with_build_id+set}" = set; then
    2057   withval="$with_build_id"
    2058   BUILDID=$withval
    2059 
    2060 fi;
     3356# Check whether --with-build-id was given.
     3357if test "${with_build_id+set}" = set; then :
     3358  withval=$with_build_id; BUILDID=$withval
     3359
     3360fi
     3361
     3362
    20613363
    20623364cat >>confdefs.h <<_ACEOF
     
    20673369DEFAULT_SC_MEMORY=32000000
    20683370
    2069 # Check whether --with-default-memory or --without-default-memory was given.
    2070 if test "${with_default_memory+set}" = set; then
    2071   withval="$with_default_memory"
    2072   DEFAULT_SC_MEMORY=$withval
    2073 
    2074 fi;
     3371# Check whether --with-default-memory was given.
     3372if test "${with_default_memory+set}" = set; then :
     3373  withval=$with_default_memory; DEFAULT_SC_MEMORY=$withval
     3374
     3375fi
     3376
     3377
    20753378cat >>confdefs.h <<_ACEOF
    20763379#define DEFAULT_SC_MEMORY $DEFAULT_SC_MEMORY
     
    20843387fi
    20853388
     3389
    20863390cat >>confdefs.h <<_ACEOF
    20873391#define SC_VERSION "$SC_VERSION"
     
    20933397
    20943398
    2095 # Check whether --with-cc or --without-cc was given.
    2096 if test "${with_cc+set}" = set; then
    2097   withval="$with_cc"
    2098   CC=$withval
    2099 
    2100 fi;
    2101 
    2102 
    2103 # Check whether --with-cxx or --without-cxx was given.
    2104 if test "${with_cxx+set}" = set; then
    2105   withval="$with_cxx"
    2106   CXX=$withval
    2107 
    2108 fi;
    2109 
    2110 
    2111 # Check whether --with-f77 or --without-f77 was given.
    2112 if test "${with_f77+set}" = set; then
    2113   withval="$with_f77"
    2114   F77=$withval
    2115 
    2116 fi;
    2117 
    2118 
    2119 # Check whether --with-cxx-optflags or --without-cxx-optflags was given.
    2120 if test "${with_cxx_optflags+set}" = set; then
    2121   withval="$with_cxx_optflags"
    2122   GIVEN_CXXOPTIONS_OPT=$withval
    2123 
    2124 fi;
    2125 
    2126 
    2127 # Check whether --with-cc-optflags or --without-cc-optflags was given.
    2128 if test "${with_cc_optflags+set}" = set; then
    2129   withval="$with_cc_optflags"
    2130   GIVEN_COPTIONS_OPT=$withval
    2131 
    2132 fi;
     3399# Check whether --with-cc was given.
     3400if test "${with_cc+set}" = set; then :
     3401  withval=$with_cc; CC=$withval
     3402
     3403fi
     3404
     3405
     3406
     3407# Check whether --with-cxx was given.
     3408if test "${with_cxx+set}" = set; then :
     3409  withval=$with_cxx; CXX=$withval
     3410
     3411fi
     3412
     3413
     3414
     3415# Check whether --with-f77 was given.
     3416if test "${with_f77+set}" = set; then :
     3417  withval=$with_f77; F77=$withval
     3418
     3419fi
     3420
     3421
     3422
     3423# Check whether --with-cxx-optflags was given.
     3424if test "${with_cxx_optflags+set}" = set; then :
     3425  withval=$with_cxx_optflags; GIVEN_CXXOPTIONS_OPT=$withval
     3426
     3427fi
     3428
     3429
     3430
     3431# Check whether --with-cc-optflags was given.
     3432if test "${with_cc_optflags+set}" = set; then :
     3433  withval=$with_cc_optflags; GIVEN_COPTIONS_OPT=$withval
     3434
     3435fi
     3436
    21333437
    21343438DOT=yes
    21353439
    2136 # Check whether --with-dot or --without-dot was given.
    2137 if test "${with_dot+set}" = set; then
    2138   withval="$with_dot"
    2139   DOT=$withval
    2140 
    2141 fi;
    2142 
    2143 
    2144 # Check whether --with-ranlib or --without-ranlib was given.
    2145 if test "${with_ranlib+set}" = set; then
    2146   withval="$with_ranlib"
    2147   RANLIB=$withval
    2148 
    2149 fi;
    2150 
    2151 
    2152 # Check whether --with-ar or --without-ar was given.
    2153 if test "${with_ar+set}" = set; then
    2154   withval="$with_ar"
    2155   AR=$withval
    2156 
    2157 fi;
     3440# Check whether --with-dot was given.
     3441if test "${with_dot+set}" = set; then :
     3442  withval=$with_dot; DOT=$withval
     3443
     3444fi
     3445
     3446
     3447
     3448# Check whether --with-ranlib was given.
     3449if test "${with_ranlib+set}" = set; then :
     3450  withval=$with_ranlib; RANLIB=$withval
     3451
     3452fi
     3453
     3454
     3455
     3456# Check whether --with-ar was given.
     3457if test "${with_ar+set}" = set; then :
     3458  withval=$with_ar; AR=$withval
     3459
     3460fi
     3461
    21583462
    21593463ARFLAGS=r
    21603464
    2161 # Check whether --with-ar-flags or --without-ar-flags was given.
    2162 if test "${with_ar_flags+set}" = set; then
    2163   withval="$with_ar_flags"
    2164   ARFLAGS=$withval
    2165 
    2166 fi;
    2167 
    2168 
    2169 
    2170 # Check whether --with-ld or --without-ld was given.
    2171 if test "${with_ld+set}" = set; then
    2172   withval="$with_ld"
    2173   LD=$withval
    2174 
    2175 fi;
     3465# Check whether --with-ar-flags was given.
     3466if test "${with_ar_flags+set}" = set; then :
     3467  withval=$with_ar_flags; ARFLAGS=$withval
     3468
     3469fi
     3470
     3471
     3472
     3473
     3474# Check whether --with-ld was given.
     3475if test "${with_ld+set}" = set; then :
     3476  withval=$with_ld; LD=$withval
     3477
     3478fi
     3479
    21763480
    21773481LAUNCH="%MPQC% [-o %OUTPUT%] %INPUT%"
    21783482
    2179 # Check whether --with-launch or --without-launch was given.
    2180 if test "${with_launch+set}" = set; then
    2181   withval="$with_launch"
    2182   LAUNCH=$withval
    2183 
    2184 fi;
     3483# Check whether --with-launch was given.
     3484if test "${with_launch+set}" = set; then :
     3485  withval=$with_launch; LAUNCH=$withval
     3486
     3487fi
     3488
    21853489
    21863490
    21873491CCALAUNCH="%CCAFE% --ccafe-rc %INPUT% --ccafe-remap-stdio --ccafe-outputdir %OUTPUT%";
    21883492
    2189 # Check whether --with-cca-launch or --without-cca-launch was given.
    2190 if test "${with_cca_launch+set}" = set; then
    2191   withval="$with_cca_launch"
    2192   CCALAUNCH=$withval
    2193 
    2194 fi;
     3493# Check whether --with-cca-launch was given.
     3494if test "${with_cca_launch+set}" = set; then :
     3495  withval=$with_cca_launch; CCALAUNCH=$withval
     3496
     3497fi
     3498
    21953499
    21963500
     
    22013505fi
    22023506
    2203 # Check whether --with-sc-datadir or --without-sc-datadir was given.
    2204 if test "${with_sc_datadir+set}" = set; then
    2205   withval="$with_sc_datadir"
    2206   scdatadir=$withval
    2207 
    2208 fi;
    2209 
    2210 
    2211 
    2212 # Check whether --with-include or --without-include was given.
    2213 if test "${with_include+set}" = set; then
    2214   withval="$with_include"
    2215   EXTRAINCLUDE=$withval
     3507# Check whether --with-sc-datadir was given.
     3508if test "${with_sc_datadir+set}" = set; then :
     3509  withval=$with_sc_datadir; scdatadir=$withval
     3510
     3511fi
     3512
     3513
     3514
     3515
     3516# Check whether --with-include was given.
     3517if test "${with_include+set}" = set; then :
     3518  withval=$with_include; EXTRAINCLUDE=$withval
    22163519CPPFLAGS=$withval
    22173520echo Using extra include directories: $withval
    22183521
    2219 fi;
     3522fi
     3523
    22203524
    22213525template_instantiation=none
    22223526
    2223 # Check whether --with-template or --without-template was given.
    2224 if test "${with_template+set}" = set; then
    2225   withval="$with_template"
    2226   template_instantiation=$withval
     3527# Check whether --with-template was given.
     3528if test "${with_template+set}" = set; then :
     3529  withval=$with_template; template_instantiation=$withval
    22273530echo Using extra include directories: $withval
    22283531
    2229 fi;
     3532fi
     3533
    22303534
    22313535scincludedir=$includedir
    22323536
    2233 # Check whether --with-sc-includedir or --without-sc-includedir was given.
    2234 if test "${with_sc_includedir+set}" = set; then
    2235   withval="$with_sc_includedir"
    2236   scincludedir=$withval
    2237 
    2238 fi;
    2239 
    2240 
    2241 
    2242 # Check whether --with-libs or --without-libs was given.
    2243 if test "${with_libs+set}" = set; then
    2244   withval="$with_libs"
    2245   LIBS=$withval
     3537# Check whether --with-sc-includedir was given.
     3538if test "${with_sc_includedir+set}" = set; then :
     3539  withval=$with_sc_includedir; scincludedir=$withval
     3540
     3541fi
     3542
     3543
     3544
     3545
     3546# Check whether --with-libs was given.
     3547if test "${with_libs+set}" = set; then :
     3548  withval=$with_libs; LIBS=$withval
    22463549echo Using extra libraries: $withval
    22473550
    2248 fi;
     3551fi
     3552
    22493553
    22503554XTRA_FLIBS=
    22513555
    2252 # Check whether --with-extra-flibs or --without-extra-flibs was given.
    2253 if test "${with_extra_flibs+set}" = set; then
    2254   withval="$with_extra_flibs"
    2255   XTRA_FLIBS=$withval
     3556# Check whether --with-extra-flibs was given.
     3557if test "${with_extra_flibs+set}" = set; then :
     3558  withval=$with_extra_flibs; XTRA_FLIBS=$withval
    22563559echo Using extra FORTRAN libraries: $withval
    22573560
    2258 fi;
     3561fi
     3562
    22593563
    22603564have_flibs=no
    22613565
    2262 # Check whether --with-flibs or --without-flibs was given.
    2263 if test "${with_flibs+set}" = set; then
    2264   withval="$with_flibs"
    2265   FLIBS=$withval
     3566# Check whether --with-flibs was given.
     3567if test "${with_flibs+set}" = set; then :
     3568  withval=$with_flibs; FLIBS=$withval
    22663569have_flibs=yes
    22673570echo Using FORTRAN runtime libraries: $withval
    22683571
    2269 fi;
     3572fi
     3573
    22703574
    22713575LDFLAGS=
    22723576LIBDIRS=
    22733577
    2274 # Check whether --with-libdirs or --without-libdirs was given.
    2275 if test "${with_libdirs+set}" = set; then
    2276   withval="$with_libdirs"
    2277   LIBDIRS=$withval
     3578# Check whether --with-libdirs was given.
     3579if test "${with_libdirs+set}" = set; then :
     3580  withval=$with_libdirs; LIBDIRS=$withval
    22783581LDFLAGS=$withval
    22793582echo Using extra library directories: $withval
    22803583
    2281 fi;
    2282 
    2283 
    2284 # Check whether --with-cca-chem-config or --without-cca-chem-config was given.
    2285 if test "${with_cca_chem_config+set}" = set; then
    2286   withval="$with_cca_chem_config"
    2287 
     3584fi
     3585
     3586
     3587
     3588# Check whether --with-cca-chem-config was given.
     3589if test "${with_cca_chem_config+set}" = set; then :
     3590  withval=$with_cca_chem_config;
    22883591  CCA_CHEM_CONFIG=$withval
    22893592  echo Using cca-chem-config: $withval
     
    22943597    # Extract the first word of "cca-chem-config", so it can be a program name with args.
    22953598set dummy cca-chem-config; ac_word=$2
    2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2298 if test "${ac_cv_path_CCA_CHEM_CONFIG+set}" = set; then
    2299   echo $ECHO_N "(cached) $ECHO_C" >&6
     3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3600$as_echo_n "checking for $ac_word... " >&6; }
     3601if ${ac_cv_path_CCA_CHEM_CONFIG+:} false; then :
     3602  $as_echo_n "(cached) " >&6
    23003603else
    23013604  case $CCA_CHEM_CONFIG in
     
    23093612  IFS=$as_save_IFS
    23103613  test -z "$as_dir" && as_dir=.
    2311   for ac_exec_ext in '' $ac_executable_extensions; do
    2312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3614    for ac_exec_ext in '' $ac_executable_extensions; do
     3615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    23133616    ac_cv_path_CCA_CHEM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    2314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    23153618    break 2
    23163619  fi
    23173620done
    2318 done
     3621  done
     3622IFS=$as_save_IFS
    23193623
    23203624  test -z "$ac_cv_path_CCA_CHEM_CONFIG" && ac_cv_path_CCA_CHEM_CONFIG=""not-found""
     
    23233627fi
    23243628CCA_CHEM_CONFIG=$ac_cv_path_CCA_CHEM_CONFIG
    2325 
    23263629if test -n "$CCA_CHEM_CONFIG"; then
    2327   echo "$as_me:$LINENO: result: $CCA_CHEM_CONFIG" >&5
    2328 echo "${ECHO_T}$CCA_CHEM_CONFIG" >&6
    2329 else
    2330   echo "$as_me:$LINENO: result: no" >&5
    2331 echo "${ECHO_T}no" >&6
    2332 fi
     3630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCA_CHEM_CONFIG" >&5
     3631$as_echo "$CCA_CHEM_CONFIG" >&6; }
     3632else
     3633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3634$as_echo "no" >&6; }
     3635fi
     3636
    23333637
    23343638  fi
    23353639
    23363640
    2337 fi;
     3641fi
     3642
    23383643
    23393644
     
    23673672
    23683673
    2369 echo "$as_me:$LINENO: checking whether ln -s works" >&5
    2370 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
     3675$as_echo_n "checking whether ln -s works... " >&6; }
    23713676LN_S=$as_ln_s
    23723677if test "$LN_S" = "ln -s"; then
    2373   echo "$as_me:$LINENO: result: yes" >&5
    2374 echo "${ECHO_T}yes" >&6
    2375 else
    2376   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    2377 echo "${ECHO_T}no, using $LN_S" >&6
     3678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     3679$as_echo "yes" >&6; }
     3680else
     3681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
     3682$as_echo "no, using $LN_S" >&6; }
    23783683fi
    23793684
     
    23913696# OS/2's system install, which has a completely different semantic
    23923697# ./install, which can be erroneously created by make from ./install.sh.
    2393 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    2394 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     3698# Reject install programs that cannot install multiple files.
     3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
     3700$as_echo_n "checking for a BSD-compatible install... " >&6; }
    23953701if test -z "$INSTALL"; then
    2396 if test "${ac_cv_path_install+set}" = set; then
    2397   echo $ECHO_N "(cached) $ECHO_C" >&6
     3702if ${ac_cv_path_install+:} false; then :
     3703  $as_echo_n "(cached) " >&6
    23983704else
    23993705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    24023708  IFS=$as_save_IFS
    24033709  test -z "$as_dir" && as_dir=.
    2404   # Account for people who put trailing slashes in PATH elements.
    2405 case $as_dir/ in
    2406   ./ | .// | /cC/* | \
     3710    # Account for people who put trailing slashes in PATH elements.
     3711case $as_dir/ in #((
     3712  ./ | .// | /[cC]/* | \
    24073713  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    2408   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     3714  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
    24093715  /usr/ucb/* ) ;;
    24103716  *)
     
    24143720    for ac_prog in ginstall scoinst install; do
    24153721      for ac_exec_ext in '' $ac_executable_extensions; do
    2416         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     3722        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    24173723          if test $ac_prog = install &&
    24183724            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    24243730            :
    24253731          else
    2426             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    2427             break 3
     3732            rm -rf conftest.one conftest.two conftest.dir
     3733            echo one > conftest.one
     3734            echo two > conftest.two
     3735            mkdir conftest.dir
     3736            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
     3737              test -s conftest.one && test -s conftest.two &&
     3738              test -s conftest.dir/conftest.one &&
     3739              test -s conftest.dir/conftest.two
     3740            then
     3741              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     3742              break 3
     3743            fi
    24283744          fi
    24293745        fi
     
    24323748    ;;
    24333749esac
    2434 done
    2435 
     3750
     3751  done
     3752IFS=$as_save_IFS
     3753
     3754rm -rf conftest.one conftest.two conftest.dir
    24363755
    24373756fi
     
    24393758    INSTALL=$ac_cv_path_install
    24403759  else
    2441     # As a last resort, use the slow shell script.  We don't cache a
    2442     # path for INSTALL within a source directory, because that will
     3760    # As a last resort, use the slow shell script.  Don't cache a
     3761    # value for INSTALL within a source directory, because that will
    24433762    # break other packages using the cache if that directory is
    2444     # removed, or if the path is relative.
     3763    # removed, or if the value is a relative name.
    24453764    INSTALL=$ac_install_sh
    24463765  fi
    24473766fi
    2448 echo "$as_me:$LINENO: result: $INSTALL" >&5
    2449 echo "${ECHO_T}$INSTALL" >&6
     3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
     3768$as_echo "$INSTALL" >&6; }
    24503769
    24513770# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    24603779  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    24613780set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2462 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2464 if test "${ac_cv_prog_RANLIB+set}" = set; then
    2465   echo $ECHO_N "(cached) $ECHO_C" >&6
     3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3782$as_echo_n "checking for $ac_word... " >&6; }
     3783if ${ac_cv_prog_RANLIB+:} false; then :
     3784  $as_echo_n "(cached) " >&6
    24663785else
    24673786  if test -n "$RANLIB"; then
     
    24733792  IFS=$as_save_IFS
    24743793  test -z "$as_dir" && as_dir=.
    2475   for ac_exec_ext in '' $ac_executable_extensions; do
    2476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3794    for ac_exec_ext in '' $ac_executable_extensions; do
     3795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    24773796    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    24793798    break 2
    24803799  fi
    24813800done
    2482 done
     3801  done
     3802IFS=$as_save_IFS
    24833803
    24843804fi
     
    24863806RANLIB=$ac_cv_prog_RANLIB
    24873807if test -n "$RANLIB"; then
    2488   echo "$as_me:$LINENO: result: $RANLIB" >&5
    2489 echo "${ECHO_T}$RANLIB" >&6
    2490 else
    2491   echo "$as_me:$LINENO: result: no" >&5
    2492 echo "${ECHO_T}no" >&6
    2493 fi
     3808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     3809$as_echo "$RANLIB" >&6; }
     3810else
     3811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3812$as_echo "no" >&6; }
     3813fi
     3814
    24943815
    24953816fi
     
    24983819  # Extract the first word of "ranlib", so it can be a program name with args.
    24993820set dummy ranlib; ac_word=$2
    2500 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2502 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    2503   echo $ECHO_N "(cached) $ECHO_C" >&6
     3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3822$as_echo_n "checking for $ac_word... " >&6; }
     3823if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
     3824  $as_echo_n "(cached) " >&6
    25043825else
    25053826  if test -n "$ac_ct_RANLIB"; then
     
    25113832  IFS=$as_save_IFS
    25123833  test -z "$as_dir" && as_dir=.
    2513   for ac_exec_ext in '' $ac_executable_extensions; do
    2514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3834    for ac_exec_ext in '' $ac_executable_extensions; do
     3835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    25153836    ac_cv_prog_ac_ct_RANLIB="ranlib"
    2516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    25173838    break 2
    25183839  fi
    25193840done
    2520 done
    2521 
    2522   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     3841  done
     3842IFS=$as_save_IFS
     3843
    25233844fi
    25243845fi
    25253846ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    25263847if test -n "$ac_ct_RANLIB"; then
    2527   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    2528 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    2529 else
    2530   echo "$as_me:$LINENO: result: no" >&5
    2531 echo "${ECHO_T}no" >&6
    2532 fi
    2533 
    2534   RANLIB=$ac_ct_RANLIB
     3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     3849$as_echo "$ac_ct_RANLIB" >&6; }
     3850else
     3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3852$as_echo "no" >&6; }
     3853fi
     3854
     3855  if test "x$ac_ct_RANLIB" = x; then
     3856    RANLIB=":"
     3857  else
     3858    case $cross_compiling:$ac_tool_warned in
     3859yes:)
     3860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3862ac_tool_warned=yes ;;
     3863esac
     3864    RANLIB=$ac_ct_RANLIB
     3865  fi
    25353866else
    25363867  RANLIB="$ac_cv_prog_RANLIB"
     
    25453876  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    25463877set dummy ${ac_tool_prefix}gcc; ac_word=$2
    2547 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2549 if test "${ac_cv_prog_CC+set}" = set; then
    2550   echo $ECHO_N "(cached) $ECHO_C" >&6
     3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3879$as_echo_n "checking for $ac_word... " >&6; }
     3880if ${ac_cv_prog_CC+:} false; then :
     3881  $as_echo_n "(cached) " >&6
    25513882else
    25523883  if test -n "$CC"; then
     
    25583889  IFS=$as_save_IFS
    25593890  test -z "$as_dir" && as_dir=.
    2560   for ac_exec_ext in '' $ac_executable_extensions; do
    2561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3891    for ac_exec_ext in '' $ac_executable_extensions; do
     3892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    25623893    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    2563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    25643895    break 2
    25653896  fi
    25663897done
    2567 done
     3898  done
     3899IFS=$as_save_IFS
    25683900
    25693901fi
     
    25713903CC=$ac_cv_prog_CC
    25723904if test -n "$CC"; then
    2573   echo "$as_me:$LINENO: result: $CC" >&5
    2574 echo "${ECHO_T}$CC" >&6
    2575 else
    2576   echo "$as_me:$LINENO: result: no" >&5
    2577 echo "${ECHO_T}no" >&6
    2578 fi
     3905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3906$as_echo "$CC" >&6; }
     3907else
     3908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3909$as_echo "no" >&6; }
     3910fi
     3911
    25793912
    25803913fi
     
    25833916  # Extract the first word of "gcc", so it can be a program name with args.
    25843917set dummy gcc; ac_word=$2
    2585 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2588   echo $ECHO_N "(cached) $ECHO_C" >&6
     3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3919$as_echo_n "checking for $ac_word... " >&6; }
     3920if ${ac_cv_prog_ac_ct_CC+:} false; then :
     3921  $as_echo_n "(cached) " >&6
    25893922else
    25903923  if test -n "$ac_ct_CC"; then
     
    25963929  IFS=$as_save_IFS
    25973930  test -z "$as_dir" && as_dir=.
    2598   for ac_exec_ext in '' $ac_executable_extensions; do
    2599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3931    for ac_exec_ext in '' $ac_executable_extensions; do
     3932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    26003933    ac_cv_prog_ac_ct_CC="gcc"
    2601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    26023935    break 2
    26033936  fi
    26043937done
    2605 done
     3938  done
     3939IFS=$as_save_IFS
    26063940
    26073941fi
     
    26093943ac_ct_CC=$ac_cv_prog_ac_ct_CC
    26103944if test -n "$ac_ct_CC"; then
    2611   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2612 echo "${ECHO_T}$ac_ct_CC" >&6
    2613 else
    2614   echo "$as_me:$LINENO: result: no" >&5
    2615 echo "${ECHO_T}no" >&6
    2616 fi
    2617 
    2618   CC=$ac_ct_CC
     3945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     3946$as_echo "$ac_ct_CC" >&6; }
     3947else
     3948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3949$as_echo "no" >&6; }
     3950fi
     3951
     3952  if test "x$ac_ct_CC" = x; then
     3953    CC=""
     3954  else
     3955    case $cross_compiling:$ac_tool_warned in
     3956yes:)
     3957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     3958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     3959ac_tool_warned=yes ;;
     3960esac
     3961    CC=$ac_ct_CC
     3962  fi
    26193963else
    26203964  CC="$ac_cv_prog_CC"
     
    26223966
    26233967if test -z "$CC"; then
    2624   if test -n "$ac_tool_prefix"; then
    2625   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     3968          if test -n "$ac_tool_prefix"; then
     3969    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    26263970set dummy ${ac_tool_prefix}cc; ac_word=$2
    2627 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2629 if test "${ac_cv_prog_CC+set}" = set; then
    2630   echo $ECHO_N "(cached) $ECHO_C" >&6
     3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3972$as_echo_n "checking for $ac_word... " >&6; }
     3973if ${ac_cv_prog_CC+:} false; then :
     3974  $as_echo_n "(cached) " >&6
    26313975else
    26323976  if test -n "$CC"; then
     
    26383982  IFS=$as_save_IFS
    26393983  test -z "$as_dir" && as_dir=.
    2640   for ac_exec_ext in '' $ac_executable_extensions; do
    2641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3984    for ac_exec_ext in '' $ac_executable_extensions; do
     3985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    26423986    ac_cv_prog_CC="${ac_tool_prefix}cc"
    2643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    26443988    break 2
    26453989  fi
    26463990done
    2647 done
     3991  done
     3992IFS=$as_save_IFS
    26483993
    26493994fi
     
    26513996CC=$ac_cv_prog_CC
    26523997if test -n "$CC"; then
    2653   echo "$as_me:$LINENO: result: $CC" >&5
    2654 echo "${ECHO_T}$CC" >&6
    2655 else
    2656   echo "$as_me:$LINENO: result: no" >&5
    2657 echo "${ECHO_T}no" >&6
    2658 fi
    2659 
    2660 fi
    2661 if test -z "$ac_cv_prog_CC"; then
    2662   ac_ct_CC=$CC
    2663   # Extract the first word of "cc", so it can be a program name with args.
    2664 set dummy cc; ac_word=$2
    2665 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2668   echo $ECHO_N "(cached) $ECHO_C" >&6
    2669 else
    2670   if test -n "$ac_ct_CC"; then
    2671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2672 else
    2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2674 for as_dir in $PATH
    2675 do
    2676   IFS=$as_save_IFS
    2677   test -z "$as_dir" && as_dir=.
    2678   for ac_exec_ext in '' $ac_executable_extensions; do
    2679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2680     ac_cv_prog_ac_ct_CC="cc"
    2681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2682     break 2
     3998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3999$as_echo "$CC" >&6; }
     4000else
     4001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4002$as_echo "no" >&6; }
     4003fi
     4004
     4005
    26834006  fi
    2684 done
    2685 done
    2686 
    2687 fi
    2688 fi
    2689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2690 if test -n "$ac_ct_CC"; then
    2691   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2692 echo "${ECHO_T}$ac_ct_CC" >&6
    2693 else
    2694   echo "$as_me:$LINENO: result: no" >&5
    2695 echo "${ECHO_T}no" >&6
    2696 fi
    2697 
    2698   CC=$ac_ct_CC
    2699 else
    2700   CC="$ac_cv_prog_CC"
    2701 fi
    2702 
    27034007fi
    27044008if test -z "$CC"; then
    27054009  # Extract the first word of "cc", so it can be a program name with args.
    27064010set dummy cc; ac_word=$2
    2707 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2709 if test "${ac_cv_prog_CC+set}" = set; then
    2710   echo $ECHO_N "(cached) $ECHO_C" >&6
     4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4012$as_echo_n "checking for $ac_word... " >&6; }
     4013if ${ac_cv_prog_CC+:} false; then :
     4014  $as_echo_n "(cached) " >&6
    27114015else
    27124016  if test -n "$CC"; then
     
    27194023  IFS=$as_save_IFS
    27204024  test -z "$as_dir" && as_dir=.
    2721   for ac_exec_ext in '' $ac_executable_extensions; do
    2722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4025    for ac_exec_ext in '' $ac_executable_extensions; do
     4026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    27234027    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    27244028       ac_prog_rejected=yes
     
    27264030     fi
    27274031    ac_cv_prog_CC="cc"
    2728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    27294033    break 2
    27304034  fi
    27314035done
    2732 done
     4036  done
     4037IFS=$as_save_IFS
    27334038
    27344039if test $ac_prog_rejected = yes; then
     
    27484053CC=$ac_cv_prog_CC
    27494054if test -n "$CC"; then
    2750   echo "$as_me:$LINENO: result: $CC" >&5
    2751 echo "${ECHO_T}$CC" >&6
    2752 else
    2753   echo "$as_me:$LINENO: result: no" >&5
    2754 echo "${ECHO_T}no" >&6
    2755 fi
     4055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     4056$as_echo "$CC" >&6; }
     4057else
     4058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4059$as_echo "no" >&6; }
     4060fi
     4061
    27564062
    27574063fi
    27584064if test -z "$CC"; then
    27594065  if test -n "$ac_tool_prefix"; then
    2760   for ac_prog in cl
     4066  for ac_prog in cl.exe
    27614067  do
    27624068    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    27634069set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2764 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2766 if test "${ac_cv_prog_CC+set}" = set; then
    2767   echo $ECHO_N "(cached) $ECHO_C" >&6
     4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4071$as_echo_n "checking for $ac_word... " >&6; }
     4072if ${ac_cv_prog_CC+:} false; then :
     4073  $as_echo_n "(cached) " >&6
    27684074else
    27694075  if test -n "$CC"; then
     
    27754081  IFS=$as_save_IFS
    27764082  test -z "$as_dir" && as_dir=.
    2777   for ac_exec_ext in '' $ac_executable_extensions; do
    2778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4083    for ac_exec_ext in '' $ac_executable_extensions; do
     4084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    27794085    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    27814087    break 2
    27824088  fi
    27834089done
    2784 done
     4090  done
     4091IFS=$as_save_IFS
    27854092
    27864093fi
     
    27884095CC=$ac_cv_prog_CC
    27894096if test -n "$CC"; then
    2790   echo "$as_me:$LINENO: result: $CC" >&5
    2791 echo "${ECHO_T}$CC" >&6
    2792 else
    2793   echo "$as_me:$LINENO: result: no" >&5
    2794 echo "${ECHO_T}no" >&6
    2795 fi
     4097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     4098$as_echo "$CC" >&6; }
     4099else
     4100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4101$as_echo "no" >&6; }
     4102fi
     4103
    27964104
    27974105    test -n "$CC" && break
     
    28004108if test -z "$CC"; then
    28014109  ac_ct_CC=$CC
    2802   for ac_prog in cl
     4110  for ac_prog in cl.exe
    28034111do
    28044112  # Extract the first word of "$ac_prog", so it can be a program name with args.
    28054113set dummy $ac_prog; ac_word=$2
    2806 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2809   echo $ECHO_N "(cached) $ECHO_C" >&6
     4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4115$as_echo_n "checking for $ac_word... " >&6; }
     4116if ${ac_cv_prog_ac_ct_CC+:} false; then :
     4117  $as_echo_n "(cached) " >&6
    28104118else
    28114119  if test -n "$ac_ct_CC"; then
     
    28174125  IFS=$as_save_IFS
    28184126  test -z "$as_dir" && as_dir=.
    2819   for ac_exec_ext in '' $ac_executable_extensions; do
    2820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4127    for ac_exec_ext in '' $ac_executable_extensions; do
     4128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    28214129    ac_cv_prog_ac_ct_CC="$ac_prog"
    2822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    28234131    break 2
    28244132  fi
    28254133done
    2826 done
     4134  done
     4135IFS=$as_save_IFS
    28274136
    28284137fi
     
    28304139ac_ct_CC=$ac_cv_prog_ac_ct_CC
    28314140if test -n "$ac_ct_CC"; then
    2832   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2833 echo "${ECHO_T}$ac_ct_CC" >&6
    2834 else
    2835   echo "$as_me:$LINENO: result: no" >&5
    2836 echo "${ECHO_T}no" >&6
    2837 fi
     4141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     4142$as_echo "$ac_ct_CC" >&6; }
     4143else
     4144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4145$as_echo "no" >&6; }
     4146fi
     4147
    28384148
    28394149  test -n "$ac_ct_CC" && break
    28404150done
    28414151
    2842   CC=$ac_ct_CC
    2843 fi
    2844 
    2845 fi
    2846 
    2847 
    2848 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    2849 See \`config.log' for more details." >&5
    2850 echo "$as_me: error: no acceptable C compiler found in \$PATH
    2851 See \`config.log' for more details." >&2;}
    2852    { (exit 1); exit 1; }; }
     4152  if test "x$ac_ct_CC" = x; then
     4153    CC=""
     4154  else
     4155    case $cross_compiling:$ac_tool_warned in
     4156yes:)
     4157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     4158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     4159ac_tool_warned=yes ;;
     4160esac
     4161    CC=$ac_ct_CC
     4162  fi
     4163fi
     4164
     4165fi
     4166
     4167
     4168test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4170as_fn_error $? "no acceptable C compiler found in \$PATH
     4171See \`config.log' for more details" "$LINENO" 5; }
    28534172
    28544173# Provide some information about the compiler.
    2855 echo "$as_me:$LINENO:" \
    2856      "checking for C compiler version" >&5
    2857 ac_compiler=`set X $ac_compile; echo $2`
    2858 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    2859   (eval $ac_compiler --version </dev/null >&5) 2>&5
     4174$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     4175set X $ac_compile
     4176ac_compiler=$2
     4177for ac_option in --version -v -V -qversion; do
     4178  { { ac_try="$ac_compiler $ac_option >&5"
     4179case "(($ac_try" in
     4180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4181  *) ac_try_echo=$ac_try;;
     4182esac
     4183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     4184$as_echo "$ac_try_echo"; } >&5
     4185  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    28604186  ac_status=$?
    2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2862   (exit $ac_status); }
    2863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    2864   (eval $ac_compiler -v </dev/null >&5) 2>&5
    2865   ac_status=$?
    2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2867   (exit $ac_status); }
    2868 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    2869   (eval $ac_compiler -V </dev/null >&5) 2>&5
    2870   ac_status=$?
    2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2872   (exit $ac_status); }
    2873 
    2874 cat >conftest.$ac_ext <<_ACEOF
    2875 /* confdefs.h.  */
    2876 _ACEOF
    2877 cat confdefs.h >>conftest.$ac_ext
    2878 cat >>conftest.$ac_ext <<_ACEOF
     4187  if test -s conftest.err; then
     4188    sed '10a\
     4189... rest of stderr output deleted ...
     4190         10q' conftest.err >conftest.er1
     4191    cat conftest.er1 >&5
     4192  fi
     4193  rm -f conftest.er1 conftest.err
     4194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4195  test $ac_status = 0; }
     4196done
     4197
     4198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    28794199/* end confdefs.h.  */
    28804200
     
    28884208_ACEOF
    28894209ac_clean_files_save=$ac_clean_files
    2890 ac_clean_files="$ac_clean_files a.out a.exe b.out"
     4210ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    28914211# Try to create an executable without -o first, disregard a.out.
    28924212# It will help us diagnose broken compilers, and finding out an intuition
    28934213# of exeext.
    2894 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    2895 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    2896 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    2897 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
    2898   (eval $ac_link_default) 2>&5
     4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
     4215$as_echo_n "checking whether the C compiler works... " >&6; }
     4216ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     4217
     4218# The possible output files:
     4219ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     4220
     4221ac_rmfiles=
     4222for ac_file in $ac_files
     4223do
     4224  case $ac_file in
     4225    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     4226    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     4227  esac
     4228done
     4229rm -f $ac_rmfiles
     4230
     4231if { { ac_try="$ac_link_default"
     4232case "(($ac_try" in
     4233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4234  *) ac_try_echo=$ac_try;;
     4235esac
     4236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     4237$as_echo "$ac_try_echo"; } >&5
     4238  (eval "$ac_link_default") 2>&5
    28994239  ac_status=$?
    2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2901   (exit $ac_status); }; then
    2902   # Find the output, starting from the most likely.  This scheme is
    2903 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    2904 # resort.
    2905 
    2906 # Be careful to initialize this variable, since it used to be cached.
    2907 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
    2908 ac_cv_exeext=
    2909 # b.out is created by i960 compilers.
    2910 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     4240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4241  test $ac_status = 0; }; then :
     4242  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     4243# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     4244# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     4245# so that the user can short-circuit this test for compilers unknown to
     4246# Autoconf.
     4247for ac_file in $ac_files ''
    29114248do
    29124249  test -f "$ac_file" || continue
    29134250  case $ac_file in
    2914     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    2915         ;;
    2916     conftest.$ac_ext )
    2917         # This is the source file.
     4251    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    29184252        ;;
    29194253    [ab].out )
     
    29224256        break;;
    29234257    *.* )
    2924         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2925         # FIXME: I believe we export ac_cv_exeext for Libtool,
    2926         # but it would be cool to find out if it's true.  Does anybody
    2927         # maintain Libtool? --akim.
    2928         export ac_cv_exeext
     4258        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     4259        then :; else
     4260           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     4261        fi
     4262        # We set ac_cv_exeext here because the later test for it is not
     4263        # safe: cross compilers may not add the suffix if given an `-o'
     4264        # argument, so we may need to know it at that point already.
     4265        # Even if this section looks crufty: it has the advantage of
     4266        # actually working.
    29294267        break;;
    29304268    * )
     
    29324270  esac
    29334271done
    2934 else
    2935   echo "$as_me: failed program was:" >&5
     4272test "$ac_cv_exeext" = no && ac_cv_exeext=
     4273
     4274else
     4275  ac_file=''
     4276fi
     4277if test -z "$ac_file"; then :
     4278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4279$as_echo "no" >&6; }
     4280$as_echo "$as_me: failed program was:" >&5
    29364281sed 's/^/| /' conftest.$ac_ext >&5
    29374282
    2938 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
    2939 See \`config.log' for more details." >&5
    2940 echo "$as_me: error: C compiler cannot create executables
    2941 See \`config.log' for more details." >&2;}
    2942    { (exit 77); exit 77; }; }
    2943 fi
    2944 
     4283{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4285as_fn_error 77 "C compiler cannot create executables
     4286See \`config.log' for more details" "$LINENO" 5; }
     4287else
     4288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     4289$as_echo "yes" >&6; }
     4290fi
     4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
     4292$as_echo_n "checking for C compiler default output file name... " >&6; }
     4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     4294$as_echo "$ac_file" >&6; }
    29454295ac_exeext=$ac_cv_exeext
    2946 echo "$as_me:$LINENO: result: $ac_file" >&5
    2947 echo "${ECHO_T}$ac_file" >&6
    2948 
    2949 # Check the compiler produces executables we can run.  If not, either
    2950 # the compiler is broken, or we cross compile.
    2951 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    2952 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    2953 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    2954 # If not cross compiling, check that we can run a simple program.
    2955 if test "$cross_compiling" != yes; then
    2956   if { ac_try='./$ac_file'
    2957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2958   (eval $ac_try) 2>&5
     4296
     4297rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
     4298ac_clean_files=$ac_clean_files_save
     4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     4300$as_echo_n "checking for suffix of executables... " >&6; }
     4301if { { ac_try="$ac_link"
     4302case "(($ac_try" in
     4303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4304  *) ac_try_echo=$ac_try;;
     4305esac
     4306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     4307$as_echo "$ac_try_echo"; } >&5
     4308  (eval "$ac_link") 2>&5
    29594309  ac_status=$?
    2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2961   (exit $ac_status); }; }; then
    2962     cross_compiling=no
    2963   else
    2964     if test "$cross_compiling" = maybe; then
    2965         cross_compiling=yes
    2966     else
    2967         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    2968 If you meant to cross compile, use \`--host'.
    2969 See \`config.log' for more details." >&5
    2970 echo "$as_me: error: cannot run C compiled programs.
    2971 If you meant to cross compile, use \`--host'.
    2972 See \`config.log' for more details." >&2;}
    2973    { (exit 1); exit 1; }; }
    2974     fi
    2975   fi
    2976 fi
    2977 echo "$as_me:$LINENO: result: yes" >&5
    2978 echo "${ECHO_T}yes" >&6
    2979 
    2980 rm -f a.out a.exe conftest$ac_cv_exeext b.out
    2981 ac_clean_files=$ac_clean_files_save
    2982 # Check the compiler produces executables we can run.  If not, either
    2983 # the compiler is broken, or we cross compile.
    2984 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    2985 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    2986 echo "$as_me:$LINENO: result: $cross_compiling" >&5
    2987 echo "${ECHO_T}$cross_compiling" >&6
    2988 
    2989 echo "$as_me:$LINENO: checking for suffix of executables" >&5
    2990 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
    2991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2992   (eval $ac_link) 2>&5
    2993   ac_status=$?
    2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2995   (exit $ac_status); }; then
     4310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4311  test $ac_status = 0; }; then :
    29964312  # If both `conftest.exe' and `conftest' are `present' (well, observable)
    29974313# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     
    30014317  test -f "$ac_file" || continue
    30024318  case $ac_file in
    3003     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     4319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    30044320    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    3005           export ac_cv_exeext
    30064321          break;;
    30074322    * ) break;;
     
    30094324done
    30104325else
    3011   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    3012 See \`config.log' for more details." >&5
    3013 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    3014 See \`config.log' for more details." >&2;}
    3015    { (exit 1); exit 1; }; }
    3016 fi
    3017 
    3018 rm -f conftest$ac_cv_exeext
    3019 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    3020 echo "${ECHO_T}$ac_cv_exeext" >&6
     4326  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4328as_fn_error $? "cannot compute suffix of executables: cannot compile and link
     4329See \`config.log' for more details" "$LINENO" 5; }
     4330fi
     4331rm -f conftest conftest$ac_cv_exeext
     4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     4333$as_echo "$ac_cv_exeext" >&6; }
    30214334
    30224335rm -f conftest.$ac_ext
    30234336EXEEXT=$ac_cv_exeext
    30244337ac_exeext=$EXEEXT
    3025 echo "$as_me:$LINENO: checking for suffix of object files" >&5
    3026 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    3027 if test "${ac_cv_objext+set}" = set; then
    3028   echo $ECHO_N "(cached) $ECHO_C" >&6
    3029 else
    3030   cat >conftest.$ac_ext <<_ACEOF
    3031 /* confdefs.h.  */
     4338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4339/* end confdefs.h.  */
     4340#include <stdio.h>
     4341int
     4342main ()
     4343{
     4344FILE *f = fopen ("conftest.out", "w");
     4345 return ferror (f) || fclose (f) != 0;
     4346
     4347  ;
     4348  return 0;
     4349}
    30324350_ACEOF
    3033 cat confdefs.h >>conftest.$ac_ext
    3034 cat >>conftest.$ac_ext <<_ACEOF
     4351ac_clean_files="$ac_clean_files conftest.out"
     4352# Check that the compiler produces executables we can run.  If not, either
     4353# the compiler is broken, or we cross compile.
     4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     4355$as_echo_n "checking whether we are cross compiling... " >&6; }
     4356if test "$cross_compiling" != yes; then
     4357  { { ac_try="$ac_link"
     4358case "(($ac_try" in
     4359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4360  *) ac_try_echo=$ac_try;;
     4361esac
     4362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     4363$as_echo "$ac_try_echo"; } >&5
     4364  (eval "$ac_link") 2>&5
     4365  ac_status=$?
     4366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4367  test $ac_status = 0; }
     4368  if { ac_try='./conftest$ac_cv_exeext'
     4369  { { case "(($ac_try" in
     4370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4371  *) ac_try_echo=$ac_try;;
     4372esac
     4373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     4374$as_echo "$ac_try_echo"; } >&5
     4375  (eval "$ac_try") 2>&5
     4376  ac_status=$?
     4377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4378  test $ac_status = 0; }; }; then
     4379    cross_compiling=no
     4380  else
     4381    if test "$cross_compiling" = maybe; then
     4382        cross_compiling=yes
     4383    else
     4384        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4386as_fn_error $? "cannot run C compiled programs.
     4387If you meant to cross compile, use \`--host'.
     4388See \`config.log' for more details" "$LINENO" 5; }
     4389    fi
     4390  fi
     4391fi
     4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     4393$as_echo "$cross_compiling" >&6; }
     4394
     4395rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
     4396ac_clean_files=$ac_clean_files_save
     4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
     4398$as_echo_n "checking for suffix of object files... " >&6; }
     4399if ${ac_cv_objext+:} false; then :
     4400  $as_echo_n "(cached) " >&6
     4401else
     4402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    30354403/* end confdefs.h.  */
    30364404
     
    30444412_ACEOF
    30454413rm -f conftest.o conftest.obj
    3046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3047   (eval $ac_compile) 2>&5
     4414if { { ac_try="$ac_compile"
     4415case "(($ac_try" in
     4416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4417  *) ac_try_echo=$ac_try;;
     4418esac
     4419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     4420$as_echo "$ac_try_echo"; } >&5
     4421  (eval "$ac_compile") 2>&5
    30484422  ac_status=$?
    3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3050   (exit $ac_status); }; then
    3051   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     4423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4424  test $ac_status = 0; }; then :
     4425  for ac_file in conftest.o conftest.obj conftest.*; do
     4426  test -f "$ac_file" || continue;
    30524427  case $ac_file in
    3053     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     4428    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    30544429    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    30554430       break;;
     
    30574432done
    30584433else
    3059   echo "$as_me: failed program was:" >&5
     4434  $as_echo "$as_me: failed program was:" >&5
    30604435sed 's/^/| /' conftest.$ac_ext >&5
    30614436
    3062 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    3063 See \`config.log' for more details." >&5
    3064 echo "$as_me: error: cannot compute suffix of object files: cannot compile
    3065 See \`config.log' for more details." >&2;}
    3066    { (exit 1); exit 1; }; }
    3067 fi
    3068 
     4437{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     4438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     4439as_fn_error $? "cannot compute suffix of object files: cannot compile
     4440See \`config.log' for more details" "$LINENO" 5; }
     4441fi
    30694442rm -f conftest.$ac_cv_objext conftest.$ac_ext
    30704443fi
    3071 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    3072 echo "${ECHO_T}$ac_cv_objext" >&6
     4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     4445$as_echo "$ac_cv_objext" >&6; }
    30734446OBJEXT=$ac_cv_objext
    30744447ac_objext=$OBJEXT
    3075 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    3076 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    3077 if test "${ac_cv_c_compiler_gnu+set}" = set; then
    3078   echo $ECHO_N "(cached) $ECHO_C" >&6
    3079 else
    3080   cat >conftest.$ac_ext <<_ACEOF
    3081 /* confdefs.h.  */
    3082 _ACEOF
    3083 cat confdefs.h >>conftest.$ac_ext
    3084 cat >>conftest.$ac_ext <<_ACEOF
     4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     4449$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
     4450if ${ac_cv_c_compiler_gnu+:} false; then :
     4451  $as_echo_n "(cached) " >&6
     4452else
     4453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    30854454/* end confdefs.h.  */
    30864455
     
    30964465}
    30974466_ACEOF
    3098 rm -f conftest.$ac_objext
    3099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3100   (eval $ac_compile) 2>conftest.er1
    3101   ac_status=$?
    3102   grep -v '^ *+' conftest.er1 >conftest.err
    3103   rm -f conftest.er1
    3104   cat conftest.err >&5
    3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3106   (exit $ac_status); } &&
    3107          { ac_try='test -z "$ac_c_werror_flag"
    3108                          || test ! -s conftest.err'
    3109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3110   (eval $ac_try) 2>&5
    3111   ac_status=$?
    3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3113   (exit $ac_status); }; } &&
    3114          { ac_try='test -s conftest.$ac_objext'
    3115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3116   (eval $ac_try) 2>&5
    3117   ac_status=$?
    3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3119   (exit $ac_status); }; }; then
     4467if ac_fn_c_try_compile "$LINENO"; then :
    31204468  ac_compiler_gnu=yes
    31214469else
    3122   echo "$as_me: failed program was:" >&5
    3123 sed 's/^/| /' conftest.$ac_ext >&5
    3124 
    3125 ac_compiler_gnu=no
    3126 fi
    3127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4470  ac_compiler_gnu=no
     4471fi
     4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    31284473ac_cv_c_compiler_gnu=$ac_compiler_gnu
    31294474
    31304475fi
    3131 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    3132 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    3133 GCC=`test $ac_compiler_gnu = yes && echo yes`
     4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     4477$as_echo "$ac_cv_c_compiler_gnu" >&6; }
     4478if test $ac_compiler_gnu = yes; then
     4479  GCC=yes
     4480else
     4481  GCC=
     4482fi
    31344483ac_test_CFLAGS=${CFLAGS+set}
    31354484ac_save_CFLAGS=$CFLAGS
    3136 CFLAGS="-g"
    3137 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    3138 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    3139 if test "${ac_cv_prog_cc_g+set}" = set; then
    3140   echo $ECHO_N "(cached) $ECHO_C" >&6
    3141 else
    3142   cat >conftest.$ac_ext <<_ACEOF
    3143 /* confdefs.h.  */
    3144 _ACEOF
    3145 cat confdefs.h >>conftest.$ac_ext
    3146 cat >>conftest.$ac_ext <<_ACEOF
     4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     4486$as_echo_n "checking whether $CC accepts -g... " >&6; }
     4487if ${ac_cv_prog_cc_g+:} false; then :
     4488  $as_echo_n "(cached) " >&6
     4489else
     4490  ac_save_c_werror_flag=$ac_c_werror_flag
     4491   ac_c_werror_flag=yes
     4492   ac_cv_prog_cc_g=no
     4493   CFLAGS="-g"
     4494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    31474495/* end confdefs.h.  */
    31484496
     
    31554503}
    31564504_ACEOF
    3157 rm -f conftest.$ac_objext
    3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3159   (eval $ac_compile) 2>conftest.er1
    3160   ac_status=$?
    3161   grep -v '^ *+' conftest.er1 >conftest.err
    3162   rm -f conftest.er1
    3163   cat conftest.err >&5
    3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3165   (exit $ac_status); } &&
    3166          { ac_try='test -z "$ac_c_werror_flag"
    3167                          || test ! -s conftest.err'
    3168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3169   (eval $ac_try) 2>&5
    3170   ac_status=$?
    3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3172   (exit $ac_status); }; } &&
    3173          { ac_try='test -s conftest.$ac_objext'
    3174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3175   (eval $ac_try) 2>&5
    3176   ac_status=$?
    3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3178   (exit $ac_status); }; }; then
     4505if ac_fn_c_try_compile "$LINENO"; then :
    31794506  ac_cv_prog_cc_g=yes
    31804507else
    3181   echo "$as_me: failed program was:" >&5
    3182 sed 's/^/| /' conftest.$ac_ext >&5
    3183 
    3184 ac_cv_prog_cc_g=no
    3185 fi
    3186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3187 fi
    3188 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    3189 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     4508  CFLAGS=""
     4509      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4510/* end confdefs.h.  */
     4511
     4512int
     4513main ()
     4514{
     4515
     4516  ;
     4517  return 0;
     4518}
     4519_ACEOF
     4520if ac_fn_c_try_compile "$LINENO"; then :
     4521
     4522else
     4523  ac_c_werror_flag=$ac_save_c_werror_flag
     4524         CFLAGS="-g"
     4525         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4526/* end confdefs.h.  */
     4527
     4528int
     4529main ()
     4530{
     4531
     4532  ;
     4533  return 0;
     4534}
     4535_ACEOF
     4536if ac_fn_c_try_compile "$LINENO"; then :
     4537  ac_cv_prog_cc_g=yes
     4538fi
     4539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4540fi
     4541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4542fi
     4543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4544   ac_c_werror_flag=$ac_save_c_werror_flag
     4545fi
     4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     4547$as_echo "$ac_cv_prog_cc_g" >&6; }
    31904548if test "$ac_test_CFLAGS" = set; then
    31914549  CFLAGS=$ac_save_CFLAGS
     
    32034561  fi
    32044562fi
    3205 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
    3206 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    3207 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    3208   echo $ECHO_N "(cached) $ECHO_C" >&6
    3209 else
    3210   ac_cv_prog_cc_stdc=no
     4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     4564$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
     4565if ${ac_cv_prog_cc_c89+:} false; then :
     4566  $as_echo_n "(cached) " >&6
     4567else
     4568  ac_cv_prog_cc_c89=no
    32114569ac_save_CC=$CC
    3212 cat >conftest.$ac_ext <<_ACEOF
    3213 /* confdefs.h.  */
    3214 _ACEOF
    3215 cat confdefs.h >>conftest.$ac_ext
    3216 cat >>conftest.$ac_ext <<_ACEOF
     4570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    32174571/* end confdefs.h.  */
    32184572#include <stdarg.h>
    32194573#include <stdio.h>
    3220 #include <sys/types.h>
    3221 #include <sys/stat.h>
     4574struct stat;
    32224575/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    32234576struct buf { int x; };
     
    32424595   function prototypes and stuff, but not '\xHH' hex character constants.
    32434596   These don't provoke an error unfortunately, instead are silently treated
    3244    as 'x'.  The following induces an error, until -std1 is added to get
     4597   as 'x'.  The following induces an error, until -std is added to get
    32454598   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    32464599   array size at least.  It's necessary to write '\x00'==0 to get something
    3247    that's true only with -std1.  */
     4600   that's true only with -std.  */
    32484601int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     4602
     4603/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     4604   inside strings and character constants.  */
     4605#define FOO(x) 'x'
     4606int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    32494607
    32504608int test (int i, double x);
     
    32624620}
    32634621_ACEOF
    3264 # Don't try gcc -ansi; that turns off useful extensions and
    3265 # breaks some systems' header files.
    3266 # AIX                   -qlanglvl=ansi
    3267 # Ultrix and OSF/1      -std1
    3268 # HP-UX 10.20 and later -Ae
    3269 # HP-UX older versions  -Aa -D_HPUX_SOURCE
    3270 # SVR4                  -Xc -D__EXTENSIONS__
    3271 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     4622for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     4623        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    32724624do
    32734625  CC="$ac_save_CC $ac_arg"
    3274   rm -f conftest.$ac_objext
    3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3276   (eval $ac_compile) 2>conftest.er1
    3277   ac_status=$?
    3278   grep -v '^ *+' conftest.er1 >conftest.err
    3279   rm -f conftest.er1
    3280   cat conftest.err >&5
    3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3282   (exit $ac_status); } &&
    3283          { ac_try='test -z "$ac_c_werror_flag"
    3284                          || test ! -s conftest.err'
    3285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3286   (eval $ac_try) 2>&5
    3287   ac_status=$?
    3288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3289   (exit $ac_status); }; } &&
    3290          { ac_try='test -s conftest.$ac_objext'
    3291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3292   (eval $ac_try) 2>&5
    3293   ac_status=$?
    3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3295   (exit $ac_status); }; }; then
    3296   ac_cv_prog_cc_stdc=$ac_arg
    3297 break
    3298 else
    3299   echo "$as_me: failed program was:" >&5
    3300 sed 's/^/| /' conftest.$ac_ext >&5
    3301 
    3302 fi
    3303 rm -f conftest.err conftest.$ac_objext
     4626  if ac_fn_c_try_compile "$LINENO"; then :
     4627  ac_cv_prog_cc_c89=$ac_arg
     4628fi
     4629rm -f core conftest.err conftest.$ac_objext
     4630  test "x$ac_cv_prog_cc_c89" != "xno" && break
    33044631done
    3305 rm -f conftest.$ac_ext conftest.$ac_objext
     4632rm -f conftest.$ac_ext
    33064633CC=$ac_save_CC
    33074634
    33084635fi
    3309 
    3310 case "x$ac_cv_prog_cc_stdc" in
    3311   x|xno)
    3312     echo "$as_me:$LINENO: result: none needed" >&5
    3313 echo "${ECHO_T}none needed" >&6 ;;
     4636# AC_CACHE_VAL
     4637case "x$ac_cv_prog_cc_c89" in
     4638  x)
     4639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     4640$as_echo "none needed" >&6; } ;;
     4641  xno)
     4642    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     4643$as_echo "unsupported" >&6; } ;;
    33144644  *)
    3315     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
    3316 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    3317     CC="$CC $ac_cv_prog_cc_stdc" ;;
     4645    CC="$CC $ac_cv_prog_cc_c89"
     4646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     4647$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    33184648esac
    3319 
    3320 # Some people use a C++ compiler to compile C.  Since we use `exit',
    3321 # in C++ we need to declare it.  In case someone uses the same compiler
    3322 # for both compiling C and C++ we need to have the C++ compiler decide
    3323 # the declaration of exit, since it's the most demanding environment.
    3324 cat >conftest.$ac_ext <<_ACEOF
    3325 #ifndef __cplusplus
    3326   choke me
    3327 #endif
    3328 _ACEOF
    3329 rm -f conftest.$ac_objext
    3330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3331   (eval $ac_compile) 2>conftest.er1
    3332   ac_status=$?
    3333   grep -v '^ *+' conftest.er1 >conftest.err
    3334   rm -f conftest.er1
    3335   cat conftest.err >&5
    3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3337   (exit $ac_status); } &&
    3338          { ac_try='test -z "$ac_c_werror_flag"
    3339                          || test ! -s conftest.err'
    3340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3341   (eval $ac_try) 2>&5
    3342   ac_status=$?
    3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3344   (exit $ac_status); }; } &&
    3345          { ac_try='test -s conftest.$ac_objext'
    3346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3347   (eval $ac_try) 2>&5
    3348   ac_status=$?
    3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3350   (exit $ac_status); }; }; then
    3351   for ac_declaration in \
    3352    '' \
    3353    'extern "C" void std::exit (int) throw (); using std::exit;' \
    3354    'extern "C" void std::exit (int); using std::exit;' \
    3355    'extern "C" void exit (int) throw ();' \
    3356    'extern "C" void exit (int);' \
    3357    'void exit (int);'
    3358 do
    3359   cat >conftest.$ac_ext <<_ACEOF
    3360 /* confdefs.h.  */
    3361 _ACEOF
    3362 cat confdefs.h >>conftest.$ac_ext
    3363 cat >>conftest.$ac_ext <<_ACEOF
    3364 /* end confdefs.h.  */
    3365 $ac_declaration
    3366 #include <stdlib.h>
    3367 int
    3368 main ()
    3369 {
    3370 exit (42);
    3371   ;
    3372   return 0;
    3373 }
    3374 _ACEOF
    3375 rm -f conftest.$ac_objext
    3376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3377   (eval $ac_compile) 2>conftest.er1
    3378   ac_status=$?
    3379   grep -v '^ *+' conftest.er1 >conftest.err
    3380   rm -f conftest.er1
    3381   cat conftest.err >&5
    3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3383   (exit $ac_status); } &&
    3384          { ac_try='test -z "$ac_c_werror_flag"
    3385                          || test ! -s conftest.err'
    3386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3387   (eval $ac_try) 2>&5
    3388   ac_status=$?
    3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3390   (exit $ac_status); }; } &&
    3391          { ac_try='test -s conftest.$ac_objext'
    3392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3393   (eval $ac_try) 2>&5
    3394   ac_status=$?
    3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3396   (exit $ac_status); }; }; then
    3397   :
    3398 else
    3399   echo "$as_me: failed program was:" >&5
    3400 sed 's/^/| /' conftest.$ac_ext >&5
    3401 
    3402 continue
    3403 fi
    3404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3405   cat >conftest.$ac_ext <<_ACEOF
    3406 /* confdefs.h.  */
    3407 _ACEOF
    3408 cat confdefs.h >>conftest.$ac_ext
    3409 cat >>conftest.$ac_ext <<_ACEOF
    3410 /* end confdefs.h.  */
    3411 $ac_declaration
    3412 int
    3413 main ()
    3414 {
    3415 exit (42);
    3416   ;
    3417   return 0;
    3418 }
    3419 _ACEOF
    3420 rm -f conftest.$ac_objext
    3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3422   (eval $ac_compile) 2>conftest.er1
    3423   ac_status=$?
    3424   grep -v '^ *+' conftest.er1 >conftest.err
    3425   rm -f conftest.er1
    3426   cat conftest.err >&5
    3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3428   (exit $ac_status); } &&
    3429          { ac_try='test -z "$ac_c_werror_flag"
    3430                          || test ! -s conftest.err'
    3431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3432   (eval $ac_try) 2>&5
    3433   ac_status=$?
    3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3435   (exit $ac_status); }; } &&
    3436          { ac_try='test -s conftest.$ac_objext'
    3437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3438   (eval $ac_try) 2>&5
    3439   ac_status=$?
    3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3441   (exit $ac_status); }; }; then
    3442   break
    3443 else
    3444   echo "$as_me: failed program was:" >&5
    3445 sed 's/^/| /' conftest.$ac_ext >&5
    3446 
    3447 fi
    3448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3449 done
    3450 rm -f conftest*
    3451 if test -n "$ac_declaration"; then
    3452   echo '#ifdef __cplusplus' >>confdefs.h
    3453   echo $ac_declaration      >>confdefs.h
    3454   echo '#endif'             >>confdefs.h
    3455 fi
    3456 
    3457 else
    3458   echo "$as_me: failed program was:" >&5
    3459 sed 's/^/| /' conftest.$ac_ext >&5
    3460 
    3461 fi
    3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4649if test "x$ac_cv_prog_cc_c89" != xno; then :
     4650
     4651fi
     4652
    34634653ac_ext=c
    34644654ac_cpp='$CPP $CPPFLAGS'
     
    34714661  # Extract the first word of "$ac_prog", so it can be a program name with args.
    34724662set dummy $ac_prog; ac_word=$2
    3473 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3475 if test "${ac_cv_prog_CXX+set}" = set; then
    3476   echo $ECHO_N "(cached) $ECHO_C" >&6
     4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4664$as_echo_n "checking for $ac_word... " >&6; }
     4665if ${ac_cv_prog_CXX+:} false; then :
     4666  $as_echo_n "(cached) " >&6
    34774667else
    34784668  if test -n "$CXX"; then
     
    34844674  IFS=$as_save_IFS
    34854675  test -z "$as_dir" && as_dir=.
    3486   for ac_exec_ext in '' $ac_executable_extensions; do
    3487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4676    for ac_exec_ext in '' $ac_executable_extensions; do
     4677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    34884678    ac_cv_prog_CXX="$ac_prog"
    3489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    34904680    break 2
    34914681  fi
    34924682done
    3493 done
     4683  done
     4684IFS=$as_save_IFS
    34944685
    34954686fi
     
    34974688CXX=$ac_cv_prog_CXX
    34984689if test -n "$CXX"; then
    3499   echo "$as_me:$LINENO: result: $CXX" >&5
    3500 echo "${ECHO_T}$CXX" >&6
    3501 else
    3502   echo "$as_me:$LINENO: result: no" >&5
    3503 echo "${ECHO_T}no" >&6
    3504 fi
     4690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
     4691$as_echo "$CXX" >&6; }
     4692else
     4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4694$as_echo "no" >&6; }
     4695fi
     4696
    35054697
    35064698  test -n "$CXX" && break
     
    35084700test -n "$CXX" || CXX="gcc"
    35094701
    3510 ac_ext=cc
     4702ac_ext=cpp
    35114703ac_cpp='$CXXCPP $CPPFLAGS'
    35124704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    35134705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    35144706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    3515 if test -n "$ac_tool_prefix"; then
    3516   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     4707if test -z "$CXX"; then
     4708  if test -n "$CCC"; then
     4709    CXX=$CCC
     4710  else
     4711    if test -n "$ac_tool_prefix"; then
     4712  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    35174713  do
    35184714    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    35194715set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    3520 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3522 if test "${ac_cv_prog_CXX+set}" = set; then
    3523   echo $ECHO_N "(cached) $ECHO_C" >&6
     4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4717$as_echo_n "checking for $ac_word... " >&6; }
     4718if ${ac_cv_prog_CXX+:} false; then :
     4719  $as_echo_n "(cached) " >&6
    35244720else
    35254721  if test -n "$CXX"; then
     
    35314727  IFS=$as_save_IFS
    35324728  test -z "$as_dir" && as_dir=.
    3533   for ac_exec_ext in '' $ac_executable_extensions; do
    3534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4729    for ac_exec_ext in '' $ac_executable_extensions; do
     4730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    35354731    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    3536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    35374733    break 2
    35384734  fi
    35394735done
    3540 done
     4736  done
     4737IFS=$as_save_IFS
    35414738
    35424739fi
     
    35444741CXX=$ac_cv_prog_CXX
    35454742if test -n "$CXX"; then
    3546   echo "$as_me:$LINENO: result: $CXX" >&5
    3547 echo "${ECHO_T}$CXX" >&6
    3548 else
    3549   echo "$as_me:$LINENO: result: no" >&5
    3550 echo "${ECHO_T}no" >&6
    3551 fi
     4743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
     4744$as_echo "$CXX" >&6; }
     4745else
     4746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4747$as_echo "no" >&6; }
     4748fi
     4749
    35524750
    35534751    test -n "$CXX" && break
     
    35564754if test -z "$CXX"; then
    35574755  ac_ct_CXX=$CXX
    3558   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     4756  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
    35594757do
    35604758  # Extract the first word of "$ac_prog", so it can be a program name with args.
    35614759set dummy $ac_prog; ac_word=$2
    3562 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3564 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    3565   echo $ECHO_N "(cached) $ECHO_C" >&6
     4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4761$as_echo_n "checking for $ac_word... " >&6; }
     4762if ${ac_cv_prog_ac_ct_CXX+:} false; then :
     4763  $as_echo_n "(cached) " >&6
    35664764else
    35674765  if test -n "$ac_ct_CXX"; then
     
    35734771  IFS=$as_save_IFS
    35744772  test -z "$as_dir" && as_dir=.
    3575   for ac_exec_ext in '' $ac_executable_extensions; do
    3576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4773    for ac_exec_ext in '' $ac_executable_extensions; do
     4774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    35774775    ac_cv_prog_ac_ct_CXX="$ac_prog"
    3578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    35794777    break 2
    35804778  fi
    35814779done
    3582 done
     4780  done
     4781IFS=$as_save_IFS
    35834782
    35844783fi
     
    35864785ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    35874786if test -n "$ac_ct_CXX"; then
    3588   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    3589 echo "${ECHO_T}$ac_ct_CXX" >&6
    3590 else
    3591   echo "$as_me:$LINENO: result: no" >&5
    3592 echo "${ECHO_T}no" >&6
    3593 fi
     4787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
     4788$as_echo "$ac_ct_CXX" >&6; }
     4789else
     4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     4791$as_echo "no" >&6; }
     4792fi
     4793
    35944794
    35954795  test -n "$ac_ct_CXX" && break
    35964796done
    3597 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    3598 
    3599   CXX=$ac_ct_CXX
    3600 fi
    3601 
    3602 
     4797
     4798  if test "x$ac_ct_CXX" = x; then
     4799    CXX="g++"
     4800  else
     4801    case $cross_compiling:$ac_tool_warned in
     4802yes:)
     4803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     4804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     4805ac_tool_warned=yes ;;
     4806esac
     4807    CXX=$ac_ct_CXX
     4808  fi
     4809fi
     4810
     4811  fi
     4812fi
    36034813# Provide some information about the compiler.
    3604 echo "$as_me:$LINENO:" \
    3605      "checking for C++ compiler version" >&5
    3606 ac_compiler=`set X $ac_compile; echo $2`
    3607 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    3608   (eval $ac_compiler --version </dev/null >&5) 2>&5
     4814$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
     4815set X $ac_compile
     4816ac_compiler=$2
     4817for ac_option in --version -v -V -qversion; do
     4818  { { ac_try="$ac_compiler $ac_option >&5"
     4819case "(($ac_try" in
     4820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4821  *) ac_try_echo=$ac_try;;
     4822esac
     4823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     4824$as_echo "$ac_try_echo"; } >&5
     4825  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    36094826  ac_status=$?
    3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3611   (exit $ac_status); }
    3612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    3613   (eval $ac_compiler -v </dev/null >&5) 2>&5
    3614   ac_status=$?
    3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3616   (exit $ac_status); }
    3617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    3618   (eval $ac_compiler -V </dev/null >&5) 2>&5
    3619   ac_status=$?
    3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3621   (exit $ac_status); }
    3622 
    3623 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    3624 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    3625 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    3626   echo $ECHO_N "(cached) $ECHO_C" >&6
    3627 else
    3628   cat >conftest.$ac_ext <<_ACEOF
    3629 /* confdefs.h.  */
    3630 _ACEOF
    3631 cat confdefs.h >>conftest.$ac_ext
    3632 cat >>conftest.$ac_ext <<_ACEOF
     4827  if test -s conftest.err; then
     4828    sed '10a\
     4829... rest of stderr output deleted ...
     4830         10q' conftest.err >conftest.er1
     4831    cat conftest.er1 >&5
     4832  fi
     4833  rm -f conftest.er1 conftest.err
     4834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     4835  test $ac_status = 0; }
     4836done
     4837
     4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
     4839$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
     4840if ${ac_cv_cxx_compiler_gnu+:} false; then :
     4841  $as_echo_n "(cached) " >&6
     4842else
     4843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    36334844/* end confdefs.h.  */
    36344845
     
    36444855}
    36454856_ACEOF
    3646 rm -f conftest.$ac_objext
    3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3648   (eval $ac_compile) 2>conftest.er1
    3649   ac_status=$?
    3650   grep -v '^ *+' conftest.er1 >conftest.err
    3651   rm -f conftest.er1
    3652   cat conftest.err >&5
    3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3654   (exit $ac_status); } &&
    3655          { ac_try='test -z "$ac_cxx_werror_flag"
    3656                          || test ! -s conftest.err'
    3657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3658   (eval $ac_try) 2>&5
    3659   ac_status=$?
    3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3661   (exit $ac_status); }; } &&
    3662          { ac_try='test -s conftest.$ac_objext'
    3663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3664   (eval $ac_try) 2>&5
    3665   ac_status=$?
    3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3667   (exit $ac_status); }; }; then
     4857if ac_fn_cxx_try_compile "$LINENO"; then :
    36684858  ac_compiler_gnu=yes
    36694859else
    3670   echo "$as_me: failed program was:" >&5
    3671 sed 's/^/| /' conftest.$ac_ext >&5
    3672 
    3673 ac_compiler_gnu=no
    3674 fi
    3675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4860  ac_compiler_gnu=no
     4861fi
     4862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    36764863ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    36774864
    36784865fi
    3679 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    3680 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    3681 GXX=`test $ac_compiler_gnu = yes && echo yes`
     4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
     4867$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
     4868if test $ac_compiler_gnu = yes; then
     4869  GXX=yes
     4870else
     4871  GXX=
     4872fi
    36824873ac_test_CXXFLAGS=${CXXFLAGS+set}
    36834874ac_save_CXXFLAGS=$CXXFLAGS
    3684 CXXFLAGS="-g"
    3685 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    3686 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    3687 if test "${ac_cv_prog_cxx_g+set}" = set; then
    3688   echo $ECHO_N "(cached) $ECHO_C" >&6
    3689 else
    3690   cat >conftest.$ac_ext <<_ACEOF
    3691 /* confdefs.h.  */
    3692 _ACEOF
    3693 cat confdefs.h >>conftest.$ac_ext
    3694 cat >>conftest.$ac_ext <<_ACEOF
     4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
     4876$as_echo_n "checking whether $CXX accepts -g... " >&6; }
     4877if ${ac_cv_prog_cxx_g+:} false; then :
     4878  $as_echo_n "(cached) " >&6
     4879else
     4880  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
     4881   ac_cxx_werror_flag=yes
     4882   ac_cv_prog_cxx_g=no
     4883   CXXFLAGS="-g"
     4884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    36954885/* end confdefs.h.  */
    36964886
     
    37034893}
    37044894_ACEOF
    3705 rm -f conftest.$ac_objext
    3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3707   (eval $ac_compile) 2>conftest.er1
    3708   ac_status=$?
    3709   grep -v '^ *+' conftest.er1 >conftest.err
    3710   rm -f conftest.er1
    3711   cat conftest.err >&5
    3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3713   (exit $ac_status); } &&
    3714          { ac_try='test -z "$ac_cxx_werror_flag"
    3715                          || test ! -s conftest.err'
    3716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3717   (eval $ac_try) 2>&5
    3718   ac_status=$?
    3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3720   (exit $ac_status); }; } &&
    3721          { ac_try='test -s conftest.$ac_objext'
    3722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3723   (eval $ac_try) 2>&5
    3724   ac_status=$?
    3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3726   (exit $ac_status); }; }; then
     4895if ac_fn_cxx_try_compile "$LINENO"; then :
    37274896  ac_cv_prog_cxx_g=yes
    37284897else
    3729   echo "$as_me: failed program was:" >&5
    3730 sed 's/^/| /' conftest.$ac_ext >&5
    3731 
    3732 ac_cv_prog_cxx_g=no
    3733 fi
    3734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3735 fi
    3736 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    3737 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     4898  CXXFLAGS=""
     4899      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4900/* end confdefs.h.  */
     4901
     4902int
     4903main ()
     4904{
     4905
     4906  ;
     4907  return 0;
     4908}
     4909_ACEOF
     4910if ac_fn_cxx_try_compile "$LINENO"; then :
     4911
     4912else
     4913  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     4914         CXXFLAGS="-g"
     4915         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4916/* end confdefs.h.  */
     4917
     4918int
     4919main ()
     4920{
     4921
     4922  ;
     4923  return 0;
     4924}
     4925_ACEOF
     4926if ac_fn_cxx_try_compile "$LINENO"; then :
     4927  ac_cv_prog_cxx_g=yes
     4928fi
     4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4930fi
     4931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4932fi
     4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4934   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
     4935fi
     4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
     4937$as_echo "$ac_cv_prog_cxx_g" >&6; }
    37384938if test "$ac_test_CXXFLAGS" = set; then
    37394939  CXXFLAGS=$ac_save_CXXFLAGS
     
    37514951  fi
    37524952fi
    3753 for ac_declaration in \
    3754    '' \
    3755    'extern "C" void std::exit (int) throw (); using std::exit;' \
    3756    'extern "C" void std::exit (int); using std::exit;' \
    3757    'extern "C" void exit (int) throw ();' \
    3758    'extern "C" void exit (int);' \
    3759    'void exit (int);'
    3760 do
    3761   cat >conftest.$ac_ext <<_ACEOF
    3762 /* confdefs.h.  */
    3763 _ACEOF
    3764 cat confdefs.h >>conftest.$ac_ext
    3765 cat >>conftest.$ac_ext <<_ACEOF
    3766 /* end confdefs.h.  */
    3767 $ac_declaration
    3768 #include <stdlib.h>
    3769 int
    3770 main ()
    3771 {
    3772 exit (42);
    3773   ;
    3774   return 0;
    3775 }
    3776 _ACEOF
    3777 rm -f conftest.$ac_objext
    3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3779   (eval $ac_compile) 2>conftest.er1
    3780   ac_status=$?
    3781   grep -v '^ *+' conftest.er1 >conftest.err
    3782   rm -f conftest.er1
    3783   cat conftest.err >&5
    3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3785   (exit $ac_status); } &&
    3786          { ac_try='test -z "$ac_cxx_werror_flag"
    3787                          || test ! -s conftest.err'
    3788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3789   (eval $ac_try) 2>&5
    3790   ac_status=$?
    3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3792   (exit $ac_status); }; } &&
    3793          { ac_try='test -s conftest.$ac_objext'
    3794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3795   (eval $ac_try) 2>&5
    3796   ac_status=$?
    3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3798   (exit $ac_status); }; }; then
    3799   :
    3800 else
    3801   echo "$as_me: failed program was:" >&5
    3802 sed 's/^/| /' conftest.$ac_ext >&5
    3803 
    3804 continue
    3805 fi
    3806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3807   cat >conftest.$ac_ext <<_ACEOF
    3808 /* confdefs.h.  */
    3809 _ACEOF
    3810 cat confdefs.h >>conftest.$ac_ext
    3811 cat >>conftest.$ac_ext <<_ACEOF
    3812 /* end confdefs.h.  */
    3813 $ac_declaration
    3814 int
    3815 main ()
    3816 {
    3817 exit (42);
    3818   ;
    3819   return 0;
    3820 }
    3821 _ACEOF
    3822 rm -f conftest.$ac_objext
    3823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3824   (eval $ac_compile) 2>conftest.er1
    3825   ac_status=$?
    3826   grep -v '^ *+' conftest.er1 >conftest.err
    3827   rm -f conftest.er1
    3828   cat conftest.err >&5
    3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3830   (exit $ac_status); } &&
    3831          { ac_try='test -z "$ac_cxx_werror_flag"
    3832                          || test ! -s conftest.err'
    3833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3834   (eval $ac_try) 2>&5
    3835   ac_status=$?
    3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3837   (exit $ac_status); }; } &&
    3838          { ac_try='test -s conftest.$ac_objext'
    3839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3840   (eval $ac_try) 2>&5
    3841   ac_status=$?
    3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3843   (exit $ac_status); }; }; then
    3844   break
    3845 else
    3846   echo "$as_me: failed program was:" >&5
    3847 sed 's/^/| /' conftest.$ac_ext >&5
    3848 
    3849 fi
    3850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    3851 done
    3852 rm -f conftest*
    3853 if test -n "$ac_declaration"; then
    3854   echo '#ifdef __cplusplus' >>confdefs.h
    3855   echo $ac_declaration      >>confdefs.h
    3856   echo '#endif'             >>confdefs.h
    3857 fi
    3858 
    38594953ac_ext=c
    38604954ac_cpp='$CPP $CPPFLAGS'
     
    38694963ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    38704964if test -n "$ac_tool_prefix"; then
    3871   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
     4965  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
    38724966  do
    38734967    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    38744968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    3875 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3877 if test "${ac_cv_prog_F77+set}" = set; then
    3878   echo $ECHO_N "(cached) $ECHO_C" >&6
     4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     4970$as_echo_n "checking for $ac_word... " >&6; }
     4971if ${ac_cv_prog_F77+:} false; then :
     4972  $as_echo_n "(cached) " >&6
    38794973else
    38804974  if test -n "$F77"; then
     
    38864980  IFS=$as_save_IFS
    38874981  test -z "$as_dir" && as_dir=.
    3888   for ac_exec_ext in '' $ac_executable_extensions; do
    3889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4982    for ac_exec_ext in '' $ac_executable_extensions; do
     4983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    38904984    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
    3891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    38924986    break 2
    38934987  fi
    38944988done
    3895 done
     4989  done
     4990IFS=$as_save_IFS
    38964991
    38974992fi
     
    38994994F77=$ac_cv_prog_F77
    39004995if test -n "$F77"; then
    3901   echo "$as_me:$LINENO: result: $F77" >&5
    3902 echo "${ECHO_T}$F77" >&6
    3903 else
    3904   echo "$as_me:$LINENO: result: no" >&5
    3905 echo "${ECHO_T}no" >&6
    3906 fi
     4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
     4997$as_echo "$F77" >&6; }
     4998else
     4999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5000$as_echo "no" >&6; }
     5001fi
     5002
    39075003
    39085004    test -n "$F77" && break
     
    39115007if test -z "$F77"; then
    39125008  ac_ct_F77=$F77
    3913   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
     5009  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
    39145010do
    39155011  # Extract the first word of "$ac_prog", so it can be a program name with args.
    39165012set dummy $ac_prog; ac_word=$2
    3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3919 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
    3920   echo $ECHO_N "(cached) $ECHO_C" >&6
     5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5014$as_echo_n "checking for $ac_word... " >&6; }
     5015if ${ac_cv_prog_ac_ct_F77+:} false; then :
     5016  $as_echo_n "(cached) " >&6
    39215017else
    39225018  if test -n "$ac_ct_F77"; then
     
    39285024  IFS=$as_save_IFS
    39295025  test -z "$as_dir" && as_dir=.
    3930   for ac_exec_ext in '' $ac_executable_extensions; do
    3931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5026    for ac_exec_ext in '' $ac_executable_extensions; do
     5027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    39325028    ac_cv_prog_ac_ct_F77="$ac_prog"
    3933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    39345030    break 2
    39355031  fi
    39365032done
    3937 done
     5033  done
     5034IFS=$as_save_IFS
    39385035
    39395036fi
     
    39415038ac_ct_F77=$ac_cv_prog_ac_ct_F77
    39425039if test -n "$ac_ct_F77"; then
    3943   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
    3944 echo "${ECHO_T}$ac_ct_F77" >&6
    3945 else
    3946   echo "$as_me:$LINENO: result: no" >&5
    3947 echo "${ECHO_T}no" >&6
    3948 fi
     5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
     5041$as_echo "$ac_ct_F77" >&6; }
     5042else
     5043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5044$as_echo "no" >&6; }
     5045fi
     5046
    39495047
    39505048  test -n "$ac_ct_F77" && break
    39515049done
    39525050
    3953   F77=$ac_ct_F77
     5051  if test "x$ac_ct_F77" = x; then
     5052    F77=""
     5053  else
     5054    case $cross_compiling:$ac_tool_warned in
     5055yes:)
     5056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     5057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     5058ac_tool_warned=yes ;;
     5059esac
     5060    F77=$ac_ct_F77
     5061  fi
    39545062fi
    39555063
    39565064
    39575065# Provide some information about the compiler.
    3958 echo "$as_me:3958:" \
    3959      "checking for Fortran 77 compiler version" >&5
    3960 ac_compiler=`set X $ac_compile; echo $2`
    3961 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    3962   (eval $ac_compiler --version </dev/null >&5) 2>&5
     5066$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
     5067set X $ac_compile
     5068ac_compiler=$2
     5069for ac_option in --version -v -V -qversion; do
     5070  { { ac_try="$ac_compiler $ac_option >&5"
     5071case "(($ac_try" in
     5072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5073  *) ac_try_echo=$ac_try;;
     5074esac
     5075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     5076$as_echo "$ac_try_echo"; } >&5
     5077  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    39635078  ac_status=$?
    3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3965   (exit $ac_status); }
    3966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    3967   (eval $ac_compiler -v </dev/null >&5) 2>&5
    3968   ac_status=$?
    3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3970   (exit $ac_status); }
    3971 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    3972   (eval $ac_compiler -V </dev/null >&5) 2>&5
    3973   ac_status=$?
    3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3975   (exit $ac_status); }
     5079  if test -s conftest.err; then
     5080    sed '10a\
     5081... rest of stderr output deleted ...
     5082         10q' conftest.err >conftest.er1
     5083    cat conftest.er1 >&5
     5084  fi
     5085  rm -f conftest.er1 conftest.err
     5086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     5087  test $ac_status = 0; }
     5088done
    39765089rm -f a.out
    39775090
     
    39805093ac_save_ext=$ac_ext
    39815094ac_ext=F
    3982 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
    3983 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
    3984 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
    3985   echo $ECHO_N "(cached) $ECHO_C" >&6
    3986 else
    3987   cat >conftest.$ac_ext <<_ACEOF
     5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
     5096$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
     5097if ${ac_cv_f77_compiler_gnu+:} false; then :
     5098  $as_echo_n "(cached) " >&6
     5099else
     5100  cat > conftest.$ac_ext <<_ACEOF
    39885101      program main
    39895102#ifndef __GNUC__
     
    39935106      end
    39945107_ACEOF
    3995 rm -f conftest.$ac_objext
    3996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3997   (eval $ac_compile) 2>conftest.er1
    3998   ac_status=$?
    3999   grep -v '^ *+' conftest.er1 >conftest.err
    4000   rm -f conftest.er1
    4001   cat conftest.err >&5
    4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4003   (exit $ac_status); } &&
    4004          { ac_try='test -z "$ac_f77_werror_flag"
    4005                          || test ! -s conftest.err'
    4006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4007   (eval $ac_try) 2>&5
    4008   ac_status=$?
    4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4010   (exit $ac_status); }; } &&
    4011          { ac_try='test -s conftest.$ac_objext'
    4012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4013   (eval $ac_try) 2>&5
    4014   ac_status=$?
    4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4016   (exit $ac_status); }; }; then
     5108if ac_fn_f77_try_compile "$LINENO"; then :
    40175109  ac_compiler_gnu=yes
    40185110else
    4019   echo "$as_me: failed program was:" >&5
    4020 sed 's/^/| /' conftest.$ac_ext >&5
    4021 
    4022 ac_compiler_gnu=no
    4023 fi
    4024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5111  ac_compiler_gnu=no
     5112fi
     5113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    40255114ac_cv_f77_compiler_gnu=$ac_compiler_gnu
    40265115
    40275116fi
    4028 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
    4029 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
     5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
     5118$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
    40305119ac_ext=$ac_save_ext
    40315120ac_test_FFLAGS=${FFLAGS+set}
    40325121ac_save_FFLAGS=$FFLAGS
    40335122FFLAGS=
    4034 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
    4035 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
    4036 if test "${ac_cv_prog_f77_g+set}" = set; then
    4037   echo $ECHO_N "(cached) $ECHO_C" >&6
     5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
     5124$as_echo_n "checking whether $F77 accepts -g... " >&6; }
     5125if ${ac_cv_prog_f77_g+:} false; then :
     5126  $as_echo_n "(cached) " >&6
    40385127else
    40395128  FFLAGS=-g
    4040 cat >conftest.$ac_ext <<_ACEOF
     5129cat > conftest.$ac_ext <<_ACEOF
    40415130      program main
    40425131
    40435132      end
    40445133_ACEOF
    4045 rm -f conftest.$ac_objext
    4046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4047   (eval $ac_compile) 2>conftest.er1
    4048   ac_status=$?
    4049   grep -v '^ *+' conftest.er1 >conftest.err
    4050   rm -f conftest.er1
    4051   cat conftest.err >&5
    4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4053   (exit $ac_status); } &&
    4054          { ac_try='test -z "$ac_f77_werror_flag"
    4055                          || test ! -s conftest.err'
    4056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4057   (eval $ac_try) 2>&5
    4058   ac_status=$?
    4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4060   (exit $ac_status); }; } &&
    4061          { ac_try='test -s conftest.$ac_objext'
    4062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4063   (eval $ac_try) 2>&5
    4064   ac_status=$?
    4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4066   (exit $ac_status); }; }; then
     5134if ac_fn_f77_try_compile "$LINENO"; then :
    40675135  ac_cv_prog_f77_g=yes
    40685136else
    4069   echo "$as_me: failed program was:" >&5
    4070 sed 's/^/| /' conftest.$ac_ext >&5
    4071 
    4072 ac_cv_prog_f77_g=no
    4073 fi
    4074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4075 
    4076 fi
    4077 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
    4078 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
     5137  ac_cv_prog_f77_g=no
     5138fi
     5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5140
     5141fi
     5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
     5143$as_echo "$ac_cv_prog_f77_g" >&6; }
    40795144if test "$ac_test_FFLAGS" = set; then
    40805145  FFLAGS=$ac_save_FFLAGS
     
    40935158fi
    40945159
    4095 G77=`test $ac_compiler_gnu = yes && echo yes`
     5160if test $ac_compiler_gnu = yes; then
     5161  G77=yes
     5162else
     5163  G77=
     5164fi
    40965165ac_ext=c
    40975166ac_cpp='$CPP $CPPFLAGS'
     
    41065175ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    41075176ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4108 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
    4109 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
    4110 if test "${ac_cv_prog_f77_v+set}" = set; then
    4111   echo $ECHO_N "(cached) $ECHO_C" >&6
    4112 else
    4113   cat >conftest.$ac_ext <<_ACEOF
     5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
     5178$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
     5179if ${ac_cv_prog_f77_v+:} false; then :
     5180  $as_echo_n "(cached) " >&6
     5181else
     5182  cat > conftest.$ac_ext <<_ACEOF
    41145183      program main
    41155184
    41165185      end
    41175186_ACEOF
    4118 rm -f conftest.$ac_objext
    4119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4120   (eval $ac_compile) 2>conftest.er1
    4121   ac_status=$?
    4122   grep -v '^ *+' conftest.er1 >conftest.err
    4123   rm -f conftest.er1
    4124   cat conftest.err >&5
    4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4126   (exit $ac_status); } &&
    4127          { ac_try='test -z "$ac_f77_werror_flag"
    4128                          || test ! -s conftest.err'
    4129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4130   (eval $ac_try) 2>&5
    4131   ac_status=$?
    4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4133   (exit $ac_status); }; } &&
    4134          { ac_try='test -s conftest.$ac_objext'
    4135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4136   (eval $ac_try) 2>&5
    4137   ac_status=$?
    4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4139   (exit $ac_status); }; }; then
     5187if ac_fn_f77_try_compile "$LINENO"; then :
    41405188  ac_cv_prog_f77_v=
    41415189# Try some options frequently used verbose output
    41425190for ac_verb in -v -verbose --verbose -V -\#\#\#; do
    4143   cat >conftest.$ac_ext <<_ACEOF
     5191  cat > conftest.$ac_ext <<_ACEOF
    41445192      program main
    41455193
     
    41535201ac_save_FFLAGS=$FFLAGS
    41545202FFLAGS="$FFLAGS $ac_verb"
    4155 (eval echo $as_me:4155: \"$ac_link\") >&5
    4156 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    4157 echo "$ac_f77_v_output" >&5
     5203eval "set x $ac_link"
     5204shift
     5205$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
     5206# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
     5207# LIBRARY_PATH; skip all such settings.
     5208ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
     5209  sed '/^Driving:/d; /^Configured with:/d;
     5210      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
     5211$as_echo "$ac_f77_v_output" >&5
    41585212FFLAGS=$ac_save_FFLAGS
    41595213
    4160 rm -f conftest*
     5214rm -rf conftest*
    41615215
    41625216# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     
    41655219ac_f77_v_output="`echo $ac_f77_v_output |
    41665220        grep 'LPATH is:' |
    4167         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
    4168 
     5221        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
     5222
     5223# FIXME: we keep getting bitten by quoted arguments; a more general fix
     5224#        that detects unbalanced quotes in FLIBS should be implemented
     5225#        and (ugh) tested at some point.
    41695226case $ac_f77_v_output in
    4170   # If we are using xlf then replace all the commas with spaces.
     5227  # With xlf replace commas with spaces,
     5228  # and remove "-link" and closing parenthesis.
    41715229  *xlfentry*)
    4172     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     5230    ac_f77_v_output=`echo $ac_f77_v_output |
     5231      sed '
     5232        s/,/ /g
     5233        s/ -link / /g
     5234        s/) *$//
     5235      '
     5236    ` ;;
    41735237
    41745238  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
    41755239  # $LIBS confuse us, and the libraries appear later in the output anyway).
    41765240  *mGLOB_options_string*)
    4177     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     5241    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
     5242
     5243  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
     5244  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
     5245  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
     5246  *-cmdline\ * | *-ignore\ * | *-def\ *)
     5247    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
     5248        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
     5249        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
     5250        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
     5251
     5252  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
     5253  *fort77*f2c*gcc*)
     5254    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
     5255        /:[      ]\+Running[     ]\{1,\}"gcc"/{
     5256          /"-c"/d
     5257          /[.]c"*/d
     5258          s/^.*"gcc"/"gcc"/
     5259          s/"//gp
     5260        }'` ;;
    41785261
    41795262  # If we are using Cray Fortran then delete quotes.
    4180   # Use "\"" instead of '"' for font-lock-mode.
    4181   # FIXME: a more general fix for quoted arguments with spaces?
    41825263  *cft90*)
    4183     ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     5264    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
    41845265esac
    41855266
     
    41885269  for ac_arg in $ac_f77_v_output; do
    41895270     case $ac_arg in
    4190         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
    4191           ac_cv_prog_f77_v=$ac_verb
    4192           break 2 ;;
     5271        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
     5272          ac_cv_prog_f77_v=$ac_verb
     5273          break 2 ;;
    41935274     esac
    41945275  done
    41955276done
    41965277if test -z "$ac_cv_prog_f77_v"; then
    4197    { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
    4198 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
    4199 fi
    4200 else
    4201   echo "$as_me: failed program was:" >&5
    4202 sed 's/^/| /' conftest.$ac_ext >&5
    4203 
    4204 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
    4205 echo "$as_me: WARNING: compilation failed" >&2;}
    4206 fi
    4207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4208 
    4209 fi
    4210 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
    4211 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
    4212 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
    4213 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
    4214 if test "${ac_cv_f77_libs+set}" = set; then
    4215   echo $ECHO_N "(cached) $ECHO_C" >&6
     5278   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
     5279$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
     5280fi
     5281else
     5282  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
     5283$as_echo "$as_me: WARNING: compilation failed" >&2;}
     5284fi
     5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5286
     5287fi
     5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
     5289$as_echo "$ac_cv_prog_f77_v" >&6; }
     5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
     5291$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
     5292if ${ac_cv_f77_libs+:} false; then :
     5293  $as_echo_n "(cached) " >&6
    42165294else
    42175295  if test "x$FLIBS" != "x"; then
     
    42195297else
    42205298
    4221 cat >conftest.$ac_ext <<_ACEOF
     5299cat > conftest.$ac_ext <<_ACEOF
    42225300      program main
    42235301
     
    42315309ac_save_FFLAGS=$FFLAGS
    42325310FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    4233 (eval echo $as_me:4233: \"$ac_link\") >&5
    4234 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    4235 echo "$ac_f77_v_output" >&5
     5311eval "set x $ac_link"
     5312shift
     5313$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
     5314# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
     5315# LIBRARY_PATH; skip all such settings.
     5316ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
     5317  sed '/^Driving:/d; /^Configured with:/d;
     5318      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
     5319$as_echo "$ac_f77_v_output" >&5
    42365320FFLAGS=$ac_save_FFLAGS
    42375321
    4238 rm -f conftest*
     5322rm -rf conftest*
    42395323
    42405324# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     
    42435327ac_f77_v_output="`echo $ac_f77_v_output |
    42445328        grep 'LPATH is:' |
    4245         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
    4246 
     5329        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
     5330
     5331# FIXME: we keep getting bitten by quoted arguments; a more general fix
     5332#        that detects unbalanced quotes in FLIBS should be implemented
     5333#        and (ugh) tested at some point.
    42475334case $ac_f77_v_output in
    4248   # If we are using xlf then replace all the commas with spaces.
     5335  # With xlf replace commas with spaces,
     5336  # and remove "-link" and closing parenthesis.
    42495337  *xlfentry*)
    4250     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     5338    ac_f77_v_output=`echo $ac_f77_v_output |
     5339      sed '
     5340        s/,/ /g
     5341        s/ -link / /g
     5342        s/) *$//
     5343      '
     5344    ` ;;
    42515345
    42525346  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
    42535347  # $LIBS confuse us, and the libraries appear later in the output anyway).
    42545348  *mGLOB_options_string*)
    4255     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     5349    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
     5350
     5351  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
     5352  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
     5353  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
     5354  *-cmdline\ * | *-ignore\ * | *-def\ *)
     5355    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
     5356        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
     5357        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
     5358        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
     5359
     5360  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
     5361  *fort77*f2c*gcc*)
     5362    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
     5363        /:[      ]\+Running[     ]\{1,\}"gcc"/{
     5364          /"-c"/d
     5365          /[.]c"*/d
     5366          s/^.*"gcc"/"gcc"/
     5367          s/"//gp
     5368        }'` ;;
    42565369
    42575370  # If we are using Cray Fortran then delete quotes.
    4258   # Use "\"" instead of '"' for font-lock-mode.
    4259   # FIXME: a more general fix for quoted arguments with spaces?
    42605371  *cft90*)
    4261     ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     5372    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
    42625373esac
    42635374
     
    42745385  ac_arg=$1
    42755386  case $ac_arg in
    4276         [\\/]*.a | ?:[\\/]*.a)
    4277             ac_exists=false
     5387        [\\/]*.a | ?:[\\/]*.a)
     5388            ac_exists=false
    42785389  for ac_i in $ac_cv_f77_libs; do
    42795390    if test x"$ac_arg" = x"$ac_i"; then
     
    42835394  done
    42845395
    4285   if test x"$ac_exists" = xtrue; then
    4286   :
     5396  if test x"$ac_exists" = xtrue; then :
     5397
    42875398else
    42885399  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    42895400fi
    4290 
    4291           ;;
    4292         -bI:*)
    4293             ac_exists=false
     5401          ;;
     5402        -bI:*)
     5403            ac_exists=false
    42945404  for ac_i in $ac_cv_f77_libs; do
    42955405    if test x"$ac_arg" = x"$ac_i"; then
     
    42995409  done
    43005410
    4301   if test x"$ac_exists" = xtrue; then
    4302   :
     5411  if test x"$ac_exists" = xtrue; then :
     5412
    43035413else
    43045414  if test "$ac_compiler_gnu" = yes; then
     
    43105420fi
    43115421fi
    4312 
    4313           ;;
    4314           # Ignore these flags.
    4315         -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
    4316           ;;
    4317         -lkernel32)
    4318           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    4319           ;;
    4320         -[LRuY])
    4321           # These flags, when seen by themselves, take an argument.
    4322           # We remove the space between option and argument and re-iterate
    4323           # unless we find an empty arg or a new option (starting with -)
     5422          ;;
     5423          # Ignore these flags.
     5424        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
     5425          |-LANG:=* | -LIST:* | -LNO:* | -link)
     5426          ;;
     5427        -lkernel32)
     5428          case $host_os in
     5429          *cygwin*) ;;
     5430          *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     5431            ;;
     5432          esac
     5433          ;;
     5434        -[LRuYz])
     5435          # These flags, when seen by themselves, take an argument.
     5436          # We remove the space between option and argument and re-iterate
     5437          # unless we find an empty arg or a new option (starting with -)
    43245438          case $2 in
    43255439             "" | -*);;
     
    43305444                ;;
    43315445          esac
    4332           ;;
    4333         -YP,*)
    4334           for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
    4335               ac_exists=false
     5446          ;;
     5447        -YP,*)
     5448          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
     5449              ac_exists=false
    43365450  for ac_i in $ac_cv_f77_libs; do
    43375451    if test x"$ac_j" = x"$ac_i"; then
     
    43415455  done
    43425456
    4343   if test x"$ac_exists" = xtrue; then
    4344   :
     5457  if test x"$ac_exists" = xtrue; then :
     5458
    43455459else
    43465460  ac_arg="$ac_arg $ac_j"
    4347                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
    4348 fi
    4349 
    4350           done
    4351           ;;
    4352         -[lLR]*)
    4353             ac_exists=false
     5461                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
     5462fi
     5463          done
     5464          ;;
     5465        -[lLR]*)
     5466            ac_exists=false
    43545467  for ac_i in $ac_cv_f77_libs; do
    43555468    if test x"$ac_arg" = x"$ac_i"; then
     
    43595472  done
    43605473
    4361   if test x"$ac_exists" = xtrue; then
    4362   :
     5474  if test x"$ac_exists" = xtrue; then :
     5475
    43635476else
    43645477  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
    43655478fi
    4366 
    4367           ;;
    4368           # Ignore everything else.
     5479          ;;
     5480        -zallextract*| -zdefaultextract)
     5481          ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     5482          ;;
     5483          # Ignore everything else.
    43695484  esac
    43705485done
     
    43775492case `(uname -sr) 2>/dev/null` in
    43785493   "SunOS 5"*)
    4379       ac_ld_run_path=`echo $ac_f77_v_output |
    4380                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
     5494      ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
     5495                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
    43815496      test "x$ac_ld_run_path" != x &&
    4382         if test "$ac_compiler_gnu" = yes; then
     5497        if test "$ac_compiler_gnu" = yes; then
    43835498  for ac_link_opt in $ac_ld_run_path; do
    43845499    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     
    43925507
    43935508fi
    4394 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
    4395 echo "${ECHO_T}$ac_cv_f77_libs" >&6
     5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
     5510$as_echo "$ac_cv_f77_libs" >&6; }
    43965511FLIBS="$ac_cv_f77_libs"
    43975512
     
    44115526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    44125527ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4413 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    4414 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     5529$as_echo_n "checking how to run the C preprocessor... " >&6; }
    44155530# On Suns, sometimes $CPP names a directory.
    44165531if test -n "$CPP" && test -d "$CPP"; then
     
    44185533fi
    44195534if test -z "$CPP"; then
    4420   if test "${ac_cv_prog_CPP+set}" = set; then
    4421   echo $ECHO_N "(cached) $ECHO_C" >&6
     5535  if ${ac_cv_prog_CPP+:} false; then :
     5536  $as_echo_n "(cached) " >&6
    44225537else
    44235538      # Double quotes because CPP needs to be expanded
     
    44335548  # On the NeXT, cc -E runs the code through the compiler's parser,
    44345549  # not just through cpp. "Syntax error" is here to catch this case.
    4435   cat >conftest.$ac_ext <<_ACEOF
    4436 /* confdefs.h.  */
    4437 _ACEOF
    4438 cat confdefs.h >>conftest.$ac_ext
    4439 cat >>conftest.$ac_ext <<_ACEOF
     5550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    44405551/* end confdefs.h.  */
    44415552#ifdef __STDC__
     
    44465557                     Syntax error
    44475558_ACEOF
    4448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4450   ac_status=$?
    4451   grep -v '^ *+' conftest.er1 >conftest.err
    4452   rm -f conftest.er1
    4453   cat conftest.err >&5
    4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4455   (exit $ac_status); } >/dev/null; then
    4456   if test -s conftest.err; then
    4457     ac_cpp_err=$ac_c_preproc_warn_flag
    4458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4459   else
    4460     ac_cpp_err=
    4461   fi
    4462 else
    4463   ac_cpp_err=yes
    4464 fi
    4465 if test -z "$ac_cpp_err"; then
    4466   :
    4467 else
    4468   echo "$as_me: failed program was:" >&5
    4469 sed 's/^/| /' conftest.$ac_ext >&5
    4470 
     5559if ac_fn_c_try_cpp "$LINENO"; then :
     5560
     5561else
    44715562  # Broken: fails on valid input.
    44725563continue
    44735564fi
    4474 rm -f conftest.err conftest.$ac_ext
    4475 
    4476   # OK, works on sane cases.  Now check whether non-existent headers
     5565rm -f conftest.err conftest.i conftest.$ac_ext
     5566
     5567  # OK, works on sane cases.  Now check whether nonexistent headers
    44775568  # can be detected and how.
    4478   cat >conftest.$ac_ext <<_ACEOF
    4479 /* confdefs.h.  */
    4480 _ACEOF
    4481 cat confdefs.h >>conftest.$ac_ext
    4482 cat >>conftest.$ac_ext <<_ACEOF
     5569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    44835570/* end confdefs.h.  */
    44845571#include <ac_nonexistent.h>
    44855572_ACEOF
    4486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4488   ac_status=$?
    4489   grep -v '^ *+' conftest.er1 >conftest.err
    4490   rm -f conftest.er1
    4491   cat conftest.err >&5
    4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4493   (exit $ac_status); } >/dev/null; then
    4494   if test -s conftest.err; then
    4495     ac_cpp_err=$ac_c_preproc_warn_flag
    4496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4497   else
    4498     ac_cpp_err=
    4499   fi
    4500 else
    4501   ac_cpp_err=yes
    4502 fi
    4503 if test -z "$ac_cpp_err"; then
     5573if ac_fn_c_try_cpp "$LINENO"; then :
    45045574  # Broken: success on invalid input.
    45055575continue
    45065576else
    4507   echo "$as_me: failed program was:" >&5
    4508 sed 's/^/| /' conftest.$ac_ext >&5
    4509 
    45105577  # Passes both tests.
    45115578ac_preproc_ok=:
    45125579break
    45135580fi
    4514 rm -f conftest.err conftest.$ac_ext
     5581rm -f conftest.err conftest.i conftest.$ac_ext
    45155582
    45165583done
    45175584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4518 rm -f conftest.err conftest.$ac_ext
    4519 if $ac_preproc_ok; then
     5585rm -f conftest.i conftest.err conftest.$ac_ext
     5586if $ac_preproc_ok; then :
    45205587  break
    45215588fi
     
    45295596  ac_cv_prog_CPP=$CPP
    45305597fi
    4531 echo "$as_me:$LINENO: result: $CPP" >&5
    4532 echo "${ECHO_T}$CPP" >&6
     5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     5599$as_echo "$CPP" >&6; }
    45335600ac_preproc_ok=false
    45345601for ac_c_preproc_warn_flag in '' yes
     
    45405607  # On the NeXT, cc -E runs the code through the compiler's parser,
    45415608  # not just through cpp. "Syntax error" is here to catch this case.
    4542   cat >conftest.$ac_ext <<_ACEOF
    4543 /* confdefs.h.  */
    4544 _ACEOF
    4545 cat confdefs.h >>conftest.$ac_ext
    4546 cat >>conftest.$ac_ext <<_ACEOF
     5609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45475610/* end confdefs.h.  */
    45485611#ifdef __STDC__
     
    45535616                     Syntax error
    45545617_ACEOF
    4555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4557   ac_status=$?
    4558   grep -v '^ *+' conftest.er1 >conftest.err
    4559   rm -f conftest.er1
    4560   cat conftest.err >&5
    4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4562   (exit $ac_status); } >/dev/null; then
    4563   if test -s conftest.err; then
    4564     ac_cpp_err=$ac_c_preproc_warn_flag
    4565     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4566   else
    4567     ac_cpp_err=
    4568   fi
    4569 else
    4570   ac_cpp_err=yes
    4571 fi
    4572 if test -z "$ac_cpp_err"; then
    4573   :
    4574 else
    4575   echo "$as_me: failed program was:" >&5
    4576 sed 's/^/| /' conftest.$ac_ext >&5
    4577 
     5618if ac_fn_c_try_cpp "$LINENO"; then :
     5619
     5620else
    45785621  # Broken: fails on valid input.
    45795622continue
    45805623fi
    4581 rm -f conftest.err conftest.$ac_ext
    4582 
    4583   # OK, works on sane cases.  Now check whether non-existent headers
     5624rm -f conftest.err conftest.i conftest.$ac_ext
     5625
     5626  # OK, works on sane cases.  Now check whether nonexistent headers
    45845627  # can be detected and how.
    4585   cat >conftest.$ac_ext <<_ACEOF
    4586 /* confdefs.h.  */
    4587 _ACEOF
    4588 cat confdefs.h >>conftest.$ac_ext
    4589 cat >>conftest.$ac_ext <<_ACEOF
     5628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    45905629/* end confdefs.h.  */
    45915630#include <ac_nonexistent.h>
    45925631_ACEOF
    4593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4595   ac_status=$?
    4596   grep -v '^ *+' conftest.er1 >conftest.err
    4597   rm -f conftest.er1
    4598   cat conftest.err >&5
    4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4600   (exit $ac_status); } >/dev/null; then
    4601   if test -s conftest.err; then
    4602     ac_cpp_err=$ac_c_preproc_warn_flag
    4603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4604   else
    4605     ac_cpp_err=
    4606   fi
    4607 else
    4608   ac_cpp_err=yes
    4609 fi
    4610 if test -z "$ac_cpp_err"; then
     5632if ac_fn_c_try_cpp "$LINENO"; then :
    46115633  # Broken: success on invalid input.
    46125634continue
    46135635else
    4614   echo "$as_me: failed program was:" >&5
    4615 sed 's/^/| /' conftest.$ac_ext >&5
    4616 
    46175636  # Passes both tests.
    46185637ac_preproc_ok=:
    46195638break
    46205639fi
    4621 rm -f conftest.err conftest.$ac_ext
     5640rm -f conftest.err conftest.i conftest.$ac_ext
    46225641
    46235642done
    46245643# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4625 rm -f conftest.err conftest.$ac_ext
    4626 if $ac_preproc_ok; then
    4627   :
    4628 else
    4629   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    4630 See \`config.log' for more details." >&5
    4631 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    4632 See \`config.log' for more details." >&2;}
    4633    { (exit 1); exit 1; }; }
     5644rm -f conftest.i conftest.err conftest.$ac_ext
     5645if $ac_preproc_ok; then :
     5646
     5647else
     5648  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     5649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     5650as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
     5651See \`config.log' for more details" "$LINENO" 5; }
    46345652fi
    46355653
     
    46405658ac_compiler_gnu=$ac_cv_c_compiler_gnu
    46415659
    4642 ac_ext=cc
     5660ac_ext=cpp
    46435661ac_cpp='$CXXCPP $CPPFLAGS'
    46445662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    46455663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    46465664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    4647 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
    4648 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
     5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
     5666$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
    46495667if test -z "$CXXCPP"; then
    4650   if test "${ac_cv_prog_CXXCPP+set}" = set; then
    4651   echo $ECHO_N "(cached) $ECHO_C" >&6
     5668  if ${ac_cv_prog_CXXCPP+:} false; then :
     5669  $as_echo_n "(cached) " >&6
    46525670else
    46535671      # Double quotes because CXXCPP needs to be expanded
     
    46635681  # On the NeXT, cc -E runs the code through the compiler's parser,
    46645682  # not just through cpp. "Syntax error" is here to catch this case.
    4665   cat >conftest.$ac_ext <<_ACEOF
    4666 /* confdefs.h.  */
    4667 _ACEOF
    4668 cat confdefs.h >>conftest.$ac_ext
    4669 cat >>conftest.$ac_ext <<_ACEOF
     5683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    46705684/* end confdefs.h.  */
    46715685#ifdef __STDC__
     
    46765690                     Syntax error
    46775691_ACEOF
    4678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4680   ac_status=$?
    4681   grep -v '^ *+' conftest.er1 >conftest.err
    4682   rm -f conftest.er1
    4683   cat conftest.err >&5
    4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4685   (exit $ac_status); } >/dev/null; then
    4686   if test -s conftest.err; then
    4687     ac_cpp_err=$ac_cxx_preproc_warn_flag
    4688     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    4689   else
    4690     ac_cpp_err=
    4691   fi
    4692 else
    4693   ac_cpp_err=yes
    4694 fi
    4695 if test -z "$ac_cpp_err"; then
    4696   :
    4697 else
    4698   echo "$as_me: failed program was:" >&5
    4699 sed 's/^/| /' conftest.$ac_ext >&5
    4700 
     5692if ac_fn_cxx_try_cpp "$LINENO"; then :
     5693
     5694else
    47015695  # Broken: fails on valid input.
    47025696continue
    47035697fi
    4704 rm -f conftest.err conftest.$ac_ext
    4705 
    4706   # OK, works on sane cases.  Now check whether non-existent headers
     5698rm -f conftest.err conftest.i conftest.$ac_ext
     5699
     5700  # OK, works on sane cases.  Now check whether nonexistent headers
    47075701  # can be detected and how.
    4708   cat >conftest.$ac_ext <<_ACEOF
    4709 /* confdefs.h.  */
    4710 _ACEOF
    4711 cat confdefs.h >>conftest.$ac_ext
    4712 cat >>conftest.$ac_ext <<_ACEOF
     5702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47135703/* end confdefs.h.  */
    47145704#include <ac_nonexistent.h>
    47155705_ACEOF
    4716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4717   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4718   ac_status=$?
    4719   grep -v '^ *+' conftest.er1 >conftest.err
    4720   rm -f conftest.er1
    4721   cat conftest.err >&5
    4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4723   (exit $ac_status); } >/dev/null; then
    4724   if test -s conftest.err; then
    4725     ac_cpp_err=$ac_cxx_preproc_warn_flag
    4726     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    4727   else
    4728     ac_cpp_err=
    4729   fi
    4730 else
    4731   ac_cpp_err=yes
    4732 fi
    4733 if test -z "$ac_cpp_err"; then
     5706if ac_fn_cxx_try_cpp "$LINENO"; then :
    47345707  # Broken: success on invalid input.
    47355708continue
    47365709else
    4737   echo "$as_me: failed program was:" >&5
    4738 sed 's/^/| /' conftest.$ac_ext >&5
    4739 
    47405710  # Passes both tests.
    47415711ac_preproc_ok=:
    47425712break
    47435713fi
    4744 rm -f conftest.err conftest.$ac_ext
     5714rm -f conftest.err conftest.i conftest.$ac_ext
    47455715
    47465716done
    47475717# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4748 rm -f conftest.err conftest.$ac_ext
    4749 if $ac_preproc_ok; then
     5718rm -f conftest.i conftest.err conftest.$ac_ext
     5719if $ac_preproc_ok; then :
    47505720  break
    47515721fi
     
    47595729  ac_cv_prog_CXXCPP=$CXXCPP
    47605730fi
    4761 echo "$as_me:$LINENO: result: $CXXCPP" >&5
    4762 echo "${ECHO_T}$CXXCPP" >&6
     5731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
     5732$as_echo "$CXXCPP" >&6; }
    47635733ac_preproc_ok=false
    47645734for ac_cxx_preproc_warn_flag in '' yes
     
    47705740  # On the NeXT, cc -E runs the code through the compiler's parser,
    47715741  # not just through cpp. "Syntax error" is here to catch this case.
    4772   cat >conftest.$ac_ext <<_ACEOF
    4773 /* confdefs.h.  */
    4774 _ACEOF
    4775 cat confdefs.h >>conftest.$ac_ext
    4776 cat >>conftest.$ac_ext <<_ACEOF
     5742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    47775743/* end confdefs.h.  */
    47785744#ifdef __STDC__
     
    47835749                     Syntax error
    47845750_ACEOF
    4785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4787   ac_status=$?
    4788   grep -v '^ *+' conftest.er1 >conftest.err
    4789   rm -f conftest.er1
    4790   cat conftest.err >&5
    4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4792   (exit $ac_status); } >/dev/null; then
    4793   if test -s conftest.err; then
    4794     ac_cpp_err=$ac_cxx_preproc_warn_flag
    4795     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    4796   else
    4797     ac_cpp_err=
    4798   fi
    4799 else
    4800   ac_cpp_err=yes
    4801 fi
    4802 if test -z "$ac_cpp_err"; then
    4803   :
    4804 else
    4805   echo "$as_me: failed program was:" >&5
    4806 sed 's/^/| /' conftest.$ac_ext >&5
    4807 
     5751if ac_fn_cxx_try_cpp "$LINENO"; then :
     5752
     5753else
    48085754  # Broken: fails on valid input.
    48095755continue
    48105756fi
    4811 rm -f conftest.err conftest.$ac_ext
    4812 
    4813   # OK, works on sane cases.  Now check whether non-existent headers
     5757rm -f conftest.err conftest.i conftest.$ac_ext
     5758
     5759  # OK, works on sane cases.  Now check whether nonexistent headers
    48145760  # can be detected and how.
    4815   cat >conftest.$ac_ext <<_ACEOF
    4816 /* confdefs.h.  */
    4817 _ACEOF
    4818 cat confdefs.h >>conftest.$ac_ext
    4819 cat >>conftest.$ac_ext <<_ACEOF
     5761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    48205762/* end confdefs.h.  */
    48215763#include <ac_nonexistent.h>
    48225764_ACEOF
    4823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4825   ac_status=$?
    4826   grep -v '^ *+' conftest.er1 >conftest.err
    4827   rm -f conftest.er1
    4828   cat conftest.err >&5
    4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4830   (exit $ac_status); } >/dev/null; then
    4831   if test -s conftest.err; then
    4832     ac_cpp_err=$ac_cxx_preproc_warn_flag
    4833     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    4834   else
    4835     ac_cpp_err=
    4836   fi
    4837 else
    4838   ac_cpp_err=yes
    4839 fi
    4840 if test -z "$ac_cpp_err"; then
     5765if ac_fn_cxx_try_cpp "$LINENO"; then :
    48415766  # Broken: success on invalid input.
    48425767continue
    48435768else
    4844   echo "$as_me: failed program was:" >&5
    4845 sed 's/^/| /' conftest.$ac_ext >&5
    4846 
    48475769  # Passes both tests.
    48485770ac_preproc_ok=:
    48495771break
    48505772fi
    4851 rm -f conftest.err conftest.$ac_ext
     5773rm -f conftest.err conftest.i conftest.$ac_ext
    48525774
    48535775done
    48545776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4855 rm -f conftest.err conftest.$ac_ext
    4856 if $ac_preproc_ok; then
    4857   :
    4858 else
    4859   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    4860 See \`config.log' for more details." >&5
    4861 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    4862 See \`config.log' for more details." >&2;}
    4863    { (exit 1); exit 1; }; }
     5777rm -f conftest.i conftest.err conftest.$ac_ext
     5778if $ac_preproc_ok; then :
     5779
     5780else
     5781  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     5782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     5783as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
     5784See \`config.log' for more details" "$LINENO" 5; }
    48645785fi
    48655786
     
    48725793# Extract the first word of "ar", so it can be a program name with args.
    48735794set dummy ar; ac_word=$2
    4874 echo "$as_me:$LINENO: checking for $ac_word" >&5
    4875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4876 if test "${ac_cv_prog_AR+set}" = set; then
    4877   echo $ECHO_N "(cached) $ECHO_C" >&6
     5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5796$as_echo_n "checking for $ac_word... " >&6; }
     5797if ${ac_cv_prog_AR+:} false; then :
     5798  $as_echo_n "(cached) " >&6
    48785799else
    48795800  if test -n "$AR"; then
     
    48855806  IFS=$as_save_IFS
    48865807  test -z "$as_dir" && as_dir=.
    4887   for ac_exec_ext in '' $ac_executable_extensions; do
    4888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5808    for ac_exec_ext in '' $ac_executable_extensions; do
     5809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    48895810    ac_cv_prog_AR="ar"
    4890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    48915812    break 2
    48925813  fi
    48935814done
    4894 done
     5815  done
     5816IFS=$as_save_IFS
    48955817
    48965818fi
     
    48985820AR=$ac_cv_prog_AR
    48995821if test -n "$AR"; then
    4900   echo "$as_me:$LINENO: result: $AR" >&5
    4901 echo "${ECHO_T}$AR" >&6
    4902 else
    4903   echo "$as_me:$LINENO: result: no" >&5
    4904 echo "${ECHO_T}no" >&6
    4905 fi
     5822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
     5823$as_echo "$AR" >&6; }
     5824else
     5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5826$as_echo "no" >&6; }
     5827fi
     5828
    49065829
    49075830# Extract the first word of "perl", so it can be a program name with args.
    49085831set dummy perl; ac_word=$2
    4909 echo "$as_me:$LINENO: checking for $ac_word" >&5
    4910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4911 if test "${ac_cv_prog_PERL+set}" = set; then
    4912   echo $ECHO_N "(cached) $ECHO_C" >&6
     5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5833$as_echo_n "checking for $ac_word... " >&6; }
     5834if ${ac_cv_prog_PERL+:} false; then :
     5835  $as_echo_n "(cached) " >&6
    49135836else
    49145837  if test -n "$PERL"; then
     
    49205843  IFS=$as_save_IFS
    49215844  test -z "$as_dir" && as_dir=.
    4922   for ac_exec_ext in '' $ac_executable_extensions; do
    4923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5845    for ac_exec_ext in '' $ac_executable_extensions; do
     5846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    49245847    ac_cv_prog_PERL="perl"
    4925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    49265849    break 2
    49275850  fi
    49285851done
    4929 done
     5852  done
     5853IFS=$as_save_IFS
    49305854
    49315855fi
     
    49335857PERL=$ac_cv_prog_PERL
    49345858if test -n "$PERL"; then
    4935   echo "$as_me:$LINENO: result: $PERL" >&5
    4936 echo "${ECHO_T}$PERL" >&6
    4937 else
    4938   echo "$as_me:$LINENO: result: no" >&5
    4939 echo "${ECHO_T}no" >&6
    4940 fi
     5859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
     5860$as_echo "$PERL" >&6; }
     5861else
     5862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5863$as_echo "no" >&6; }
     5864fi
     5865
    49415866
    49425867# Extract the first word of "wish", so it can be a program name with args.
    49435868set dummy wish; ac_word=$2
    4944 echo "$as_me:$LINENO: checking for $ac_word" >&5
    4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4946 if test "${ac_cv_prog_WISH+set}" = set; then
    4947   echo $ECHO_N "(cached) $ECHO_C" >&6
     5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5870$as_echo_n "checking for $ac_word... " >&6; }
     5871if ${ac_cv_prog_WISH+:} false; then :
     5872  $as_echo_n "(cached) " >&6
    49485873else
    49495874  if test -n "$WISH"; then
     
    49555880  IFS=$as_save_IFS
    49565881  test -z "$as_dir" && as_dir=.
    4957   for ac_exec_ext in '' $ac_executable_extensions; do
    4958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5882    for ac_exec_ext in '' $ac_executable_extensions; do
     5883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    49595884    ac_cv_prog_WISH="/usr/bin/wish"
    4960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    49615886    break 2
    49625887  fi
    49635888done
    4964 done
     5889  done
     5890IFS=$as_save_IFS
    49655891
    49665892fi
     
    49685894WISH=$ac_cv_prog_WISH
    49695895if test -n "$WISH"; then
    4970   echo "$as_me:$LINENO: result: $WISH" >&5
    4971 echo "${ECHO_T}$WISH" >&6
    4972 else
    4973   echo "$as_me:$LINENO: result: no" >&5
    4974 echo "${ECHO_T}no" >&6
    4975 fi
     5896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WISH" >&5
     5897$as_echo "$WISH" >&6; }
     5898else
     5899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5900$as_echo "no" >&6; }
     5901fi
     5902
    49765903
    49775904
     
    49925919  # Extract the first word of "dot", so it can be a program name with args.
    49935920set dummy dot; ac_word=$2
    4994 echo "$as_me:$LINENO: checking for $ac_word" >&5
    4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4996 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then
    4997   echo $ECHO_N "(cached) $ECHO_C" >&6
     5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     5922$as_echo_n "checking for $ac_word... " >&6; }
     5923if ${ac_cv_prog_HAVE_DOT+:} false; then :
     5924  $as_echo_n "(cached) " >&6
    49985925else
    49995926  if test -n "$HAVE_DOT"; then
     
    50055932  IFS=$as_save_IFS
    50065933  test -z "$as_dir" && as_dir=.
    5007   for ac_exec_ext in '' $ac_executable_extensions; do
    5008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     5934    for ac_exec_ext in '' $ac_executable_extensions; do
     5935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    50095936    ac_cv_prog_HAVE_DOT="YES"
    5010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     5937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    50115938    break 2
    50125939  fi
    50135940done
    5014 done
     5941  done
     5942IFS=$as_save_IFS
    50155943
    50165944  test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
     
    50195947HAVE_DOT=$ac_cv_prog_HAVE_DOT
    50205948if test -n "$HAVE_DOT"; then
    5021   echo "$as_me:$LINENO: result: $HAVE_DOT" >&5
    5022 echo "${ECHO_T}$HAVE_DOT" >&6
    5023 else
    5024   echo "$as_me:$LINENO: result: no" >&5
    5025 echo "${ECHO_T}no" >&6
    5026 fi
     5949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
     5950$as_echo "$HAVE_DOT" >&6; }
     5951else
     5952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     5953$as_echo "no" >&6; }
     5954fi
     5955
    50275956
    50285957else
     
    50886017
    50896018
    5090 echo "$as_me:$LINENO: checking for miscellaneous flags" >&5
    5091 echo $ECHO_N "checking for miscellaneous flags... $ECHO_C" >&6
     6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for miscellaneous flags" >&5
     6020$as_echo_n "checking for miscellaneous flags... " >&6; }
    50926021case $target in
    50936022  *-cray-unicos*)
     
    50956024      CXXOPTIONS_MISC="$CXXOPTIONS_MISC -h new_for_init"
    50966025    fi
    5097     echo "$as_me:$LINENO: result: cray" >&5
    5098 echo "${ECHO_T}cray" >&6
     6026    { $as_echo "$as_me:${as_lineno-$LINENO}: result: cray" >&5
     6027$as_echo "cray" >&6; }
    50996028  ;;
    51006029  *)
    5101     echo "$as_me:$LINENO: result: none" >&5
    5102 echo "${ECHO_T}none" >&6
     6030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
     6031$as_echo "none" >&6; }
    51036032  ;;
    51046033esac
    51056034
    51066035
    5107 echo "$as_me:$LINENO: checking for special optimization options" >&5
    5108 echo $ECHO_N "checking for special optimization options... $ECHO_C" >&6
     6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special optimization options" >&5
     6037$as_echo_n "checking for special optimization options... " >&6; }
    51096038case $target in
    51106039  rs6000-ibm-aix3.2.* | rs6000-ibm-aix4.* | powerpc-ibm-aix4.* | powerpc-ibm-aix5.*)
     
    51156044      CXXOPTIONS_OPT="-O -qnolm -qrtti"
    51166045    fi
    5117     echo "$as_me:$LINENO: result: \"rs6000 or powerpc\"" >&5
    5118 echo "${ECHO_T}\"rs6000 or powerpc\"" >&6
     6046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"rs6000 or powerpc\"" >&5
     6047$as_echo "\"rs6000 or powerpc\"" >&6; }
    51196048  ;;
    51206049  alphaev6-*)
     
    51296058      CXXOPTIONS_OPT="-O5 -arch ev6"
    51306059    fi
    5131     echo "$as_me:$LINENO: result: \"alphaev6\"" >&5
    5132 echo "${ECHO_T}\"alphaev6\"" >&6
     6060    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"alphaev6\"" >&5
     6061$as_echo "\"alphaev6\"" >&6; }
    51336062  ;;
    51346063  alphaev56-*)
     
    51436072      CXXOPTIONS_OPT="-O5 -arch ev56"
    51446073    fi
    5145     echo "$as_me:$LINENO: result: \"alphaev56\"" >&5
    5146 echo "${ECHO_T}\"alphaev56\"" >&6
     6074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"alphaev56\"" >&5
     6075$as_echo "\"alphaev56\"" >&6; }
    51476076  ;;
    51486077  mips*-sgi-irix5*)
     
    51506079      COPTIONS_OPT="-O -Olimit 2000"
    51516080    fi
    5152     echo "$as_me:$LINENO: result: \"mips*-sgi-irix5\"" >&5
    5153 echo "${ECHO_T}\"mips*-sgi-irix5\"" >&6
     6081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"mips*-sgi-irix5\"" >&5
     6082$as_echo "\"mips*-sgi-irix5\"" >&6; }
    51546083  ;;
    51556084  mips*-sgi-irix6.[01]*)
     
    51626091        -OPT:const_copy_limit=20000:fold_arith_limit=20000:global_limit=20000"
    51636092    fi
    5164     echo "$as_me:$LINENO: result: \"mips*-sgi-irix6.0 or mips*-sgi-irix6.1\"" >&5
    5165 echo "${ECHO_T}\"mips*-sgi-irix6.0 or mips*-sgi-irix6.1\"" >&6
     6093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"mips*-sgi-irix6.0 or mips*-sgi-irix6.1\"" >&5
     6094$as_echo "\"mips*-sgi-irix6.0 or mips*-sgi-irix6.1\"" >&6; }
    51666095  ;;
    51676096  mips*-sgi-irix*)
     
    51726101      CXXOPTIONS_OPT="-O2 -OPT:Olimit=0"
    51736102    fi
    5174     echo "$as_me:$LINENO: result: \"mips*-sgi-irix\"" >&5
    5175 echo "${ECHO_T}\"mips*-sgi-irix\"" >&6
     6103    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"mips*-sgi-irix\"" >&5
     6104$as_echo "\"mips*-sgi-irix\"" >&6; }
    51766105  ;;
    51776106  i[56]86-*)
     
    51826111      CXXOPTIONS_OPT="-O2"
    51836112    fi
    5184     echo "$as_me:$LINENO: result: \"i586 or i686\"" >&5
    5185 echo "${ECHO_T}\"i586 or i686\"" >&6
     6113    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"i586 or i686\"" >&5
     6114$as_echo "\"i586 or i686\"" >&6; }
    51866115  ;;
    51876116  i860-intel-*)
     
    51896118      COPTIONS_OPT="-O3 -Knoieee"
    51906119    fi
    5191     echo "$as_me:$LINENO: result: \"i860\"" >&5
    5192 echo "${ECHO_T}\"i860\"" >&6
     6120    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"i860\"" >&5
     6121$as_echo "\"i860\"" >&6; }
    51936122  ;;
    51946123  *)
    5195     echo "$as_me:$LINENO: result: \"none\"" >&5
    5196 echo "${ECHO_T}\"none\"" >&6
     6124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"none\"" >&5
     6125$as_echo "\"none\"" >&6; }
    51976126  ;;
    51986127esac
     
    52096138
    52106139if test X$GXX == Xyes; then
    5211   echo "$as_me:$LINENO: checking for C++ cpu tuning flag" >&5
    5212 echo $ECHO_N "checking for C++ cpu tuning flag... $ECHO_C" >&6
    5213 
    5214 
    5215   ac_ext=cc
     6140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ cpu tuning flag" >&5
     6141$as_echo_n "checking for C++ cpu tuning flag... " >&6; }
     6142
     6143  ac_ext=cpp
    52166144ac_cpp='$CXXCPP $CPPFLAGS'
    52176145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    52226150  CXXFLAGS="-mtune=$opt_target_cpu $CXXFLAGS_SAV"
    52236151
    5224 cat >conftest.$ac_ext <<_ACEOF
     6152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6153/* end confdefs.h.  */
    52256154int main(){}
     6155int
     6156main ()
     6157{
     6158
     6159  ;
     6160  return 0;
     6161}
    52266162_ACEOF
    5227 rm -f conftest.$ac_objext
    5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5229   (eval $ac_compile) 2>conftest.er1
    5230   ac_status=$?
    5231   grep -v '^ *+' conftest.er1 >conftest.err
    5232   rm -f conftest.er1
    5233   cat conftest.err >&5
    5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5235   (exit $ac_status); } &&
    5236          { ac_try='test -z "$ac_cxx_werror_flag"
    5237                          || test ! -s conftest.err'
    5238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5239   (eval $ac_try) 2>&5
    5240   ac_status=$?
    5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5242   (exit $ac_status); }; } &&
    5243          { ac_try='test -s conftest.$ac_objext'
    5244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5245   (eval $ac_try) 2>&5
    5246   ac_status=$?
    5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5248   (exit $ac_status); }; }; then
     6163if ac_fn_cxx_try_compile "$LINENO"; then :
    52496164  cxx_tuneflag="-mtune"
    52506165else
    5251   echo "$as_me: failed program was:" >&5
    5252 sed 's/^/| /' conftest.$ac_ext >&5
    5253 
    5254 cxx_tuneflag="-mcpu"
    5255 fi
    5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6166  cxx_tuneflag="-mcpu"
     6167fi
     6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    52576169  CXXFLAGS=$CXXFLAGS_SAV
    52586170  ac_ext=c
     
    52626174ac_compiler_gnu=$ac_cv_c_compiler_gnu
    52636175
    5264   echo "$as_me:$LINENO: result: $cxx_tuneflag" >&5
    5265 echo "${ECHO_T}$cxx_tuneflag" >&6
     6176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx_tuneflag" >&5
     6177$as_echo "$cxx_tuneflag" >&6; }
    52666178fi
    52676179
    52686180if test X$GCC == Xyes; then
    5269   echo "$as_me:$LINENO: checking for C cpu tuning flag" >&5
    5270 echo $ECHO_N "checking for C cpu tuning flag... $ECHO_C" >&6
     6181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C cpu tuning flag" >&5
     6182$as_echo_n "checking for C cpu tuning flag... " >&6; }
    52716183  CFLAGS_SAV=$CFLAGS
    52726184  CFLAGS="-mtune=$opt_target_cpu $CFLAGS_SAV"
    52736185
    5274 cat >conftest.$ac_ext <<_ACEOF
     6186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6187/* end confdefs.h.  */
    52756188int main(){}
     6189int
     6190main ()
     6191{
     6192
     6193  ;
     6194  return 0;
     6195}
    52766196_ACEOF
    5277 rm -f conftest.$ac_objext
    5278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5279   (eval $ac_compile) 2>conftest.er1
    5280   ac_status=$?
    5281   grep -v '^ *+' conftest.er1 >conftest.err
    5282   rm -f conftest.er1
    5283   cat conftest.err >&5
    5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5285   (exit $ac_status); } &&
    5286          { ac_try='test -z "$ac_c_werror_flag"
    5287                          || test ! -s conftest.err'
    5288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5289   (eval $ac_try) 2>&5
    5290   ac_status=$?
    5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5292   (exit $ac_status); }; } &&
    5293          { ac_try='test -s conftest.$ac_objext'
    5294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5295   (eval $ac_try) 2>&5
    5296   ac_status=$?
    5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5298   (exit $ac_status); }; }; then
     6197if ac_fn_c_try_compile "$LINENO"; then :
    52996198  cc_tuneflag="-mtune"
    53006199else
    5301   echo "$as_me: failed program was:" >&5
    5302 sed 's/^/| /' conftest.$ac_ext >&5
    5303 
    5304 cc_tuneflag="-mcpu"
    5305 fi
    5306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6200  cc_tuneflag="-mcpu"
     6201fi
     6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    53076203  CFLAGS=$CFLAGS_SAV
    5308   echo "$as_me:$LINENO: result: $cc_tuneflag" >&5
    5309 echo "${ECHO_T}$cc_tuneflag" >&6
    5310 fi
    5311 
    5312 echo "$as_me:$LINENO: checking for special architecture options" >&5
    5313 echo $ECHO_N "checking for special architecture options... $ECHO_C" >&6
     6204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_tuneflag" >&5
     6205$as_echo "$cc_tuneflag" >&6; }
     6206fi
     6207
     6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special architecture options" >&5
     6209$as_echo_n "checking for special architecture options... " >&6; }
    53146210case $target in
    53156211  *-solaris2*)
     
    53256221      LDFLAGS="$LDFLAGS -bmaxdata:0x70000000"
    53266222    fi
    5327     echo "$as_me:$LINENO: result: rs6000 or powerpc" >&5
    5328 echo "${ECHO_T}rs6000 or powerpc" >&6
     6223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: rs6000 or powerpc" >&5
     6224$as_echo "rs6000 or powerpc" >&6; }
    53296225  ;;
    53306226  i686-intel-cougar*)
     
    53356231      AR=tflop-ar
    53366232    fi
    5337     echo "$as_me:$LINENO: result: teraflop cougar" >&5
    5338 echo "${ECHO_T}teraflop cougar" >&6
     6233    { $as_echo "$as_me:${as_lineno-$LINENO}: result: teraflop cougar" >&5
     6234$as_echo "teraflop cougar" >&6; }
    53396235  ;;
    53406236  i[4567]86-* | pentium-* | pentium4-* | pentiumpro-* | k6-* | athlon-*)
     
    53536249      CXXOPTIONS_OPT="$CXXOPTIONS_OPT $cxx_cpu_arch_option"
    53546250    fi
    5355     echo "$as_me:$LINENO: result: IA-32: $cpu_arch_option" >&5
    5356 echo "${ECHO_T}IA-32: $cpu_arch_option" >&6
     6251    { $as_echo "$as_me:${as_lineno-$LINENO}: result: IA-32: $cpu_arch_option" >&5
     6252$as_echo "IA-32: $cpu_arch_option" >&6; }
    53576253  ;;
    53586254  i860-intel-puma*)
     
    53726268      AR=ar860
    53736269    fi
    5374     echo "$as_me:$LINENO: result: paragon puma" >&5
    5375 echo "${ECHO_T}paragon puma" >&6
     6270    { $as_echo "$as_me:${as_lineno-$LINENO}: result: paragon puma" >&5
     6271$as_echo "paragon puma" >&6; }
    53766272  ;;
    53776273  i860-intel-sunmos*)
     
    53916287      AR=ar860
    53926288    fi
    5393     echo "$as_me:$LINENO: result: paragon sunmos" >&5
    5394 echo "${ECHO_T}paragon sunmos" >&6
     6289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: paragon sunmos" >&5
     6290$as_echo "paragon sunmos" >&6; }
    53956291  ;;
    53966292  i860-intel-osf*)
     
    54046300      AR=ar860
    54056301    fi
    5406     echo "$as_me:$LINENO: result: paragon osf" >&5
    5407 echo "${ECHO_T}paragon osf" >&6
     6302    { $as_echo "$as_me:${as_lineno-$LINENO}: result: paragon osf" >&5
     6303$as_echo "paragon osf" >&6; }
    54086304  ;;
    54096305  *)
    5410     echo "$as_me:$LINENO: result: \"none\"" >&5
    5411 echo "${ECHO_T}\"none\"" >&6
     6306    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"none\"" >&5
     6307$as_echo "\"none\"" >&6; }
    54126308  ;;
    54136309esac
     
    54166312if test -n "$GIVEN_COPTIONS_OPT"; then
    54176313  COPTIONS_OPT=$GIVEN_COPTIONS_OPT
    5418   { echo "$as_me:$LINENO: \"overriding C optimization flags with $COPTIONS_OPT\"" >&5
    5419 echo "$as_me: \"overriding C optimization flags with $COPTIONS_OPT\"" >&6;}
     6314  { $as_echo "$as_me:${as_lineno-$LINENO}: \"overriding C optimization flags with $COPTIONS_OPT\"" >&5
     6315$as_echo "$as_me: \"overriding C optimization flags with $COPTIONS_OPT\"" >&6;}
    54206316fi
    54216317
    54226318if test -n "$GIVEN_CXXOPTIONS_OPT"; then
    54236319  CXXOPTIONS_OPT=$GIVEN_CXXOPTIONS_OPT
    5424   { echo "$as_me:$LINENO: \"overriding C++ optimization flags with $CXXOPTIONS_OPT\"" >&5
    5425 echo "$as_me: \"overriding C++ optimization flags with $CXXOPTIONS_OPT\"" >&6;}
    5426 fi
    5427 
    5428 
    5429 
    5430 
    5431 ac_ext=cc
     6320  { $as_echo "$as_me:${as_lineno-$LINENO}: \"overriding C++ optimization flags with $CXXOPTIONS_OPT\"" >&5
     6321$as_echo "$as_me: \"overriding C++ optimization flags with $CXXOPTIONS_OPT\"" >&6;}
     6322fi
     6323
     6324
     6325
     6326ac_ext=cpp
    54326327ac_cpp='$CXXCPP $CPPFLAGS'
    54336328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    54356330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    54366331
    5437 echo "$as_me:$LINENO: checking \"for C++ typename keyword\"" >&5
    5438 echo $ECHO_N "checking \"for C++ typename keyword\"... $ECHO_C" >&6
    5439 cat >conftest.$ac_ext <<_ACEOF
    5440 /* confdefs.h.  */
    5441 _ACEOF
    5442 cat confdefs.h >>conftest.$ac_ext
    5443 cat >>conftest.$ac_ext <<_ACEOF
     6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for C++ typename keyword\"" >&5
     6333$as_echo_n "checking \"for C++ typename keyword\"... " >&6; }
     6334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    54446335/* end confdefs.h.  */
    54456336
     
    54586349}
    54596350_ACEOF
    5460 rm -f conftest.$ac_objext conftest$ac_exeext
    5461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5462   (eval $ac_link) 2>conftest.er1
    5463   ac_status=$?
    5464   grep -v '^ *+' conftest.er1 >conftest.err
    5465   rm -f conftest.er1
    5466   cat conftest.err >&5
    5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5468   (exit $ac_status); } &&
    5469          { ac_try='test -z "$ac_cxx_werror_flag"
    5470                          || test ! -s conftest.err'
    5471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5472   (eval $ac_try) 2>&5
    5473   ac_status=$?
    5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5475   (exit $ac_status); }; } &&
    5476          { ac_try='test -s conftest$ac_exeext'
    5477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5478   (eval $ac_try) 2>&5
    5479   ac_status=$?
    5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5481   (exit $ac_status); }; }; then
    5482 
    5483 cat >>confdefs.h <<\_ACEOF
    5484 #define HAVE_TYPENAME 1
    5485 _ACEOF
    5486 
    5487 echo "$as_me:$LINENO: result: \"yes\"" >&5
    5488 echo "${ECHO_T}\"yes\"" >&6
    5489 
    5490 else
    5491   echo "$as_me: failed program was:" >&5
    5492 sed 's/^/| /' conftest.$ac_ext >&5
    5493 
    5494 echo "$as_me:$LINENO: result: \"no\"" >&5
    5495 echo "${ECHO_T}\"no\"" >&6
    5496 
    5497 fi
    5498 rm -f conftest.err conftest.$ac_objext \
    5499       conftest$ac_exeext conftest.$ac_ext;
     6351if ac_fn_cxx_try_link "$LINENO"; then :
     6352
     6353
     6354$as_echo "#define HAVE_TYPENAME 1" >>confdefs.h
     6355
     6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
     6357$as_echo "\"yes\"" >&6; }
     6358
     6359else
     6360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
     6361$as_echo "\"no\"" >&6; }
     6362
     6363$as_echo "#define typename /**/" >>confdefs.h
     6364
     6365
     6366fi
     6367rm -f core conftest.err conftest.$ac_objext \
     6368    conftest$ac_exeext conftest.$ac_ext;
    55006369ac_ext=c
    55016370ac_cpp='$CPP $CPPFLAGS'
     
    55076376
    55086377
    5509 
    5510 ac_ext=cc
     6378ac_ext=cpp
    55116379ac_cpp='$CXXCPP $CPPFLAGS'
    55126380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    55146382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    55156383
    5516 cat >conftest.$ac_ext <<_ACEOF
    5517 /* confdefs.h.  */
    5518 _ACEOF
    5519 cat confdefs.h >>conftest.$ac_ext
    5520 cat >>conftest.$ac_ext <<_ACEOF
     6384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    55216385/* end confdefs.h.  */
    55226386
     
    55296393}
    55306394_ACEOF
    5531 rm -f conftest.$ac_objext conftest$ac_exeext
    5532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5533   (eval $ac_link) 2>conftest.er1
    5534   ac_status=$?
    5535   grep -v '^ *+' conftest.er1 >conftest.err
    5536   rm -f conftest.er1
    5537   cat conftest.err >&5
    5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5539   (exit $ac_status); } &&
    5540          { ac_try='test -z "$ac_cxx_werror_flag"
    5541                          || test ! -s conftest.err'
    5542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5543   (eval $ac_try) 2>&5
    5544   ac_status=$?
    5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5546   (exit $ac_status); }; } &&
    5547          { ac_try='test -s conftest$ac_exeext'
    5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5549   (eval $ac_try) 2>&5
    5550   ac_status=$?
    5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5552   (exit $ac_status); }; }; then
    5553   cat >>confdefs.h <<\_ACEOF
    5554 #define CXX_RESTRICT 1
    5555 _ACEOF
    5556 
    5557 else
    5558   echo "$as_me: failed program was:" >&5
    5559 sed 's/^/| /' conftest.$ac_ext >&5
    5560 
    5561 fi
    5562 rm -f conftest.err conftest.$ac_objext \
    5563       conftest$ac_exeext conftest.$ac_ext
     6395if ac_fn_cxx_try_link "$LINENO"; then :
     6396
     6397$as_echo "#define CXX_RESTRICT 1" >>confdefs.h
     6398
     6399
     6400$as_echo "#define restrictxx restrict" >>confdefs.h
     6401
     6402else
     6403
     6404$as_echo "#define restrictxx /**/" >>confdefs.h
     6405
     6406fi
     6407rm -f core conftest.err conftest.$ac_objext \
     6408    conftest$ac_exeext conftest.$ac_ext
    55646409ac_ext=c
    55656410ac_cpp='$CPP $CPPFLAGS'
     
    55716416
    55726417
    5573 
    5574 ac_ext=cc
     6418ac_ext=cpp
    55756419ac_cpp='$CXXCPP $CPPFLAGS'
    55766420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    55796423
    55806424
    5581 echo "$as_me:$LINENO: checking for egrep" >&5
    5582 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    5583 if test "${ac_cv_prog_egrep+set}" = set; then
    5584   echo $ECHO_N "(cached) $ECHO_C" >&6
    5585 else
    5586   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    5587     then ac_cv_prog_egrep='grep -E'
    5588     else ac_cv_prog_egrep='egrep'
     6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     6426$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
     6427if ${ac_cv_path_GREP+:} false; then :
     6428  $as_echo_n "(cached) " >&6
     6429else
     6430  if test -z "$GREP"; then
     6431  ac_path_GREP_found=false
     6432  # Loop through the user's path and test for each of PROGNAME-LIST
     6433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6434for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     6435do
     6436  IFS=$as_save_IFS
     6437  test -z "$as_dir" && as_dir=.
     6438    for ac_prog in grep ggrep; do
     6439    for ac_exec_ext in '' $ac_executable_extensions; do
     6440      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     6441      as_fn_executable_p "$ac_path_GREP" || continue
     6442# Check for GNU ac_path_GREP and select it if it is found.
     6443  # Check for GNU $ac_path_GREP
     6444case `"$ac_path_GREP" --version 2>&1` in
     6445*GNU*)
     6446  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     6447*)
     6448  ac_count=0
     6449  $as_echo_n 0123456789 >"conftest.in"
     6450  while :
     6451  do
     6452    cat "conftest.in" "conftest.in" >"conftest.tmp"
     6453    mv "conftest.tmp" "conftest.in"
     6454    cp "conftest.in" "conftest.nl"
     6455    $as_echo 'GREP' >> "conftest.nl"
     6456    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     6457    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     6458    as_fn_arith $ac_count + 1 && ac_count=$as_val
     6459    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     6460      # Best one so far, save it but keep looking for a better one
     6461      ac_cv_path_GREP="$ac_path_GREP"
     6462      ac_path_GREP_max=$ac_count
    55896463    fi
    5590 fi
    5591 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    5592 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    5593  EGREP=$ac_cv_prog_egrep
    5594 
    5595 
    5596 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    5597 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    5598 if test "${ac_cv_header_stdc+set}" = set; then
    5599   echo $ECHO_N "(cached) $ECHO_C" >&6
    5600 else
    5601   cat >conftest.$ac_ext <<_ACEOF
    5602 /* confdefs.h.  */
    5603 _ACEOF
    5604 cat confdefs.h >>conftest.$ac_ext
    5605 cat >>conftest.$ac_ext <<_ACEOF
     6464    # 10*(2^10) chars as input seems more than enough
     6465    test $ac_count -gt 10 && break
     6466  done
     6467  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     6468esac
     6469
     6470      $ac_path_GREP_found && break 3
     6471    done
     6472  done
     6473  done
     6474IFS=$as_save_IFS
     6475  if test -z "$ac_cv_path_GREP"; then
     6476    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     6477  fi
     6478else
     6479  ac_cv_path_GREP=$GREP
     6480fi
     6481
     6482fi
     6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     6484$as_echo "$ac_cv_path_GREP" >&6; }
     6485 GREP="$ac_cv_path_GREP"
     6486
     6487
     6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
     6489$as_echo_n "checking for egrep... " >&6; }
     6490if ${ac_cv_path_EGREP+:} false; then :
     6491  $as_echo_n "(cached) " >&6
     6492else
     6493  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
     6494   then ac_cv_path_EGREP="$GREP -E"
     6495   else
     6496     if test -z "$EGREP"; then
     6497  ac_path_EGREP_found=false
     6498  # Loop through the user's path and test for each of PROGNAME-LIST
     6499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6500for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     6501do
     6502  IFS=$as_save_IFS
     6503  test -z "$as_dir" && as_dir=.
     6504    for ac_prog in egrep; do
     6505    for ac_exec_ext in '' $ac_executable_extensions; do
     6506      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     6507      as_fn_executable_p "$ac_path_EGREP" || continue
     6508# Check for GNU ac_path_EGREP and select it if it is found.
     6509  # Check for GNU $ac_path_EGREP
     6510case `"$ac_path_EGREP" --version 2>&1` in
     6511*GNU*)
     6512  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
     6513*)
     6514  ac_count=0
     6515  $as_echo_n 0123456789 >"conftest.in"
     6516  while :
     6517  do
     6518    cat "conftest.in" "conftest.in" >"conftest.tmp"
     6519    mv "conftest.tmp" "conftest.in"
     6520    cp "conftest.in" "conftest.nl"
     6521    $as_echo 'EGREP' >> "conftest.nl"
     6522    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     6523    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     6524    as_fn_arith $ac_count + 1 && ac_count=$as_val
     6525    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
     6526      # Best one so far, save it but keep looking for a better one
     6527      ac_cv_path_EGREP="$ac_path_EGREP"
     6528      ac_path_EGREP_max=$ac_count
     6529    fi
     6530    # 10*(2^10) chars as input seems more than enough
     6531    test $ac_count -gt 10 && break
     6532  done
     6533  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     6534esac
     6535
     6536      $ac_path_EGREP_found && break 3
     6537    done
     6538  done
     6539  done
     6540IFS=$as_save_IFS
     6541  if test -z "$ac_cv_path_EGREP"; then
     6542    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     6543  fi
     6544else
     6545  ac_cv_path_EGREP=$EGREP
     6546fi
     6547
     6548   fi
     6549fi
     6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
     6551$as_echo "$ac_cv_path_EGREP" >&6; }
     6552 EGREP="$ac_cv_path_EGREP"
     6553
     6554
     6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     6556$as_echo_n "checking for ANSI C header files... " >&6; }
     6557if ${ac_cv_header_stdc+:} false; then :
     6558  $as_echo_n "(cached) " >&6
     6559else
     6560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56066561/* end confdefs.h.  */
    56076562#include <stdlib.h>
     
    56186573}
    56196574_ACEOF
    5620 rm -f conftest.$ac_objext
    5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5622   (eval $ac_compile) 2>conftest.er1
    5623   ac_status=$?
    5624   grep -v '^ *+' conftest.er1 >conftest.err
    5625   rm -f conftest.er1
    5626   cat conftest.err >&5
    5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5628   (exit $ac_status); } &&
    5629          { ac_try='test -z "$ac_cxx_werror_flag"
    5630                          || test ! -s conftest.err'
    5631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5632   (eval $ac_try) 2>&5
    5633   ac_status=$?
    5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5635   (exit $ac_status); }; } &&
    5636          { ac_try='test -s conftest.$ac_objext'
    5637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5638   (eval $ac_try) 2>&5
    5639   ac_status=$?
    5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5641   (exit $ac_status); }; }; then
     6575if ac_fn_cxx_try_compile "$LINENO"; then :
    56426576  ac_cv_header_stdc=yes
    56436577else
    5644   echo "$as_me: failed program was:" >&5
    5645 sed 's/^/| /' conftest.$ac_ext >&5
    5646 
    5647 ac_cv_header_stdc=no
    5648 fi
    5649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6578  ac_cv_header_stdc=no
     6579fi
     6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    56506581
    56516582if test $ac_cv_header_stdc = yes; then
    56526583  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    5653   cat >conftest.$ac_ext <<_ACEOF
    5654 /* confdefs.h.  */
    5655 _ACEOF
    5656 cat confdefs.h >>conftest.$ac_ext
    5657 cat >>conftest.$ac_ext <<_ACEOF
     6584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56586585/* end confdefs.h.  */
    56596586#include <string.h>
     
    56616588_ACEOF
    56626589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5663   $EGREP "memchr" >/dev/null 2>&1; then
    5664   :
     6590  $EGREP "memchr" >/dev/null 2>&1; then :
     6591
    56656592else
    56666593  ac_cv_header_stdc=no
     
    56726599if test $ac_cv_header_stdc = yes; then
    56736600  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    5674   cat >conftest.$ac_ext <<_ACEOF
    5675 /* confdefs.h.  */
    5676 _ACEOF
    5677 cat confdefs.h >>conftest.$ac_ext
    5678 cat >>conftest.$ac_ext <<_ACEOF
     6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    56796602/* end confdefs.h.  */
    56806603#include <stdlib.h>
     
    56826605_ACEOF
    56836606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    5684   $EGREP "free" >/dev/null 2>&1; then
    5685   :
     6607  $EGREP "free" >/dev/null 2>&1; then :
     6608
    56866609else
    56876610  ac_cv_header_stdc=no
     
    56936616if test $ac_cv_header_stdc = yes; then
    56946617  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    5695   if test "$cross_compiling" = yes; then
     6618  if test "$cross_compiling" = yes; then :
    56966619  :
    56976620else
    5698   cat >conftest.$ac_ext <<_ACEOF
    5699 /* confdefs.h.  */
    5700 _ACEOF
    5701 cat confdefs.h >>conftest.$ac_ext
    5702 cat >>conftest.$ac_ext <<_ACEOF
     6621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    57036622/* end confdefs.h.  */
    57046623#include <ctype.h>
     6624#include <stdlib.h>
    57056625#if ((' ' & 0x0FF) == 0x020)
    57066626# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    57226642    if (XOR (islower (i), ISLOWER (i))
    57236643        || toupper (i) != TOUPPER (i))
    5724       exit(2);
    5725   exit (0);
     6644      return 2;
     6645  return 0;
    57266646}
    57276647_ACEOF
    5728 rm -f conftest$ac_exeext
    5729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5730   (eval $ac_link) 2>&5
    5731   ac_status=$?
    5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    5734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5735   (eval $ac_try) 2>&5
    5736   ac_status=$?
    5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5738   (exit $ac_status); }; }; then
    5739   :
    5740 else
    5741   echo "$as_me: program exited with status $ac_status" >&5
    5742 echo "$as_me: failed program was:" >&5
    5743 sed 's/^/| /' conftest.$ac_ext >&5
    5744 
    5745 ( exit $ac_status )
    5746 ac_cv_header_stdc=no
    5747 fi
    5748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    5749 fi
    5750 fi
    5751 fi
    5752 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    5753 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     6648if ac_fn_cxx_try_run "$LINENO"; then :
     6649
     6650else
     6651  ac_cv_header_stdc=no
     6652fi
     6653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     6654  conftest.$ac_objext conftest.beam conftest.$ac_ext
     6655fi
     6656
     6657fi
     6658fi
     6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     6660$as_echo "$ac_cv_header_stdc" >&6; }
    57546661if test $ac_cv_header_stdc = yes; then
    57556662
    5756 cat >>confdefs.h <<\_ACEOF
    5757 #define STDC_HEADERS 1
    5758 _ACEOF
     6663$as_echo "#define STDC_HEADERS 1" >>confdefs.h
    57596664
    57606665fi
    57616666
    57626667# On IRIX 5.3, sys/types and inttypes.h are conflicting.
    5763 
    5764 
    5765 
    5766 
    5767 
    5768 
    5769 
    5770 
    5771 
    57726668for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    57736669                  inttypes.h stdint.h unistd.h
    5774 do
    5775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5776 echo "$as_me:$LINENO: checking for $ac_header" >&5
    5777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5779   echo $ECHO_N "(cached) $ECHO_C" >&6
    5780 else
    5781   cat >conftest.$ac_ext <<_ACEOF
    5782 /* confdefs.h.  */
     6670do :
     6671  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6672ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
     6673"
     6674if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     6675  cat >>confdefs.h <<_ACEOF
     6676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    57836677_ACEOF
    5784 cat confdefs.h >>conftest.$ac_ext
    5785 cat >>conftest.$ac_ext <<_ACEOF
    5786 /* end confdefs.h.  */
    5787 $ac_includes_default
    5788 
    5789 #include <$ac_header>
    5790 _ACEOF
    5791 rm -f conftest.$ac_objext
    5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5793   (eval $ac_compile) 2>conftest.er1
    5794   ac_status=$?
    5795   grep -v '^ *+' conftest.er1 >conftest.err
    5796   rm -f conftest.er1
    5797   cat conftest.err >&5
    5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5799   (exit $ac_status); } &&
    5800          { ac_try='test -z "$ac_cxx_werror_flag"
    5801                          || test ! -s conftest.err'
    5802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5803   (eval $ac_try) 2>&5
    5804   ac_status=$?
    5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5806   (exit $ac_status); }; } &&
    5807          { ac_try='test -s conftest.$ac_objext'
    5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5809   (eval $ac_try) 2>&5
    5810   ac_status=$?
    5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5812   (exit $ac_status); }; }; then
    5813   eval "$as_ac_Header=yes"
    5814 else
    5815   echo "$as_me: failed program was:" >&5
    5816 sed 's/^/| /' conftest.$ac_ext >&5
    5817 
    5818 eval "$as_ac_Header=no"
    5819 fi
    5820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5821 fi
    5822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6678
     6679fi
     6680
     6681done
     6682
     6683
     6684for ac_header in iostream sstream
     6685do :
     6686  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6687ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     6688if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    58256689  cat >>confdefs.h <<_ACEOF
    5826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    5827 _ACEOF
    5828 
    5829 fi
    5830 
    5831 done
    5832 
    5833 
    5834 
    5835 
    5836 for ac_header in iostream sstream
    5837 do
    5838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    5839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5840   echo "$as_me:$LINENO: checking for $ac_header" >&5
    5841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5843   echo $ECHO_N "(cached) $ECHO_C" >&6
    5844 fi
    5845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5847 else
    5848   # Is the header compilable?
    5849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    5850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    5851 cat >conftest.$ac_ext <<_ACEOF
    5852 /* confdefs.h.  */
    5853 _ACEOF
    5854 cat confdefs.h >>conftest.$ac_ext
    5855 cat >>conftest.$ac_ext <<_ACEOF
    5856 /* end confdefs.h.  */
    5857 $ac_includes_default
    5858 #include <$ac_header>
    5859 _ACEOF
    5860 rm -f conftest.$ac_objext
    5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5862   (eval $ac_compile) 2>conftest.er1
    5863   ac_status=$?
    5864   grep -v '^ *+' conftest.er1 >conftest.err
    5865   rm -f conftest.er1
    5866   cat conftest.err >&5
    5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5868   (exit $ac_status); } &&
    5869          { ac_try='test -z "$ac_cxx_werror_flag"
    5870                          || test ! -s conftest.err'
    5871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5872   (eval $ac_try) 2>&5
    5873   ac_status=$?
    5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5875   (exit $ac_status); }; } &&
    5876          { ac_try='test -s conftest.$ac_objext'
    5877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5878   (eval $ac_try) 2>&5
    5879   ac_status=$?
    5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5881   (exit $ac_status); }; }; then
    5882   ac_header_compiler=yes
    5883 else
    5884   echo "$as_me: failed program was:" >&5
    5885 sed 's/^/| /' conftest.$ac_ext >&5
    5886 
    5887 ac_header_compiler=no
    5888 fi
    5889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    5891 echo "${ECHO_T}$ac_header_compiler" >&6
    5892 
    5893 # Is the header present?
    5894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    5895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    5896 cat >conftest.$ac_ext <<_ACEOF
    5897 /* confdefs.h.  */
    5898 _ACEOF
    5899 cat confdefs.h >>conftest.$ac_ext
    5900 cat >>conftest.$ac_ext <<_ACEOF
    5901 /* end confdefs.h.  */
    5902 #include <$ac_header>
    5903 _ACEOF
    5904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5906   ac_status=$?
    5907   grep -v '^ *+' conftest.er1 >conftest.err
    5908   rm -f conftest.er1
    5909   cat conftest.err >&5
    5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5911   (exit $ac_status); } >/dev/null; then
    5912   if test -s conftest.err; then
    5913     ac_cpp_err=$ac_cxx_preproc_warn_flag
    5914     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    5915   else
    5916     ac_cpp_err=
    5917   fi
    5918 else
    5919   ac_cpp_err=yes
    5920 fi
    5921 if test -z "$ac_cpp_err"; then
    5922   ac_header_preproc=yes
    5923 else
    5924   echo "$as_me: failed program was:" >&5
    5925 sed 's/^/| /' conftest.$ac_ext >&5
    5926 
    5927   ac_header_preproc=no
    5928 fi
    5929 rm -f conftest.err conftest.$ac_ext
    5930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    5931 echo "${ECHO_T}$ac_header_preproc" >&6
    5932 
    5933 # So?  What about this header?
    5934 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    5935   yes:no: )
    5936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    5937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    5939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    5940     ac_header_preproc=yes
    5941     ;;
    5942   no:yes:* )
    5943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    5944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    5945     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    5946 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    5947     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    5948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    5949     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    5950 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    5951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    5952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5953     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    5954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    5955     (
    5956       cat <<\_ASBOX
    5957 ## ------------------------------------------ ##
    5958 ## Report this to the AC_PACKAGE_NAME lists.  ##
    5959 ## ------------------------------------------ ##
    5960 _ASBOX
    5961     ) |
    5962       sed "s/^/$as_me: WARNING:     /" >&2
    5963     ;;
    5964 esac
    5965 echo "$as_me:$LINENO: checking for $ac_header" >&5
    5966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    5967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    5968   echo $ECHO_N "(cached) $ECHO_C" >&6
    5969 else
    5970   eval "$as_ac_Header=\$ac_header_preproc"
    5971 fi
    5972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    5973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    5974 
    5975 fi
    5976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    5977   cat >>confdefs.h <<_ACEOF
    5978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    59796691_ACEOF
    59806692
     
    59906702
    59916703
    5992 echo "$as_me:$LINENO: checking iostream name" >&5
    5993 echo $ECHO_N "checking iostream name... $ECHO_C" >&6
     6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking iostream name" >&5
     6705$as_echo_n "checking iostream name... " >&6; }
    59946706if test x$ac_cv_header_iostream = xyes; then
    59956707  iostream=iostream
     
    59976709  iostream=iostream.h
    59986710fi
    5999 echo "$as_me:$LINENO: result: $iostream" >&5
    6000 echo "${ECHO_T}$iostream" >&6
    6001 
    6002 
    6003 
    6004 
    6005 ac_ext=cc
     6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iostream" >&5
     6712$as_echo "$iostream" >&6; }
     6713
     6714
     6715
     6716ac_ext=cpp
    60066717ac_cpp='$CXXCPP $CPPFLAGS'
    60076718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    60096720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    60106721
    6011 echo "$as_me:$LINENO: checking \"for namespace std\"" >&5
    6012 echo $ECHO_N "checking \"for namespace std\"... $ECHO_C" >&6
    6013 cat >conftest.$ac_ext <<_ACEOF
    6014 /* confdefs.h.  */
    6015 _ACEOF
    6016 cat confdefs.h >>conftest.$ac_ext
    6017 cat >>conftest.$ac_ext <<_ACEOF
     6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for namespace std\"" >&5
     6723$as_echo_n "checking \"for namespace std\"... " >&6; }
     6724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    60186725/* end confdefs.h.  */
    60196726
     
    60326739}
    60336740_ACEOF
    6034 rm -f conftest.$ac_objext conftest$ac_exeext
    6035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6036   (eval $ac_link) 2>conftest.er1
    6037   ac_status=$?
    6038   grep -v '^ *+' conftest.er1 >conftest.err
    6039   rm -f conftest.er1
    6040   cat conftest.err >&5
    6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6042   (exit $ac_status); } &&
    6043          { ac_try='test -z "$ac_cxx_werror_flag"
    6044                          || test ! -s conftest.err'
    6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6046   (eval $ac_try) 2>&5
    6047   ac_status=$?
    6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6049   (exit $ac_status); }; } &&
    6050          { ac_try='test -s conftest$ac_exeext'
    6051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6052   (eval $ac_try) 2>&5
    6053   ac_status=$?
    6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6055   (exit $ac_status); }; }; then
    6056 
    6057 cat >>confdefs.h <<\_ACEOF
    6058 #define USING_NAMESPACE_STD 1
    6059 _ACEOF
     6741if ac_fn_cxx_try_link "$LINENO"; then :
     6742
     6743
     6744$as_echo "#define USING_NAMESPACE_STD 1" >>confdefs.h
    60606745
    60616746NAMESPACE_STD=std::
    6062 echo "$as_me:$LINENO: result: \"yes\"" >&5
    6063 echo "${ECHO_T}\"yes\"" >&6
    6064 
    6065 else
    6066   echo "$as_me: failed program was:" >&5
    6067 sed 's/^/| /' conftest.$ac_ext >&5
    6068 
    6069 NAMESPACE_STD=
    6070 echo "$as_me:$LINENO: result: \"no\"" >&5
    6071 echo "${ECHO_T}\"no\"" >&6
    6072 
    6073 fi
    6074 rm -f conftest.err conftest.$ac_objext \
    6075       conftest$ac_exeext conftest.$ac_ext;
     6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
     6748$as_echo "\"yes\"" >&6; }
     6749
     6750else
     6751  NAMESPACE_STD=
     6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
     6753$as_echo "\"no\"" >&6; }
     6754
     6755fi
     6756rm -f core conftest.err conftest.$ac_objext \
     6757    conftest$ac_exeext conftest.$ac_ext;
    60766758ac_ext=c
    60776759ac_cpp='$CPP $CPPFLAGS'
     
    60846766if test X$GXX = Xyes; then
    60856767
    6086 
    6087 ac_ext=cc
     6768ac_ext=cpp
    60886769ac_cpp='$CXXCPP $CPPFLAGS'
    60896770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    60916772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    60926773
    6093 echo "$as_me:$LINENO: checking \"for GNU libc++-v3 prerelease bug\"" >&5
    6094 echo $ECHO_N "checking \"for GNU libc++-v3 prerelease bug\"... $ECHO_C" >&6
    6095 cat >conftest.$ac_ext <<_ACEOF
    6096 /* confdefs.h.  */
    6097 _ACEOF
    6098 cat confdefs.h >>conftest.$ac_ext
    6099 cat >>conftest.$ac_ext <<_ACEOF
     6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for GNU libc++-v3 prerelease bug\"" >&5
     6775$as_echo_n "checking \"for GNU libc++-v3 prerelease bug\"... " >&6; }
     6776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    61006777/* end confdefs.h.  */
    61016778
     
    61126789}
    61136790_ACEOF
    6114 rm -f conftest.$ac_objext conftest$ac_exeext
    6115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6116   (eval $ac_link) 2>conftest.er1
    6117   ac_status=$?
    6118   grep -v '^ *+' conftest.er1 >conftest.err
    6119   rm -f conftest.er1
    6120   cat conftest.err >&5
    6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6122   (exit $ac_status); } &&
    6123          { ac_try='test -z "$ac_cxx_werror_flag"
    6124                          || test ! -s conftest.err'
    6125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6126   (eval $ac_try) 2>&5
    6127   ac_status=$?
    6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6129   (exit $ac_status); }; } &&
    6130          { ac_try='test -s conftest$ac_exeext'
    6131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6132   (eval $ac_try) 2>&5
    6133   ac_status=$?
    6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6135   (exit $ac_status); }; }; then
    6136 
    6137 echo "$as_me:$LINENO: result: \"no\"" >&5
    6138 echo "${ECHO_T}\"no\"" >&6
    6139 
    6140 else
    6141   echo "$as_me: failed program was:" >&5
    6142 sed 's/^/| /' conftest.$ac_ext >&5
    6143 
    6144 EXTRADEFINES="$EXTRADEFINES -D_ISOC99_SOURCE=1"
    6145 echo "$as_me:$LINENO: result: \"yes\"" >&5
    6146 echo "${ECHO_T}\"yes\"" >&6
    6147 
    6148 fi
    6149 rm -f conftest.err conftest.$ac_objext \
    6150       conftest$ac_exeext conftest.$ac_ext;
     6791if ac_fn_cxx_try_link "$LINENO"; then :
     6792
     6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
     6794$as_echo "\"no\"" >&6; }
     6795
     6796else
     6797  EXTRADEFINES="$EXTRADEFINES -D_ISOC99_SOURCE=1"
     6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
     6799$as_echo "\"yes\"" >&6; }
     6800
     6801fi
     6802rm -f core conftest.err conftest.$ac_objext \
     6803    conftest$ac_exeext conftest.$ac_ext;
    61516804ac_ext=c
    61526805ac_cpp='$CPP $CPPFLAGS'
     
    61906843
    61916844
    6192 
    6193 
    6194 
    6195 
    6196 
    61976845for ac_header in fp.h endian.h machine/endian.h sys/endian.h sys/machine.h
    6198 do
    6199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6201   echo "$as_me:$LINENO: checking for $ac_header" >&5
    6202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    6203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6204   echo $ECHO_N "(cached) $ECHO_C" >&6
    6205 fi
    6206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    6207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    6208 else
    6209   # Is the header compilable?
    6210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    6211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    6212 cat >conftest.$ac_ext <<_ACEOF
    6213 /* confdefs.h.  */
     6846do :
     6847  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6848ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     6849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     6850  cat >>confdefs.h <<_ACEOF
     6851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    62146852_ACEOF
    6215 cat confdefs.h >>conftest.$ac_ext
    6216 cat >>conftest.$ac_ext <<_ACEOF
    6217 /* end confdefs.h.  */
    6218 $ac_includes_default
    6219 #include <$ac_header>
    6220 _ACEOF
    6221 rm -f conftest.$ac_objext
    6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6223   (eval $ac_compile) 2>conftest.er1
    6224   ac_status=$?
    6225   grep -v '^ *+' conftest.er1 >conftest.err
    6226   rm -f conftest.er1
    6227   cat conftest.err >&5
    6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6229   (exit $ac_status); } &&
    6230          { ac_try='test -z "$ac_c_werror_flag"
    6231                          || test ! -s conftest.err'
    6232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6233   (eval $ac_try) 2>&5
    6234   ac_status=$?
    6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6236   (exit $ac_status); }; } &&
    6237          { ac_try='test -s conftest.$ac_objext'
    6238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6239   (eval $ac_try) 2>&5
    6240   ac_status=$?
    6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6242   (exit $ac_status); }; }; then
    6243   ac_header_compiler=yes
    6244 else
    6245   echo "$as_me: failed program was:" >&5
    6246 sed 's/^/| /' conftest.$ac_ext >&5
    6247 
    6248 ac_header_compiler=no
    6249 fi
    6250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    6252 echo "${ECHO_T}$ac_header_compiler" >&6
    6253 
    6254 # Is the header present?
    6255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    6256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    6257 cat >conftest.$ac_ext <<_ACEOF
    6258 /* confdefs.h.  */
    6259 _ACEOF
    6260 cat confdefs.h >>conftest.$ac_ext
    6261 cat >>conftest.$ac_ext <<_ACEOF
    6262 /* end confdefs.h.  */
    6263 #include <$ac_header>
    6264 _ACEOF
    6265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    6266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    6267   ac_status=$?
    6268   grep -v '^ *+' conftest.er1 >conftest.err
    6269   rm -f conftest.er1
    6270   cat conftest.err >&5
    6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6272   (exit $ac_status); } >/dev/null; then
    6273   if test -s conftest.err; then
    6274     ac_cpp_err=$ac_c_preproc_warn_flag
    6275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    6276   else
    6277     ac_cpp_err=
    6278   fi
    6279 else
    6280   ac_cpp_err=yes
    6281 fi
    6282 if test -z "$ac_cpp_err"; then
    6283   ac_header_preproc=yes
    6284 else
    6285   echo "$as_me: failed program was:" >&5
    6286 sed 's/^/| /' conftest.$ac_ext >&5
    6287 
    6288   ac_header_preproc=no
    6289 fi
    6290 rm -f conftest.err conftest.$ac_ext
    6291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    6292 echo "${ECHO_T}$ac_header_preproc" >&6
    6293 
    6294 # So?  What about this header?
    6295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    6296   yes:no: )
    6297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    6298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    6299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    6300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    6301     ac_header_preproc=yes
    6302     ;;
    6303   no:yes:* )
    6304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    6305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    6306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    6307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    6308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    6309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    6310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    6311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    6312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    6313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    6314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    6315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    6316     (
    6317       cat <<\_ASBOX
    6318 ## ------------------------------------------ ##
    6319 ## Report this to the AC_PACKAGE_NAME lists.  ##
    6320 ## ------------------------------------------ ##
    6321 _ASBOX
    6322     ) |
    6323       sed "s/^/$as_me: WARNING:     /" >&2
    6324     ;;
    6325 esac
    6326 echo "$as_me:$LINENO: checking for $ac_header" >&5
    6327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    6328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    6329   echo $ECHO_N "(cached) $ECHO_C" >&6
    6330 else
    6331   eval "$as_ac_Header=\$ac_header_preproc"
    6332 fi
    6333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    6334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    6335 
    6336 fi
    6337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    6338   cat >>confdefs.h <<_ACEOF
    6339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    6340 _ACEOF
    63416853
    63426854fi
     
    63446856done
    63456857
    6346 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
    6347 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
    6348 if test "${sc_cv_c_bigendian+set}" = set; then
    6349   echo $ECHO_N "(cached) $ECHO_C" >&6
     6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     6859$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
     6860if ${sc_cv_c_bigendian+:} false; then :
     6861  $as_echo_n "(cached) " >&6
    63506862else
    63516863  sc_cv_c_bigendian=unknown
    63526864# See if sys/param.h defines the BYTE_ORDER macro.
    6353 cat >conftest.$ac_ext <<_ACEOF
    6354 /* confdefs.h.  */
    6355 _ACEOF
    6356 cat confdefs.h >>conftest.$ac_ext
    6357 cat >>conftest.$ac_ext <<_ACEOF
     6865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    63586866/* end confdefs.h.  */
    63596867#include "confdefs.h"
     
    63866894}
    63876895_ACEOF
    6388 rm -f conftest.$ac_objext
    6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6390   (eval $ac_compile) 2>conftest.er1
    6391   ac_status=$?
    6392   grep -v '^ *+' conftest.er1 >conftest.err
    6393   rm -f conftest.er1
    6394   cat conftest.err >&5
    6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6396   (exit $ac_status); } &&
    6397          { ac_try='test -z "$ac_c_werror_flag"
    6398                          || test ! -s conftest.err'
    6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6400   (eval $ac_try) 2>&5
    6401   ac_status=$?
    6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6403   (exit $ac_status); }; } &&
    6404          { ac_try='test -s conftest.$ac_objext'
    6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6406   (eval $ac_try) 2>&5
    6407   ac_status=$?
    6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6409   (exit $ac_status); }; }; then
     6896if ac_fn_c_try_compile "$LINENO"; then :
    64106897  # It does; now see whether it defined to BIG_ENDIAN or not.
    6411 cat >conftest.$ac_ext <<_ACEOF
    6412 /* confdefs.h.  */
    6413 _ACEOF
    6414 cat confdefs.h >>conftest.$ac_ext
    6415 cat >>conftest.$ac_ext <<_ACEOF
     6898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    64166899/* end confdefs.h.  */
    64176900#include "confdefs.h"
     
    64476930}
    64486931_ACEOF
    6449 rm -f conftest.$ac_objext
    6450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    6451   (eval $ac_compile) 2>conftest.er1
    6452   ac_status=$?
    6453   grep -v '^ *+' conftest.er1 >conftest.err
    6454   rm -f conftest.er1
    6455   cat conftest.err >&5
    6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6457   (exit $ac_status); } &&
    6458          { ac_try='test -z "$ac_c_werror_flag"
    6459                          || test ! -s conftest.err'
    6460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6461   (eval $ac_try) 2>&5
    6462   ac_status=$?
    6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6464   (exit $ac_status); }; } &&
    6465          { ac_try='test -s conftest.$ac_objext'
    6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6467   (eval $ac_try) 2>&5
    6468   ac_status=$?
    6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6470   (exit $ac_status); }; }; then
     6932if ac_fn_c_try_compile "$LINENO"; then :
    64716933  sc_cv_c_bigendian=yes
    64726934else
    6473   echo "$as_me: failed program was:" >&5
    6474 sed 's/^/| /' conftest.$ac_ext >&5
    6475 
    6476 sc_cv_c_bigendian=no
    6477 fi
    6478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    6479 else
    6480   echo "$as_me: failed program was:" >&5
    6481 sed 's/^/| /' conftest.$ac_ext >&5
    6482 
    6483 fi
    6484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6935  sc_cv_c_bigendian=no
     6936fi
     6937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6938fi
     6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    64856940if test $sc_cv_c_bigendian = unknown; then
    6486 if test "$cross_compiling" = yes; then
    6487   { { echo "$as_me:$LINENO: error: Could not determine endianness and cross compiling" >&5
    6488 echo "$as_me: error: Could not determine endianness and cross compiling" >&2;}
    6489    { (exit 1); exit 1; }; }
    6490 
    6491 else
    6492   cat >conftest.$ac_ext <<_ACEOF
    6493 /* confdefs.h.  */
    6494 _ACEOF
    6495 cat confdefs.h >>conftest.$ac_ext
    6496 cat >>conftest.$ac_ext <<_ACEOF
     6941if test "$cross_compiling" = yes; then :
     6942  as_fn_error $? "Could not determine endianness and cross compiling" "$LINENO" 5
     6943
     6944else
     6945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    64976946/* end confdefs.h.  */
    64986947main () {
     
    65076956}
    65086957_ACEOF
    6509 rm -f conftest$ac_exeext
    6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6511   (eval $ac_link) 2>&5
    6512   ac_status=$?
    6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    6515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6516   (eval $ac_try) 2>&5
    6517   ac_status=$?
    6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6519   (exit $ac_status); }; }; then
     6958if ac_fn_c_try_run "$LINENO"; then :
    65206959  sc_cv_c_bigendian=no
    65216960else
    6522   echo "$as_me: program exited with status $ac_status" >&5
    6523 echo "$as_me: failed program was:" >&5
    6524 sed 's/^/| /' conftest.$ac_ext >&5
    6525 
    6526 ( exit $ac_status )
    6527 sc_cv_c_bigendian=yes
    6528 fi
    6529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    6530 fi
    6531 fi
    6532 fi
    6533 echo "$as_me:$LINENO: result: $sc_cv_c_bigendian" >&5
    6534 echo "${ECHO_T}$sc_cv_c_bigendian" >&6
     6961  sc_cv_c_bigendian=yes
     6962fi
     6963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     6964  conftest.$ac_objext conftest.beam conftest.$ac_ext
     6965fi
     6966
     6967fi
     6968fi
     6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sc_cv_c_bigendian" >&5
     6970$as_echo "$sc_cv_c_bigendian" >&6; }
    65356971if test $sc_cv_c_bigendian = yes; then
    6536   cat >>confdefs.h <<\_ACEOF
    6537 #define WORDS_BIGENDIAN 1
    6538 _ACEOF
     6972
     6973$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
    65396974
    65406975fi
     
    65436978if test "(" X$PARALLEL = Xyes -a X$THREADS != Xno ")" -o X$THREADS = Xyes; then
    65446979
    6545 echo "$as_me:$LINENO: checking pthreads" >&5
    6546 echo $ECHO_N "checking pthreads... $ECHO_C" >&6
    6547 
    6548 
    6549 ac_ext=cc
     6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pthreads" >&5
     6981$as_echo_n "checking pthreads... " >&6; }
     6982
     6983ac_ext=cpp
    65506984ac_cpp='$CXXCPP $CPPFLAGS'
    65516985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    65546988
    65556989LIBSSAV="$LIBS"
    6556 cat >conftest.$ac_ext <<_ACEOF
    6557 /* confdefs.h.  */
    6558 _ACEOF
    6559 cat confdefs.h >>conftest.$ac_ext
    6560 cat >>conftest.$ac_ext <<_ACEOF
     6990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    65616991/* end confdefs.h.  */
    65626992#include <pthread.h>
     
    65696999}
    65707000_ACEOF
    6571 rm -f conftest.$ac_objext conftest$ac_exeext
    6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6573   (eval $ac_link) 2>conftest.er1
    6574   ac_status=$?
    6575   grep -v '^ *+' conftest.er1 >conftest.err
    6576   rm -f conftest.er1
    6577   cat conftest.err >&5
    6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6579   (exit $ac_status); } &&
    6580          { ac_try='test -z "$ac_cxx_werror_flag"
    6581                          || test ! -s conftest.err'
    6582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6583   (eval $ac_try) 2>&5
    6584   ac_status=$?
    6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6586   (exit $ac_status); }; } &&
    6587          { ac_try='test -s conftest$ac_exeext'
    6588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6589   (eval $ac_try) 2>&5
    6590   ac_status=$?
    6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6592   (exit $ac_status); }; }; then
     7001if ac_fn_cxx_try_link "$LINENO"; then :
    65937002
    65947003HAVE_PTHREAD=yes
    65957004else
    6596   echo "$as_me: failed program was:" >&5
    6597 sed 's/^/| /' conftest.$ac_ext >&5
    6598 
    65997005
    66007006HAVE_PTHREAD=no
    66017007fi
    6602 rm -f conftest.err conftest.$ac_objext \
    6603       conftest$ac_exeext conftest.$ac_ext
     7008rm -f core conftest.err conftest.$ac_objext \
     7009    conftest$ac_exeext conftest.$ac_ext
    66047010ac_ext=c
    66057011ac_cpp='$CPP $CPPFLAGS'
     
    66117017if test $HAVE_PTHREAD = no; then
    66127018
    6613 
    6614 ac_ext=cc
     7019ac_ext=cpp
    66157020ac_cpp='$CXXCPP $CPPFLAGS'
    66167021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    66207025LIBSSAV="$LIBS"
    66217026LIBS="$LIBS -lpthread"
    6622 cat >conftest.$ac_ext <<_ACEOF
    6623 /* confdefs.h.  */
    6624 _ACEOF
    6625 cat confdefs.h >>conftest.$ac_ext
    6626 cat >>conftest.$ac_ext <<_ACEOF
     7027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    66277028/* end confdefs.h.  */
    66287029#include <pthread.h>
     
    66357036}
    66367037_ACEOF
    6637 rm -f conftest.$ac_objext conftest$ac_exeext
    6638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6639   (eval $ac_link) 2>conftest.er1
    6640   ac_status=$?
    6641   grep -v '^ *+' conftest.er1 >conftest.err
    6642   rm -f conftest.er1
    6643   cat conftest.err >&5
    6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6645   (exit $ac_status); } &&
    6646          { ac_try='test -z "$ac_cxx_werror_flag"
    6647                          || test ! -s conftest.err'
    6648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6649   (eval $ac_try) 2>&5
    6650   ac_status=$?
    6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6652   (exit $ac_status); }; } &&
    6653          { ac_try='test -s conftest$ac_exeext'
    6654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6655   (eval $ac_try) 2>&5
    6656   ac_status=$?
    6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6658   (exit $ac_status); }; }; then
     7038if ac_fn_cxx_try_link "$LINENO"; then :
    66597039
    66607040HAVE_PTHREAD=yes
    66617041else
    6662   echo "$as_me: failed program was:" >&5
    6663 sed 's/^/| /' conftest.$ac_ext >&5
    6664 
    66657042
    66667043HAVE_PTHREAD=no
    66677044LIBS="$LIBSSAV"
    66687045fi
    6669 rm -f conftest.err conftest.$ac_objext \
    6670       conftest$ac_exeext conftest.$ac_ext
     7046rm -f core conftest.err conftest.$ac_objext \
     7047    conftest$ac_exeext conftest.$ac_ext
    66717048ac_ext=c
    66727049ac_cpp='$CPP $CPPFLAGS'
     
    66797056if test $HAVE_PTHREAD = no; then
    66807057
    6681 
    6682 ac_ext=cc
     7058ac_ext=cpp
    66837059ac_cpp='$CXXCPP $CPPFLAGS'
    66847060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    66887064LIBSSAV="$LIBS"
    66897065LIBS="$LIBS -lpthreads"
    6690 cat >conftest.$ac_ext <<_ACEOF
    6691 /* confdefs.h.  */
    6692 _ACEOF
    6693 cat confdefs.h >>conftest.$ac_ext
    6694 cat >>conftest.$ac_ext <<_ACEOF
     7066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    66957067/* end confdefs.h.  */
    66967068#include <pthread.h>
     
    67037075}
    67047076_ACEOF
    6705 rm -f conftest.$ac_objext conftest$ac_exeext
    6706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6707   (eval $ac_link) 2>conftest.er1
    6708   ac_status=$?
    6709   grep -v '^ *+' conftest.er1 >conftest.err
    6710   rm -f conftest.er1
    6711   cat conftest.err >&5
    6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6713   (exit $ac_status); } &&
    6714          { ac_try='test -z "$ac_cxx_werror_flag"
    6715                          || test ! -s conftest.err'
    6716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6717   (eval $ac_try) 2>&5
    6718   ac_status=$?
    6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6720   (exit $ac_status); }; } &&
    6721          { ac_try='test -s conftest$ac_exeext'
    6722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6723   (eval $ac_try) 2>&5
    6724   ac_status=$?
    6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6726   (exit $ac_status); }; }; then
     7077if ac_fn_cxx_try_link "$LINENO"; then :
    67277078
    67287079HAVE_PTHREAD=yes
    67297080else
    6730   echo "$as_me: failed program was:" >&5
    6731 sed 's/^/| /' conftest.$ac_ext >&5
    6732 
    67337081
    67347082HAVE_PTHREAD=no
    67357083LIBS="$LIBSSAV"
    67367084fi
    6737 rm -f conftest.err conftest.$ac_objext \
    6738       conftest$ac_exeext conftest.$ac_ext
     7085rm -f core conftest.err conftest.$ac_objext \
     7086    conftest$ac_exeext conftest.$ac_ext
    67397087ac_ext=c
    67407088ac_cpp='$CPP $CPPFLAGS'
     
    67457093fi
    67467094
    6747 echo "$as_me:$LINENO: result: $HAVE_PTHREAD" >&5
    6748 echo "${ECHO_T}$HAVE_PTHREAD" >&6
     7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PTHREAD" >&5
     7096$as_echo "$HAVE_PTHREAD" >&6; }
    67497097fi
    67507098if test X$HAVE_PTHREAD = Xyes; then
    6751   cat >>confdefs.h <<\_ACEOF
    6752 #define HAVE_PTHREAD 1
    6753 _ACEOF
     7099
     7100$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
    67547101
    67557102  EXTRADEFINES="-D_REENTRANT $EXTRADEFINES"
    6756   echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5
    6757 echo $ECHO_N "checking for pthread_attr_getstacksize... $ECHO_C" >&6
    6758 if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then
    6759   echo $ECHO_N "(cached) $ECHO_C" >&6
    6760 else
    6761   cat >conftest.$ac_ext <<_ACEOF
    6762 /* confdefs.h.  */
    6763 _ACEOF
    6764 cat confdefs.h >>conftest.$ac_ext
    6765 cat >>conftest.$ac_ext <<_ACEOF
     7103  ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
     7104if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
     7105
     7106fi
     7107
     7108  ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
     7109if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then :
     7110
     7111fi
     7112
     7113  ac_fn_c_check_func "$LINENO" "pthread_attr_setscope" "ac_cv_func_pthread_attr_setscope"
     7114if test "x$ac_cv_func_pthread_attr_setscope" = xyes; then :
     7115
     7116fi
     7117
     7118  ac_fn_c_check_func "$LINENO" "pthread_attr_getscope" "ac_cv_func_pthread_attr_getscope"
     7119if test "x$ac_cv_func_pthread_attr_getscope" = xyes; then :
     7120
     7121fi
     7122
     7123  ac_fn_c_check_func "$LINENO" "pthread_attr_setinheritsched" "ac_cv_func_pthread_attr_setinheritsched"
     7124if test "x$ac_cv_func_pthread_attr_setinheritsched" = xyes; then :
     7125
     7126fi
     7127
     7128  ac_fn_c_check_func "$LINENO" "pthread_attr_getinheritsched" "ac_cv_func_pthread_attr_getinheritsched"
     7129if test "x$ac_cv_func_pthread_attr_getinheritsched" = xyes; then :
     7130
     7131fi
     7132
     7133  ac_fn_c_check_func "$LINENO" "pthread_attr_setschedpolicy" "ac_cv_func_pthread_attr_setschedpolicy"
     7134if test "x$ac_cv_func_pthread_attr_setschedpolicy" = xyes; then :
     7135
     7136fi
     7137
     7138  ac_fn_c_check_func "$LINENO" "pthread_attr_getschedpolicy" "ac_cv_func_pthread_attr_getschedpolicy"
     7139if test "x$ac_cv_func_pthread_attr_getschedpolicy" = xyes; then :
     7140
     7141fi
     7142
     7143  ac_fn_c_check_func "$LINENO" "pthread_attr_setschedparam" "ac_cv_func_pthread_attr_setschedparam"
     7144if test "x$ac_cv_func_pthread_attr_setschedparam" = xyes; then :
     7145
     7146fi
     7147
     7148  ac_fn_c_check_func "$LINENO" "pthread_attr_getschedparam" "ac_cv_func_pthread_attr_getschedparam"
     7149if test "x$ac_cv_func_pthread_attr_getschedparam" = xyes; then :
     7150
     7151fi
     7152
     7153  ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
     7154if test "x$ac_cv_func_sched_get_priority_max" = xyes; then :
     7155
     7156fi
     7157
     7158  ac_fn_c_check_func "$LINENO" "sched_get_priority_min" "ac_cv_func_sched_get_priority_min"
     7159if test "x$ac_cv_func_sched_get_priority_min" = xyes; then :
     7160
     7161fi
     7162
     7163fi
     7164
     7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
     7166$as_echo_n "checking for main in -ldl... " >&6; }
     7167if ${ac_cv_lib_dl_main+:} false; then :
     7168  $as_echo_n "(cached) " >&6
     7169else
     7170  ac_check_lib_save_LIBS=$LIBS
     7171LIBS="-ldl  $LIBS"
     7172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    67667173/* end confdefs.h.  */
    6767 /* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize.
    6768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6769 #define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize
    6770 
    6771 /* System header to define __stub macros and hopefully few prototypes,
    6772     which can conflict with char pthread_attr_getstacksize (); below.
    6773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6774     <limits.h> exists even on freestanding compilers.  */
    6775 
    6776 #ifdef __STDC__
    6777 # include <limits.h>
    6778 #else
    6779 # include <assert.h>
    6780 #endif
    6781 
    6782 #undef pthread_attr_getstacksize
    6783 
    6784 /* Override any gcc2 internal prototype to avoid an error.  */
    6785 #ifdef __cplusplus
    6786 extern "C"
    6787 {
    6788 #endif
    6789 /* We use char because int might match the return type of a gcc2
    6790    builtin and then its argument prototype would still apply.  */
    6791 char pthread_attr_getstacksize ();
    6792 /* The GNU C library defines this for functions which it implements
    6793     to always fail with ENOSYS.  Some functions are actually named
    6794     something starting with __ and the normal name is an alias.  */
    6795 #if defined (__stub_pthread_attr_getstacksize) || defined (__stub___pthread_attr_getstacksize)
    6796 choke me
    6797 #else
    6798 char (*f) () = pthread_attr_getstacksize;
    6799 #endif
    6800 #ifdef __cplusplus
    6801 }
    6802 #endif
     7174
    68037175
    68047176int
    68057177main ()
    68067178{
    6807 return f != pthread_attr_getstacksize;
     7179return main ();
    68087180  ;
    68097181  return 0;
    68107182}
    68117183_ACEOF
    6812 rm -f conftest.$ac_objext conftest$ac_exeext
    6813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6814   (eval $ac_link) 2>conftest.er1
    6815   ac_status=$?
    6816   grep -v '^ *+' conftest.er1 >conftest.err
    6817   rm -f conftest.er1
    6818   cat conftest.err >&5
    6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6820   (exit $ac_status); } &&
    6821          { ac_try='test -z "$ac_c_werror_flag"
    6822                          || test ! -s conftest.err'
    6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6824   (eval $ac_try) 2>&5
    6825   ac_status=$?
    6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6827   (exit $ac_status); }; } &&
    6828          { ac_try='test -s conftest$ac_exeext'
    6829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6830   (eval $ac_try) 2>&5
    6831   ac_status=$?
    6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6833   (exit $ac_status); }; }; then
    6834   ac_cv_func_pthread_attr_getstacksize=yes
    6835 else
    6836   echo "$as_me: failed program was:" >&5
    6837 sed 's/^/| /' conftest.$ac_ext >&5
    6838 
    6839 ac_cv_func_pthread_attr_getstacksize=no
    6840 fi
    6841 rm -f conftest.err conftest.$ac_objext \
    6842       conftest$ac_exeext conftest.$ac_ext
    6843 fi
    6844 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5
    6845 echo "${ECHO_T}$ac_cv_func_pthread_attr_getstacksize" >&6
    6846 
    6847   echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
    6848 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
    6849 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
    6850   echo $ECHO_N "(cached) $ECHO_C" >&6
    6851 else
    6852   cat >conftest.$ac_ext <<_ACEOF
    6853 /* confdefs.h.  */
     7184if ac_fn_c_try_link "$LINENO"; then :
     7185  ac_cv_lib_dl_main=yes
     7186else
     7187  ac_cv_lib_dl_main=no
     7188fi
     7189rm -f core conftest.err conftest.$ac_objext \
     7190    conftest$ac_exeext conftest.$ac_ext
     7191LIBS=$ac_check_lib_save_LIBS
     7192fi
     7193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
     7194$as_echo "$ac_cv_lib_dl_main" >&6; }
     7195if test "x$ac_cv_lib_dl_main" = xyes; then :
     7196  cat >>confdefs.h <<_ACEOF
     7197#define HAVE_LIBDL 1
    68547198_ACEOF
    6855 cat confdefs.h >>conftest.$ac_ext
    6856 cat >>conftest.$ac_ext <<_ACEOF
     7199
     7200  LIBS="-ldl $LIBS"
     7201
     7202fi
     7203
     7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
     7205$as_echo_n "checking for main in -lm... " >&6; }
     7206if ${ac_cv_lib_m_main+:} false; then :
     7207  $as_echo_n "(cached) " >&6
     7208else
     7209  ac_check_lib_save_LIBS=$LIBS
     7210LIBS="-lm  $LIBS"
     7211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    68577212/* end confdefs.h.  */
    6858 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
    6859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6860 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
    6861 
    6862 /* System header to define __stub macros and hopefully few prototypes,
    6863     which can conflict with char pthread_attr_setstacksize (); below.
    6864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6865     <limits.h> exists even on freestanding compilers.  */
    6866 
    6867 #ifdef __STDC__
    6868 # include <limits.h>
    6869 #else
    6870 # include <assert.h>
    6871 #endif
    6872 
    6873 #undef pthread_attr_setstacksize
    6874 
    6875 /* Override any gcc2 internal prototype to avoid an error.  */
    6876 #ifdef __cplusplus
    6877 extern "C"
    6878 {
    6879 #endif
    6880 /* We use char because int might match the return type of a gcc2
    6881    builtin and then its argument prototype would still apply.  */
    6882 char pthread_attr_setstacksize ();
    6883 /* The GNU C library defines this for functions which it implements
    6884     to always fail with ENOSYS.  Some functions are actually named
    6885     something starting with __ and the normal name is an alias.  */
    6886 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
    6887 choke me
    6888 #else
    6889 char (*f) () = pthread_attr_setstacksize;
    6890 #endif
    6891 #ifdef __cplusplus
    6892 }
    6893 #endif
     7213
    68947214
    68957215int
    68967216main ()
    68977217{
    6898 return f != pthread_attr_setstacksize;
     7218return main ();
    68997219  ;
    69007220  return 0;
    69017221}
    69027222_ACEOF
    6903 rm -f conftest.$ac_objext conftest$ac_exeext
    6904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6905   (eval $ac_link) 2>conftest.er1
    6906   ac_status=$?
    6907   grep -v '^ *+' conftest.er1 >conftest.err
    6908   rm -f conftest.er1
    6909   cat conftest.err >&5
    6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6911   (exit $ac_status); } &&
    6912          { ac_try='test -z "$ac_c_werror_flag"
    6913                          || test ! -s conftest.err'
    6914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6915   (eval $ac_try) 2>&5
    6916   ac_status=$?
    6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6918   (exit $ac_status); }; } &&
    6919          { ac_try='test -s conftest$ac_exeext'
    6920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6921   (eval $ac_try) 2>&5
    6922   ac_status=$?
    6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6924   (exit $ac_status); }; }; then
    6925   ac_cv_func_pthread_attr_setstacksize=yes
    6926 else
    6927   echo "$as_me: failed program was:" >&5
    6928 sed 's/^/| /' conftest.$ac_ext >&5
    6929 
    6930 ac_cv_func_pthread_attr_setstacksize=no
    6931 fi
    6932 rm -f conftest.err conftest.$ac_objext \
    6933       conftest$ac_exeext conftest.$ac_ext
    6934 fi
    6935 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
    6936 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
    6937 
    6938   echo "$as_me:$LINENO: checking for pthread_attr_setscope" >&5
    6939 echo $ECHO_N "checking for pthread_attr_setscope... $ECHO_C" >&6
    6940 if test "${ac_cv_func_pthread_attr_setscope+set}" = set; then
    6941   echo $ECHO_N "(cached) $ECHO_C" >&6
    6942 else
    6943   cat >conftest.$ac_ext <<_ACEOF
    6944 /* confdefs.h.  */
     7223if ac_fn_c_try_link "$LINENO"; then :
     7224  ac_cv_lib_m_main=yes
     7225else
     7226  ac_cv_lib_m_main=no
     7227fi
     7228rm -f core conftest.err conftest.$ac_objext \
     7229    conftest$ac_exeext conftest.$ac_ext
     7230LIBS=$ac_check_lib_save_LIBS
     7231fi
     7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
     7233$as_echo "$ac_cv_lib_m_main" >&6; }
     7234if test "x$ac_cv_lib_m_main" = xyes; then :
     7235  cat >>confdefs.h <<_ACEOF
     7236#define HAVE_LIBM 1
    69457237_ACEOF
    6946 cat confdefs.h >>conftest.$ac_ext
    6947 cat >>conftest.$ac_ext <<_ACEOF
     7238
     7239  LIBS="-lm $LIBS"
     7240
     7241fi
     7242
     7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfl" >&5
     7244$as_echo_n "checking for main in -lfl... " >&6; }
     7245if ${ac_cv_lib_fl_main+:} false; then :
     7246  $as_echo_n "(cached) " >&6
     7247else
     7248  ac_check_lib_save_LIBS=$LIBS
     7249LIBS="-lfl  $LIBS"
     7250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    69487251/* end confdefs.h.  */
    6949 /* Define pthread_attr_setscope to an innocuous variant, in case <limits.h> declares pthread_attr_setscope.
    6950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6951 #define pthread_attr_setscope innocuous_pthread_attr_setscope
    6952 
    6953 /* System header to define __stub macros and hopefully few prototypes,
    6954     which can conflict with char pthread_attr_setscope (); below.
    6955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    6956     <limits.h> exists even on freestanding compilers.  */
    6957 
    6958 #ifdef __STDC__
    6959 # include <limits.h>
    6960 #else
    6961 # include <assert.h>
    6962 #endif
    6963 
    6964 #undef pthread_attr_setscope
    6965 
    6966 /* Override any gcc2 internal prototype to avoid an error.  */
    6967 #ifdef __cplusplus
    6968 extern "C"
    6969 {
    6970 #endif
    6971 /* We use char because int might match the return type of a gcc2
    6972    builtin and then its argument prototype would still apply.  */
    6973 char pthread_attr_setscope ();
    6974 /* The GNU C library defines this for functions which it implements
    6975     to always fail with ENOSYS.  Some functions are actually named
    6976     something starting with __ and the normal name is an alias.  */
    6977 #if defined (__stub_pthread_attr_setscope) || defined (__stub___pthread_attr_setscope)
    6978 choke me
    6979 #else
    6980 char (*f) () = pthread_attr_setscope;
    6981 #endif
    6982 #ifdef __cplusplus
    6983 }
    6984 #endif
     7252
    69857253
    69867254int
    69877255main ()
    69887256{
    6989 return f != pthread_attr_setscope;
     7257return main ();
    69907258  ;
    69917259  return 0;
    69927260}
    69937261_ACEOF
    6994 rm -f conftest.$ac_objext conftest$ac_exeext
    6995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6996   (eval $ac_link) 2>conftest.er1
    6997   ac_status=$?
    6998   grep -v '^ *+' conftest.er1 >conftest.err
    6999   rm -f conftest.er1
    7000   cat conftest.err >&5
    7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7002   (exit $ac_status); } &&
    7003          { ac_try='test -z "$ac_c_werror_flag"
    7004                          || test ! -s conftest.err'
    7005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7006   (eval $ac_try) 2>&5
    7007   ac_status=$?
    7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7009   (exit $ac_status); }; } &&
    7010          { ac_try='test -s conftest$ac_exeext'
    7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7012   (eval $ac_try) 2>&5
    7013   ac_status=$?
    7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7015   (exit $ac_status); }; }; then
    7016   ac_cv_func_pthread_attr_setscope=yes
    7017 else
    7018   echo "$as_me: failed program was:" >&5
    7019 sed 's/^/| /' conftest.$ac_ext >&5
    7020 
    7021 ac_cv_func_pthread_attr_setscope=no
    7022 fi
    7023 rm -f conftest.err conftest.$ac_objext \
    7024       conftest$ac_exeext conftest.$ac_ext
    7025 fi
    7026 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setscope" >&5
    7027 echo "${ECHO_T}$ac_cv_func_pthread_attr_setscope" >&6
    7028 
    7029   echo "$as_me:$LINENO: checking for pthread_attr_getscope" >&5
    7030 echo $ECHO_N "checking for pthread_attr_getscope... $ECHO_C" >&6
    7031 if test "${ac_cv_func_pthread_attr_getscope+set}" = set; then
    7032   echo $ECHO_N "(cached) $ECHO_C" >&6
    7033 else
    7034   cat >conftest.$ac_ext <<_ACEOF
    7035 /* confdefs.h.  */
     7262if ac_fn_c_try_link "$LINENO"; then :
     7263  ac_cv_lib_fl_main=yes
     7264else
     7265  ac_cv_lib_fl_main=no
     7266fi
     7267rm -f core conftest.err conftest.$ac_objext \
     7268    conftest$ac_exeext conftest.$ac_ext
     7269LIBS=$ac_check_lib_save_LIBS
     7270fi
     7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fl_main" >&5
     7272$as_echo "$ac_cv_lib_fl_main" >&6; }
     7273if test "x$ac_cv_lib_fl_main" = xyes; then :
     7274  cat >>confdefs.h <<_ACEOF
     7275#define HAVE_LIBFL 1
    70367276_ACEOF
    7037 cat confdefs.h >>conftest.$ac_ext
    7038 cat >>conftest.$ac_ext <<_ACEOF
     7277
     7278  LIBS="-lfl $LIBS"
     7279
     7280fi
     7281
     7282ac_fn_c_check_header_mongrel "$LINENO" "perf.h" "ac_cv_header_perf_h" "$ac_includes_default"
     7283if test "x$ac_cv_header_perf_h" = xyes; then :
     7284
     7285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perf_set_config in -lperf" >&5
     7286$as_echo_n "checking for perf_set_config in -lperf... " >&6; }
     7287if ${ac_cv_lib_perf_perf_set_config+:} false; then :
     7288  $as_echo_n "(cached) " >&6
     7289else
     7290  ac_check_lib_save_LIBS=$LIBS
     7291LIBS="-lperf  $LIBS"
     7292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    70397293/* end confdefs.h.  */
    7040 /* Define pthread_attr_getscope to an innocuous variant, in case <limits.h> declares pthread_attr_getscope.
    7041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    7042 #define pthread_attr_getscope innocuous_pthread_attr_getscope
    7043 
    7044 /* System header to define __stub macros and hopefully few prototypes,
    7045     which can conflict with char pthread_attr_getscope (); below.
    7046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7047     <limits.h> exists even on freestanding compilers.  */
    7048 
    7049 #ifdef __STDC__
    7050 # include <limits.h>
    7051 #else
    7052 # include <assert.h>
    7053 #endif
    7054 
    7055 #undef pthread_attr_getscope
    7056 
    7057 /* Override any gcc2 internal prototype to avoid an error.  */
     7294
     7295/* Override any GCC internal prototype to avoid an error.
     7296   Use char because int might match the return type of a GCC
     7297   builtin and then its argument prototype would still apply.  */
    70587298#ifdef __cplusplus
    70597299extern "C"
    7060 {
    70617300#endif
    7062 /* We use char because int might match the return type of a gcc2
    7063    builtin and then its argument prototype would still apply.  */
    7064 char pthread_attr_getscope ();
    7065 /* The GNU C library defines this for functions which it implements
    7066     to always fail with ENOSYS.  Some functions are actually named
    7067     something starting with __ and the normal name is an alias.  */
    7068 #if defined (__stub_pthread_attr_getscope) || defined (__stub___pthread_attr_getscope)
    7069 choke me
    7070 #else
    7071 char (*f) () = pthread_attr_getscope;
    7072 #endif
    7073 #ifdef __cplusplus
    7074 }
    7075 #endif
    7076 
     7301char perf_set_config ();
    70777302int
    70787303main ()
    70797304{
    7080 return f != pthread_attr_getscope;
     7305return perf_set_config ();
    70817306  ;
    70827307  return 0;
    70837308}
    70847309_ACEOF
    7085 rm -f conftest.$ac_objext conftest$ac_exeext
    7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7087   (eval $ac_link) 2>conftest.er1
    7088   ac_status=$?
    7089   grep -v '^ *+' conftest.er1 >conftest.err
    7090   rm -f conftest.er1
    7091   cat conftest.err >&5
    7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7093   (exit $ac_status); } &&
    7094          { ac_try='test -z "$ac_c_werror_flag"
    7095                          || test ! -s conftest.err'
    7096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7097   (eval $ac_try) 2>&5
    7098   ac_status=$?
    7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7100   (exit $ac_status); }; } &&
    7101          { ac_try='test -s conftest$ac_exeext'
    7102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7103   (eval $ac_try) 2>&5
    7104   ac_status=$?
    7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7106   (exit $ac_status); }; }; then
    7107   ac_cv_func_pthread_attr_getscope=yes
    7108 else
    7109   echo "$as_me: failed program was:" >&5
    7110 sed 's/^/| /' conftest.$ac_ext >&5
    7111 
    7112 ac_cv_func_pthread_attr_getscope=no
    7113 fi
    7114 rm -f conftest.err conftest.$ac_objext \
    7115       conftest$ac_exeext conftest.$ac_ext
    7116 fi
    7117 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getscope" >&5
    7118 echo "${ECHO_T}$ac_cv_func_pthread_attr_getscope" >&6
    7119 
    7120   echo "$as_me:$LINENO: checking for pthread_attr_setinheritsched" >&5
    7121 echo $ECHO_N "checking for pthread_attr_setinheritsched... $ECHO_C" >&6
    7122 if test "${ac_cv_func_pthread_attr_setinheritsched+set}" = set; then
    7123   echo $ECHO_N "(cached) $ECHO_C" >&6
    7124 else
    7125   cat >conftest.$ac_ext <<_ACEOF
    7126 /* confdefs.h.  */
    7127 _ACEOF
    7128 cat confdefs.h >>conftest.$ac_ext
    7129 cat >>conftest.$ac_ext <<_ACEOF
    7130 /* end confdefs.h.  */
    7131 /* Define pthread_attr_setinheritsched to an innocuous variant, in case <limits.h> declares pthread_attr_setinheritsched.
    7132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    7133 #define pthread_attr_setinheritsched innocuous_pthread_attr_setinheritsched
    7134 
    7135 /* System header to define __stub macros and hopefully few prototypes,
    7136     which can conflict with char pthread_attr_setinheritsched (); below.
    7137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7138     <limits.h> exists even on freestanding compilers.  */
    7139 
    7140 #ifdef __STDC__
    7141 # include <limits.h>
    7142 #else
    7143 # include <assert.h>
    7144 #endif
    7145 
    7146 #undef pthread_attr_setinheritsched
    7147 
    7148 /* Override any gcc2 internal prototype to avoid an error.  */
    7149 #ifdef __cplusplus
    7150 extern "C"
    7151 {
    7152 #endif
    7153 /* We use char because int might match the return type of a gcc2
    7154    builtin and then its argument prototype would still apply.  */
    7155 char pthread_attr_setinheritsched ();
    7156 /* The GNU C library defines this for functions which it implements
    7157     to always fail with ENOSYS.  Some functions are actually named
    7158     something starting with __ and the normal name is an alias.  */
    7159 #if defined (__stub_pthread_attr_setinheritsched) || defined (__stub___pthread_attr_setinheritsched)
    7160 choke me
    7161 #else
    7162 char (*f) () = pthread_attr_setinheritsched;
    7163 #endif
    7164 #ifdef __cplusplus
    7165 }
    7166 #endif
    7167 
    7168 int
    7169 main ()
    7170 {
    7171 return f != pthread_attr_setinheritsched;
    7172   ;
    7173   return 0;
    7174 }
    7175 _ACEOF
    7176 rm -f conftest.$ac_objext conftest$ac_exeext
    7177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7178   (eval $ac_link) 2>conftest.er1
    7179   ac_status=$?
    7180   grep -v '^ *+' conftest.er1 >conftest.err
    7181   rm -f conftest.er1
    7182   cat conftest.err >&5
    7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7184   (exit $ac_status); } &&
    7185          { ac_try='test -z "$ac_c_werror_flag"
    7186                          || test ! -s conftest.err'
    7187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7188   (eval $ac_try) 2>&5
    7189   ac_status=$?
    7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7191   (exit $ac_status); }; } &&
    7192          { ac_try='test -s conftest$ac_exeext'
    7193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7194   (eval $ac_try) 2>&5
    7195   ac_status=$?
    7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7197   (exit $ac_status); }; }; then
    7198   ac_cv_func_pthread_attr_setinheritsched=yes
    7199 else
    7200   echo "$as_me: failed program was:" >&5
    7201 sed 's/^/| /' conftest.$ac_ext >&5
    7202 
    7203 ac_cv_func_pthread_attr_setinheritsched=no
    7204 fi
    7205 rm -f conftest.err conftest.$ac_objext \
    7206       conftest$ac_exeext conftest.$ac_ext
    7207 fi
    7208 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setinheritsched" >&5
    7209 echo "${ECHO_T}$ac_cv_func_pthread_attr_setinheritsched" >&6
    7210 
    7211   echo "$as_me:$LINENO: checking for pthread_attr_getinheritsched" >&5
    7212 echo $ECHO_N "checking for pthread_attr_getinheritsched... $ECHO_C" >&6
    7213 if test "${ac_cv_func_pthread_attr_getinheritsched+set}" = set; then
    7214   echo $ECHO_N "(cached) $ECHO_C" >&6
    7215 else
    7216   cat >conftest.$ac_ext <<_ACEOF
    7217 /* confdefs.h.  */
    7218 _ACEOF
    7219 cat confdefs.h >>conftest.$ac_ext
    7220 cat >>conftest.$ac_ext <<_ACEOF
    7221 /* end confdefs.h.  */
    7222 /* Define pthread_attr_getinheritsched to an innocuous variant, in case <limits.h> declares pthread_attr_getinheritsched.
    7223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    7224 #define pthread_attr_getinheritsched innocuous_pthread_attr_getinheritsched
    7225 
    7226 /* System header to define __stub macros and hopefully few prototypes,
    7227     which can conflict with char pthread_attr_getinheritsched (); below.
    7228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7229     <limits.h> exists even on freestanding compilers.  */
    7230 
    7231 #ifdef __STDC__
    7232 # include <limits.h>
    7233 #else
    7234 # include <assert.h>
    7235 #endif
    7236 
    7237 #undef pthread_attr_getinheritsched
    7238 
    7239 /* Override any gcc2 internal prototype to avoid an error.  */
    7240 #ifdef __cplusplus
    7241 extern "C"
    7242 {
    7243 #endif
    7244 /* We use char because int might match the return type of a gcc2
    7245    builtin and then its argument prototype would still apply.  */
    7246 char pthread_attr_getinheritsched ();
    7247 /* The GNU C library defines this for functions which it implements
    7248     to always fail with ENOSYS.  Some functions are actually named
    7249     something starting with __ and the normal name is an alias.  */
    7250 #if defined (__stub_pthread_attr_getinheritsched) || defined (__stub___pthread_attr_getinheritsched)
    7251 choke me
    7252 #else
    7253 char (*f) () = pthread_attr_getinheritsched;
    7254 #endif
    7255 #ifdef __cplusplus
    7256 }
    7257 #endif
    7258 
    7259 int
    7260 main ()
    7261 {
    7262 return f != pthread_attr_getinheritsched;
    7263   ;
    7264   return 0;
    7265 }
    7266 _ACEOF
    7267 rm -f conftest.$ac_objext conftest$ac_exeext
    7268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7269   (eval $ac_link) 2>conftest.er1
    7270   ac_status=$?
    7271   grep -v '^ *+' conftest.er1 >conftest.err
    7272   rm -f conftest.er1
    7273   cat conftest.err >&5
    7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7275   (exit $ac_status); } &&
    7276          { ac_try='test -z "$ac_c_werror_flag"
    7277                          || test ! -s conftest.err'
    7278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7279   (eval $ac_try) 2>&5
    7280   ac_status=$?
    7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7282   (exit $ac_status); }; } &&
    7283          { ac_try='test -s conftest$ac_exeext'
    7284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7285   (eval $ac_try) 2>&5
    7286   ac_status=$?
    7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7288   (exit $ac_status); }; }; then
    7289   ac_cv_func_pthread_attr_getinheritsched=yes
    7290 else
    7291   echo "$as_me: failed program was:" >&5
    7292 sed 's/^/| /' conftest.$ac_ext >&5
    7293 
    7294 ac_cv_func_pthread_attr_getinheritsched=no
    7295 fi
    7296 rm -f conftest.err conftest.$ac_objext \
    7297       conftest$ac_exeext conftest.$ac_ext
    7298 fi
    7299 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getinheritsched" >&5
    7300 echo "${ECHO_T}$ac_cv_func_pthread_attr_getinheritsched" >&6
    7301 
    7302   echo "$as_me:$LINENO: checking for pthread_attr_setschedpolicy" >&5
    7303 echo $ECHO_N "checking for pthread_attr_setschedpolicy... $ECHO_C" >&6
    7304 if test "${ac_cv_func_pthread_attr_setschedpolicy+set}" = set; then
    7305   echo $ECHO_N "(cached) $ECHO_C" >&6
    7306 else
    7307   cat >conftest.$ac_ext <<_ACEOF
    7308 /* confdefs.h.  */
    7309 _ACEOF
    7310 cat confdefs.h >>conftest.$ac_ext
    7311 cat >>conftest.$ac_ext <<_ACEOF
    7312 /* end confdefs.h.  */
    7313 /* Define pthread_attr_setschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_setschedpolicy.
    7314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    7315 #define pthread_attr_setschedpolicy innocuous_pthread_attr_setschedpolicy
    7316 
    7317 /* System header to define __stub macros and hopefully few prototypes,
    7318     which can conflict with char pthread_attr_setschedpolicy (); below.
    7319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7320     <limits.h> exists even on freestanding compilers.  */
    7321 
    7322 #ifdef __STDC__
    7323 # include <limits.h>
    7324 #else
    7325 # include <assert.h>
    7326 #endif
    7327 
    7328 #undef pthread_attr_setschedpolicy
    7329 
    7330 /* Override any gcc2 internal prototype to avoid an error.  */
    7331 #ifdef __cplusplus
    7332 extern "C"
    7333 {
    7334 #endif
    7335 /* We use char because int might match the return type of a gcc2
    7336    builtin and then its argument prototype would still apply.  */
    7337 char pthread_attr_setschedpolicy ();
    7338 /* The GNU C library defines this for functions which it implements
    7339     to always fail with ENOSYS.  Some functions are actually named
    7340     something starting with __ and the normal name is an alias.  */
    7341 #if defined (__stub_pthread_attr_setschedpolicy) || defined (__stub___pthread_attr_setschedpolicy)
    7342 choke me
    7343 #else
    7344 char (*f) () = pthread_attr_setschedpolicy;
    7345 #endif
    7346 #ifdef __cplusplus
    7347 }
    7348 #endif
    7349 
    7350 int
    7351 main ()
    7352 {
    7353 return f != pthread_attr_setschedpolicy;
    7354   ;
    7355   return 0;
    7356 }
    7357 _ACEOF
    7358 rm -f conftest.$ac_objext conftest$ac_exeext
    7359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7360   (eval $ac_link) 2>conftest.er1
    7361   ac_status=$?
    7362   grep -v '^ *+' conftest.er1 >conftest.err
    7363   rm -f conftest.er1
    7364   cat conftest.err >&5
    7365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7366   (exit $ac_status); } &&
    7367          { ac_try='test -z "$ac_c_werror_flag"
    7368                          || test ! -s conftest.err'
    7369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7370   (eval $ac_try) 2>&5
    7371   ac_status=$?
    7372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7373   (exit $ac_status); }; } &&
    7374          { ac_try='test -s conftest$ac_exeext'
    7375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7376   (eval $ac_try) 2>&5
    7377   ac_status=$?
    7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7379   (exit $ac_status); }; }; then
    7380   ac_cv_func_pthread_attr_setschedpolicy=yes
    7381 else
    7382   echo "$as_me: failed program was:" >&5
    7383 sed 's/^/| /' conftest.$ac_ext >&5
    7384 
    7385 ac_cv_func_pthread_attr_setschedpolicy=no
    7386 fi
    7387 rm -f conftest.err conftest.$ac_objext \
    7388       conftest$ac_exeext conftest.$ac_ext
    7389 fi
    7390 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedpolicy" >&5
    7391 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedpolicy" >&6
    7392 
    7393   echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
    7394 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
    7395 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
    7396   echo $ECHO_N "(cached) $ECHO_C" >&6
    7397 else
    7398   cat >conftest.$ac_ext <<_ACEOF
    7399 /* confdefs.h.  */
    7400 _ACEOF
    7401 cat confdefs.h >>conftest.$ac_ext
    7402 cat >>conftest.$ac_ext <<_ACEOF
    7403 /* end confdefs.h.  */
    7404 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
    7405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    7406 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
    7407 
    7408 /* System header to define __stub macros and hopefully few prototypes,
    7409     which can conflict with char pthread_attr_getschedpolicy (); below.
    7410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7411     <limits.h> exists even on freestanding compilers.  */
    7412 
    7413 #ifdef __STDC__
    7414 # include <limits.h>
    7415 #else
    7416 # include <assert.h>
    7417 #endif
    7418 
    7419 #undef pthread_attr_getschedpolicy
    7420 
    7421 /* Override any gcc2 internal prototype to avoid an error.  */
    7422 #ifdef __cplusplus
    7423 extern "C"
    7424 {
    7425 #endif
    7426 /* We use char because int might match the return type of a gcc2
    7427    builtin and then its argument prototype would still apply.  */
    7428 char pthread_attr_getschedpolicy ();
    7429 /* The GNU C library defines this for functions which it implements
    7430     to always fail with ENOSYS.  Some functions are actually named
    7431     something starting with __ and the normal name is an alias.  */
    7432 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
    7433 choke me
    7434 #else
    7435 char (*f) () = pthread_attr_getschedpolicy;
    7436 #endif
    7437 #ifdef __cplusplus
    7438 }
    7439 #endif
    7440 
    7441 int
    7442 main ()
    7443 {
    7444 return f != pthread_attr_getschedpolicy;
    7445   ;
    7446   return 0;
    7447 }
    7448 _ACEOF
    7449 rm -f conftest.$ac_objext conftest$ac_exeext
    7450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7451   (eval $ac_link) 2>conftest.er1
    7452   ac_status=$?
    7453   grep -v '^ *+' conftest.er1 >conftest.err
    7454   rm -f conftest.er1
    7455   cat conftest.err >&5
    7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7457   (exit $ac_status); } &&
    7458          { ac_try='test -z "$ac_c_werror_flag"
    7459                          || test ! -s conftest.err'
    7460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7461   (eval $ac_try) 2>&5
    7462   ac_status=$?
    7463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7464   (exit $ac_status); }; } &&
    7465          { ac_try='test -s conftest$ac_exeext'
    7466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7467   (eval $ac_try) 2>&5
    7468   ac_status=$?
    7469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7470   (exit $ac_status); }; }; then
    7471   ac_cv_func_pthread_attr_getschedpolicy=yes
    7472 else
    7473   echo "$as_me: failed program was:" >&5
    7474 sed 's/^/| /' conftest.$ac_ext >&5
    7475 
    7476 ac_cv_func_pthread_attr_getschedpolicy=no
    7477 fi
    7478 rm -f conftest.err conftest.$ac_objext \
    7479       conftest$ac_exeext conftest.$ac_ext
    7480 fi
    7481 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
    7482 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
    7483 
    7484   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
    7485 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
    7486 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
    7487   echo $ECHO_N "(cached) $ECHO_C" >&6
    7488 else
    7489   cat >conftest.$ac_ext <<_ACEOF
    7490 /* confdefs.h.  */
    7491 _ACEOF
    7492 cat confdefs.h >>conftest.$ac_ext
    7493 cat >>conftest.$ac_ext <<_ACEOF
    7494 /* end confdefs.h.  */
    7495 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
    7496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    7497 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
    7498 
    7499 /* System header to define __stub macros and hopefully few prototypes,
    7500     which can conflict with char pthread_attr_setschedparam (); below.
    7501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7502     <limits.h> exists even on freestanding compilers.  */
    7503 
    7504 #ifdef __STDC__
    7505 # include <limits.h>
    7506 #else
    7507 # include <assert.h>
    7508 #endif
    7509 
    7510 #undef pthread_attr_setschedparam
    7511 
    7512 /* Override any gcc2 internal prototype to avoid an error.  */
    7513 #ifdef __cplusplus
    7514 extern "C"
    7515 {
    7516 #endif
    7517 /* We use char because int might match the return type of a gcc2
    7518    builtin and then its argument prototype would still apply.  */
    7519 char pthread_attr_setschedparam ();
    7520 /* The GNU C library defines this for functions which it implements
    7521     to always fail with ENOSYS.  Some functions are actually named
    7522     something starting with __ and the normal name is an alias.  */
    7523 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
    7524 choke me
    7525 #else
    7526 char (*f) () = pthread_attr_setschedparam;
    7527 #endif
    7528 #ifdef __cplusplus
    7529 }
    7530 #endif
    7531 
    7532 int
    7533 main ()
    7534 {
    7535 return f != pthread_attr_setschedparam;
    7536   ;
    7537   return 0;
    7538 }
    7539 _ACEOF
    7540 rm -f conftest.$ac_objext conftest$ac_exeext
    7541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7542   (eval $ac_link) 2>conftest.er1
    7543   ac_status=$?
    7544   grep -v '^ *+' conftest.er1 >conftest.err
    7545   rm -f conftest.er1
    7546   cat conftest.err >&5
    7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7548   (exit $ac_status); } &&
    7549          { ac_try='test -z "$ac_c_werror_flag"
    7550                          || test ! -s conftest.err'
    7551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7552   (eval $ac_try) 2>&5
    7553   ac_status=$?
    7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7555   (exit $ac_status); }; } &&
    7556          { ac_try='test -s conftest$ac_exeext'
    7557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7558   (eval $ac_try) 2>&5
    7559   ac_status=$?
    7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7561   (exit $ac_status); }; }; then
    7562   ac_cv_func_pthread_attr_setschedparam=yes
    7563 else
    7564   echo "$as_me: failed program was:" >&5
    7565 sed 's/^/| /' conftest.$ac_ext >&5
    7566 
    7567 ac_cv_func_pthread_attr_setschedparam=no
    7568 fi
    7569 rm -f conftest.err conftest.$ac_objext \
    7570       conftest$ac_exeext conftest.$ac_ext
    7571 fi
    7572 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
    7573 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
    7574 
    7575   echo "$as_me:$LINENO: checking for pthread_attr_getschedparam" >&5
    7576 echo $ECHO_N "checking for pthread_attr_getschedparam... $ECHO_C" >&6
    7577 if test "${ac_cv_func_pthread_attr_getschedparam+set}" = set; then
    7578   echo $ECHO_N "(cached) $ECHO_C" >&6
    7579 else
    7580   cat >conftest.$ac_ext <<_ACEOF
    7581 /* confdefs.h.  */
    7582 _ACEOF
    7583 cat confdefs.h >>conftest.$ac_ext
    7584 cat >>conftest.$ac_ext <<_ACEOF
    7585 /* end confdefs.h.  */
    7586 /* Define pthread_attr_getschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_getschedparam.
    7587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    7588 #define pthread_attr_getschedparam innocuous_pthread_attr_getschedparam
    7589 
    7590 /* System header to define __stub macros and hopefully few prototypes,
    7591     which can conflict with char pthread_attr_getschedparam (); below.
    7592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7593     <limits.h> exists even on freestanding compilers.  */
    7594 
    7595 #ifdef __STDC__
    7596 # include <limits.h>
    7597 #else
    7598 # include <assert.h>
    7599 #endif
    7600 
    7601 #undef pthread_attr_getschedparam
    7602 
    7603 /* Override any gcc2 internal prototype to avoid an error.  */
    7604 #ifdef __cplusplus
    7605 extern "C"
    7606 {
    7607 #endif
    7608 /* We use char because int might match the return type of a gcc2
    7609    builtin and then its argument prototype would still apply.  */
    7610 char pthread_attr_getschedparam ();
    7611 /* The GNU C library defines this for functions which it implements
    7612     to always fail with ENOSYS.  Some functions are actually named
    7613     something starting with __ and the normal name is an alias.  */
    7614 #if defined (__stub_pthread_attr_getschedparam) || defined (__stub___pthread_attr_getschedparam)
    7615 choke me
    7616 #else
    7617 char (*f) () = pthread_attr_getschedparam;
    7618 #endif
    7619 #ifdef __cplusplus
    7620 }
    7621 #endif
    7622 
    7623 int
    7624 main ()
    7625 {
    7626 return f != pthread_attr_getschedparam;
    7627   ;
    7628   return 0;
    7629 }
    7630 _ACEOF
    7631 rm -f conftest.$ac_objext conftest$ac_exeext
    7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7633   (eval $ac_link) 2>conftest.er1
    7634   ac_status=$?
    7635   grep -v '^ *+' conftest.er1 >conftest.err
    7636   rm -f conftest.er1
    7637   cat conftest.err >&5
    7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7639   (exit $ac_status); } &&
    7640          { ac_try='test -z "$ac_c_werror_flag"
    7641                          || test ! -s conftest.err'
    7642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7643   (eval $ac_try) 2>&5
    7644   ac_status=$?
    7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7646   (exit $ac_status); }; } &&
    7647          { ac_try='test -s conftest$ac_exeext'
    7648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7649   (eval $ac_try) 2>&5
    7650   ac_status=$?
    7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7652   (exit $ac_status); }; }; then
    7653   ac_cv_func_pthread_attr_getschedparam=yes
    7654 else
    7655   echo "$as_me: failed program was:" >&5
    7656 sed 's/^/| /' conftest.$ac_ext >&5
    7657 
    7658 ac_cv_func_pthread_attr_getschedparam=no
    7659 fi
    7660 rm -f conftest.err conftest.$ac_objext \
    7661       conftest$ac_exeext conftest.$ac_ext
    7662 fi
    7663 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedparam" >&5
    7664 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedparam" >&6
    7665 
    7666   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
    7667 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
    7668 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
    7669   echo $ECHO_N "(cached) $ECHO_C" >&6
    7670 else
    7671   cat >conftest.$ac_ext <<_ACEOF
    7672 /* confdefs.h.  */
    7673 _ACEOF
    7674 cat confdefs.h >>conftest.$ac_ext
    7675 cat >>conftest.$ac_ext <<_ACEOF
    7676 /* end confdefs.h.  */
    7677 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
    7678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    7679 #define sched_get_priority_max innocuous_sched_get_priority_max
    7680 
    7681 /* System header to define __stub macros and hopefully few prototypes,
    7682     which can conflict with char sched_get_priority_max (); below.
    7683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7684     <limits.h> exists even on freestanding compilers.  */
    7685 
    7686 #ifdef __STDC__
    7687 # include <limits.h>
    7688 #else
    7689 # include <assert.h>
    7690 #endif
    7691 
    7692 #undef sched_get_priority_max
    7693 
    7694 /* Override any gcc2 internal prototype to avoid an error.  */
    7695 #ifdef __cplusplus
    7696 extern "C"
    7697 {
    7698 #endif
    7699 /* We use char because int might match the return type of a gcc2
    7700    builtin and then its argument prototype would still apply.  */
    7701 char sched_get_priority_max ();
    7702 /* The GNU C library defines this for functions which it implements
    7703     to always fail with ENOSYS.  Some functions are actually named
    7704     something starting with __ and the normal name is an alias.  */
    7705 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
    7706 choke me
    7707 #else
    7708 char (*f) () = sched_get_priority_max;
    7709 #endif
    7710 #ifdef __cplusplus
    7711 }
    7712 #endif
    7713 
    7714 int
    7715 main ()
    7716 {
    7717 return f != sched_get_priority_max;
    7718   ;
    7719   return 0;
    7720 }
    7721 _ACEOF
    7722 rm -f conftest.$ac_objext conftest$ac_exeext
    7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7724   (eval $ac_link) 2>conftest.er1
    7725   ac_status=$?
    7726   grep -v '^ *+' conftest.er1 >conftest.err
    7727   rm -f conftest.er1
    7728   cat conftest.err >&5
    7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7730   (exit $ac_status); } &&
    7731          { ac_try='test -z "$ac_c_werror_flag"
    7732                          || test ! -s conftest.err'
    7733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7734   (eval $ac_try) 2>&5
    7735   ac_status=$?
    7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7737   (exit $ac_status); }; } &&
    7738          { ac_try='test -s conftest$ac_exeext'
    7739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7740   (eval $ac_try) 2>&5
    7741   ac_status=$?
    7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7743   (exit $ac_status); }; }; then
    7744   ac_cv_func_sched_get_priority_max=yes
    7745 else
    7746   echo "$as_me: failed program was:" >&5
    7747 sed 's/^/| /' conftest.$ac_ext >&5
    7748 
    7749 ac_cv_func_sched_get_priority_max=no
    7750 fi
    7751 rm -f conftest.err conftest.$ac_objext \
    7752       conftest$ac_exeext conftest.$ac_ext
    7753 fi
    7754 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
    7755 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
    7756 
    7757   echo "$as_me:$LINENO: checking for sched_get_priority_min" >&5
    7758 echo $ECHO_N "checking for sched_get_priority_min... $ECHO_C" >&6
    7759 if test "${ac_cv_func_sched_get_priority_min+set}" = set; then
    7760   echo $ECHO_N "(cached) $ECHO_C" >&6
    7761 else
    7762   cat >conftest.$ac_ext <<_ACEOF
    7763 /* confdefs.h.  */
    7764 _ACEOF
    7765 cat confdefs.h >>conftest.$ac_ext
    7766 cat >>conftest.$ac_ext <<_ACEOF
    7767 /* end confdefs.h.  */
    7768 /* Define sched_get_priority_min to an innocuous variant, in case <limits.h> declares sched_get_priority_min.
    7769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    7770 #define sched_get_priority_min innocuous_sched_get_priority_min
    7771 
    7772 /* System header to define __stub macros and hopefully few prototypes,
    7773     which can conflict with char sched_get_priority_min (); below.
    7774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    7775     <limits.h> exists even on freestanding compilers.  */
    7776 
    7777 #ifdef __STDC__
    7778 # include <limits.h>
    7779 #else
    7780 # include <assert.h>
    7781 #endif
    7782 
    7783 #undef sched_get_priority_min
    7784 
    7785 /* Override any gcc2 internal prototype to avoid an error.  */
    7786 #ifdef __cplusplus
    7787 extern "C"
    7788 {
    7789 #endif
    7790 /* We use char because int might match the return type of a gcc2
    7791    builtin and then its argument prototype would still apply.  */
    7792 char sched_get_priority_min ();
    7793 /* The GNU C library defines this for functions which it implements
    7794     to always fail with ENOSYS.  Some functions are actually named
    7795     something starting with __ and the normal name is an alias.  */
    7796 #if defined (__stub_sched_get_priority_min) || defined (__stub___sched_get_priority_min)
    7797 choke me
    7798 #else
    7799 char (*f) () = sched_get_priority_min;
    7800 #endif
    7801 #ifdef __cplusplus
    7802 }
    7803 #endif
    7804 
    7805 int
    7806 main ()
    7807 {
    7808 return f != sched_get_priority_min;
    7809   ;
    7810   return 0;
    7811 }
    7812 _ACEOF
    7813 rm -f conftest.$ac_objext conftest$ac_exeext
    7814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7815   (eval $ac_link) 2>conftest.er1
    7816   ac_status=$?
    7817   grep -v '^ *+' conftest.er1 >conftest.err
    7818   rm -f conftest.er1
    7819   cat conftest.err >&5
    7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7821   (exit $ac_status); } &&
    7822          { ac_try='test -z "$ac_c_werror_flag"
    7823                          || test ! -s conftest.err'
    7824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7825   (eval $ac_try) 2>&5
    7826   ac_status=$?
    7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7828   (exit $ac_status); }; } &&
    7829          { ac_try='test -s conftest$ac_exeext'
    7830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7831   (eval $ac_try) 2>&5
    7832   ac_status=$?
    7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7834   (exit $ac_status); }; }; then
    7835   ac_cv_func_sched_get_priority_min=yes
    7836 else
    7837   echo "$as_me: failed program was:" >&5
    7838 sed 's/^/| /' conftest.$ac_ext >&5
    7839 
    7840 ac_cv_func_sched_get_priority_min=no
    7841 fi
    7842 rm -f conftest.err conftest.$ac_objext \
    7843       conftest$ac_exeext conftest.$ac_ext
    7844 fi
    7845 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_min" >&5
    7846 echo "${ECHO_T}$ac_cv_func_sched_get_priority_min" >&6
    7847 
    7848 fi
    7849 
    7850 
    7851 echo "$as_me:$LINENO: checking for main in -ldl" >&5
    7852 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
    7853 if test "${ac_cv_lib_dl_main+set}" = set; then
    7854   echo $ECHO_N "(cached) $ECHO_C" >&6
    7855 else
    7856   ac_check_lib_save_LIBS=$LIBS
    7857 LIBS="-ldl  $LIBS"
    7858 cat >conftest.$ac_ext <<_ACEOF
    7859 /* confdefs.h.  */
    7860 _ACEOF
    7861 cat confdefs.h >>conftest.$ac_ext
    7862 cat >>conftest.$ac_ext <<_ACEOF
    7863 /* end confdefs.h.  */
    7864 
    7865 
    7866 int
    7867 main ()
    7868 {
    7869 main ();
    7870   ;
    7871   return 0;
    7872 }
    7873 _ACEOF
    7874 rm -f conftest.$ac_objext conftest$ac_exeext
    7875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7876   (eval $ac_link) 2>conftest.er1
    7877   ac_status=$?
    7878   grep -v '^ *+' conftest.er1 >conftest.err
    7879   rm -f conftest.er1
    7880   cat conftest.err >&5
    7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7882   (exit $ac_status); } &&
    7883          { ac_try='test -z "$ac_c_werror_flag"
    7884                          || test ! -s conftest.err'
    7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7886   (eval $ac_try) 2>&5
    7887   ac_status=$?
    7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7889   (exit $ac_status); }; } &&
    7890          { ac_try='test -s conftest$ac_exeext'
    7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7892   (eval $ac_try) 2>&5
    7893   ac_status=$?
    7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7895   (exit $ac_status); }; }; then
    7896   ac_cv_lib_dl_main=yes
    7897 else
    7898   echo "$as_me: failed program was:" >&5
    7899 sed 's/^/| /' conftest.$ac_ext >&5
    7900 
    7901 ac_cv_lib_dl_main=no
    7902 fi
    7903 rm -f conftest.err conftest.$ac_objext \
    7904       conftest$ac_exeext conftest.$ac_ext
     7310if ac_fn_c_try_link "$LINENO"; then :
     7311  ac_cv_lib_perf_perf_set_config=yes
     7312else
     7313  ac_cv_lib_perf_perf_set_config=no
     7314fi
     7315rm -f core conftest.err conftest.$ac_objext \
     7316    conftest$ac_exeext conftest.$ac_ext
    79057317LIBS=$ac_check_lib_save_LIBS
    79067318fi
    7907 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
    7908 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
    7909 if test $ac_cv_lib_dl_main = yes; then
    7910   cat >>confdefs.h <<_ACEOF
    7911 #define HAVE_LIBDL 1
    7912 _ACEOF
    7913 
    7914   LIBS="-ldl $LIBS"
    7915 
    7916 fi
    7917 
    7918 
    7919 echo "$as_me:$LINENO: checking for main in -lm" >&5
    7920 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
    7921 if test "${ac_cv_lib_m_main+set}" = set; then
    7922   echo $ECHO_N "(cached) $ECHO_C" >&6
    7923 else
    7924   ac_check_lib_save_LIBS=$LIBS
    7925 LIBS="-lm  $LIBS"
    7926 cat >conftest.$ac_ext <<_ACEOF
    7927 /* confdefs.h.  */
    7928 _ACEOF
    7929 cat confdefs.h >>conftest.$ac_ext
    7930 cat >>conftest.$ac_ext <<_ACEOF
    7931 /* end confdefs.h.  */
    7932 
    7933 
    7934 int
    7935 main ()
    7936 {
    7937 main ();
    7938   ;
    7939   return 0;
    7940 }
    7941 _ACEOF
    7942 rm -f conftest.$ac_objext conftest$ac_exeext
    7943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7944   (eval $ac_link) 2>conftest.er1
    7945   ac_status=$?
    7946   grep -v '^ *+' conftest.er1 >conftest.err
    7947   rm -f conftest.er1
    7948   cat conftest.err >&5
    7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7950   (exit $ac_status); } &&
    7951          { ac_try='test -z "$ac_c_werror_flag"
    7952                          || test ! -s conftest.err'
    7953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7954   (eval $ac_try) 2>&5
    7955   ac_status=$?
    7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7957   (exit $ac_status); }; } &&
    7958          { ac_try='test -s conftest$ac_exeext'
    7959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7960   (eval $ac_try) 2>&5
    7961   ac_status=$?
    7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7963   (exit $ac_status); }; }; then
    7964   ac_cv_lib_m_main=yes
    7965 else
    7966   echo "$as_me: failed program was:" >&5
    7967 sed 's/^/| /' conftest.$ac_ext >&5
    7968 
    7969 ac_cv_lib_m_main=no
    7970 fi
    7971 rm -f conftest.err conftest.$ac_objext \
    7972       conftest$ac_exeext conftest.$ac_ext
    7973 LIBS=$ac_check_lib_save_LIBS
    7974 fi
    7975 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
    7976 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
    7977 if test $ac_cv_lib_m_main = yes; then
    7978   cat >>confdefs.h <<_ACEOF
    7979 #define HAVE_LIBM 1
    7980 _ACEOF
    7981 
    7982   LIBS="-lm $LIBS"
    7983 
    7984 fi
    7985 
    7986 
    7987 echo "$as_me:$LINENO: checking for main in -lfl" >&5
    7988 echo $ECHO_N "checking for main in -lfl... $ECHO_C" >&6
    7989 if test "${ac_cv_lib_fl_main+set}" = set; then
    7990   echo $ECHO_N "(cached) $ECHO_C" >&6
    7991 else
    7992   ac_check_lib_save_LIBS=$LIBS
    7993 LIBS="-lfl  $LIBS"
    7994 cat >conftest.$ac_ext <<_ACEOF
    7995 /* confdefs.h.  */
    7996 _ACEOF
    7997 cat confdefs.h >>conftest.$ac_ext
    7998 cat >>conftest.$ac_ext <<_ACEOF
    7999 /* end confdefs.h.  */
    8000 
    8001 
    8002 int
    8003 main ()
    8004 {
    8005 main ();
    8006   ;
    8007   return 0;
    8008 }
    8009 _ACEOF
    8010 rm -f conftest.$ac_objext conftest$ac_exeext
    8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8012   (eval $ac_link) 2>conftest.er1
    8013   ac_status=$?
    8014   grep -v '^ *+' conftest.er1 >conftest.err
    8015   rm -f conftest.er1
    8016   cat conftest.err >&5
    8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8018   (exit $ac_status); } &&
    8019          { ac_try='test -z "$ac_c_werror_flag"
    8020                          || test ! -s conftest.err'
    8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8022   (eval $ac_try) 2>&5
    8023   ac_status=$?
    8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8025   (exit $ac_status); }; } &&
    8026          { ac_try='test -s conftest$ac_exeext'
    8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8028   (eval $ac_try) 2>&5
    8029   ac_status=$?
    8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8031   (exit $ac_status); }; }; then
    8032   ac_cv_lib_fl_main=yes
    8033 else
    8034   echo "$as_me: failed program was:" >&5
    8035 sed 's/^/| /' conftest.$ac_ext >&5
    8036 
    8037 ac_cv_lib_fl_main=no
    8038 fi
    8039 rm -f conftest.err conftest.$ac_objext \
    8040       conftest$ac_exeext conftest.$ac_ext
    8041 LIBS=$ac_check_lib_save_LIBS
    8042 fi
    8043 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_main" >&5
    8044 echo "${ECHO_T}$ac_cv_lib_fl_main" >&6
    8045 if test $ac_cv_lib_fl_main = yes; then
    8046   cat >>confdefs.h <<_ACEOF
    8047 #define HAVE_LIBFL 1
    8048 _ACEOF
    8049 
    8050   LIBS="-lfl $LIBS"
    8051 
    8052 fi
    8053 
    8054 if test "${ac_cv_header_perf_h+set}" = set; then
    8055   echo "$as_me:$LINENO: checking for perf.h" >&5
    8056 echo $ECHO_N "checking for perf.h... $ECHO_C" >&6
    8057 if test "${ac_cv_header_perf_h+set}" = set; then
    8058   echo $ECHO_N "(cached) $ECHO_C" >&6
    8059 fi
    8060 echo "$as_me:$LINENO: result: $ac_cv_header_perf_h" >&5
    8061 echo "${ECHO_T}$ac_cv_header_perf_h" >&6
    8062 else
    8063   # Is the header compilable?
    8064 echo "$as_me:$LINENO: checking perf.h usability" >&5
    8065 echo $ECHO_N "checking perf.h usability... $ECHO_C" >&6
    8066 cat >conftest.$ac_ext <<_ACEOF
    8067 /* confdefs.h.  */
    8068 _ACEOF
    8069 cat confdefs.h >>conftest.$ac_ext
    8070 cat >>conftest.$ac_ext <<_ACEOF
    8071 /* end confdefs.h.  */
    8072 $ac_includes_default
    8073 #include <perf.h>
    8074 _ACEOF
    8075 rm -f conftest.$ac_objext
    8076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8077   (eval $ac_compile) 2>conftest.er1
    8078   ac_status=$?
    8079   grep -v '^ *+' conftest.er1 >conftest.err
    8080   rm -f conftest.er1
    8081   cat conftest.err >&5
    8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8083   (exit $ac_status); } &&
    8084          { ac_try='test -z "$ac_c_werror_flag"
    8085                          || test ! -s conftest.err'
    8086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8087   (eval $ac_try) 2>&5
    8088   ac_status=$?
    8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8090   (exit $ac_status); }; } &&
    8091          { ac_try='test -s conftest.$ac_objext'
    8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8093   (eval $ac_try) 2>&5
    8094   ac_status=$?
    8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8096   (exit $ac_status); }; }; then
    8097   ac_header_compiler=yes
    8098 else
    8099   echo "$as_me: failed program was:" >&5
    8100 sed 's/^/| /' conftest.$ac_ext >&5
    8101 
    8102 ac_header_compiler=no
    8103 fi
    8104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    8105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    8106 echo "${ECHO_T}$ac_header_compiler" >&6
    8107 
    8108 # Is the header present?
    8109 echo "$as_me:$LINENO: checking perf.h presence" >&5
    8110 echo $ECHO_N "checking perf.h presence... $ECHO_C" >&6
    8111 cat >conftest.$ac_ext <<_ACEOF
    8112 /* confdefs.h.  */
    8113 _ACEOF
    8114 cat confdefs.h >>conftest.$ac_ext
    8115 cat >>conftest.$ac_ext <<_ACEOF
    8116 /* end confdefs.h.  */
    8117 #include <perf.h>
    8118 _ACEOF
    8119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    8120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    8121   ac_status=$?
    8122   grep -v '^ *+' conftest.er1 >conftest.err
    8123   rm -f conftest.er1
    8124   cat conftest.err >&5
    8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8126   (exit $ac_status); } >/dev/null; then
    8127   if test -s conftest.err; then
    8128     ac_cpp_err=$ac_c_preproc_warn_flag
    8129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    8130   else
    8131     ac_cpp_err=
    8132   fi
    8133 else
    8134   ac_cpp_err=yes
    8135 fi
    8136 if test -z "$ac_cpp_err"; then
    8137   ac_header_preproc=yes
    8138 else
    8139   echo "$as_me: failed program was:" >&5
    8140 sed 's/^/| /' conftest.$ac_ext >&5
    8141 
    8142   ac_header_preproc=no
    8143 fi
    8144 rm -f conftest.err conftest.$ac_ext
    8145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    8146 echo "${ECHO_T}$ac_header_preproc" >&6
    8147 
    8148 # So?  What about this header?
    8149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    8150   yes:no: )
    8151     { echo "$as_me:$LINENO: WARNING: perf.h: accepted by the compiler, rejected by the preprocessor!" >&5
    8152 echo "$as_me: WARNING: perf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    8153     { echo "$as_me:$LINENO: WARNING: perf.h: proceeding with the compiler's result" >&5
    8154 echo "$as_me: WARNING: perf.h: proceeding with the compiler's result" >&2;}
    8155     ac_header_preproc=yes
    8156     ;;
    8157   no:yes:* )
    8158     { echo "$as_me:$LINENO: WARNING: perf.h: present but cannot be compiled" >&5
    8159 echo "$as_me: WARNING: perf.h: present but cannot be compiled" >&2;}
    8160     { echo "$as_me:$LINENO: WARNING: perf.h:     check for missing prerequisite headers?" >&5
    8161 echo "$as_me: WARNING: perf.h:     check for missing prerequisite headers?" >&2;}
    8162     { echo "$as_me:$LINENO: WARNING: perf.h: see the Autoconf documentation" >&5
    8163 echo "$as_me: WARNING: perf.h: see the Autoconf documentation" >&2;}
    8164     { echo "$as_me:$LINENO: WARNING: perf.h:     section \"Present But Cannot Be Compiled\"" >&5
    8165 echo "$as_me: WARNING: perf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    8166     { echo "$as_me:$LINENO: WARNING: perf.h: proceeding with the preprocessor's result" >&5
    8167 echo "$as_me: WARNING: perf.h: proceeding with the preprocessor's result" >&2;}
    8168     { echo "$as_me:$LINENO: WARNING: perf.h: in the future, the compiler will take precedence" >&5
    8169 echo "$as_me: WARNING: perf.h: in the future, the compiler will take precedence" >&2;}
    8170     (
    8171       cat <<\_ASBOX
    8172 ## ------------------------------------------ ##
    8173 ## Report this to the AC_PACKAGE_NAME lists.  ##
    8174 ## ------------------------------------------ ##
    8175 _ASBOX
    8176     ) |
    8177       sed "s/^/$as_me: WARNING:     /" >&2
    8178     ;;
    8179 esac
    8180 echo "$as_me:$LINENO: checking for perf.h" >&5
    8181 echo $ECHO_N "checking for perf.h... $ECHO_C" >&6
    8182 if test "${ac_cv_header_perf_h+set}" = set; then
    8183   echo $ECHO_N "(cached) $ECHO_C" >&6
    8184 else
    8185   ac_cv_header_perf_h=$ac_header_preproc
    8186 fi
    8187 echo "$as_me:$LINENO: result: $ac_cv_header_perf_h" >&5
    8188 echo "${ECHO_T}$ac_cv_header_perf_h" >&6
    8189 
    8190 fi
    8191 if test $ac_cv_header_perf_h = yes; then
    8192 
    8193   echo "$as_me:$LINENO: checking for perf_set_config in -lperf" >&5
    8194 echo $ECHO_N "checking for perf_set_config in -lperf... $ECHO_C" >&6
    8195 if test "${ac_cv_lib_perf_perf_set_config+set}" = set; then
    8196   echo $ECHO_N "(cached) $ECHO_C" >&6
    8197 else
    8198   ac_check_lib_save_LIBS=$LIBS
    8199 LIBS="-lperf  $LIBS"
    8200 cat >conftest.$ac_ext <<_ACEOF
    8201 /* confdefs.h.  */
    8202 _ACEOF
    8203 cat confdefs.h >>conftest.$ac_ext
    8204 cat >>conftest.$ac_ext <<_ACEOF
    8205 /* end confdefs.h.  */
    8206 
    8207 /* Override any gcc2 internal prototype to avoid an error.  */
    8208 #ifdef __cplusplus
    8209 extern "C"
    8210 #endif
    8211 /* We use char because int might match the return type of a gcc2
    8212    builtin and then its argument prototype would still apply.  */
    8213 char perf_set_config ();
    8214 int
    8215 main ()
    8216 {
    8217 perf_set_config ();
    8218   ;
    8219   return 0;
    8220 }
    8221 _ACEOF
    8222 rm -f conftest.$ac_objext conftest$ac_exeext
    8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8224   (eval $ac_link) 2>conftest.er1
    8225   ac_status=$?
    8226   grep -v '^ *+' conftest.er1 >conftest.err
    8227   rm -f conftest.er1
    8228   cat conftest.err >&5
    8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8230   (exit $ac_status); } &&
    8231          { ac_try='test -z "$ac_c_werror_flag"
    8232                          || test ! -s conftest.err'
    8233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8234   (eval $ac_try) 2>&5
    8235   ac_status=$?
    8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8237   (exit $ac_status); }; } &&
    8238          { ac_try='test -s conftest$ac_exeext'
    8239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8240   (eval $ac_try) 2>&5
    8241   ac_status=$?
    8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8243   (exit $ac_status); }; }; then
    8244   ac_cv_lib_perf_perf_set_config=yes
    8245 else
    8246   echo "$as_me: failed program was:" >&5
    8247 sed 's/^/| /' conftest.$ac_ext >&5
    8248 
    8249 ac_cv_lib_perf_perf_set_config=no
    8250 fi
    8251 rm -f conftest.err conftest.$ac_objext \
    8252       conftest$ac_exeext conftest.$ac_ext
    8253 LIBS=$ac_check_lib_save_LIBS
    8254 fi
    8255 echo "$as_me:$LINENO: result: $ac_cv_lib_perf_perf_set_config" >&5
    8256 echo "${ECHO_T}$ac_cv_lib_perf_perf_set_config" >&6
    8257 if test $ac_cv_lib_perf_perf_set_config = yes; then
     7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perf_perf_set_config" >&5
     7320$as_echo "$ac_cv_lib_perf_perf_set_config" >&6; }
     7321if test "x$ac_cv_lib_perf_perf_set_config" = xyes; then :
    82587322
    82597323    HAVE_PERF=yes
    82607324    LIBS="-lperf $LIBS"
    8261     cat >>confdefs.h <<\_ACEOF
    8262 #define HAVE_PERF 1
    8263 _ACEOF
    8264 
    8265 
    8266 fi
    8267 
    8268 
    8269 
    8270 fi
    8271 
    8272 
    8273 
    8274 if test "${ac_cv_header_execinfo_h+set}" = set; then
    8275   echo "$as_me:$LINENO: checking for execinfo.h" >&5
    8276 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6
    8277 if test "${ac_cv_header_execinfo_h+set}" = set; then
    8278   echo $ECHO_N "(cached) $ECHO_C" >&6
    8279 fi
    8280 echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
    8281 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6
    8282 else
    8283   # Is the header compilable?
    8284 echo "$as_me:$LINENO: checking execinfo.h usability" >&5
    8285 echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6
    8286 cat >conftest.$ac_ext <<_ACEOF
    8287 /* confdefs.h.  */
    8288 _ACEOF
    8289 cat confdefs.h >>conftest.$ac_ext
    8290 cat >>conftest.$ac_ext <<_ACEOF
    8291 /* end confdefs.h.  */
    8292 $ac_includes_default
    8293 #include <execinfo.h>
    8294 _ACEOF
    8295 rm -f conftest.$ac_objext
    8296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    8297   (eval $ac_compile) 2>conftest.er1
    8298   ac_status=$?
    8299   grep -v '^ *+' conftest.er1 >conftest.err
    8300   rm -f conftest.er1
    8301   cat conftest.err >&5
    8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8303   (exit $ac_status); } &&
    8304          { ac_try='test -z "$ac_c_werror_flag"
    8305                          || test ! -s conftest.err'
    8306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8307   (eval $ac_try) 2>&5
    8308   ac_status=$?
    8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8310   (exit $ac_status); }; } &&
    8311          { ac_try='test -s conftest.$ac_objext'
    8312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8313   (eval $ac_try) 2>&5
    8314   ac_status=$?
    8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8316   (exit $ac_status); }; }; then
    8317   ac_header_compiler=yes
    8318 else
    8319   echo "$as_me: failed program was:" >&5
    8320 sed 's/^/| /' conftest.$ac_ext >&5
    8321 
    8322 ac_header_compiler=no
    8323 fi
    8324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    8325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    8326 echo "${ECHO_T}$ac_header_compiler" >&6
    8327 
    8328 # Is the header present?
    8329 echo "$as_me:$LINENO: checking execinfo.h presence" >&5
    8330 echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6
    8331 cat >conftest.$ac_ext <<_ACEOF
    8332 /* confdefs.h.  */
    8333 _ACEOF
    8334 cat confdefs.h >>conftest.$ac_ext
    8335 cat >>conftest.$ac_ext <<_ACEOF
    8336 /* end confdefs.h.  */
    8337 #include <execinfo.h>
    8338 _ACEOF
    8339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    8340   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    8341   ac_status=$?
    8342   grep -v '^ *+' conftest.er1 >conftest.err
    8343   rm -f conftest.er1
    8344   cat conftest.err >&5
    8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8346   (exit $ac_status); } >/dev/null; then
    8347   if test -s conftest.err; then
    8348     ac_cpp_err=$ac_c_preproc_warn_flag
    8349     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    8350   else
    8351     ac_cpp_err=
    8352   fi
    8353 else
    8354   ac_cpp_err=yes
    8355 fi
    8356 if test -z "$ac_cpp_err"; then
    8357   ac_header_preproc=yes
    8358 else
    8359   echo "$as_me: failed program was:" >&5
    8360 sed 's/^/| /' conftest.$ac_ext >&5
    8361 
    8362   ac_header_preproc=no
    8363 fi
    8364 rm -f conftest.err conftest.$ac_ext
    8365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    8366 echo "${ECHO_T}$ac_header_preproc" >&6
    8367 
    8368 # So?  What about this header?
    8369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    8370   yes:no: )
    8371     { echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
    8372 echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    8373     { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
    8374 echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
    8375     ac_header_preproc=yes
    8376     ;;
    8377   no:yes:* )
    8378     { echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
    8379 echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
    8380     { echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
    8381 echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
    8382     { echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
    8383 echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
    8384     { echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
    8385 echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    8386     { echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
    8387 echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
    8388     { echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
    8389 echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
    8390     (
    8391       cat <<\_ASBOX
    8392 ## ------------------------------------------ ##
    8393 ## Report this to the AC_PACKAGE_NAME lists.  ##
    8394 ## ------------------------------------------ ##
    8395 _ASBOX
    8396     ) |
    8397       sed "s/^/$as_me: WARNING:     /" >&2
    8398     ;;
    8399 esac
    8400 echo "$as_me:$LINENO: checking for execinfo.h" >&5
    8401 echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6
    8402 if test "${ac_cv_header_execinfo_h+set}" = set; then
    8403   echo $ECHO_N "(cached) $ECHO_C" >&6
    8404 else
    8405   ac_cv_header_execinfo_h=$ac_header_preproc
    8406 fi
    8407 echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
    8408 echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6
    8409 
    8410 fi
    8411 if test $ac_cv_header_execinfo_h = yes; then
     7325
     7326$as_echo "#define HAVE_PERF 1" >>confdefs.h
     7327
     7328
     7329fi
     7330
     7331
     7332
     7333fi
     7334
     7335
     7336
     7337ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
     7338if test "x$ac_cv_header_execinfo_h" = xyes; then :
    84127339  HAVE_EXECINFO_H_INC=1
    84137340fi
    84147341
    84157342
    8416 echo "$as_me:$LINENO: checking for backtrace" >&5
    8417 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
    8418 if test "${ac_cv_func_backtrace+set}" = set; then
    8419   echo $ECHO_N "(cached) $ECHO_C" >&6
    8420 else
    8421   cat >conftest.$ac_ext <<_ACEOF
    8422 /* confdefs.h.  */
    8423 _ACEOF
    8424 cat confdefs.h >>conftest.$ac_ext
    8425 cat >>conftest.$ac_ext <<_ACEOF
    8426 /* end confdefs.h.  */
    8427 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
    8428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    8429 #define backtrace innocuous_backtrace
    8430 
    8431 /* System header to define __stub macros and hopefully few prototypes,
    8432     which can conflict with char backtrace (); below.
    8433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    8434     <limits.h> exists even on freestanding compilers.  */
    8435 
    8436 #ifdef __STDC__
    8437 # include <limits.h>
    8438 #else
    8439 # include <assert.h>
    8440 #endif
    8441 
    8442 #undef backtrace
    8443 
    8444 /* Override any gcc2 internal prototype to avoid an error.  */
    8445 #ifdef __cplusplus
    8446 extern "C"
    8447 {
    8448 #endif
    8449 /* We use char because int might match the return type of a gcc2
    8450    builtin and then its argument prototype would still apply.  */
    8451 char backtrace ();
    8452 /* The GNU C library defines this for functions which it implements
    8453     to always fail with ENOSYS.  Some functions are actually named
    8454     something starting with __ and the normal name is an alias.  */
    8455 #if defined (__stub_backtrace) || defined (__stub___backtrace)
    8456 choke me
    8457 #else
    8458 char (*f) () = backtrace;
    8459 #endif
    8460 #ifdef __cplusplus
    8461 }
    8462 #endif
    8463 
    8464 int
    8465 main ()
    8466 {
    8467 return f != backtrace;
    8468   ;
    8469   return 0;
    8470 }
    8471 _ACEOF
    8472 rm -f conftest.$ac_objext conftest$ac_exeext
    8473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8474   (eval $ac_link) 2>conftest.er1
    8475   ac_status=$?
    8476   grep -v '^ *+' conftest.er1 >conftest.err
    8477   rm -f conftest.er1
    8478   cat conftest.err >&5
    8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8480   (exit $ac_status); } &&
    8481          { ac_try='test -z "$ac_c_werror_flag"
    8482                          || test ! -s conftest.err'
    8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8484   (eval $ac_try) 2>&5
    8485   ac_status=$?
    8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8487   (exit $ac_status); }; } &&
    8488          { ac_try='test -s conftest$ac_exeext'
    8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8490   (eval $ac_try) 2>&5
    8491   ac_status=$?
    8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8493   (exit $ac_status); }; }; then
    8494   ac_cv_func_backtrace=yes
    8495 else
    8496   echo "$as_me: failed program was:" >&5
    8497 sed 's/^/| /' conftest.$ac_ext >&5
    8498 
    8499 ac_cv_func_backtrace=no
    8500 fi
    8501 rm -f conftest.err conftest.$ac_objext \
    8502       conftest$ac_exeext conftest.$ac_ext
    8503 fi
    8504 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
    8505 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
    8506 if test $ac_cv_func_backtrace = yes; then
     7343ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
     7344if test "x$ac_cv_func_backtrace" = xyes; then :
    85077345  HAVE_BACKTRACE_FUNC=1
    85087346fi
    85097347
    8510 echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
    8511 echo $ECHO_N "checking for backtrace_symbols_fd... $ECHO_C" >&6
    8512 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
    8513   echo $ECHO_N "(cached) $ECHO_C" >&6
    8514 else
    8515   cat >conftest.$ac_ext <<_ACEOF
    8516 /* confdefs.h.  */
    8517 _ACEOF
    8518 cat confdefs.h >>conftest.$ac_ext
    8519 cat >>conftest.$ac_ext <<_ACEOF
    8520 /* end confdefs.h.  */
    8521 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
    8522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    8523 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
    8524 
    8525 /* System header to define __stub macros and hopefully few prototypes,
    8526     which can conflict with char backtrace_symbols_fd (); below.
    8527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    8528     <limits.h> exists even on freestanding compilers.  */
    8529 
    8530 #ifdef __STDC__
    8531 # include <limits.h>
    8532 #else
    8533 # include <assert.h>
    8534 #endif
    8535 
    8536 #undef backtrace_symbols_fd
    8537 
    8538 /* Override any gcc2 internal prototype to avoid an error.  */
    8539 #ifdef __cplusplus
    8540 extern "C"
    8541 {
    8542 #endif
    8543 /* We use char because int might match the return type of a gcc2
    8544    builtin and then its argument prototype would still apply.  */
    8545 char backtrace_symbols_fd ();
    8546 /* The GNU C library defines this for functions which it implements
    8547     to always fail with ENOSYS.  Some functions are actually named
    8548     something starting with __ and the normal name is an alias.  */
    8549 #if defined (__stub_backtrace_symbols_fd) || defined (__stub___backtrace_symbols_fd)
    8550 choke me
    8551 #else
    8552 char (*f) () = backtrace_symbols_fd;
    8553 #endif
    8554 #ifdef __cplusplus
    8555 }
    8556 #endif
    8557 
    8558 int
    8559 main ()
    8560 {
    8561 return f != backtrace_symbols_fd;
    8562   ;
    8563   return 0;
    8564 }
    8565 _ACEOF
    8566 rm -f conftest.$ac_objext conftest$ac_exeext
    8567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8568   (eval $ac_link) 2>conftest.er1
    8569   ac_status=$?
    8570   grep -v '^ *+' conftest.er1 >conftest.err
    8571   rm -f conftest.er1
    8572   cat conftest.err >&5
    8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8574   (exit $ac_status); } &&
    8575          { ac_try='test -z "$ac_c_werror_flag"
    8576                          || test ! -s conftest.err'
    8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8578   (eval $ac_try) 2>&5
    8579   ac_status=$?
    8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8581   (exit $ac_status); }; } &&
    8582          { ac_try='test -s conftest$ac_exeext'
    8583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8584   (eval $ac_try) 2>&5
    8585   ac_status=$?
    8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8587   (exit $ac_status); }; }; then
    8588   ac_cv_func_backtrace_symbols_fd=yes
    8589 else
    8590   echo "$as_me: failed program was:" >&5
    8591 sed 's/^/| /' conftest.$ac_ext >&5
    8592 
    8593 ac_cv_func_backtrace_symbols_fd=no
    8594 fi
    8595 rm -f conftest.err conftest.$ac_objext \
    8596       conftest$ac_exeext conftest.$ac_ext
    8597 fi
    8598 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
    8599 echo "${ECHO_T}$ac_cv_func_backtrace_symbols_fd" >&6
    8600 if test $ac_cv_func_backtrace_symbols_fd = yes; then
     7348ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
     7349if test "x$ac_cv_func_backtrace_symbols_fd" = xyes; then :
    86017350  HAVE_BACKTRACE_SYMBOLS_FD_FUNC=1
    86027351fi
    86037352
    86047353if test -n "$HAVE_EXECINFO_H_INC" -a -n "$HAVE_BACKTRACE_FUNC"  -a -n "$HAVE_BACKTRACE_SYMBOLS_FD_FUNC"; then
    8605   cat >>confdefs.h <<\_ACEOF
    8606 #define HAVE_BACKTRACE 1
    8607 _ACEOF
     7354
     7355$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
    86087356
    86097357fi
     
    86127360
    86137361
    8614 
    8615   ac_ext=cc
     7362  ac_ext=cpp
    86167363ac_cpp='$CXXCPP $CPPFLAGS'
    86177364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    86197366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    86207367
    8621       echo "$as_me:$LINENO: checking for mpi.h" >&5
    8622 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
    8623   cat >conftest.$ac_ext <<_ACEOF
    8624 /* confdefs.h.  */
    8625 _ACEOF
    8626 cat confdefs.h >>conftest.$ac_ext
    8627 cat >>conftest.$ac_ext <<_ACEOF
     7368      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
     7369$as_echo_n "checking for mpi.h... " >&6; }
     7370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    86287371/* end confdefs.h.  */
    86297372#include <mpi.h>
     
    86367379}
    86377380_ACEOF
    8638 rm -f conftest.$ac_objext conftest$ac_exeext
    8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8640   (eval $ac_link) 2>conftest.er1
    8641   ac_status=$?
    8642   grep -v '^ *+' conftest.er1 >conftest.err
    8643   rm -f conftest.er1
    8644   cat conftest.err >&5
    8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8646   (exit $ac_status); } &&
    8647          { ac_try='test -z "$ac_cxx_werror_flag"
    8648                          || test ! -s conftest.err'
    8649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8650   (eval $ac_try) 2>&5
    8651   ac_status=$?
    8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8653   (exit $ac_status); }; } &&
    8654          { ac_try='test -s conftest$ac_exeext'
    8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8656   (eval $ac_try) 2>&5
    8657   ac_status=$?
    8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8659   (exit $ac_status); }; }; then
     7381if ac_fn_cxx_try_link "$LINENO"; then :
    86607382  have_mpi_h=yes
    86617383else
    8662   echo "$as_me: failed program was:" >&5
    8663 sed 's/^/| /' conftest.$ac_ext >&5
    8664 
    8665 have_mpi_h=no
    8666 fi
    8667 rm -f conftest.err conftest.$ac_objext \
    8668       conftest$ac_exeext conftest.$ac_ext
    8669   echo "$as_me:$LINENO: result: $have_mpi_h" >&5
    8670 echo "${ECHO_T}$have_mpi_h" >&6
     7384  have_mpi_h=no
     7385fi
     7386rm -f core conftest.err conftest.$ac_objext \
     7387    conftest$ac_exeext conftest.$ac_ext
     7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mpi_h" >&5
     7389$as_echo "$have_mpi_h" >&6; }
    86717390  if test "$have_mpi_h" = yes; then
    8672     echo "$as_me:$LINENO: checking for MPI_Init" >&5
    8673 echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
    8674 if test "${ac_cv_func_MPI_Init+set}" = set; then
    8675   echo $ECHO_N "(cached) $ECHO_C" >&6
    8676 else
    8677   cat >conftest.$ac_ext <<_ACEOF
    8678 /* confdefs.h.  */
    8679 _ACEOF
    8680 cat confdefs.h >>conftest.$ac_ext
    8681 cat >>conftest.$ac_ext <<_ACEOF
     7391    ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
     7392if test "x$ac_cv_func_MPI_Init" = xyes; then :
     7393  HAVE_MPI=yes
     7394else
     7395  HAVE_MPI=no
     7396fi
     7397
     7398    if test "$HAVE_MPI" = no; then
     7399      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
     7400$as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
     7401if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
     7402  $as_echo_n "(cached) " >&6
     7403else
     7404  ac_check_lib_save_LIBS=$LIBS
     7405LIBS="-lmpi  $LIBS"
     7406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    86827407/* end confdefs.h.  */
    8683 /* Define MPI_Init to an innocuous variant, in case <limits.h> declares MPI_Init.
    8684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    8685 #define MPI_Init innocuous_MPI_Init
    8686 
    8687 /* System header to define __stub macros and hopefully few prototypes,
    8688     which can conflict with char MPI_Init (); below.
    8689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    8690     <limits.h> exists even on freestanding compilers.  */
    8691 
    8692 #ifdef __STDC__
    8693 # include <limits.h>
    8694 #else
    8695 # include <assert.h>
    8696 #endif
    8697 
    8698 #undef MPI_Init
    8699 
    8700 /* Override any gcc2 internal prototype to avoid an error.  */
     7408
     7409/* Override any GCC internal prototype to avoid an error.
     7410   Use char because int might match the return type of a GCC
     7411   builtin and then its argument prototype would still apply.  */
    87017412#ifdef __cplusplus
    87027413extern "C"
    8703 {
    87047414#endif
    8705 /* We use char because int might match the return type of a gcc2
    8706    builtin and then its argument prototype would still apply.  */
    87077415char MPI_Init ();
    8708 /* The GNU C library defines this for functions which it implements
    8709     to always fail with ENOSYS.  Some functions are actually named
    8710     something starting with __ and the normal name is an alias.  */
    8711 #if defined (__stub_MPI_Init) || defined (__stub___MPI_Init)
    8712 choke me
    8713 #else
    8714 char (*f) () = MPI_Init;
    8715 #endif
    8716 #ifdef __cplusplus
    8717 }
    8718 #endif
    8719 
    87207416int
    87217417main ()
    87227418{
    8723 return f != MPI_Init;
     7419return MPI_Init ();
    87247420  ;
    87257421  return 0;
    87267422}
    87277423_ACEOF
    8728 rm -f conftest.$ac_objext conftest$ac_exeext
    8729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8730   (eval $ac_link) 2>conftest.er1
    8731   ac_status=$?
    8732   grep -v '^ *+' conftest.er1 >conftest.err
    8733   rm -f conftest.er1
    8734   cat conftest.err >&5
    8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8736   (exit $ac_status); } &&
    8737          { ac_try='test -z "$ac_cxx_werror_flag"
    8738                          || test ! -s conftest.err'
    8739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8740   (eval $ac_try) 2>&5
    8741   ac_status=$?
    8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8743   (exit $ac_status); }; } &&
    8744          { ac_try='test -s conftest$ac_exeext'
    8745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8746   (eval $ac_try) 2>&5
    8747   ac_status=$?
    8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8749   (exit $ac_status); }; }; then
    8750   ac_cv_func_MPI_Init=yes
    8751 else
    8752   echo "$as_me: failed program was:" >&5
    8753 sed 's/^/| /' conftest.$ac_ext >&5
    8754 
    8755 ac_cv_func_MPI_Init=no
    8756 fi
    8757 rm -f conftest.err conftest.$ac_objext \
    8758       conftest$ac_exeext conftest.$ac_ext
    8759 fi
    8760 echo "$as_me:$LINENO: result: $ac_cv_func_MPI_Init" >&5
    8761 echo "${ECHO_T}$ac_cv_func_MPI_Init" >&6
    8762 if test $ac_cv_func_MPI_Init = yes; then
    8763   HAVE_MPI=yes
    8764 else
    8765   HAVE_MPI=no
    8766 fi
    8767 
     7424if ac_fn_cxx_try_link "$LINENO"; then :
     7425  ac_cv_lib_mpi_MPI_Init=yes
     7426else
     7427  ac_cv_lib_mpi_MPI_Init=no
     7428fi
     7429rm -f core conftest.err conftest.$ac_objext \
     7430    conftest$ac_exeext conftest.$ac_ext
     7431LIBS=$ac_check_lib_save_LIBS
     7432fi
     7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
     7434$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
     7435if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
     7436  HAVE_MPI=yes;LIBS="-lmpi $LIBS"
     7437fi
     7438
     7439    fi
    87687440    if test "$HAVE_MPI" = no; then
    8769       echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
    8770 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
    8771 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
    8772   echo $ECHO_N "(cached) $ECHO_C" >&6
     7441      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
     7442$as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
     7443if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
     7444  $as_echo_n "(cached) " >&6
    87737445else
    87747446  ac_check_lib_save_LIBS=$LIBS
    8775 LIBS="-lmpi  $LIBS"
    8776 cat >conftest.$ac_ext <<_ACEOF
    8777 /* confdefs.h.  */
    8778 _ACEOF
    8779 cat confdefs.h >>conftest.$ac_ext
    8780 cat >>conftest.$ac_ext <<_ACEOF
     7447LIBS="-lmpich  $LIBS"
     7448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    87817449/* end confdefs.h.  */
    87827450
    8783 /* Override any gcc2 internal prototype to avoid an error.  */
     7451/* Override any GCC internal prototype to avoid an error.
     7452   Use char because int might match the return type of a GCC
     7453   builtin and then its argument prototype would still apply.  */
    87847454#ifdef __cplusplus
    87857455extern "C"
    87867456#endif
    8787 /* We use char because int might match the return type of a gcc2
    8788    builtin and then its argument prototype would still apply.  */
    87897457char MPI_Init ();
    87907458int
    87917459main ()
    87927460{
    8793 MPI_Init ();
     7461return MPI_Init ();
    87947462  ;
    87957463  return 0;
    87967464}
    87977465_ACEOF
    8798 rm -f conftest.$ac_objext conftest$ac_exeext
    8799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8800   (eval $ac_link) 2>conftest.er1
    8801   ac_status=$?
    8802   grep -v '^ *+' conftest.er1 >conftest.err
    8803   rm -f conftest.er1
    8804   cat conftest.err >&5
    8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8806   (exit $ac_status); } &&
    8807          { ac_try='test -z "$ac_cxx_werror_flag"
    8808                          || test ! -s conftest.err'
    8809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8810   (eval $ac_try) 2>&5
    8811   ac_status=$?
    8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8813   (exit $ac_status); }; } &&
    8814          { ac_try='test -s conftest$ac_exeext'
    8815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8816   (eval $ac_try) 2>&5
    8817   ac_status=$?
    8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8819   (exit $ac_status); }; }; then
    8820   ac_cv_lib_mpi_MPI_Init=yes
    8821 else
    8822   echo "$as_me: failed program was:" >&5
    8823 sed 's/^/| /' conftest.$ac_ext >&5
    8824 
    8825 ac_cv_lib_mpi_MPI_Init=no
    8826 fi
    8827 rm -f conftest.err conftest.$ac_objext \
    8828       conftest$ac_exeext conftest.$ac_ext
     7466if ac_fn_cxx_try_link "$LINENO"; then :
     7467  ac_cv_lib_mpich_MPI_Init=yes
     7468else
     7469  ac_cv_lib_mpich_MPI_Init=no
     7470fi
     7471rm -f core conftest.err conftest.$ac_objext \
     7472    conftest$ac_exeext conftest.$ac_ext
    88297473LIBS=$ac_check_lib_save_LIBS
    88307474fi
    8831 echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
    8832 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
    8833 if test $ac_cv_lib_mpi_MPI_Init = yes; then
    8834   HAVE_MPI=yes;LIBS="-lmpi $LIBS"
     7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
     7476$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
     7477if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
     7478  HAVE_MPI=yes;LIBS="-lmpich $LIBS"
    88357479fi
    88367480
    88377481    fi
    8838     if test "$HAVE_MPI" = no; then
    8839       echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
    8840 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
    8841 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
    8842   echo $ECHO_N "(cached) $ECHO_C" >&6
     7482  fi
     7483  if test X$HAVE_MPI = Xyes; then
     7484
     7485$as_echo "#define HAVE_MPI 1" >>confdefs.h
     7486
     7487    ac_fn_cxx_check_func "$LINENO" "MPI_File_open" "ac_cv_func_MPI_File_open"
     7488if test "x$ac_cv_func_MPI_File_open" = xyes; then :
     7489  HAVE_MPIIO=yes;
     7490$as_echo "#define HAVE_MPIIO 1" >>confdefs.h
     7491
     7492fi
     7493
     7494    ac_fn_cxx_check_func "$LINENO" "MPI_Init_thread" "ac_cv_func_MPI_Init_thread"
     7495if test "x$ac_cv_func_MPI_Init_thread" = xyes; then :
     7496
     7497$as_echo "#define HAVE_MPI_INIT_THREAD 1" >>confdefs.h
     7498
     7499fi
     7500
     7501    HAVE_MPIPP=no;
     7502    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Abort in -lmpi++" >&5
     7503$as_echo_n "checking for MPI_Abort in -lmpi++... " >&6; }
     7504if ${ac_cv_lib_mpipp_MPI_Abort+:} false; then :
     7505  $as_echo_n "(cached) " >&6
    88437506else
    88447507  ac_check_lib_save_LIBS=$LIBS
    8845 LIBS="-lmpich  $LIBS"
    8846 cat >conftest.$ac_ext <<_ACEOF
    8847 /* confdefs.h.  */
    8848 _ACEOF
    8849 cat confdefs.h >>conftest.$ac_ext
    8850 cat >>conftest.$ac_ext <<_ACEOF
     7508LIBS="-lmpi++  $LIBS"
     7509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    88517510/* end confdefs.h.  */
    88527511
    8853 /* Override any gcc2 internal prototype to avoid an error.  */
     7512/* Override any GCC internal prototype to avoid an error.
     7513   Use char because int might match the return type of a GCC
     7514   builtin and then its argument prototype would still apply.  */
    88547515#ifdef __cplusplus
    88557516extern "C"
    88567517#endif
    8857 /* We use char because int might match the return type of a gcc2
    8858    builtin and then its argument prototype would still apply.  */
    8859 char MPI_Init ();
     7518char MPI_Abort ();
    88607519int
    88617520main ()
    88627521{
    8863 MPI_Init ();
     7522return MPI_Abort ();
    88647523  ;
    88657524  return 0;
    88667525}
    88677526_ACEOF
    8868 rm -f conftest.$ac_objext conftest$ac_exeext
    8869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8870   (eval $ac_link) 2>conftest.er1
    8871   ac_status=$?
    8872   grep -v '^ *+' conftest.er1 >conftest.err
    8873   rm -f conftest.er1
    8874   cat conftest.err >&5
    8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8876   (exit $ac_status); } &&
    8877          { ac_try='test -z "$ac_cxx_werror_flag"
    8878                          || test ! -s conftest.err'
    8879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8880   (eval $ac_try) 2>&5
    8881   ac_status=$?
    8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8883   (exit $ac_status); }; } &&
    8884          { ac_try='test -s conftest$ac_exeext'
    8885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8886   (eval $ac_try) 2>&5
    8887   ac_status=$?
    8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8889   (exit $ac_status); }; }; then
    8890   ac_cv_lib_mpich_MPI_Init=yes
    8891 else
    8892   echo "$as_me: failed program was:" >&5
    8893 sed 's/^/| /' conftest.$ac_ext >&5
    8894 
    8895 ac_cv_lib_mpich_MPI_Init=no
    8896 fi
    8897 rm -f conftest.err conftest.$ac_objext \
    8898       conftest$ac_exeext conftest.$ac_ext
     7527if ac_fn_cxx_try_link "$LINENO"; then :
     7528  ac_cv_lib_mpipp_MPI_Abort=yes
     7529else
     7530  ac_cv_lib_mpipp_MPI_Abort=no
     7531fi
     7532rm -f core conftest.err conftest.$ac_objext \
     7533    conftest$ac_exeext conftest.$ac_ext
    88997534LIBS=$ac_check_lib_save_LIBS
    89007535fi
    8901 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
    8902 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
    8903 if test $ac_cv_lib_mpich_MPI_Init = yes; then
    8904   HAVE_MPI=yes;LIBS="-lmpich $LIBS"
    8905 fi
    8906 
    8907     fi
    8908   fi
    8909   if test X$HAVE_MPI = Xyes; then
    8910     cat >>confdefs.h <<\_ACEOF
    8911 #define HAVE_MPI 1
    8912 _ACEOF
    8913 
    8914     echo "$as_me:$LINENO: checking for MPI_File_open" >&5
    8915 echo $ECHO_N "checking for MPI_File_open... $ECHO_C" >&6
    8916 if test "${ac_cv_func_MPI_File_open+set}" = set; then
    8917   echo $ECHO_N "(cached) $ECHO_C" >&6
    8918 else
    8919   cat >conftest.$ac_ext <<_ACEOF
    8920 /* confdefs.h.  */
    8921 _ACEOF
    8922 cat confdefs.h >>conftest.$ac_ext
    8923 cat >>conftest.$ac_ext <<_ACEOF
     7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpipp_MPI_Abort" >&5
     7537$as_echo "$ac_cv_lib_mpipp_MPI_Abort" >&6; }
     7538if test "x$ac_cv_lib_mpipp_MPI_Abort" = xyes; then :
     7539  HAVE_MPIPP=yes;LIBS="-lmpi++ $LIBS"
     7540fi
     7541
     7542    if test X$HAVE_MPIPP = Xno; then
     7543      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Abort in -lpmpich++" >&5
     7544$as_echo_n "checking for MPI_Abort in -lpmpich++... " >&6; }
     7545if ${ac_cv_lib_pmpichpp_MPI_Abort+:} false; then :
     7546  $as_echo_n "(cached) " >&6
     7547else
     7548  ac_check_lib_save_LIBS=$LIBS
     7549LIBS="-lpmpich++  $LIBS"
     7550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    89247551/* end confdefs.h.  */
    8925 /* Define MPI_File_open to an innocuous variant, in case <limits.h> declares MPI_File_open.
    8926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    8927 #define MPI_File_open innocuous_MPI_File_open
    8928 
    8929 /* System header to define __stub macros and hopefully few prototypes,
    8930     which can conflict with char MPI_File_open (); below.
    8931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    8932     <limits.h> exists even on freestanding compilers.  */
    8933 
    8934 #ifdef __STDC__
    8935 # include <limits.h>
    8936 #else
    8937 # include <assert.h>
    8938 #endif
    8939 
    8940 #undef MPI_File_open
    8941 
    8942 /* Override any gcc2 internal prototype to avoid an error.  */
     7552
     7553/* Override any GCC internal prototype to avoid an error.
     7554   Use char because int might match the return type of a GCC
     7555   builtin and then its argument prototype would still apply.  */
    89437556#ifdef __cplusplus
    89447557extern "C"
    8945 {
    89467558#endif
    8947 /* We use char because int might match the return type of a gcc2
    8948    builtin and then its argument prototype would still apply.  */
    8949 char MPI_File_open ();
    8950 /* The GNU C library defines this for functions which it implements
    8951     to always fail with ENOSYS.  Some functions are actually named
    8952     something starting with __ and the normal name is an alias.  */
    8953 #if defined (__stub_MPI_File_open) || defined (__stub___MPI_File_open)
    8954 choke me
    8955 #else
    8956 char (*f) () = MPI_File_open;
    8957 #endif
    8958 #ifdef __cplusplus
    8959 }
    8960 #endif
    8961 
     7559char MPI_Abort ();
    89627560int
    89637561main ()
    89647562{
    8965 return f != MPI_File_open;
     7563return MPI_Abort ();
    89667564  ;
    89677565  return 0;
    89687566}
    89697567_ACEOF
    8970 rm -f conftest.$ac_objext conftest$ac_exeext
    8971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8972   (eval $ac_link) 2>conftest.er1
    8973   ac_status=$?
    8974   grep -v '^ *+' conftest.er1 >conftest.err
    8975   rm -f conftest.er1
    8976   cat conftest.err >&5
    8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8978   (exit $ac_status); } &&
    8979          { ac_try='test -z "$ac_cxx_werror_flag"
    8980                          || test ! -s conftest.err'
    8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8982   (eval $ac_try) 2>&5
    8983   ac_status=$?
    8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8985   (exit $ac_status); }; } &&
    8986          { ac_try='test -s conftest$ac_exeext'
    8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8988   (eval $ac_try) 2>&5
    8989   ac_status=$?
    8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8991   (exit $ac_status); }; }; then
    8992   ac_cv_func_MPI_File_open=yes
    8993 else
    8994   echo "$as_me: failed program was:" >&5
    8995 sed 's/^/| /' conftest.$ac_ext >&5
    8996 
    8997 ac_cv_func_MPI_File_open=no
    8998 fi
    8999 rm -f conftest.err conftest.$ac_objext \
    9000       conftest$ac_exeext conftest.$ac_ext
    9001 fi
    9002 echo "$as_me:$LINENO: result: $ac_cv_func_MPI_File_open" >&5
    9003 echo "${ECHO_T}$ac_cv_func_MPI_File_open" >&6
    9004 if test $ac_cv_func_MPI_File_open = yes; then
    9005   HAVE_MPIIO=yes;cat >>confdefs.h <<\_ACEOF
    9006 #define HAVE_MPIIO 1
    9007 _ACEOF
    9008 
    9009 fi
    9010 
    9011     echo "$as_me:$LINENO: checking for MPI_Init_thread" >&5
    9012 echo $ECHO_N "checking for MPI_Init_thread... $ECHO_C" >&6
    9013 if test "${ac_cv_func_MPI_Init_thread+set}" = set; then
    9014   echo $ECHO_N "(cached) $ECHO_C" >&6
    9015 else
    9016   cat >conftest.$ac_ext <<_ACEOF
    9017 /* confdefs.h.  */
    9018 _ACEOF
    9019 cat confdefs.h >>conftest.$ac_ext
    9020 cat >>conftest.$ac_ext <<_ACEOF
    9021 /* end confdefs.h.  */
    9022 /* Define MPI_Init_thread to an innocuous variant, in case <limits.h> declares MPI_Init_thread.
    9023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    9024 #define MPI_Init_thread innocuous_MPI_Init_thread
    9025 
    9026 /* System header to define __stub macros and hopefully few prototypes,
    9027     which can conflict with char MPI_Init_thread (); below.
    9028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    9029     <limits.h> exists even on freestanding compilers.  */
    9030 
    9031 #ifdef __STDC__
    9032 # include <limits.h>
    9033 #else
    9034 # include <assert.h>
    9035 #endif
    9036 
    9037 #undef MPI_Init_thread
    9038 
    9039 /* Override any gcc2 internal prototype to avoid an error.  */
    9040 #ifdef __cplusplus
    9041 extern "C"
    9042 {
    9043 #endif
    9044 /* We use char because int might match the return type of a gcc2
    9045    builtin and then its argument prototype would still apply.  */
    9046 char MPI_Init_thread ();
    9047 /* The GNU C library defines this for functions which it implements
    9048     to always fail with ENOSYS.  Some functions are actually named
    9049     something starting with __ and the normal name is an alias.  */
    9050 #if defined (__stub_MPI_Init_thread) || defined (__stub___MPI_Init_thread)
    9051 choke me
    9052 #else
    9053 char (*f) () = MPI_Init_thread;
    9054 #endif
    9055 #ifdef __cplusplus
    9056 }
    9057 #endif
    9058 
    9059 int
    9060 main ()
    9061 {
    9062 return f != MPI_Init_thread;
    9063   ;
    9064   return 0;
    9065 }
    9066 _ACEOF
    9067 rm -f conftest.$ac_objext conftest$ac_exeext
    9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9069   (eval $ac_link) 2>conftest.er1
    9070   ac_status=$?
    9071   grep -v '^ *+' conftest.er1 >conftest.err
    9072   rm -f conftest.er1
    9073   cat conftest.err >&5
    9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9075   (exit $ac_status); } &&
    9076          { ac_try='test -z "$ac_cxx_werror_flag"
    9077                          || test ! -s conftest.err'
    9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9079   (eval $ac_try) 2>&5
    9080   ac_status=$?
    9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9082   (exit $ac_status); }; } &&
    9083          { ac_try='test -s conftest$ac_exeext'
    9084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9085   (eval $ac_try) 2>&5
    9086   ac_status=$?
    9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9088   (exit $ac_status); }; }; then
    9089   ac_cv_func_MPI_Init_thread=yes
    9090 else
    9091   echo "$as_me: failed program was:" >&5
    9092 sed 's/^/| /' conftest.$ac_ext >&5
    9093 
    9094 ac_cv_func_MPI_Init_thread=no
    9095 fi
    9096 rm -f conftest.err conftest.$ac_objext \
    9097       conftest$ac_exeext conftest.$ac_ext
    9098 fi
    9099 echo "$as_me:$LINENO: result: $ac_cv_func_MPI_Init_thread" >&5
    9100 echo "${ECHO_T}$ac_cv_func_MPI_Init_thread" >&6
    9101 if test $ac_cv_func_MPI_Init_thread = yes; then
    9102   cat >>confdefs.h <<\_ACEOF
    9103 #define HAVE_MPI_INIT_THREAD 1
    9104 _ACEOF
    9105 
    9106 fi
    9107 
    9108     HAVE_MPIPP=no;
    9109     echo "$as_me:$LINENO: checking for MPI_Abort in -lmpi++" >&5
    9110 echo $ECHO_N "checking for MPI_Abort in -lmpi++... $ECHO_C" >&6
    9111 if test "${ac_cv_lib_mpipp_MPI_Abort+set}" = set; then
    9112   echo $ECHO_N "(cached) $ECHO_C" >&6
    9113 else
    9114   ac_check_lib_save_LIBS=$LIBS
    9115 LIBS="-lmpi++  $LIBS"
    9116 cat >conftest.$ac_ext <<_ACEOF
    9117 /* confdefs.h.  */
    9118 _ACEOF
    9119 cat confdefs.h >>conftest.$ac_ext
    9120 cat >>conftest.$ac_ext <<_ACEOF
    9121 /* end confdefs.h.  */
    9122 
    9123 /* Override any gcc2 internal prototype to avoid an error.  */
    9124 #ifdef __cplusplus
    9125 extern "C"
    9126 #endif
    9127 /* We use char because int might match the return type of a gcc2
    9128    builtin and then its argument prototype would still apply.  */
    9129 char MPI_Abort ();
    9130 int
    9131 main ()
    9132 {
    9133 MPI_Abort ();
    9134   ;
    9135   return 0;
    9136 }
    9137 _ACEOF
    9138 rm -f conftest.$ac_objext conftest$ac_exeext
    9139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9140   (eval $ac_link) 2>conftest.er1
    9141   ac_status=$?
    9142   grep -v '^ *+' conftest.er1 >conftest.err
    9143   rm -f conftest.er1
    9144   cat conftest.err >&5
    9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9146   (exit $ac_status); } &&
    9147          { ac_try='test -z "$ac_cxx_werror_flag"
    9148                          || test ! -s conftest.err'
    9149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9150   (eval $ac_try) 2>&5
    9151   ac_status=$?
    9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9153   (exit $ac_status); }; } &&
    9154          { ac_try='test -s conftest$ac_exeext'
    9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9156   (eval $ac_try) 2>&5
    9157   ac_status=$?
    9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9159   (exit $ac_status); }; }; then
    9160   ac_cv_lib_mpipp_MPI_Abort=yes
    9161 else
    9162   echo "$as_me: failed program was:" >&5
    9163 sed 's/^/| /' conftest.$ac_ext >&5
    9164 
    9165 ac_cv_lib_mpipp_MPI_Abort=no
    9166 fi
    9167 rm -f conftest.err conftest.$ac_objext \
    9168       conftest$ac_exeext conftest.$ac_ext
     7568if ac_fn_cxx_try_link "$LINENO"; then :
     7569  ac_cv_lib_pmpichpp_MPI_Abort=yes
     7570else
     7571  ac_cv_lib_pmpichpp_MPI_Abort=no
     7572fi
     7573rm -f core conftest.err conftest.$ac_objext \
     7574    conftest$ac_exeext conftest.$ac_ext
    91697575LIBS=$ac_check_lib_save_LIBS
    91707576fi
    9171 echo "$as_me:$LINENO: result: $ac_cv_lib_mpipp_MPI_Abort" >&5
    9172 echo "${ECHO_T}$ac_cv_lib_mpipp_MPI_Abort" >&6
    9173 if test $ac_cv_lib_mpipp_MPI_Abort = yes; then
    9174   HAVE_MPIPP=yes;LIBS="-lmpi++ $LIBS"
    9175 fi
    9176 
    9177     if test X$HAVE_MPIPP = Xno; then
    9178       echo "$as_me:$LINENO: checking for MPI_Abort in -lpmpich++" >&5
    9179 echo $ECHO_N "checking for MPI_Abort in -lpmpich++... $ECHO_C" >&6
    9180 if test "${ac_cv_lib_pmpichpp_MPI_Abort+set}" = set; then
    9181   echo $ECHO_N "(cached) $ECHO_C" >&6
    9182 else
    9183   ac_check_lib_save_LIBS=$LIBS
    9184 LIBS="-lpmpich++  $LIBS"
    9185 cat >conftest.$ac_ext <<_ACEOF
    9186 /* confdefs.h.  */
    9187 _ACEOF
    9188 cat confdefs.h >>conftest.$ac_ext
    9189 cat >>conftest.$ac_ext <<_ACEOF
    9190 /* end confdefs.h.  */
    9191 
    9192 /* Override any gcc2 internal prototype to avoid an error.  */
    9193 #ifdef __cplusplus
    9194 extern "C"
    9195 #endif
    9196 /* We use char because int might match the return type of a gcc2
    9197    builtin and then its argument prototype would still apply.  */
    9198 char MPI_Abort ();
    9199 int
    9200 main ()
    9201 {
    9202 MPI_Abort ();
    9203   ;
    9204   return 0;
    9205 }
    9206 _ACEOF
    9207 rm -f conftest.$ac_objext conftest$ac_exeext
    9208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9209   (eval $ac_link) 2>conftest.er1
    9210   ac_status=$?
    9211   grep -v '^ *+' conftest.er1 >conftest.err
    9212   rm -f conftest.er1
    9213   cat conftest.err >&5
    9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9215   (exit $ac_status); } &&
    9216          { ac_try='test -z "$ac_cxx_werror_flag"
    9217                          || test ! -s conftest.err'
    9218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9219   (eval $ac_try) 2>&5
    9220   ac_status=$?
    9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9222   (exit $ac_status); }; } &&
    9223          { ac_try='test -s conftest$ac_exeext'
    9224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9225   (eval $ac_try) 2>&5
    9226   ac_status=$?
    9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9228   (exit $ac_status); }; }; then
    9229   ac_cv_lib_pmpichpp_MPI_Abort=yes
    9230 else
    9231   echo "$as_me: failed program was:" >&5
    9232 sed 's/^/| /' conftest.$ac_ext >&5
    9233 
    9234 ac_cv_lib_pmpichpp_MPI_Abort=no
    9235 fi
    9236 rm -f conftest.err conftest.$ac_objext \
    9237       conftest$ac_exeext conftest.$ac_ext
    9238 LIBS=$ac_check_lib_save_LIBS
    9239 fi
    9240 echo "$as_me:$LINENO: result: $ac_cv_lib_pmpichpp_MPI_Abort" >&5
    9241 echo "${ECHO_T}$ac_cv_lib_pmpichpp_MPI_Abort" >&6
    9242 if test $ac_cv_lib_pmpichpp_MPI_Abort = yes; then
     7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmpichpp_MPI_Abort" >&5
     7578$as_echo "$ac_cv_lib_pmpichpp_MPI_Abort" >&6; }
     7579if test "x$ac_cv_lib_pmpichpp_MPI_Abort" = xyes; then :
    92437580  HAVE_MPIPP=yes;LIBS="-lpmpich++ $LIBS"
    92447581fi
    92457582
    92467583    fi
    9247     cat >>confdefs.h <<\_ACEOF
    9248 #define HAVE_MPIPP 1
    9249 _ACEOF
     7584
     7585$as_echo "#define HAVE_MPIPP 1" >>confdefs.h
    92507586
    92517587  fi
     
    92597595
    92607596if test X$HAVE_MPI != Xyes -a $ALWAYS_USE_MPI = yes; then
    9261   { { echo "$as_me:$LINENO: error: --enable-always-use-mpi is set but MPI is not available" >&5
    9262 echo "$as_me: error: --enable-always-use-mpi is set but MPI is not available" >&2;}
    9263    { (exit 1); exit 1; }; }
     7597  as_fn_error $? "--enable-always-use-mpi is set but MPI is not available" "$LINENO" 5
    92647598elif test $ALWAYS_USE_MPI = yes; then
    9265   cat >>confdefs.h <<\_ACEOF
    9266 #define ALWAYS_USE_MPI 1
    9267 _ACEOF
    9268 
    9269 fi
    9270 
    9271 
    9272 
    9273   ac_ext=cc
     7599
     7600$as_echo "#define ALWAYS_USE_MPI 1" >>confdefs.h
     7601
     7602fi
     7603
     7604
     7605  ac_ext=cpp
    92747606ac_cpp='$CXXCPP $CPPFLAGS'
    92757607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    92777609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    92787610
    9279   if test "${ac_cv_header_armci_h+set}" = set; then
    9280   echo "$as_me:$LINENO: checking for armci.h" >&5
    9281 echo $ECHO_N "checking for armci.h... $ECHO_C" >&6
    9282 if test "${ac_cv_header_armci_h+set}" = set; then
    9283   echo $ECHO_N "(cached) $ECHO_C" >&6
    9284 fi
    9285 echo "$as_me:$LINENO: result: $ac_cv_header_armci_h" >&5
    9286 echo "${ECHO_T}$ac_cv_header_armci_h" >&6
    9287 else
    9288   # Is the header compilable?
    9289 echo "$as_me:$LINENO: checking armci.h usability" >&5
    9290 echo $ECHO_N "checking armci.h usability... $ECHO_C" >&6
    9291 cat >conftest.$ac_ext <<_ACEOF
    9292 /* confdefs.h.  */
    9293 _ACEOF
    9294 cat confdefs.h >>conftest.$ac_ext
    9295 cat >>conftest.$ac_ext <<_ACEOF
     7611  ac_fn_cxx_check_header_mongrel "$LINENO" "armci.h" "ac_cv_header_armci_h" "$ac_includes_default"
     7612if test "x$ac_cv_header_armci_h" = xyes; then :
     7613
     7614    ac_fn_cxx_check_func "$LINENO" "ARMCI_Init" "ac_cv_func_ARMCI_Init"
     7615if test "x$ac_cv_func_ARMCI_Init" = xyes; then :
     7616  HAVE_ARMCI=yes
     7617else
     7618
     7619      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARMCI_Init in -larmci" >&5
     7620$as_echo_n "checking for ARMCI_Init in -larmci... " >&6; }
     7621if ${ac_cv_lib_armci_ARMCI_Init+:} false; then :
     7622  $as_echo_n "(cached) " >&6
     7623else
     7624  ac_check_lib_save_LIBS=$LIBS
     7625LIBS="-larmci  $LIBS"
     7626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    92967627/* end confdefs.h.  */
    9297 $ac_includes_default
    9298 #include <armci.h>
    9299 _ACEOF
    9300 rm -f conftest.$ac_objext
    9301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    9302   (eval $ac_compile) 2>conftest.er1
    9303   ac_status=$?
    9304   grep -v '^ *+' conftest.er1 >conftest.err
    9305   rm -f conftest.er1
    9306   cat conftest.err >&5
    9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9308   (exit $ac_status); } &&
    9309          { ac_try='test -z "$ac_cxx_werror_flag"
    9310                          || test ! -s conftest.err'
    9311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9312   (eval $ac_try) 2>&5
    9313   ac_status=$?
    9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9315   (exit $ac_status); }; } &&
    9316          { ac_try='test -s conftest.$ac_objext'
    9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9318   (eval $ac_try) 2>&5
    9319   ac_status=$?
    9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9321   (exit $ac_status); }; }; then
    9322   ac_header_compiler=yes
    9323 else
    9324   echo "$as_me: failed program was:" >&5
    9325 sed 's/^/| /' conftest.$ac_ext >&5
    9326 
    9327 ac_header_compiler=no
    9328 fi
    9329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    9330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    9331 echo "${ECHO_T}$ac_header_compiler" >&6
    9332 
    9333 # Is the header present?
    9334 echo "$as_me:$LINENO: checking armci.h presence" >&5
    9335 echo $ECHO_N "checking armci.h presence... $ECHO_C" >&6
    9336 cat >conftest.$ac_ext <<_ACEOF
    9337 /* confdefs.h.  */
    9338 _ACEOF
    9339 cat confdefs.h >>conftest.$ac_ext
    9340 cat >>conftest.$ac_ext <<_ACEOF
    9341 /* end confdefs.h.  */
    9342 #include <armci.h>
    9343 _ACEOF
    9344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    9345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    9346   ac_status=$?
    9347   grep -v '^ *+' conftest.er1 >conftest.err
    9348   rm -f conftest.er1
    9349   cat conftest.err >&5
    9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9351   (exit $ac_status); } >/dev/null; then
    9352   if test -s conftest.err; then
    9353     ac_cpp_err=$ac_cxx_preproc_warn_flag
    9354     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    9355   else
    9356     ac_cpp_err=
    9357   fi
    9358 else
    9359   ac_cpp_err=yes
    9360 fi
    9361 if test -z "$ac_cpp_err"; then
    9362   ac_header_preproc=yes
    9363 else
    9364   echo "$as_me: failed program was:" >&5
    9365 sed 's/^/| /' conftest.$ac_ext >&5
    9366 
    9367   ac_header_preproc=no
    9368 fi
    9369 rm -f conftest.err conftest.$ac_ext
    9370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    9371 echo "${ECHO_T}$ac_header_preproc" >&6
    9372 
    9373 # So?  What about this header?
    9374 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    9375   yes:no: )
    9376     { echo "$as_me:$LINENO: WARNING: armci.h: accepted by the compiler, rejected by the preprocessor!" >&5
    9377 echo "$as_me: WARNING: armci.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    9378     { echo "$as_me:$LINENO: WARNING: armci.h: proceeding with the compiler's result" >&5
    9379 echo "$as_me: WARNING: armci.h: proceeding with the compiler's result" >&2;}
    9380     ac_header_preproc=yes
    9381     ;;
    9382   no:yes:* )
    9383     { echo "$as_me:$LINENO: WARNING: armci.h: present but cannot be compiled" >&5
    9384 echo "$as_me: WARNING: armci.h: present but cannot be compiled" >&2;}
    9385     { echo "$as_me:$LINENO: WARNING: armci.h:     check for missing prerequisite headers?" >&5
    9386 echo "$as_me: WARNING: armci.h:     check for missing prerequisite headers?" >&2;}
    9387     { echo "$as_me:$LINENO: WARNING: armci.h: see the Autoconf documentation" >&5
    9388 echo "$as_me: WARNING: armci.h: see the Autoconf documentation" >&2;}
    9389     { echo "$as_me:$LINENO: WARNING: armci.h:     section \"Present But Cannot Be Compiled\"" >&5
    9390 echo "$as_me: WARNING: armci.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    9391     { echo "$as_me:$LINENO: WARNING: armci.h: proceeding with the preprocessor's result" >&5
    9392 echo "$as_me: WARNING: armci.h: proceeding with the preprocessor's result" >&2;}
    9393     { echo "$as_me:$LINENO: WARNING: armci.h: in the future, the compiler will take precedence" >&5
    9394 echo "$as_me: WARNING: armci.h: in the future, the compiler will take precedence" >&2;}
    9395     (
    9396       cat <<\_ASBOX
    9397 ## ------------------------------------------ ##
    9398 ## Report this to the AC_PACKAGE_NAME lists.  ##
    9399 ## ------------------------------------------ ##
    9400 _ASBOX
    9401     ) |
    9402       sed "s/^/$as_me: WARNING:     /" >&2
    9403     ;;
    9404 esac
    9405 echo "$as_me:$LINENO: checking for armci.h" >&5
    9406 echo $ECHO_N "checking for armci.h... $ECHO_C" >&6
    9407 if test "${ac_cv_header_armci_h+set}" = set; then
    9408   echo $ECHO_N "(cached) $ECHO_C" >&6
    9409 else
    9410   ac_cv_header_armci_h=$ac_header_preproc
    9411 fi
    9412 echo "$as_me:$LINENO: result: $ac_cv_header_armci_h" >&5
    9413 echo "${ECHO_T}$ac_cv_header_armci_h" >&6
    9414 
    9415 fi
    9416 if test $ac_cv_header_armci_h = yes; then
    9417 
    9418     echo "$as_me:$LINENO: checking for ARMCI_Init" >&5
    9419 echo $ECHO_N "checking for ARMCI_Init... $ECHO_C" >&6
    9420 if test "${ac_cv_func_ARMCI_Init+set}" = set; then
    9421   echo $ECHO_N "(cached) $ECHO_C" >&6
    9422 else
    9423   cat >conftest.$ac_ext <<_ACEOF
    9424 /* confdefs.h.  */
    9425 _ACEOF
    9426 cat confdefs.h >>conftest.$ac_ext
    9427 cat >>conftest.$ac_ext <<_ACEOF
    9428 /* end confdefs.h.  */
    9429 /* Define ARMCI_Init to an innocuous variant, in case <limits.h> declares ARMCI_Init.
    9430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    9431 #define ARMCI_Init innocuous_ARMCI_Init
    9432 
    9433 /* System header to define __stub macros and hopefully few prototypes,
    9434     which can conflict with char ARMCI_Init (); below.
    9435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    9436     <limits.h> exists even on freestanding compilers.  */
    9437 
    9438 #ifdef __STDC__
    9439 # include <limits.h>
    9440 #else
    9441 # include <assert.h>
    9442 #endif
    9443 
    9444 #undef ARMCI_Init
    9445 
    9446 /* Override any gcc2 internal prototype to avoid an error.  */
     7628
     7629/* Override any GCC internal prototype to avoid an error.
     7630   Use char because int might match the return type of a GCC
     7631   builtin and then its argument prototype would still apply.  */
    94477632#ifdef __cplusplus
    94487633extern "C"
    9449 {
    94507634#endif
    9451 /* We use char because int might match the return type of a gcc2
    9452    builtin and then its argument prototype would still apply.  */
    94537635char ARMCI_Init ();
    9454 /* The GNU C library defines this for functions which it implements
    9455     to always fail with ENOSYS.  Some functions are actually named
    9456     something starting with __ and the normal name is an alias.  */
    9457 #if defined (__stub_ARMCI_Init) || defined (__stub___ARMCI_Init)
    9458 choke me
    9459 #else
    9460 char (*f) () = ARMCI_Init;
    9461 #endif
    9462 #ifdef __cplusplus
    9463 }
    9464 #endif
    9465 
    94667636int
    94677637main ()
    94687638{
    9469 return f != ARMCI_Init;
     7639return ARMCI_Init ();
    94707640  ;
    94717641  return 0;
    94727642}
    94737643_ACEOF
    9474 rm -f conftest.$ac_objext conftest$ac_exeext
    9475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9476   (eval $ac_link) 2>conftest.er1
    9477   ac_status=$?
    9478   grep -v '^ *+' conftest.er1 >conftest.err
    9479   rm -f conftest.er1
    9480   cat conftest.err >&5
    9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9482   (exit $ac_status); } &&
    9483          { ac_try='test -z "$ac_cxx_werror_flag"
    9484                          || test ! -s conftest.err'
    9485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9486   (eval $ac_try) 2>&5
    9487   ac_status=$?
    9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9489   (exit $ac_status); }; } &&
    9490          { ac_try='test -s conftest$ac_exeext'
    9491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9492   (eval $ac_try) 2>&5
    9493   ac_status=$?
    9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9495   (exit $ac_status); }; }; then
    9496   ac_cv_func_ARMCI_Init=yes
    9497 else
    9498   echo "$as_me: failed program was:" >&5
    9499 sed 's/^/| /' conftest.$ac_ext >&5
    9500 
    9501 ac_cv_func_ARMCI_Init=no
    9502 fi
    9503 rm -f conftest.err conftest.$ac_objext \
    9504       conftest$ac_exeext conftest.$ac_ext
    9505 fi
    9506 echo "$as_me:$LINENO: result: $ac_cv_func_ARMCI_Init" >&5
    9507 echo "${ECHO_T}$ac_cv_func_ARMCI_Init" >&6
    9508 if test $ac_cv_func_ARMCI_Init = yes; then
    9509   HAVE_ARMCI=yes
    9510 else
    9511 
    9512       echo "$as_me:$LINENO: checking for ARMCI_Init in -larmci" >&5
    9513 echo $ECHO_N "checking for ARMCI_Init in -larmci... $ECHO_C" >&6
    9514 if test "${ac_cv_lib_armci_ARMCI_Init+set}" = set; then
    9515   echo $ECHO_N "(cached) $ECHO_C" >&6
    9516 else
    9517   ac_check_lib_save_LIBS=$LIBS
    9518 LIBS="-larmci  $LIBS"
    9519 cat >conftest.$ac_ext <<_ACEOF
    9520 /* confdefs.h.  */
    9521 _ACEOF
    9522 cat confdefs.h >>conftest.$ac_ext
    9523 cat >>conftest.$ac_ext <<_ACEOF
    9524 /* end confdefs.h.  */
    9525 
    9526 /* Override any gcc2 internal prototype to avoid an error.  */
    9527 #ifdef __cplusplus
    9528 extern "C"
    9529 #endif
    9530 /* We use char because int might match the return type of a gcc2
    9531    builtin and then its argument prototype would still apply.  */
    9532 char ARMCI_Init ();
    9533 int
    9534 main ()
    9535 {
    9536 ARMCI_Init ();
    9537   ;
    9538   return 0;
    9539 }
    9540 _ACEOF
    9541 rm -f conftest.$ac_objext conftest$ac_exeext
    9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9543   (eval $ac_link) 2>conftest.er1
    9544   ac_status=$?
    9545   grep -v '^ *+' conftest.er1 >conftest.err
    9546   rm -f conftest.er1
    9547   cat conftest.err >&5
    9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9549   (exit $ac_status); } &&
    9550          { ac_try='test -z "$ac_cxx_werror_flag"
    9551                          || test ! -s conftest.err'
    9552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9553   (eval $ac_try) 2>&5
    9554   ac_status=$?
    9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9556   (exit $ac_status); }; } &&
    9557          { ac_try='test -s conftest$ac_exeext'
    9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9559   (eval $ac_try) 2>&5
    9560   ac_status=$?
    9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9562   (exit $ac_status); }; }; then
     7644if ac_fn_cxx_try_link "$LINENO"; then :
    95637645  ac_cv_lib_armci_ARMCI_Init=yes
    95647646else
    9565   echo "$as_me: failed program was:" >&5
    9566 sed 's/^/| /' conftest.$ac_ext >&5
    9567 
    9568 ac_cv_lib_armci_ARMCI_Init=no
    9569 fi
    9570 rm -f conftest.err conftest.$ac_objext \
    9571       conftest$ac_exeext conftest.$ac_ext
     7647  ac_cv_lib_armci_ARMCI_Init=no
     7648fi
     7649rm -f core conftest.err conftest.$ac_objext \
     7650    conftest$ac_exeext conftest.$ac_ext
    95727651LIBS=$ac_check_lib_save_LIBS
    95737652fi
    9574 echo "$as_me:$LINENO: result: $ac_cv_lib_armci_ARMCI_Init" >&5
    9575 echo "${ECHO_T}$ac_cv_lib_armci_ARMCI_Init" >&6
    9576 if test $ac_cv_lib_armci_ARMCI_Init = yes; then
     7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_armci_ARMCI_Init" >&5
     7654$as_echo "$ac_cv_lib_armci_ARMCI_Init" >&6; }
     7655if test "x$ac_cv_lib_armci_ARMCI_Init" = xyes; then :
    95777656  HAVE_ARMCI=yes;LIBS="-larmci $LIBS"
    95787657fi
     
    95937672
    95947673  if test X$HAVE_ARMCI = Xyes; then
    9595     cat >>confdefs.h <<\_ACEOF
    9596 #define HAVE_ARMCI 1
    9597 _ACEOF
     7674
     7675$as_echo "#define HAVE_ARMCI 1" >>confdefs.h
    95987676
    95997677  fi
    96007678
    96017679if test $DEFAULT_PARALLEL = mtmpi -a X$HAVE_MPI != Xyes; then
    9602   { { echo "$as_me:$LINENO: error: --with-default-parallel=mtmpi but MPI not available" >&5
    9603 echo "$as_me: error: --with-default-parallel=mtmpi but MPI not available" >&2;}
    9604    { (exit 1); exit 1; }; }
     7680  as_fn_error $? "--with-default-parallel=mtmpi but MPI not available" "$LINENO" 5
    96057681fi
    96067682if test $DEFAULT_PARALLEL = armcimpi -a X$HAVE_MPI != Xyes; then
    9607   { { echo "$as_me:$LINENO: error: --with-default-parallel=armcimpi but MPI not available" >&5
    9608 echo "$as_me: error: --with-default-parallel=armcimpi but MPI not available" >&2;}
    9609    { (exit 1); exit 1; }; }
     7683  as_fn_error $? "--with-default-parallel=armcimpi but MPI not available" "$LINENO" 5
    96107684fi
    96117685if test $DEFAULT_PARALLEL = armcimpi -a X$HAVE_ARMCI != Xyes; then
    9612   { { echo "$as_me:$LINENO: error: --with-default-parallel=armcimpi but ARMCI not available" >&5
    9613 echo "$as_me: error: --with-default-parallel=armcimpi but ARMCI not available" >&2;}
    9614    { (exit 1); exit 1; }; }
    9615 fi
    9616 
    9617 
    9618 
    9619 
    9620 
    9621 
    9622 
    9623 
    9624 
    9625 
    9626 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    9627 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    9628 if test "${ac_cv_header_stdc+set}" = set; then
    9629   echo $ECHO_N "(cached) $ECHO_C" >&6
    9630 else
    9631   cat >conftest.$ac_ext <<_ACEOF
    9632 /* confdefs.h.  */
    9633 _ACEOF
    9634 cat confdefs.h >>conftest.$ac_ext
    9635 cat >>conftest.$ac_ext <<_ACEOF
     7686  as_fn_error $? "--with-default-parallel=armcimpi but ARMCI not available" "$LINENO" 5
     7687fi
     7688
     7689
     7690
     7691
     7692
     7693
     7694
     7695
     7696
     7697
     7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     7699$as_echo_n "checking for ANSI C header files... " >&6; }
     7700if ${ac_cv_header_stdc+:} false; then :
     7701  $as_echo_n "(cached) " >&6
     7702else
     7703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    96367704/* end confdefs.h.  */
    96377705#include <stdlib.h>
     
    96487716}
    96497717_ACEOF
    9650 rm -f conftest.$ac_objext
    9651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    9652   (eval $ac_compile) 2>conftest.er1
    9653   ac_status=$?
    9654   grep -v '^ *+' conftest.er1 >conftest.err
    9655   rm -f conftest.er1
    9656   cat conftest.err >&5
    9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9658   (exit $ac_status); } &&
    9659          { ac_try='test -z "$ac_c_werror_flag"
    9660                          || test ! -s conftest.err'
    9661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9662   (eval $ac_try) 2>&5
    9663   ac_status=$?
    9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9665   (exit $ac_status); }; } &&
    9666          { ac_try='test -s conftest.$ac_objext'
    9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9668   (eval $ac_try) 2>&5
    9669   ac_status=$?
    9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9671   (exit $ac_status); }; }; then
     7718if ac_fn_c_try_compile "$LINENO"; then :
    96727719  ac_cv_header_stdc=yes
    96737720else
    9674   echo "$as_me: failed program was:" >&5
    9675 sed 's/^/| /' conftest.$ac_ext >&5
    9676 
    9677 ac_cv_header_stdc=no
    9678 fi
    9679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7721  ac_cv_header_stdc=no
     7722fi
     7723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    96807724
    96817725if test $ac_cv_header_stdc = yes; then
    96827726  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    9683   cat >conftest.$ac_ext <<_ACEOF
    9684 /* confdefs.h.  */
    9685 _ACEOF
    9686 cat confdefs.h >>conftest.$ac_ext
    9687 cat >>conftest.$ac_ext <<_ACEOF
     7727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    96887728/* end confdefs.h.  */
    96897729#include <string.h>
     
    96917731_ACEOF
    96927732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    9693   $EGREP "memchr" >/dev/null 2>&1; then
    9694   :
     7733  $EGREP "memchr" >/dev/null 2>&1; then :
     7734
    96957735else
    96967736  ac_cv_header_stdc=no
     
    97027742if test $ac_cv_header_stdc = yes; then
    97037743  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    9704   cat >conftest.$ac_ext <<_ACEOF
    9705 /* confdefs.h.  */
    9706 _ACEOF
    9707 cat confdefs.h >>conftest.$ac_ext
    9708 cat >>conftest.$ac_ext <<_ACEOF
     7744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    97097745/* end confdefs.h.  */
    97107746#include <stdlib.h>
     
    97127748_ACEOF
    97137749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    9714   $EGREP "free" >/dev/null 2>&1; then
    9715   :
     7750  $EGREP "free" >/dev/null 2>&1; then :
     7751
    97167752else
    97177753  ac_cv_header_stdc=no
     
    97237759if test $ac_cv_header_stdc = yes; then
    97247760  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    9725   if test "$cross_compiling" = yes; then
     7761  if test "$cross_compiling" = yes; then :
    97267762  :
    97277763else
    9728   cat >conftest.$ac_ext <<_ACEOF
    9729 /* confdefs.h.  */
    9730 _ACEOF
    9731 cat confdefs.h >>conftest.$ac_ext
    9732 cat >>conftest.$ac_ext <<_ACEOF
     7764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    97337765/* end confdefs.h.  */
    97347766#include <ctype.h>
     7767#include <stdlib.h>
    97357768#if ((' ' & 0x0FF) == 0x020)
    97367769# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     
    97527785    if (XOR (islower (i), ISLOWER (i))
    97537786        || toupper (i) != TOUPPER (i))
    9754       exit(2);
    9755   exit (0);
     7787      return 2;
     7788  return 0;
    97567789}
    97577790_ACEOF
    9758 rm -f conftest$ac_exeext
    9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9760   (eval $ac_link) 2>&5
    9761   ac_status=$?
    9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    9764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9765   (eval $ac_try) 2>&5
    9766   ac_status=$?
    9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9768   (exit $ac_status); }; }; then
    9769   :
    9770 else
    9771   echo "$as_me: program exited with status $ac_status" >&5
    9772 echo "$as_me: failed program was:" >&5
    9773 sed 's/^/| /' conftest.$ac_ext >&5
    9774 
    9775 ( exit $ac_status )
    9776 ac_cv_header_stdc=no
    9777 fi
    9778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    9779 fi
    9780 fi
    9781 fi
    9782 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    9783 echo "${ECHO_T}$ac_cv_header_stdc" >&6
     7791if ac_fn_c_try_run "$LINENO"; then :
     7792
     7793else
     7794  ac_cv_header_stdc=no
     7795fi
     7796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     7797  conftest.$ac_objext conftest.beam conftest.$ac_ext
     7798fi
     7799
     7800fi
     7801fi
     7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     7803$as_echo "$ac_cv_header_stdc" >&6; }
    97847804if test $ac_cv_header_stdc = yes; then
    97857805
    9786 cat >>confdefs.h <<\_ACEOF
    9787 #define STDC_HEADERS 1
     7806$as_echo "#define STDC_HEADERS 1" >>confdefs.h
     7807
     7808fi
     7809
     7810for ac_header in fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h pwd.h
     7811do :
     7812  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     7813ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     7814if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     7815  cat >>confdefs.h <<_ACEOF
     7816#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    97887817_ACEOF
    97897818
    97907819fi
    97917820
    9792 
    9793 
    9794 
    9795 
    9796 
    9797 
    9798 for ac_header in fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h pwd.h
    9799 do
    9800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    9801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    9802   echo "$as_me:$LINENO: checking for $ac_header" >&5
    9803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    9804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    9805   echo $ECHO_N "(cached) $ECHO_C" >&6
    9806 fi
    9807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    9808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    9809 else
    9810   # Is the header compilable?
    9811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    9812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    9813 cat >conftest.$ac_ext <<_ACEOF
    9814 /* confdefs.h.  */
     7821done
     7822
     7823for ac_header in sys/times.h sys/resource.h time.h machine/fpu.h asm/fpu.h
     7824do :
     7825  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     7826ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     7827if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     7828  cat >>confdefs.h <<_ACEOF
     7829#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    98157830_ACEOF
    9816 cat confdefs.h >>conftest.$ac_ext
    9817 cat >>conftest.$ac_ext <<_ACEOF
    9818 /* end confdefs.h.  */
    9819 $ac_includes_default
    9820 #include <$ac_header>
     7831
     7832fi
     7833
     7834done
     7835
     7836for ac_header in termios.h sys/stat.h sys/types.h dlfcn.h stdint.h
     7837do :
     7838  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     7839ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     7840if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     7841  cat >>confdefs.h <<_ACEOF
     7842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    98217843_ACEOF
    9822 rm -f conftest.$ac_objext
    9823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    9824   (eval $ac_compile) 2>conftest.er1
    9825   ac_status=$?
    9826   grep -v '^ *+' conftest.er1 >conftest.err
    9827   rm -f conftest.er1
    9828   cat conftest.err >&5
    9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9830   (exit $ac_status); } &&
    9831          { ac_try='test -z "$ac_c_werror_flag"
    9832                          || test ! -s conftest.err'
    9833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9834   (eval $ac_try) 2>&5
    9835   ac_status=$?
    9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9837   (exit $ac_status); }; } &&
    9838          { ac_try='test -s conftest.$ac_objext'
    9839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9840   (eval $ac_try) 2>&5
    9841   ac_status=$?
    9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9843   (exit $ac_status); }; }; then
    9844   ac_header_compiler=yes
    9845 else
    9846   echo "$as_me: failed program was:" >&5
    9847 sed 's/^/| /' conftest.$ac_ext >&5
    9848 
    9849 ac_header_compiler=no
    9850 fi
    9851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    9852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    9853 echo "${ECHO_T}$ac_header_compiler" >&6
    9854 
    9855 # Is the header present?
    9856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    9857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    9858 cat >conftest.$ac_ext <<_ACEOF
    9859 /* confdefs.h.  */
    9860 _ACEOF
    9861 cat confdefs.h >>conftest.$ac_ext
    9862 cat >>conftest.$ac_ext <<_ACEOF
    9863 /* end confdefs.h.  */
    9864 #include <$ac_header>
    9865 _ACEOF
    9866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    9867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    9868   ac_status=$?
    9869   grep -v '^ *+' conftest.er1 >conftest.err
    9870   rm -f conftest.er1
    9871   cat conftest.err >&5
    9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9873   (exit $ac_status); } >/dev/null; then
    9874   if test -s conftest.err; then
    9875     ac_cpp_err=$ac_c_preproc_warn_flag
    9876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    9877   else
    9878     ac_cpp_err=
    9879   fi
    9880 else
    9881   ac_cpp_err=yes
    9882 fi
    9883 if test -z "$ac_cpp_err"; then
    9884   ac_header_preproc=yes
    9885 else
    9886   echo "$as_me: failed program was:" >&5
    9887 sed 's/^/| /' conftest.$ac_ext >&5
    9888 
    9889   ac_header_preproc=no
    9890 fi
    9891 rm -f conftest.err conftest.$ac_ext
    9892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    9893 echo "${ECHO_T}$ac_header_preproc" >&6
    9894 
    9895 # So?  What about this header?
    9896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    9897   yes:no: )
    9898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    9899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    9900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    9901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    9902     ac_header_preproc=yes
    9903     ;;
    9904   no:yes:* )
    9905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    9906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    9907     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    9908 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    9909     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    9910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    9911     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    9912 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    9913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    9914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    9915     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    9916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    9917     (
    9918       cat <<\_ASBOX
    9919 ## ------------------------------------------ ##
    9920 ## Report this to the AC_PACKAGE_NAME lists.  ##
    9921 ## ------------------------------------------ ##
    9922 _ASBOX
    9923     ) |
    9924       sed "s/^/$as_me: WARNING:     /" >&2
    9925     ;;
    9926 esac
    9927 echo "$as_me:$LINENO: checking for $ac_header" >&5
    9928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    9929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    9930   echo $ECHO_N "(cached) $ECHO_C" >&6
    9931 else
    9932   eval "$as_ac_Header=\$ac_header_preproc"
    9933 fi
    9934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    9935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    9936 
    9937 fi
    9938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    9939   cat >>confdefs.h <<_ACEOF
    9940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    9941 _ACEOF
    99427844
    99437845fi
     
    99467848
    99477849
    9948 
    9949 
    9950 
    9951 
    9952 for ac_header in sys/times.h sys/resource.h time.h machine/fpu.h asm/fpu.h
    9953 do
    9954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    9955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    9956   echo "$as_me:$LINENO: checking for $ac_header" >&5
    9957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    9958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    9959   echo $ECHO_N "(cached) $ECHO_C" >&6
    9960 fi
    9961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    9962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    9963 else
    9964   # Is the header compilable?
    9965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    9966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    9967 cat >conftest.$ac_ext <<_ACEOF
    9968 /* confdefs.h.  */
    9969 _ACEOF
    9970 cat confdefs.h >>conftest.$ac_ext
    9971 cat >>conftest.$ac_ext <<_ACEOF
    9972 /* end confdefs.h.  */
    9973 $ac_includes_default
    9974 #include <$ac_header>
    9975 _ACEOF
    9976 rm -f conftest.$ac_objext
    9977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    9978   (eval $ac_compile) 2>conftest.er1
    9979   ac_status=$?
    9980   grep -v '^ *+' conftest.er1 >conftest.err
    9981   rm -f conftest.er1
    9982   cat conftest.err >&5
    9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9984   (exit $ac_status); } &&
    9985          { ac_try='test -z "$ac_c_werror_flag"
    9986                          || test ! -s conftest.err'
    9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9988   (eval $ac_try) 2>&5
    9989   ac_status=$?
    9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9991   (exit $ac_status); }; } &&
    9992          { ac_try='test -s conftest.$ac_objext'
    9993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    9994   (eval $ac_try) 2>&5
    9995   ac_status=$?
    9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9997   (exit $ac_status); }; }; then
    9998   ac_header_compiler=yes
    9999 else
    10000   echo "$as_me: failed program was:" >&5
    10001 sed 's/^/| /' conftest.$ac_ext >&5
    10002 
    10003 ac_header_compiler=no
    10004 fi
    10005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    10006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    10007 echo "${ECHO_T}$ac_header_compiler" >&6
    10008 
    10009 # Is the header present?
    10010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    10011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    10012 cat >conftest.$ac_ext <<_ACEOF
    10013 /* confdefs.h.  */
    10014 _ACEOF
    10015 cat confdefs.h >>conftest.$ac_ext
    10016 cat >>conftest.$ac_ext <<_ACEOF
    10017 /* end confdefs.h.  */
    10018 #include <$ac_header>
    10019 _ACEOF
    10020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    10021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    10022   ac_status=$?
    10023   grep -v '^ *+' conftest.er1 >conftest.err
    10024   rm -f conftest.er1
    10025   cat conftest.err >&5
    10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10027   (exit $ac_status); } >/dev/null; then
    10028   if test -s conftest.err; then
    10029     ac_cpp_err=$ac_c_preproc_warn_flag
    10030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    10031   else
    10032     ac_cpp_err=
    10033   fi
    10034 else
    10035   ac_cpp_err=yes
    10036 fi
    10037 if test -z "$ac_cpp_err"; then
    10038   ac_header_preproc=yes
    10039 else
    10040   echo "$as_me: failed program was:" >&5
    10041 sed 's/^/| /' conftest.$ac_ext >&5
    10042 
    10043   ac_header_preproc=no
    10044 fi
    10045 rm -f conftest.err conftest.$ac_ext
    10046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    10047 echo "${ECHO_T}$ac_header_preproc" >&6
    10048 
    10049 # So?  What about this header?
    10050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    10051   yes:no: )
    10052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    10053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    10054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    10055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    10056     ac_header_preproc=yes
    10057     ;;
    10058   no:yes:* )
    10059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    10060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    10061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    10062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    10063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    10064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    10065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    10066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    10067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    10068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    10069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    10070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    10071     (
    10072       cat <<\_ASBOX
    10073 ## ------------------------------------------ ##
    10074 ## Report this to the AC_PACKAGE_NAME lists.  ##
    10075 ## ------------------------------------------ ##
    10076 _ASBOX
    10077     ) |
    10078       sed "s/^/$as_me: WARNING:     /" >&2
    10079     ;;
    10080 esac
    10081 echo "$as_me:$LINENO: checking for $ac_header" >&5
    10082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    10083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    10084   echo $ECHO_N "(cached) $ECHO_C" >&6
    10085 else
    10086   eval "$as_ac_Header=\$ac_header_preproc"
    10087 fi
    10088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    10089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    10090 
    10091 fi
    10092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    10093   cat >>confdefs.h <<_ACEOF
    10094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    10095 _ACEOF
    10096 
    10097 fi
    10098 
    10099 done
    10100 
    10101 
    10102 
    10103 
    10104 
    10105 
    10106 for ac_header in termios.h sys/stat.h sys/types.h dlfcn.h stdint.h
    10107 do
    10108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    10109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    10110   echo "$as_me:$LINENO: checking for $ac_header" >&5
    10111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    10112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    10113   echo $ECHO_N "(cached) $ECHO_C" >&6
    10114 fi
    10115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    10116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    10117 else
    10118   # Is the header compilable?
    10119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    10120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    10121 cat >conftest.$ac_ext <<_ACEOF
    10122 /* confdefs.h.  */
    10123 _ACEOF
    10124 cat confdefs.h >>conftest.$ac_ext
    10125 cat >>conftest.$ac_ext <<_ACEOF
    10126 /* end confdefs.h.  */
    10127 $ac_includes_default
    10128 #include <$ac_header>
    10129 _ACEOF
    10130 rm -f conftest.$ac_objext
    10131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    10132   (eval $ac_compile) 2>conftest.er1
    10133   ac_status=$?
    10134   grep -v '^ *+' conftest.er1 >conftest.err
    10135   rm -f conftest.er1
    10136   cat conftest.err >&5
    10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10138   (exit $ac_status); } &&
    10139          { ac_try='test -z "$ac_c_werror_flag"
    10140                          || test ! -s conftest.err'
    10141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10142   (eval $ac_try) 2>&5
    10143   ac_status=$?
    10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10145   (exit $ac_status); }; } &&
    10146          { ac_try='test -s conftest.$ac_objext'
    10147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10148   (eval $ac_try) 2>&5
    10149   ac_status=$?
    10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10151   (exit $ac_status); }; }; then
    10152   ac_header_compiler=yes
    10153 else
    10154   echo "$as_me: failed program was:" >&5
    10155 sed 's/^/| /' conftest.$ac_ext >&5
    10156 
    10157 ac_header_compiler=no
    10158 fi
    10159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    10160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    10161 echo "${ECHO_T}$ac_header_compiler" >&6
    10162 
    10163 # Is the header present?
    10164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    10165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    10166 cat >conftest.$ac_ext <<_ACEOF
    10167 /* confdefs.h.  */
    10168 _ACEOF
    10169 cat confdefs.h >>conftest.$ac_ext
    10170 cat >>conftest.$ac_ext <<_ACEOF
    10171 /* end confdefs.h.  */
    10172 #include <$ac_header>
    10173 _ACEOF
    10174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    10175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    10176   ac_status=$?
    10177   grep -v '^ *+' conftest.er1 >conftest.err
    10178   rm -f conftest.er1
    10179   cat conftest.err >&5
    10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10181   (exit $ac_status); } >/dev/null; then
    10182   if test -s conftest.err; then
    10183     ac_cpp_err=$ac_c_preproc_warn_flag
    10184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    10185   else
    10186     ac_cpp_err=
    10187   fi
    10188 else
    10189   ac_cpp_err=yes
    10190 fi
    10191 if test -z "$ac_cpp_err"; then
    10192   ac_header_preproc=yes
    10193 else
    10194   echo "$as_me: failed program was:" >&5
    10195 sed 's/^/| /' conftest.$ac_ext >&5
    10196 
    10197   ac_header_preproc=no
    10198 fi
    10199 rm -f conftest.err conftest.$ac_ext
    10200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    10201 echo "${ECHO_T}$ac_header_preproc" >&6
    10202 
    10203 # So?  What about this header?
    10204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    10205   yes:no: )
    10206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    10207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    10208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    10209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    10210     ac_header_preproc=yes
    10211     ;;
    10212   no:yes:* )
    10213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    10214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    10215     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    10216 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    10217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    10218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    10219     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    10220 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    10221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    10222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    10223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    10224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    10225     (
    10226       cat <<\_ASBOX
    10227 ## ------------------------------------------ ##
    10228 ## Report this to the AC_PACKAGE_NAME lists.  ##
    10229 ## ------------------------------------------ ##
    10230 _ASBOX
    10231     ) |
    10232       sed "s/^/$as_me: WARNING:     /" >&2
    10233     ;;
    10234 esac
    10235 echo "$as_me:$LINENO: checking for $ac_header" >&5
    10236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    10237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    10238   echo $ECHO_N "(cached) $ECHO_C" >&6
    10239 else
    10240   eval "$as_ac_Header=\$ac_header_preproc"
    10241 fi
    10242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    10243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    10244 
    10245 fi
    10246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    10247   cat >>confdefs.h <<_ACEOF
    10248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    10249 _ACEOF
    10250 
    10251 fi
    10252 
    10253 done
    10254 
    10255 
    10256 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
    10257 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    10258 if test "${ac_cv_c_const+set}" = set; then
    10259   echo $ECHO_N "(cached) $ECHO_C" >&6
    10260 else
    10261   cat >conftest.$ac_ext <<_ACEOF
    10262 /* confdefs.h.  */
    10263 _ACEOF
    10264 cat confdefs.h >>conftest.$ac_ext
    10265 cat >>conftest.$ac_ext <<_ACEOF
     7850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
     7851$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
     7852if ${ac_cv_c_const+:} false; then :
     7853  $as_echo_n "(cached) " >&6
     7854else
     7855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    102667856/* end confdefs.h.  */
    102677857
     
    102697859main ()
    102707860{
    10271 /* FIXME: Include the comments suggested by Paul. */
     7861
    102727862#ifndef __cplusplus
    10273   /* Ultrix mips cc rejects this.  */
     7863  /* Ultrix mips cc rejects this sort of thing.  */
    102747864  typedef int charset[2];
    10275   const charset x;
     7865  const charset cs = { 0, 0 };
    102767866  /* SunOS 4.1.1 cc rejects this.  */
    10277   char const *const *ccp;
    10278   char **p;
     7867  char const *const *pcpcc;
     7868  char **ppc;
    102797869  /* NEC SVR4.0.2 mips cc rejects this.  */
    102807870  struct point {int x, y;};
     
    102857875     expression */
    102867876  const char *g = "string";
    10287   ccp = &g + (g ? g-g : 0);
     7877  pcpcc = &g + (g ? g-g : 0);
    102887878  /* HPUX 7.0 cc rejects these. */
    10289   ++ccp;
    10290   p = (char**) ccp;
    10291   ccp = (char const *const *) p;
    10292   { /* SCO 3.2v4 cc rejects this.  */
    10293     char *t;
     7879  ++pcpcc;
     7880  ppc = (char**) pcpcc;
     7881  pcpcc = (char const *const *) ppc;
     7882  { /* SCO 3.2v4 cc rejects this sort of thing.  */
     7883    char tx;
     7884    char *t = &tx;
    102947885    char const *s = 0 ? (char *) 0 : (char const *) 0;
    102957886
    102967887    *t++ = 0;
     7888    if (s) return 0;
    102977889  }
    102987890  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
     
    103067898    ++p;
    103077899  }
    10308   { /* AIX XL C 1.02.0.0 rejects this saying
     7900  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
    103097901       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    10310     struct s { int j; const int *ap[3]; };
    10311     struct s *b; b->j = 5;
     7902    struct s { int j; const int *ap[3]; } bx;
     7903    struct s *b = &bx; b->j = 5;
    103127904  }
    103137905  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    103147906    const int foo = 10;
     7907    if (!foo) return 0;
    103157908  }
     7909  return !cs[0] && !zero.x;
    103167910#endif
    103177911
     
    103207914}
    103217915_ACEOF
    10322 rm -f conftest.$ac_objext
    10323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    10324   (eval $ac_compile) 2>conftest.er1
    10325   ac_status=$?
    10326   grep -v '^ *+' conftest.er1 >conftest.err
    10327   rm -f conftest.er1
    10328   cat conftest.err >&5
    10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10330   (exit $ac_status); } &&
    10331          { ac_try='test -z "$ac_c_werror_flag"
    10332                          || test ! -s conftest.err'
    10333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10334   (eval $ac_try) 2>&5
    10335   ac_status=$?
    10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10337   (exit $ac_status); }; } &&
    10338          { ac_try='test -s conftest.$ac_objext'
    10339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10340   (eval $ac_try) 2>&5
    10341   ac_status=$?
    10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10343   (exit $ac_status); }; }; then
     7916if ac_fn_c_try_compile "$LINENO"; then :
    103447917  ac_cv_c_const=yes
    103457918else
    10346   echo "$as_me: failed program was:" >&5
    10347 sed 's/^/| /' conftest.$ac_ext >&5
    10348 
    10349 ac_cv_c_const=no
    10350 fi
    10351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    10352 fi
    10353 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
    10354 echo "${ECHO_T}$ac_cv_c_const" >&6
     7919  ac_cv_c_const=no
     7920fi
     7921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     7922fi
     7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
     7924$as_echo "$ac_cv_c_const" >&6; }
    103557925if test $ac_cv_c_const = no; then
    103567926
    10357 cat >>confdefs.h <<\_ACEOF
    10358 #define const
     7927$as_echo "#define const /**/" >>confdefs.h
     7928
     7929fi
     7930
     7931ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     7932if test "x$ac_cv_type_size_t" = xyes; then :
     7933
     7934else
     7935
     7936cat >>confdefs.h <<_ACEOF
     7937#define size_t unsigned int
    103597938_ACEOF
    103607939
    103617940fi
    103627941
    10363 echo "$as_me:$LINENO: checking for size_t" >&5
    10364 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
    10365 if test "${ac_cv_type_size_t+set}" = set; then
    10366   echo $ECHO_N "(cached) $ECHO_C" >&6
    10367 else
    10368   cat >conftest.$ac_ext <<_ACEOF
    10369 /* confdefs.h.  */
    10370 _ACEOF
    10371 cat confdefs.h >>conftest.$ac_ext
    10372 cat >>conftest.$ac_ext <<_ACEOF
     7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
     7943$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
     7944if ${ac_cv_struct_tm+:} false; then :
     7945  $as_echo_n "(cached) " >&6
     7946else
     7947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    103737948/* end confdefs.h.  */
    10374 $ac_includes_default
     7949#include <sys/types.h>
     7950#include <time.h>
     7951
    103757952int
    103767953main ()
    103777954{
    10378 if ((size_t *) 0)
    10379   return 0;
    10380 if (sizeof (size_t))
    10381   return 0;
     7955struct tm tm;
     7956                                     int *p = &tm.tm_sec;
     7957                                     return !p;
    103827958  ;
    103837959  return 0;
    103847960}
    103857961_ACEOF
    10386 rm -f conftest.$ac_objext
    10387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    10388   (eval $ac_compile) 2>conftest.er1
    10389   ac_status=$?
    10390   grep -v '^ *+' conftest.er1 >conftest.err
    10391   rm -f conftest.er1
    10392   cat conftest.err >&5
    10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10394   (exit $ac_status); } &&
    10395          { ac_try='test -z "$ac_c_werror_flag"
    10396                          || test ! -s conftest.err'
    10397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10398   (eval $ac_try) 2>&5
    10399   ac_status=$?
    10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10401   (exit $ac_status); }; } &&
    10402          { ac_try='test -s conftest.$ac_objext'
    10403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10404   (eval $ac_try) 2>&5
    10405   ac_status=$?
    10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10407   (exit $ac_status); }; }; then
    10408   ac_cv_type_size_t=yes
    10409 else
    10410   echo "$as_me: failed program was:" >&5
    10411 sed 's/^/| /' conftest.$ac_ext >&5
    10412 
    10413 ac_cv_type_size_t=no
    10414 fi
    10415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    10416 fi
    10417 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
    10418 echo "${ECHO_T}$ac_cv_type_size_t" >&6
    10419 if test $ac_cv_type_size_t = yes; then
    10420   :
    10421 else
    10422 
    10423 cat >>confdefs.h <<_ACEOF
    10424 #define size_t unsigned
    10425 _ACEOF
    10426 
    10427 fi
    10428 
    10429 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
    10430 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
    10431 if test "${ac_cv_struct_tm+set}" = set; then
    10432   echo $ECHO_N "(cached) $ECHO_C" >&6
    10433 else
    10434   cat >conftest.$ac_ext <<_ACEOF
    10435 /* confdefs.h.  */
    10436 _ACEOF
    10437 cat confdefs.h >>conftest.$ac_ext
    10438 cat >>conftest.$ac_ext <<_ACEOF
     7962if ac_fn_c_try_compile "$LINENO"; then :
     7963  ac_cv_struct_tm=time.h
     7964else
     7965  ac_cv_struct_tm=sys/time.h
     7966fi
     7967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     7968fi
     7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
     7970$as_echo "$ac_cv_struct_tm" >&6; }
     7971if test $ac_cv_struct_tm = sys/time.h; then
     7972
     7973$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
     7974
     7975fi
     7976
     7977
     7978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
     7979$as_echo_n "checking return type of signal handlers... " >&6; }
     7980if ${ac_cv_type_signal+:} false; then :
     7981  $as_echo_n "(cached) " >&6
     7982else
     7983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    104397984/* end confdefs.h.  */
    104407985#include <sys/types.h>
    10441 #include <time.h>
     7986#include <signal.h>
    104427987
    104437988int
    104447989main ()
    104457990{
    10446 struct tm *tp; tp->tm_sec;
     7991return *(signal (0, 0)) (0) == 1;
    104477992  ;
    104487993  return 0;
    104497994}
    104507995_ACEOF
    10451 rm -f conftest.$ac_objext
    10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    10453   (eval $ac_compile) 2>conftest.er1
    10454   ac_status=$?
    10455   grep -v '^ *+' conftest.er1 >conftest.err
    10456   rm -f conftest.er1
    10457   cat conftest.err >&5
    10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10459   (exit $ac_status); } &&
    10460          { ac_try='test -z "$ac_c_werror_flag"
    10461                          || test ! -s conftest.err'
    10462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10463   (eval $ac_try) 2>&5
    10464   ac_status=$?
    10465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10466   (exit $ac_status); }; } &&
    10467          { ac_try='test -s conftest.$ac_objext'
    10468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10469   (eval $ac_try) 2>&5
    10470   ac_status=$?
    10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10472   (exit $ac_status); }; }; then
    10473   ac_cv_struct_tm=time.h
    10474 else
    10475   echo "$as_me: failed program was:" >&5
    10476 sed 's/^/| /' conftest.$ac_ext >&5
    10477 
    10478 ac_cv_struct_tm=sys/time.h
    10479 fi
    10480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    10481 fi
    10482 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
    10483 echo "${ECHO_T}$ac_cv_struct_tm" >&6
    10484 if test $ac_cv_struct_tm = sys/time.h; then
    10485 
    10486 cat >>confdefs.h <<\_ACEOF
    10487 #define TM_IN_SYS_TIME 1
     7996if ac_fn_c_try_compile "$LINENO"; then :
     7997  ac_cv_type_signal=int
     7998else
     7999  ac_cv_type_signal=void
     8000fi
     8001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     8002fi
     8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
     8004$as_echo "$ac_cv_type_signal" >&6; }
     8005
     8006cat >>confdefs.h <<_ACEOF
     8007#define RETSIGTYPE $ac_cv_type_signal
    104888008_ACEOF
    104898009
    10490 fi
    10491 
    10492 
    10493 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    10494 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    10495 if test "${ac_cv_type_signal+set}" = set; then
    10496   echo $ECHO_N "(cached) $ECHO_C" >&6
    10497 else
    10498   cat >conftest.$ac_ext <<_ACEOF
    10499 /* confdefs.h.  */
     8010
     8011for ac_func in vprintf
     8012do :
     8013  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
     8014if test "x$ac_cv_func_vprintf" = xyes; then :
     8015  cat >>confdefs.h <<_ACEOF
     8016#define HAVE_VPRINTF 1
    105008017_ACEOF
    10501 cat confdefs.h >>conftest.$ac_ext
    10502 cat >>conftest.$ac_ext <<_ACEOF
     8018
     8019ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
     8020if test "x$ac_cv_func__doprnt" = xyes; then :
     8021
     8022$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
     8023
     8024fi
     8025
     8026fi
     8027done
     8028
     8029
     8030for ac_func in strerror sigfillset signal system getpwuid geteuid
     8031do :
     8032  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     8033ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     8034if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     8035  cat >>confdefs.h <<_ACEOF
     8036#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8037_ACEOF
     8038
     8039fi
     8040done
     8041
     8042for ac_func in gethostname time ctime
     8043do :
     8044  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     8045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     8046if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     8047  cat >>confdefs.h <<_ACEOF
     8048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8049_ACEOF
     8050
     8051fi
     8052done
     8053
     8054for ac_func in setrlimit setenv
     8055do :
     8056  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     8057ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     8058if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     8059  cat >>confdefs.h <<_ACEOF
     8060#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8061_ACEOF
     8062
     8063fi
     8064done
     8065
     8066
     8067
     8068ac_ext=cpp
     8069ac_cpp='$CXXCPP $CPPFLAGS'
     8070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     8071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     8072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     8073
     8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking isnan and iostream" >&5
     8075$as_echo_n "checking isnan and iostream... " >&6; }
     8076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    105038077/* end confdefs.h.  */
    10504 #include <sys/types.h>
    10505 #include <signal.h>
    10506 #ifdef signal
    10507 # undef signal
    10508 #endif
    10509 #ifdef __cplusplus
    10510 extern "C" void (*signal (int, void (*)(int)))(int);
    10511 #else
    10512 void (*signal ()) ();
    10513 #endif
     8078
     8079  #include <iostream>
     8080  #include <math.h>
     8081  int main(int,char**) { isnan(1.0); return 0; }
    105148082
    105158083int
    105168084main ()
    105178085{
    10518 int i;
     8086
    105198087  ;
    105208088  return 0;
    105218089}
    105228090_ACEOF
    10523 rm -f conftest.$ac_objext
    10524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    10525   (eval $ac_compile) 2>conftest.er1
    10526   ac_status=$?
    10527   grep -v '^ *+' conftest.er1 >conftest.err
    10528   rm -f conftest.er1
    10529   cat conftest.err >&5
    10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10531   (exit $ac_status); } &&
    10532          { ac_try='test -z "$ac_c_werror_flag"
    10533                          || test ! -s conftest.err'
    10534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10535   (eval $ac_try) 2>&5
    10536   ac_status=$?
    10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10538   (exit $ac_status); }; } &&
    10539          { ac_try='test -s conftest.$ac_objext'
    10540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10541   (eval $ac_try) 2>&5
    10542   ac_status=$?
    10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10544   (exit $ac_status); }; }; then
    10545   ac_cv_type_signal=void
    10546 else
    10547   echo "$as_me: failed program was:" >&5
    10548 sed 's/^/| /' conftest.$ac_ext >&5
    10549 
    10550 ac_cv_type_signal=int
    10551 fi
    10552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    10553 fi
    10554 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
    10555 echo "${ECHO_T}$ac_cv_type_signal" >&6
    10556 
    10557 cat >>confdefs.h <<_ACEOF
    10558 #define RETSIGTYPE $ac_cv_type_signal
    10559 _ACEOF
    10560 
    10561 
    10562 
    10563 for ac_func in vprintf
    10564 do
    10565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    10566 echo "$as_me:$LINENO: checking for $ac_func" >&5
    10567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    10568 if eval "test \"\${$as_ac_var+set}\" = set"; then
    10569   echo $ECHO_N "(cached) $ECHO_C" >&6
    10570 else
    10571   cat >conftest.$ac_ext <<_ACEOF
    10572 /* confdefs.h.  */
    10573 _ACEOF
    10574 cat confdefs.h >>conftest.$ac_ext
    10575 cat >>conftest.$ac_ext <<_ACEOF
    10576 /* end confdefs.h.  */
    10577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    10578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    10579 #define $ac_func innocuous_$ac_func
    10580 
    10581 /* System header to define __stub macros and hopefully few prototypes,
    10582     which can conflict with char $ac_func (); below.
    10583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    10584     <limits.h> exists even on freestanding compilers.  */
    10585 
    10586 #ifdef __STDC__
    10587 # include <limits.h>
    10588 #else
    10589 # include <assert.h>
    10590 #endif
    10591 
    10592 #undef $ac_func
    10593 
    10594 /* Override any gcc2 internal prototype to avoid an error.  */
    10595 #ifdef __cplusplus
    10596 extern "C"
    10597 {
    10598 #endif
    10599 /* We use char because int might match the return type of a gcc2
    10600    builtin and then its argument prototype would still apply.  */
    10601 char $ac_func ();
    10602 /* The GNU C library defines this for functions which it implements
    10603     to always fail with ENOSYS.  Some functions are actually named
    10604     something starting with __ and the normal name is an alias.  */
    10605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    10606 choke me
    10607 #else
    10608 char (*f) () = $ac_func;
    10609 #endif
    10610 #ifdef __cplusplus
    10611 }
    10612 #endif
    10613 
    10614 int
    10615 main ()
    10616 {
    10617 return f != $ac_func;
    10618   ;
    10619   return 0;
    10620 }
    10621 _ACEOF
    10622 rm -f conftest.$ac_objext conftest$ac_exeext
    10623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    10624   (eval $ac_link) 2>conftest.er1
    10625   ac_status=$?
    10626   grep -v '^ *+' conftest.er1 >conftest.err
    10627   rm -f conftest.er1
    10628   cat conftest.err >&5
    10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10630   (exit $ac_status); } &&
    10631          { ac_try='test -z "$ac_c_werror_flag"
    10632                          || test ! -s conftest.err'
    10633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10634   (eval $ac_try) 2>&5
    10635   ac_status=$?
    10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10637   (exit $ac_status); }; } &&
    10638          { ac_try='test -s conftest$ac_exeext'
    10639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10640   (eval $ac_try) 2>&5
    10641   ac_status=$?
    10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10643   (exit $ac_status); }; }; then
    10644   eval "$as_ac_var=yes"
    10645 else
    10646   echo "$as_me: failed program was:" >&5
    10647 sed 's/^/| /' conftest.$ac_ext >&5
    10648 
    10649 eval "$as_ac_var=no"
    10650 fi
    10651 rm -f conftest.err conftest.$ac_objext \
    10652       conftest$ac_exeext conftest.$ac_ext
    10653 fi
    10654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    10655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    10656 if test `eval echo '${'$as_ac_var'}'` = yes; then
    10657   cat >>confdefs.h <<_ACEOF
    10658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    10659 _ACEOF
    10660 
    10661 echo "$as_me:$LINENO: checking for _doprnt" >&5
    10662 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
    10663 if test "${ac_cv_func__doprnt+set}" = set; then
    10664   echo $ECHO_N "(cached) $ECHO_C" >&6
    10665 else
    10666   cat >conftest.$ac_ext <<_ACEOF
    10667 /* confdefs.h.  */
    10668 _ACEOF
    10669 cat confdefs.h >>conftest.$ac_ext
    10670 cat >>conftest.$ac_ext <<_ACEOF
    10671 /* end confdefs.h.  */
    10672 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
    10673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    10674 #define _doprnt innocuous__doprnt
    10675 
    10676 /* System header to define __stub macros and hopefully few prototypes,
    10677     which can conflict with char _doprnt (); below.
    10678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    10679     <limits.h> exists even on freestanding compilers.  */
    10680 
    10681 #ifdef __STDC__
    10682 # include <limits.h>
    10683 #else
    10684 # include <assert.h>
    10685 #endif
    10686 
    10687 #undef _doprnt
    10688 
    10689 /* Override any gcc2 internal prototype to avoid an error.  */
    10690 #ifdef __cplusplus
    10691 extern "C"
    10692 {
    10693 #endif
    10694 /* We use char because int might match the return type of a gcc2
    10695    builtin and then its argument prototype would still apply.  */
    10696 char _doprnt ();
    10697 /* The GNU C library defines this for functions which it implements
    10698     to always fail with ENOSYS.  Some functions are actually named
    10699     something starting with __ and the normal name is an alias.  */
    10700 #if defined (__stub__doprnt) || defined (__stub____doprnt)
    10701 choke me
    10702 #else
    10703 char (*f) () = _doprnt;
    10704 #endif
    10705 #ifdef __cplusplus
    10706 }
    10707 #endif
    10708 
    10709 int
    10710 main ()
    10711 {
    10712 return f != _doprnt;
    10713   ;
    10714   return 0;
    10715 }
    10716 _ACEOF
    10717 rm -f conftest.$ac_objext conftest$ac_exeext
    10718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    10719   (eval $ac_link) 2>conftest.er1
    10720   ac_status=$?
    10721   grep -v '^ *+' conftest.er1 >conftest.err
    10722   rm -f conftest.er1
    10723   cat conftest.err >&5
    10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10725   (exit $ac_status); } &&
    10726          { ac_try='test -z "$ac_c_werror_flag"
    10727                          || test ! -s conftest.err'
    10728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10729   (eval $ac_try) 2>&5
    10730   ac_status=$?
    10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10732   (exit $ac_status); }; } &&
    10733          { ac_try='test -s conftest$ac_exeext'
    10734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10735   (eval $ac_try) 2>&5
    10736   ac_status=$?
    10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10738   (exit $ac_status); }; }; then
    10739   ac_cv_func__doprnt=yes
    10740 else
    10741   echo "$as_me: failed program was:" >&5
    10742 sed 's/^/| /' conftest.$ac_ext >&5
    10743 
    10744 ac_cv_func__doprnt=no
    10745 fi
    10746 rm -f conftest.err conftest.$ac_objext \
    10747       conftest$ac_exeext conftest.$ac_ext
    10748 fi
    10749 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
    10750 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
    10751 if test $ac_cv_func__doprnt = yes; then
    10752 
    10753 cat >>confdefs.h <<\_ACEOF
    10754 #define HAVE_DOPRNT 1
    10755 _ACEOF
    10756 
    10757 fi
    10758 
    10759 fi
    10760 done
    10761 
    10762 
    10763 
    10764 
    10765 
    10766 
    10767 
    10768 
    10769 for ac_func in strerror sigfillset signal system getpwuid geteuid
    10770 do
    10771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    10772 echo "$as_me:$LINENO: checking for $ac_func" >&5
    10773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    10774 if eval "test \"\${$as_ac_var+set}\" = set"; then
    10775   echo $ECHO_N "(cached) $ECHO_C" >&6
    10776 else
    10777   cat >conftest.$ac_ext <<_ACEOF
    10778 /* confdefs.h.  */
    10779 _ACEOF
    10780 cat confdefs.h >>conftest.$ac_ext
    10781 cat >>conftest.$ac_ext <<_ACEOF
    10782 /* end confdefs.h.  */
    10783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    10784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    10785 #define $ac_func innocuous_$ac_func
    10786 
    10787 /* System header to define __stub macros and hopefully few prototypes,
    10788     which can conflict with char $ac_func (); below.
    10789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    10790     <limits.h> exists even on freestanding compilers.  */
    10791 
    10792 #ifdef __STDC__
    10793 # include <limits.h>
    10794 #else
    10795 # include <assert.h>
    10796 #endif
    10797 
    10798 #undef $ac_func
    10799 
    10800 /* Override any gcc2 internal prototype to avoid an error.  */
    10801 #ifdef __cplusplus
    10802 extern "C"
    10803 {
    10804 #endif
    10805 /* We use char because int might match the return type of a gcc2
    10806    builtin and then its argument prototype would still apply.  */
    10807 char $ac_func ();
    10808 /* The GNU C library defines this for functions which it implements
    10809     to always fail with ENOSYS.  Some functions are actually named
    10810     something starting with __ and the normal name is an alias.  */
    10811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    10812 choke me
    10813 #else
    10814 char (*f) () = $ac_func;
    10815 #endif
    10816 #ifdef __cplusplus
    10817 }
    10818 #endif
    10819 
    10820 int
    10821 main ()
    10822 {
    10823 return f != $ac_func;
    10824   ;
    10825   return 0;
    10826 }
    10827 _ACEOF
    10828 rm -f conftest.$ac_objext conftest$ac_exeext
    10829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    10830   (eval $ac_link) 2>conftest.er1
    10831   ac_status=$?
    10832   grep -v '^ *+' conftest.er1 >conftest.err
    10833   rm -f conftest.er1
    10834   cat conftest.err >&5
    10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10836   (exit $ac_status); } &&
    10837          { ac_try='test -z "$ac_c_werror_flag"
    10838                          || test ! -s conftest.err'
    10839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10840   (eval $ac_try) 2>&5
    10841   ac_status=$?
    10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10843   (exit $ac_status); }; } &&
    10844          { ac_try='test -s conftest$ac_exeext'
    10845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10846   (eval $ac_try) 2>&5
    10847   ac_status=$?
    10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10849   (exit $ac_status); }; }; then
    10850   eval "$as_ac_var=yes"
    10851 else
    10852   echo "$as_me: failed program was:" >&5
    10853 sed 's/^/| /' conftest.$ac_ext >&5
    10854 
    10855 eval "$as_ac_var=no"
    10856 fi
    10857 rm -f conftest.err conftest.$ac_objext \
    10858       conftest$ac_exeext conftest.$ac_ext
    10859 fi
    10860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    10861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    10862 if test `eval echo '${'$as_ac_var'}'` = yes; then
    10863   cat >>confdefs.h <<_ACEOF
    10864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    10865 _ACEOF
    10866 
    10867 fi
    10868 done
    10869 
    10870 
    10871 
    10872 
    10873 for ac_func in gethostname time ctime
    10874 do
    10875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    10876 echo "$as_me:$LINENO: checking for $ac_func" >&5
    10877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    10878 if eval "test \"\${$as_ac_var+set}\" = set"; then
    10879   echo $ECHO_N "(cached) $ECHO_C" >&6
    10880 else
    10881   cat >conftest.$ac_ext <<_ACEOF
    10882 /* confdefs.h.  */
    10883 _ACEOF
    10884 cat confdefs.h >>conftest.$ac_ext
    10885 cat >>conftest.$ac_ext <<_ACEOF
    10886 /* end confdefs.h.  */
    10887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    10888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    10889 #define $ac_func innocuous_$ac_func
    10890 
    10891 /* System header to define __stub macros and hopefully few prototypes,
    10892     which can conflict with char $ac_func (); below.
    10893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    10894     <limits.h> exists even on freestanding compilers.  */
    10895 
    10896 #ifdef __STDC__
    10897 # include <limits.h>
    10898 #else
    10899 # include <assert.h>
    10900 #endif
    10901 
    10902 #undef $ac_func
    10903 
    10904 /* Override any gcc2 internal prototype to avoid an error.  */
    10905 #ifdef __cplusplus
    10906 extern "C"
    10907 {
    10908 #endif
    10909 /* We use char because int might match the return type of a gcc2
    10910    builtin and then its argument prototype would still apply.  */
    10911 char $ac_func ();
    10912 /* The GNU C library defines this for functions which it implements
    10913     to always fail with ENOSYS.  Some functions are actually named
    10914     something starting with __ and the normal name is an alias.  */
    10915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    10916 choke me
    10917 #else
    10918 char (*f) () = $ac_func;
    10919 #endif
    10920 #ifdef __cplusplus
    10921 }
    10922 #endif
    10923 
    10924 int
    10925 main ()
    10926 {
    10927 return f != $ac_func;
    10928   ;
    10929   return 0;
    10930 }
    10931 _ACEOF
    10932 rm -f conftest.$ac_objext conftest$ac_exeext
    10933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    10934   (eval $ac_link) 2>conftest.er1
    10935   ac_status=$?
    10936   grep -v '^ *+' conftest.er1 >conftest.err
    10937   rm -f conftest.er1
    10938   cat conftest.err >&5
    10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10940   (exit $ac_status); } &&
    10941          { ac_try='test -z "$ac_c_werror_flag"
    10942                          || test ! -s conftest.err'
    10943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10944   (eval $ac_try) 2>&5
    10945   ac_status=$?
    10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10947   (exit $ac_status); }; } &&
    10948          { ac_try='test -s conftest$ac_exeext'
    10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10950   (eval $ac_try) 2>&5
    10951   ac_status=$?
    10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10953   (exit $ac_status); }; }; then
    10954   eval "$as_ac_var=yes"
    10955 else
    10956   echo "$as_me: failed program was:" >&5
    10957 sed 's/^/| /' conftest.$ac_ext >&5
    10958 
    10959 eval "$as_ac_var=no"
    10960 fi
    10961 rm -f conftest.err conftest.$ac_objext \
    10962       conftest$ac_exeext conftest.$ac_ext
    10963 fi
    10964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    10965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    10966 if test `eval echo '${'$as_ac_var'}'` = yes; then
    10967   cat >>confdefs.h <<_ACEOF
    10968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    10969 _ACEOF
    10970 
    10971 fi
    10972 done
    10973 
    10974 
    10975 
    10976 for ac_func in setrlimit setenv
    10977 do
    10978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    10979 echo "$as_me:$LINENO: checking for $ac_func" >&5
    10980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    10981 if eval "test \"\${$as_ac_var+set}\" = set"; then
    10982   echo $ECHO_N "(cached) $ECHO_C" >&6
    10983 else
    10984   cat >conftest.$ac_ext <<_ACEOF
    10985 /* confdefs.h.  */
    10986 _ACEOF
    10987 cat confdefs.h >>conftest.$ac_ext
    10988 cat >>conftest.$ac_ext <<_ACEOF
    10989 /* end confdefs.h.  */
    10990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    10991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    10992 #define $ac_func innocuous_$ac_func
    10993 
    10994 /* System header to define __stub macros and hopefully few prototypes,
    10995     which can conflict with char $ac_func (); below.
    10996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    10997     <limits.h> exists even on freestanding compilers.  */
    10998 
    10999 #ifdef __STDC__
    11000 # include <limits.h>
    11001 #else
    11002 # include <assert.h>
    11003 #endif
    11004 
    11005 #undef $ac_func
    11006 
    11007 /* Override any gcc2 internal prototype to avoid an error.  */
    11008 #ifdef __cplusplus
    11009 extern "C"
    11010 {
    11011 #endif
    11012 /* We use char because int might match the return type of a gcc2
    11013    builtin and then its argument prototype would still apply.  */
    11014 char $ac_func ();
    11015 /* The GNU C library defines this for functions which it implements
    11016     to always fail with ENOSYS.  Some functions are actually named
    11017     something starting with __ and the normal name is an alias.  */
    11018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    11019 choke me
    11020 #else
    11021 char (*f) () = $ac_func;
    11022 #endif
    11023 #ifdef __cplusplus
    11024 }
    11025 #endif
    11026 
    11027 int
    11028 main ()
    11029 {
    11030 return f != $ac_func;
    11031   ;
    11032   return 0;
    11033 }
    11034 _ACEOF
    11035 rm -f conftest.$ac_objext conftest$ac_exeext
    11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    11037   (eval $ac_link) 2>conftest.er1
    11038   ac_status=$?
    11039   grep -v '^ *+' conftest.er1 >conftest.err
    11040   rm -f conftest.er1
    11041   cat conftest.err >&5
    11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11043   (exit $ac_status); } &&
    11044          { ac_try='test -z "$ac_c_werror_flag"
    11045                          || test ! -s conftest.err'
    11046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11047   (eval $ac_try) 2>&5
    11048   ac_status=$?
    11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11050   (exit $ac_status); }; } &&
    11051          { ac_try='test -s conftest$ac_exeext'
    11052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11053   (eval $ac_try) 2>&5
    11054   ac_status=$?
    11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11056   (exit $ac_status); }; }; then
    11057   eval "$as_ac_var=yes"
    11058 else
    11059   echo "$as_me: failed program was:" >&5
    11060 sed 's/^/| /' conftest.$ac_ext >&5
    11061 
    11062 eval "$as_ac_var=no"
    11063 fi
    11064 rm -f conftest.err conftest.$ac_objext \
    11065       conftest$ac_exeext conftest.$ac_ext
    11066 fi
    11067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    11068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    11069 if test `eval echo '${'$as_ac_var'}'` = yes; then
    11070   cat >>confdefs.h <<_ACEOF
    11071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    11072 _ACEOF
    11073 
    11074 fi
    11075 done
    11076 
    11077 
    11078 
    11079 
    11080 ac_ext=cc
    11081 ac_cpp='$CXXCPP $CPPFLAGS'
    11082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    11083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    11084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    11085 
    11086 echo "$as_me:$LINENO: checking isnan and iostream" >&5
    11087 echo $ECHO_N "checking isnan and iostream... $ECHO_C" >&6
    11088 cat >conftest.$ac_ext <<_ACEOF
    11089 
    11090   #include <iostream>
    11091   #include <math.h>
    11092   int main(int,char**) { isnan(1.0); return 0; }
    11093 
    11094 _ACEOF
    11095 rm -f conftest.$ac_objext conftest$ac_exeext
    11096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    11097   (eval $ac_link) 2>conftest.er1
    11098   ac_status=$?
    11099   grep -v '^ *+' conftest.er1 >conftest.err
    11100   rm -f conftest.er1
    11101   cat conftest.err >&5
    11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11103   (exit $ac_status); } &&
    11104          { ac_try='test -z "$ac_cxx_werror_flag"
    11105                          || test ! -s conftest.err'
    11106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11107   (eval $ac_try) 2>&5
    11108   ac_status=$?
    11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11110   (exit $ac_status); }; } &&
    11111          { ac_try='test -s conftest$ac_exeext'
    11112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11113   (eval $ac_try) 2>&5
    11114   ac_status=$?
    11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11116   (exit $ac_status); }; }; then
    11117   cat >>confdefs.h <<\_ACEOF
    11118 #define HAVE_ISNAN 1
    11119 _ACEOF
    11120 
    11121   echo "$as_me:$LINENO: result: yes" >&5
    11122 echo "${ECHO_T}yes" >&6
    11123 else
    11124   echo "$as_me: failed program was:" >&5
    11125 sed 's/^/| /' conftest.$ac_ext >&5
    11126 
    11127 echo "$as_me:$LINENO: result: no" >&5
    11128 echo "${ECHO_T}no" >&6
    11129 
    11130 fi
    11131 rm -f conftest.err conftest.$ac_objext \
    11132       conftest$ac_exeext conftest.$ac_ext
     8091if ac_fn_cxx_try_link "$LINENO"; then :
     8092
     8093$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
     8094
     8095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     8096$as_echo "yes" >&6; }
     8097else
     8098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8099$as_echo "no" >&6; }
     8100
     8101fi
     8102rm -f core conftest.err conftest.$ac_objext \
     8103    conftest$ac_exeext conftest.$ac_ext
    111338104ac_ext=c
    111348105ac_cpp='$CPP $CPPFLAGS'
     
    111398110
    111408111
    11141 
    111428112for ac_header in fenv.h
    11143 do
    11144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    11145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    11146   echo "$as_me:$LINENO: checking for $ac_header" >&5
    11147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    11148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    11149   echo $ECHO_N "(cached) $ECHO_C" >&6
    11150 fi
    11151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    11152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    11153 else
    11154   # Is the header compilable?
    11155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    11156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    11157 cat >conftest.$ac_ext <<_ACEOF
    11158 /* confdefs.h.  */
     8113do :
     8114  ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
     8115if test "x$ac_cv_header_fenv_h" = xyes; then :
     8116  cat >>confdefs.h <<_ACEOF
     8117#define HAVE_FENV_H 1
    111598118_ACEOF
    11160 cat confdefs.h >>conftest.$ac_ext
    11161 cat >>conftest.$ac_ext <<_ACEOF
    11162 /* end confdefs.h.  */
    11163 $ac_includes_default
    11164 #include <$ac_header>
     8119
     8120fi
     8121
     8122done
     8123
     8124for ac_func in feenableexcept fedisableexcept
     8125do :
     8126  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     8127ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     8128if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     8129  cat >>confdefs.h <<_ACEOF
     8130#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    111658131_ACEOF
    11166 rm -f conftest.$ac_objext
    11167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    11168   (eval $ac_compile) 2>conftest.er1
    11169   ac_status=$?
    11170   grep -v '^ *+' conftest.er1 >conftest.err
    11171   rm -f conftest.er1
    11172   cat conftest.err >&5
    11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11174   (exit $ac_status); } &&
    11175          { ac_try='test -z "$ac_c_werror_flag"
    11176                          || test ! -s conftest.err'
    11177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11178   (eval $ac_try) 2>&5
    11179   ac_status=$?
    11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11181   (exit $ac_status); }; } &&
    11182          { ac_try='test -s conftest.$ac_objext'
    11183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11184   (eval $ac_try) 2>&5
    11185   ac_status=$?
    11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11187   (exit $ac_status); }; }; then
    11188   ac_header_compiler=yes
    11189 else
    11190   echo "$as_me: failed program was:" >&5
    11191 sed 's/^/| /' conftest.$ac_ext >&5
    11192 
    11193 ac_header_compiler=no
    11194 fi
    11195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    11196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    11197 echo "${ECHO_T}$ac_header_compiler" >&6
    11198 
    11199 # Is the header present?
    11200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    11201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    11202 cat >conftest.$ac_ext <<_ACEOF
    11203 /* confdefs.h.  */
    11204 _ACEOF
    11205 cat confdefs.h >>conftest.$ac_ext
    11206 cat >>conftest.$ac_ext <<_ACEOF
    11207 /* end confdefs.h.  */
    11208 #include <$ac_header>
    11209 _ACEOF
    11210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    11211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    11212   ac_status=$?
    11213   grep -v '^ *+' conftest.er1 >conftest.err
    11214   rm -f conftest.er1
    11215   cat conftest.err >&5
    11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11217   (exit $ac_status); } >/dev/null; then
    11218   if test -s conftest.err; then
    11219     ac_cpp_err=$ac_c_preproc_warn_flag
    11220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    11221   else
    11222     ac_cpp_err=
    11223   fi
    11224 else
    11225   ac_cpp_err=yes
    11226 fi
    11227 if test -z "$ac_cpp_err"; then
    11228   ac_header_preproc=yes
    11229 else
    11230   echo "$as_me: failed program was:" >&5
    11231 sed 's/^/| /' conftest.$ac_ext >&5
    11232 
    11233   ac_header_preproc=no
    11234 fi
    11235 rm -f conftest.err conftest.$ac_ext
    11236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    11237 echo "${ECHO_T}$ac_header_preproc" >&6
    11238 
    11239 # So?  What about this header?
    11240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    11241   yes:no: )
    11242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    11243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    11244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    11245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    11246     ac_header_preproc=yes
    11247     ;;
    11248   no:yes:* )
    11249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    11250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    11251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    11252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    11253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    11254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    11255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    11256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    11257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    11258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    11259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    11260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    11261     (
    11262       cat <<\_ASBOX
    11263 ## ------------------------------------------ ##
    11264 ## Report this to the AC_PACKAGE_NAME lists.  ##
    11265 ## ------------------------------------------ ##
    11266 _ASBOX
    11267     ) |
    11268       sed "s/^/$as_me: WARNING:     /" >&2
    11269     ;;
    11270 esac
    11271 echo "$as_me:$LINENO: checking for $ac_header" >&5
    11272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    11273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    11274   echo $ECHO_N "(cached) $ECHO_C" >&6
    11275 else
    11276   eval "$as_ac_Header=\$ac_header_preproc"
    11277 fi
    11278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    11279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    11280 
    11281 fi
    11282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    11283   cat >>confdefs.h <<_ACEOF
    11284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    11285 _ACEOF
    11286 
    11287 fi
    11288 
     8132
     8133fi
    112898134done
    112908135
    112918136
    112928137
    11293 for ac_func in feenableexcept fedisableexcept
    11294 do
    11295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    11296 echo "$as_me:$LINENO: checking for $ac_func" >&5
    11297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    11298 if eval "test \"\${$as_ac_var+set}\" = set"; then
    11299   echo $ECHO_N "(cached) $ECHO_C" >&6
    11300 else
    11301   cat >conftest.$ac_ext <<_ACEOF
    11302 /* confdefs.h.  */
    11303 _ACEOF
    11304 cat confdefs.h >>conftest.$ac_ext
    11305 cat >>conftest.$ac_ext <<_ACEOF
    11306 /* end confdefs.h.  */
    11307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    11308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    11309 #define $ac_func innocuous_$ac_func
    11310 
    11311 /* System header to define __stub macros and hopefully few prototypes,
    11312     which can conflict with char $ac_func (); below.
    11313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    11314     <limits.h> exists even on freestanding compilers.  */
    11315 
    11316 #ifdef __STDC__
    11317 # include <limits.h>
    11318 #else
    11319 # include <assert.h>
    11320 #endif
    11321 
    11322 #undef $ac_func
    11323 
    11324 /* Override any gcc2 internal prototype to avoid an error.  */
    11325 #ifdef __cplusplus
    11326 extern "C"
    11327 {
    11328 #endif
    11329 /* We use char because int might match the return type of a gcc2
    11330    builtin and then its argument prototype would still apply.  */
    11331 char $ac_func ();
    11332 /* The GNU C library defines this for functions which it implements
    11333     to always fail with ENOSYS.  Some functions are actually named
    11334     something starting with __ and the normal name is an alias.  */
    11335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    11336 choke me
    11337 #else
    11338 char (*f) () = $ac_func;
    11339 #endif
    11340 #ifdef __cplusplus
    11341 }
    11342 #endif
    11343 
    11344 int
    11345 main ()
    11346 {
    11347 return f != $ac_func;
    11348   ;
    11349   return 0;
    11350 }
    11351 _ACEOF
    11352 rm -f conftest.$ac_objext conftest$ac_exeext
    11353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    11354   (eval $ac_link) 2>conftest.er1
    11355   ac_status=$?
    11356   grep -v '^ *+' conftest.er1 >conftest.err
    11357   rm -f conftest.er1
    11358   cat conftest.err >&5
    11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11360   (exit $ac_status); } &&
    11361          { ac_try='test -z "$ac_c_werror_flag"
    11362                          || test ! -s conftest.err'
    11363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11364   (eval $ac_try) 2>&5
    11365   ac_status=$?
    11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11367   (exit $ac_status); }; } &&
    11368          { ac_try='test -s conftest$ac_exeext'
    11369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11370   (eval $ac_try) 2>&5
    11371   ac_status=$?
    11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11373   (exit $ac_status); }; }; then
    11374   eval "$as_ac_var=yes"
    11375 else
    11376   echo "$as_me: failed program was:" >&5
    11377 sed 's/^/| /' conftest.$ac_ext >&5
    11378 
    11379 eval "$as_ac_var=no"
    11380 fi
    11381 rm -f conftest.err conftest.$ac_objext \
    11382       conftest$ac_exeext conftest.$ac_ext
    11383 fi
    11384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    11385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    11386 if test `eval echo '${'$as_ac_var'}'` = yes; then
    11387   cat >>confdefs.h <<_ACEOF
    11388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    11389 _ACEOF
    11390 
    11391 fi
    11392 done
    11393 
    11394 
    11395 
    11396 
    11397 ac_ext=cc
     8138ac_ext=cpp
    113988139ac_cpp='$CXXCPP $CPPFLAGS'
    113998140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    114018142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    114028143
    11403 echo "$as_me:$LINENO: checking fchdir" >&5
    11404 echo $ECHO_N "checking fchdir... $ECHO_C" >&6
    11405 cat >conftest.$ac_ext <<_ACEOF
    11406 /* confdefs.h.  */
    11407 _ACEOF
    11408 cat confdefs.h >>conftest.$ac_ext
    11409 cat >>conftest.$ac_ext <<_ACEOF
     8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fchdir" >&5
     8145$as_echo_n "checking fchdir... " >&6; }
     8146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    114108147/* end confdefs.h.  */
    114118148#include <unistd.h>
     
    114208157}
    114218158_ACEOF
    11422 rm -f conftest.$ac_objext
    11423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    11424   (eval $ac_compile) 2>conftest.er1
    11425   ac_status=$?
    11426   grep -v '^ *+' conftest.er1 >conftest.err
    11427   rm -f conftest.er1
    11428   cat conftest.err >&5
    11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11430   (exit $ac_status); } &&
    11431          { ac_try='test -z "$ac_cxx_werror_flag"
    11432                          || test ! -s conftest.err'
    11433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11434   (eval $ac_try) 2>&5
    11435   ac_status=$?
    11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11437   (exit $ac_status); }; } &&
    11438          { ac_try='test -s conftest.$ac_objext'
    11439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11440   (eval $ac_try) 2>&5
    11441   ac_status=$?
    11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11443   (exit $ac_status); }; }; then
     8159if ac_fn_cxx_try_compile "$LINENO"; then :
    114448160  HAVE_FCHDIR=yes
    11445 cat >>confdefs.h <<\_ACEOF
    11446 #define HAVE_FCHDIR 1
    11447 _ACEOF
    11448 
    11449 echo "$as_me:$LINENO: result: yes" >&5
    11450 echo "${ECHO_T}yes" >&6
    11451 else
    11452   echo "$as_me: failed program was:" >&5
    11453 sed 's/^/| /' conftest.$ac_ext >&5
    11454 
    11455 
    11456 echo "$as_me:$LINENO: result: no" >&5
    11457 echo "${ECHO_T}no" >&6
     8161
     8162$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
     8163
     8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     8165$as_echo "yes" >&6; }
     8166else
     8167
     8168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8169$as_echo "no" >&6; }
    114588170HAVE_FCHDIR=no
    114598171
    114608172fi
    11461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    114628174ac_ext=c
    114638175ac_cpp='$CPP $CPPFLAGS'
     
    114708182
    114718183
    11472 
    11473 ac_ext=cc
     8184ac_ext=cpp
    114748185ac_cpp='$CXXCPP $CPPFLAGS'
    114758186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    114778188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    114788189
    11479 echo "$as_me:$LINENO: checking ios::fmtflags" >&5
    11480 echo $ECHO_N "checking ios::fmtflags... $ECHO_C" >&6
    11481 cat >conftest.$ac_ext <<_ACEOF
    11482 /* confdefs.h.  */
    11483 _ACEOF
    11484 cat confdefs.h >>conftest.$ac_ext
    11485 cat >>conftest.$ac_ext <<_ACEOF
     8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ios::fmtflags" >&5
     8191$as_echo_n "checking ios::fmtflags... " >&6; }
     8192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    114868193/* end confdefs.h.  */
    114878194#include <$iostream>
     
    114968203}
    114978204_ACEOF
    11498 rm -f conftest.$ac_objext
    11499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    11500   (eval $ac_compile) 2>conftest.er1
    11501   ac_status=$?
    11502   grep -v '^ *+' conftest.er1 >conftest.err
    11503   rm -f conftest.er1
    11504   cat conftest.err >&5
    11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11506   (exit $ac_status); } &&
    11507          { ac_try='test -z "$ac_cxx_werror_flag"
    11508                          || test ! -s conftest.err'
    11509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11510   (eval $ac_try) 2>&5
    11511   ac_status=$?
    11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11513   (exit $ac_status); }; } &&
    11514          { ac_try='test -s conftest.$ac_objext'
    11515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11516   (eval $ac_try) 2>&5
    11517   ac_status=$?
    11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11519   (exit $ac_status); }; }; then
     8205if ac_fn_cxx_try_compile "$LINENO"; then :
    115208206  HAVE_IOS_FMTFLAGS=yes
    11521 cat >>confdefs.h <<\_ACEOF
    11522 #define HAVE_IOS_FMTFLAGS 1
    11523 _ACEOF
    11524 
    11525 echo "$as_me:$LINENO: result: yes" >&5
    11526 echo "${ECHO_T}yes" >&6
    11527 else
    11528   echo "$as_me: failed program was:" >&5
    11529 sed 's/^/| /' conftest.$ac_ext >&5
    11530 
    11531 
    11532 echo "$as_me:$LINENO: result: no" >&5
    11533 echo "${ECHO_T}no" >&6
     8207
     8208$as_echo "#define HAVE_IOS_FMTFLAGS 1" >>confdefs.h
     8209
     8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     8211$as_echo "yes" >&6; }
     8212else
     8213
     8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8215$as_echo "no" >&6; }
    115348216HAVE_IOS_FMTFLAGS=no
    115358217
    115368218fi
    11537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    115388220ac_ext=c
    115398221ac_cpp='$CPP $CPPFLAGS'
     
    115478229if test X"$LONGLONG" = Xyes; then
    115488230
    11549 
    11550 ac_ext=cc
     8231ac_ext=cpp
    115518232ac_cpp='$CXXCPP $CPPFLAGS'
    115528233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    115548235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    115558236
    11556 echo "$as_me:$LINENO: checking long long" >&5
    11557 echo $ECHO_N "checking long long... $ECHO_C" >&6
    11558 cat >conftest.$ac_ext <<_ACEOF
    11559 /* confdefs.h.  */
    11560 _ACEOF
    11561 cat confdefs.h >>conftest.$ac_ext
    11562 cat >>conftest.$ac_ext <<_ACEOF
     8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking long long" >&5
     8238$as_echo_n "checking long long... " >&6; }
     8239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    115638240/* end confdefs.h.  */
    115648241
     
    115738250}
    115748251_ACEOF
    11575 rm -f conftest.$ac_objext
    11576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    11577   (eval $ac_compile) 2>conftest.er1
    11578   ac_status=$?
    11579   grep -v '^ *+' conftest.er1 >conftest.err
    11580   rm -f conftest.er1
    11581   cat conftest.err >&5
    11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11583   (exit $ac_status); } &&
    11584          { ac_try='test -z "$ac_cxx_werror_flag"
    11585                          || test ! -s conftest.err'
    11586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11587   (eval $ac_try) 2>&5
    11588   ac_status=$?
    11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11590   (exit $ac_status); }; } &&
    11591          { ac_try='test -s conftest.$ac_objext'
    11592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11593   (eval $ac_try) 2>&5
    11594   ac_status=$?
    11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11596   (exit $ac_status); }; }; then
    11597   cat >>confdefs.h <<\_ACEOF
    11598 #define HAVE_LONG_LONG 1
    11599 _ACEOF
    11600 
    11601 echo "$as_me:$LINENO: result: yes" >&5
    11602 echo "${ECHO_T}yes" >&6
    11603 else
    11604   echo "$as_me: failed program was:" >&5
    11605 sed 's/^/| /' conftest.$ac_ext >&5
    11606 
    11607 
    11608 echo "$as_me:$LINENO: result: no" >&5
    11609 echo "${ECHO_T}no" >&6
    11610 
    11611 fi
    11612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8252if ac_fn_cxx_try_compile "$LINENO"; then :
     8253
     8254$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
     8255
     8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     8257$as_echo "yes" >&6; }
     8258else
     8259
     8260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8261$as_echo "no" >&6; }
     8262
     8263fi
     8264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    116138265ac_ext=c
    116148266ac_cpp='$CPP $CPPFLAGS'
     
    116218273
    116228274
    11623 
    11624 ac_ext=cc
     8275ac_ext=cpp
    116258276ac_cpp='$CXXCPP $CPPFLAGS'
    116268277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    116288279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    116298280
    11630 echo "$as_me:$LINENO: checking sgetn" >&5
    11631 echo $ECHO_N "checking sgetn... $ECHO_C" >&6
    11632 cat >conftest.$ac_ext <<_ACEOF
    11633 /* confdefs.h.  */
    11634 _ACEOF
    11635 cat confdefs.h >>conftest.$ac_ext
    11636 cat >>conftest.$ac_ext <<_ACEOF
     8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sgetn" >&5
     8282$as_echo_n "checking sgetn... " >&6; }
     8283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    116378284/* end confdefs.h.  */
    116388285#include <$iostream>
     
    116488295}
    116498296_ACEOF
    11650 rm -f conftest.$ac_objext
    11651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    11652   (eval $ac_compile) 2>conftest.er1
    11653   ac_status=$?
    11654   grep -v '^ *+' conftest.er1 >conftest.err
    11655   rm -f conftest.er1
    11656   cat conftest.err >&5
    11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11658   (exit $ac_status); } &&
    11659          { ac_try='test -z "$ac_cxx_werror_flag"
    11660                          || test ! -s conftest.err'
    11661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11662   (eval $ac_try) 2>&5
    11663   ac_status=$?
    11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11665   (exit $ac_status); }; } &&
    11666          { ac_try='test -s conftest.$ac_objext'
    11667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11668   (eval $ac_try) 2>&5
    11669   ac_status=$?
    11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11671   (exit $ac_status); }; }; then
     8297if ac_fn_cxx_try_compile "$LINENO"; then :
    116728298  HAVE_SGETN=yes
    11673 cat >>confdefs.h <<\_ACEOF
    11674 #define HAVE_SGETN 1
    11675 _ACEOF
    11676 
    11677 echo "$as_me:$LINENO: result: yes" >&5
    11678 echo "${ECHO_T}yes" >&6
    11679 else
    11680   echo "$as_me: failed program was:" >&5
    11681 sed 's/^/| /' conftest.$ac_ext >&5
    11682 
    11683 
    11684 echo "$as_me:$LINENO: result: no" >&5
    11685 echo "${ECHO_T}no" >&6
     8299
     8300$as_echo "#define HAVE_SGETN 1" >>confdefs.h
     8301
     8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     8303$as_echo "yes" >&6; }
     8304else
     8305
     8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8307$as_echo "no" >&6; }
    116868308HAVE_SGETN=no
    116878309
    116888310fi
    11689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    116908312ac_ext=c
    116918313ac_cpp='$CPP $CPPFLAGS'
     
    116988320
    116998321
    11700 
    11701 ac_ext=cc
     8322ac_ext=cpp
    117028323ac_cpp='$CXXCPP $CPPFLAGS'
    117038324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    117058326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    117068327
    11707 echo "$as_me:$LINENO: checking pubseekoff" >&5
    11708 echo $ECHO_N "checking pubseekoff... $ECHO_C" >&6
    11709 cat >conftest.$ac_ext <<_ACEOF
    11710 /* confdefs.h.  */
    11711 _ACEOF
    11712 cat confdefs.h >>conftest.$ac_ext
    11713 cat >>conftest.$ac_ext <<_ACEOF
     8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pubseekoff" >&5
     8329$as_echo_n "checking pubseekoff... " >&6; }
     8330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    117148331/* end confdefs.h.  */
    117158332#include <$iostream>
     
    117258342}
    117268343_ACEOF
    11727 rm -f conftest.$ac_objext
    11728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    11729   (eval $ac_compile) 2>conftest.er1
    11730   ac_status=$?
    11731   grep -v '^ *+' conftest.er1 >conftest.err
    11732   rm -f conftest.er1
    11733   cat conftest.err >&5
    11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11735   (exit $ac_status); } &&
    11736          { ac_try='test -z "$ac_cxx_werror_flag"
    11737                          || test ! -s conftest.err'
    11738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11739   (eval $ac_try) 2>&5
    11740   ac_status=$?
    11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11742   (exit $ac_status); }; } &&
    11743          { ac_try='test -s conftest.$ac_objext'
    11744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11745   (eval $ac_try) 2>&5
    11746   ac_status=$?
    11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11748   (exit $ac_status); }; }; then
     8344if ac_fn_cxx_try_compile "$LINENO"; then :
    117498345  HAVE_PUBSEEKOFF=yes
    11750 cat >>confdefs.h <<\_ACEOF
    11751 #define HAVE_PUBSEEKOFF 1
    11752 _ACEOF
    11753 
    11754 echo "$as_me:$LINENO: result: yes" >&5
    11755 echo "${ECHO_T}yes" >&6
    11756 else
    11757   echo "$as_me: failed program was:" >&5
    11758 sed 's/^/| /' conftest.$ac_ext >&5
    11759 
    11760 
    11761 echo "$as_me:$LINENO: result: no" >&5
    11762 echo "${ECHO_T}no" >&6
     8346
     8347$as_echo "#define HAVE_PUBSEEKOFF 1" >>confdefs.h
     8348
     8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     8350$as_echo "yes" >&6; }
     8351else
     8352
     8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8354$as_echo "no" >&6; }
    117638355HAVE_PUBSEEKOFF=no
    117648356
    117658357fi
    11766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    117678359ac_ext=c
    117688360ac_cpp='$CPP $CPPFLAGS'
     
    117758367
    117768368
    11777 
    11778 ac_ext=cc
     8369ac_ext=cpp
    117798370ac_cpp='$CXXCPP $CPPFLAGS'
    117808371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    117828373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    117838374
    11784 echo "$as_me:$LINENO: checking seekoff" >&5
    11785 echo $ECHO_N "checking seekoff... $ECHO_C" >&6
    11786 cat >conftest.$ac_ext <<_ACEOF
    11787 /* confdefs.h.  */
    11788 _ACEOF
    11789 cat confdefs.h >>conftest.$ac_ext
    11790 cat >>conftest.$ac_ext <<_ACEOF
     8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking seekoff" >&5
     8376$as_echo_n "checking seekoff... " >&6; }
     8377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    117918378/* end confdefs.h.  */
    117928379#include <$iostream>
     
    118028389}
    118038390_ACEOF
    11804 rm -f conftest.$ac_objext
    11805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    11806   (eval $ac_compile) 2>conftest.er1
    11807   ac_status=$?
    11808   grep -v '^ *+' conftest.er1 >conftest.err
    11809   rm -f conftest.er1
    11810   cat conftest.err >&5
    11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11812   (exit $ac_status); } &&
    11813          { ac_try='test -z "$ac_cxx_werror_flag"
    11814                          || test ! -s conftest.err'
    11815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11816   (eval $ac_try) 2>&5
    11817   ac_status=$?
    11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11819   (exit $ac_status); }; } &&
    11820          { ac_try='test -s conftest.$ac_objext'
    11821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11822   (eval $ac_try) 2>&5
    11823   ac_status=$?
    11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11825   (exit $ac_status); }; }; then
     8391if ac_fn_cxx_try_compile "$LINENO"; then :
    118268392  HAVE_SEEKOFF=yes
    11827 cat >>confdefs.h <<\_ACEOF
    11828 #define HAVE_SEEKOFF 1
    11829 _ACEOF
    11830 
    11831 echo "$as_me:$LINENO: result: yes" >&5
    11832 echo "${ECHO_T}yes" >&6
    11833 else
    11834   echo "$as_me: failed program was:" >&5
    11835 sed 's/^/| /' conftest.$ac_ext >&5
    11836 
    11837 
    11838 echo "$as_me:$LINENO: result: no" >&5
    11839 echo "${ECHO_T}no" >&6
     8393
     8394$as_echo "#define HAVE_SEEKOFF 1" >>confdefs.h
     8395
     8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     8397$as_echo "yes" >&6; }
     8398else
     8399
     8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8401$as_echo "no" >&6; }
    118408402HAVE_SEEKOFF=no
    118418403
    118428404fi
    11843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     8405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    118448406ac_ext=c
    118458407ac_cpp='$CPP $CPPFLAGS'
     
    118528414
    118538415
    11854 
    11855 ac_ext=cc
     8416ac_ext=cpp
    118568417ac_cpp='$CXXCPP $CPPFLAGS'
    118578418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    118598420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    118608421
    11861 echo "$as_me:$LINENO: checking signal handler needs ellipsis" >&5
    11862 echo $ECHO_N "checking signal handler needs ellipsis... $ECHO_C" >&6
    11863 cat >conftest.$ac_ext <<_ACEOF
    11864 /* confdefs.h.  */
    11865 _ACEOF
    11866 cat confdefs.h >>conftest.$ac_ext
    11867 cat >>conftest.$ac_ext <<_ACEOF
     8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking signal handler needs ellipsis" >&5
     8423$as_echo_n "checking signal handler needs ellipsis... " >&6; }
     8424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    118688425/* end confdefs.h.  */
    118698426
     
    118858442}
    118868443_ACEOF
    11887 rm -f conftest.$ac_objext conftest$ac_exeext
    11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    11889   (eval $ac_link) 2>conftest.er1
    11890   ac_status=$?
    11891   grep -v '^ *+' conftest.er1 >conftest.err
    11892   rm -f conftest.er1
    11893   cat conftest.err >&5
    11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11895   (exit $ac_status); } &&
    11896          { ac_try='test -z "$ac_cxx_werror_flag"
    11897                          || test ! -s conftest.err'
    11898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11899   (eval $ac_try) 2>&5
    11900   ac_status=$?
    11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11902   (exit $ac_status); }; } &&
    11903          { ac_try='test -s conftest$ac_exeext'
    11904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    11905   (eval $ac_try) 2>&5
    11906   ac_status=$?
    11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11908   (exit $ac_status); }; }; then
    11909   cat >>confdefs.h <<\_ACEOF
    11910 #define SIGHASELLIP 1
    11911 _ACEOF
    11912  echo "$as_me:$LINENO: result: yes" >&5
    11913 echo "${ECHO_T}yes" >&6
    11914 else
    11915   echo "$as_me: failed program was:" >&5
    11916 sed 's/^/| /' conftest.$ac_ext >&5
    11917 
    11918 echo "$as_me:$LINENO: result: no" >&5
    11919 echo "${ECHO_T}no" >&6
    11920 fi
    11921 rm -f conftest.err conftest.$ac_objext \
    11922       conftest$ac_exeext conftest.$ac_ext
     8444if ac_fn_cxx_try_link "$LINENO"; then :
     8445
     8446$as_echo "#define SIGHASELLIP 1" >>confdefs.h
     8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     8448$as_echo "yes" >&6; }
     8449else
     8450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8451$as_echo "no" >&6; }
     8452fi
     8453rm -f core conftest.err conftest.$ac_objext \
     8454    conftest$ac_exeext conftest.$ac_ext
    119238455ac_ext=c
    119248456ac_cpp='$CPP $CPPFLAGS'
     
    119308462
    119318463
    11932 
    11933 ac_ext=cc
     8464ac_ext=cpp
    119348465ac_cpp='$CXXCPP $CPPFLAGS'
    119358466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    119378468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    119388469
    11939 
    119408470for ac_func in drand48
    11941 do
    11942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    11943 echo "$as_me:$LINENO: checking for $ac_func" >&5
    11944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    11945 if eval "test \"\${$as_ac_var+set}\" = set"; then
    11946   echo $ECHO_N "(cached) $ECHO_C" >&6
    11947 else
    11948   cat >conftest.$ac_ext <<_ACEOF
    11949 /* confdefs.h.  */
    11950 _ACEOF
    11951 cat confdefs.h >>conftest.$ac_ext
    11952 cat >>conftest.$ac_ext <<_ACEOF
    11953 /* end confdefs.h.  */
    11954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    11955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    11956 #define $ac_func innocuous_$ac_func
    11957 
    11958 /* System header to define __stub macros and hopefully few prototypes,
    11959     which can conflict with char $ac_func (); below.
    11960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    11961     <limits.h> exists even on freestanding compilers.  */
    11962 
    11963 #ifdef __STDC__
    11964 # include <limits.h>
    11965 #else
    11966 # include <assert.h>
    11967 #endif
    11968 
    11969 #undef $ac_func
    11970 
    11971 /* Override any gcc2 internal prototype to avoid an error.  */
    11972 #ifdef __cplusplus
    11973 extern "C"
    11974 {
    11975 #endif
    11976 /* We use char because int might match the return type of a gcc2
    11977    builtin and then its argument prototype would still apply.  */
    11978 char $ac_func ();
    11979 /* The GNU C library defines this for functions which it implements
    11980     to always fail with ENOSYS.  Some functions are actually named
    11981     something starting with __ and the normal name is an alias.  */
    11982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    11983 choke me
    11984 #else
    11985 char (*f) () = $ac_func;
    11986 #endif
    11987 #ifdef __cplusplus
    11988 }
    11989 #endif
    11990 
    11991 int
    11992 main ()
    11993 {
    11994 return f != $ac_func;
    11995   ;
    11996   return 0;
    11997 }
    11998 _ACEOF
    11999 rm -f conftest.$ac_objext conftest$ac_exeext
    12000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12001   (eval $ac_link) 2>conftest.er1
    12002   ac_status=$?
    12003   grep -v '^ *+' conftest.er1 >conftest.err
    12004   rm -f conftest.er1
    12005   cat conftest.err >&5
    12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12007   (exit $ac_status); } &&
    12008          { ac_try='test -z "$ac_cxx_werror_flag"
    12009                          || test ! -s conftest.err'
    12010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12011   (eval $ac_try) 2>&5
    12012   ac_status=$?
    12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12014   (exit $ac_status); }; } &&
    12015          { ac_try='test -s conftest$ac_exeext'
    12016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12017   (eval $ac_try) 2>&5
    12018   ac_status=$?
    12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12020   (exit $ac_status); }; }; then
    12021   eval "$as_ac_var=yes"
    12022 else
    12023   echo "$as_me: failed program was:" >&5
    12024 sed 's/^/| /' conftest.$ac_ext >&5
    12025 
    12026 eval "$as_ac_var=no"
    12027 fi
    12028 rm -f conftest.err conftest.$ac_objext \
    12029       conftest$ac_exeext conftest.$ac_ext
    12030 fi
    12031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    12032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    12033 if test `eval echo '${'$as_ac_var'}'` = yes; then
     8471do :
     8472  ac_fn_cxx_check_func "$LINENO" "drand48" "ac_cv_func_drand48"
     8473if test "x$ac_cv_func_drand48" = xyes; then :
    120348474  cat >>confdefs.h <<_ACEOF
    12035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
     8475#define HAVE_DRAND48 1
    120368476_ACEOF
    120378477
     
    120488488
    120498489if test "X$SYSVIPC" = Xyes; then
    12050 
    12051 
    12052 for ac_func in shmget semget
    12053 do
    12054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    12055 echo "$as_me:$LINENO: checking for $ac_func" >&5
    12056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    12057 if eval "test \"\${$as_ac_var+set}\" = set"; then
    12058   echo $ECHO_N "(cached) $ECHO_C" >&6
    12059 else
    12060   cat >conftest.$ac_ext <<_ACEOF
    12061 /* confdefs.h.  */
     8490  for ac_func in shmget semget
     8491do :
     8492  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     8493ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     8494if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     8495  cat >>confdefs.h <<_ACEOF
     8496#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
    120628497_ACEOF
    12063 cat confdefs.h >>conftest.$ac_ext
    12064 cat >>conftest.$ac_ext <<_ACEOF
    12065 /* end confdefs.h.  */
    12066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    12067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    12068 #define $ac_func innocuous_$ac_func
    12069 
    12070 /* System header to define __stub macros and hopefully few prototypes,
    12071     which can conflict with char $ac_func (); below.
    12072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    12073     <limits.h> exists even on freestanding compilers.  */
    12074 
    12075 #ifdef __STDC__
    12076 # include <limits.h>
    12077 #else
    12078 # include <assert.h>
    12079 #endif
    12080 
    12081 #undef $ac_func
    12082 
    12083 /* Override any gcc2 internal prototype to avoid an error.  */
    12084 #ifdef __cplusplus
    12085 extern "C"
    12086 {
    12087 #endif
    12088 /* We use char because int might match the return type of a gcc2
    12089    builtin and then its argument prototype would still apply.  */
    12090 char $ac_func ();
    12091 /* The GNU C library defines this for functions which it implements
    12092     to always fail with ENOSYS.  Some functions are actually named
    12093     something starting with __ and the normal name is an alias.  */
    12094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    12095 choke me
    12096 #else
    12097 char (*f) () = $ac_func;
    12098 #endif
    12099 #ifdef __cplusplus
    12100 }
    12101 #endif
    12102 
    12103 int
    12104 main ()
    12105 {
    12106 return f != $ac_func;
    12107   ;
    12108   return 0;
    12109 }
     8498
     8499fi
     8500done
     8501
     8502  for ac_header in sys/ipc.h sys/sem.h sys/shm.h
     8503do :
     8504  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     8505ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
     8506if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     8507  cat >>confdefs.h <<_ACEOF
     8508#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    121108509_ACEOF
    12111 rm -f conftest.$ac_objext conftest$ac_exeext
    12112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12113   (eval $ac_link) 2>conftest.er1
    12114   ac_status=$?
    12115   grep -v '^ *+' conftest.er1 >conftest.err
    12116   rm -f conftest.er1
    12117   cat conftest.err >&5
    12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12119   (exit $ac_status); } &&
    12120          { ac_try='test -z "$ac_c_werror_flag"
    12121                          || test ! -s conftest.err'
    12122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12123   (eval $ac_try) 2>&5
    12124   ac_status=$?
    12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12126   (exit $ac_status); }; } &&
    12127          { ac_try='test -s conftest$ac_exeext'
    12128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12129   (eval $ac_try) 2>&5
    12130   ac_status=$?
    12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12132   (exit $ac_status); }; }; then
    12133   eval "$as_ac_var=yes"
    12134 else
    12135   echo "$as_me: failed program was:" >&5
    12136 sed 's/^/| /' conftest.$ac_ext >&5
    12137 
    12138 eval "$as_ac_var=no"
    12139 fi
    12140 rm -f conftest.err conftest.$ac_objext \
    12141       conftest$ac_exeext conftest.$ac_ext
    12142 fi
    12143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    12144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    12145 if test `eval echo '${'$as_ac_var'}'` = yes; then
    12146   cat >>confdefs.h <<_ACEOF
    12147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
    12148 _ACEOF
    12149 
    12150 fi
     8510
     8511fi
     8512
    121518513done
    121528514
    12153 
    12154 
    12155 
    12156 for ac_header in sys/ipc.h sys/sem.h sys/shm.h
    12157 do
    12158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    12159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    12160   echo "$as_me:$LINENO: checking for $ac_header" >&5
    12161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    12162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    12163   echo $ECHO_N "(cached) $ECHO_C" >&6
    12164 fi
    12165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    12166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    12167 else
    12168   # Is the header compilable?
    12169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    12170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    12171 cat >conftest.$ac_ext <<_ACEOF
    12172 /* confdefs.h.  */
    12173 _ACEOF
    12174 cat confdefs.h >>conftest.$ac_ext
    12175 cat >>conftest.$ac_ext <<_ACEOF
    12176 /* end confdefs.h.  */
    12177 $ac_includes_default
    12178 #include <$ac_header>
    12179 _ACEOF
    12180 rm -f conftest.$ac_objext
    12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    12182   (eval $ac_compile) 2>conftest.er1
    12183   ac_status=$?
    12184   grep -v '^ *+' conftest.er1 >conftest.err
    12185   rm -f conftest.er1
    12186   cat conftest.err >&5
    12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12188   (exit $ac_status); } &&
    12189          { ac_try='test -z "$ac_c_werror_flag"
    12190                          || test ! -s conftest.err'
    12191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12192   (eval $ac_try) 2>&5
    12193   ac_status=$?
    12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12195   (exit $ac_status); }; } &&
    12196          { ac_try='test -s conftest.$ac_objext'
    12197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12198   (eval $ac_try) 2>&5
    12199   ac_status=$?
    12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12201   (exit $ac_status); }; }; then
    12202   ac_header_compiler=yes
    12203 else
    12204   echo "$as_me: failed program was:" >&5
    12205 sed 's/^/| /' conftest.$ac_ext >&5
    12206 
    12207 ac_header_compiler=no
    12208 fi
    12209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    12210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    12211 echo "${ECHO_T}$ac_header_compiler" >&6
    12212 
    12213 # Is the header present?
    12214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    12215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    12216 cat >conftest.$ac_ext <<_ACEOF
    12217 /* confdefs.h.  */
    12218 _ACEOF
    12219 cat confdefs.h >>conftest.$ac_ext
    12220 cat >>conftest.$ac_ext <<_ACEOF
    12221 /* end confdefs.h.  */
    12222 #include <$ac_header>
    12223 _ACEOF
    12224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    12225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    12226   ac_status=$?
    12227   grep -v '^ *+' conftest.er1 >conftest.err
    12228   rm -f conftest.er1
    12229   cat conftest.err >&5
    12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12231   (exit $ac_status); } >/dev/null; then
    12232   if test -s conftest.err; then
    12233     ac_cpp_err=$ac_c_preproc_warn_flag
    12234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    12235   else
    12236     ac_cpp_err=
    12237   fi
    12238 else
    12239   ac_cpp_err=yes
    12240 fi
    12241 if test -z "$ac_cpp_err"; then
    12242   ac_header_preproc=yes
    12243 else
    12244   echo "$as_me: failed program was:" >&5
    12245 sed 's/^/| /' conftest.$ac_ext >&5
    12246 
    12247   ac_header_preproc=no
    12248 fi
    12249 rm -f conftest.err conftest.$ac_ext
    12250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    12251 echo "${ECHO_T}$ac_header_preproc" >&6
    12252 
    12253 # So?  What about this header?
    12254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    12255   yes:no: )
    12256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    12257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    12258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    12259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    12260     ac_header_preproc=yes
    12261     ;;
    12262   no:yes:* )
    12263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    12264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    12265     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    12266 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    12267     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    12268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    12269     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    12270 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    12271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    12272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    12273     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    12274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    12275     (
    12276       cat <<\_ASBOX
    12277 ## ------------------------------------------ ##
    12278 ## Report this to the AC_PACKAGE_NAME lists.  ##
    12279 ## ------------------------------------------ ##
    12280 _ASBOX
    12281     ) |
    12282       sed "s/^/$as_me: WARNING:     /" >&2
    12283     ;;
    12284 esac
    12285 echo "$as_me:$LINENO: checking for $ac_header" >&5
    12286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    12287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    12288   echo $ECHO_N "(cached) $ECHO_C" >&6
    12289 else
    12290   eval "$as_ac_Header=\$ac_header_preproc"
    12291 fi
    12292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    12293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    12294 
    12295 fi
    12296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    12297   cat >>confdefs.h <<_ACEOF
    12298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    12299 _ACEOF
    12300 
    12301 fi
    12302 
    12303 done
    12304 
    12305   echo "$as_me:$LINENO: checking for SYSV IPC" >&5
    12306 echo $ECHO_N "checking for SYSV IPC... $ECHO_C" >&6
     8515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
     8516$as_echo_n "checking for SYSV IPC... " >&6; }
    123078517  if test X$ac_cv_func_shmget = Xyes -a \
    123088518          X$ac_cv_func_semget = Xyes -a \
     
    123118521          X$ac_cv_header_sys_shm_h = Xyes; then
    123128522    HAVE_SYSV_IPC=yes
    12313     cat >>confdefs.h <<\_ACEOF
    12314 #define HAVE_SYSV_IPC 1
    12315 _ACEOF
     8523
     8524$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h
    123168525
    123178526  else
    123188527    HAVE_SYSV_IPC=no
    123198528  fi
    12320   echo "$as_me:$LINENO: result: $HAVE_SYSV_IPC" >&5
    12321 echo "${ECHO_T}$HAVE_SYSV_IPC" >&6
     8529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SYSV_IPC" >&5
     8530$as_echo "$HAVE_SYSV_IPC" >&6; }
    123228531
    123238532else
     
    123278536
    123288537
    12329 
    12330 ac_ext=cc
     8538ac_ext=cpp
    123318539ac_cpp='$CXXCPP $CPPFLAGS'
    123328540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    123348542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    123358543
    12336 echo "$as_me:$LINENO: checking if semctl requires semun" >&5
    12337 echo $ECHO_N "checking if semctl requires semun... $ECHO_C" >&6
    12338 cat >conftest.$ac_ext <<_ACEOF
    12339 /* confdefs.h.  */
    12340 _ACEOF
    12341 cat confdefs.h >>conftest.$ac_ext
    12342 cat >>conftest.$ac_ext <<_ACEOF
     8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if semctl requires semun" >&5
     8545$as_echo_n "checking if semctl requires semun... " >&6; }
     8546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    123438547/* end confdefs.h.  */
    123448548
     
    123588562}
    123598563_ACEOF
    12360 rm -f conftest.$ac_objext conftest$ac_exeext
    12361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12362   (eval $ac_link) 2>conftest.er1
    12363   ac_status=$?
    12364   grep -v '^ *+' conftest.er1 >conftest.err
    12365   rm -f conftest.er1
    12366   cat conftest.err >&5
    12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12368   (exit $ac_status); } &&
    12369          { ac_try='test -z "$ac_cxx_werror_flag"
    12370                          || test ! -s conftest.err'
    12371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12372   (eval $ac_try) 2>&5
    12373   ac_status=$?
    12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12375   (exit $ac_status); }; } &&
    12376          { ac_try='test -s conftest$ac_exeext'
    12377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12378   (eval $ac_try) 2>&5
    12379   ac_status=$?
    12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12381   (exit $ac_status); }; }; then
     8564if ac_fn_cxx_try_link "$LINENO"; then :
    123828565
    123838566case $target in
    123848567  *-sgi-irix*)
    12385     cat >>confdefs.h <<\_ACEOF
    12386 #define SEMCTL_REQUIRES_SEMUN 1
    12387 _ACEOF
    12388  echo "$as_me:$LINENO: result: sgi-irix -- yes" >&5
    12389 echo "${ECHO_T}sgi-irix -- yes" >&6
     8568
     8569$as_echo "#define SEMCTL_REQUIRES_SEMUN 1" >>confdefs.h
     8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sgi-irix -- yes" >&5
     8571$as_echo "sgi-irix -- yes" >&6; }
    123908572  ;;
    123918573  *)
    12392     echo "$as_me:$LINENO: result: no" >&5
    12393 echo "${ECHO_T}no" >&6
     8574    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8575$as_echo "no" >&6; }
    123948576  ;;
    123958577esac
    123968578
    123978579else
    12398   echo "$as_me: failed program was:" >&5
    12399 sed 's/^/| /' conftest.$ac_ext >&5
    12400 
    12401 cat >>confdefs.h <<\_ACEOF
    12402 #define SEMCTL_REQUIRES_SEMUN 1
    12403 _ACEOF
    12404  echo "$as_me:$LINENO: result: yes" >&5
    12405 echo "${ECHO_T}yes" >&6
    12406 fi
    12407 rm -f conftest.err conftest.$ac_objext \
    12408       conftest$ac_exeext conftest.$ac_ext
     8580
     8581$as_echo "#define SEMCTL_REQUIRES_SEMUN 1" >>confdefs.h
     8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     8583$as_echo "yes" >&6; }
     8584fi
     8585rm -f core conftest.err conftest.$ac_objext \
     8586    conftest$ac_exeext conftest.$ac_ext
    124098587ac_ext=c
    124108588ac_cpp='$CPP $CPPFLAGS'
     
    124148592
    124158593
    12416 
    12417 echo "$as_me:$LINENO: checking if fortran compiler works" >&5
    12418 echo $ECHO_N "checking if fortran compiler works... $ECHO_C" >&6
     8594$as_echo "#define SHMTYPE char *" >>confdefs.h
     8595
     8596
     8597
     8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fortran compiler works" >&5
     8599$as_echo_n "checking if fortran compiler works... " >&6; }
    124198600if test -n "$F77" -a "$F77" != no ; then
    124208601  /bin/rm -f ffunc.f flink.c
     
    124228603  echo "      end" >> ffunc.f
    124238604  if $F77 -o ffunc ffunc.f 1>&5 2>&5; then
    12424     echo "$as_me:$LINENO: result: yes" >&5
    12425 echo "${ECHO_T}yes" >&6
     8605    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     8606$as_echo "yes" >&6; }
    124268607  else
    12427     echo "$as_me:$LINENO: result: no" >&5
    12428 echo "${ECHO_T}no" >&6
    12429     { { echo "$as_me:$LINENO: error: fortran compiler does not work
    12430 See \`config.log' for more details." >&5
    12431 echo "$as_me: error: fortran compiler does not work
    12432 See \`config.log' for more details." >&2;}
    12433    { (exit 1); exit 1; }; }
     8608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8609$as_echo "no" >&6; }
     8610    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     8611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     8612as_fn_error $? "fortran compiler does not work
     8613See \`config.log' for more details" "$LINENO" 5; }
    124348614  fi
    124358615  /bin/rm -f ffunc ffunc.f
     
    124378617
    124388618
    12439 echo "$as_me:$LINENO: checking fortran symbols" >&5
    12440 echo $ECHO_N "checking fortran symbols... $ECHO_C" >&6
     8619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran symbols" >&5
     8620$as_echo_n "checking fortran symbols... " >&6; }
    124418621if test -n "$F77" -a "$F77" != no ; then
    124428622  /bin/rm -f ffunc.f flink.c
     
    124478627  echo "main(){ FF(); return 0; }" > flink.c
    124488628  if $CC -o flink -DFF=ffunc flink.c ffunc.o $LDFLAGS $LIBS 1>/dev/null 2>/dev/null; then
    12449     echo "$as_me:$LINENO: result: same as C" >&5
    12450 echo "${ECHO_T}same as C" >&6
     8629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: same as C" >&5
     8630$as_echo "same as C" >&6; }
    124518631    F77_SYMBOLS=symbol
    124528632  elif $CC -o flink -DFF=ffunc_ flink.c ffunc.o $LDFLAGS $LIBS 1>/dev/null 2>/dev/null; then
    12453     echo "$as_me:$LINENO: result: lowercase with underscore" >&5
    12454 echo "${ECHO_T}lowercase with underscore" >&6
     8633    { $as_echo "$as_me:${as_lineno-$LINENO}: result: lowercase with underscore" >&5
     8634$as_echo "lowercase with underscore" >&6; }
    124558635    F77_SYMBOLS=symbol_
    124568636  elif $CC -o flink -DFF=FFUNC flink.c ffunc.o $LDFLAGS $LIBS 1>/dev/null 2>/dev/null; then
    12457     echo "$as_me:$LINENO: result: uppercase" >&5
    12458 echo "${ECHO_T}uppercase" >&6
     8637    { $as_echo "$as_me:${as_lineno-$LINENO}: result: uppercase" >&5
     8638$as_echo "uppercase" >&6; }
    124598639    F77_SYMBOLS=SYMBOL
    124608640  elif $CC -o flink -DFF=FFUNC_ flink.c ffunc.o $LDFLAGS $LIBS 1>/dev/null 2>/dev/null; then
    12461     echo "$as_me:$LINENO: result: uppercase with underscore" >&5
    12462 echo "${ECHO_T}uppercase with underscore" >&6
     8641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: uppercase with underscore" >&5
     8642$as_echo "uppercase with underscore" >&6; }
    124638643    F77_SYMBOLS=SYMBOL_
    124648644  else
    12465     echo "$as_me:$LINENO: result: giving up" >&5
    12466 echo "${ECHO_T}giving up" >&6
    12467     { { echo "$as_me:$LINENO: error: could not determine F77 symbol names" >&5
    12468 echo "$as_me: error: could not determine F77 symbol names" >&2;}
    12469    { (exit 1); exit 1; }; }
     8645    { $as_echo "$as_me:${as_lineno-$LINENO}: result: giving up" >&5
     8646$as_echo "giving up" >&6; }
     8647    as_fn_error $? "could not determine F77 symbol names" "$LINENO" 5
    124708648  fi
    124718649  /bin/rm -f ffunc.f ffunc.o flink flink.c flink.o ffunc
    124728650else
    124738651  F77_SYMBOLS=symbol_
    12474   echo "$as_me:$LINENO: result: guessing lowercase with underscore" >&5
    12475 echo "${ECHO_T}guessing lowercase with underscore" >&6
    12476 fi
    12477 
    12478 
    12479 
    12480 
    12481 
    12482 ac_ext=cc
     8652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing lowercase with underscore" >&5
     8653$as_echo "guessing lowercase with underscore" >&6; }
     8654fi
     8655
     8656
     8657
     8658
     8659ac_ext=cpp
    124838660ac_cpp='$CXXCPP $CPPFLAGS'
    124848661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    124918668LIBBLAS=""
    124928669F77_DGEMM=`$PERL $srcdir/bin/mkf77sym.pl.in -method $F77_SYMBOLS DAXPY`
    12493 as_ac_var=`echo "ac_cv_func_$F77_DGEMM" | $as_tr_sh`
    12494 echo "$as_me:$LINENO: checking for $F77_DGEMM" >&5
    12495 echo $ECHO_N "checking for $F77_DGEMM... $ECHO_C" >&6
    12496 if eval "test \"\${$as_ac_var+set}\" = set"; then
    12497   echo $ECHO_N "(cached) $ECHO_C" >&6
    12498 else
    12499   cat >conftest.$ac_ext <<_ACEOF
    12500 /* confdefs.h.  */
    12501 _ACEOF
    12502 cat confdefs.h >>conftest.$ac_ext
    12503 cat >>conftest.$ac_ext <<_ACEOF
     8670as_ac_var=`$as_echo "ac_cv_func_$F77_DGEMM" | $as_tr_sh`
     8671ac_fn_cxx_check_func "$LINENO" "$F77_DGEMM" "$as_ac_var"
     8672if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     8673  HAVE_BLAS=yes
     8674else
     8675
     8676  as_ac_Lib=`$as_echo "ac_cv_lib_essl_$F77_DGEMM" | $as_tr_sh`
     8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $F77_DGEMM in -lessl" >&5
     8678$as_echo_n "checking for $F77_DGEMM in -lessl... " >&6; }
     8679if eval \${$as_ac_Lib+:} false; then :
     8680  $as_echo_n "(cached) " >&6
     8681else
     8682  ac_check_lib_save_LIBS=$LIBS
     8683LIBS="-lessl  $LIBS"
     8684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    125048685/* end confdefs.h.  */
    12505 /* Define $F77_DGEMM to an innocuous variant, in case <limits.h> declares $F77_DGEMM.
    12506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    12507 #define $F77_DGEMM innocuous_$F77_DGEMM
    12508 
    12509 /* System header to define __stub macros and hopefully few prototypes,
    12510     which can conflict with char $F77_DGEMM (); below.
    12511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    12512     <limits.h> exists even on freestanding compilers.  */
    12513 
    12514 #ifdef __STDC__
    12515 # include <limits.h>
    12516 #else
    12517 # include <assert.h>
    12518 #endif
    12519 
    12520 #undef $F77_DGEMM
    12521 
    12522 /* Override any gcc2 internal prototype to avoid an error.  */
     8686
     8687/* Override any GCC internal prototype to avoid an error.
     8688   Use char because int might match the return type of a GCC
     8689   builtin and then its argument prototype would still apply.  */
    125238690#ifdef __cplusplus
    125248691extern "C"
    12525 {
    125268692#endif
    12527 /* We use char because int might match the return type of a gcc2
    12528    builtin and then its argument prototype would still apply.  */
    125298693char $F77_DGEMM ();
    12530 /* The GNU C library defines this for functions which it implements
    12531     to always fail with ENOSYS.  Some functions are actually named
    12532     something starting with __ and the normal name is an alias.  */
    12533 #if defined (__stub_$F77_DGEMM) || defined (__stub___$F77_DGEMM)
    12534 choke me
    12535 #else
    12536 char (*f) () = $F77_DGEMM;
    12537 #endif
    12538 #ifdef __cplusplus
    12539 }
    12540 #endif
    12541 
    125428694int
    125438695main ()
    125448696{
    12545 return f != $F77_DGEMM;
     8697return $F77_DGEMM ();
    125468698  ;
    125478699  return 0;
    125488700}
    125498701_ACEOF
    12550 rm -f conftest.$ac_objext conftest$ac_exeext
    12551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12552   (eval $ac_link) 2>conftest.er1
    12553   ac_status=$?
    12554   grep -v '^ *+' conftest.er1 >conftest.err
    12555   rm -f conftest.er1
    12556   cat conftest.err >&5
    12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12558   (exit $ac_status); } &&
    12559          { ac_try='test -z "$ac_cxx_werror_flag"
    12560                          || test ! -s conftest.err'
    12561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12562   (eval $ac_try) 2>&5
    12563   ac_status=$?
    12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12565   (exit $ac_status); }; } &&
    12566          { ac_try='test -s conftest$ac_exeext'
    12567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12568   (eval $ac_try) 2>&5
    12569   ac_status=$?
    12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12571   (exit $ac_status); }; }; then
    12572   eval "$as_ac_var=yes"
    12573 else
    12574   echo "$as_me: failed program was:" >&5
    12575 sed 's/^/| /' conftest.$ac_ext >&5
    12576 
    12577 eval "$as_ac_var=no"
    12578 fi
    12579 rm -f conftest.err conftest.$ac_objext \
    12580       conftest$ac_exeext conftest.$ac_ext
    12581 fi
    12582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    12583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    12584 if test `eval echo '${'$as_ac_var'}'` = yes; then
    12585   HAVE_BLAS=yes
    12586 else
    12587 
    12588   as_ac_Lib=`echo "ac_cv_lib_essl_$F77_DGEMM" | $as_tr_sh`
    12589 echo "$as_me:$LINENO: checking for $F77_DGEMM in -lessl" >&5
    12590 echo $ECHO_N "checking for $F77_DGEMM in -lessl... $ECHO_C" >&6
    12591 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
    12592   echo $ECHO_N "(cached) $ECHO_C" >&6
     8702if ac_fn_cxx_try_link "$LINENO"; then :
     8703  eval "$as_ac_Lib=yes"
     8704else
     8705  eval "$as_ac_Lib=no"
     8706fi
     8707rm -f core conftest.err conftest.$ac_objext \
     8708    conftest$ac_exeext conftest.$ac_ext
     8709LIBS=$ac_check_lib_save_LIBS
     8710fi
     8711eval ac_res=\$$as_ac_Lib
     8712               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     8713$as_echo "$ac_res" >&6; }
     8714if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
     8715  HAVE_BLAS=yes;LIBBLAS="-lessl"
     8716else
     8717  as_ac_Lib=`$as_echo "ac_cv_lib_blas_$F77_DGEMM" | $as_tr_sh`
     8718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $F77_DGEMM in -lblas" >&5
     8719$as_echo_n "checking for $F77_DGEMM in -lblas... " >&6; }
     8720if eval \${$as_ac_Lib+:} false; then :
     8721  $as_echo_n "(cached) " >&6
    125938722else
    125948723  ac_check_lib_save_LIBS=$LIBS
    12595 LIBS="-lessl  $LIBS"
    12596 cat >conftest.$ac_ext <<_ACEOF
    12597 /* confdefs.h.  */
    12598 _ACEOF
    12599 cat confdefs.h >>conftest.$ac_ext
    12600 cat >>conftest.$ac_ext <<_ACEOF
     8724LIBS="-lblas  $LIBS"
     8725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    126018726/* end confdefs.h.  */
    126028727
    12603 /* Override any gcc2 internal prototype to avoid an error.  */
     8728/* Override any GCC internal prototype to avoid an error.
     8729   Use char because int might match the return type of a GCC
     8730   builtin and then its argument prototype would still apply.  */
    126048731#ifdef __cplusplus
    126058732extern "C"
    126068733#endif
    12607 /* We use char because int might match the return type of a gcc2
    12608    builtin and then its argument prototype would still apply.  */
    126098734char $F77_DGEMM ();
    126108735int
    126118736main ()
    126128737{
    12613 $F77_DGEMM ();
     8738return $F77_DGEMM ();
    126148739  ;
    126158740  return 0;
    126168741}
    126178742_ACEOF
    12618 rm -f conftest.$ac_objext conftest$ac_exeext
    12619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12620   (eval $ac_link) 2>conftest.er1
    12621   ac_status=$?
    12622   grep -v '^ *+' conftest.er1 >conftest.err
    12623   rm -f conftest.er1
    12624   cat conftest.err >&5
    12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12626   (exit $ac_status); } &&
    12627          { ac_try='test -z "$ac_cxx_werror_flag"
    12628                          || test ! -s conftest.err'
    12629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12630   (eval $ac_try) 2>&5
    12631   ac_status=$?
    12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12633   (exit $ac_status); }; } &&
    12634          { ac_try='test -s conftest$ac_exeext'
    12635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12636   (eval $ac_try) 2>&5
    12637   ac_status=$?
    12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12639   (exit $ac_status); }; }; then
     8743if ac_fn_cxx_try_link "$LINENO"; then :
    126408744  eval "$as_ac_Lib=yes"
    126418745else
    12642   echo "$as_me: failed program was:" >&5
    12643 sed 's/^/| /' conftest.$ac_ext >&5
    12644 
    12645 eval "$as_ac_Lib=no"
    12646 fi
    12647 rm -f conftest.err conftest.$ac_objext \
    12648       conftest$ac_exeext conftest.$ac_ext
     8746  eval "$as_ac_Lib=no"
     8747fi
     8748rm -f core conftest.err conftest.$ac_objext \
     8749    conftest$ac_exeext conftest.$ac_ext
    126498750LIBS=$ac_check_lib_save_LIBS
    126508751fi
    12651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
    12652 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
    12653 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
    12654   HAVE_BLAS=yes;LIBBLAS="-lessl"
    12655 else
    12656   as_ac_Lib=`echo "ac_cv_lib_blas_$F77_DGEMM" | $as_tr_sh`
    12657 echo "$as_me:$LINENO: checking for $F77_DGEMM in -lblas" >&5
    12658 echo $ECHO_N "checking for $F77_DGEMM in -lblas... $ECHO_C" >&6
    12659 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
    12660   echo $ECHO_N "(cached) $ECHO_C" >&6
     8752eval ac_res=\$$as_ac_Lib
     8753               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     8754$as_echo "$ac_res" >&6; }
     8755if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
     8756  HAVE_BLAS=yes;LIBBLAS="-lblas"
     8757fi
     8758
     8759
     8760fi
     8761
     8762
     8763fi
     8764
     8765if test X$HAVE_BLAS != Xyes; then
     8766  LIBSSAV2="$LIBS"
     8767  LIBS="-latlas $LIBS"
     8768  as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$F77_DGEMM" | $as_tr_sh`
     8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $F77_DGEMM in -lf77blas" >&5
     8770$as_echo_n "checking for $F77_DGEMM in -lf77blas... " >&6; }
     8771if eval \${$as_ac_Lib+:} false; then :
     8772  $as_echo_n "(cached) " >&6
    126618773else
    126628774  ac_check_lib_save_LIBS=$LIBS
    12663 LIBS="-lblas  $LIBS"
    12664 cat >conftest.$ac_ext <<_ACEOF
    12665 /* confdefs.h.  */
    12666 _ACEOF
    12667 cat confdefs.h >>conftest.$ac_ext
    12668 cat >>conftest.$ac_ext <<_ACEOF
     8775LIBS="-lf77blas  $LIBS"
     8776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    126698777/* end confdefs.h.  */
    126708778
    12671 /* Override any gcc2 internal prototype to avoid an error.  */
     8779/* Override any GCC internal prototype to avoid an error.
     8780   Use char because int might match the return type of a GCC
     8781   builtin and then its argument prototype would still apply.  */
    126728782#ifdef __cplusplus
    126738783extern "C"
    126748784#endif
    12675 /* We use char because int might match the return type of a gcc2
    12676    builtin and then its argument prototype would still apply.  */
    126778785char $F77_DGEMM ();
    126788786int
    126798787main ()
    126808788{
    12681 $F77_DGEMM ();
     8789return $F77_DGEMM ();
    126828790  ;
    126838791  return 0;
    126848792}
    126858793_ACEOF
    12686 rm -f conftest.$ac_objext conftest$ac_exeext
    12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12688   (eval $ac_link) 2>conftest.er1
    12689   ac_status=$?
    12690   grep -v '^ *+' conftest.er1 >conftest.err
    12691   rm -f conftest.er1
    12692   cat conftest.err >&5
    12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12694   (exit $ac_status); } &&
    12695          { ac_try='test -z "$ac_cxx_werror_flag"
    12696                          || test ! -s conftest.err'
    12697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12698   (eval $ac_try) 2>&5
    12699   ac_status=$?
    12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12701   (exit $ac_status); }; } &&
    12702          { ac_try='test -s conftest$ac_exeext'
    12703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12704   (eval $ac_try) 2>&5
    12705   ac_status=$?
    12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12707   (exit $ac_status); }; }; then
     8794if ac_fn_cxx_try_link "$LINENO"; then :
    127088795  eval "$as_ac_Lib=yes"
    127098796else
    12710   echo "$as_me: failed program was:" >&5
    12711 sed 's/^/| /' conftest.$ac_ext >&5
    12712 
    12713 eval "$as_ac_Lib=no"
    12714 fi
    12715 rm -f conftest.err conftest.$ac_objext \
    12716       conftest$ac_exeext conftest.$ac_ext
     8797  eval "$as_ac_Lib=no"
     8798fi
     8799rm -f core conftest.err conftest.$ac_objext \
     8800    conftest$ac_exeext conftest.$ac_ext
    127178801LIBS=$ac_check_lib_save_LIBS
    127188802fi
    12719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
    12720 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
    12721 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
    12722   HAVE_BLAS=yes;LIBBLAS="-lblas"
    12723 fi
    12724 
    12725 
    12726 fi
    12727 
     8803eval ac_res=\$$as_ac_Lib
     8804               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     8805$as_echo "$ac_res" >&6; }
     8806if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
     8807  HAVE_BLAS=yes;LIBBLAS="-lf77blas -latlas"
     8808else
     8809  LIBS="$LIBSSAV2"
     8810fi
    127288811
    127298812fi
    127308813
    127318814if test X$HAVE_BLAS != Xyes; then
    12732   LIBSSAV2="$LIBS"
    12733   LIBS="-latlas $LIBS"
    12734   as_ac_Lib=`echo "ac_cv_lib_f77blas_$F77_DGEMM" | $as_tr_sh`
    12735 echo "$as_me:$LINENO: checking for $F77_DGEMM in -lf77blas" >&5
    12736 echo $ECHO_N "checking for $F77_DGEMM in -lf77blas... $ECHO_C" >&6
    12737 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
    12738   echo $ECHO_N "(cached) $ECHO_C" >&6
     8815  echo "WARNING: Could not link to the BLAS library.  It can be obtained at"
     8816  echo "http://www.netlib.org/blas.  Use --with-libdirs and/or --with-libs"
     8817  echo "to specify the name of the library."
     8818  as_fn_error $? "BLAS is required to complete the build" "$LINENO" 5
     8819fi
     8820
     8821LIBS="$LIBSSAV $LIBBLAS $FLIBS"
     8822
     8823LIBLAPACK=""
     8824F77_DGESVD=`$PERL $srcdir/bin/mkf77sym.pl.in -method $F77_SYMBOLS DGESVD`
     8825as_ac_var=`$as_echo "ac_cv_func_$F77_DGESVD" | $as_tr_sh`
     8826ac_fn_cxx_check_func "$LINENO" "$F77_DGESVD" "$as_ac_var"
     8827if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     8828  HAVE_LAPACK=yes
     8829else
     8830
     8831  as_ac_Lib=`$as_echo "ac_cv_lib_lapack_$F77_DGESVD" | $as_tr_sh`
     8832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $F77_DGESVD in -llapack" >&5
     8833$as_echo_n "checking for $F77_DGESVD in -llapack... " >&6; }
     8834if eval \${$as_ac_Lib+:} false; then :
     8835  $as_echo_n "(cached) " >&6
    127398836else
    127408837  ac_check_lib_save_LIBS=$LIBS
    12741 LIBS="-lf77blas  $LIBS"
    12742 cat >conftest.$ac_ext <<_ACEOF
    12743 /* confdefs.h.  */
    12744 _ACEOF
    12745 cat confdefs.h >>conftest.$ac_ext
    12746 cat >>conftest.$ac_ext <<_ACEOF
     8838LIBS="-llapack  $LIBS"
     8839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    127478840/* end confdefs.h.  */
    127488841
    12749 /* Override any gcc2 internal prototype to avoid an error.  */
     8842/* Override any GCC internal prototype to avoid an error.
     8843   Use char because int might match the return type of a GCC
     8844   builtin and then its argument prototype would still apply.  */
    127508845#ifdef __cplusplus
    127518846extern "C"
    127528847#endif
    12753 /* We use char because int might match the return type of a gcc2
    12754    builtin and then its argument prototype would still apply.  */
    12755 char $F77_DGEMM ();
     8848char $F77_DGESVD ();
    127568849int
    127578850main ()
    127588851{
    12759 $F77_DGEMM ();
     8852return $F77_DGESVD ();
    127608853  ;
    127618854  return 0;
    127628855}
    127638856_ACEOF
    12764 rm -f conftest.$ac_objext conftest$ac_exeext
    12765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12766   (eval $ac_link) 2>conftest.er1
    12767   ac_status=$?
    12768   grep -v '^ *+' conftest.er1 >conftest.err
    12769   rm -f conftest.er1
    12770   cat conftest.err >&5
    12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12772   (exit $ac_status); } &&
    12773          { ac_try='test -z "$ac_cxx_werror_flag"
    12774                          || test ! -s conftest.err'
    12775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12776   (eval $ac_try) 2>&5
    12777   ac_status=$?
    12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12779   (exit $ac_status); }; } &&
    12780          { ac_try='test -s conftest$ac_exeext'
    12781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12782   (eval $ac_try) 2>&5
    12783   ac_status=$?
    12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12785   (exit $ac_status); }; }; then
     8857if ac_fn_cxx_try_link "$LINENO"; then :
    127868858  eval "$as_ac_Lib=yes"
    127878859else
    12788   echo "$as_me: failed program was:" >&5
    12789 sed 's/^/| /' conftest.$ac_ext >&5
    12790 
    12791 eval "$as_ac_Lib=no"
    12792 fi
    12793 rm -f conftest.err conftest.$ac_objext \
    12794       conftest$ac_exeext conftest.$ac_ext
     8860  eval "$as_ac_Lib=no"
     8861fi
     8862rm -f core conftest.err conftest.$ac_objext \
     8863    conftest$ac_exeext conftest.$ac_ext
    127958864LIBS=$ac_check_lib_save_LIBS
    127968865fi
    12797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
    12798 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
    12799 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
    12800   HAVE_BLAS=yes;LIBBLAS="-lf77blas -latlas"
    12801 else
    12802   LIBS="$LIBSSAV2"
    12803 fi
    12804 
    12805 fi
    12806 
    12807 if test X$HAVE_BLAS != Xyes; then
    12808   echo "WARNING: Could not link to the BLAS library.  It can be obtained at"
    12809   echo "http://www.netlib.org/blas.  Use --with-libdirs and/or --with-libs"
    12810   echo "to specify the name of the library."
    12811   { { echo "$as_me:$LINENO: error: BLAS is required to complete the build" >&5
    12812 echo "$as_me: error: BLAS is required to complete the build" >&2;}
    12813    { (exit 1); exit 1; }; }
    12814 fi
    12815 
    12816 LIBS="$LIBSSAV $LIBBLAS $FLIBS"
    12817 
    12818 LIBLAPACK=""
    12819 F77_DGESVD=`$PERL $srcdir/bin/mkf77sym.pl.in -method $F77_SYMBOLS DGESVD`
    12820 as_ac_var=`echo "ac_cv_func_$F77_DGESVD" | $as_tr_sh`
    12821 echo "$as_me:$LINENO: checking for $F77_DGESVD" >&5
    12822 echo $ECHO_N "checking for $F77_DGESVD... $ECHO_C" >&6
    12823 if eval "test \"\${$as_ac_var+set}\" = set"; then
    12824   echo $ECHO_N "(cached) $ECHO_C" >&6
    12825 else
    12826   cat >conftest.$ac_ext <<_ACEOF
    12827 /* confdefs.h.  */
    12828 _ACEOF
    12829 cat confdefs.h >>conftest.$ac_ext
    12830 cat >>conftest.$ac_ext <<_ACEOF
    12831 /* end confdefs.h.  */
    12832 /* Define $F77_DGESVD to an innocuous variant, in case <limits.h> declares $F77_DGESVD.
    12833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    12834 #define $F77_DGESVD innocuous_$F77_DGESVD
    12835 
    12836 /* System header to define __stub macros and hopefully few prototypes,
    12837     which can conflict with char $F77_DGESVD (); below.
    12838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    12839     <limits.h> exists even on freestanding compilers.  */
    12840 
    12841 #ifdef __STDC__
    12842 # include <limits.h>
    12843 #else
    12844 # include <assert.h>
    12845 #endif
    12846 
    12847 #undef $F77_DGESVD
    12848 
    12849 /* Override any gcc2 internal prototype to avoid an error.  */
    12850 #ifdef __cplusplus
    12851 extern "C"
    12852 {
    12853 #endif
    12854 /* We use char because int might match the return type of a gcc2
    12855    builtin and then its argument prototype would still apply.  */
    12856 char $F77_DGESVD ();
    12857 /* The GNU C library defines this for functions which it implements
    12858     to always fail with ENOSYS.  Some functions are actually named
    12859     something starting with __ and the normal name is an alias.  */
    12860 #if defined (__stub_$F77_DGESVD) || defined (__stub___$F77_DGESVD)
    12861 choke me
    12862 #else
    12863 char (*f) () = $F77_DGESVD;
    12864 #endif
    12865 #ifdef __cplusplus
    12866 }
    12867 #endif
    12868 
    12869 int
    12870 main ()
    12871 {
    12872 return f != $F77_DGESVD;
    12873   ;
    12874   return 0;
    12875 }
    12876 _ACEOF
    12877 rm -f conftest.$ac_objext conftest$ac_exeext
    12878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12879   (eval $ac_link) 2>conftest.er1
    12880   ac_status=$?
    12881   grep -v '^ *+' conftest.er1 >conftest.err
    12882   rm -f conftest.er1
    12883   cat conftest.err >&5
    12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12885   (exit $ac_status); } &&
    12886          { ac_try='test -z "$ac_cxx_werror_flag"
    12887                          || test ! -s conftest.err'
    12888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12889   (eval $ac_try) 2>&5
    12890   ac_status=$?
    12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12892   (exit $ac_status); }; } &&
    12893          { ac_try='test -s conftest$ac_exeext'
    12894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12895   (eval $ac_try) 2>&5
    12896   ac_status=$?
    12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12898   (exit $ac_status); }; }; then
    12899   eval "$as_ac_var=yes"
    12900 else
    12901   echo "$as_me: failed program was:" >&5
    12902 sed 's/^/| /' conftest.$ac_ext >&5
    12903 
    12904 eval "$as_ac_var=no"
    12905 fi
    12906 rm -f conftest.err conftest.$ac_objext \
    12907       conftest$ac_exeext conftest.$ac_ext
    12908 fi
    12909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
    12910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    12911 if test `eval echo '${'$as_ac_var'}'` = yes; then
    12912   HAVE_LAPACK=yes
    12913 else
    12914 
    12915   as_ac_Lib=`echo "ac_cv_lib_lapack_$F77_DGESVD" | $as_tr_sh`
    12916 echo "$as_me:$LINENO: checking for $F77_DGESVD in -llapack" >&5
    12917 echo $ECHO_N "checking for $F77_DGESVD in -llapack... $ECHO_C" >&6
    12918 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
    12919   echo $ECHO_N "(cached) $ECHO_C" >&6
    12920 else
    12921   ac_check_lib_save_LIBS=$LIBS
    12922 LIBS="-llapack  $LIBS"
    12923 cat >conftest.$ac_ext <<_ACEOF
    12924 /* confdefs.h.  */
    12925 _ACEOF
    12926 cat confdefs.h >>conftest.$ac_ext
    12927 cat >>conftest.$ac_ext <<_ACEOF
    12928 /* end confdefs.h.  */
    12929 
    12930 /* Override any gcc2 internal prototype to avoid an error.  */
    12931 #ifdef __cplusplus
    12932 extern "C"
    12933 #endif
    12934 /* We use char because int might match the return type of a gcc2
    12935    builtin and then its argument prototype would still apply.  */
    12936 char $F77_DGESVD ();
    12937 int
    12938 main ()
    12939 {
    12940 $F77_DGESVD ();
    12941   ;
    12942   return 0;
    12943 }
    12944 _ACEOF
    12945 rm -f conftest.$ac_objext conftest$ac_exeext
    12946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12947   (eval $ac_link) 2>conftest.er1
    12948   ac_status=$?
    12949   grep -v '^ *+' conftest.er1 >conftest.err
    12950   rm -f conftest.er1
    12951   cat conftest.err >&5
    12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12953   (exit $ac_status); } &&
    12954          { ac_try='test -z "$ac_cxx_werror_flag"
    12955                          || test ! -s conftest.err'
    12956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12957   (eval $ac_try) 2>&5
    12958   ac_status=$?
    12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12960   (exit $ac_status); }; } &&
    12961          { ac_try='test -s conftest$ac_exeext'
    12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12963   (eval $ac_try) 2>&5
    12964   ac_status=$?
    12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12966   (exit $ac_status); }; }; then
    12967   eval "$as_ac_Lib=yes"
    12968 else
    12969   echo "$as_me: failed program was:" >&5
    12970 sed 's/^/| /' conftest.$ac_ext >&5
    12971 
    12972 eval "$as_ac_Lib=no"
    12973 fi
    12974 rm -f conftest.err conftest.$ac_objext \
    12975       conftest$ac_exeext conftest.$ac_ext
    12976 LIBS=$ac_check_lib_save_LIBS
    12977 fi
    12978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
    12979 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
    12980 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
     8866eval ac_res=\$$as_ac_Lib
     8867               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     8868$as_echo "$ac_res" >&6; }
     8869if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
    129818870  HAVE_LAPACK=yes;LIBLAPACK="-llapack"
    129828871
     
    129918880  echo "http://www.netlib.org/lapack.  Use --with-libdirs and/or --with-libs"
    129928881  echo "to specify the name of the library."
    12993   { { echo "$as_me:$LINENO: error: LAPACK is required to complete the build" >&5
    12994 echo "$as_me: error: LAPACK is required to complete the build" >&2;}
    12995    { (exit 1); exit 1; }; }
     8882  as_fn_error $? "LAPACK is required to complete the build" "$LINENO" 5
    129968883fi
    129978884
     
    130088895LIBS="$LIBS $FLIBS"
    130098896HAVE_SCALABLE_BLAS=no
    13010 echo "$as_me:$LINENO: checking for sB_init" >&5
    13011 echo $ECHO_N "checking for sB_init... $ECHO_C" >&6
    13012 if test "${ac_cv_func_sB_init+set}" = set; then
    13013   echo $ECHO_N "(cached) $ECHO_C" >&6
    13014 else
    13015   cat >conftest.$ac_ext <<_ACEOF
    13016 /* confdefs.h.  */
    13017 _ACEOF
    13018 cat confdefs.h >>conftest.$ac_ext
    13019 cat >>conftest.$ac_ext <<_ACEOF
     8897ac_fn_c_check_func "$LINENO" "sB_init" "ac_cv_func_sB_init"
     8898if test "x$ac_cv_func_sB_init" = xyes; then :
     8899  HAVE_SCALABLE_BLAS=yes
     8900else
     8901
     8902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sB_init in -lsB_BLAS" >&5
     8903$as_echo_n "checking for sB_init in -lsB_BLAS... " >&6; }
     8904if ${ac_cv_lib_sB_BLAS_sB_init+:} false; then :
     8905  $as_echo_n "(cached) " >&6
     8906else
     8907  ac_check_lib_save_LIBS=$LIBS
     8908LIBS="-lsB_BLAS  $LIBS"
     8909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    130208910/* end confdefs.h.  */
    13021 /* Define sB_init to an innocuous variant, in case <limits.h> declares sB_init.
    13022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    13023 #define sB_init innocuous_sB_init
    13024 
    13025 /* System header to define __stub macros and hopefully few prototypes,
    13026     which can conflict with char sB_init (); below.
    13027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    13028     <limits.h> exists even on freestanding compilers.  */
    13029 
    13030 #ifdef __STDC__
    13031 # include <limits.h>
    13032 #else
    13033 # include <assert.h>
    13034 #endif
    13035 
    13036 #undef sB_init
    13037 
    13038 /* Override any gcc2 internal prototype to avoid an error.  */
     8911
     8912/* Override any GCC internal prototype to avoid an error.
     8913   Use char because int might match the return type of a GCC
     8914   builtin and then its argument prototype would still apply.  */
    130398915#ifdef __cplusplus
    130408916extern "C"
    13041 {
    130428917#endif
    13043 /* We use char because int might match the return type of a gcc2
    13044    builtin and then its argument prototype would still apply.  */
    130458918char sB_init ();
    13046 /* The GNU C library defines this for functions which it implements
    13047     to always fail with ENOSYS.  Some functions are actually named
    13048     something starting with __ and the normal name is an alias.  */
    13049 #if defined (__stub_sB_init) || defined (__stub___sB_init)
    13050 choke me
    13051 #else
    13052 char (*f) () = sB_init;
    13053 #endif
    13054 #ifdef __cplusplus
    13055 }
    13056 #endif
    13057 
    130588919int
    130598920main ()
    130608921{
    13061 return f != sB_init;
     8922return sB_init ();
    130628923  ;
    130638924  return 0;
    130648925}
    130658926_ACEOF
    13066 rm -f conftest.$ac_objext conftest$ac_exeext
    13067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    13068   (eval $ac_link) 2>conftest.er1
    13069   ac_status=$?
    13070   grep -v '^ *+' conftest.er1 >conftest.err
    13071   rm -f conftest.er1
    13072   cat conftest.err >&5
    13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13074   (exit $ac_status); } &&
    13075          { ac_try='test -z "$ac_c_werror_flag"
    13076                          || test ! -s conftest.err'
    13077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13078   (eval $ac_try) 2>&5
    13079   ac_status=$?
    13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13081   (exit $ac_status); }; } &&
    13082          { ac_try='test -s conftest$ac_exeext'
    13083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13084   (eval $ac_try) 2>&5
    13085   ac_status=$?
    13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13087   (exit $ac_status); }; }; then
    13088   ac_cv_func_sB_init=yes
    13089 else
    13090   echo "$as_me: failed program was:" >&5
    13091 sed 's/^/| /' conftest.$ac_ext >&5
    13092 
    13093 ac_cv_func_sB_init=no
    13094 fi
    13095 rm -f conftest.err conftest.$ac_objext \
    13096       conftest$ac_exeext conftest.$ac_ext
    13097 fi
    13098 echo "$as_me:$LINENO: result: $ac_cv_func_sB_init" >&5
    13099 echo "${ECHO_T}$ac_cv_func_sB_init" >&6
    13100 if test $ac_cv_func_sB_init = yes; then
    13101   HAVE_SCALABLE_BLAS=yes
    13102 else
    13103 
    13104   echo "$as_me:$LINENO: checking for sB_init in -lsB_BLAS" >&5
    13105 echo $ECHO_N "checking for sB_init in -lsB_BLAS... $ECHO_C" >&6
    13106 if test "${ac_cv_lib_sB_BLAS_sB_init+set}" = set; then
    13107   echo $ECHO_N "(cached) $ECHO_C" >&6
    13108 else
    13109   ac_check_lib_save_LIBS=$LIBS
    13110 LIBS="-lsB_BLAS  $LIBS"
    13111 cat >conftest.$ac_ext <<_ACEOF
    13112 /* confdefs.h.  */
    13113 _ACEOF
    13114 cat confdefs.h >>conftest.$ac_ext
    13115 cat >>conftest.$ac_ext <<_ACEOF
    13116 /* end confdefs.h.  */
    13117 
    13118 /* Override any gcc2 internal prototype to avoid an error.  */
    13119 #ifdef __cplusplus
    13120 extern "C"
    13121 #endif
    13122 /* We use char because int might match the return type of a gcc2
    13123    builtin and then its argument prototype would still apply.  */
    13124 char sB_init ();
    13125 int
    13126 main ()
    13127 {
    13128 sB_init ();
    13129   ;
    13130   return 0;
    13131 }
    13132 _ACEOF
    13133 rm -f conftest.$ac_objext conftest$ac_exeext
    13134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    13135   (eval $ac_link) 2>conftest.er1
    13136   ac_status=$?
    13137   grep -v '^ *+' conftest.er1 >conftest.err
    13138   rm -f conftest.er1
    13139   cat conftest.err >&5
    13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13141   (exit $ac_status); } &&
    13142          { ac_try='test -z "$ac_c_werror_flag"
    13143                          || test ! -s conftest.err'
    13144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13145   (eval $ac_try) 2>&5
    13146   ac_status=$?
    13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13148   (exit $ac_status); }; } &&
    13149          { ac_try='test -s conftest$ac_exeext'
    13150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13151   (eval $ac_try) 2>&5
    13152   ac_status=$?
    13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13154   (exit $ac_status); }; }; then
     8927if ac_fn_c_try_link "$LINENO"; then :
    131558928  ac_cv_lib_sB_BLAS_sB_init=yes
    131568929else
    13157   echo "$as_me: failed program was:" >&5
    13158 sed 's/^/| /' conftest.$ac_ext >&5
    13159 
    13160 ac_cv_lib_sB_BLAS_sB_init=no
    13161 fi
    13162 rm -f conftest.err conftest.$ac_objext \
    13163       conftest$ac_exeext conftest.$ac_ext
     8930  ac_cv_lib_sB_BLAS_sB_init=no
     8931fi
     8932rm -f core conftest.err conftest.$ac_objext \
     8933    conftest$ac_exeext conftest.$ac_ext
    131648934LIBS=$ac_check_lib_save_LIBS
    131658935fi
    13166 echo "$as_me:$LINENO: result: $ac_cv_lib_sB_BLAS_sB_init" >&5
    13167 echo "${ECHO_T}$ac_cv_lib_sB_BLAS_sB_init" >&6
    13168 if test $ac_cv_lib_sB_BLAS_sB_init = yes; then
     8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sB_BLAS_sB_init" >&5
     8937$as_echo "$ac_cv_lib_sB_BLAS_sB_init" >&6; }
     8938if test "x$ac_cv_lib_sB_BLAS_sB_init" = xyes; then :
    131698939
    131708940    HAVE_SCALABLE_BLAS=yes
     
    131788948LIBS="$LIBSSAV"
    131798949if test $HAVE_SCALABLE_BLAS = yes; then
    13180   cat >>confdefs.h <<\_ACEOF
    13181 #define HAVE_SCALABLE_BLAS 1
    13182 _ACEOF
    13183 
    13184 fi
    13185 
    13186 
    13187 
    13188 
    13189 ac_ext=cc
     8950
     8951$as_echo "#define HAVE_SCALABLE_BLAS 1" >>confdefs.h
     8952
     8953fi
     8954
     8955
     8956
     8957ac_ext=cpp
    131908958ac_cpp='$CXXCPP $CPPFLAGS'
    131918959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    131958963# Extract the first word of "niama-config", so it can be a program name with args.
    131968964set dummy niama-config; ac_word=$2
    13197 echo "$as_me:$LINENO: checking for $ac_word" >&5
    13198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    13199 if test "${ac_cv_prog_NIAMACFG+set}" = set; then
    13200   echo $ECHO_N "(cached) $ECHO_C" >&6
     8965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     8966$as_echo_n "checking for $ac_word... " >&6; }
     8967if ${ac_cv_prog_NIAMACFG+:} false; then :
     8968  $as_echo_n "(cached) " >&6
    132018969else
    132028970  if test -n "$NIAMACFG"; then
     
    132088976  IFS=$as_save_IFS
    132098977  test -z "$as_dir" && as_dir=.
    13210   for ac_exec_ext in '' $ac_executable_extensions; do
    13211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     8978    for ac_exec_ext in '' $ac_executable_extensions; do
     8979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    132128980    ac_cv_prog_NIAMACFG="niama-config"
    13213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     8981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    132148982    break 2
    132158983  fi
    132168984done
    13217 done
     8985  done
     8986IFS=$as_save_IFS
    132188987
    132198988fi
     
    132218990NIAMACFG=$ac_cv_prog_NIAMACFG
    132228991if test -n "$NIAMACFG"; then
    13223   echo "$as_me:$LINENO: result: $NIAMACFG" >&5
    13224 echo "${ECHO_T}$NIAMACFG" >&6
    13225 else
    13226   echo "$as_me:$LINENO: result: no" >&5
    13227 echo "${ECHO_T}no" >&6
    13228 fi
     8992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NIAMACFG" >&5
     8993$as_echo "$NIAMACFG" >&6; }
     8994else
     8995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     8996$as_echo "no" >&6; }
     8997fi
     8998
    132298999
    132309000if test X$NIAMACFG != X; then
     
    132349004  CPPFLAGS="$CPPFLAGS `niama-config --cppflags`"
    132359005  LIBS="$NIAMALIBS $LIBS"
    13236 cat >conftest.$ac_ext <<_ACEOF
    13237 /* confdefs.h.  */
    13238 _ACEOF
    13239 cat confdefs.h >>conftest.$ac_ext
    13240 cat >>conftest.$ac_ext <<_ACEOF
     9006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    132419007/* end confdefs.h.  */
    132429008
     
    132539019}
    132549020_ACEOF
    13255 rm -f conftest.$ac_objext conftest$ac_exeext
    13256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    13257   (eval $ac_link) 2>conftest.er1
    13258   ac_status=$?
    13259   grep -v '^ *+' conftest.er1 >conftest.err
    13260   rm -f conftest.er1
    13261   cat conftest.err >&5
    13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13263   (exit $ac_status); } &&
    13264          { ac_try='test -z "$ac_cxx_werror_flag"
    13265                          || test ! -s conftest.err'
    13266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13267   (eval $ac_try) 2>&5
    13268   ac_status=$?
    13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13270   (exit $ac_status); }; } &&
    13271          { ac_try='test -s conftest$ac_exeext'
    13272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13273   (eval $ac_try) 2>&5
    13274   ac_status=$?
    13275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13276   (exit $ac_status); }; }; then
    13277 
    13278   cat >>confdefs.h <<\_ACEOF
    13279 #define HAVE_NIAMA 1
    13280 _ACEOF
    13281 
    13282 
    13283 else
    13284   echo "$as_me: failed program was:" >&5
    13285 sed 's/^/| /' conftest.$ac_ext >&5
    13286 
     9021if ac_fn_cxx_try_link "$LINENO"; then :
     9022
     9023
     9024$as_echo "#define HAVE_NIAMA 1" >>confdefs.h
     9025
     9026
     9027else
    132879028
    132889029  LIBS="$LIBSSAV"
     
    132919032
    132929033fi
    13293 rm -f conftest.err conftest.$ac_objext \
    13294       conftest$ac_exeext conftest.$ac_ext
     9034rm -f core conftest.err conftest.$ac_objext \
     9035    conftest$ac_exeext conftest.$ac_ext
    132959036fi
    132969037ac_ext=c
     
    133039044
    133049045
    13305 
    13306 ac_ext=cc
     9046ac_ext=cpp
    133079047ac_cpp='$CXXCPP $CPPFLAGS'
    133089048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    133109050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    133119051
    13312 
    133139052for ac_header in libint/libint.h
    13314 do
    13315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    13316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    13317   echo "$as_me:$LINENO: checking for $ac_header" >&5
    13318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    13319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    13320   echo $ECHO_N "(cached) $ECHO_C" >&6
    13321 fi
    13322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    13323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    13324 else
    13325   # Is the header compilable?
    13326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    13327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    13328 cat >conftest.$ac_ext <<_ACEOF
    13329 /* confdefs.h.  */
     9053do :
     9054  ac_fn_cxx_check_header_mongrel "$LINENO" "libint/libint.h" "ac_cv_header_libint_libint_h" "$ac_includes_default"
     9055if test "x$ac_cv_header_libint_libint_h" = xyes; then :
     9056  cat >>confdefs.h <<_ACEOF
     9057#define HAVE_LIBINT_LIBINT_H 1
    133309058_ACEOF
    13331 cat confdefs.h >>conftest.$ac_ext
    13332 cat >>conftest.$ac_ext <<_ACEOF
    13333 /* end confdefs.h.  */
    13334 $ac_includes_default
    13335 #include <$ac_header>
    13336 _ACEOF
    13337 rm -f conftest.$ac_objext
    13338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    13339   (eval $ac_compile) 2>conftest.er1
    13340   ac_status=$?
    13341   grep -v '^ *+' conftest.er1 >conftest.err
    13342   rm -f conftest.er1
    13343   cat conftest.err >&5
    13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13345   (exit $ac_status); } &&
    13346          { ac_try='test -z "$ac_cxx_werror_flag"
    13347                          || test ! -s conftest.err'
    13348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13349   (eval $ac_try) 2>&5
    13350   ac_status=$?
    13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13352   (exit $ac_status); }; } &&
    13353          { ac_try='test -s conftest.$ac_objext'
    13354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13355   (eval $ac_try) 2>&5
    13356   ac_status=$?
    13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13358   (exit $ac_status); }; }; then
    13359   ac_header_compiler=yes
    13360 else
    13361   echo "$as_me: failed program was:" >&5
    13362 sed 's/^/| /' conftest.$ac_ext >&5
    13363 
    13364 ac_header_compiler=no
    13365 fi
    13366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    13367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    13368 echo "${ECHO_T}$ac_header_compiler" >&6
    13369 
    13370 # Is the header present?
    13371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    13372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    13373 cat >conftest.$ac_ext <<_ACEOF
    13374 /* confdefs.h.  */
    13375 _ACEOF
    13376 cat confdefs.h >>conftest.$ac_ext
    13377 cat >>conftest.$ac_ext <<_ACEOF
    13378 /* end confdefs.h.  */
    13379 #include <$ac_header>
    13380 _ACEOF
    13381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    13382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    13383   ac_status=$?
    13384   grep -v '^ *+' conftest.er1 >conftest.err
    13385   rm -f conftest.er1
    13386   cat conftest.err >&5
    13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13388   (exit $ac_status); } >/dev/null; then
    13389   if test -s conftest.err; then
    13390     ac_cpp_err=$ac_cxx_preproc_warn_flag
    13391     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    13392   else
    13393     ac_cpp_err=
    13394   fi
    13395 else
    13396   ac_cpp_err=yes
    13397 fi
    13398 if test -z "$ac_cpp_err"; then
    13399   ac_header_preproc=yes
    13400 else
    13401   echo "$as_me: failed program was:" >&5
    13402 sed 's/^/| /' conftest.$ac_ext >&5
    13403 
    13404   ac_header_preproc=no
    13405 fi
    13406 rm -f conftest.err conftest.$ac_ext
    13407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    13408 echo "${ECHO_T}$ac_header_preproc" >&6
    13409 
    13410 # So?  What about this header?
    13411 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    13412   yes:no: )
    13413     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    13414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    13415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    13416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    13417     ac_header_preproc=yes
    13418     ;;
    13419   no:yes:* )
    13420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    13421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    13422     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    13423 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    13424     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    13425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    13426     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    13427 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    13428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    13429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    13430     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    13431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    13432     (
    13433       cat <<\_ASBOX
    13434 ## ------------------------------------------ ##
    13435 ## Report this to the AC_PACKAGE_NAME lists.  ##
    13436 ## ------------------------------------------ ##
    13437 _ASBOX
    13438     ) |
    13439       sed "s/^/$as_me: WARNING:     /" >&2
    13440     ;;
    13441 esac
    13442 echo "$as_me:$LINENO: checking for $ac_header" >&5
    13443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    13444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    13445   echo $ECHO_N "(cached) $ECHO_C" >&6
    13446 else
    13447   eval "$as_ac_Header=\$ac_header_preproc"
    13448 fi
    13449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    13450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    13451 
    13452 fi
    13453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    13454   cat >>confdefs.h <<_ACEOF
    13455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    13456 _ACEOF
    13457  echo "$as_me:$LINENO: checking for init_libint_base in -lint" >&5
    13458 echo $ECHO_N "checking for init_libint_base in -lint... $ECHO_C" >&6
    13459 if test "${ac_cv_lib_int_init_libint_base+set}" = set; then
    13460   echo $ECHO_N "(cached) $ECHO_C" >&6
     9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_libint_base in -lint" >&5
     9060$as_echo_n "checking for init_libint_base in -lint... " >&6; }
     9061if ${ac_cv_lib_int_init_libint_base+:} false; then :
     9062  $as_echo_n "(cached) " >&6
    134619063else
    134629064  ac_check_lib_save_LIBS=$LIBS
    134639065LIBS="-lint  $LIBS"
    13464 cat >conftest.$ac_ext <<_ACEOF
    13465 /* confdefs.h.  */
    13466 _ACEOF
    13467 cat confdefs.h >>conftest.$ac_ext
    13468 cat >>conftest.$ac_ext <<_ACEOF
     9066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    134699067/* end confdefs.h.  */
    134709068
    13471 /* Override any gcc2 internal prototype to avoid an error.  */
     9069/* Override any GCC internal prototype to avoid an error.
     9070   Use char because int might match the return type of a GCC
     9071   builtin and then its argument prototype would still apply.  */
    134729072#ifdef __cplusplus
    134739073extern "C"
    134749074#endif
    13475 /* We use char because int might match the return type of a gcc2
    13476    builtin and then its argument prototype would still apply.  */
    134779075char init_libint_base ();
    134789076int
    134799077main ()
    134809078{
    13481 init_libint_base ();
     9079return init_libint_base ();
    134829080  ;
    134839081  return 0;
    134849082}
    134859083_ACEOF
    13486 rm -f conftest.$ac_objext conftest$ac_exeext
    13487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    13488   (eval $ac_link) 2>conftest.er1
    13489   ac_status=$?
    13490   grep -v '^ *+' conftest.er1 >conftest.err
    13491   rm -f conftest.er1
    13492   cat conftest.err >&5
    13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13494   (exit $ac_status); } &&
    13495          { ac_try='test -z "$ac_cxx_werror_flag"
    13496                          || test ! -s conftest.err'
    13497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13498   (eval $ac_try) 2>&5
    13499   ac_status=$?
    13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13501   (exit $ac_status); }; } &&
    13502          { ac_try='test -s conftest$ac_exeext'
    13503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13504   (eval $ac_try) 2>&5
    13505   ac_status=$?
    13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13507   (exit $ac_status); }; }; then
     9084if ac_fn_cxx_try_link "$LINENO"; then :
    135089085  ac_cv_lib_int_init_libint_base=yes
    135099086else
    13510   echo "$as_me: failed program was:" >&5
    13511 sed 's/^/| /' conftest.$ac_ext >&5
    13512 
    13513 ac_cv_lib_int_init_libint_base=no
    13514 fi
    13515 rm -f conftest.err conftest.$ac_objext \
    13516       conftest$ac_exeext conftest.$ac_ext
     9087  ac_cv_lib_int_init_libint_base=no
     9088fi
     9089rm -f core conftest.err conftest.$ac_objext \
     9090    conftest$ac_exeext conftest.$ac_ext
    135179091LIBS=$ac_check_lib_save_LIBS
    135189092fi
    13519 echo "$as_me:$LINENO: result: $ac_cv_lib_int_init_libint_base" >&5
    13520 echo "${ECHO_T}$ac_cv_lib_int_init_libint_base" >&6
    13521 if test $ac_cv_lib_int_init_libint_base = yes; then
     9093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_int_init_libint_base" >&5
     9094$as_echo "$ac_cv_lib_int_init_libint_base" >&6; }
     9095if test "x$ac_cv_lib_int_init_libint_base" = xyes; then :
    135229096  HAVE_LIBINT=yes
    13523     cat >>confdefs.h <<\_ACEOF
    13524 #define HAVE_LIBINT 1
    13525 _ACEOF
     9097
     9098$as_echo "#define HAVE_LIBINT 1" >>confdefs.h
    135269099
    135279100
     
    135449117
    135459118
    13546 
    13547 ac_ext=cc
     9119ac_ext=cpp
    135489120ac_cpp='$CXXCPP $CPPFLAGS'
    135499121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    135519123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    135529124
    13553 
    135549125for ac_header in libr12/libr12.h
    13555 do
    13556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    13557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    13558   echo "$as_me:$LINENO: checking for $ac_header" >&5
    13559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    13560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    13561   echo $ECHO_N "(cached) $ECHO_C" >&6
    13562 fi
    13563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    13564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    13565 else
    13566   # Is the header compilable?
    13567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    13568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    13569 cat >conftest.$ac_ext <<_ACEOF
    13570 /* confdefs.h.  */
     9126do :
     9127  ac_fn_cxx_check_header_mongrel "$LINENO" "libr12/libr12.h" "ac_cv_header_libr12_libr12_h" "$ac_includes_default"
     9128if test "x$ac_cv_header_libr12_libr12_h" = xyes; then :
     9129  cat >>confdefs.h <<_ACEOF
     9130#define HAVE_LIBR12_LIBR12_H 1
    135719131_ACEOF
    13572 cat confdefs.h >>conftest.$ac_ext
    13573 cat >>conftest.$ac_ext <<_ACEOF
    13574 /* end confdefs.h.  */
    13575 $ac_includes_default
    13576 #include <$ac_header>
    13577 _ACEOF
    13578 rm -f conftest.$ac_objext
    13579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    13580   (eval $ac_compile) 2>conftest.er1
    13581   ac_status=$?
    13582   grep -v '^ *+' conftest.er1 >conftest.err
    13583   rm -f conftest.er1
    13584   cat conftest.err >&5
    13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13586   (exit $ac_status); } &&
    13587          { ac_try='test -z "$ac_cxx_werror_flag"
    13588                          || test ! -s conftest.err'
    13589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13590   (eval $ac_try) 2>&5
    13591   ac_status=$?
    13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13593   (exit $ac_status); }; } &&
    13594          { ac_try='test -s conftest.$ac_objext'
    13595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13596   (eval $ac_try) 2>&5
    13597   ac_status=$?
    13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13599   (exit $ac_status); }; }; then
    13600   ac_header_compiler=yes
    13601 else
    13602   echo "$as_me: failed program was:" >&5
    13603 sed 's/^/| /' conftest.$ac_ext >&5
    13604 
    13605 ac_header_compiler=no
    13606 fi
    13607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    13608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    13609 echo "${ECHO_T}$ac_header_compiler" >&6
    13610 
    13611 # Is the header present?
    13612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    13613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    13614 cat >conftest.$ac_ext <<_ACEOF
    13615 /* confdefs.h.  */
    13616 _ACEOF
    13617 cat confdefs.h >>conftest.$ac_ext
    13618 cat >>conftest.$ac_ext <<_ACEOF
    13619 /* end confdefs.h.  */
    13620 #include <$ac_header>
    13621 _ACEOF
    13622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    13623   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    13624   ac_status=$?
    13625   grep -v '^ *+' conftest.er1 >conftest.err
    13626   rm -f conftest.er1
    13627   cat conftest.err >&5
    13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13629   (exit $ac_status); } >/dev/null; then
    13630   if test -s conftest.err; then
    13631     ac_cpp_err=$ac_cxx_preproc_warn_flag
    13632     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    13633   else
    13634     ac_cpp_err=
    13635   fi
    13636 else
    13637   ac_cpp_err=yes
    13638 fi
    13639 if test -z "$ac_cpp_err"; then
    13640   ac_header_preproc=yes
    13641 else
    13642   echo "$as_me: failed program was:" >&5
    13643 sed 's/^/| /' conftest.$ac_ext >&5
    13644 
    13645   ac_header_preproc=no
    13646 fi
    13647 rm -f conftest.err conftest.$ac_ext
    13648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    13649 echo "${ECHO_T}$ac_header_preproc" >&6
    13650 
    13651 # So?  What about this header?
    13652 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    13653   yes:no: )
    13654     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    13655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    13656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    13657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    13658     ac_header_preproc=yes
    13659     ;;
    13660   no:yes:* )
    13661     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    13662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    13663     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    13664 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    13665     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    13666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    13667     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    13668 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    13669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    13670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    13671     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    13672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    13673     (
    13674       cat <<\_ASBOX
    13675 ## ------------------------------------------ ##
    13676 ## Report this to the AC_PACKAGE_NAME lists.  ##
    13677 ## ------------------------------------------ ##
    13678 _ASBOX
    13679     ) |
    13680       sed "s/^/$as_me: WARNING:     /" >&2
    13681     ;;
    13682 esac
    13683 echo "$as_me:$LINENO: checking for $ac_header" >&5
    13684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    13685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    13686   echo $ECHO_N "(cached) $ECHO_C" >&6
    13687 else
    13688   eval "$as_ac_Header=\$ac_header_preproc"
    13689 fi
    13690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    13691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    13692 
    13693 fi
    13694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    13695   cat >>confdefs.h <<_ACEOF
    13696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    13697 _ACEOF
    13698  echo "$as_me:$LINENO: checking for init_libr12_base in -lr12" >&5
    13699 echo $ECHO_N "checking for init_libr12_base in -lr12... $ECHO_C" >&6
    13700 if test "${ac_cv_lib_r12_init_libr12_base+set}" = set; then
    13701   echo $ECHO_N "(cached) $ECHO_C" >&6
     9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_libr12_base in -lr12" >&5
     9133$as_echo_n "checking for init_libr12_base in -lr12... " >&6; }
     9134if ${ac_cv_lib_r12_init_libr12_base+:} false; then :
     9135  $as_echo_n "(cached) " >&6
    137029136else
    137039137  ac_check_lib_save_LIBS=$LIBS
    137049138LIBS="-lr12  $LIBS"
    13705 cat >conftest.$ac_ext <<_ACEOF
    13706 /* confdefs.h.  */
    13707 _ACEOF
    13708 cat confdefs.h >>conftest.$ac_ext
    13709 cat >>conftest.$ac_ext <<_ACEOF
     9139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    137109140/* end confdefs.h.  */
    137119141
    13712 /* Override any gcc2 internal prototype to avoid an error.  */
     9142/* Override any GCC internal prototype to avoid an error.
     9143   Use char because int might match the return type of a GCC
     9144   builtin and then its argument prototype would still apply.  */
    137139145#ifdef __cplusplus
    137149146extern "C"
    137159147#endif
    13716 /* We use char because int might match the return type of a gcc2
    13717    builtin and then its argument prototype would still apply.  */
    137189148char init_libr12_base ();
    137199149int
    137209150main ()
    137219151{
    13722 init_libr12_base ();
     9152return init_libr12_base ();
    137239153  ;
    137249154  return 0;
    137259155}
    137269156_ACEOF
    13727 rm -f conftest.$ac_objext conftest$ac_exeext
    13728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    13729   (eval $ac_link) 2>conftest.er1
    13730   ac_status=$?
    13731   grep -v '^ *+' conftest.er1 >conftest.err
    13732   rm -f conftest.er1
    13733   cat conftest.err >&5
    13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13735   (exit $ac_status); } &&
    13736          { ac_try='test -z "$ac_cxx_werror_flag"
    13737                          || test ! -s conftest.err'
    13738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13739   (eval $ac_try) 2>&5
    13740   ac_status=$?
    13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13742   (exit $ac_status); }; } &&
    13743          { ac_try='test -s conftest$ac_exeext'
    13744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13745   (eval $ac_try) 2>&5
    13746   ac_status=$?
    13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13748   (exit $ac_status); }; }; then
     9157if ac_fn_cxx_try_link "$LINENO"; then :
    137499158  ac_cv_lib_r12_init_libr12_base=yes
    137509159else
    13751   echo "$as_me: failed program was:" >&5
    13752 sed 's/^/| /' conftest.$ac_ext >&5
    13753 
    13754 ac_cv_lib_r12_init_libr12_base=no
    13755 fi
    13756 rm -f conftest.err conftest.$ac_objext \
    13757       conftest$ac_exeext conftest.$ac_ext
     9160  ac_cv_lib_r12_init_libr12_base=no
     9161fi
     9162rm -f core conftest.err conftest.$ac_objext \
     9163    conftest$ac_exeext conftest.$ac_ext
    137589164LIBS=$ac_check_lib_save_LIBS
    137599165fi
    13760 echo "$as_me:$LINENO: result: $ac_cv_lib_r12_init_libr12_base" >&5
    13761 echo "${ECHO_T}$ac_cv_lib_r12_init_libr12_base" >&6
    13762 if test $ac_cv_lib_r12_init_libr12_base = yes; then
     9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_r12_init_libr12_base" >&5
     9167$as_echo "$ac_cv_lib_r12_init_libr12_base" >&6; }
     9168if test "x$ac_cv_lib_r12_init_libr12_base" = xyes; then :
    137639169  HAVE_LIBR12=yes
    13764     cat >>confdefs.h <<\_ACEOF
    13765 #define HAVE_LIBR12 1
    13766 _ACEOF
     9170
     9171$as_echo "#define HAVE_LIBR12 1" >>confdefs.h
    137679172
    137689173
     
    137859190
    137869191
    13787 
    13788 ac_ext=cc
     9192ac_ext=cpp
    137899193ac_cpp='$CXXCPP $CPPFLAGS'
    137909194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    137929196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    137939197
    13794 
    137959198for ac_header in libderiv/libderiv.h
    13796 do
    13797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    13798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    13799   echo "$as_me:$LINENO: checking for $ac_header" >&5
    13800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    13801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    13802   echo $ECHO_N "(cached) $ECHO_C" >&6
    13803 fi
    13804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    13805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    13806 else
    13807   # Is the header compilable?
    13808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    13809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    13810 cat >conftest.$ac_ext <<_ACEOF
    13811 /* confdefs.h.  */
     9199do :
     9200  ac_fn_cxx_check_header_mongrel "$LINENO" "libderiv/libderiv.h" "ac_cv_header_libderiv_libderiv_h" "$ac_includes_default"
     9201if test "x$ac_cv_header_libderiv_libderiv_h" = xyes; then :
     9202  cat >>confdefs.h <<_ACEOF
     9203#define HAVE_LIBDERIV_LIBDERIV_H 1
    138129204_ACEOF
    13813 cat confdefs.h >>conftest.$ac_ext
    13814 cat >>conftest.$ac_ext <<_ACEOF
    13815 /* end confdefs.h.  */
    13816 $ac_includes_default
    13817 #include <$ac_header>
    13818 _ACEOF
    13819 rm -f conftest.$ac_objext
    13820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    13821   (eval $ac_compile) 2>conftest.er1
    13822   ac_status=$?
    13823   grep -v '^ *+' conftest.er1 >conftest.err
    13824   rm -f conftest.er1
    13825   cat conftest.err >&5
    13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13827   (exit $ac_status); } &&
    13828          { ac_try='test -z "$ac_cxx_werror_flag"
    13829                          || test ! -s conftest.err'
    13830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13831   (eval $ac_try) 2>&5
    13832   ac_status=$?
    13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13834   (exit $ac_status); }; } &&
    13835          { ac_try='test -s conftest.$ac_objext'
    13836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13837   (eval $ac_try) 2>&5
    13838   ac_status=$?
    13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13840   (exit $ac_status); }; }; then
    13841   ac_header_compiler=yes
    13842 else
    13843   echo "$as_me: failed program was:" >&5
    13844 sed 's/^/| /' conftest.$ac_ext >&5
    13845 
    13846 ac_header_compiler=no
    13847 fi
    13848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    13849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    13850 echo "${ECHO_T}$ac_header_compiler" >&6
    13851 
    13852 # Is the header present?
    13853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    13854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    13855 cat >conftest.$ac_ext <<_ACEOF
    13856 /* confdefs.h.  */
    13857 _ACEOF
    13858 cat confdefs.h >>conftest.$ac_ext
    13859 cat >>conftest.$ac_ext <<_ACEOF
    13860 /* end confdefs.h.  */
    13861 #include <$ac_header>
    13862 _ACEOF
    13863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    13864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    13865   ac_status=$?
    13866   grep -v '^ *+' conftest.er1 >conftest.err
    13867   rm -f conftest.er1
    13868   cat conftest.err >&5
    13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13870   (exit $ac_status); } >/dev/null; then
    13871   if test -s conftest.err; then
    13872     ac_cpp_err=$ac_cxx_preproc_warn_flag
    13873     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    13874   else
    13875     ac_cpp_err=
    13876   fi
    13877 else
    13878   ac_cpp_err=yes
    13879 fi
    13880 if test -z "$ac_cpp_err"; then
    13881   ac_header_preproc=yes
    13882 else
    13883   echo "$as_me: failed program was:" >&5
    13884 sed 's/^/| /' conftest.$ac_ext >&5
    13885 
    13886   ac_header_preproc=no
    13887 fi
    13888 rm -f conftest.err conftest.$ac_ext
    13889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    13890 echo "${ECHO_T}$ac_header_preproc" >&6
    13891 
    13892 # So?  What about this header?
    13893 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    13894   yes:no: )
    13895     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    13896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    13897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    13898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    13899     ac_header_preproc=yes
    13900     ;;
    13901   no:yes:* )
    13902     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    13903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    13904     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    13905 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    13906     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    13907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    13908     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    13909 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    13910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    13911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    13912     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    13913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    13914     (
    13915       cat <<\_ASBOX
    13916 ## ------------------------------------------ ##
    13917 ## Report this to the AC_PACKAGE_NAME lists.  ##
    13918 ## ------------------------------------------ ##
    13919 _ASBOX
    13920     ) |
    13921       sed "s/^/$as_me: WARNING:     /" >&2
    13922     ;;
    13923 esac
    13924 echo "$as_me:$LINENO: checking for $ac_header" >&5
    13925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    13926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    13927   echo $ECHO_N "(cached) $ECHO_C" >&6
    13928 else
    13929   eval "$as_ac_Header=\$ac_header_preproc"
    13930 fi
    13931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    13932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    13933 
    13934 fi
    13935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    13936   cat >>confdefs.h <<_ACEOF
    13937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    13938 _ACEOF
    13939  echo "$as_me:$LINENO: checking for init_libderiv_base in -lderiv" >&5
    13940 echo $ECHO_N "checking for init_libderiv_base in -lderiv... $ECHO_C" >&6
    13941 if test "${ac_cv_lib_deriv_init_libderiv_base+set}" = set; then
    13942   echo $ECHO_N "(cached) $ECHO_C" >&6
     9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_libderiv_base in -lderiv" >&5
     9206$as_echo_n "checking for init_libderiv_base in -lderiv... " >&6; }
     9207if ${ac_cv_lib_deriv_init_libderiv_base+:} false; then :
     9208  $as_echo_n "(cached) " >&6
    139439209else
    139449210  ac_check_lib_save_LIBS=$LIBS
    139459211LIBS="-lderiv  $LIBS"
    13946 cat >conftest.$ac_ext <<_ACEOF
    13947 /* confdefs.h.  */
    13948 _ACEOF
    13949 cat confdefs.h >>conftest.$ac_ext
    13950 cat >>conftest.$ac_ext <<_ACEOF
     9212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    139519213/* end confdefs.h.  */
    139529214
    13953 /* Override any gcc2 internal prototype to avoid an error.  */
     9215/* Override any GCC internal prototype to avoid an error.
     9216   Use char because int might match the return type of a GCC
     9217   builtin and then its argument prototype would still apply.  */
    139549218#ifdef __cplusplus
    139559219extern "C"
    139569220#endif
    13957 /* We use char because int might match the return type of a gcc2
    13958    builtin and then its argument prototype would still apply.  */
    139599221char init_libderiv_base ();
    139609222int
    139619223main ()
    139629224{
    13963 init_libderiv_base ();
     9225return init_libderiv_base ();
    139649226  ;
    139659227  return 0;
    139669228}
    139679229_ACEOF
    13968 rm -f conftest.$ac_objext conftest$ac_exeext
    13969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    13970   (eval $ac_link) 2>conftest.er1
    13971   ac_status=$?
    13972   grep -v '^ *+' conftest.er1 >conftest.err
    13973   rm -f conftest.er1
    13974   cat conftest.err >&5
    13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13976   (exit $ac_status); } &&
    13977          { ac_try='test -z "$ac_cxx_werror_flag"
    13978                          || test ! -s conftest.err'
    13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13980   (eval $ac_try) 2>&5
    13981   ac_status=$?
    13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13983   (exit $ac_status); }; } &&
    13984          { ac_try='test -s conftest$ac_exeext'
    13985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13986   (eval $ac_try) 2>&5
    13987   ac_status=$?
    13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13989   (exit $ac_status); }; }; then
     9230if ac_fn_cxx_try_link "$LINENO"; then :
    139909231  ac_cv_lib_deriv_init_libderiv_base=yes
    139919232else
    13992   echo "$as_me: failed program was:" >&5
    13993 sed 's/^/| /' conftest.$ac_ext >&5
    13994 
    13995 ac_cv_lib_deriv_init_libderiv_base=no
    13996 fi
    13997 rm -f conftest.err conftest.$ac_objext \
    13998       conftest$ac_exeext conftest.$ac_ext
     9233  ac_cv_lib_deriv_init_libderiv_base=no
     9234fi
     9235rm -f core conftest.err conftest.$ac_objext \
     9236    conftest$ac_exeext conftest.$ac_ext
    139999237LIBS=$ac_check_lib_save_LIBS
    140009238fi
    14001 echo "$as_me:$LINENO: result: $ac_cv_lib_deriv_init_libderiv_base" >&5
    14002 echo "${ECHO_T}$ac_cv_lib_deriv_init_libderiv_base" >&6
    14003 if test $ac_cv_lib_deriv_init_libderiv_base = yes; then
     9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_deriv_init_libderiv_base" >&5
     9240$as_echo "$ac_cv_lib_deriv_init_libderiv_base" >&6; }
     9241if test "x$ac_cv_lib_deriv_init_libderiv_base" = xyes; then :
    140049242  HAVE_LIBDERIV=yes
    14005     cat >>confdefs.h <<\_ACEOF
    14006 #define HAVE_LIBDERIV 1
    14007 _ACEOF
     9243
     9244$as_echo "#define HAVE_LIBDERIV 1" >>confdefs.h
    140089245
    140099246
     
    140319268
    140329269if test $template_instantiation = auto; then
    14033 echo "$as_me:$LINENO: checking choosing template instantiation method" >&5
    14034 echo $ECHO_N "checking choosing template instantiation method... $ECHO_C" >&6
     9270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking choosing template instantiation method" >&5
     9271$as_echo_n "checking choosing template instantiation method... " >&6; }
    140359272  if test X$GXX = Xyes; then
    14036     echo "$as_me:$LINENO: result: \"gcc (none)\"" >&5
    14037 echo "${ECHO_T}\"gcc (none)\"" >&6
     9273    { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"gcc (none)\"" >&5
     9274$as_echo "\"gcc (none)\"" >&6; }
    140389275  else
    140399276    case $target in
    140409277      *-sgi-irix6.0*)
    14041         echo "$as_me:$LINENO: result: \"*-sgi-irix6.0* (none)\"" >&5
    14042 echo "${ECHO_T}\"*-sgi-irix6.0* (none)\"" >&6
     9278        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"*-sgi-irix6.0* (none)\"" >&5
     9279$as_echo "\"*-sgi-irix6.0* (none)\"" >&6; }
    140439280        ;;
    140449281      *-sgi-irix*)
    140459282        template_instantiation=ptused
    14046         echo "$as_me:$LINENO: result: \"*-sgi-irix* (ptused)\"" >&5
    14047 echo "${ECHO_T}\"*-sgi-irix* (ptused)\"" >&6
     9283        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"*-sgi-irix* (ptused)\"" >&5
     9284$as_echo "\"*-sgi-irix* (ptused)\"" >&6; }
    140489285        ;;
    140499286      *-cray-unicos*)
    140509287        template_instantiation=craysimp
    14051         echo "$as_me:$LINENO: result: \"*-cray-unicos* (craysimp)\"" >&5
    14052 echo "${ECHO_T}\"*-cray-unicos* (craysimp)\"" >&6
     9288        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"*-cray-unicos* (craysimp)\"" >&5
     9289$as_echo "\"*-cray-unicos* (craysimp)\"" >&6; }
    140539290        ;;
    140549291      *-dec-osf*)
    140559292        template_instantiation=repodir
    14056         echo "$as_me:$LINENO: result: \"*-dec-osf* (repodir)\"" >&5
    14057 echo "${ECHO_T}\"*-dec-osf* (repodir)\"" >&6
     9293        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"*-dec-osf* (repodir)\"" >&5
     9294$as_echo "\"*-dec-osf* (repodir)\"" >&6; }
    140589295        ;;
    140599296      alpha*)
    140609297        template_instantiation=repodir
    14061         echo "$as_me:$LINENO: result: \"alpha* non-GNU C++ (repodir)\"" >&5
    14062 echo "${ECHO_T}\"alpha* non-GNU C++ (repodir)\"" >&6
     9298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"alpha* non-GNU C++ (repodir)\"" >&5
     9299$as_echo "\"alpha* non-GNU C++ (repodir)\"" >&6; }
    140639300        ;;
    140649301      *-solaris*)
    140659302        template_instantiation=sunexpl
    14066         echo "$as_me:$LINENO: result: \"*-solaris* (sunexpl)\"" >&5
    14067 echo "${ECHO_T}\"*-solaris* (sunexpl)\"" >&6
     9303        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"*-solaris* (sunexpl)\"" >&5
     9304$as_echo "\"*-solaris* (sunexpl)\"" >&6; }
    140689305        ;;
    140699306      *)
    14070         echo "$as_me:$LINENO: result: \"generic non GNU (none)\"" >&5
    14071 echo "${ECHO_T}\"generic non GNU (none)\"" >&6
     9307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"generic non GNU (none)\"" >&5
     9308$as_echo "\"generic non GNU (none)\"" >&6; }
    140729309        ;;
    140739310    esac
     
    140799316fi
    140809317
    14081 echo "$as_me:$LINENO: checking template instantiation flags" >&5
    14082 echo $ECHO_N "checking template instantiation flags... $ECHO_C" >&6
     9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking template instantiation flags" >&5
     9319$as_echo_n "checking template instantiation flags... " >&6; }
    140839320TMPLINST=no
    140849321TMPLREPO=
     
    140959332    TMPLINST=yes
    140969333    CXXFLAGS="$CXXFLAGS -frepo"
    14097     echo "$as_me:$LINENO: result: gnurepo" >&5
    14098 echo "${ECHO_T}gnurepo" >&6
     9334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gnurepo" >&5
     9335$as_echo "gnurepo" >&6; }
    140999336    ;;
    141009337  gnuexpl)
     
    141029339    CXXFLAGS="$CXXFLAGS -fno-implicit-templates"
    141039340    EXPLICIT_TEMPLATE_INSTANTIATION=yes
    14104     cat >>confdefs.h <<\_ACEOF
    14105 #define EXPLICIT_TEMPLATE_INSTANTIATION 1
    14106 _ACEOF
     9341
     9342$as_echo "#define EXPLICIT_TEMPLATE_INSTANTIATION 1" >>confdefs.h
    141079343
    141089344    ;;
    141099345  sunexpl)
    141109346    CXXFLAGS="$CXXFLAGS -instances=explicit"
    14111     cat >>confdefs.h <<\_ACEOF
    14112 #define EXPLICIT_TEMPLATE_INSTANTIATION 1
    14113 _ACEOF
     9347
     9348$as_echo "#define EXPLICIT_TEMPLATE_INSTANTIATION 1" >>confdefs.h
    141149349
    141159350    ;;
     
    141189353    ;;
    141199354  none)
    14120     echo "$as_me:$LINENO: result: none" >&5
    14121 echo "${ECHO_T}none" >&6
     9355    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
     9356$as_echo "none" >&6; }
    141229357    ;;
    141239358  *)
    14124     echo "$as_me:$LINENO: result: $template_instantiation" >&5
    14125 echo "${ECHO_T}$template_instantiation" >&6
    14126     { { echo "$as_me:$LINENO: error: unknown template instantiation method" >&5
    14127 echo "$as_me: error: unknown template instantiation method" >&2;}
    14128    { (exit 1); exit 1; }; }
     9359    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template_instantiation" >&5
     9360$as_echo "$template_instantiation" >&6; }
     9361    as_fn_error $? "unknown template instantiation method" "$LINENO" 5
    141299362esac
    141309363
     
    141349367
    141359368
    14136 echo "$as_me:$LINENO: checking for special flags that must be set last" >&5
    14137 echo $ECHO_N "checking for special flags that must be set last... $ECHO_C" >&6
     9369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special flags that must be set last" >&5
     9370$as_echo_n "checking for special flags that must be set last... " >&6; }
    141389371case $target in
    141399372  i860-intel-puma*)
    141409373    LDFLAGS="$LDFLAGS -mpuma -mnoieee"
    14141     echo "$as_me:$LINENO: result: paragon puma" >&5
    14142 echo "${ECHO_T}paragon puma" >&6
     9374    { $as_echo "$as_me:${as_lineno-$LINENO}: result: paragon puma" >&5
     9375$as_echo "paragon puma" >&6; }
    141439376  ;;
    141449377  i686-intel-cougar*)
    141459378    LDFLAGS="$LDFLAGS -mcougar -mnoieee"
    14146     echo "$as_me:$LINENO: result: teraflop cougar" >&5
    14147 echo "${ECHO_T}teraflop cougar" >&6
     9379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: teraflop cougar" >&5
     9380$as_echo "teraflop cougar" >&6; }
    141489381  ;;
    141499382  i860-intel-sunmos*)
    141509383    LDFLAGS="$LDFLAGS -msunmos -mnoieee"
    14151     echo "$as_me:$LINENO: result: paragon sunmos" >&5
    14152 echo "${ECHO_T}paragon sunmos" >&6
     9384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: paragon sunmos" >&5
     9385$as_echo "paragon sunmos" >&6; }
    141539386  ;;
    141549387  i860-intel-osf*)
    141559388    LDFLAGS="$LDFLAGS -mnx -mnoieee"
    14156     echo "$as_me:$LINENO: result: osf paragon" >&5
    14157 echo "${ECHO_T}osf paragon" >&6
     9389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: osf paragon" >&5
     9390$as_echo "osf paragon" >&6; }
    141589391  ;;
    141599392  *)
    14160     echo "$as_me:$LINENO: result: none" >&5
    14161 echo "${ECHO_T}none" >&6
     9393    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
     9394$as_echo "none" >&6; }
    141629395  ;;
    141639396esac
     
    141659398
    141669399enablelibtool=yes
    14167 # Check whether --enable-libtool or --disable-libtool was given.
    14168 if test "${enable_libtool+set}" = set; then
    14169   enableval="$enable_libtool"
    14170 
     9400# Check whether --enable-libtool was given.
     9401if test "${enable_libtool+set}" = set; then :
     9402  enableval=$enable_libtool;
    141719403case $enableval in
    141729404  yes)
     
    141769408  ;;
    141779409  *)
    14178     { { echo "$as_me:$LINENO: error: Invalid value for --(dis|en)able-libtool ($enableval)" >&5
    14179 echo "$as_me: error: Invalid value for --(dis|en)able-libtool ($enableval)" >&2;}
    14180    { (exit 1); exit 1; }; }
     9410    as_fn_error $? "Invalid value for --(dis|en)able-libtool ($enableval)" "$LINENO" 5
    141819411  ;;
    141829412esac
    141839413
    14184 fi;
     9414fi
     9415
    141859416
    141869417if test "$enablelibtool" = yes; then
    141879418
    14188 # Check whether --enable-shared or --disable-shared was given.
    14189 if test "${enable_shared+set}" = set; then
    14190   enableval="$enable_shared"
    14191   p=${PACKAGE-default}
     9419# Check whether --enable-shared was given.
     9420if test "${enable_shared+set}" = set; then :
     9421  enableval=$enable_shared; p=${PACKAGE-default}
    141929422    case $enableval in
    141939423    yes) enable_shared=yes ;;
     
    142089438else
    142099439  enable_shared=no
    14210 fi;
    14211 
    14212 
    14213 # Check whether --enable-static or --disable-static was given.
    14214 if test "${enable_static+set}" = set; then
    14215   enableval="$enable_static"
    14216   p=${PACKAGE-default}
    14217     case $enableval in
    14218     yes) enable_static=yes ;;
    14219     no) enable_static=no ;;
    14220     *)
    14221      enable_static=no
    14222       # Look at the argument we got.  We use all the common list separators.
    14223       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    14224       for pkg in $enableval; do
    14225         IFS="$lt_save_ifs"
    14226         if test "X$pkg" = "X$p"; then
    14227           enable_static=yes
    14228         fi
    14229       done
    14230       IFS="$lt_save_ifs"
    14231       ;;
    14232     esac
    14233 else
    14234   enable_static=yes
    14235 fi;
    14236 
    14237 # Check whether --enable-fast-install or --disable-fast-install was given.
    14238 if test "${enable_fast_install+set}" = set; then
    14239   enableval="$enable_fast_install"
    14240   p=${PACKAGE-default}
    14241     case $enableval in
    14242     yes) enable_fast_install=yes ;;
    14243     no) enable_fast_install=no ;;
    14244     *)
    14245       enable_fast_install=no
    14246       # Look at the argument we got.  We use all the common list separators.
    14247       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    14248       for pkg in $enableval; do
    14249         IFS="$lt_save_ifs"
    14250         if test "X$pkg" = "X$p"; then
    14251           enable_fast_install=yes
    14252         fi
    14253       done
    14254       IFS="$lt_save_ifs"
    14255       ;;
    14256     esac
    14257 else
    14258   enable_fast_install=yes
    14259 fi;
    14260 
    14261 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
    14262 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
    14263 if test "${lt_cv_path_SED+set}" = set; then
    14264   echo $ECHO_N "(cached) $ECHO_C" >&6
    14265 else
    14266   # Loop through the user's path and test for sed and gsed.
    14267 # Then use that list of sed's as ones to test for truncation.
    14268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     9440fi
     9441
     9442
     9443
     9444
     9445
     9446
     9447
     9448
     9449
     9450case `pwd` in
     9451  *\ * | *\     *)
     9452    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
     9453$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
     9454esac
     9455
     9456
     9457
     9458macro_version='2.4.2'
     9459macro_revision='1.3337'
     9460
     9461
     9462
     9463
     9464
     9465
     9466
     9467
     9468
     9469
     9470
     9471
     9472
     9473ltmain="$ac_aux_dir/ltmain.sh"
     9474
     9475# Backslashify metacharacters that are still active within
     9476# double-quoted strings.
     9477sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
     9478
     9479# Same as above, but do not quote variable references.
     9480double_quote_subst='s/\(["`\\]\)/\\\1/g'
     9481
     9482# Sed substitution to delay expansion of an escaped shell variable in a
     9483# double_quote_subst'ed string.
     9484delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     9485
     9486# Sed substitution to delay expansion of an escaped single quote.
     9487delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
     9488
     9489# Sed substitution to avoid accidental globbing in evaled expressions
     9490no_glob_subst='s/\*/\\\*/g'
     9491
     9492ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     9493ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
     9494ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
     9495
     9496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
     9497$as_echo_n "checking how to print strings... " >&6; }
     9498# Test print first, because it will be a builtin if present.
     9499if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
     9500   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
     9501  ECHO='print -r --'
     9502elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
     9503  ECHO='printf %s\n'
     9504else
     9505  # Use this function as a fallback that always works.
     9506  func_fallback_echo ()
     9507  {
     9508    eval 'cat <<_LTECHO_EOF
     9509$1
     9510_LTECHO_EOF'
     9511  }
     9512  ECHO='func_fallback_echo'
     9513fi
     9514
     9515# func_echo_all arg...
     9516# Invoke $ECHO with all args, space-separated.
     9517func_echo_all ()
     9518{
     9519    $ECHO ""
     9520}
     9521
     9522case "$ECHO" in
     9523  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
     9524$as_echo "printf" >&6; } ;;
     9525  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
     9526$as_echo "print -r" >&6; } ;;
     9527  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
     9528$as_echo "cat" >&6; } ;;
     9529esac
     9530
     9531
     9532
     9533
     9534
     9535
     9536
     9537
     9538
     9539
     9540
     9541
     9542
     9543
     9544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
     9545$as_echo_n "checking for a sed that does not truncate output... " >&6; }
     9546if ${ac_cv_path_SED+:} false; then :
     9547  $as_echo_n "(cached) " >&6
     9548else
     9549            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     9550     for ac_i in 1 2 3 4 5 6 7; do
     9551       ac_script="$ac_script$as_nl$ac_script"
     9552     done
     9553     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     9554     { ac_script=; unset ac_script;}
     9555     if test -z "$SED"; then
     9556  ac_path_SED_found=false
     9557  # Loop through the user's path and test for each of PROGNAME-LIST
     9558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    142699559for as_dir in $PATH
    142709560do
    142719561  IFS=$as_save_IFS
    142729562  test -z "$as_dir" && as_dir=.
    14273   for lt_ac_prog in sed gsed; do
     9563    for ac_prog in sed gsed; do
    142749564    for ac_exec_ext in '' $ac_executable_extensions; do
    14275       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
    14276         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
    14277       fi
     9565      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
     9566      as_fn_executable_p "$ac_path_SED" || continue
     9567# Check for GNU ac_path_SED and select it if it is found.
     9568  # Check for GNU $ac_path_SED
     9569case `"$ac_path_SED" --version 2>&1` in
     9570*GNU*)
     9571  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
     9572*)
     9573  ac_count=0
     9574  $as_echo_n 0123456789 >"conftest.in"
     9575  while :
     9576  do
     9577    cat "conftest.in" "conftest.in" >"conftest.tmp"
     9578    mv "conftest.tmp" "conftest.in"
     9579    cp "conftest.in" "conftest.nl"
     9580    $as_echo '' >> "conftest.nl"
     9581    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
     9582    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     9583    as_fn_arith $ac_count + 1 && ac_count=$as_val
     9584    if test $ac_count -gt ${ac_path_SED_max-0}; then
     9585      # Best one so far, save it but keep looking for a better one
     9586      ac_cv_path_SED="$ac_path_SED"
     9587      ac_path_SED_max=$ac_count
     9588    fi
     9589    # 10*(2^10) chars as input seems more than enough
     9590    test $ac_count -gt 10 && break
     9591  done
     9592  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     9593esac
     9594
     9595      $ac_path_SED_found && break 3
    142789596    done
    142799597  done
    14280 done
    14281 lt_ac_max=0
    14282 lt_ac_count=0
    14283 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
    14284 # along with /bin/sed that truncates output.
    14285 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
    14286   test ! -f $lt_ac_sed && continue
    14287   cat /dev/null > conftest.in
    14288   lt_ac_count=0
    14289   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
    14290   # Check for GNU sed and select it if it is found.
    14291   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
    14292     lt_cv_path_SED=$lt_ac_sed
    14293     break
     9598  done
     9599IFS=$as_save_IFS
     9600  if test -z "$ac_cv_path_SED"; then
     9601    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
    142949602  fi
    14295   while true; do
    14296     cat conftest.in conftest.in >conftest.tmp
    14297     mv conftest.tmp conftest.in
    14298     cp conftest.in conftest.nl
    14299     echo >>conftest.nl
    14300     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
    14301     cmp -s conftest.out conftest.nl || break
    14302     # 10000 chars as input seems more than enough
    14303     test $lt_ac_count -gt 10 && break
    14304     lt_ac_count=`expr $lt_ac_count + 1`
    14305     if test $lt_ac_count -gt $lt_ac_max; then
    14306       lt_ac_max=$lt_ac_count
    14307       lt_cv_path_SED=$lt_ac_sed
     9603else
     9604  ac_cv_path_SED=$SED
     9605fi
     9606
     9607fi
     9608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
     9609$as_echo "$ac_cv_path_SED" >&6; }
     9610 SED="$ac_cv_path_SED"
     9611  rm -f conftest.sed
     9612
     9613test -z "$SED" && SED=sed
     9614Xsed="$SED -e 1s/^X//"
     9615
     9616
     9617
     9618
     9619
     9620
     9621
     9622
     9623
     9624
     9625
     9626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
     9627$as_echo_n "checking for fgrep... " >&6; }
     9628if ${ac_cv_path_FGREP+:} false; then :
     9629  $as_echo_n "(cached) " >&6
     9630else
     9631  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
     9632   then ac_cv_path_FGREP="$GREP -F"
     9633   else
     9634     if test -z "$FGREP"; then
     9635  ac_path_FGREP_found=false
     9636  # Loop through the user's path and test for each of PROGNAME-LIST
     9637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     9638for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     9639do
     9640  IFS=$as_save_IFS
     9641  test -z "$as_dir" && as_dir=.
     9642    for ac_prog in fgrep; do
     9643    for ac_exec_ext in '' $ac_executable_extensions; do
     9644      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
     9645      as_fn_executable_p "$ac_path_FGREP" || continue
     9646# Check for GNU ac_path_FGREP and select it if it is found.
     9647  # Check for GNU $ac_path_FGREP
     9648case `"$ac_path_FGREP" --version 2>&1` in
     9649*GNU*)
     9650  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
     9651*)
     9652  ac_count=0
     9653  $as_echo_n 0123456789 >"conftest.in"
     9654  while :
     9655  do
     9656    cat "conftest.in" "conftest.in" >"conftest.tmp"
     9657    mv "conftest.tmp" "conftest.in"
     9658    cp "conftest.in" "conftest.nl"
     9659    $as_echo 'FGREP' >> "conftest.nl"
     9660    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
     9661    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     9662    as_fn_arith $ac_count + 1 && ac_count=$as_val
     9663    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
     9664      # Best one so far, save it but keep looking for a better one
     9665      ac_cv_path_FGREP="$ac_path_FGREP"
     9666      ac_path_FGREP_max=$ac_count
    143089667    fi
     9668    # 10*(2^10) chars as input seems more than enough
     9669    test $ac_count -gt 10 && break
    143099670  done
    14310 done
    14311 
    14312 fi
    14313 
    14314 SED=$lt_cv_path_SED
    14315 echo "$as_me:$LINENO: result: $SED" >&5
    14316 echo "${ECHO_T}$SED" >&6
    14317 
    14318 
    14319 # Check whether --with-gnu-ld or --without-gnu-ld was given.
    14320 if test "${with_gnu_ld+set}" = set; then
    14321   withval="$with_gnu_ld"
    14322   test "$withval" = no || with_gnu_ld=yes
     9671  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     9672esac
     9673
     9674      $ac_path_FGREP_found && break 3
     9675    done
     9676  done
     9677  done
     9678IFS=$as_save_IFS
     9679  if test -z "$ac_cv_path_FGREP"; then
     9680    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     9681  fi
     9682else
     9683  ac_cv_path_FGREP=$FGREP
     9684fi
     9685
     9686   fi
     9687fi
     9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
     9689$as_echo "$ac_cv_path_FGREP" >&6; }
     9690 FGREP="$ac_cv_path_FGREP"
     9691
     9692
     9693test -z "$GREP" && GREP=grep
     9694
     9695
     9696
     9697
     9698
     9699
     9700
     9701
     9702
     9703
     9704
     9705
     9706
     9707
     9708
     9709
     9710
     9711
     9712
     9713# Check whether --with-gnu-ld was given.
     9714if test "${with_gnu_ld+set}" = set; then :
     9715  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
    143239716else
    143249717  with_gnu_ld=no
    14325 fi;
     9718fi
     9719
    143269720ac_prog=ld
    143279721if test "$GCC" = yes; then
    143289722  # Check if gcc -print-prog-name=ld gives a path.
    14329   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
    14330 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
     9723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
     9724$as_echo_n "checking for ld used by $CC... " >&6; }
    143319725  case $host in
    143329726  *-*-mingw*)
     
    143419735      re_direlt='/[^/][^/]*/\.\./'
    143429736      # Canonicalize the pathname of ld
    14343       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
    14344       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
    14345         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
     9737      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
     9738      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
     9739        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
    143469740      done
    143479741      test -z "$LD" && LD="$ac_prog"
     
    143579751  esac
    143589752elif test "$with_gnu_ld" = yes; then
    14359   echo "$as_me:$LINENO: checking for GNU ld" >&5
    14360 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
    14361 else
    14362   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
    14363 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
    14364 fi
    14365 if test "${lt_cv_path_LD+set}" = set; then
    14366   echo $ECHO_N "(cached) $ECHO_C" >&6
     9753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
     9754$as_echo_n "checking for GNU ld... " >&6; }
     9755else
     9756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
     9757$as_echo_n "checking for non-GNU ld... " >&6; }
     9758fi
     9759if ${lt_cv_path_LD+:} false; then :
     9760  $as_echo_n "(cached) " >&6
    143679761else
    143689762  if test -z "$LD"; then
     
    143949788LD="$lt_cv_path_LD"
    143959789if test -n "$LD"; then
    14396   echo "$as_me:$LINENO: result: $LD" >&5
    14397 echo "${ECHO_T}$LD" >&6
    14398 else
    14399   echo "$as_me:$LINENO: result: no" >&5
    14400 echo "${ECHO_T}no" >&6
    14401 fi
    14402 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
    14403 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
    14404    { (exit 1); exit 1; }; }
    14405 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
    14406 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
    14407 if test "${lt_cv_prog_gnu_ld+set}" = set; then
    14408   echo $ECHO_N "(cached) $ECHO_C" >&6
     9790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
     9791$as_echo "$LD" >&6; }
     9792else
     9793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     9794$as_echo "no" >&6; }
     9795fi
     9796test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
     9797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
     9798$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
     9799if ${lt_cv_prog_gnu_ld+:} false; then :
     9800  $as_echo_n "(cached) " >&6
    144099801else
    144109802  # I'd rather use --version here, but apparently some GNU lds only accept -v.
     
    144189810esac
    144199811fi
    14420 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
    14421 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
     9812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
     9813$as_echo "$lt_cv_prog_gnu_ld" >&6; }
    144229814with_gnu_ld=$lt_cv_prog_gnu_ld
    144239815
    144249816
    14425 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
    14426 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
    14427 if test "${lt_cv_ld_reload_flag+set}" = set; then
    14428   echo $ECHO_N "(cached) $ECHO_C" >&6
    14429 else
    14430   lt_cv_ld_reload_flag='-r'
    14431 fi
    14432 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
    14433 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
    14434 reload_flag=$lt_cv_ld_reload_flag
    14435 case $reload_flag in
    14436 "" | " "*) ;;
    14437 *) reload_flag=" $reload_flag" ;;
    14438 esac
    14439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
    14440 case $host_os in
    14441   darwin*)
    14442     if test "$GCC" = yes; then
    14443       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    14444     else
    14445       reload_cmds='$LD$reload_flag -o $output$reload_objs'
    14446     fi
    14447     ;;
    14448 esac
    14449 
    14450 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
    14451 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
    14452 if test "${lt_cv_path_NM+set}" = set; then
    14453   echo $ECHO_N "(cached) $ECHO_C" >&6
     9817
     9818
     9819
     9820
     9821
     9822
     9823
     9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
     9825$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
     9826if ${lt_cv_path_NM+:} false; then :
     9827  $as_echo_n "(cached) " >&6
    144549828else
    144559829  if test -n "$NM"; then
     
    144949868    IFS="$lt_save_ifs"
    144959869  done
    14496   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
    14497 fi
    14498 fi
    14499 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
    14500 echo "${ECHO_T}$lt_cv_path_NM" >&6
    14501 NM="$lt_cv_path_NM"
    14502 
    14503 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
    14504 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
    14505 if test "${lt_cv_deplibs_check_method+set}" = set; then
    14506   echo $ECHO_N "(cached) $ECHO_C" >&6
     9870  : ${lt_cv_path_NM=no}
     9871fi
     9872fi
     9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
     9874$as_echo "$lt_cv_path_NM" >&6; }
     9875if test "$lt_cv_path_NM" != "no"; then
     9876  NM="$lt_cv_path_NM"
     9877else
     9878  # Didn't find any BSD compatible name lister, look for dumpbin.
     9879  if test -n "$DUMPBIN"; then :
     9880    # Let the user override the test.
     9881  else
     9882    if test -n "$ac_tool_prefix"; then
     9883  for ac_prog in dumpbin "link -dump"
     9884  do
     9885    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     9886set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     9887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     9888$as_echo_n "checking for $ac_word... " >&6; }
     9889if ${ac_cv_prog_DUMPBIN+:} false; then :
     9890  $as_echo_n "(cached) " >&6
     9891else
     9892  if test -n "$DUMPBIN"; then
     9893  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
     9894else
     9895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     9896for as_dir in $PATH
     9897do
     9898  IFS=$as_save_IFS
     9899  test -z "$as_dir" && as_dir=.
     9900    for ac_exec_ext in '' $ac_executable_extensions; do
     9901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     9902    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
     9903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     9904    break 2
     9905  fi
     9906done
     9907  done
     9908IFS=$as_save_IFS
     9909
     9910fi
     9911fi
     9912DUMPBIN=$ac_cv_prog_DUMPBIN
     9913if test -n "$DUMPBIN"; then
     9914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
     9915$as_echo "$DUMPBIN" >&6; }
     9916else
     9917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     9918$as_echo "no" >&6; }
     9919fi
     9920
     9921
     9922    test -n "$DUMPBIN" && break
     9923  done
     9924fi
     9925if test -z "$DUMPBIN"; then
     9926  ac_ct_DUMPBIN=$DUMPBIN
     9927  for ac_prog in dumpbin "link -dump"
     9928do
     9929  # Extract the first word of "$ac_prog", so it can be a program name with args.
     9930set dummy $ac_prog; ac_word=$2
     9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     9932$as_echo_n "checking for $ac_word... " >&6; }
     9933if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
     9934  $as_echo_n "(cached) " >&6
     9935else
     9936  if test -n "$ac_ct_DUMPBIN"; then
     9937  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
     9938else
     9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     9940for as_dir in $PATH
     9941do
     9942  IFS=$as_save_IFS
     9943  test -z "$as_dir" && as_dir=.
     9944    for ac_exec_ext in '' $ac_executable_extensions; do
     9945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     9946    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
     9947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     9948    break 2
     9949  fi
     9950done
     9951  done
     9952IFS=$as_save_IFS
     9953
     9954fi
     9955fi
     9956ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
     9957if test -n "$ac_ct_DUMPBIN"; then
     9958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
     9959$as_echo "$ac_ct_DUMPBIN" >&6; }
     9960else
     9961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     9962$as_echo "no" >&6; }
     9963fi
     9964
     9965
     9966  test -n "$ac_ct_DUMPBIN" && break
     9967done
     9968
     9969  if test "x$ac_ct_DUMPBIN" = x; then
     9970    DUMPBIN=":"
     9971  else
     9972    case $cross_compiling:$ac_tool_warned in
     9973yes:)
     9974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     9975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     9976ac_tool_warned=yes ;;
     9977esac
     9978    DUMPBIN=$ac_ct_DUMPBIN
     9979  fi
     9980fi
     9981
     9982    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
     9983    *COFF*)
     9984      DUMPBIN="$DUMPBIN -symbols"
     9985      ;;
     9986    *)
     9987      DUMPBIN=:
     9988      ;;
     9989    esac
     9990  fi
     9991
     9992  if test "$DUMPBIN" != ":"; then
     9993    NM="$DUMPBIN"
     9994  fi
     9995fi
     9996test -z "$NM" && NM=nm
     9997
     9998
     9999
     10000
     10001
     10002
     10003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
     10004$as_echo_n "checking the name lister ($NM) interface... " >&6; }
     10005if ${lt_cv_nm_interface+:} false; then :
     10006  $as_echo_n "(cached) " >&6
     10007else
     10008  lt_cv_nm_interface="BSD nm"
     10009  echo "int some_variable = 0;" > conftest.$ac_ext
     10010  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
     10011  (eval "$ac_compile" 2>conftest.err)
     10012  cat conftest.err >&5
     10013  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
     10014  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
     10015  cat conftest.err >&5
     10016  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
     10017  cat conftest.out >&5
     10018  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     10019    lt_cv_nm_interface="MS dumpbin"
     10020  fi
     10021  rm -f conftest*
     10022fi
     10023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
     10024$as_echo "$lt_cv_nm_interface" >&6; }
     10025
     10026# find the maximum length of command line arguments
     10027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
     10028$as_echo_n "checking the maximum length of command line arguments... " >&6; }
     10029if ${lt_cv_sys_max_cmd_len+:} false; then :
     10030  $as_echo_n "(cached) " >&6
     10031else
     10032    i=0
     10033  teststring="ABCD"
     10034
     10035  case $build_os in
     10036  msdosdjgpp*)
     10037    # On DJGPP, this test can blow up pretty badly due to problems in libc
     10038    # (any single argument exceeding 2000 bytes causes a buffer overrun
     10039    # during glob expansion).  Even if it were fixed, the result of this
     10040    # check would be larger than it should be.
     10041    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
     10042    ;;
     10043
     10044  gnu*)
     10045    # Under GNU Hurd, this test is not required because there is
     10046    # no limit to the length of command line arguments.
     10047    # Libtool will interpret -1 as no limit whatsoever
     10048    lt_cv_sys_max_cmd_len=-1;
     10049    ;;
     10050
     10051  cygwin* | mingw* | cegcc*)
     10052    # On Win9x/ME, this test blows up -- it succeeds, but takes
     10053    # about 5 minutes as the teststring grows exponentially.
     10054    # Worse, since 9x/ME are not pre-emptively multitasking,
     10055    # you end up with a "frozen" computer, even though with patience
     10056    # the test eventually succeeds (with a max line length of 256k).
     10057    # Instead, let's just punt: use the minimum linelength reported by
     10058    # all of the supported platforms: 8192 (on NT/2K/XP).
     10059    lt_cv_sys_max_cmd_len=8192;
     10060    ;;
     10061
     10062  mint*)
     10063    # On MiNT this can take a long time and run out of memory.
     10064    lt_cv_sys_max_cmd_len=8192;
     10065    ;;
     10066
     10067  amigaos*)
     10068    # On AmigaOS with pdksh, this test takes hours, literally.
     10069    # So we just punt and use a minimum line length of 8192.
     10070    lt_cv_sys_max_cmd_len=8192;
     10071    ;;
     10072
     10073  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
     10074    # This has been around since 386BSD, at least.  Likely further.
     10075    if test -x /sbin/sysctl; then
     10076      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
     10077    elif test -x /usr/sbin/sysctl; then
     10078      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
     10079    else
     10080      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
     10081    fi
     10082    # And add a safety zone
     10083    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     10084    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     10085    ;;
     10086
     10087  interix*)
     10088    # We know the value 262144 and hardcode it with a safety zone (like BSD)
     10089    lt_cv_sys_max_cmd_len=196608
     10090    ;;
     10091
     10092  os2*)
     10093    # The test takes a long time on OS/2.
     10094    lt_cv_sys_max_cmd_len=8192
     10095    ;;
     10096
     10097  osf*)
     10098    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
     10099    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
     10100    # nice to cause kernel panics so lets avoid the loop below.
     10101    # First set a reasonable default.
     10102    lt_cv_sys_max_cmd_len=16384
     10103    #
     10104    if test -x /sbin/sysconfig; then
     10105      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
     10106        *1*) lt_cv_sys_max_cmd_len=-1 ;;
     10107      esac
     10108    fi
     10109    ;;
     10110  sco3.2v5*)
     10111    lt_cv_sys_max_cmd_len=102400
     10112    ;;
     10113  sysv5* | sco5v6* | sysv4.2uw2*)
     10114    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
     10115    if test -n "$kargmax"; then
     10116      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
     10117    else
     10118      lt_cv_sys_max_cmd_len=32768
     10119    fi
     10120    ;;
     10121  *)
     10122    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
     10123    if test -n "$lt_cv_sys_max_cmd_len" && \
     10124        test undefined != "$lt_cv_sys_max_cmd_len"; then
     10125      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     10126      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     10127    else
     10128      # Make teststring a little bigger before we do anything with it.
     10129      # a 1K string should be a reasonable start.
     10130      for i in 1 2 3 4 5 6 7 8 ; do
     10131        teststring=$teststring$teststring
     10132      done
     10133      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
     10134      # If test is not a shell built-in, we'll probably end up computing a
     10135      # maximum length that is only half of the actual maximum length, but
     10136      # we can't tell.
     10137      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
     10138                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
     10139              test $i != 17 # 1/2 MB should be enough
     10140      do
     10141        i=`expr $i + 1`
     10142        teststring=$teststring$teststring
     10143      done
     10144      # Only check the string length outside the loop.
     10145      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
     10146      teststring=
     10147      # Add a significant safety factor because C++ compilers can tack on
     10148      # massive amounts of additional arguments before passing them to the
     10149      # linker.  It appears as though 1/2 is a usable value.
     10150      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     10151    fi
     10152    ;;
     10153  esac
     10154
     10155fi
     10156
     10157if test -n $lt_cv_sys_max_cmd_len ; then
     10158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
     10159$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
     10160else
     10161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
     10162$as_echo "none" >&6; }
     10163fi
     10164max_cmd_len=$lt_cv_sys_max_cmd_len
     10165
     10166
     10167
     10168
     10169
     10170
     10171: ${CP="cp -f"}
     10172: ${MV="mv -f"}
     10173: ${RM="rm -f"}
     10174
     10175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
     10176$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
     10177# Try some XSI features
     10178xsi_shell=no
     10179( _lt_dummy="a/b/c"
     10180  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
     10181      = c,a/b,b/c, \
     10182    && eval 'test $(( 1 + 1 )) -eq 2 \
     10183    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
     10184  && xsi_shell=yes
     10185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
     10186$as_echo "$xsi_shell" >&6; }
     10187
     10188
     10189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
     10190$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
     10191lt_shell_append=no
     10192( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
     10193    >/dev/null 2>&1 \
     10194  && lt_shell_append=yes
     10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
     10196$as_echo "$lt_shell_append" >&6; }
     10197
     10198
     10199if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     10200  lt_unset=unset
     10201else
     10202  lt_unset=false
     10203fi
     10204
     10205
     10206
     10207
     10208
     10209# test EBCDIC or ASCII
     10210case `echo X|tr X '\101'` in
     10211 A) # ASCII based system
     10212    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
     10213  lt_SP2NL='tr \040 \012'
     10214  lt_NL2SP='tr \015\012 \040\040'
     10215  ;;
     10216 *) # EBCDIC based system
     10217  lt_SP2NL='tr \100 \n'
     10218  lt_NL2SP='tr \r\n \100\100'
     10219  ;;
     10220esac
     10221
     10222
     10223
     10224
     10225
     10226
     10227
     10228
     10229
     10230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
     10231$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
     10232if ${lt_cv_to_host_file_cmd+:} false; then :
     10233  $as_echo_n "(cached) " >&6
     10234else
     10235  case $host in
     10236  *-*-mingw* )
     10237    case $build in
     10238      *-*-mingw* ) # actually msys
     10239        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
     10240        ;;
     10241      *-*-cygwin* )
     10242        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
     10243        ;;
     10244      * ) # otherwise, assume *nix
     10245        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
     10246        ;;
     10247    esac
     10248    ;;
     10249  *-*-cygwin* )
     10250    case $build in
     10251      *-*-mingw* ) # actually msys
     10252        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
     10253        ;;
     10254      *-*-cygwin* )
     10255        lt_cv_to_host_file_cmd=func_convert_file_noop
     10256        ;;
     10257      * ) # otherwise, assume *nix
     10258        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
     10259        ;;
     10260    esac
     10261    ;;
     10262  * ) # unhandled hosts (and "normal" native builds)
     10263    lt_cv_to_host_file_cmd=func_convert_file_noop
     10264    ;;
     10265esac
     10266
     10267fi
     10268
     10269to_host_file_cmd=$lt_cv_to_host_file_cmd
     10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
     10271$as_echo "$lt_cv_to_host_file_cmd" >&6; }
     10272
     10273
     10274
     10275
     10276
     10277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
     10278$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
     10279if ${lt_cv_to_tool_file_cmd+:} false; then :
     10280  $as_echo_n "(cached) " >&6
     10281else
     10282  #assume ordinary cross tools, or native build.
     10283lt_cv_to_tool_file_cmd=func_convert_file_noop
     10284case $host in
     10285  *-*-mingw* )
     10286    case $build in
     10287      *-*-mingw* ) # actually msys
     10288        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
     10289        ;;
     10290    esac
     10291    ;;
     10292esac
     10293
     10294fi
     10295
     10296to_tool_file_cmd=$lt_cv_to_tool_file_cmd
     10297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
     10298$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
     10299
     10300
     10301
     10302
     10303
     10304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
     10305$as_echo_n "checking for $LD option to reload object files... " >&6; }
     10306if ${lt_cv_ld_reload_flag+:} false; then :
     10307  $as_echo_n "(cached) " >&6
     10308else
     10309  lt_cv_ld_reload_flag='-r'
     10310fi
     10311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
     10312$as_echo "$lt_cv_ld_reload_flag" >&6; }
     10313reload_flag=$lt_cv_ld_reload_flag
     10314case $reload_flag in
     10315"" | " "*) ;;
     10316*) reload_flag=" $reload_flag" ;;
     10317esac
     10318reload_cmds='$LD$reload_flag -o $output$reload_objs'
     10319case $host_os in
     10320  cygwin* | mingw* | pw32* | cegcc*)
     10321    if test "$GCC" != yes; then
     10322      reload_cmds=false
     10323    fi
     10324    ;;
     10325  darwin*)
     10326    if test "$GCC" = yes; then
     10327      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
     10328    else
     10329      reload_cmds='$LD$reload_flag -o $output$reload_objs'
     10330    fi
     10331    ;;
     10332esac
     10333
     10334
     10335
     10336
     10337
     10338
     10339
     10340
     10341
     10342if test -n "$ac_tool_prefix"; then
     10343  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
     10344set dummy ${ac_tool_prefix}objdump; ac_word=$2
     10345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     10346$as_echo_n "checking for $ac_word... " >&6; }
     10347if ${ac_cv_prog_OBJDUMP+:} false; then :
     10348  $as_echo_n "(cached) " >&6
     10349else
     10350  if test -n "$OBJDUMP"; then
     10351  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
     10352else
     10353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     10354for as_dir in $PATH
     10355do
     10356  IFS=$as_save_IFS
     10357  test -z "$as_dir" && as_dir=.
     10358    for ac_exec_ext in '' $ac_executable_extensions; do
     10359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     10360    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
     10361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     10362    break 2
     10363  fi
     10364done
     10365  done
     10366IFS=$as_save_IFS
     10367
     10368fi
     10369fi
     10370OBJDUMP=$ac_cv_prog_OBJDUMP
     10371if test -n "$OBJDUMP"; then
     10372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
     10373$as_echo "$OBJDUMP" >&6; }
     10374else
     10375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     10376$as_echo "no" >&6; }
     10377fi
     10378
     10379
     10380fi
     10381if test -z "$ac_cv_prog_OBJDUMP"; then
     10382  ac_ct_OBJDUMP=$OBJDUMP
     10383  # Extract the first word of "objdump", so it can be a program name with args.
     10384set dummy objdump; ac_word=$2
     10385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     10386$as_echo_n "checking for $ac_word... " >&6; }
     10387if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
     10388  $as_echo_n "(cached) " >&6
     10389else
     10390  if test -n "$ac_ct_OBJDUMP"; then
     10391  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
     10392else
     10393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     10394for as_dir in $PATH
     10395do
     10396  IFS=$as_save_IFS
     10397  test -z "$as_dir" && as_dir=.
     10398    for ac_exec_ext in '' $ac_executable_extensions; do
     10399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     10400    ac_cv_prog_ac_ct_OBJDUMP="objdump"
     10401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     10402    break 2
     10403  fi
     10404done
     10405  done
     10406IFS=$as_save_IFS
     10407
     10408fi
     10409fi
     10410ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
     10411if test -n "$ac_ct_OBJDUMP"; then
     10412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
     10413$as_echo "$ac_ct_OBJDUMP" >&6; }
     10414else
     10415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     10416$as_echo "no" >&6; }
     10417fi
     10418
     10419  if test "x$ac_ct_OBJDUMP" = x; then
     10420    OBJDUMP="false"
     10421  else
     10422    case $cross_compiling:$ac_tool_warned in
     10423yes:)
     10424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     10425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     10426ac_tool_warned=yes ;;
     10427esac
     10428    OBJDUMP=$ac_ct_OBJDUMP
     10429  fi
     10430else
     10431  OBJDUMP="$ac_cv_prog_OBJDUMP"
     10432fi
     10433
     10434test -z "$OBJDUMP" && OBJDUMP=objdump
     10435
     10436
     10437
     10438
     10439
     10440
     10441
     10442
     10443
     10444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
     10445$as_echo_n "checking how to recognize dependent libraries... " >&6; }
     10446if ${lt_cv_deplibs_check_method+:} false; then :
     10447  $as_echo_n "(cached) " >&6
    1450710448else
    1450810449  lt_cv_file_magic_cmd='$MAGIC_CMD'
     
    1452110462
    1452210463case $host_os in
    14523 aix4* | aix5*)
     10464aix[4-9]*)
    1452410465  lt_cv_deplibs_check_method=pass_all
    1452510466  ;;
     
    1454310484mingw* | pw32*)
    1454410485  # Base MSYS/MinGW do not provide the 'file' command needed by
    14545   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
    14546   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     10486  # func_win32_libid shell function, so use a weaker test based on 'objdump',
     10487  # unless we find 'file', for example because we are cross-compiling.
     10488  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
     10489  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
     10490    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     10491    lt_cv_file_magic_cmd='func_win32_libid'
     10492  else
     10493    # Keep this pattern in sync with the one in func_win32_libid.
     10494    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
     10495    lt_cv_file_magic_cmd='$OBJDUMP -f'
     10496  fi
     10497  ;;
     10498
     10499cegcc*)
     10500  # use the weaker test based on 'objdump'. See mingw*.
     10501  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
    1454710502  lt_cv_file_magic_cmd='$OBJDUMP -f'
    1454810503  ;;
     
    1455210507  ;;
    1455310508
    14554 freebsd* | kfreebsd*-gnu | dragonfly*)
    14555   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     10509freebsd* | dragonfly*)
     10510  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    1455610511    case $host_cpu in
    1455710512    i*86 )
     
    1456810523  ;;
    1456910524
    14570 gnu*)
     10525haiku*)
    1457110526  lt_cv_deplibs_check_method=pass_all
    1457210527  ;;
     
    1458010535    ;;
    1458110536  hppa*64*)
    14582     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
     10537    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
    1458310538    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    1458410539    ;;
    1458510540  *)
    14586     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
     10541    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
    1458710542    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    1458810543    ;;
     
    1459010545  ;;
    1459110546
    14592 interix3*)
     10547interix[3-9]*)
    1459310548  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
    1459410549  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
     
    1460510560  ;;
    1460610561
    14607 # This must be Linux ELF.
    14608 linux*)
     10562# This must be glibc/ELF.
     10563linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
    1460910564  lt_cv_deplibs_check_method=pass_all
    1461010565  ;;
    1461110566
    14612 netbsd*)
    14613   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     10567netbsd* | netbsdelf*-gnu)
     10568  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    1461410569    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
    1461510570  else
     
    1462410579  ;;
    1462510580
    14626 nto-qnx*)
    14627   lt_cv_deplibs_check_method=unknown
     10581*nto* | *qnx*)
     10582  lt_cv_deplibs_check_method=pass_all
    1462810583  ;;
    1462910584
    1463010585openbsd*)
    14631   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     10586  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    1463210587    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
    1463310588  else
     
    1464010595  ;;
    1464110596
     10597rdos*)
     10598  lt_cv_deplibs_check_method=pass_all
     10599  ;;
     10600
    1464210601solaris*)
     10602  lt_cv_deplibs_check_method=pass_all
     10603  ;;
     10604
     10605sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
    1464310606  lt_cv_deplibs_check_method=pass_all
    1464410607  ;;
     
    1467110634  ;;
    1467210635
    14673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     10636tpf*)
    1467410637  lt_cv_deplibs_check_method=pass_all
    1467510638  ;;
     
    1467710640
    1467810641fi
    14679 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
    14680 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
     10642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
     10643$as_echo "$lt_cv_deplibs_check_method" >&6; }
     10644
     10645file_magic_glob=
     10646want_nocaseglob=no
     10647if test "$build" = "$host"; then
     10648  case $host_os in
     10649  mingw* | pw32*)
     10650    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
     10651      want_nocaseglob=yes
     10652    else
     10653      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
     10654    fi
     10655    ;;
     10656  esac
     10657fi
     10658
    1468110659file_magic_cmd=$lt_cv_file_magic_cmd
    1468210660deplibs_check_method=$lt_cv_deplibs_check_method
     
    1468610664
    1468710665
    14688 # If no C compiler was specified, use CC.
    14689 LTCC=${LTCC-"$CC"}
    14690 
    14691 # If no C compiler flags were specified, use CFLAGS.
    14692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
    14693 
    14694 # Allow CC to be a program name with arguments.
    14695 compiler=$CC
    14696 
    14697 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
    14698 if test "${enable_libtool_lock+set}" = set; then
    14699   enableval="$enable_libtool_lock"
    14700 
    14701 fi;
    14702 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
    14703 
    14704 # Some flags need to be propagated to the compiler or linker for good
    14705 # libtool support.
    14706 case $host in
    14707 ia64-*-hpux*)
    14708   # Find out which ABI we are using.
    14709   echo 'int i;' > conftest.$ac_ext
    14710   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    14711   (eval $ac_compile) 2>&5
    14712   ac_status=$?
    14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14714   (exit $ac_status); }; then
    14715     case `/usr/bin/file conftest.$ac_objext` in
    14716     *ELF-32*)
    14717       HPUX_IA64_MODE="32"
    14718       ;;
    14719     *ELF-64*)
    14720       HPUX_IA64_MODE="64"
    14721       ;;
    14722     esac
     10666
     10667
     10668
     10669
     10670
     10671
     10672
     10673
     10674
     10675
     10676
     10677
     10678
     10679
     10680
     10681
     10682
     10683
     10684if test -n "$ac_tool_prefix"; then
     10685  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
     10686set dummy ${ac_tool_prefix}dlltool; ac_word=$2
     10687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     10688$as_echo_n "checking for $ac_word... " >&6; }
     10689if ${ac_cv_prog_DLLTOOL+:} false; then :
     10690  $as_echo_n "(cached) " >&6
     10691else
     10692  if test -n "$DLLTOOL"; then
     10693  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
     10694else
     10695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     10696for as_dir in $PATH
     10697do
     10698  IFS=$as_save_IFS
     10699  test -z "$as_dir" && as_dir=.
     10700    for ac_exec_ext in '' $ac_executable_extensions; do
     10701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     10702    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
     10703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     10704    break 2
    1472310705  fi
    14724   rm -rf conftest*
     10706done
     10707  done
     10708IFS=$as_save_IFS
     10709
     10710fi
     10711fi
     10712DLLTOOL=$ac_cv_prog_DLLTOOL
     10713if test -n "$DLLTOOL"; then
     10714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
     10715$as_echo "$DLLTOOL" >&6; }
     10716else
     10717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     10718$as_echo "no" >&6; }
     10719fi
     10720
     10721
     10722fi
     10723if test -z "$ac_cv_prog_DLLTOOL"; then
     10724  ac_ct_DLLTOOL=$DLLTOOL
     10725  # Extract the first word of "dlltool", so it can be a program name with args.
     10726set dummy dlltool; ac_word=$2
     10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     10728$as_echo_n "checking for $ac_word... " >&6; }
     10729if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
     10730  $as_echo_n "(cached) " >&6
     10731else
     10732  if test -n "$ac_ct_DLLTOOL"; then
     10733  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
     10734else
     10735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     10736for as_dir in $PATH
     10737do
     10738  IFS=$as_save_IFS
     10739  test -z "$as_dir" && as_dir=.
     10740    for ac_exec_ext in '' $ac_executable_extensions; do
     10741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     10742    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
     10743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     10744    break 2
     10745  fi
     10746done
     10747  done
     10748IFS=$as_save_IFS
     10749
     10750fi
     10751fi
     10752ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
     10753if test -n "$ac_ct_DLLTOOL"; then
     10754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
     10755$as_echo "$ac_ct_DLLTOOL" >&6; }
     10756else
     10757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     10758$as_echo "no" >&6; }
     10759fi
     10760
     10761  if test "x$ac_ct_DLLTOOL" = x; then
     10762    DLLTOOL="false"
     10763  else
     10764    case $cross_compiling:$ac_tool_warned in
     10765yes:)
     10766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     10767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     10768ac_tool_warned=yes ;;
     10769esac
     10770    DLLTOOL=$ac_ct_DLLTOOL
     10771  fi
     10772else
     10773  DLLTOOL="$ac_cv_prog_DLLTOOL"
     10774fi
     10775
     10776test -z "$DLLTOOL" && DLLTOOL=dlltool
     10777
     10778
     10779
     10780
     10781
     10782
     10783
     10784
     10785
     10786
     10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
     10788$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
     10789if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
     10790  $as_echo_n "(cached) " >&6
     10791else
     10792  lt_cv_sharedlib_from_linklib_cmd='unknown'
     10793
     10794case $host_os in
     10795cygwin* | mingw* | pw32* | cegcc*)
     10796  # two different shell functions defined in ltmain.sh
     10797  # decide which to use based on capabilities of $DLLTOOL
     10798  case `$DLLTOOL --help 2>&1` in
     10799  *--identify-strict*)
     10800    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
     10801    ;;
     10802  *)
     10803    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
     10804    ;;
     10805  esac
    1472510806  ;;
    14726 *-*-irix6*)
    14727   # Find out which ABI we are using.
    14728   echo '#line 14728 "configure"' > conftest.$ac_ext
    14729   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    14730   (eval $ac_compile) 2>&5
    14731   ac_status=$?
    14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14733   (exit $ac_status); }; then
    14734    if test "$lt_cv_prog_gnu_ld" = yes; then
    14735     case `/usr/bin/file conftest.$ac_objext` in
    14736     *32-bit*)
    14737       LD="${LD-ld} -melf32bsmip"
    14738       ;;
    14739     *N32*)
    14740       LD="${LD-ld} -melf32bmipn32"
    14741       ;;
    14742     *64-bit*)
    14743       LD="${LD-ld} -melf64bmip"
    14744       ;;
    14745     esac
    14746    else
    14747     case `/usr/bin/file conftest.$ac_objext` in
    14748     *32-bit*)
    14749       LD="${LD-ld} -32"
    14750       ;;
    14751     *N32*)
    14752       LD="${LD-ld} -n32"
    14753       ;;
    14754     *64-bit*)
    14755       LD="${LD-ld} -64"
    14756       ;;
    14757     esac
    14758    fi
     10807*)
     10808  # fallback: assume linklib IS sharedlib
     10809  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
     10810  ;;
     10811esac
     10812
     10813fi
     10814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
     10815$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
     10816sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
     10817test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
     10818
     10819
     10820
     10821
     10822
     10823
     10824
     10825if test -n "$ac_tool_prefix"; then
     10826  for ac_prog in ar
     10827  do
     10828    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     10829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     10831$as_echo_n "checking for $ac_word... " >&6; }
     10832if ${ac_cv_prog_AR+:} false; then :
     10833  $as_echo_n "(cached) " >&6
     10834else
     10835  if test -n "$AR"; then
     10836  ac_cv_prog_AR="$AR" # Let the user override the test.
     10837else
     10838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     10839for as_dir in $PATH
     10840do
     10841  IFS=$as_save_IFS
     10842  test -z "$as_dir" && as_dir=.
     10843    for ac_exec_ext in '' $ac_executable_extensions; do
     10844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     10845    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
     10846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     10847    break 2
    1475910848  fi
    14760   rm -rf conftest*
    14761   ;;
    14762 
    14763 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
    14764   # Find out which ABI we are using.
    14765   echo 'int i;' > conftest.$ac_ext
    14766   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    14767   (eval $ac_compile) 2>&5
    14768   ac_status=$?
    14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14770   (exit $ac_status); }; then
    14771     case `/usr/bin/file conftest.o` in
    14772     *32-bit*)
    14773       case $host in
    14774         x86_64-*linux*)
    14775           LD="${LD-ld} -m elf_i386"
    14776           ;;
    14777         ppc64-*linux*|powerpc64-*linux*)
    14778           LD="${LD-ld} -m elf32ppclinux"
    14779           ;;
    14780         s390x-*linux*)
    14781           LD="${LD-ld} -m elf_s390"
    14782           ;;
    14783         sparc64-*linux*)
    14784           LD="${LD-ld} -m elf32_sparc"
    14785           ;;
    14786       esac
    14787       ;;
    14788     *64-bit*)
    14789       case $host in
    14790         x86_64-*linux*)
    14791           LD="${LD-ld} -m elf_x86_64"
    14792           ;;
    14793         ppc*-*linux*|powerpc*-*linux*)
    14794           LD="${LD-ld} -m elf64ppc"
    14795           ;;
    14796         s390*-*linux*)
    14797           LD="${LD-ld} -m elf64_s390"
    14798           ;;
    14799         sparc*-*linux*)
    14800           LD="${LD-ld} -m elf64_sparc"
    14801           ;;
    14802       esac
    14803       ;;
    14804     esac
     10849done
     10850  done
     10851IFS=$as_save_IFS
     10852
     10853fi
     10854fi
     10855AR=$ac_cv_prog_AR
     10856if test -n "$AR"; then
     10857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
     10858$as_echo "$AR" >&6; }
     10859else
     10860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     10861$as_echo "no" >&6; }
     10862fi
     10863
     10864
     10865    test -n "$AR" && break
     10866  done
     10867fi
     10868if test -z "$AR"; then
     10869  ac_ct_AR=$AR
     10870  for ac_prog in ar
     10871do
     10872  # Extract the first word of "$ac_prog", so it can be a program name with args.
     10873set dummy $ac_prog; ac_word=$2
     10874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     10875$as_echo_n "checking for $ac_word... " >&6; }
     10876if ${ac_cv_prog_ac_ct_AR+:} false; then :
     10877  $as_echo_n "(cached) " >&6
     10878else
     10879  if test -n "$ac_ct_AR"; then
     10880  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
     10881else
     10882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     10883for as_dir in $PATH
     10884do
     10885  IFS=$as_save_IFS
     10886  test -z "$as_dir" && as_dir=.
     10887    for ac_exec_ext in '' $ac_executable_extensions; do
     10888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     10889    ac_cv_prog_ac_ct_AR="$ac_prog"
     10890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     10891    break 2
    1480510892  fi
    14806   rm -rf conftest*
    14807   ;;
    14808 
    14809 *-*-sco3.2v5*)
    14810   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
    14811   SAVE_CFLAGS="$CFLAGS"
    14812   CFLAGS="$CFLAGS -belf"
    14813   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
    14814 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
    14815 if test "${lt_cv_cc_needs_belf+set}" = set; then
    14816   echo $ECHO_N "(cached) $ECHO_C" >&6
    14817 else
    14818   ac_ext=c
    14819 ac_cpp='$CPP $CPPFLAGS'
    14820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    14821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    14822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    14823 
    14824      cat >conftest.$ac_ext <<_ACEOF
    14825 /* confdefs.h.  */
    14826 _ACEOF
    14827 cat confdefs.h >>conftest.$ac_ext
    14828 cat >>conftest.$ac_ext <<_ACEOF
     10893done
     10894  done
     10895IFS=$as_save_IFS
     10896
     10897fi
     10898fi
     10899ac_ct_AR=$ac_cv_prog_ac_ct_AR
     10900if test -n "$ac_ct_AR"; then
     10901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
     10902$as_echo "$ac_ct_AR" >&6; }
     10903else
     10904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     10905$as_echo "no" >&6; }
     10906fi
     10907
     10908
     10909  test -n "$ac_ct_AR" && break
     10910done
     10911
     10912  if test "x$ac_ct_AR" = x; then
     10913    AR="false"
     10914  else
     10915    case $cross_compiling:$ac_tool_warned in
     10916yes:)
     10917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     10918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     10919ac_tool_warned=yes ;;
     10920esac
     10921    AR=$ac_ct_AR
     10922  fi
     10923fi
     10924
     10925: ${AR=ar}
     10926: ${AR_FLAGS=cru}
     10927
     10928
     10929
     10930
     10931
     10932
     10933
     10934
     10935
     10936
     10937
     10938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
     10939$as_echo_n "checking for archiver @FILE support... " >&6; }
     10940if ${lt_cv_ar_at_file+:} false; then :
     10941  $as_echo_n "(cached) " >&6
     10942else
     10943  lt_cv_ar_at_file=no
     10944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1482910945/* end confdefs.h.  */
    1483010946
     
    1483710953}
    1483810954_ACEOF
    14839 rm -f conftest.$ac_objext conftest$ac_exeext
    14840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    14841   (eval $ac_link) 2>conftest.er1
     10955if ac_fn_c_try_compile "$LINENO"; then :
     10956  echo conftest.$ac_objext > conftest.lst
     10957      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
     10958      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
     10959  (eval $lt_ar_try) 2>&5
    1484210960  ac_status=$?
    14843   grep -v '^ *+' conftest.er1 >conftest.err
    14844   rm -f conftest.er1
    14845   cat conftest.err >&5
    14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14847   (exit $ac_status); } &&
    14848          { ac_try='test -z "$ac_c_werror_flag"
    14849                          || test ! -s conftest.err'
    14850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    14851   (eval $ac_try) 2>&5
     10961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     10962  test $ac_status = 0; }
     10963      if test "$ac_status" -eq 0; then
     10964        # Ensure the archiver fails upon bogus file names.
     10965        rm -f conftest.$ac_objext libconftest.a
     10966        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
     10967  (eval $lt_ar_try) 2>&5
    1485210968  ac_status=$?
    14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14854   (exit $ac_status); }; } &&
    14855          { ac_try='test -s conftest$ac_exeext'
    14856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    14857   (eval $ac_try) 2>&5
    14858   ac_status=$?
    14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14860   (exit $ac_status); }; }; then
    14861   lt_cv_cc_needs_belf=yes
    14862 else
    14863   echo "$as_me: failed program was:" >&5
    14864 sed 's/^/| /' conftest.$ac_ext >&5
    14865 
    14866 lt_cv_cc_needs_belf=no
    14867 fi
    14868 rm -f conftest.err conftest.$ac_objext \
    14869       conftest$ac_exeext conftest.$ac_ext
    14870      ac_ext=c
    14871 ac_cpp='$CPP $CPPFLAGS'
    14872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    14873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    14874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    14875 
    14876 fi
    14877 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
    14878 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
    14879   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    14880     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    14881     CFLAGS="$SAVE_CFLAGS"
     10969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     10970  test $ac_status = 0; }
     10971        if test "$ac_status" -ne 0; then
     10972          lt_cv_ar_at_file=@
     10973        fi
     10974      fi
     10975      rm -f conftest.* libconftest.a
     10976
     10977fi
     10978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     10979
     10980fi
     10981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
     10982$as_echo "$lt_cv_ar_at_file" >&6; }
     10983
     10984if test "x$lt_cv_ar_at_file" = xno; then
     10985  archiver_list_spec=
     10986else
     10987  archiver_list_spec=$lt_cv_ar_at_file
     10988fi
     10989
     10990
     10991
     10992
     10993
     10994
     10995
     10996if test -n "$ac_tool_prefix"; then
     10997  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
     10998set dummy ${ac_tool_prefix}strip; ac_word=$2
     10999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     11000$as_echo_n "checking for $ac_word... " >&6; }
     11001if ${ac_cv_prog_STRIP+:} false; then :
     11002  $as_echo_n "(cached) " >&6
     11003else
     11004  if test -n "$STRIP"; then
     11005  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
     11006else
     11007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     11008for as_dir in $PATH
     11009do
     11010  IFS=$as_save_IFS
     11011  test -z "$as_dir" && as_dir=.
     11012    for ac_exec_ext in '' $ac_executable_extensions; do
     11013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     11014    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
     11015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     11016    break 2
    1488211017  fi
    14883   ;;
    14884 sparc*-*solaris*)
    14885   # Find out which ABI we are using.
    14886   echo 'int i;' > conftest.$ac_ext
    14887   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    14888   (eval $ac_compile) 2>&5
    14889   ac_status=$?
    14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14891   (exit $ac_status); }; then
    14892     case `/usr/bin/file conftest.o` in
    14893     *64-bit*)
    14894       case $lt_cv_prog_gnu_ld in
    14895       yes*) LD="${LD-ld} -m elf64_sparc" ;;
    14896       *)    LD="${LD-ld} -64" ;;
    14897       esac
    14898       ;;
    14899     esac
     11018done
     11019  done
     11020IFS=$as_save_IFS
     11021
     11022fi
     11023fi
     11024STRIP=$ac_cv_prog_STRIP
     11025if test -n "$STRIP"; then
     11026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
     11027$as_echo "$STRIP" >&6; }
     11028else
     11029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     11030$as_echo "no" >&6; }
     11031fi
     11032
     11033
     11034fi
     11035if test -z "$ac_cv_prog_STRIP"; then
     11036  ac_ct_STRIP=$STRIP
     11037  # Extract the first word of "strip", so it can be a program name with args.
     11038set dummy strip; ac_word=$2
     11039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     11040$as_echo_n "checking for $ac_word... " >&6; }
     11041if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
     11042  $as_echo_n "(cached) " >&6
     11043else
     11044  if test -n "$ac_ct_STRIP"; then
     11045  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
     11046else
     11047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     11048for as_dir in $PATH
     11049do
     11050  IFS=$as_save_IFS
     11051  test -z "$as_dir" && as_dir=.
     11052    for ac_exec_ext in '' $ac_executable_extensions; do
     11053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     11054    ac_cv_prog_ac_ct_STRIP="strip"
     11055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     11056    break 2
    1490011057  fi
    14901   rm -rf conftest*
    14902   ;;
    14903 
    14904 
     11058done
     11059  done
     11060IFS=$as_save_IFS
     11061
     11062fi
     11063fi
     11064ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
     11065if test -n "$ac_ct_STRIP"; then
     11066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
     11067$as_echo "$ac_ct_STRIP" >&6; }
     11068else
     11069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     11070$as_echo "no" >&6; }
     11071fi
     11072
     11073  if test "x$ac_ct_STRIP" = x; then
     11074    STRIP=":"
     11075  else
     11076    case $cross_compiling:$ac_tool_warned in
     11077yes:)
     11078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     11079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     11080ac_tool_warned=yes ;;
    1490511081esac
    14906 
    14907 need_locks="$enable_libtool_lock"
    14908 
    14909 
    14910 
    14911 for ac_header in dlfcn.h
     11082    STRIP=$ac_ct_STRIP
     11083  fi
     11084else
     11085  STRIP="$ac_cv_prog_STRIP"
     11086fi
     11087
     11088test -z "$STRIP" && STRIP=:
     11089
     11090
     11091
     11092
     11093
     11094
     11095if test -n "$ac_tool_prefix"; then
     11096  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     11097set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     11098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     11099$as_echo_n "checking for $ac_word... " >&6; }
     11100if ${ac_cv_prog_RANLIB+:} false; then :
     11101  $as_echo_n "(cached) " >&6
     11102else
     11103  if test -n "$RANLIB"; then
     11104  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     11105else
     11106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     11107for as_dir in $PATH
    1491211108do
    14913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    14914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    14915   echo "$as_me:$LINENO: checking for $ac_header" >&5
    14916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    14918   echo $ECHO_N "(cached) $ECHO_C" >&6
    14919 fi
    14920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    14921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    14922 else
    14923   # Is the header compilable?
    14924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    14925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    14926 cat >conftest.$ac_ext <<_ACEOF
    14927 /* confdefs.h.  */
    14928 _ACEOF
    14929 cat confdefs.h >>conftest.$ac_ext
    14930 cat >>conftest.$ac_ext <<_ACEOF
    14931 /* end confdefs.h.  */
    14932 $ac_includes_default
    14933 #include <$ac_header>
    14934 _ACEOF
    14935 rm -f conftest.$ac_objext
    14936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    14937   (eval $ac_compile) 2>conftest.er1
    14938   ac_status=$?
    14939   grep -v '^ *+' conftest.er1 >conftest.err
    14940   rm -f conftest.er1
    14941   cat conftest.err >&5
    14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14943   (exit $ac_status); } &&
    14944          { ac_try='test -z "$ac_c_werror_flag"
    14945                          || test ! -s conftest.err'
    14946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    14947   (eval $ac_try) 2>&5
    14948   ac_status=$?
    14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14950   (exit $ac_status); }; } &&
    14951          { ac_try='test -s conftest.$ac_objext'
    14952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    14953   (eval $ac_try) 2>&5
    14954   ac_status=$?
    14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14956   (exit $ac_status); }; }; then
    14957   ac_header_compiler=yes
    14958 else
    14959   echo "$as_me: failed program was:" >&5
    14960 sed 's/^/| /' conftest.$ac_ext >&5
    14961 
    14962 ac_header_compiler=no
    14963 fi
    14964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    14965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    14966 echo "${ECHO_T}$ac_header_compiler" >&6
    14967 
    14968 # Is the header present?
    14969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    14970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    14971 cat >conftest.$ac_ext <<_ACEOF
    14972 /* confdefs.h.  */
    14973 _ACEOF
    14974 cat confdefs.h >>conftest.$ac_ext
    14975 cat >>conftest.$ac_ext <<_ACEOF
    14976 /* end confdefs.h.  */
    14977 #include <$ac_header>
    14978 _ACEOF
    14979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    14980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    14981   ac_status=$?
    14982   grep -v '^ *+' conftest.er1 >conftest.err
    14983   rm -f conftest.er1
    14984   cat conftest.err >&5
    14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14986   (exit $ac_status); } >/dev/null; then
    14987   if test -s conftest.err; then
    14988     ac_cpp_err=$ac_c_preproc_warn_flag
    14989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     11109  IFS=$as_save_IFS
     11110  test -z "$as_dir" && as_dir=.
     11111    for ac_exec_ext in '' $ac_executable_extensions; do
     11112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     11113    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     11114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     11115    break 2
     11116  fi
     11117done
     11118  done
     11119IFS=$as_save_IFS
     11120
     11121fi
     11122fi
     11123RANLIB=$ac_cv_prog_RANLIB
     11124if test -n "$RANLIB"; then
     11125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
     11126$as_echo "$RANLIB" >&6; }
     11127else
     11128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     11129$as_echo "no" >&6; }
     11130fi
     11131
     11132
     11133fi
     11134if test -z "$ac_cv_prog_RANLIB"; then
     11135  ac_ct_RANLIB=$RANLIB
     11136  # Extract the first word of "ranlib", so it can be a program name with args.
     11137set dummy ranlib; ac_word=$2
     11138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     11139$as_echo_n "checking for $ac_word... " >&6; }
     11140if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
     11141  $as_echo_n "(cached) " >&6
     11142else
     11143  if test -n "$ac_ct_RANLIB"; then
     11144  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     11145else
     11146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     11147for as_dir in $PATH
     11148do
     11149  IFS=$as_save_IFS
     11150  test -z "$as_dir" && as_dir=.
     11151    for ac_exec_ext in '' $ac_executable_extensions; do
     11152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     11153    ac_cv_prog_ac_ct_RANLIB="ranlib"
     11154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     11155    break 2
     11156  fi
     11157done
     11158  done
     11159IFS=$as_save_IFS
     11160
     11161fi
     11162fi
     11163ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     11164if test -n "$ac_ct_RANLIB"; then
     11165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
     11166$as_echo "$ac_ct_RANLIB" >&6; }
     11167else
     11168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     11169$as_echo "no" >&6; }
     11170fi
     11171
     11172  if test "x$ac_ct_RANLIB" = x; then
     11173    RANLIB=":"
    1499011174  else
    14991     ac_cpp_err=
     11175    case $cross_compiling:$ac_tool_warned in
     11176yes:)
     11177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     11178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     11179ac_tool_warned=yes ;;
     11180esac
     11181    RANLIB=$ac_ct_RANLIB
    1499211182  fi
    1499311183else
    14994   ac_cpp_err=yes
    14995 fi
    14996 if test -z "$ac_cpp_err"; then
    14997   ac_header_preproc=yes
    14998 else
    14999   echo "$as_me: failed program was:" >&5
    15000 sed 's/^/| /' conftest.$ac_ext >&5
    15001 
    15002   ac_header_preproc=no
    15003 fi
    15004 rm -f conftest.err conftest.$ac_ext
    15005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    15006 echo "${ECHO_T}$ac_header_preproc" >&6
    15007 
    15008 # So?  What about this header?
    15009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    15010   yes:no: )
    15011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    15012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    15013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    15014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    15015     ac_header_preproc=yes
    15016     ;;
    15017   no:yes:* )
    15018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    15019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    15020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    15021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    15022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    15023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    15024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    15025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    15026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    15027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    15028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    15029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    15030     (
    15031       cat <<\_ASBOX
    15032 ## ------------------------------------------ ##
    15033 ## Report this to the AC_PACKAGE_NAME lists.  ##
    15034 ## ------------------------------------------ ##
    15035 _ASBOX
    15036     ) |
    15037       sed "s/^/$as_me: WARNING:     /" >&2
    15038     ;;
    15039 esac
    15040 echo "$as_me:$LINENO: checking for $ac_header" >&5
    15041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    15042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    15043   echo $ECHO_N "(cached) $ECHO_C" >&6
    15044 else
    15045   eval "$as_ac_Header=\$ac_header_preproc"
    15046 fi
    15047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    15048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    15049 
    15050 fi
    15051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    15052   cat >>confdefs.h <<_ACEOF
    15053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    15054 _ACEOF
    15055 
    15056 fi
    15057 
    15058 done
    15059 
    15060 
    15061 
    15062 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    15063     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    15064     (test "X$CXX" != "Xg++"))) ; then
    15065   ac_ext=cc
    15066 ac_cpp='$CXXCPP $CPPFLAGS'
    15067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    15068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    15069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    15070 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
    15071 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
    15072 if test -z "$CXXCPP"; then
    15073   if test "${ac_cv_prog_CXXCPP+set}" = set; then
    15074   echo $ECHO_N "(cached) $ECHO_C" >&6
    15075 else
    15076       # Double quotes because CXXCPP needs to be expanded
    15077     for CXXCPP in "$CXX -E" "/lib/cpp"
    15078     do
    15079       ac_preproc_ok=false
    15080 for ac_cxx_preproc_warn_flag in '' yes
    15081 do
    15082   # Use a header file that comes with gcc, so configuring glibc
    15083   # with a fresh cross-compiler works.
    15084   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15085   # <limits.h> exists even on freestanding compilers.
    15086   # On the NeXT, cc -E runs the code through the compiler's parser,
    15087   # not just through cpp. "Syntax error" is here to catch this case.
    15088   cat >conftest.$ac_ext <<_ACEOF
    15089 /* confdefs.h.  */
    15090 _ACEOF
    15091 cat confdefs.h >>conftest.$ac_ext
    15092 cat >>conftest.$ac_ext <<_ACEOF
    15093 /* end confdefs.h.  */
    15094 #ifdef __STDC__
    15095 # include <limits.h>
    15096 #else
    15097 # include <assert.h>
    15098 #endif
    15099                      Syntax error
    15100 _ACEOF
    15101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    15102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    15103   ac_status=$?
    15104   grep -v '^ *+' conftest.er1 >conftest.err
    15105   rm -f conftest.er1
    15106   cat conftest.err >&5
    15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15108   (exit $ac_status); } >/dev/null; then
    15109   if test -s conftest.err; then
    15110     ac_cpp_err=$ac_cxx_preproc_warn_flag
    15111     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    15112   else
    15113     ac_cpp_err=
    15114   fi
    15115 else
    15116   ac_cpp_err=yes
    15117 fi
    15118 if test -z "$ac_cpp_err"; then
    15119   :
    15120 else
    15121   echo "$as_me: failed program was:" >&5
    15122 sed 's/^/| /' conftest.$ac_ext >&5
    15123 
    15124   # Broken: fails on valid input.
    15125 continue
    15126 fi
    15127 rm -f conftest.err conftest.$ac_ext
    15128 
    15129   # OK, works on sane cases.  Now check whether non-existent headers
    15130   # can be detected and how.
    15131   cat >conftest.$ac_ext <<_ACEOF
    15132 /* confdefs.h.  */
    15133 _ACEOF
    15134 cat confdefs.h >>conftest.$ac_ext
    15135 cat >>conftest.$ac_ext <<_ACEOF
    15136 /* end confdefs.h.  */
    15137 #include <ac_nonexistent.h>
    15138 _ACEOF
    15139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    15140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    15141   ac_status=$?
    15142   grep -v '^ *+' conftest.er1 >conftest.err
    15143   rm -f conftest.er1
    15144   cat conftest.err >&5
    15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15146   (exit $ac_status); } >/dev/null; then
    15147   if test -s conftest.err; then
    15148     ac_cpp_err=$ac_cxx_preproc_warn_flag
    15149     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    15150   else
    15151     ac_cpp_err=
    15152   fi
    15153 else
    15154   ac_cpp_err=yes
    15155 fi
    15156 if test -z "$ac_cpp_err"; then
    15157   # Broken: success on invalid input.
    15158 continue
    15159 else
    15160   echo "$as_me: failed program was:" >&5
    15161 sed 's/^/| /' conftest.$ac_ext >&5
    15162 
    15163   # Passes both tests.
    15164 ac_preproc_ok=:
    15165 break
    15166 fi
    15167 rm -f conftest.err conftest.$ac_ext
    15168 
    15169 done
    15170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    15171 rm -f conftest.err conftest.$ac_ext
    15172 if $ac_preproc_ok; then
    15173   break
    15174 fi
    15175 
    15176     done
    15177     ac_cv_prog_CXXCPP=$CXXCPP
    15178 
    15179 fi
    15180   CXXCPP=$ac_cv_prog_CXXCPP
    15181 else
    15182   ac_cv_prog_CXXCPP=$CXXCPP
    15183 fi
    15184 echo "$as_me:$LINENO: result: $CXXCPP" >&5
    15185 echo "${ECHO_T}$CXXCPP" >&6
    15186 ac_preproc_ok=false
    15187 for ac_cxx_preproc_warn_flag in '' yes
    15188 do
    15189   # Use a header file that comes with gcc, so configuring glibc
    15190   # with a fresh cross-compiler works.
    15191   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    15192   # <limits.h> exists even on freestanding compilers.
    15193   # On the NeXT, cc -E runs the code through the compiler's parser,
    15194   # not just through cpp. "Syntax error" is here to catch this case.
    15195   cat >conftest.$ac_ext <<_ACEOF
    15196 /* confdefs.h.  */
    15197 _ACEOF
    15198 cat confdefs.h >>conftest.$ac_ext
    15199 cat >>conftest.$ac_ext <<_ACEOF
    15200 /* end confdefs.h.  */
    15201 #ifdef __STDC__
    15202 # include <limits.h>
    15203 #else
    15204 # include <assert.h>
    15205 #endif
    15206                      Syntax error
    15207 _ACEOF
    15208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    15209   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    15210   ac_status=$?
    15211   grep -v '^ *+' conftest.er1 >conftest.err
    15212   rm -f conftest.er1
    15213   cat conftest.err >&5
    15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15215   (exit $ac_status); } >/dev/null; then
    15216   if test -s conftest.err; then
    15217     ac_cpp_err=$ac_cxx_preproc_warn_flag
    15218     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    15219   else
    15220     ac_cpp_err=
    15221   fi
    15222 else
    15223   ac_cpp_err=yes
    15224 fi
    15225 if test -z "$ac_cpp_err"; then
    15226   :
    15227 else
    15228   echo "$as_me: failed program was:" >&5
    15229 sed 's/^/| /' conftest.$ac_ext >&5
    15230 
    15231   # Broken: fails on valid input.
    15232 continue
    15233 fi
    15234 rm -f conftest.err conftest.$ac_ext
    15235 
    15236   # OK, works on sane cases.  Now check whether non-existent headers
    15237   # can be detected and how.
    15238   cat >conftest.$ac_ext <<_ACEOF
    15239 /* confdefs.h.  */
    15240 _ACEOF
    15241 cat confdefs.h >>conftest.$ac_ext
    15242 cat >>conftest.$ac_ext <<_ACEOF
    15243 /* end confdefs.h.  */
    15244 #include <ac_nonexistent.h>
    15245 _ACEOF
    15246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    15247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    15248   ac_status=$?
    15249   grep -v '^ *+' conftest.er1 >conftest.err
    15250   rm -f conftest.er1
    15251   cat conftest.err >&5
    15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15253   (exit $ac_status); } >/dev/null; then
    15254   if test -s conftest.err; then
    15255     ac_cpp_err=$ac_cxx_preproc_warn_flag
    15256     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    15257   else
    15258     ac_cpp_err=
    15259   fi
    15260 else
    15261   ac_cpp_err=yes
    15262 fi
    15263 if test -z "$ac_cpp_err"; then
    15264   # Broken: success on invalid input.
    15265 continue
    15266 else
    15267   echo "$as_me: failed program was:" >&5
    15268 sed 's/^/| /' conftest.$ac_ext >&5
    15269 
    15270   # Passes both tests.
    15271 ac_preproc_ok=:
    15272 break
    15273 fi
    15274 rm -f conftest.err conftest.$ac_ext
    15275 
    15276 done
    15277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    15278 rm -f conftest.err conftest.$ac_ext
    15279 if $ac_preproc_ok; then
    15280   :
    15281 else
    15282   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    15283 See \`config.log' for more details." >&5
    15284 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    15285 See \`config.log' for more details." >&2;}
    15286    { (exit 1); exit 1; }; }
    15287 fi
    15288 
    15289 ac_ext=cc
    15290 ac_cpp='$CXXCPP $CPPFLAGS'
    15291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    15292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    15293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    15294 
    15295 fi
    15296 
    15297 
    15298 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
    15299 
    15300 # find the maximum length of command line arguments
    15301 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
    15302 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
    15303 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
    15304   echo $ECHO_N "(cached) $ECHO_C" >&6
    15305 else
    15306     i=0
    15307   teststring="ABCD"
    15308 
    15309   case $build_os in
    15310   msdosdjgpp*)
    15311     # On DJGPP, this test can blow up pretty badly due to problems in libc
    15312     # (any single argument exceeding 2000 bytes causes a buffer overrun
    15313     # during glob expansion).  Even if it were fixed, the result of this
    15314     # check would be larger than it should be.
    15315     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    15316     ;;
    15317 
    15318   gnu*)
    15319     # Under GNU Hurd, this test is not required because there is
    15320     # no limit to the length of command line arguments.
    15321     # Libtool will interpret -1 as no limit whatsoever
    15322     lt_cv_sys_max_cmd_len=-1;
    15323     ;;
    15324 
    15325   cygwin* | mingw*)
    15326     # On Win9x/ME, this test blows up -- it succeeds, but takes
    15327     # about 5 minutes as the teststring grows exponentially.
    15328     # Worse, since 9x/ME are not pre-emptively multitasking,
    15329     # you end up with a "frozen" computer, even though with patience
    15330     # the test eventually succeeds (with a max line length of 256k).
    15331     # Instead, let's just punt: use the minimum linelength reported by
    15332     # all of the supported platforms: 8192 (on NT/2K/XP).
    15333     lt_cv_sys_max_cmd_len=8192;
    15334     ;;
    15335 
    15336   amigaos*)
    15337     # On AmigaOS with pdksh, this test takes hours, literally.
    15338     # So we just punt and use a minimum line length of 8192.
    15339     lt_cv_sys_max_cmd_len=8192;
    15340     ;;
    15341 
    15342   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    15343     # This has been around since 386BSD, at least.  Likely further.
    15344     if test -x /sbin/sysctl; then
    15345       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    15346     elif test -x /usr/sbin/sysctl; then
    15347       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    15348     else
    15349       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
    15350     fi
    15351     # And add a safety zone
    15352     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    15353     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
    15354     ;;
    15355 
    15356   interix*)
    15357     # We know the value 262144 and hardcode it with a safety zone (like BSD)
    15358     lt_cv_sys_max_cmd_len=196608
    15359     ;;
    15360 
    15361   osf*)
    15362     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
    15363     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
    15364     # nice to cause kernel panics so lets avoid the loop below.
    15365     # First set a reasonable default.
    15366     lt_cv_sys_max_cmd_len=16384
    15367     #
    15368     if test -x /sbin/sysconfig; then
    15369       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
    15370         *1*) lt_cv_sys_max_cmd_len=-1 ;;
    15371       esac
    15372     fi
    15373     ;;
    15374   sco3.2v5*)
    15375     lt_cv_sys_max_cmd_len=102400
    15376     ;;
    15377   sysv5* | sco5v6* | sysv4.2uw2*)
    15378     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
    15379     if test -n "$kargmax"; then
    15380       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
    15381     else
    15382       lt_cv_sys_max_cmd_len=32768
    15383     fi
     11184  RANLIB="$ac_cv_prog_RANLIB"
     11185fi
     11186
     11187test -z "$RANLIB" && RANLIB=:
     11188
     11189
     11190
     11191
     11192
     11193
     11194# Determine commands to create old-style static archives.
     11195old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
     11196old_postinstall_cmds='chmod 644 $oldlib'
     11197old_postuninstall_cmds=
     11198
     11199if test -n "$RANLIB"; then
     11200  case $host_os in
     11201  openbsd*)
     11202    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
    1538411203    ;;
    1538511204  *)
    15386     # If test is not a shell built-in, we'll probably end up computing a
    15387     # maximum length that is only half of the actual maximum length, but
    15388     # we can't tell.
    15389     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
    15390     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
    15391                = "XX$teststring") >/dev/null 2>&1 &&
    15392             new_result=`expr "X$teststring" : ".*" 2>&1` &&
    15393             lt_cv_sys_max_cmd_len=$new_result &&
    15394             test $i != 17 # 1/2 MB should be enough
    15395     do
    15396       i=`expr $i + 1`
    15397       teststring=$teststring$teststring
    15398     done
    15399     teststring=
    15400     # Add a significant safety factor because C++ compilers can tack on massive
    15401     # amounts of additional arguments before passing them to the linker.
    15402     # It appears as though 1/2 is a usable value.
    15403     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     11205    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
    1540411206    ;;
    1540511207  esac
    15406 
    15407 fi
    15408 
    15409 if test -n $lt_cv_sys_max_cmd_len ; then
    15410   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
    15411 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
    15412 else
    15413   echo "$as_me:$LINENO: result: none" >&5
    15414 echo "${ECHO_T}none" >&6
    15415 fi
    15416 
    15417 
     11208  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
     11209fi
     11210
     11211case $host_os in
     11212  darwin*)
     11213    lock_old_archive_extraction=yes ;;
     11214  *)
     11215    lock_old_archive_extraction=no ;;
     11216esac
     11217
     11218
     11219
     11220
     11221
     11222
     11223
     11224
     11225
     11226
     11227
     11228
     11229
     11230
     11231
     11232
     11233
     11234
     11235
     11236
     11237
     11238for ac_prog in gawk mawk nawk awk
     11239do
     11240  # Extract the first word of "$ac_prog", so it can be a program name with args.
     11241set dummy $ac_prog; ac_word=$2
     11242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     11243$as_echo_n "checking for $ac_word... " >&6; }
     11244if ${ac_cv_prog_AWK+:} false; then :
     11245  $as_echo_n "(cached) " >&6
     11246else
     11247  if test -n "$AWK"; then
     11248  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     11249else
     11250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     11251for as_dir in $PATH
     11252do
     11253  IFS=$as_save_IFS
     11254  test -z "$as_dir" && as_dir=.
     11255    for ac_exec_ext in '' $ac_executable_extensions; do
     11256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     11257    ac_cv_prog_AWK="$ac_prog"
     11258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     11259    break 2
     11260  fi
     11261done
     11262  done
     11263IFS=$as_save_IFS
     11264
     11265fi
     11266fi
     11267AWK=$ac_cv_prog_AWK
     11268if test -n "$AWK"; then
     11269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
     11270$as_echo "$AWK" >&6; }
     11271else
     11272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     11273$as_echo "no" >&6; }
     11274fi
     11275
     11276
     11277  test -n "$AWK" && break
     11278done
     11279
     11280
     11281
     11282
     11283
     11284
     11285
     11286
     11287
     11288
     11289
     11290
     11291
     11292
     11293
     11294
     11295
     11296
     11297
     11298# If no C compiler was specified, use CC.
     11299LTCC=${LTCC-"$CC"}
     11300
     11301# If no C compiler flags were specified, use CFLAGS.
     11302LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     11303
     11304# Allow CC to be a program name with arguments.
     11305compiler=$CC
    1541811306
    1541911307
    1542011308# Check for command to grab the raw symbol name followed by C symbol from nm.
    15421 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
    15422 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
    15423 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
    15424   echo $ECHO_N "(cached) $ECHO_C" >&6
     11309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
     11310$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
     11311if ${lt_cv_sys_global_symbol_pipe+:} false; then :
     11312  $as_echo_n "(cached) " >&6
    1542511313else
    1542611314
     
    1543311321# Regexp to match symbols that can be accessed directly from C.
    1543411322sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
    15435 
    15436 # Transform an extracted symbol line into a proper C declaration
    15437 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
    15438 
    15439 # Transform an extracted symbol line into symbol name and symbol address
    15440 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    1544111323
    1544211324# Define system-specific variables.
     
    1544511327  symcode='[BCDT]'
    1544611328  ;;
    15447 cygwin* | mingw* | pw32*)
     11329cygwin* | mingw* | pw32* | cegcc*)
    1544811330  symcode='[ABCDGISTW]'
    1544911331  ;;
    15450 hpux*) # Its linker distinguishes data from code symbols
     11332hpux*)
    1545111333  if test "$host_cpu" = ia64; then
    1545211334    symcode='[ABCDEGRST]'
    15453   fi
    15454   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    15455   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    15456   ;;
    15457 linux*)
    15458   if test "$host_cpu" = ia64; then
    15459     symcode='[ABCDGIRSTW]'
    15460     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    15461     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    1546211335  fi
    1546311336  ;;
     
    1548511358esac
    1548611359
    15487 # Handle CRLF in mingw tool chain
    15488 opt_cr=
    15489 case $build_os in
    15490 mingw*)
    15491   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
    15492   ;;
    15493 esac
    15494 
    1549511360# If we're using GNU nm, then use its standard symbol codes.
    1549611361case `$NM -V 2>&1` in
     
    1549911364esac
    1550011365
    15501 # Try without a prefix undercore, then with it.
     11366# Transform an extracted symbol line into a proper C declaration.
     11367# Some systems (esp. on ia64) link data and code symbols differently,
     11368# so use this general approach.
     11369lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     11370
     11371# Transform an extracted symbol line into symbol name and symbol address
     11372lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
     11373lt_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'"
     11374
     11375# Handle CRLF in mingw tool chain
     11376opt_cr=
     11377case $build_os in
     11378mingw*)
     11379  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
     11380  ;;
     11381esac
     11382
     11383# Try without a prefix underscore, then with it.
    1550211384for ac_symprfx in "" "_"; do
    1550311385
     
    1550611388
    1550711389  # Write the raw and C identifiers.
    15508   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
     11390  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
     11391    # Fake it for dumpbin and say T for any non-static function
     11392    # and D for any global variable.
     11393    # Also find C++ and __fastcall symbols from MSVC++,
     11394    # which start with @ or ?.
     11395    lt_cv_sys_global_symbol_pipe="$AWK '"\
     11396"     {last_section=section; section=\$ 3};"\
     11397"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
     11398"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
     11399"     \$ 0!~/External *\|/{next};"\
     11400"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
     11401"     {if(hide[section]) next};"\
     11402"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
     11403"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
     11404"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
     11405"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
     11406"     ' prfx=^$ac_symprfx"
     11407  else
     11408    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
     11409  fi
     11410  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
    1550911411
    1551011412  # Check to see that the pipe works correctly.
     
    1551211414
    1551311415  rm -f conftest*
    15514   cat > conftest.$ac_ext <<EOF
     11416  cat > conftest.$ac_ext <<_LT_EOF
    1551511417#ifdef __cplusplus
    1551611418extern "C" {
    1551711419#endif
    1551811420char nm_test_var;
    15519 void nm_test_func(){}
     11421void nm_test_func(void);
     11422void nm_test_func(void){}
    1552011423#ifdef __cplusplus
    1552111424}
    1552211425#endif
    1552311426int main(){nm_test_var='a';nm_test_func();return(0);}
    15524 EOF
    15525 
    15526   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     11427_LT_EOF
     11428
     11429  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    1552711430  (eval $ac_compile) 2>&5
    1552811431  ac_status=$?
    15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15530   (exit $ac_status); }; then
     11432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     11433  test $ac_status = 0; }; then
    1553111434    # Now try to grab the symbols.
    1553211435    nlist=conftest.nm
    15533     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
    15534   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
     11436    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
     11437  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
    1553511438  ac_status=$?
    15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15537   (exit $ac_status); } && test -s "$nlist"; then
     11439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     11440  test $ac_status = 0; } && test -s "$nlist"; then
    1553811441      # Try sorting and uniquifying the output.
    1553911442      if sort "$nlist" | uniq > "$nlist"T; then
     
    1554411447
    1554511448      # Make sure that we snagged all the symbols we need.
    15546       if grep ' nm_test_var$' "$nlist" >/dev/null; then
    15547         if grep ' nm_test_func$' "$nlist" >/dev/null; then
    15548           cat <<EOF > conftest.$ac_ext
     11449      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
     11450        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
     11451          cat <<_LT_EOF > conftest.$ac_ext
     11452/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
     11453#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
     11454/* DATA imports from DLLs on WIN32 con't be const, because runtime
     11455   relocations are performed -- see ld's documentation on pseudo-relocs.  */
     11456# define LT_DLSYM_CONST
     11457#elif defined(__osf__)
     11458/* This system does not cope well with relocations in const data.  */
     11459# define LT_DLSYM_CONST
     11460#else
     11461# define LT_DLSYM_CONST const
     11462#endif
     11463
    1554911464#ifdef __cplusplus
    1555011465extern "C" {
    1555111466#endif
    1555211467
    15553 EOF
     11468_LT_EOF
    1555411469          # Now generate the symbol file.
    15555           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
    15556 
    15557           cat <<EOF >> conftest.$ac_ext
    15558 #if defined (__STDC__) && __STDC__
    15559 # define lt_ptr_t void *
    15560 #else
    15561 # define lt_ptr_t char *
    15562 # define const
     11470          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
     11471
     11472          cat <<_LT_EOF >> conftest.$ac_ext
     11473
     11474/* The mapping between symbol names and symbols.  */
     11475LT_DLSYM_CONST struct {
     11476  const char *name;
     11477  void       *address;
     11478}
     11479lt__PROGRAM__LTX_preloaded_symbols[] =
     11480{
     11481  { "@PROGRAM@", (void *) 0 },
     11482_LT_EOF
     11483          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
     11484          cat <<\_LT_EOF >> conftest.$ac_ext
     11485  {0, (void *) 0}
     11486};
     11487
     11488/* This works around a problem in FreeBSD linker */
     11489#ifdef FREEBSD_WORKAROUND
     11490static const void *lt_preloaded_setup() {
     11491  return lt__PROGRAM__LTX_preloaded_symbols;
     11492}
    1556311493#endif
    15564 
    15565 /* The mapping between symbol names and symbols. */
    15566 const struct {
    15567   const char *name;
    15568   lt_ptr_t address;
    15569 }
    15570 lt_preloaded_symbols[] =
    15571 {
    15572 EOF
    15573           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
    15574           cat <<\EOF >> conftest.$ac_ext
    15575   {0, (lt_ptr_t) 0}
    15576 };
    1557711494
    1557811495#ifdef __cplusplus
    1557911496}
    1558011497#endif
    15581 EOF
     11498_LT_EOF
    1558211499          # Now try linking the two files.
    1558311500          mv conftest.$ac_objext conftstm.$ac_objext
    15584           lt_save_LIBS="$LIBS"
    15585           lt_save_CFLAGS="$CFLAGS"
     11501          lt_globsym_save_LIBS=$LIBS
     11502          lt_globsym_save_CFLAGS=$CFLAGS
    1558611503          LIBS="conftstm.$ac_objext"
    1558711504          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
    15588           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     11505          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
    1558911506  (eval $ac_link) 2>&5
    1559011507  ac_status=$?
    15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    15592   (exit $ac_status); } && test -s conftest${ac_exeext}; then
     11508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     11509  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
    1559311510            pipe_works=yes
    1559411511          fi
    15595           LIBS="$lt_save_LIBS"
    15596           CFLAGS="$lt_save_CFLAGS"
     11512          LIBS=$lt_globsym_save_LIBS
     11513          CFLAGS=$lt_globsym_save_CFLAGS
    1559711514        else
    1559811515          echo "cannot find nm_test_func in $nlist" >&5
     
    1560811525    cat conftest.$ac_ext >&5
    1560911526  fi
    15610   rm -f conftest* conftst*
     11527  rm -rf conftest* conftst*
    1561111528
    1561211529  # Do not use the global_symbol_pipe unless it works.
     
    1562411541fi
    1562511542if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
    15626   echo "$as_me:$LINENO: result: failed" >&5
    15627 echo "${ECHO_T}failed" >&6
    15628 else
    15629   echo "$as_me:$LINENO: result: ok" >&5
    15630 echo "${ECHO_T}ok" >&6
    15631 fi
    15632 
    15633 echo "$as_me:$LINENO: checking for objdir" >&5
    15634 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
    15635 if test "${lt_cv_objdir+set}" = set; then
    15636   echo $ECHO_N "(cached) $ECHO_C" >&6
     11543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
     11544$as_echo "failed" >&6; }
     11545else
     11546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
     11547$as_echo "ok" >&6; }
     11548fi
     11549
     11550# Response file support.
     11551if test "$lt_cv_nm_interface" = "MS dumpbin"; then
     11552  nm_file_list_spec='@'
     11553elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
     11554  nm_file_list_spec='@'
     11555fi
     11556
     11557
     11558
     11559
     11560
     11561
     11562
     11563
     11564
     11565
     11566
     11567
     11568
     11569
     11570
     11571
     11572
     11573
     11574
     11575
     11576
     11577
     11578
     11579
     11580
     11581
     11582
     11583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
     11584$as_echo_n "checking for sysroot... " >&6; }
     11585
     11586# Check whether --with-sysroot was given.
     11587if test "${with_sysroot+set}" = set; then :
     11588  withval=$with_sysroot;
     11589else
     11590  with_sysroot=no
     11591fi
     11592
     11593
     11594lt_sysroot=
     11595case ${with_sysroot} in #(
     11596 yes)
     11597   if test "$GCC" = yes; then
     11598     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
     11599   fi
     11600   ;; #(
     11601 /*)
     11602   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
     11603   ;; #(
     11604 no|'')
     11605   ;; #(
     11606 *)
     11607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
     11608$as_echo "${with_sysroot}" >&6; }
     11609   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
     11610   ;;
     11611esac
     11612
     11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
     11614$as_echo "${lt_sysroot:-no}" >&6; }
     11615
     11616
     11617
     11618
     11619
     11620# Check whether --enable-libtool-lock was given.
     11621if test "${enable_libtool_lock+set}" = set; then :
     11622  enableval=$enable_libtool_lock;
     11623fi
     11624
     11625test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
     11626
     11627# Some flags need to be propagated to the compiler or linker for good
     11628# libtool support.
     11629case $host in
     11630ia64-*-hpux*)
     11631  # Find out which ABI we are using.
     11632  echo 'int i;' > conftest.$ac_ext
     11633  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
     11634  (eval $ac_compile) 2>&5
     11635  ac_status=$?
     11636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     11637  test $ac_status = 0; }; then
     11638    case `/usr/bin/file conftest.$ac_objext` in
     11639      *ELF-32*)
     11640        HPUX_IA64_MODE="32"
     11641        ;;
     11642      *ELF-64*)
     11643        HPUX_IA64_MODE="64"
     11644        ;;
     11645    esac
     11646  fi
     11647  rm -rf conftest*
     11648  ;;
     11649*-*-irix6*)
     11650  # Find out which ABI we are using.
     11651  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
     11652  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
     11653  (eval $ac_compile) 2>&5
     11654  ac_status=$?
     11655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     11656  test $ac_status = 0; }; then
     11657    if test "$lt_cv_prog_gnu_ld" = yes; then
     11658      case `/usr/bin/file conftest.$ac_objext` in
     11659        *32-bit*)
     11660          LD="${LD-ld} -melf32bsmip"
     11661          ;;
     11662        *N32*)
     11663          LD="${LD-ld} -melf32bmipn32"
     11664          ;;
     11665        *64-bit*)
     11666          LD="${LD-ld} -melf64bmip"
     11667        ;;
     11668      esac
     11669    else
     11670      case `/usr/bin/file conftest.$ac_objext` in
     11671        *32-bit*)
     11672          LD="${LD-ld} -32"
     11673          ;;
     11674        *N32*)
     11675          LD="${LD-ld} -n32"
     11676          ;;
     11677        *64-bit*)
     11678          LD="${LD-ld} -64"
     11679          ;;
     11680      esac
     11681    fi
     11682  fi
     11683  rm -rf conftest*
     11684  ;;
     11685
     11686x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
     11687s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
     11688  # Find out which ABI we are using.
     11689  echo 'int i;' > conftest.$ac_ext
     11690  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
     11691  (eval $ac_compile) 2>&5
     11692  ac_status=$?
     11693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     11694  test $ac_status = 0; }; then
     11695    case `/usr/bin/file conftest.o` in
     11696      *32-bit*)
     11697        case $host in
     11698          x86_64-*kfreebsd*-gnu)
     11699            LD="${LD-ld} -m elf_i386_fbsd"
     11700            ;;
     11701          x86_64-*linux*)
     11702            case `/usr/bin/file conftest.o` in
     11703              *x86-64*)
     11704                LD="${LD-ld} -m elf32_x86_64"
     11705                ;;
     11706              *)
     11707                LD="${LD-ld} -m elf_i386"
     11708                ;;
     11709            esac
     11710            ;;
     11711          powerpc64le-*)
     11712            LD="${LD-ld} -m elf32lppclinux"
     11713            ;;
     11714          powerpc64-*)
     11715            LD="${LD-ld} -m elf32ppclinux"
     11716            ;;
     11717          s390x-*linux*)
     11718            LD="${LD-ld} -m elf_s390"
     11719            ;;
     11720          sparc64-*linux*)
     11721            LD="${LD-ld} -m elf32_sparc"
     11722            ;;
     11723        esac
     11724        ;;
     11725      *64-bit*)
     11726        case $host in
     11727          x86_64-*kfreebsd*-gnu)
     11728            LD="${LD-ld} -m elf_x86_64_fbsd"
     11729            ;;
     11730          x86_64-*linux*)
     11731            LD="${LD-ld} -m elf_x86_64"
     11732            ;;
     11733          powerpcle-*)
     11734            LD="${LD-ld} -m elf64lppc"
     11735            ;;
     11736          powerpc-*)
     11737            LD="${LD-ld} -m elf64ppc"
     11738            ;;
     11739          s390*-*linux*|s390*-*tpf*)
     11740            LD="${LD-ld} -m elf64_s390"
     11741            ;;
     11742          sparc*-*linux*)
     11743            LD="${LD-ld} -m elf64_sparc"
     11744            ;;
     11745        esac
     11746        ;;
     11747    esac
     11748  fi
     11749  rm -rf conftest*
     11750  ;;
     11751
     11752*-*-sco3.2v5*)
     11753  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
     11754  SAVE_CFLAGS="$CFLAGS"
     11755  CFLAGS="$CFLAGS -belf"
     11756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
     11757$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
     11758if ${lt_cv_cc_needs_belf+:} false; then :
     11759  $as_echo_n "(cached) " >&6
     11760else
     11761  ac_ext=c
     11762ac_cpp='$CPP $CPPFLAGS'
     11763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     11764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     11765ac_compiler_gnu=$ac_cv_c_compiler_gnu
     11766
     11767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     11768/* end confdefs.h.  */
     11769
     11770int
     11771main ()
     11772{
     11773
     11774  ;
     11775  return 0;
     11776}
     11777_ACEOF
     11778if ac_fn_c_try_link "$LINENO"; then :
     11779  lt_cv_cc_needs_belf=yes
     11780else
     11781  lt_cv_cc_needs_belf=no
     11782fi
     11783rm -f core conftest.err conftest.$ac_objext \
     11784    conftest$ac_exeext conftest.$ac_ext
     11785     ac_ext=c
     11786ac_cpp='$CPP $CPPFLAGS'
     11787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     11788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     11789ac_compiler_gnu=$ac_cv_c_compiler_gnu
     11790
     11791fi
     11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
     11793$as_echo "$lt_cv_cc_needs_belf" >&6; }
     11794  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
     11795    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
     11796    CFLAGS="$SAVE_CFLAGS"
     11797  fi
     11798  ;;
     11799*-*solaris*)
     11800  # Find out which ABI we are using.
     11801  echo 'int i;' > conftest.$ac_ext
     11802  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
     11803  (eval $ac_compile) 2>&5
     11804  ac_status=$?
     11805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     11806  test $ac_status = 0; }; then
     11807    case `/usr/bin/file conftest.o` in
     11808    *64-bit*)
     11809      case $lt_cv_prog_gnu_ld in
     11810      yes*)
     11811        case $host in
     11812        i?86-*-solaris*)
     11813          LD="${LD-ld} -m elf_x86_64"
     11814          ;;
     11815        sparc*-*-solaris*)
     11816          LD="${LD-ld} -m elf64_sparc"
     11817          ;;
     11818        esac
     11819        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
     11820        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
     11821          LD="${LD-ld}_sol2"
     11822        fi
     11823        ;;
     11824      *)
     11825        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
     11826          LD="${LD-ld} -64"
     11827        fi
     11828        ;;
     11829      esac
     11830      ;;
     11831    esac
     11832  fi
     11833  rm -rf conftest*
     11834  ;;
     11835esac
     11836
     11837need_locks="$enable_libtool_lock"
     11838
     11839if test -n "$ac_tool_prefix"; then
     11840  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
     11841set dummy ${ac_tool_prefix}mt; ac_word=$2
     11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     11843$as_echo_n "checking for $ac_word... " >&6; }
     11844if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
     11845  $as_echo_n "(cached) " >&6
     11846else
     11847  if test -n "$MANIFEST_TOOL"; then
     11848  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
     11849else
     11850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     11851for as_dir in $PATH
     11852do
     11853  IFS=$as_save_IFS
     11854  test -z "$as_dir" && as_dir=.
     11855    for ac_exec_ext in '' $ac_executable_extensions; do
     11856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     11857    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
     11858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     11859    break 2
     11860  fi
     11861done
     11862  done
     11863IFS=$as_save_IFS
     11864
     11865fi
     11866fi
     11867MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
     11868if test -n "$MANIFEST_TOOL"; then
     11869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
     11870$as_echo "$MANIFEST_TOOL" >&6; }
     11871else
     11872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     11873$as_echo "no" >&6; }
     11874fi
     11875
     11876
     11877fi
     11878if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
     11879  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
     11880  # Extract the first word of "mt", so it can be a program name with args.
     11881set dummy mt; ac_word=$2
     11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     11883$as_echo_n "checking for $ac_word... " >&6; }
     11884if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
     11885  $as_echo_n "(cached) " >&6
     11886else
     11887  if test -n "$ac_ct_MANIFEST_TOOL"; then
     11888  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
     11889else
     11890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     11891for as_dir in $PATH
     11892do
     11893  IFS=$as_save_IFS
     11894  test -z "$as_dir" && as_dir=.
     11895    for ac_exec_ext in '' $ac_executable_extensions; do
     11896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     11897    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
     11898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     11899    break 2
     11900  fi
     11901done
     11902  done
     11903IFS=$as_save_IFS
     11904
     11905fi
     11906fi
     11907ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
     11908if test -n "$ac_ct_MANIFEST_TOOL"; then
     11909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
     11910$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
     11911else
     11912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     11913$as_echo "no" >&6; }
     11914fi
     11915
     11916  if test "x$ac_ct_MANIFEST_TOOL" = x; then
     11917    MANIFEST_TOOL=":"
     11918  else
     11919    case $cross_compiling:$ac_tool_warned in
     11920yes:)
     11921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     11922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     11923ac_tool_warned=yes ;;
     11924esac
     11925    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
     11926  fi
     11927else
     11928  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
     11929fi
     11930
     11931test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
     11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
     11933$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
     11934if ${lt_cv_path_mainfest_tool+:} false; then :
     11935  $as_echo_n "(cached) " >&6
     11936else
     11937  lt_cv_path_mainfest_tool=no
     11938  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
     11939  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
     11940  cat conftest.err >&5
     11941  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
     11942    lt_cv_path_mainfest_tool=yes
     11943  fi
     11944  rm -f conftest*
     11945fi
     11946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
     11947$as_echo "$lt_cv_path_mainfest_tool" >&6; }
     11948if test "x$lt_cv_path_mainfest_tool" != xyes; then
     11949  MANIFEST_TOOL=:
     11950fi
     11951
     11952
     11953
     11954
     11955
     11956
     11957  case $host_os in
     11958    rhapsody* | darwin*)
     11959    if test -n "$ac_tool_prefix"; then
     11960  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
     11961set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
     11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     11963$as_echo_n "checking for $ac_word... " >&6; }
     11964if ${ac_cv_prog_DSYMUTIL+:} false; then :
     11965  $as_echo_n "(cached) " >&6
     11966else
     11967  if test -n "$DSYMUTIL"; then
     11968  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
     11969else
     11970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     11971for as_dir in $PATH
     11972do
     11973  IFS=$as_save_IFS
     11974  test -z "$as_dir" && as_dir=.
     11975    for ac_exec_ext in '' $ac_executable_extensions; do
     11976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     11977    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
     11978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     11979    break 2
     11980  fi
     11981done
     11982  done
     11983IFS=$as_save_IFS
     11984
     11985fi
     11986fi
     11987DSYMUTIL=$ac_cv_prog_DSYMUTIL
     11988if test -n "$DSYMUTIL"; then
     11989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
     11990$as_echo "$DSYMUTIL" >&6; }
     11991else
     11992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     11993$as_echo "no" >&6; }
     11994fi
     11995
     11996
     11997fi
     11998if test -z "$ac_cv_prog_DSYMUTIL"; then
     11999  ac_ct_DSYMUTIL=$DSYMUTIL
     12000  # Extract the first word of "dsymutil", so it can be a program name with args.
     12001set dummy dsymutil; ac_word=$2
     12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     12003$as_echo_n "checking for $ac_word... " >&6; }
     12004if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
     12005  $as_echo_n "(cached) " >&6
     12006else
     12007  if test -n "$ac_ct_DSYMUTIL"; then
     12008  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
     12009else
     12010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     12011for as_dir in $PATH
     12012do
     12013  IFS=$as_save_IFS
     12014  test -z "$as_dir" && as_dir=.
     12015    for ac_exec_ext in '' $ac_executable_extensions; do
     12016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     12017    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
     12018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     12019    break 2
     12020  fi
     12021done
     12022  done
     12023IFS=$as_save_IFS
     12024
     12025fi
     12026fi
     12027ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
     12028if test -n "$ac_ct_DSYMUTIL"; then
     12029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
     12030$as_echo "$ac_ct_DSYMUTIL" >&6; }
     12031else
     12032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12033$as_echo "no" >&6; }
     12034fi
     12035
     12036  if test "x$ac_ct_DSYMUTIL" = x; then
     12037    DSYMUTIL=":"
     12038  else
     12039    case $cross_compiling:$ac_tool_warned in
     12040yes:)
     12041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     12042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     12043ac_tool_warned=yes ;;
     12044esac
     12045    DSYMUTIL=$ac_ct_DSYMUTIL
     12046  fi
     12047else
     12048  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
     12049fi
     12050
     12051    if test -n "$ac_tool_prefix"; then
     12052  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
     12053set dummy ${ac_tool_prefix}nmedit; ac_word=$2
     12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     12055$as_echo_n "checking for $ac_word... " >&6; }
     12056if ${ac_cv_prog_NMEDIT+:} false; then :
     12057  $as_echo_n "(cached) " >&6
     12058else
     12059  if test -n "$NMEDIT"; then
     12060  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
     12061else
     12062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     12063for as_dir in $PATH
     12064do
     12065  IFS=$as_save_IFS
     12066  test -z "$as_dir" && as_dir=.
     12067    for ac_exec_ext in '' $ac_executable_extensions; do
     12068  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     12069    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
     12070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     12071    break 2
     12072  fi
     12073done
     12074  done
     12075IFS=$as_save_IFS
     12076
     12077fi
     12078fi
     12079NMEDIT=$ac_cv_prog_NMEDIT
     12080if test -n "$NMEDIT"; then
     12081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
     12082$as_echo "$NMEDIT" >&6; }
     12083else
     12084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12085$as_echo "no" >&6; }
     12086fi
     12087
     12088
     12089fi
     12090if test -z "$ac_cv_prog_NMEDIT"; then
     12091  ac_ct_NMEDIT=$NMEDIT
     12092  # Extract the first word of "nmedit", so it can be a program name with args.
     12093set dummy nmedit; ac_word=$2
     12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     12095$as_echo_n "checking for $ac_word... " >&6; }
     12096if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
     12097  $as_echo_n "(cached) " >&6
     12098else
     12099  if test -n "$ac_ct_NMEDIT"; then
     12100  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
     12101else
     12102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     12103for as_dir in $PATH
     12104do
     12105  IFS=$as_save_IFS
     12106  test -z "$as_dir" && as_dir=.
     12107    for ac_exec_ext in '' $ac_executable_extensions; do
     12108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     12109    ac_cv_prog_ac_ct_NMEDIT="nmedit"
     12110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     12111    break 2
     12112  fi
     12113done
     12114  done
     12115IFS=$as_save_IFS
     12116
     12117fi
     12118fi
     12119ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
     12120if test -n "$ac_ct_NMEDIT"; then
     12121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
     12122$as_echo "$ac_ct_NMEDIT" >&6; }
     12123else
     12124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12125$as_echo "no" >&6; }
     12126fi
     12127
     12128  if test "x$ac_ct_NMEDIT" = x; then
     12129    NMEDIT=":"
     12130  else
     12131    case $cross_compiling:$ac_tool_warned in
     12132yes:)
     12133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     12134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     12135ac_tool_warned=yes ;;
     12136esac
     12137    NMEDIT=$ac_ct_NMEDIT
     12138  fi
     12139else
     12140  NMEDIT="$ac_cv_prog_NMEDIT"
     12141fi
     12142
     12143    if test -n "$ac_tool_prefix"; then
     12144  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
     12145set dummy ${ac_tool_prefix}lipo; ac_word=$2
     12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     12147$as_echo_n "checking for $ac_word... " >&6; }
     12148if ${ac_cv_prog_LIPO+:} false; then :
     12149  $as_echo_n "(cached) " >&6
     12150else
     12151  if test -n "$LIPO"; then
     12152  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
     12153else
     12154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     12155for as_dir in $PATH
     12156do
     12157  IFS=$as_save_IFS
     12158  test -z "$as_dir" && as_dir=.
     12159    for ac_exec_ext in '' $ac_executable_extensions; do
     12160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     12161    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
     12162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     12163    break 2
     12164  fi
     12165done
     12166  done
     12167IFS=$as_save_IFS
     12168
     12169fi
     12170fi
     12171LIPO=$ac_cv_prog_LIPO
     12172if test -n "$LIPO"; then
     12173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
     12174$as_echo "$LIPO" >&6; }
     12175else
     12176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12177$as_echo "no" >&6; }
     12178fi
     12179
     12180
     12181fi
     12182if test -z "$ac_cv_prog_LIPO"; then
     12183  ac_ct_LIPO=$LIPO
     12184  # Extract the first word of "lipo", so it can be a program name with args.
     12185set dummy lipo; ac_word=$2
     12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     12187$as_echo_n "checking for $ac_word... " >&6; }
     12188if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
     12189  $as_echo_n "(cached) " >&6
     12190else
     12191  if test -n "$ac_ct_LIPO"; then
     12192  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
     12193else
     12194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     12195for as_dir in $PATH
     12196do
     12197  IFS=$as_save_IFS
     12198  test -z "$as_dir" && as_dir=.
     12199    for ac_exec_ext in '' $ac_executable_extensions; do
     12200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     12201    ac_cv_prog_ac_ct_LIPO="lipo"
     12202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     12203    break 2
     12204  fi
     12205done
     12206  done
     12207IFS=$as_save_IFS
     12208
     12209fi
     12210fi
     12211ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
     12212if test -n "$ac_ct_LIPO"; then
     12213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
     12214$as_echo "$ac_ct_LIPO" >&6; }
     12215else
     12216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12217$as_echo "no" >&6; }
     12218fi
     12219
     12220  if test "x$ac_ct_LIPO" = x; then
     12221    LIPO=":"
     12222  else
     12223    case $cross_compiling:$ac_tool_warned in
     12224yes:)
     12225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     12226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     12227ac_tool_warned=yes ;;
     12228esac
     12229    LIPO=$ac_ct_LIPO
     12230  fi
     12231else
     12232  LIPO="$ac_cv_prog_LIPO"
     12233fi
     12234
     12235    if test -n "$ac_tool_prefix"; then
     12236  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
     12237set dummy ${ac_tool_prefix}otool; ac_word=$2
     12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     12239$as_echo_n "checking for $ac_word... " >&6; }
     12240if ${ac_cv_prog_OTOOL+:} false; then :
     12241  $as_echo_n "(cached) " >&6
     12242else
     12243  if test -n "$OTOOL"; then
     12244  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
     12245else
     12246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     12247for as_dir in $PATH
     12248do
     12249  IFS=$as_save_IFS
     12250  test -z "$as_dir" && as_dir=.
     12251    for ac_exec_ext in '' $ac_executable_extensions; do
     12252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     12253    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
     12254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     12255    break 2
     12256  fi
     12257done
     12258  done
     12259IFS=$as_save_IFS
     12260
     12261fi
     12262fi
     12263OTOOL=$ac_cv_prog_OTOOL
     12264if test -n "$OTOOL"; then
     12265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
     12266$as_echo "$OTOOL" >&6; }
     12267else
     12268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12269$as_echo "no" >&6; }
     12270fi
     12271
     12272
     12273fi
     12274if test -z "$ac_cv_prog_OTOOL"; then
     12275  ac_ct_OTOOL=$OTOOL
     12276  # Extract the first word of "otool", so it can be a program name with args.
     12277set dummy otool; ac_word=$2
     12278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     12279$as_echo_n "checking for $ac_word... " >&6; }
     12280if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
     12281  $as_echo_n "(cached) " >&6
     12282else
     12283  if test -n "$ac_ct_OTOOL"; then
     12284  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
     12285else
     12286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     12287for as_dir in $PATH
     12288do
     12289  IFS=$as_save_IFS
     12290  test -z "$as_dir" && as_dir=.
     12291    for ac_exec_ext in '' $ac_executable_extensions; do
     12292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     12293    ac_cv_prog_ac_ct_OTOOL="otool"
     12294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     12295    break 2
     12296  fi
     12297done
     12298  done
     12299IFS=$as_save_IFS
     12300
     12301fi
     12302fi
     12303ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
     12304if test -n "$ac_ct_OTOOL"; then
     12305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
     12306$as_echo "$ac_ct_OTOOL" >&6; }
     12307else
     12308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12309$as_echo "no" >&6; }
     12310fi
     12311
     12312  if test "x$ac_ct_OTOOL" = x; then
     12313    OTOOL=":"
     12314  else
     12315    case $cross_compiling:$ac_tool_warned in
     12316yes:)
     12317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     12318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     12319ac_tool_warned=yes ;;
     12320esac
     12321    OTOOL=$ac_ct_OTOOL
     12322  fi
     12323else
     12324  OTOOL="$ac_cv_prog_OTOOL"
     12325fi
     12326
     12327    if test -n "$ac_tool_prefix"; then
     12328  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
     12329set dummy ${ac_tool_prefix}otool64; ac_word=$2
     12330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     12331$as_echo_n "checking for $ac_word... " >&6; }
     12332if ${ac_cv_prog_OTOOL64+:} false; then :
     12333  $as_echo_n "(cached) " >&6
     12334else
     12335  if test -n "$OTOOL64"; then
     12336  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
     12337else
     12338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     12339for as_dir in $PATH
     12340do
     12341  IFS=$as_save_IFS
     12342  test -z "$as_dir" && as_dir=.
     12343    for ac_exec_ext in '' $ac_executable_extensions; do
     12344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     12345    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
     12346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     12347    break 2
     12348  fi
     12349done
     12350  done
     12351IFS=$as_save_IFS
     12352
     12353fi
     12354fi
     12355OTOOL64=$ac_cv_prog_OTOOL64
     12356if test -n "$OTOOL64"; then
     12357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
     12358$as_echo "$OTOOL64" >&6; }
     12359else
     12360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12361$as_echo "no" >&6; }
     12362fi
     12363
     12364
     12365fi
     12366if test -z "$ac_cv_prog_OTOOL64"; then
     12367  ac_ct_OTOOL64=$OTOOL64
     12368  # Extract the first word of "otool64", so it can be a program name with args.
     12369set dummy otool64; ac_word=$2
     12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     12371$as_echo_n "checking for $ac_word... " >&6; }
     12372if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
     12373  $as_echo_n "(cached) " >&6
     12374else
     12375  if test -n "$ac_ct_OTOOL64"; then
     12376  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
     12377else
     12378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     12379for as_dir in $PATH
     12380do
     12381  IFS=$as_save_IFS
     12382  test -z "$as_dir" && as_dir=.
     12383    for ac_exec_ext in '' $ac_executable_extensions; do
     12384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     12385    ac_cv_prog_ac_ct_OTOOL64="otool64"
     12386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     12387    break 2
     12388  fi
     12389done
     12390  done
     12391IFS=$as_save_IFS
     12392
     12393fi
     12394fi
     12395ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
     12396if test -n "$ac_ct_OTOOL64"; then
     12397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
     12398$as_echo "$ac_ct_OTOOL64" >&6; }
     12399else
     12400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12401$as_echo "no" >&6; }
     12402fi
     12403
     12404  if test "x$ac_ct_OTOOL64" = x; then
     12405    OTOOL64=":"
     12406  else
     12407    case $cross_compiling:$ac_tool_warned in
     12408yes:)
     12409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     12410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     12411ac_tool_warned=yes ;;
     12412esac
     12413    OTOOL64=$ac_ct_OTOOL64
     12414  fi
     12415else
     12416  OTOOL64="$ac_cv_prog_OTOOL64"
     12417fi
     12418
     12419
     12420
     12421
     12422
     12423
     12424
     12425
     12426
     12427
     12428
     12429
     12430
     12431
     12432
     12433
     12434
     12435
     12436
     12437
     12438
     12439
     12440
     12441
     12442
     12443
     12444
     12445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
     12446$as_echo_n "checking for -single_module linker flag... " >&6; }
     12447if ${lt_cv_apple_cc_single_mod+:} false; then :
     12448  $as_echo_n "(cached) " >&6
     12449else
     12450  lt_cv_apple_cc_single_mod=no
     12451      if test -z "${LT_MULTI_MODULE}"; then
     12452        # By default we will add the -single_module flag. You can override
     12453        # by either setting the environment variable LT_MULTI_MODULE
     12454        # non-empty at configure time, or by adding -multi_module to the
     12455        # link flags.
     12456        rm -rf libconftest.dylib*
     12457        echo "int foo(void){return 1;}" > conftest.c
     12458        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
     12459-dynamiclib -Wl,-single_module conftest.c" >&5
     12460        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
     12461          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
     12462        _lt_result=$?
     12463        # If there is a non-empty error log, and "single_module"
     12464        # appears in it, assume the flag caused a linker warning
     12465        if test -s conftest.err && $GREP single_module conftest.err; then
     12466          cat conftest.err >&5
     12467        # Otherwise, if the output was created with a 0 exit code from
     12468        # the compiler, it worked.
     12469        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
     12470          lt_cv_apple_cc_single_mod=yes
     12471        else
     12472          cat conftest.err >&5
     12473        fi
     12474        rm -rf libconftest.dylib*
     12475        rm -f conftest.*
     12476      fi
     12477fi
     12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
     12479$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
     12480
     12481    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
     12482$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
     12483if ${lt_cv_ld_exported_symbols_list+:} false; then :
     12484  $as_echo_n "(cached) " >&6
     12485else
     12486  lt_cv_ld_exported_symbols_list=no
     12487      save_LDFLAGS=$LDFLAGS
     12488      echo "_main" > conftest.sym
     12489      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
     12490      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     12491/* end confdefs.h.  */
     12492
     12493int
     12494main ()
     12495{
     12496
     12497  ;
     12498  return 0;
     12499}
     12500_ACEOF
     12501if ac_fn_c_try_link "$LINENO"; then :
     12502  lt_cv_ld_exported_symbols_list=yes
     12503else
     12504  lt_cv_ld_exported_symbols_list=no
     12505fi
     12506rm -f core conftest.err conftest.$ac_objext \
     12507    conftest$ac_exeext conftest.$ac_ext
     12508        LDFLAGS="$save_LDFLAGS"
     12509
     12510fi
     12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
     12512$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
     12513
     12514    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
     12515$as_echo_n "checking for -force_load linker flag... " >&6; }
     12516if ${lt_cv_ld_force_load+:} false; then :
     12517  $as_echo_n "(cached) " >&6
     12518else
     12519  lt_cv_ld_force_load=no
     12520      cat > conftest.c << _LT_EOF
     12521int forced_loaded() { return 2;}
     12522_LT_EOF
     12523      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
     12524      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
     12525      echo "$AR cru libconftest.a conftest.o" >&5
     12526      $AR cru libconftest.a conftest.o 2>&5
     12527      echo "$RANLIB libconftest.a" >&5
     12528      $RANLIB libconftest.a 2>&5
     12529      cat > conftest.c << _LT_EOF
     12530int main() { return 0;}
     12531_LT_EOF
     12532      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
     12533      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
     12534      _lt_result=$?
     12535      if test -s conftest.err && $GREP force_load conftest.err; then
     12536        cat conftest.err >&5
     12537      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
     12538        lt_cv_ld_force_load=yes
     12539      else
     12540        cat conftest.err >&5
     12541      fi
     12542        rm -f conftest.err libconftest.a conftest conftest.c
     12543        rm -rf conftest.dSYM
     12544
     12545fi
     12546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
     12547$as_echo "$lt_cv_ld_force_load" >&6; }
     12548    case $host_os in
     12549    rhapsody* | darwin1.[012])
     12550      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
     12551    darwin1.*)
     12552      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     12553    darwin*) # darwin 5.x on
     12554      # if running on 10.5 or later, the deployment target defaults
     12555      # to the OS version, if on x86, and 10.4, the deployment
     12556      # target defaults to 10.4. Don't you love it?
     12557      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
     12558        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
     12559          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     12560        10.[012]*)
     12561          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
     12562        10.*)
     12563          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     12564      esac
     12565    ;;
     12566  esac
     12567    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
     12568      _lt_dar_single_mod='$single_module'
     12569    fi
     12570    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
     12571      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
     12572    else
     12573      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
     12574    fi
     12575    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
     12576      _lt_dsymutil='~$DSYMUTIL $lib || :'
     12577    else
     12578      _lt_dsymutil=
     12579    fi
     12580    ;;
     12581  esac
     12582
     12583for ac_header in dlfcn.h
     12584do :
     12585  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
     12586"
     12587if test "x$ac_cv_header_dlfcn_h" = xyes; then :
     12588  cat >>confdefs.h <<_ACEOF
     12589#define HAVE_DLFCN_H 1
     12590_ACEOF
     12591
     12592fi
     12593
     12594done
     12595
     12596
     12597
     12598func_stripname_cnf ()
     12599{
     12600  case ${2} in
     12601  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     12602  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     12603  esac
     12604} # func_stripname_cnf
     12605
     12606
     12607
     12608
     12609
     12610# Set options
     12611
     12612
     12613
     12614        enable_dlopen=no
     12615
     12616
     12617  enable_win32_dll=no
     12618
     12619
     12620
     12621  # Check whether --enable-static was given.
     12622if test "${enable_static+set}" = set; then :
     12623  enableval=$enable_static; p=${PACKAGE-default}
     12624    case $enableval in
     12625    yes) enable_static=yes ;;
     12626    no) enable_static=no ;;
     12627    *)
     12628     enable_static=no
     12629      # Look at the argument we got.  We use all the common list separators.
     12630      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     12631      for pkg in $enableval; do
     12632        IFS="$lt_save_ifs"
     12633        if test "X$pkg" = "X$p"; then
     12634          enable_static=yes
     12635        fi
     12636      done
     12637      IFS="$lt_save_ifs"
     12638      ;;
     12639    esac
     12640else
     12641  enable_static=yes
     12642fi
     12643
     12644
     12645
     12646
     12647
     12648
     12649
     12650
     12651
     12652
     12653# Check whether --with-pic was given.
     12654if test "${with_pic+set}" = set; then :
     12655  withval=$with_pic; lt_p=${PACKAGE-default}
     12656    case $withval in
     12657    yes|no) pic_mode=$withval ;;
     12658    *)
     12659      pic_mode=default
     12660      # Look at the argument we got.  We use all the common list separators.
     12661      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     12662      for lt_pkg in $withval; do
     12663        IFS="$lt_save_ifs"
     12664        if test "X$lt_pkg" = "X$lt_p"; then
     12665          pic_mode=yes
     12666        fi
     12667      done
     12668      IFS="$lt_save_ifs"
     12669      ;;
     12670    esac
     12671else
     12672  pic_mode=default
     12673fi
     12674
     12675
     12676test -z "$pic_mode" && pic_mode=default
     12677
     12678
     12679
     12680
     12681
     12682
     12683
     12684  # Check whether --enable-fast-install was given.
     12685if test "${enable_fast_install+set}" = set; then :
     12686  enableval=$enable_fast_install; p=${PACKAGE-default}
     12687    case $enableval in
     12688    yes) enable_fast_install=yes ;;
     12689    no) enable_fast_install=no ;;
     12690    *)
     12691      enable_fast_install=no
     12692      # Look at the argument we got.  We use all the common list separators.
     12693      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     12694      for pkg in $enableval; do
     12695        IFS="$lt_save_ifs"
     12696        if test "X$pkg" = "X$p"; then
     12697          enable_fast_install=yes
     12698        fi
     12699      done
     12700      IFS="$lt_save_ifs"
     12701      ;;
     12702    esac
     12703else
     12704  enable_fast_install=yes
     12705fi
     12706
     12707
     12708
     12709
     12710
     12711
     12712
     12713
     12714
     12715
     12716
     12717# This can be used to rebuild libtool when needed
     12718LIBTOOL_DEPS="$ltmain"
     12719
     12720# Always use our own libtool.
     12721LIBTOOL='$(SHELL) $(top_builddir)/libtool'
     12722
     12723
     12724
     12725
     12726
     12727
     12728
     12729
     12730
     12731
     12732
     12733
     12734
     12735
     12736
     12737
     12738
     12739
     12740
     12741
     12742
     12743
     12744
     12745
     12746
     12747
     12748
     12749
     12750
     12751
     12752test -z "$LN_S" && LN_S="ln -s"
     12753
     12754
     12755
     12756
     12757
     12758
     12759
     12760
     12761
     12762
     12763
     12764
     12765
     12766
     12767if test -n "${ZSH_VERSION+set}" ; then
     12768   setopt NO_GLOB_SUBST
     12769fi
     12770
     12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
     12772$as_echo_n "checking for objdir... " >&6; }
     12773if ${lt_cv_objdir+:} false; then :
     12774  $as_echo_n "(cached) " >&6
    1563712775else
    1563812776  rm -f .libs 2>/dev/null
     
    1564612784rmdir .libs 2>/dev/null
    1564712785fi
    15648 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
    15649 echo "${ECHO_T}$lt_cv_objdir" >&6
     12786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
     12787$as_echo "$lt_cv_objdir" >&6; }
    1565012788objdir=$lt_cv_objdir
    1565112789
     12790
     12791
     12792
     12793
     12794cat >>confdefs.h <<_ACEOF
     12795#define LT_OBJDIR "$lt_cv_objdir/"
     12796_ACEOF
    1565212797
    1565312798
     
    1566612811esac
    1566712812
    15668 # Sed substitution that helps us do robust quoting.  It backslashifies
    15669 # metacharacters that are still active within double-quoted strings.
    15670 Xsed='sed -e 1s/^X//'
    15671 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
    15672 
    15673 # Same as above, but do not quote variable references.
    15674 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
    15675 
    15676 # Sed substitution to delay expansion of an escaped shell variable in a
    15677 # double_quote_subst'ed string.
    15678 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    15679 
    15680 # Sed substitution to avoid accidental globbing in evaled expressions
    15681 no_glob_subst='s/\*/\\\*/g'
    15682 
    15683 # Constants:
    15684 rm="rm -f"
    15685 
    1568612813# Global variables:
    15687 default_ofile=libtool
     12814ofile=libtool
    1568812815can_build_shared=yes
    1568912816
     
    1569112818# which needs '.lib').
    1569212819libext=a
    15693 ltmain="$ac_aux_dir/ltmain.sh"
    15694 ofile="$default_ofile"
     12820
    1569512821with_gnu_ld="$lt_cv_prog_gnu_ld"
    15696 
    15697 if test -n "$ac_tool_prefix"; then
    15698   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
    15699 set dummy ${ac_tool_prefix}ar; ac_word=$2
    15700 echo "$as_me:$LINENO: checking for $ac_word" >&5
    15701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15702 if test "${ac_cv_prog_AR+set}" = set; then
    15703   echo $ECHO_N "(cached) $ECHO_C" >&6
    15704 else
    15705   if test -n "$AR"; then
    15706   ac_cv_prog_AR="$AR" # Let the user override the test.
    15707 else
    15708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    15709 for as_dir in $PATH
    15710 do
    15711   IFS=$as_save_IFS
    15712   test -z "$as_dir" && as_dir=.
    15713   for ac_exec_ext in '' $ac_executable_extensions; do
    15714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    15715     ac_cv_prog_AR="${ac_tool_prefix}ar"
    15716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    15717     break 2
    15718   fi
    15719 done
    15720 done
    15721 
    15722 fi
    15723 fi
    15724 AR=$ac_cv_prog_AR
    15725 if test -n "$AR"; then
    15726   echo "$as_me:$LINENO: result: $AR" >&5
    15727 echo "${ECHO_T}$AR" >&6
    15728 else
    15729   echo "$as_me:$LINENO: result: no" >&5
    15730 echo "${ECHO_T}no" >&6
    15731 fi
    15732 
    15733 fi
    15734 if test -z "$ac_cv_prog_AR"; then
    15735   ac_ct_AR=$AR
    15736   # Extract the first word of "ar", so it can be a program name with args.
    15737 set dummy ar; ac_word=$2
    15738 echo "$as_me:$LINENO: checking for $ac_word" >&5
    15739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15740 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
    15741   echo $ECHO_N "(cached) $ECHO_C" >&6
    15742 else
    15743   if test -n "$ac_ct_AR"; then
    15744   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
    15745 else
    15746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    15747 for as_dir in $PATH
    15748 do
    15749   IFS=$as_save_IFS
    15750   test -z "$as_dir" && as_dir=.
    15751   for ac_exec_ext in '' $ac_executable_extensions; do
    15752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    15753     ac_cv_prog_ac_ct_AR="ar"
    15754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    15755     break 2
    15756   fi
    15757 done
    15758 done
    15759 
    15760   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
    15761 fi
    15762 fi
    15763 ac_ct_AR=$ac_cv_prog_ac_ct_AR
    15764 if test -n "$ac_ct_AR"; then
    15765   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
    15766 echo "${ECHO_T}$ac_ct_AR" >&6
    15767 else
    15768   echo "$as_me:$LINENO: result: no" >&5
    15769 echo "${ECHO_T}no" >&6
    15770 fi
    15771 
    15772   AR=$ac_ct_AR
    15773 else
    15774   AR="$ac_cv_prog_AR"
    15775 fi
    15776 
    15777 if test -n "$ac_tool_prefix"; then
    15778   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    15779 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    15780 echo "$as_me:$LINENO: checking for $ac_word" >&5
    15781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15782 if test "${ac_cv_prog_RANLIB+set}" = set; then
    15783   echo $ECHO_N "(cached) $ECHO_C" >&6
    15784 else
    15785   if test -n "$RANLIB"; then
    15786   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    15787 else
    15788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    15789 for as_dir in $PATH
    15790 do
    15791   IFS=$as_save_IFS
    15792   test -z "$as_dir" && as_dir=.
    15793   for ac_exec_ext in '' $ac_executable_extensions; do
    15794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    15795     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    15796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    15797     break 2
    15798   fi
    15799 done
    15800 done
    15801 
    15802 fi
    15803 fi
    15804 RANLIB=$ac_cv_prog_RANLIB
    15805 if test -n "$RANLIB"; then
    15806   echo "$as_me:$LINENO: result: $RANLIB" >&5
    15807 echo "${ECHO_T}$RANLIB" >&6
    15808 else
    15809   echo "$as_me:$LINENO: result: no" >&5
    15810 echo "${ECHO_T}no" >&6
    15811 fi
    15812 
    15813 fi
    15814 if test -z "$ac_cv_prog_RANLIB"; then
    15815   ac_ct_RANLIB=$RANLIB
    15816   # Extract the first word of "ranlib", so it can be a program name with args.
    15817 set dummy ranlib; ac_word=$2
    15818 echo "$as_me:$LINENO: checking for $ac_word" >&5
    15819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    15821   echo $ECHO_N "(cached) $ECHO_C" >&6
    15822 else
    15823   if test -n "$ac_ct_RANLIB"; then
    15824   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    15825 else
    15826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    15827 for as_dir in $PATH
    15828 do
    15829   IFS=$as_save_IFS
    15830   test -z "$as_dir" && as_dir=.
    15831   for ac_exec_ext in '' $ac_executable_extensions; do
    15832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    15833     ac_cv_prog_ac_ct_RANLIB="ranlib"
    15834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    15835     break 2
    15836   fi
    15837 done
    15838 done
    15839 
    15840   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
    15841 fi
    15842 fi
    15843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    15844 if test -n "$ac_ct_RANLIB"; then
    15845   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
    15846 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    15847 else
    15848   echo "$as_me:$LINENO: result: no" >&5
    15849 echo "${ECHO_T}no" >&6
    15850 fi
    15851 
    15852   RANLIB=$ac_ct_RANLIB
    15853 else
    15854   RANLIB="$ac_cv_prog_RANLIB"
    15855 fi
    15856 
    15857 if test -n "$ac_tool_prefix"; then
    15858   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
    15859 set dummy ${ac_tool_prefix}strip; ac_word=$2
    15860 echo "$as_me:$LINENO: checking for $ac_word" >&5
    15861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15862 if test "${ac_cv_prog_STRIP+set}" = set; then
    15863   echo $ECHO_N "(cached) $ECHO_C" >&6
    15864 else
    15865   if test -n "$STRIP"; then
    15866   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
    15867 else
    15868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    15869 for as_dir in $PATH
    15870 do
    15871   IFS=$as_save_IFS
    15872   test -z "$as_dir" && as_dir=.
    15873   for ac_exec_ext in '' $ac_executable_extensions; do
    15874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    15875     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    15876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    15877     break 2
    15878   fi
    15879 done
    15880 done
    15881 
    15882 fi
    15883 fi
    15884 STRIP=$ac_cv_prog_STRIP
    15885 if test -n "$STRIP"; then
    15886   echo "$as_me:$LINENO: result: $STRIP" >&5
    15887 echo "${ECHO_T}$STRIP" >&6
    15888 else
    15889   echo "$as_me:$LINENO: result: no" >&5
    15890 echo "${ECHO_T}no" >&6
    15891 fi
    15892 
    15893 fi
    15894 if test -z "$ac_cv_prog_STRIP"; then
    15895   ac_ct_STRIP=$STRIP
    15896   # Extract the first word of "strip", so it can be a program name with args.
    15897 set dummy strip; ac_word=$2
    15898 echo "$as_me:$LINENO: checking for $ac_word" >&5
    15899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    15900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
    15901   echo $ECHO_N "(cached) $ECHO_C" >&6
    15902 else
    15903   if test -n "$ac_ct_STRIP"; then
    15904   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
    15905 else
    15906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    15907 for as_dir in $PATH
    15908 do
    15909   IFS=$as_save_IFS
    15910   test -z "$as_dir" && as_dir=.
    15911   for ac_exec_ext in '' $ac_executable_extensions; do
    15912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    15913     ac_cv_prog_ac_ct_STRIP="strip"
    15914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    15915     break 2
    15916   fi
    15917 done
    15918 done
    15919 
    15920   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
    15921 fi
    15922 fi
    15923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
    15924 if test -n "$ac_ct_STRIP"; then
    15925   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
    15926 echo "${ECHO_T}$ac_ct_STRIP" >&6
    15927 else
    15928   echo "$as_me:$LINENO: result: no" >&5
    15929 echo "${ECHO_T}no" >&6
    15930 fi
    15931 
    15932   STRIP=$ac_ct_STRIP
    15933 else
    15934   STRIP="$ac_cv_prog_STRIP"
    15935 fi
    15936 
    1593712822
    1593812823old_CC="$CC"
     
    1594012825
    1594112826# Set sane defaults for various variables
    15942 test -z "$AR" && AR=ar
    15943 test -z "$AR_FLAGS" && AR_FLAGS=cru
    15944 test -z "$AS" && AS=as
    1594512827test -z "$CC" && CC=cc
    1594612828test -z "$LTCC" && LTCC=$CC
    1594712829test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
    15948 test -z "$DLLTOOL" && DLLTOOL=dlltool
    1594912830test -z "$LD" && LD=ld
    15950 test -z "$LN_S" && LN_S="ln -s"
    15951 test -z "$MAGIC_CMD" && MAGIC_CMD=file
    15952 test -z "$NM" && NM=nm
    15953 test -z "$SED" && SED=sed
    15954 test -z "$OBJDUMP" && OBJDUMP=objdump
    15955 test -z "$RANLIB" && RANLIB=:
    15956 test -z "$STRIP" && STRIP=:
    1595712831test -z "$ac_objext" && ac_objext=o
    15958 
    15959 # Determine commands to create old-style static archives.
    15960 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
    15961 old_postinstall_cmds='chmod 644 $oldlib'
    15962 old_postuninstall_cmds=
    15963 
    15964 if test -n "$RANLIB"; then
    15965   case $host_os in
    15966   openbsd*)
    15967     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    15968     ;;
    15969   *)
    15970     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    15971     ;;
    15972   esac
    15973   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    15974 fi
    1597512832
    1597612833for cc_temp in $compiler""; do
     
    1598212839  esac
    1598312840done
    15984 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     12841cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    1598512842
    1598612843
    1598712844# Only perform the check for file, if the check method requires it
     12845test -z "$MAGIC_CMD" && MAGIC_CMD=file
    1598812846case $deplibs_check_method in
    1598912847file_magic*)
    1599012848  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    15991     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
    15992 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
    15993 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
    15994   echo $ECHO_N "(cached) $ECHO_C" >&6
     12849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
     12850$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
     12851if ${lt_cv_path_MAGIC_CMD+:} false; then :
     12852  $as_echo_n "(cached) " >&6
    1599512853else
    1599612854  case $MAGIC_CMD in
     
    1601612874            :
    1601712875          else
    16018             cat <<EOF 1>&2
     12876            cat <<_LT_EOF 1>&2
    1601912877
    1602012878*** Warning: the command libtool uses to detect shared libraries,
     
    1602712885*** bug-libtool@gnu.org
    1602812886
    16029 EOF
     12887_LT_EOF
    1603012888          fi ;;
    1603112889        esac
     
    1604212900MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    1604312901if test -n "$MAGIC_CMD"; then
    16044   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
    16045 echo "${ECHO_T}$MAGIC_CMD" >&6
    16046 else
    16047   echo "$as_me:$LINENO: result: no" >&5
    16048 echo "${ECHO_T}no" >&6
    16049 fi
     12902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
     12903$as_echo "$MAGIC_CMD" >&6; }
     12904else
     12905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12906$as_echo "no" >&6; }
     12907fi
     12908
     12909
     12910
     12911
    1605012912
    1605112913if test -z "$lt_cv_path_MAGIC_CMD"; then
    1605212914  if test -n "$ac_tool_prefix"; then
    16053     echo "$as_me:$LINENO: checking for file" >&5
    16054 echo $ECHO_N "checking for file... $ECHO_C" >&6
    16055 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
    16056   echo $ECHO_N "(cached) $ECHO_C" >&6
     12915    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
     12916$as_echo_n "checking for file... " >&6; }
     12917if ${lt_cv_path_MAGIC_CMD+:} false; then :
     12918  $as_echo_n "(cached) " >&6
    1605712919else
    1605812920  case $MAGIC_CMD in
     
    1607812940            :
    1607912941          else
    16080             cat <<EOF 1>&2
     12942            cat <<_LT_EOF 1>&2
    1608112943
    1608212944*** Warning: the command libtool uses to detect shared libraries,
     
    1608912951*** bug-libtool@gnu.org
    1609012952
    16091 EOF
     12953_LT_EOF
    1609212954          fi ;;
    1609312955        esac
     
    1610412966MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    1610512967if test -n "$MAGIC_CMD"; then
    16106   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
    16107 echo "${ECHO_T}$MAGIC_CMD" >&6
    16108 else
    16109   echo "$as_me:$LINENO: result: no" >&5
    16110 echo "${ECHO_T}no" >&6
    16111 fi
     12968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
     12969$as_echo "$MAGIC_CMD" >&6; }
     12970else
     12971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     12972$as_echo "no" >&6; }
     12973fi
     12974
    1611212975
    1611312976  else
     
    1612012983esac
    1612112984
    16122 enable_dlopen=no
    16123 enable_win32_dll=no
    16124 
    16125 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
    16126 if test "${enable_libtool_lock+set}" = set; then
    16127   enableval="$enable_libtool_lock"
    16128 
    16129 fi;
    16130 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
    16131 
    16132 
    16133 # Check whether --with-pic or --without-pic was given.
    16134 if test "${with_pic+set}" = set; then
    16135   withval="$with_pic"
    16136   pic_mode="$withval"
    16137 else
    16138   pic_mode=default
    16139 fi;
    16140 test -z "$pic_mode" && pic_mode=default
    16141 
    16142 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
    16143 #
    16144 # Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
    16145 #        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
    16146 #        calls AC_LIBTOOL_CONFIG and creates libtool.
    16147 #
    16148 echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
    16149 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
    16150 if test "x$ltmain" = "x" ; then
    16151   echo "$as_me:$LINENO: result: no" >&5
    16152 echo "${ECHO_T}no" >&6
    16153   { { echo "$as_me:$LINENO: error:
    16154 
    16155 *** [Gentoo] sanity check failed! ***
    16156 *** \$ltmain is not defined, please check the patch for consistency! ***
    16157 " >&5
    16158 echo "$as_me: error:
    16159 
    16160 *** [Gentoo] sanity check failed! ***
    16161 *** \$ltmain is not defined, please check the patch for consistency! ***
    16162 " >&2;}
    16163    { (exit 1); exit 1; }; }
    16164 fi
    16165 gentoo_lt_version="1.5.22"
    16166 gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
    16167 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
    16168   echo "$as_me:$LINENO: result: no" >&5
    16169 echo "${ECHO_T}no" >&6
    16170   { { echo "$as_me:$LINENO: error:
    16171 
    16172 *** [Gentoo] sanity check failed! ***
    16173 *** libtool.m4 and ltmain.sh have a version mismatch! ***
    16174 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
    16175 
    16176 Please run:
    16177 
    16178   libtoolize --copy --force
    16179 
    16180 if appropriate, please contact the maintainer of this
    16181 package (or your distribution) for help.
    16182 " >&5
    16183 echo "$as_me: error:
    16184 
    16185 *** [Gentoo] sanity check failed! ***
    16186 *** libtool.m4 and ltmain.sh have a version mismatch! ***
    16187 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
    16188 
    16189 Please run:
    16190 
    16191   libtoolize --copy --force
    16192 
    16193 if appropriate, please contact the maintainer of this
    16194 package (or your distribution) for help.
    16195 " >&2;}
    16196    { (exit 1); exit 1; }; }
    16197 else
    16198   echo "$as_me:$LINENO: result: yes" >&5
    16199 echo "${ECHO_T}yes" >&6
    16200 fi
    16201 
    16202 
    1620312985# Use C for the default configuration in the libtool script
    16204 tagname=
     12986
    1620512987lt_save_CC="$CC"
    1620612988ac_ext=c
     
    1621913001
    1622013002# Code to be used in simple compile tests
    16221 lt_simple_compile_test_code="int some_variable = 0;\n"
     13003lt_simple_compile_test_code="int some_variable = 0;"
    1622213004
    1622313005# Code to be used in simple link tests
    16224 lt_simple_link_test_code='int main(){return(0);}\n'
     13006lt_simple_link_test_code='int main(){return(0);}'
     13007
     13008
     13009
     13010
     13011
    1622513012
    1622613013
     
    1623413021compiler=$CC
    1623513022
     13023# Save the default compiler, since it gets overwritten when the other
     13024# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
     13025compiler_DEFAULT=$CC
    1623613026
    1623713027# save warnings/boilerplate of simple test code
    1623813028ac_outfile=conftest.$ac_objext
    16239 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
     13029echo "$lt_simple_compile_test_code" >conftest.$ac_ext
    1624013030eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    1624113031_lt_compiler_boilerplate=`cat conftest.err`
    16242 $rm conftest*
     13032$RM conftest*
    1624313033
    1624413034ac_outfile=conftest.$ac_objext
    16245 printf "$lt_simple_link_test_code" >conftest.$ac_ext
     13035echo "$lt_simple_link_test_code" >conftest.$ac_ext
    1624613036eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    1624713037_lt_linker_boilerplate=`cat conftest.err`
    16248 $rm conftest*
    16249 
    16250 
    16251 ## CAVEAT EMPTOR:
    16252 ## There is no encapsulation within the following macros, do not change
    16253 ## the running order or otherwise move them around unless you know exactly
    16254 ## what you are doing...
     13038$RM -r conftest*
     13039
     13040
     13041if test -n "$compiler"; then
    1625513042
    1625613043lt_prog_compiler_no_builtin_flag=
    1625713044
    1625813045if test "$GCC" = yes; then
    16259   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
    16260 
    16261 
    16262 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
    16263 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
    16264 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
    16265   echo $ECHO_N "(cached) $ECHO_C" >&6
     13046  case $cc_basename in
     13047  nvcc*)
     13048    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
     13049  *)
     13050    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
     13051  esac
     13052
     13053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
     13054$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
     13055if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
     13056  $as_echo_n "(cached) " >&6
    1626613057else
    1626713058  lt_cv_prog_compiler_rtti_exceptions=no
    16268   ac_outfile=conftest.$ac_objext
    16269    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     13059   ac_outfile=conftest.$ac_objext
     13060   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1627013061   lt_compiler_flag="-fno-rtti -fno-exceptions"
    1627113062   # Insert the option either (1) after the last *FLAGS variable, or
     
    1627813069   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1627913070   -e 's:$: $lt_compiler_flag:'`
    16280    (eval echo "\"\$as_me:16280: $lt_compile\"" >&5)
     13071   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    1628113072   (eval "$lt_compile" 2>conftest.err)
    1628213073   ac_status=$?
    1628313074   cat conftest.err >&5
    16284    echo "$as_me:16284: \$? = $ac_status" >&5
     13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1628513076   if (exit $ac_status) && test -s "$ac_outfile"; then
    1628613077     # The compiler can only warn and ignore the option if not recognized
    1628713078     # So say no if there are warnings other than the usual output.
    16288      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     13079     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
    1628913080     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    1629013081     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     
    1629213083     fi
    1629313084   fi
    16294    $rm conftest*
    16295 
    16296 fi
    16297 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
    16298 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
     13085   $RM conftest*
     13086
     13087fi
     13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
     13089$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
    1629913090
    1630013091if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
     
    1630613097fi
    1630713098
    16308 lt_prog_compiler_wl=
     13099
     13100
     13101
     13102
     13103
     13104  lt_prog_compiler_wl=
    1630913105lt_prog_compiler_pic=
    1631013106lt_prog_compiler_static=
    1631113107
    16312 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
    16313 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
    1631413108
    1631513109  if test "$GCC" = yes; then
     
    1632713121
    1632813122    amigaos*)
    16329       # FIXME: we need at least 68020 code to build shared libraries, but
    16330       # adding the `-m68020' flag to GCC prevents building anything better,
    16331       # like `-m68040'.
    16332       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
     13123      case $host_cpu in
     13124      powerpc)
     13125            # see comment about AmigaOS4 .so support
     13126            lt_prog_compiler_pic='-fPIC'
     13127        ;;
     13128      m68k)
     13129            # FIXME: we need at least 68020 code to build shared libraries, but
     13130            # adding the `-m68020' flag to GCC prevents building anything better,
     13131            # like `-m68040'.
     13132            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
     13133        ;;
     13134      esac
    1633313135      ;;
    1633413136
    16335     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     13137    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    1633613138      # PIC is the default for these OSes.
    1633713139      ;;
    1633813140
    16339     mingw* | pw32* | os2*)
     13141    mingw* | cygwin* | pw32* | os2* | cegcc*)
    1634013142      # This hack is so that the source file can tell whether it is being
    1634113143      # built for inclusion in a dll (and should export symbols for example).
     13144      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     13145      # (--disable-auto-import) libraries
    1634213146      lt_prog_compiler_pic='-DDLL_EXPORT'
    1634313147      ;;
     
    1634913153      ;;
    1635013154
    16351     interix3*)
    16352       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
    16353       # Instead, we relocate shared libraries at runtime.
     13155    haiku*)
     13156      # PIC is the default for Haiku.
     13157      # The "-static" flag exists, but is broken.
     13158      lt_prog_compiler_static=
    1635413159      ;;
    1635513160
    16356     msdosdjgpp*)
    16357       # Just because we use GCC doesn't mean we suddenly get shared libraries
    16358       # on systems that don't support them.
    16359       lt_prog_compiler_can_build_shared=no
    16360       enable_shared=no
    16361       ;;
    16362 
    16363     sysv4*MP*)
    16364       if test -d /usr/nec; then
    16365         lt_prog_compiler_pic=-Kconform_pic
    16366       fi
    16367       ;;
    16368 
    1636913161    hpux*)
    16370       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    16371       # not for PA HP-UX.
     13162      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
     13163      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
     13164      # sets the default TLS model and affects inlining.
    1637213165      case $host_cpu in
    16373       hppa*64*|ia64*)
     13166      hppa*64*)
    1637413167        # +Z the default
    1637513168        ;;
     
    1638013173      ;;
    1638113174
     13175    interix[3-9]*)
     13176      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     13177      # Instead, we relocate shared libraries at runtime.
     13178      ;;
     13179
     13180    msdosdjgpp*)
     13181      # Just because we use GCC doesn't mean we suddenly get shared libraries
     13182      # on systems that don't support them.
     13183      lt_prog_compiler_can_build_shared=no
     13184      enable_shared=no
     13185      ;;
     13186
     13187    *nto* | *qnx*)
     13188      # QNX uses GNU C++, but need to define -shared option too, otherwise
     13189      # it will coredump.
     13190      lt_prog_compiler_pic='-fPIC -shared'
     13191      ;;
     13192
     13193    sysv4*MP*)
     13194      if test -d /usr/nec; then
     13195        lt_prog_compiler_pic=-Kconform_pic
     13196      fi
     13197      ;;
     13198
    1638213199    *)
    1638313200      lt_prog_compiler_pic='-fPIC'
     13201      ;;
     13202    esac
     13203
     13204    case $cc_basename in
     13205    nvcc*) # Cuda Compiler Driver 2.2
     13206      lt_prog_compiler_wl='-Xlinker '
     13207      if test -n "$lt_prog_compiler_pic"; then
     13208        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
     13209      fi
    1638413210      ;;
    1638513211    esac
     
    1639613222      fi
    1639713223      ;;
    16398       darwin*)
    16399         # PIC is the default on this platform
    16400         # Common symbols not allowed in MH_DYLIB files
    16401        case $cc_basename in
    16402          xlc*)
    16403          lt_prog_compiler_pic='-qnocommon'
    16404          lt_prog_compiler_wl='-Wl,'
    16405          ;;
    16406        esac
    16407        ;;
    16408 
    16409     mingw* | pw32* | os2*)
     13224
     13225    mingw* | cygwin* | pw32* | os2* | cegcc*)
    1641013226      # This hack is so that the source file can tell whether it is being
    1641113227      # built for inclusion in a dll (and should export symbols for example).
     
    1643513251      ;;
    1643613252
    16437     newsos6)
    16438       lt_prog_compiler_pic='-KPIC'
    16439       lt_prog_compiler_static='-Bstatic'
    16440       ;;
    16441 
    16442     linux*)
     13253    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
    1644313254      case $cc_basename in
    16444       icc* | ecc*)
     13255      # old Intel for x86_64 which still supported -KPIC.
     13256      ecc*)
    1644513257        lt_prog_compiler_wl='-Wl,'
    1644613258        lt_prog_compiler_pic='-KPIC'
    1644713259        lt_prog_compiler_static='-static'
    1644813260        ;;
    16449       pgcc* | pgf77* | pgf90* | pgf95*)
     13261      # icc used to be incompatible with GCC.
     13262      # ICC 10 doesn't accept -KPIC any more.
     13263      icc* | ifort*)
     13264        lt_prog_compiler_wl='-Wl,'
     13265        lt_prog_compiler_pic='-fPIC'
     13266        lt_prog_compiler_static='-static'
     13267        ;;
     13268      # Lahey Fortran 8.1.
     13269      lf95*)
     13270        lt_prog_compiler_wl='-Wl,'
     13271        lt_prog_compiler_pic='--shared'
     13272        lt_prog_compiler_static='--static'
     13273        ;;
     13274      nagfor*)
     13275        # NAG Fortran compiler
     13276        lt_prog_compiler_wl='-Wl,-Wl,,'
     13277        lt_prog_compiler_pic='-PIC'
     13278        lt_prog_compiler_static='-Bstatic'
     13279        ;;
     13280      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
    1645013281        # Portland Group compilers (*not* the Pentium gcc compiler,
    1645113282        # which looks to be a dead project)
     
    1645913290        lt_prog_compiler_static='-non_shared'
    1646013291        ;;
     13292      xl* | bgxl* | bgf* | mpixl*)
     13293        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
     13294        lt_prog_compiler_wl='-Wl,'
     13295        lt_prog_compiler_pic='-qpic'
     13296        lt_prog_compiler_static='-qstaticlink'
     13297        ;;
     13298      *)
     13299        case `$CC -V 2>&1 | sed 5q` in
     13300        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
     13301          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     13302          lt_prog_compiler_pic='-KPIC'
     13303          lt_prog_compiler_static='-Bstatic'
     13304          lt_prog_compiler_wl=''
     13305          ;;
     13306        *Sun\ F* | *Sun*Fortran*)
     13307          lt_prog_compiler_pic='-KPIC'
     13308          lt_prog_compiler_static='-Bstatic'
     13309          lt_prog_compiler_wl='-Qoption ld '
     13310          ;;
     13311        *Sun\ C*)
     13312          # Sun C 5.9
     13313          lt_prog_compiler_pic='-KPIC'
     13314          lt_prog_compiler_static='-Bstatic'
     13315          lt_prog_compiler_wl='-Wl,'
     13316          ;;
     13317        *Intel*\ [CF]*Compiler*)
     13318          lt_prog_compiler_wl='-Wl,'
     13319          lt_prog_compiler_pic='-fPIC'
     13320          lt_prog_compiler_static='-static'
     13321          ;;
     13322        *Portland\ Group*)
     13323          lt_prog_compiler_wl='-Wl,'
     13324          lt_prog_compiler_pic='-fpic'
     13325          lt_prog_compiler_static='-Bstatic'
     13326          ;;
     13327        esac
     13328        ;;
    1646113329      esac
     13330      ;;
     13331
     13332    newsos6)
     13333      lt_prog_compiler_pic='-KPIC'
     13334      lt_prog_compiler_static='-Bstatic'
     13335      ;;
     13336
     13337    *nto* | *qnx*)
     13338      # QNX uses GNU C++, but need to define -shared option too, otherwise
     13339      # it will coredump.
     13340      lt_prog_compiler_pic='-fPIC -shared'
    1646213341      ;;
    1646313342
     
    1646813347      ;;
    1646913348
     13349    rdos*)
     13350      lt_prog_compiler_static='-non_shared'
     13351      ;;
     13352
    1647013353    solaris*)
    1647113354      lt_prog_compiler_pic='-KPIC'
    1647213355      lt_prog_compiler_static='-Bstatic'
    1647313356      case $cc_basename in
    16474       f77* | f90* | f95*)
     13357      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
    1647513358        lt_prog_compiler_wl='-Qoption ld ';;
    1647613359      *)
     
    1652013403  fi
    1652113404
    16522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
    16523 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
     13405case $host_os in
     13406  # For platforms which do not support PIC, -DPIC is meaningless:
     13407  *djgpp*)
     13408    lt_prog_compiler_pic=
     13409    ;;
     13410  *)
     13411    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
     13412    ;;
     13413esac
     13414
     13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
     13416$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
     13417if ${lt_cv_prog_compiler_pic+:} false; then :
     13418  $as_echo_n "(cached) " >&6
     13419else
     13420  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
     13421fi
     13422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
     13423$as_echo "$lt_cv_prog_compiler_pic" >&6; }
     13424lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
    1652413425
    1652513426#
     
    1652713428#
    1652813429if test -n "$lt_prog_compiler_pic"; then
    16529 
    16530 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
    16531 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
    16532 if test "${lt_prog_compiler_pic_works+set}" = set; then
    16533   echo $ECHO_N "(cached) $ECHO_C" >&6
    16534 else
    16535   lt_prog_compiler_pic_works=no
    16536   ac_outfile=conftest.$ac_objext
    16537    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     13430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
     13431$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
     13432if ${lt_cv_prog_compiler_pic_works+:} false; then :
     13433  $as_echo_n "(cached) " >&6
     13434else
     13435  lt_cv_prog_compiler_pic_works=no
     13436   ac_outfile=conftest.$ac_objext
     13437   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1653813438   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
    1653913439   # Insert the option either (1) after the last *FLAGS variable, or
     
    1654613446   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1654713447   -e 's:$: $lt_compiler_flag:'`
    16548    (eval echo "\"\$as_me:16548: $lt_compile\"" >&5)
     13448   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    1654913449   (eval "$lt_compile" 2>conftest.err)
    1655013450   ac_status=$?
    1655113451   cat conftest.err >&5
    16552    echo "$as_me:16552: \$? = $ac_status" >&5
     13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1655313453   if (exit $ac_status) && test -s "$ac_outfile"; then
    1655413454     # The compiler can only warn and ignore the option if not recognized
    1655513455     # So say no if there are warnings other than the usual output.
    16556      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     13456     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
    1655713457     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    1655813458     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    16559        lt_prog_compiler_pic_works=yes
     13459       lt_cv_prog_compiler_pic_works=yes
    1656013460     fi
    1656113461   fi
    16562    $rm conftest*
    16563 
    16564 fi
    16565 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
    16566 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
    16567 
    16568 if test x"$lt_prog_compiler_pic_works" = xyes; then
     13462   $RM conftest*
     13463
     13464fi
     13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
     13466$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
     13467
     13468if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
    1656913469    case $lt_prog_compiler_pic in
    1657013470     "" | " "*) ;;
     
    1657713477
    1657813478fi
    16579 case $host_os in
    16580   # For platforms which do not support PIC, -DPIC is meaningless:
    16581   *djgpp*)
    16582     lt_prog_compiler_pic=
    16583     ;;
    16584   *)
    16585     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    16586     ;;
    16587 esac
     13479
     13480
     13481
     13482
     13483
     13484
     13485
     13486
     13487
     13488
    1658813489
    1658913490#
     
    1659113492#
    1659213493wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
    16593 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
    16594 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
    16595 if test "${lt_prog_compiler_static_works+set}" = set; then
    16596   echo $ECHO_N "(cached) $ECHO_C" >&6
    16597 else
    16598   lt_prog_compiler_static_works=no
     13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
     13495$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
     13496if ${lt_cv_prog_compiler_static_works+:} false; then :
     13497  $as_echo_n "(cached) " >&6
     13498else
     13499  lt_cv_prog_compiler_static_works=no
    1659913500   save_LDFLAGS="$LDFLAGS"
    1660013501   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
    16601    printf "$lt_simple_link_test_code" > conftest.$ac_ext
     13502   echo "$lt_simple_link_test_code" > conftest.$ac_ext
    1660213503   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    1660313504     # The linker can only warn and ignore the option if not recognized
     
    1660613507       # Append any errors to the config.log.
    1660713508       cat conftest.err 1>&5
    16608        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     13509       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
    1660913510       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    1661013511       if diff conftest.exp conftest.er2 >/dev/null; then
    16611          lt_prog_compiler_static_works=yes
     13512         lt_cv_prog_compiler_static_works=yes
    1661213513       fi
    1661313514     else
    16614        lt_prog_compiler_static_works=yes
     13515       lt_cv_prog_compiler_static_works=yes
    1661513516     fi
    1661613517   fi
    16617    $rm conftest*
     13518   $RM -r conftest*
    1661813519   LDFLAGS="$save_LDFLAGS"
    1661913520
    1662013521fi
    16621 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
    16622 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
    16623 
    16624 if test x"$lt_prog_compiler_static_works" = xyes; then
     13522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
     13523$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
     13524
     13525if test x"$lt_cv_prog_compiler_static_works" = xyes; then
    1662513526    :
    1662613527else
     
    1662913530
    1663013531
    16631 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    16632 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
    16633 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
    16634   echo $ECHO_N "(cached) $ECHO_C" >&6
     13532
     13533
     13534
     13535
     13536
     13537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
     13538$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
     13539if ${lt_cv_prog_compiler_c_o+:} false; then :
     13540  $as_echo_n "(cached) " >&6
    1663513541else
    1663613542  lt_cv_prog_compiler_c_o=no
    16637    $rm -r conftest 2>/dev/null
     13543   $RM -r conftest 2>/dev/null
    1663813544   mkdir conftest
    1663913545   cd conftest
    1664013546   mkdir out
    16641    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     13547   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1664213548
    1664313549   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    1665013556   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1665113557   -e 's:$: $lt_compiler_flag:'`
    16652    (eval echo "\"\$as_me:16652: $lt_compile\"" >&5)
     13558   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    1665313559   (eval "$lt_compile" 2>out/conftest.err)
    1665413560   ac_status=$?
    1665513561   cat out/conftest.err >&5
    16656    echo "$as_me:16656: \$? = $ac_status" >&5
     13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1665713563   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1665813564   then
    1665913565     # The compiler can only warn and ignore the option if not recognized
    1666013566     # So say no if there are warnings
    16661      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     13567     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
    1666213568     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    1666313569     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    1666613572   fi
    1666713573   chmod u+w . 2>&5
    16668    $rm conftest*
     13574   $RM conftest*
    1666913575   # SGI C++ compiler will create directory out/ii_files/ for
    1667013576   # template instantiation
    16671    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
    16672    $rm out/* && rmdir out
     13577   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
     13578   $RM out/* && rmdir out
    1667313579   cd ..
    16674    rmdir conftest
    16675    $rm conftest*
    16676 
    16677 fi
    16678 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
    16679 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
     13580   $RM -r conftest
     13581   $RM conftest*
     13582
     13583fi
     13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
     13585$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
     13586
     13587
     13588
     13589
     13590
     13591
     13592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
     13593$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
     13594if ${lt_cv_prog_compiler_c_o+:} false; then :
     13595  $as_echo_n "(cached) " >&6
     13596else
     13597  lt_cv_prog_compiler_c_o=no
     13598   $RM -r conftest 2>/dev/null
     13599   mkdir conftest
     13600   cd conftest
     13601   mkdir out
     13602   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     13603
     13604   lt_compiler_flag="-o out/conftest2.$ac_objext"
     13605   # Insert the option either (1) after the last *FLAGS variable, or
     13606   # (2) before a word containing "conftest.", or (3) at the end.
     13607   # Note that $ac_compile itself does not contain backslashes and begins
     13608   # with a dollar sign (not a hyphen), so the echo should work correctly.
     13609   lt_compile=`echo "$ac_compile" | $SED \
     13610   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     13611   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     13612   -e 's:$: $lt_compiler_flag:'`
     13613   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
     13614   (eval "$lt_compile" 2>out/conftest.err)
     13615   ac_status=$?
     13616   cat out/conftest.err >&5
     13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     13618   if (exit $ac_status) && test -s out/conftest2.$ac_objext
     13619   then
     13620     # The compiler can only warn and ignore the option if not recognized
     13621     # So say no if there are warnings
     13622     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     13623     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     13624     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     13625       lt_cv_prog_compiler_c_o=yes
     13626     fi
     13627   fi
     13628   chmod u+w . 2>&5
     13629   $RM conftest*
     13630   # SGI C++ compiler will create directory out/ii_files/ for
     13631   # template instantiation
     13632   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
     13633   $RM out/* && rmdir out
     13634   cd ..
     13635   $RM -r conftest
     13636   $RM conftest*
     13637
     13638fi
     13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
     13640$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
     13641
     13642
    1668013643
    1668113644
     
    1668313646if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
    1668413647  # do not overwrite the value of need_locks provided by the user
    16685   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
    16686 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
     13648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
     13649$as_echo_n "checking if we can lock with hard links... " >&6; }
    1668713650  hard_links=yes
    16688   $rm conftest*
     13651  $RM conftest*
    1668913652  ln conftest.a conftest.b 2>/dev/null && hard_links=no
    1669013653  touch conftest.a
    1669113654  ln conftest.a conftest.b 2>&5 || hard_links=no
    1669213655  ln conftest.a conftest.b 2>/dev/null && hard_links=no
    16693   echo "$as_me:$LINENO: result: $hard_links" >&5
    16694 echo "${ECHO_T}$hard_links" >&6
     13656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
     13657$as_echo "$hard_links" >&6; }
    1669513658  if test "$hard_links" = no; then
    16696     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
    16697 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
     13659    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
     13660$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    1669813661    need_locks=warn
    1669913662  fi
     
    1670213665fi
    1670313666
    16704 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
    16705 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
     13667
     13668
     13669
     13670
     13671
     13672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
     13673$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    1670613674
    1670713675  runpath_var=
    1670813676  allow_undefined_flag=
    16709   enable_shared_with_static_runtimes=no
     13677  always_export_symbols=no
    1671013678  archive_cmds=
    1671113679  archive_expsym_cmds=
    16712   old_archive_From_new_cmds=
    16713   old_archive_from_expsyms_cmds=
     13680  compiler_needs_object=no
     13681  enable_shared_with_static_runtimes=no
    1671413682  export_dynamic_flag_spec=
    16715   whole_archive_flag_spec=
    16716   thread_safe_flag_spec=
     13683  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     13684  hardcode_automatic=no
     13685  hardcode_direct=no
     13686  hardcode_direct_absolute=no
    1671713687  hardcode_libdir_flag_spec=
    16718   hardcode_libdir_flag_spec_ld=
    1671913688  hardcode_libdir_separator=
    16720   hardcode_direct=no
    1672113689  hardcode_minus_L=no
    1672213690  hardcode_shlibpath_var=unsupported
     13691  inherit_rpath=no
    1672313692  link_all_deplibs=unknown
    16724   hardcode_automatic=no
    1672513693  module_cmds=
    1672613694  module_expsym_cmds=
    16727   always_export_symbols=no
    16728   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     13695  old_archive_from_new_cmds=
     13696  old_archive_from_expsyms_cmds=
     13697  thread_safe_flag_spec=
     13698  whole_archive_flag_spec=
    1672913699  # include_expsyms should be a list of space-separated symbols to be *always*
    1673013700  # included in the symbol list
     
    1673413704  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
    1673513705  # as well as any symbol that contains `d'.
    16736   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
     13706  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
    1673713707  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
    1673813708  # platforms (ab)use it in PIC code, but their linkers get confused if
     
    1674013710  # rely on this symbol name, it's probably fine to never include it in
    1674113711  # preloaded symbol tables.
     13712  # Exclude shared library initialization/finalization symbols.
    1674213713  extract_expsyms_cmds=
    16743   # Just being paranoid about ensuring that cc_basename is set.
    16744   for cc_temp in $compiler""; do
    16745   case $cc_temp in
    16746     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    16747     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    16748     \-*) ;;
    16749     *) break;;
    16750   esac
    16751 done
    16752 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    1675313714
    1675413715  case $host_os in
    16755   cygwin* | mingw* | pw32*)
     13716  cygwin* | mingw* | pw32* | cegcc*)
    1675613717    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    1675713718    # When not using gcc, we currently assume that we are using
     
    1676813729    with_gnu_ld=no
    1676913730    ;;
     13731  linux* | k*bsd*-gnu | gnu*)
     13732    link_all_deplibs=no
     13733    ;;
    1677013734  esac
    1677113735
    1677213736  ld_shlibs=yes
     13737
     13738  # On some targets, GNU ld is compatible enough with the native linker
     13739  # that we're better off using the native interface for both.
     13740  lt_use_gnu_ld_interface=no
    1677313741  if test "$with_gnu_ld" = yes; then
     13742    case $host_os in
     13743      aix*)
     13744        # The AIX port of GNU ld has always aspired to compatibility
     13745        # with the native linker.  However, as the warning in the GNU ld
     13746        # block says, versions before 2.19.5* couldn't really create working
     13747        # shared libraries, regardless of the interface used.
     13748        case `$LD -v 2>&1` in
     13749          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
     13750          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
     13751          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
     13752          *)
     13753            lt_use_gnu_ld_interface=yes
     13754            ;;
     13755        esac
     13756        ;;
     13757      *)
     13758        lt_use_gnu_ld_interface=yes
     13759        ;;
     13760    esac
     13761  fi
     13762
     13763  if test "$lt_use_gnu_ld_interface" = yes; then
    1677413764    # If archive_cmds runs LD, not CC, wlarc should be empty
    1677513765    wlarc='${wl}'
     
    1677913769    # here allows them to be overridden if necessary.
    1678013770    runpath_var=LD_RUN_PATH
    16781     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
     13771    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    1678213772    export_dynamic_flag_spec='${wl}--export-dynamic'
    1678313773    # ancient GNU ld didn't support --whole-archive et. al.
    16784     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
    16785         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    16786       else
    16787         whole_archive_flag_spec=
     13774    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
     13775      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     13776    else
     13777      whole_archive_flag_spec=
    1678813778    fi
    1678913779    supports_anon_versioning=no
    16790     case `$LD -v 2>/dev/null` in
     13780    case `$LD -v 2>&1` in
     13781      *GNU\ gold*) supports_anon_versioning=yes ;;
    1679113782      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
    1679213783      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
     
    1679813789    # See if GNU ld supports shared libraries.
    1679913790    case $host_os in
    16800     aix3* | aix4* | aix5*)
     13791    aix[3-9]*)
    1680113792      # On AIX/PPC, the GNU linker is very broken
    1680213793      if test "$host_cpu" != ia64; then
    1680313794        ld_shlibs=no
    16804         cat <<EOF 1>&2
    16805 
    16806 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
     13795        cat <<_LT_EOF 1>&2
     13796
     13797*** Warning: the GNU linker, at least up to release 2.19, is reported
    1680713798*** to be unable to reliably create shared libraries on AIX.
    1680813799*** Therefore, libtool is disabling shared libraries support.  If you
    16809 *** really care for shared libraries, you may want to modify your PATH
    16810 *** so that a non-GNU linker is found, and then restart.
    16811 
    16812 EOF
     13800*** really care for shared libraries, you may want to install binutils
     13801*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
     13802*** You will then need to restart the configuration process.
     13803
     13804_LT_EOF
    1681313805      fi
    1681413806      ;;
    1681513807
    1681613808    amigaos*)
    16817       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    16818       hardcode_libdir_flag_spec='-L$libdir'
    16819       hardcode_minus_L=yes
    16820 
    16821       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
    16822       # that the semantics of dynamic libraries on AmigaOS, at least up
    16823       # to version 4, is to share data among multiple programs linked
    16824       # with the same dynamic library.  Since this doesn't match the
    16825       # behavior of shared libraries on other platforms, we can't use
    16826       # them.
    16827       ld_shlibs=no
     13809      case $host_cpu in
     13810      powerpc)
     13811            # see comment about AmigaOS4 .so support
     13812            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     13813            archive_expsym_cmds=''
     13814        ;;
     13815      m68k)
     13816            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
     13817            hardcode_libdir_flag_spec='-L$libdir'
     13818            hardcode_minus_L=yes
     13819        ;;
     13820      esac
    1682813821      ;;
    1682913822
    1683013823    beos*)
    16831       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     13824      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    1683213825        allow_undefined_flag=unsupported
    1683313826        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     
    1683913832      ;;
    1684013833
    16841     cygwin* | mingw* | pw32*)
    16842       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
     13834    cygwin* | mingw* | pw32* | cegcc*)
     13835      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
    1684313836      # as there is no search path for DLLs.
    1684413837      hardcode_libdir_flag_spec='-L$libdir'
     13838      export_dynamic_flag_spec='${wl}--export-all-symbols'
    1684513839      allow_undefined_flag=unsupported
    1684613840      always_export_symbols=no
    1684713841      enable_shared_with_static_runtimes=yes
    16848       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
    16849 
    16850       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
     13842      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
     13843      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
     13844
     13845      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
    1685113846        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    1685213847        # If the export-symbols file already is a .def file (1st line
     
    1686413859      ;;
    1686513860
    16866     interix3*)
     13861    haiku*)
     13862      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     13863      link_all_deplibs=yes
     13864      ;;
     13865
     13866    interix[3-9]*)
    1686713867      hardcode_direct=no
    1686813868      hardcode_shlibpath_var=no
     
    1687913879      ;;
    1688013880
    16881     linux*)
    16882       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    16883         tmp_addflag=
     13881    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
     13882      tmp_diet=no
     13883      if test "$host_os" = linux-dietlibc; then
     13884        case $cc_basename in
     13885          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
     13886        esac
     13887      fi
     13888      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
     13889         && test "$tmp_diet" = no
     13890      then
     13891        tmp_addflag=' $pic_flag'
     13892        tmp_sharedflag='-shared'
    1688413893        case $cc_basename,$host_cpu in
    16885         pgcc*)                          # Portland Group C compiler
    16886           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     13894        pgcc*)                          # Portland Group C compiler
     13895          whole_archive_flag_spec='${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'
    1688713896          tmp_addflag=' $pic_flag'
    1688813897          ;;
    16889         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
    16890           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     13898        pgf77* | pgf90* | pgf95* | pgfortran*)
     13899                                        # Portland Group f77 and f90 compilers
     13900          whole_archive_flag_spec='${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'
    1689113901          tmp_addflag=' $pic_flag -Mnomain' ;;
    16892         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
     13902        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
    1689313903          tmp_addflag=' -i_dynamic' ;;
    1689413904        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
     
    1689613906        ifc* | ifort*)                  # Intel Fortran compiler
    1689713907          tmp_addflag=' -nofor_main' ;;
     13908        lf95*)                          # Lahey Fortran 8.1
     13909          whole_archive_flag_spec=
     13910          tmp_sharedflag='--shared' ;;
     13911        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
     13912          tmp_sharedflag='-qmkshrobj'
     13913          tmp_addflag= ;;
     13914        nvcc*)  # Cuda Compiler Driver 2.2
     13915          whole_archive_flag_spec='${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'
     13916          compiler_needs_object=yes
     13917          ;;
    1689813918        esac
    16899         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    16900 
    16901         if test $supports_anon_versioning = yes; then
    16902           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
    16903   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    16904   $echo "local: *; };" >> $output_objdir/$libname.ver~
    16905           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    16906         fi
     13919        case `$CC -V 2>&1 | sed 5q` in
     13920        *Sun\ C*)                       # Sun C 5.9
     13921          whole_archive_flag_spec='${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'
     13922          compiler_needs_object=yes
     13923          tmp_sharedflag='-G' ;;
     13924        *Sun\ F*)                       # Sun Fortran 8.3
     13925          tmp_sharedflag='-G' ;;
     13926        esac
     13927        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     13928
     13929        if test "x$supports_anon_versioning" = xyes; then
     13930          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
     13931            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     13932            echo "local: *; };" >> $output_objdir/$libname.ver~
     13933            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     13934        fi
     13935
     13936        case $cc_basename in
     13937        xlf* | bgf* | bgxlf* | mpixlf*)
     13938          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
     13939          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
     13940          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     13941          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
     13942          if test "x$supports_anon_versioning" = xyes; then
     13943            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
     13944              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     13945              echo "local: *; };" >> $output_objdir/$libname.ver~
     13946              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
     13947          fi
     13948          ;;
     13949        esac
    1690713950      else
    16908         ld_shlibs=no
     13951        ld_shlibs=no
    1690913952      fi
    1691013953      ;;
    1691113954
    16912     netbsd*)
    16913       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     13955    netbsd* | netbsdelf*-gnu)
     13956      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    1691413957        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    1691513958        wlarc=
    1691613959      else
    16917         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    16918         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     13960        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     13961        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    1691913962      fi
    1692013963      ;;
    1692113964
    1692213965    solaris*)
    16923       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
     13966      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
    1692413967        ld_shlibs=no
    16925         cat <<EOF 1>&2
     13968        cat <<_LT_EOF 1>&2
    1692613969
    1692713970*** Warning: The releases 2.8.* of the GNU linker cannot reliably
     
    1693213975*** used, and then restart.
    1693313976
    16934 EOF
    16935       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    16936         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    16937         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     13977_LT_EOF
     13978      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     13979        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     13980        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    1693813981      else
    1693913982        ld_shlibs=no
     
    1695714000        ;;
    1695814001        *)
    16959           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    16960             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
    16961             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
    16962             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
     14002          # For security reasons, it is highly recommended that you always
     14003          # use absolute paths for naming shared libraries, and exclude the
     14004          # DT_RUNPATH tag from executables and libraries.  But doing so
     14005          # requires that you compile everything twice, which is a pain.
     14006          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     14007            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     14008            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     14009            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    1696314010          else
    1696414011            ld_shlibs=no
     
    1697614023
    1697714024    *)
    16978       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    16979         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    16980         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     14025      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     14026        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     14027        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    1698114028      else
    1698214029        ld_shlibs=no
     
    1700814055      ;;
    1700914056
    17010     aix4* | aix5*)
     14057    aix[4-9]*)
    1701114058      if test "$host_cpu" = ia64; then
    1701214059        # On IA64, the linker does run time linking by default, so we don't
     
    1701814065        # If we're using GNU nm, then we don't want the "-C" option.
    1701914066        # -C means demangle to AIX nm, but means don't demangle with GNU nm
    17020         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
    17021           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     14067        # Also, AIX nm treats weak defined symbols like other global
     14068        # defined symbols, whereas GNU nm marks them as "W".
     14069        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
     14070          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    1702214071        else
    17023           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     14072          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    1702414073        fi
    1702514074        aix_use_runtimelinking=no
     
    1702814077        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    1702914078        # need to do runtime linking.
    17030         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
     14079        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
    1703114080          for ld_flag in $LDFLAGS; do
    17032           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
    17033             aix_use_runtimelinking=yes
    17034             break
    17035           fi
     14081          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
     14082            aix_use_runtimelinking=yes
     14083            break
     14084          fi
    1703614085          done
    1703714086          ;;
     
    1705014099      archive_cmds=''
    1705114100      hardcode_direct=yes
     14101      hardcode_direct_absolute=yes
    1705214102      hardcode_libdir_separator=':'
    1705314103      link_all_deplibs=yes
     14104      file_list_spec='${wl}-f,'
    1705414105
    1705514106      if test "$GCC" = yes; then
     
    1705814109        # below for broken collect2 doesn't work under 4.3+
    1705914110          collect2name=`${CC} -print-prog-name=collect2`
    17060           if test -f "$collect2name" && \
    17061            strings "$collect2name" | grep resolve_lib_name >/dev/null
     14111          if test -f "$collect2name" &&
     14112           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
    1706214113          then
    17063           # We have reworked collect2
    17064           hardcode_direct=yes
     14114          # We have reworked collect2
     14115          :
    1706514116          else
    17066           # We have old collect2
    17067           hardcode_direct=unsupported
    17068           # It fails to find uninstalled libraries when the uninstalled
    17069           # path is not listed in the libpath.  Setting hardcode_minus_L
    17070           # to unsupported forces relinking
    17071           hardcode_minus_L=yes
    17072           hardcode_libdir_flag_spec='-L$libdir'
    17073           hardcode_libdir_separator=
     14117          # We have old collect2
     14118          hardcode_direct=unsupported
     14119          # It fails to find uninstalled libraries when the uninstalled
     14120          # path is not listed in the libpath.  Setting hardcode_minus_L
     14121          # to unsupported forces relinking
     14122          hardcode_minus_L=yes
     14123          hardcode_libdir_flag_spec='-L$libdir'
     14124          hardcode_libdir_separator=
    1707414125          fi
    1707514126          ;;
     
    1707914130          shared_flag="$shared_flag "'${wl}-G'
    1708014131        fi
     14132        link_all_deplibs=no
    1708114133      else
    1708214134        # not using gcc
    1708314135        if test "$host_cpu" = ia64; then
    17084         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    17085         # chokes on -Wl,-G. The following line is correct:
     14136        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
     14137        # chokes on -Wl,-G. The following line is correct:
    1708614138          shared_flag='-G'
    1708714139        else
     
    1709414146      fi
    1709514147
     14148      export_dynamic_flag_spec='${wl}-bexpall'
    1709614149      # It seems that -bexpall does not export symbols beginning with
    1709714150      # underscore (_), so it is better to generate a list of symbols to export.
     
    1710114154        # -berok will link without error, but may produce a broken library.
    1710214155        allow_undefined_flag='-berok'
    17103        # Determine the default libpath from the value encoded in an empty executable.
    17104        cat >conftest.$ac_ext <<_ACEOF
    17105 /* confdefs.h.  */
    17106 _ACEOF
    17107 cat confdefs.h >>conftest.$ac_ext
    17108 cat >>conftest.$ac_ext <<_ACEOF
     14156        # Determine the default libpath from the value encoded in an
     14157        # empty executable.
     14158        if test "${lt_cv_aix_libpath+set}" = set; then
     14159  aix_libpath=$lt_cv_aix_libpath
     14160else
     14161  if ${lt_cv_aix_libpath_+:} false; then :
     14162  $as_echo_n "(cached) " >&6
     14163else
     14164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1710914165/* end confdefs.h.  */
    1711014166
     
    1711714173}
    1711814174_ACEOF
    17119 rm -f conftest.$ac_objext conftest$ac_exeext
    17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    17121   (eval $ac_link) 2>conftest.er1
    17122   ac_status=$?
    17123   grep -v '^ *+' conftest.er1 >conftest.err
    17124   rm -f conftest.er1
    17125   cat conftest.err >&5
    17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17127   (exit $ac_status); } &&
    17128          { ac_try='test -z "$ac_c_werror_flag"
    17129                          || test ! -s conftest.err'
    17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17131   (eval $ac_try) 2>&5
    17132   ac_status=$?
    17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17134   (exit $ac_status); }; } &&
    17135          { ac_try='test -s conftest$ac_exeext'
    17136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17137   (eval $ac_try) 2>&5
    17138   ac_status=$?
    17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17140   (exit $ac_status); }; }; then
    17141 
    17142 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    17143 }'`
    17144 # Check for a 64-bit object if we didn't find anything.
    17145 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    17146 }'`; fi
    17147 else
    17148   echo "$as_me: failed program was:" >&5
    17149 sed 's/^/| /' conftest.$ac_ext >&5
    17150 
    17151 fi
    17152 rm -f conftest.err conftest.$ac_objext \
    17153       conftest$ac_exeext conftest.$ac_ext
    17154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    17155 
    17156        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
    17157         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    17158        else
     14175if ac_fn_c_try_link "$LINENO"; then :
     14176
     14177  lt_aix_libpath_sed='
     14178      /Import File Strings/,/^$/ {
     14179          /^0/ {
     14180              s/^0  *\([^ ]*\) *$/\1/
     14181              p
     14182          }
     14183      }'
     14184  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     14185  # Check for a 64-bit object if we didn't find anything.
     14186  if test -z "$lt_cv_aix_libpath_"; then
     14187    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     14188  fi
     14189fi
     14190rm -f core conftest.err conftest.$ac_objext \
     14191    conftest$ac_exeext conftest.$ac_ext
     14192  if test -z "$lt_cv_aix_libpath_"; then
     14193    lt_cv_aix_libpath_="/usr/lib:/lib"
     14194  fi
     14195
     14196fi
     14197
     14198  aix_libpath=$lt_cv_aix_libpath_
     14199fi
     14200
     14201        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
     14202        archive_expsym_cmds='$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"
     14203      else
    1715914204        if test "$host_cpu" = ia64; then
    1716014205          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
     
    1716214207          archive_expsym_cmds="\$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"
    1716314208        else
    17164          # Determine the default libpath from the value encoded in an empty executable.
    17165          cat >conftest.$ac_ext <<_ACEOF
    17166 /* confdefs.h.  */
    17167 _ACEOF
    17168 cat confdefs.h >>conftest.$ac_ext
    17169 cat >>conftest.$ac_ext <<_ACEOF
     14209         # Determine the default libpath from the value encoded in an
     14210         # empty executable.
     14211         if test "${lt_cv_aix_libpath+set}" = set; then
     14212  aix_libpath=$lt_cv_aix_libpath
     14213else
     14214  if ${lt_cv_aix_libpath_+:} false; then :
     14215  $as_echo_n "(cached) " >&6
     14216else
     14217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1717014218/* end confdefs.h.  */
    1717114219
     
    1717814226}
    1717914227_ACEOF
    17180 rm -f conftest.$ac_objext conftest$ac_exeext
    17181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    17182   (eval $ac_link) 2>conftest.er1
    17183   ac_status=$?
    17184   grep -v '^ *+' conftest.er1 >conftest.err
    17185   rm -f conftest.er1
    17186   cat conftest.err >&5
    17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17188   (exit $ac_status); } &&
    17189          { ac_try='test -z "$ac_c_werror_flag"
    17190                          || test ! -s conftest.err'
    17191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17192   (eval $ac_try) 2>&5
    17193   ac_status=$?
    17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17195   (exit $ac_status); }; } &&
    17196          { ac_try='test -s conftest$ac_exeext'
    17197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17198   (eval $ac_try) 2>&5
    17199   ac_status=$?
    17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17201   (exit $ac_status); }; }; then
    17202 
    17203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    17204 }'`
    17205 # Check for a 64-bit object if we didn't find anything.
    17206 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    17207 }'`; fi
    17208 else
    17209   echo "$as_me: failed program was:" >&5
    17210 sed 's/^/| /' conftest.$ac_ext >&5
    17211 
    17212 fi
    17213 rm -f conftest.err conftest.$ac_objext \
    17214       conftest$ac_exeext conftest.$ac_ext
    17215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     14228if ac_fn_c_try_link "$LINENO"; then :
     14229
     14230  lt_aix_libpath_sed='
     14231      /Import File Strings/,/^$/ {
     14232          /^0/ {
     14233              s/^0  *\([^ ]*\) *$/\1/
     14234              p
     14235          }
     14236      }'
     14237  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     14238  # Check for a 64-bit object if we didn't find anything.
     14239  if test -z "$lt_cv_aix_libpath_"; then
     14240    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     14241  fi
     14242fi
     14243rm -f core conftest.err conftest.$ac_objext \
     14244    conftest$ac_exeext conftest.$ac_ext
     14245  if test -z "$lt_cv_aix_libpath_"; then
     14246    lt_cv_aix_libpath_="/usr/lib:/lib"
     14247  fi
     14248
     14249fi
     14250
     14251  aix_libpath=$lt_cv_aix_libpath_
     14252fi
    1721614253
    1721714254         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
     
    1722014257          no_undefined_flag=' ${wl}-bernotok'
    1722114258          allow_undefined_flag=' ${wl}-berok'
    17222           # Exported symbols can be pulled into shared objects from archives
    17223           whole_archive_flag_spec='$convenience'
     14259          if test "$with_gnu_ld" = yes; then
     14260            # We only use this code for GNU lds that support --whole-archive.
     14261            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     14262          else
     14263            # Exported symbols can be pulled into shared objects from archives
     14264            whole_archive_flag_spec='$convenience'
     14265          fi
    1722414266          archive_cmds_need_lc=yes
    1722514267          # This is similar to how AIX traditionally builds its shared libraries.
     
    1723014272
    1723114273    amigaos*)
    17232       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    17233       hardcode_libdir_flag_spec='-L$libdir'
    17234       hardcode_minus_L=yes
    17235       # see comment about different semantics on the GNU ld section
    17236       ld_shlibs=no
     14274      case $host_cpu in
     14275      powerpc)
     14276            # see comment about AmigaOS4 .so support
     14277            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     14278            archive_expsym_cmds=''
     14279        ;;
     14280      m68k)
     14281            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
     14282            hardcode_libdir_flag_spec='-L$libdir'
     14283            hardcode_minus_L=yes
     14284        ;;
     14285      esac
    1723714286      ;;
    1723814287
     
    1724114290      ;;
    1724214291
    17243     cygwin* | mingw* | pw32*)
     14292    cygwin* | mingw* | pw32* | cegcc*)
    1724414293      # When not using gcc, we currently assume that we are using
    1724514294      # Microsoft Visual C++.
    1724614295      # hardcode_libdir_flag_spec is actually meaningless, as there is
    1724714296      # no search path for DLLs.
    17248       hardcode_libdir_flag_spec=' '
    17249       allow_undefined_flag=unsupported
    17250       # Tell ltmain to make .lib files, not .a files.
    17251       libext=lib
    17252       # Tell ltmain to make .dll files, not .so files.
    17253       shrext_cmds=".dll"
    17254       # FIXME: Setting linknames here is a bad hack.
    17255       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
    17256       # The linker will automatically build a .lib file if we build a DLL.
    17257       old_archive_From_new_cmds='true'
    17258       # FIXME: Should let the user specify the lib program.
    17259       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
    17260       fix_srcfile_path='`cygpath -w "$srcfile"`'
    17261       enable_shared_with_static_runtimes=yes
     14297      case $cc_basename in
     14298      cl*)
     14299        # Native MSVC
     14300        hardcode_libdir_flag_spec=' '
     14301        allow_undefined_flag=unsupported
     14302        always_export_symbols=yes
     14303        file_list_spec='@'
     14304        # Tell ltmain to make .lib files, not .a files.
     14305        libext=lib
     14306        # Tell ltmain to make .dll files, not .so files.
     14307        shrext_cmds=".dll"
     14308        # FIXME: Setting linknames here is a bad hack.
     14309        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     14310        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     14311            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     14312          else
     14313            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     14314          fi~
     14315          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     14316          linknames='
     14317        # The linker will not automatically build a static lib if we build a DLL.
     14318        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
     14319        enable_shared_with_static_runtimes=yes
     14320        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
     14321        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
     14322        # Don't use ranlib
     14323        old_postinstall_cmds='chmod 644 $oldlib'
     14324        postlink_cmds='lt_outputfile="@OUTPUT@"~
     14325          lt_tool_outputfile="@TOOL_OUTPUT@"~
     14326          case $lt_outputfile in
     14327            *.exe|*.EXE) ;;
     14328            *)
     14329              lt_outputfile="$lt_outputfile.exe"
     14330              lt_tool_outputfile="$lt_tool_outputfile.exe"
     14331              ;;
     14332          esac~
     14333          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     14334            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     14335            $RM "$lt_outputfile.manifest";
     14336          fi'
     14337        ;;
     14338      *)
     14339        # Assume MSVC wrapper
     14340        hardcode_libdir_flag_spec=' '
     14341        allow_undefined_flag=unsupported
     14342        # Tell ltmain to make .lib files, not .a files.
     14343        libext=lib
     14344        # Tell ltmain to make .dll files, not .so files.
     14345        shrext_cmds=".dll"
     14346        # FIXME: Setting linknames here is a bad hack.
     14347        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
     14348        # The linker will automatically build a .lib file if we build a DLL.
     14349        old_archive_from_new_cmds='true'
     14350        # FIXME: Should let the user specify the lib program.
     14351        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
     14352        enable_shared_with_static_runtimes=yes
     14353        ;;
     14354      esac
    1726214355      ;;
    1726314356
    1726414357    darwin* | rhapsody*)
    17265       case $host_os in
    17266         rhapsody* | darwin1.[012])
    17267          allow_undefined_flag='${wl}-undefined ${wl}suppress'
    17268          ;;
    17269        *) # Darwin 1.3 on
    17270          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    17271            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
    17272          else
    17273            case ${MACOSX_DEPLOYMENT_TARGET} in
    17274              10.[012])
    17275                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
    17276                ;;
    17277              10.*)
    17278                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
    17279                ;;
    17280            esac
    17281          fi
    17282          ;;
    17283       esac
    17284       archive_cmds_need_lc=no
    17285       hardcode_direct=no
    17286       hardcode_automatic=yes
    17287       hardcode_shlibpath_var=unsupported
    17288       whole_archive_flag_spec=''
    17289       link_all_deplibs=yes
    17290     if test "$GCC" = yes ; then
    17291         output_verbose_link_cmd='echo'
    17292         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    17293       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    17294       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    17295       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    17296       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    17297     else
    17298       case $cc_basename in
    17299         xlc*)
    17300          output_verbose_link_cmd='echo'
    17301          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
    17302          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    17303           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    17304          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    17305           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    17306           ;;
    17307        *)
    17308          ld_shlibs=no
    17309           ;;
    17310       esac
    17311     fi
     14358
     14359
     14360  archive_cmds_need_lc=no
     14361  hardcode_direct=no
     14362  hardcode_automatic=yes
     14363  hardcode_shlibpath_var=unsupported
     14364  if test "$lt_cv_ld_force_load" = "yes"; then
     14365    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
     14366
     14367  else
     14368    whole_archive_flag_spec=''
     14369  fi
     14370  link_all_deplibs=yes
     14371  allow_undefined_flag="$_lt_dar_allow_undefined"
     14372  case $cc_basename in
     14373     ifort*) _lt_dar_can_shared=yes ;;
     14374     *) _lt_dar_can_shared=$GCC ;;
     14375  esac
     14376  if test "$_lt_dar_can_shared" = "yes"; then
     14377    output_verbose_link_cmd=func_echo_all
     14378    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
     14379    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     14380    archive_expsym_cmds="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}"
     14381    module_expsym_cmds="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}"
     14382
     14383  else
     14384  ld_shlibs=no
     14385  fi
     14386
    1731214387      ;;
    1731314388
     
    1731614391      hardcode_libdir_flag_spec='-L$libdir'
    1731714392      hardcode_shlibpath_var=no
    17318       ;;
    17319 
    17320     freebsd1*)
    17321       ld_shlibs=no
    1732214393      ;;
    1732314394
     
    1733414405
    1733514406    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    17336     freebsd2*)
     14407    freebsd2.*)
    1733714408      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    1733814409      hardcode_direct=yes
     
    1734214413
    1734314414    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    17344     freebsd* | kfreebsd*-gnu | dragonfly*)
    17345       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     14415    freebsd* | dragonfly*)
     14416      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    1734614417      hardcode_libdir_flag_spec='-R$libdir'
    1734714418      hardcode_direct=yes
     
    1735114422    hpux9*)
    1735214423      if test "$GCC" = yes; then
    17353         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     14424        archive_cmds='$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'
    1735414425      else
    17355         archive_cmds='$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'
     14426        archive_cmds='$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'
    1735614427      fi
    1735714428      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     
    1736614437
    1736714438    hpux10*)
    17368       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    17369         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     14439      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     14440        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    1737014441      else
    1737114442        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     
    1737414445        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    1737514446        hardcode_libdir_separator=:
    17376 
    1737714447        hardcode_direct=yes
     14448        hardcode_direct_absolute=yes
    1737814449        export_dynamic_flag_spec='${wl}-E'
    17379 
    1738014450        # hardcode_minus_L: Not really in the search PATH,
    1738114451        # but as the default location of the library.
     
    1738514455
    1738614456    hpux11*)
    17387       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     14457      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
    1738814458        case $host_cpu in
    1738914459        hppa*64*)
     
    1739114461          ;;
    1739214462        ia64*)
    17393           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     14463          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    1739414464          ;;
    1739514465        *)
    17396           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     14466          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    1739714467          ;;
    1739814468        esac
     
    1740614476          ;;
    1740714477        *)
    17408           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     14478
     14479          # Older versions of the 11.00 compiler do not understand -b yet
     14480          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
     14481          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
     14482$as_echo_n "checking if $CC understands -b... " >&6; }
     14483if ${lt_cv_prog_compiler__b+:} false; then :
     14484  $as_echo_n "(cached) " >&6
     14485else
     14486  lt_cv_prog_compiler__b=no
     14487   save_LDFLAGS="$LDFLAGS"
     14488   LDFLAGS="$LDFLAGS -b"
     14489   echo "$lt_simple_link_test_code" > conftest.$ac_ext
     14490   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
     14491     # The linker can only warn and ignore the option if not recognized
     14492     # So say no if there are warnings
     14493     if test -s conftest.err; then
     14494       # Append any errors to the config.log.
     14495       cat conftest.err 1>&5
     14496       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
     14497       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     14498       if diff conftest.exp conftest.er2 >/dev/null; then
     14499         lt_cv_prog_compiler__b=yes
     14500       fi
     14501     else
     14502       lt_cv_prog_compiler__b=yes
     14503     fi
     14504   fi
     14505   $RM -r conftest*
     14506   LDFLAGS="$save_LDFLAGS"
     14507
     14508fi
     14509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
     14510$as_echo "$lt_cv_prog_compiler__b" >&6; }
     14511
     14512if test x"$lt_cv_prog_compiler__b" = xyes; then
     14513    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     14514else
     14515    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     14516fi
     14517
    1740914518          ;;
    1741014519        esac
     
    1741614525        case $host_cpu in
    1741714526        hppa*64*|ia64*)
    17418           hardcode_libdir_flag_spec_ld='+b $libdir'
    1741914527          hardcode_direct=no
    1742014528          hardcode_shlibpath_var=no
     
    1742214530        *)
    1742314531          hardcode_direct=yes
     14532          hardcode_direct_absolute=yes
    1742414533          export_dynamic_flag_spec='${wl}-E'
    1742514534
     
    1743414543    irix5* | irix6* | nonstopux*)
    1743514544      if test "$GCC" = yes; then
    17436         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     14545        archive_cmds='$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'
     14546        # Try to use the -exported_symbol ld option, if it does not
     14547        # work, assume that -exports_file does not work either and
     14548        # implicitly export all symbols.
     14549        # This should be the same for all languages, so no per-tag cache variable.
     14550        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
     14551$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
     14552if ${lt_cv_irix_exported_symbol+:} false; then :
     14553  $as_echo_n "(cached) " >&6
     14554else
     14555  save_LDFLAGS="$LDFLAGS"
     14556           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
     14557           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     14558/* end confdefs.h.  */
     14559int foo (void) { return 0; }
     14560_ACEOF
     14561if ac_fn_c_try_link "$LINENO"; then :
     14562  lt_cv_irix_exported_symbol=yes
     14563else
     14564  lt_cv_irix_exported_symbol=no
     14565fi
     14566rm -f core conftest.err conftest.$ac_objext \
     14567    conftest$ac_exeext conftest.$ac_ext
     14568           LDFLAGS="$save_LDFLAGS"
     14569fi
     14570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
     14571$as_echo "$lt_cv_irix_exported_symbol" >&6; }
     14572        if test "$lt_cv_irix_exported_symbol" = yes; then
     14573          archive_expsym_cmds='$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'
     14574        fi
    1743714575      else
    17438         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    17439         hardcode_libdir_flag_spec_ld='-rpath $libdir'
     14576        archive_cmds='$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'
     14577        archive_expsym_cmds='$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'
    1744014578      fi
     14579      archive_cmds_need_lc='no'
    1744114580      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    1744214581      hardcode_libdir_separator=:
     14582      inherit_rpath=yes
    1744314583      link_all_deplibs=yes
    1744414584      ;;
    1744514585
    17446     netbsd*)
    17447       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     14586    netbsd* | netbsdelf*-gnu)
     14587      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    1744814588        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    1744914589      else
     
    1746314603      ;;
    1746414604
     14605    *nto* | *qnx*)
     14606      ;;
     14607
    1746514608    openbsd*)
    17466       hardcode_direct=yes
    17467       hardcode_shlibpath_var=no
    17468       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    17469         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    17470         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
    17471         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
    17472         export_dynamic_flag_spec='${wl}-E'
     14609      if test -f /usr/libexec/ld.so; then
     14610        hardcode_direct=yes
     14611        hardcode_shlibpath_var=no
     14612        hardcode_direct_absolute=yes
     14613        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     14614          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     14615          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     14616          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     14617          export_dynamic_flag_spec='${wl}-E'
     14618        else
     14619          case $host_os in
     14620           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
     14621             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     14622             hardcode_libdir_flag_spec='-R$libdir'
     14623             ;;
     14624           *)
     14625             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     14626             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     14627             ;;
     14628          esac
     14629        fi
    1747314630      else
    17474        case $host_os in
    17475          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
    17476            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    17477            hardcode_libdir_flag_spec='-R$libdir'
    17478            ;;
    17479          *)
    17480            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    17481            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
    17482            ;;
    17483        esac
     14631        ld_shlibs=no
    1748414632      fi
    1748514633      ;;
     
    1748914637      hardcode_minus_L=yes
    1749014638      allow_undefined_flag=unsupported
    17491       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    17492       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
     14639      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
     14640      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    1749314641      ;;
    1749414642
     
    1749614644      if test "$GCC" = yes; then
    1749714645        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
    17498         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     14646        archive_cmds='$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'
    1749914647      else
    1750014648        allow_undefined_flag=' -expect_unresolved \*'
    17501         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     14649        archive_cmds='$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'
    1750214650      fi
     14651      archive_cmds_need_lc='no'
    1750314652      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    1750414653      hardcode_libdir_separator=:
     
    1750814657      if test "$GCC" = yes; then
    1750914658        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
    17510         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     14659        archive_cmds='$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'
    1751114660        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    1751214661      else
    1751314662        allow_undefined_flag=' -expect_unresolved \*'
    17514         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    17515         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
    17516         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
     14663        archive_cmds='$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'
     14664        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
     14665        $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'
    1751714666
    1751814667        # Both c and cxx compiler support -rpath directly
    1751914668        hardcode_libdir_flag_spec='-rpath $libdir'
    1752014669      fi
     14670      archive_cmds_need_lc='no'
    1752114671      hardcode_libdir_separator=:
    1752214672      ;;
    1752314673
    1752414674    solaris*)
    17525       no_undefined_flag=' -z text'
     14675      no_undefined_flag=' -z defs'
    1752614676      if test "$GCC" = yes; then
    1752714677        wlarc='${wl}'
    17528         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    17529         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    17530           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
     14678        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     14679        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     14680          $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'
    1753114681      else
    17532         wlarc=''
    17533         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    17534         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    17535         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
     14682        case `$CC -V 2>&1` in
     14683        *"Compilers 5.0"*)
     14684          wlarc=''
     14685          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     14686          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     14687          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
     14688          ;;
     14689        *)
     14690          wlarc='${wl}'
     14691          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
     14692          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     14693          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
     14694          ;;
     14695        esac
    1753614696      fi
    1753714697      hardcode_libdir_flag_spec='-R$libdir'
     
    1754014700      solaris2.[0-5] | solaris2.[0-5].*) ;;
    1754114701      *)
    17542         # The compiler driver will combine linker options so we
    17543         # cannot just pass the convience library names through
    17544         # without $wl, iff we do not link with $LD.
    17545         # Luckily, gcc supports the same syntax we need for Sun Studio.
    17546         # Supported since Solaris 2.6 (maybe 2.5.1?)
    17547         case $wlarc in
    17548         '')
    17549           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
    17550         *)
    17551           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
    17552         esac ;;
     14702        # The compiler driver will combine and reorder linker options,
     14703        # but understands `-z linker_flag'.  GCC discards it without `$wl',
     14704        # but is careful enough not to reorder.
     14705        # Supported since Solaris 2.6 (maybe 2.5.1?)
     14706        if test "$GCC" = yes; then
     14707          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     14708        else
     14709          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
     14710        fi
     14711        ;;
    1755314712      esac
    1755414713      link_all_deplibs=yes
     
    1760714766      ;;
    1760814767
    17609     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
     14768    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
    1761014769      no_undefined_flag='${wl}-z,text'
    1761114770      archive_cmds_need_lc=no
     
    1763314792      archive_cmds_need_lc=no
    1763414793      hardcode_shlibpath_var=no
    17635       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     14794      hardcode_libdir_flag_spec='${wl}-R,$libdir'
    1763614795      hardcode_libdir_separator=':'
    1763714796      link_all_deplibs=yes
     
    1764014799
    1764114800      if test "$GCC" = yes; then
    17642         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    17643         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     14801        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     14802        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    1764414803      else
    17645         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    17646         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     14804        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     14805        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    1764714806      fi
    1764814807      ;;
     
    1765814817      ;;
    1765914818    esac
     14819
     14820    if test x$host_vendor = xsni; then
     14821      case $host in
     14822      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     14823        export_dynamic_flag_spec='${wl}-Blargedynsym'
     14824        ;;
     14825      esac
     14826    fi
    1766014827  fi
    1766114828
    17662 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
    17663 echo "${ECHO_T}$ld_shlibs" >&6
     14829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
     14830$as_echo "$ld_shlibs" >&6; }
    1766414831test "$ld_shlibs" = no && can_build_shared=no
     14832
     14833with_gnu_ld=$with_gnu_ld
     14834
     14835
     14836
     14837
     14838
     14839
     14840
     14841
     14842
     14843
     14844
     14845
     14846
     14847
    1766514848
    1766614849#
     
    1768114864      # systems, -lgcc has to come before -lc. If gcc already passes -lc
    1768214865      # to ld, don't add -lc before -lgcc.
    17683       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
    17684 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    17685       $rm conftest*
    17686       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    17687 
    17688       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     14866      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
     14867$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
     14868if ${lt_cv_archive_cmds_need_lc+:} false; then :
     14869  $as_echo_n "(cached) " >&6
     14870else
     14871  $RM conftest*
     14872        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     14873
     14874        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    1768914875  (eval $ac_compile) 2>&5
    1769014876  ac_status=$?
    17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17692   (exit $ac_status); } 2>conftest.err; then
    17693         soname=conftest
    17694         lib=conftest
    17695         libobjs=conftest.$ac_objext
    17696         deplibs=
    17697         wl=$lt_prog_compiler_wl
    17698         pic_flag=$lt_prog_compiler_pic
    17699         compiler_flags=-v
    17700         linker_flags=-v
    17701         verstring=
    17702         output_objdir=.
    17703         libname=conftest
    17704         lt_save_allow_undefined_flag=$allow_undefined_flag
    17705         allow_undefined_flag=
    17706         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
    17707   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
     14877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     14878  test $ac_status = 0; } 2>conftest.err; then
     14879          soname=conftest
     14880          lib=conftest
     14881          libobjs=conftest.$ac_objext
     14882          deplibs=
     14883          wl=$lt_prog_compiler_wl
     14884          pic_flag=$lt_prog_compiler_pic
     14885          compiler_flags=-v
     14886          linker_flags=-v
     14887          verstring=
     14888          output_objdir=.
     14889          libname=conftest
     14890          lt_save_allow_undefined_flag=$allow_undefined_flag
     14891          allow_undefined_flag=
     14892          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
     14893  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
    1770814894  ac_status=$?
    17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17710   (exit $ac_status); }
    17711         then
    17712           archive_cmds_need_lc=no
    17713         else
    17714           archive_cmds_need_lc=yes
    17715         fi
    17716         allow_undefined_flag=$lt_save_allow_undefined_flag
    17717       else
    17718         cat conftest.err 1>&5
    17719       fi
    17720       $rm conftest*
    17721       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
    17722 echo "${ECHO_T}$archive_cmds_need_lc" >&6
     14895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     14896  test $ac_status = 0; }
     14897          then
     14898            lt_cv_archive_cmds_need_lc=no
     14899          else
     14900            lt_cv_archive_cmds_need_lc=yes
     14901          fi
     14902          allow_undefined_flag=$lt_save_allow_undefined_flag
     14903        else
     14904          cat conftest.err 1>&5
     14905        fi
     14906        $RM conftest*
     14907
     14908fi
     14909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
     14910$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
     14911      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
    1772314912      ;;
    1772414913    esac
     
    1772714916esac
    1772814917
    17729 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
    17730 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
     14918
     14919
     14920
     14921
     14922
     14923
     14924
     14925
     14926
     14927
     14928
     14929
     14930
     14931
     14932
     14933
     14934
     14935
     14936
     14937
     14938
     14939
     14940
     14941
     14942
     14943
     14944
     14945
     14946
     14947
     14948
     14949
     14950
     14951
     14952
     14953
     14954
     14955
     14956
     14957
     14958
     14959
     14960
     14961
     14962
     14963
     14964
     14965
     14966
     14967
     14968
     14969
     14970
     14971
     14972
     14973
     14974
     14975
     14976
     14977
     14978
     14979
     14980
     14981
     14982
     14983
     14984
     14985
     14986
     14987
     14988
     14989
     14990
     14991
     14992
     14993
     14994
     14995
     14996
     14997
     14998
     14999
     15000
     15001
     15002
     15003
     15004
     15005
     15006
     15007
     15008
     15009
     15010
     15011
     15012
     15013
     15014
     15015
     15016
     15017
     15018
     15019
     15020
     15021
     15022
     15023
     15024
     15025
     15026
     15027
     15028
     15029
     15030
     15031
     15032
     15033
     15034
     15035
     15036
     15037
     15038
     15039
     15040
     15041
     15042
     15043
     15044
     15045
     15046
     15047
     15048
     15049
     15050
     15051
     15052
     15053
     15054
     15055
     15056
     15057
     15058
     15059
     15060
     15061
     15062
     15063
     15064
     15065
     15066
     15067
     15068
     15069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
     15070$as_echo_n "checking dynamic linker characteristics... " >&6; }
     15071
     15072if test "$GCC" = yes; then
     15073  case $host_os in
     15074    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
     15075    *) lt_awk_arg="/^libraries:/" ;;
     15076  esac
     15077  case $host_os in
     15078    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
     15079    *) lt_sed_strip_eq="s,=/,/,g" ;;
     15080  esac
     15081  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
     15082  case $lt_search_path_spec in
     15083  *\;*)
     15084    # if the path contains ";" then we assume it to be the separator
     15085    # otherwise default to the standard path separator (i.e. ":") - it is
     15086    # assumed that no part of a normal pathname contains ";" but that should
     15087    # okay in the real world where ";" in dirpaths is itself problematic.
     15088    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
     15089    ;;
     15090  *)
     15091    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
     15092    ;;
     15093  esac
     15094  # Ok, now we have the path, separated by spaces, we can step through it
     15095  # and add multilib dir if necessary.
     15096  lt_tmp_lt_search_path_spec=
     15097  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
     15098  for lt_sys_path in $lt_search_path_spec; do
     15099    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
     15100      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
     15101    else
     15102      test -d "$lt_sys_path" && \
     15103        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
     15104    fi
     15105  done
     15106  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
     15107BEGIN {RS=" "; FS="/|\n";} {
     15108  lt_foo="";
     15109  lt_count=0;
     15110  for (lt_i = NF; lt_i > 0; lt_i--) {
     15111    if ($lt_i != "" && $lt_i != ".") {
     15112      if ($lt_i == "..") {
     15113        lt_count++;
     15114      } else {
     15115        if (lt_count == 0) {
     15116          lt_foo="/" $lt_i lt_foo;
     15117        } else {
     15118          lt_count--;
     15119        }
     15120      }
     15121    }
     15122  }
     15123  if (lt_foo != "") { lt_freq[lt_foo]++; }
     15124  if (lt_freq[lt_foo] == 1) { print lt_foo; }
     15125}'`
     15126  # AWK program above erroneously prepends '/' to C:/dos/paths
     15127  # for these hosts.
     15128  case $host_os in
     15129    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
     15130      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
     15131  esac
     15132  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
     15133else
     15134  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
     15135fi
    1773115136library_names_spec=
    1773215137libname_spec='lib$name'
     
    1774215147dynamic_linker="$host_os ld.so"
    1774315148sys_lib_dlsearch_path_spec="/lib /usr/lib"
    17744 if test "$GCC" = yes; then
    17745   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    17746   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    17747     # if the path contains ";" then we assume it to be the separator
    17748     # otherwise default to the standard path separator (i.e. ":") - it is
    17749     # assumed that no part of a normal pathname contains ";" but that should
    17750     # okay in the real world where ";" in dirpaths is itself problematic.
    17751     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    17752   else
    17753     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    17754   fi
    17755 else
    17756   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    17757 fi
    1775815149need_lib_prefix=unknown
    1775915150hardcode_into_libs=no
     
    1776515156case $host_os in
    1776615157aix3*)
    17767   version_type=linux
     15158  version_type=linux # correct to gnu/linux during the next big refactor
    1776815159  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
    1776915160  shlibpath_var=LIBPATH
     
    1777315164  ;;
    1777415165
    17775 aix4* | aix5*)
    17776   version_type=linux
     15166aix[4-9]*)
     15167  version_type=linux # correct to gnu/linux during the next big refactor
    1777715168  need_lib_prefix=no
    1777815169  need_version=no
     
    1779215183      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    1779315184           echo ' yes '
    17794            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
     15185           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
    1779515186        :
    1779615187      else
     
    1781815209
    1781915210amigaos*)
    17820   library_names_spec='$libname.ixlibrary $libname.a'
    17821   # Create ${libname}_ixlibrary.a entries in /sys/libs.
    17822   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
     15211  case $host_cpu in
     15212  powerpc)
     15213    # Since July 2007 AmigaOS4 officially supports .so libraries.
     15214    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
     15215    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     15216    ;;
     15217  m68k)
     15218    library_names_spec='$libname.ixlibrary $libname.a'
     15219    # Create ${libname}_ixlibrary.a entries in /sys/libs.
     15220    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'
     15221    ;;
     15222  esac
    1782315223  ;;
    1782415224
     
    1783015230
    1783115231bsdi[45]*)
    17832   version_type=linux
     15232  version_type=linux # correct to gnu/linux during the next big refactor
    1783315233  need_version=no
    1783415234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     
    1784315243  ;;
    1784415244
    17845 cygwin* | mingw* | pw32*)
     15245cygwin* | mingw* | pw32* | cegcc*)
    1784615246  version_type=windows
    1784715247  shrext_cmds=".dll"
     
    1784915249  need_lib_prefix=no
    1785015250
    17851   case $GCC,$host_os in
    17852   yes,cygwin* | yes,mingw* | yes,pw32*)
     15251  case $GCC,$cc_basename in
     15252  yes,*)
     15253    # gcc
    1785315254    library_names_spec='$libname.dll.a'
    1785415255    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    1785515256    postinstall_cmds='base_file=`basename \${file}`~
    17856       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
     15257      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
    1785715258      dldir=$destdir/`dirname \$dlpath`~
    1785815259      test -d \$dldir || mkdir -p \$dldir~
    1785915260      $install_prog $dir/$dlname \$dldir/$dlname~
    17860       chmod a+x \$dldir/$dlname'
     15261      chmod a+x \$dldir/$dlname~
     15262      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
     15263        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
     15264      fi'
    1786115265    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
    1786215266      dlpath=$dir/\$dldll~
    17863        $rm \$dlpath'
     15267       $RM \$dlpath'
    1786415268    shlibpath_overrides_runpath=yes
    1786515269
     
    1786815272      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    1786915273      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    17870       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
     15274
     15275      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
    1787115276      ;;
    17872     mingw*)
     15277    mingw* | cegcc*)
    1787315278      # MinGW DLLs use traditional 'lib' prefix
    1787415279      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    17875       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    17876       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
    17877         # It is most probably a Windows format PATH printed by
    17878         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    17879         # path with ; separators, and with drive letters. We can handle the
    17880         # drive letters (cygwin fileutils understands them), so leave them,
    17881         # especially as we might pass files found there to a mingw objdump,
    17882         # which wouldn't understand a cygwinified path. Ahh.
    17883         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    17884       else
    17885         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    17886       fi
    1788715280      ;;
    1788815281    pw32*)
     
    1789115284      ;;
    1789215285    esac
     15286    dynamic_linker='Win32 ld.exe'
    1789315287    ;;
    1789415288
    17895   linux*)
    17896     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
    17897       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    17898       supports_anon_versioning=no
    17899       case `$LD -v 2>/dev/null` in
    17900         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
    17901         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    17902         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    17903         *\ 2.11.*) ;; # other 2.11 versions
    17904         *) supports_anon_versioning=yes ;;
    17905       esac
    17906       if test $supports_anon_versioning = yes; then
    17907         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
    17908 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    17909 $echo "local: *; };" >> $output_objdir/$libname.ver~
    17910         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     15289  *,cl*)
     15290    # Native MSVC
     15291    libname_spec='$name'
     15292    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     15293    library_names_spec='${libname}.dll.lib'
     15294
     15295    case $build_os in
     15296    mingw*)
     15297      sys_lib_search_path_spec=
     15298      lt_save_ifs=$IFS
     15299      IFS=';'
     15300      for lt_path in $LIB
     15301      do
     15302        IFS=$lt_save_ifs
     15303        # Let DOS variable expansion print the short 8.3 style file name.
     15304        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
     15305        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
     15306      done
     15307      IFS=$lt_save_ifs
     15308      # Convert to MSYS style.
     15309      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
     15310      ;;
     15311    cygwin*)
     15312      # Convert to unix form, then to dos form, then back to unix form
     15313      # but this time dos style (no spaces!) so that the unix form looks
     15314      # like /cygdrive/c/PROGRA~1:/cygdr...
     15315      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
     15316      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
     15317      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     15318      ;;
     15319    *)
     15320      sys_lib_search_path_spec="$LIB"
     15321      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
     15322        # It is most probably a Windows format PATH.
     15323        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    1791115324      else
    17912         $archive_expsym_cmds="$archive_cmds"
     15325        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
    1791315326      fi
    17914     else
    17915       ld_shlibs=no
    17916     fi
     15327      # FIXME: find the short name or the path components, as spaces are
     15328      # common. (e.g. "Program Files" -> "PROGRA~1")
     15329      ;;
     15330    esac
     15331
     15332    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     15333    postinstall_cmds='base_file=`basename \${file}`~
     15334      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
     15335      dldir=$destdir/`dirname \$dlpath`~
     15336      test -d \$dldir || mkdir -p \$dldir~
     15337      $install_prog $dir/$dlname \$dldir/$dlname'
     15338    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     15339      dlpath=$dir/\$dldll~
     15340       $RM \$dlpath'
     15341    shlibpath_overrides_runpath=yes
     15342    dynamic_linker='Win32 link.exe'
    1791715343    ;;
    1791815344
    1791915345  *)
     15346    # Assume MSVC wrapper
    1792015347    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
     15348    dynamic_linker='Win32 ld.exe'
    1792115349    ;;
    1792215350  esac
    17923   dynamic_linker='Win32 ld.exe'
    1792415351  # FIXME: first we should search . and the directory the executable is in
    1792515352  shlibpath_var=PATH
     
    1793115358  need_lib_prefix=no
    1793215359  need_version=no
    17933   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
     15360  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
    1793415361  soname_spec='${libname}${release}${major}$shared_ext'
    1793515362  shlibpath_overrides_runpath=yes
    1793615363  shlibpath_var=DYLD_LIBRARY_PATH
    1793715364  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    17938   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    17939   if test "$GCC" = yes; then
    17940     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
    17941   else
    17942     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    17943   fi
     15365
     15366  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
    1794415367  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    1794515368  ;;
    1794615369
    1794715370dgux*)
    17948   version_type=linux
     15371  version_type=linux # correct to gnu/linux during the next big refactor
    1794915372  need_lib_prefix=no
    1795015373  need_version=no
     
    1795215375  soname_spec='${libname}${release}${shared_ext}$major'
    1795315376  shlibpath_var=LD_LIBRARY_PATH
    17954   ;;
    17955 
    17956 freebsd1*)
    17957   dynamic_linker=no
    17958   ;;
    17959 
    17960 kfreebsd*-gnu)
    17961   version_type=linux
    17962   need_lib_prefix=no
    17963   need_version=no
    17964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    17965   soname_spec='${libname}${release}${shared_ext}$major'
    17966   shlibpath_var=LD_LIBRARY_PATH
    17967   shlibpath_overrides_runpath=no
    17968   hardcode_into_libs=yes
    17969   dynamic_linker='GNU ld.so'
    1797015377  ;;
    1797115378
     
    1797715384  else
    1797815385    case $host_os in
    17979     freebsd[123]*) objformat=aout ;;
     15386    freebsd[23].*) objformat=aout ;;
    1798015387    *) objformat=elf ;;
    1798115388    esac
    1798215389  fi
    17983   # Handle Gentoo/FreeBSD as it was Linux
    17984   case $host_vendor in
    17985     gentoo)
    17986       version_type=linux ;;
    17987     *)
    17988       version_type=freebsd-$objformat ;;
    17989   esac
    17990 
     15390  version_type=freebsd-$objformat
    1799115391  case $version_type in
    1799215392    freebsd-elf*)
     
    1799915399      need_version=yes
    1800015400      ;;
    18001     linux)
    18002       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    18003       soname_spec='${libname}${release}${shared_ext}$major'
    18004       need_lib_prefix=no
    18005       need_version=no
    18006       ;;
    1800715401  esac
    1800815402  shlibpath_var=LD_LIBRARY_PATH
    1800915403  case $host_os in
    18010   freebsd2*)
     15404  freebsd2.*)
    1801115405    shlibpath_overrides_runpath=yes
    1801215406    ;;
     
    1802015414    hardcode_into_libs=yes
    1802115415    ;;
    18022   freebsd*) # from 4.6 on
     15416  *) # from 4.6 on, and DragonFly
    1802315417    shlibpath_overrides_runpath=yes
    1802415418    hardcode_into_libs=yes
     
    1802715421  ;;
    1802815422
    18029 gnu*)
    18030   version_type=linux
     15423haiku*)
     15424  version_type=linux # correct to gnu/linux during the next big refactor
    1803115425  need_lib_prefix=no
    1803215426  need_version=no
     15427  dynamic_linker="$host_os runtime_loader"
    1803315428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    1803415429  soname_spec='${libname}${release}${shared_ext}$major'
    18035   shlibpath_var=LD_LIBRARY_PATH
     15430  shlibpath_var=LIBRARY_PATH
     15431  shlibpath_overrides_runpath=yes
     15432  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
    1803615433  hardcode_into_libs=yes
    1803715434  ;;
     
    1805915456    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    1806015457    ;;
    18061    hppa*64*)
    18062      shrext_cmds='.sl'
    18063      hardcode_into_libs=yes
    18064      dynamic_linker="$host_os dld.sl"
    18065      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    18066      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    18067      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    18068      soname_spec='${libname}${release}${shared_ext}$major'
    18069      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    18070      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    18071      ;;
    18072    *)
     15458  hppa*64*)
     15459    shrext_cmds='.sl'
     15460    hardcode_into_libs=yes
     15461    dynamic_linker="$host_os dld.sl"
     15462    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     15463    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     15464    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     15465    soname_spec='${libname}${release}${shared_ext}$major'
     15466    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     15467    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     15468    ;;
     15469  *)
    1807315470    shrext_cmds='.sl'
    1807415471    dynamic_linker="$host_os dld.sl"
     
    1807915476    ;;
    1808015477  esac
    18081   # HP-UX runs *really* slowly unless shared libraries are mode 555.
     15478  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
    1808215479  postinstall_cmds='chmod 555 $lib'
     15480  # or fails outright, so override atomically:
     15481  install_override_mode=555
    1808315482  ;;
    1808415483
    18085 interix3*)
    18086   version_type=linux
     15484interix[3-9]*)
     15485  version_type=linux # correct to gnu/linux during the next big refactor
    1808715486  need_lib_prefix=no
    1808815487  need_version=no
     
    1810015499    *)
    1810115500        if test "$lt_cv_prog_gnu_ld" = yes; then
    18102                 version_type=linux
     15501                version_type=linux # correct to gnu/linux during the next big refactor
    1810315502        else
    1810415503                version_type=irix
     
    1813715536  ;;
    1813815537
    18139 # This must be Linux ELF.
    18140 linux*)
    18141   version_type=linux
     15538# This must be glibc/ELF.
     15539linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
     15540  version_type=linux # correct to gnu/linux during the next big refactor
    1814215541  need_lib_prefix=no
    1814315542  need_version=no
     
    1814715546  shlibpath_var=LD_LIBRARY_PATH
    1814815547  shlibpath_overrides_runpath=no
     15548
     15549  # Some binutils ld are patched to set DT_RUNPATH
     15550  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
     15551  $as_echo_n "(cached) " >&6
     15552else
     15553  lt_cv_shlibpath_overrides_runpath=no
     15554    save_LDFLAGS=$LDFLAGS
     15555    save_libdir=$libdir
     15556    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
     15557         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
     15558    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     15559/* end confdefs.h.  */
     15560
     15561int
     15562main ()
     15563{
     15564
     15565  ;
     15566  return 0;
     15567}
     15568_ACEOF
     15569if ac_fn_c_try_link "$LINENO"; then :
     15570  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
     15571  lt_cv_shlibpath_overrides_runpath=yes
     15572fi
     15573fi
     15574rm -f core conftest.err conftest.$ac_objext \
     15575    conftest$ac_exeext conftest.$ac_ext
     15576    LDFLAGS=$save_LDFLAGS
     15577    libdir=$save_libdir
     15578
     15579fi
     15580
     15581  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
     15582
    1814915583  # This implies no fast_install, which is unacceptable.
    1815015584  # Some rework will be needed to allow for fast_install
     
    1815415588  # Append ld.so.conf contents to the search path
    1815515589  if test -f /etc/ld.so.conf; then
    18156     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     15590    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' ' '`
    1815715591    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    1815815592  fi
     
    1816715601  ;;
    1816815602
    18169 knetbsd*-gnu)
     15603netbsdelf*-gnu)
    1817015604  version_type=linux
    1817115605  need_lib_prefix=no
     
    1817615610  shlibpath_overrides_runpath=no
    1817715611  hardcode_into_libs=yes
    18178   dynamic_linker='GNU ld.so'
     15612  dynamic_linker='NetBSD ld.elf_so'
    1817915613  ;;
    1818015614
     
    1818315617  need_lib_prefix=no
    1818415618  need_version=no
    18185   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     15619  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    1818615620    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    1818715621    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     
    1819815632
    1819915633newsos6)
    18200   version_type=linux
     15634  version_type=linux # correct to gnu/linux during the next big refactor
    1820115635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1820215636  shlibpath_var=LD_LIBRARY_PATH
     
    1820415638  ;;
    1820515639
    18206 nto-qnx*)
    18207   version_type=linux
     15640*nto* | *qnx*)
     15641  version_type=qnx
    1820815642  need_lib_prefix=no
    1820915643  need_version=no
     
    1821115645  soname_spec='${libname}${release}${shared_ext}$major'
    1821215646  shlibpath_var=LD_LIBRARY_PATH
    18213   shlibpath_overrides_runpath=yes
     15647  shlibpath_overrides_runpath=no
     15648  hardcode_into_libs=yes
     15649  dynamic_linker='ldqnx.so'
    1821415650  ;;
    1821515651
     
    1822015656  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
    1822115657  case $host_os in
    18222     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    18223     *)                         need_version=no  ;;
     15658    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
     15659    *)                          need_version=no  ;;
    1822415660  esac
    1822515661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    1822615662  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    1822715663  shlibpath_var=LD_LIBRARY_PATH
    18228   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     15664  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    1822915665    case $host_os in
    1823015666      openbsd2.[89] | openbsd2.[89].*)
     
    1826015696  ;;
    1826115697
     15698rdos*)
     15699  dynamic_linker=no
     15700  ;;
     15701
    1826215702solaris*)
    18263   version_type=linux
     15703  version_type=linux # correct to gnu/linux during the next big refactor
    1826415704  need_lib_prefix=no
    1826515705  need_version=no
     
    1828615726
    1828715727sysv4 | sysv4.3*)
    18288   version_type=linux
     15728  version_type=linux # correct to gnu/linux during the next big refactor
    1828915729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1829015730  soname_spec='${libname}${release}${shared_ext}$major'
     
    1829415734      shlibpath_overrides_runpath=no
    1829515735      need_lib_prefix=no
    18296       export_dynamic_flag_spec='${wl}-Blargedynsym'
    1829715736      runpath_var=LD_RUN_PATH
    1829815737      ;;
     
    1831115750sysv4*MP*)
    1831215751  if test -d /usr/nec ;then
    18313     version_type=linux
     15752    version_type=linux # correct to gnu/linux during the next big refactor
    1831415753    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    1831515754    soname_spec='$libname${shared_ext}.$major'
     
    1832515764  soname_spec='${libname}${release}${shared_ext}$major'
    1832615765  shlibpath_var=LD_LIBRARY_PATH
     15766  shlibpath_overrides_runpath=yes
    1832715767  hardcode_into_libs=yes
    1832815768  if test "$with_gnu_ld" = yes; then
    1832915769    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    18330     shlibpath_overrides_runpath=no
    1833115770  else
    1833215771    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    18333     shlibpath_overrides_runpath=yes
    1833415772    case $host_os in
    1833515773      sco3.2v5*)
     
    1834115779  ;;
    1834215780
     15781tpf*)
     15782  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
     15783  version_type=linux # correct to gnu/linux during the next big refactor
     15784  need_lib_prefix=no
     15785  need_version=no
     15786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     15787  shlibpath_var=LD_LIBRARY_PATH
     15788  shlibpath_overrides_runpath=no
     15789  hardcode_into_libs=yes
     15790  ;;
     15791
    1834315792uts4*)
    18344   version_type=linux
     15793  version_type=linux # correct to gnu/linux during the next big refactor
    1834515794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1834615795  soname_spec='${libname}${release}${shared_ext}$major'
     
    1835215801  ;;
    1835315802esac
    18354 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
    18355 echo "${ECHO_T}$dynamic_linker" >&6
     15803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
     15804$as_echo "$dynamic_linker" >&6; }
    1835615805test "$dynamic_linker" = no && can_build_shared=no
    1835715806
     
    1836115810fi
    1836215811
    18363 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
    18364 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
     15812if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
     15813  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
     15814fi
     15815if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
     15816  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
     15817fi
     15818
     15819
     15820
     15821
     15822
     15823
     15824
     15825
     15826
     15827
     15828
     15829
     15830
     15831
     15832
     15833
     15834
     15835
     15836
     15837
     15838
     15839
     15840
     15841
     15842
     15843
     15844
     15845
     15846
     15847
     15848
     15849
     15850
     15851
     15852
     15853
     15854
     15855
     15856
     15857
     15858
     15859
     15860
     15861
     15862
     15863
     15864
     15865
     15866
     15867
     15868
     15869
     15870
     15871
     15872
     15873
     15874
     15875
     15876
     15877
     15878
     15879
     15880
     15881
     15882
     15883
     15884
     15885
     15886
     15887
     15888
     15889
     15890
     15891
     15892
     15893
     15894
     15895
     15896
     15897
     15898
     15899
     15900
     15901
     15902
     15903
     15904
     15905
     15906
     15907
     15908
     15909
     15910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
     15911$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
    1836515912hardcode_action=
    18366 if test -n "$hardcode_libdir_flag_spec" || \
    18367    test -n "$runpath_var" || \
     15913if test -n "$hardcode_libdir_flag_spec" ||
     15914   test -n "$runpath_var" ||
    1836815915   test "X$hardcode_automatic" = "Xyes" ; then
    1836915916
    18370   # We can hardcode non-existant directories.
     15917  # We can hardcode non-existent directories.
    1837115918  if test "$hardcode_direct" != no &&
    1837215919     # If the only mechanism to avoid hardcoding is shlibpath_var, we
    1837315920     # have to relink, otherwise we might link with an installed library
    1837415921     # when we should be linking with a yet-to-be-installed one
    18375      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
     15922     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
    1837615923     test "$hardcode_minus_L" != no; then
    1837715924    # Linking always hardcodes the temporary library directory.
     
    1838615933  hardcode_action=unsupported
    1838715934fi
    18388 echo "$as_me:$LINENO: result: $hardcode_action" >&5
    18389 echo "${ECHO_T}$hardcode_action" >&6
    18390 
    18391 if test "$hardcode_action" = relink; then
     15935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
     15936$as_echo "$hardcode_action" >&6; }
     15937
     15938if test "$hardcode_action" = relink ||
     15939   test "$inherit_rpath" = yes; then
    1839215940  # Fast installation is not supported
    1839315941  enable_fast_install=no
     
    1839815946fi
    1839915947
    18400 striplib=
    18401 old_striplib=
    18402 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
    18403 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
    18404 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
    18405   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
    18406   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
    18407   echo "$as_me:$LINENO: result: yes" >&5
    18408 echo "${ECHO_T}yes" >&6
    18409 else
    18410 # FIXME - insert some real tests, host_os isn't really good enough
    18411   case $host_os in
    18412    darwin*)
    18413        if test -n "$STRIP" ; then
    18414          striplib="$STRIP -x"
    18415          echo "$as_me:$LINENO: result: yes" >&5
    18416 echo "${ECHO_T}yes" >&6
    18417        else
    18418   echo "$as_me:$LINENO: result: no" >&5
    18419 echo "${ECHO_T}no" >&6
    18420 fi
    18421        ;;
    18422    *)
    18423   echo "$as_me:$LINENO: result: no" >&5
    18424 echo "${ECHO_T}no" >&6
    18425     ;;
    18426   esac
    18427 fi
    18428 
    18429 if test "x$enable_dlopen" != xyes; then
     15948
     15949
     15950
     15951
     15952
     15953  if test "x$enable_dlopen" != xyes; then
    1843015954  enable_dlopen=unknown
    1843115955  enable_dlopen_self=unknown
     
    1844215966    ;;
    1844315967
    18444   mingw* | pw32*)
     15968  mingw* | pw32* | cegcc*)
    1844515969    lt_cv_dlopen="LoadLibrary"
    1844615970    lt_cv_dlopen_libs=
    18447    ;;
     15971    ;;
    1844815972
    1844915973  cygwin*)
    1845015974    lt_cv_dlopen="dlopen"
    1845115975    lt_cv_dlopen_libs=
    18452    ;;
     15976    ;;
    1845315977
    1845415978  darwin*)
    1845515979  # if libdl is installed we need to link against it
    18456     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    18457 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    18458 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    18459   echo $ECHO_N "(cached) $ECHO_C" >&6
     15980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
     15981$as_echo_n "checking for dlopen in -ldl... " >&6; }
     15982if ${ac_cv_lib_dl_dlopen+:} false; then :
     15983  $as_echo_n "(cached) " >&6
    1846015984else
    1846115985  ac_check_lib_save_LIBS=$LIBS
    1846215986LIBS="-ldl  $LIBS"
    18463 cat >conftest.$ac_ext <<_ACEOF
    18464 /* confdefs.h.  */
    18465 _ACEOF
    18466 cat confdefs.h >>conftest.$ac_ext
    18467 cat >>conftest.$ac_ext <<_ACEOF
     15987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1846815988/* end confdefs.h.  */
    1846915989
    18470 /* Override any gcc2 internal prototype to avoid an error.  */
     15990/* Override any GCC internal prototype to avoid an error.
     15991   Use char because int might match the return type of a GCC
     15992   builtin and then its argument prototype would still apply.  */
    1847115993#ifdef __cplusplus
    1847215994extern "C"
    1847315995#endif
    18474 /* We use char because int might match the return type of a gcc2
    18475    builtin and then its argument prototype would still apply.  */
    1847615996char dlopen ();
    1847715997int
    1847815998main ()
    1847915999{
    18480 dlopen ();
     16000return dlopen ();
    1848116001  ;
    1848216002  return 0;
    1848316003}
    1848416004_ACEOF
    18485 rm -f conftest.$ac_objext conftest$ac_exeext
    18486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    18487   (eval $ac_link) 2>conftest.er1
    18488   ac_status=$?
    18489   grep -v '^ *+' conftest.er1 >conftest.err
    18490   rm -f conftest.er1
    18491   cat conftest.err >&5
    18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18493   (exit $ac_status); } &&
    18494          { ac_try='test -z "$ac_c_werror_flag"
    18495                          || test ! -s conftest.err'
    18496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18497   (eval $ac_try) 2>&5
    18498   ac_status=$?
    18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18500   (exit $ac_status); }; } &&
    18501          { ac_try='test -s conftest$ac_exeext'
    18502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18503   (eval $ac_try) 2>&5
    18504   ac_status=$?
    18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18506   (exit $ac_status); }; }; then
     16005if ac_fn_c_try_link "$LINENO"; then :
    1850716006  ac_cv_lib_dl_dlopen=yes
    1850816007else
    18509   echo "$as_me: failed program was:" >&5
    18510 sed 's/^/| /' conftest.$ac_ext >&5
    18511 
    18512 ac_cv_lib_dl_dlopen=no
    18513 fi
    18514 rm -f conftest.err conftest.$ac_objext \
    18515       conftest$ac_exeext conftest.$ac_ext
     16008  ac_cv_lib_dl_dlopen=no
     16009fi
     16010rm -f core conftest.err conftest.$ac_objext \
     16011    conftest$ac_exeext conftest.$ac_ext
    1851616012LIBS=$ac_check_lib_save_LIBS
    1851716013fi
    18518 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    18519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    18520 if test $ac_cv_lib_dl_dlopen = yes; then
     16014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
     16015$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
     16016if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
    1852116017  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    1852216018else
     
    1852816024fi
    1852916025
    18530    ;;
     16026    ;;
    1853116027
    1853216028  *)
    18533     echo "$as_me:$LINENO: checking for shl_load" >&5
    18534 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
    18535 if test "${ac_cv_func_shl_load+set}" = set; then
    18536   echo $ECHO_N "(cached) $ECHO_C" >&6
    18537 else
    18538   cat >conftest.$ac_ext <<_ACEOF
    18539 /* confdefs.h.  */
    18540 _ACEOF
    18541 cat confdefs.h >>conftest.$ac_ext
    18542 cat >>conftest.$ac_ext <<_ACEOF
     16029    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
     16030if test "x$ac_cv_func_shl_load" = xyes; then :
     16031  lt_cv_dlopen="shl_load"
     16032else
     16033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
     16034$as_echo_n "checking for shl_load in -ldld... " >&6; }
     16035if ${ac_cv_lib_dld_shl_load+:} false; then :
     16036  $as_echo_n "(cached) " >&6
     16037else
     16038  ac_check_lib_save_LIBS=$LIBS
     16039LIBS="-ldld  $LIBS"
     16040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1854316041/* end confdefs.h.  */
    18544 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
    18545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    18546 #define shl_load innocuous_shl_load
    18547 
    18548 /* System header to define __stub macros and hopefully few prototypes,
    18549     which can conflict with char shl_load (); below.
    18550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    18551     <limits.h> exists even on freestanding compilers.  */
    18552 
    18553 #ifdef __STDC__
    18554 # include <limits.h>
    18555 #else
    18556 # include <assert.h>
    18557 #endif
    18558 
    18559 #undef shl_load
    18560 
    18561 /* Override any gcc2 internal prototype to avoid an error.  */
     16042
     16043/* Override any GCC internal prototype to avoid an error.
     16044   Use char because int might match the return type of a GCC
     16045   builtin and then its argument prototype would still apply.  */
    1856216046#ifdef __cplusplus
    1856316047extern "C"
    18564 {
    1856516048#endif
    18566 /* We use char because int might match the return type of a gcc2
    18567    builtin and then its argument prototype would still apply.  */
    1856816049char shl_load ();
    18569 /* The GNU C library defines this for functions which it implements
    18570     to always fail with ENOSYS.  Some functions are actually named
    18571     something starting with __ and the normal name is an alias.  */
    18572 #if defined (__stub_shl_load) || defined (__stub___shl_load)
    18573 choke me
    18574 #else
    18575 char (*f) () = shl_load;
    18576 #endif
    18577 #ifdef __cplusplus
    18578 }
    18579 #endif
    18580 
    1858116050int
    1858216051main ()
    1858316052{
    18584 return f != shl_load;
     16053return shl_load ();
    1858516054  ;
    1858616055  return 0;
    1858716056}
    1858816057_ACEOF
    18589 rm -f conftest.$ac_objext conftest$ac_exeext
    18590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    18591   (eval $ac_link) 2>conftest.er1
    18592   ac_status=$?
    18593   grep -v '^ *+' conftest.er1 >conftest.err
    18594   rm -f conftest.er1
    18595   cat conftest.err >&5
    18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18597   (exit $ac_status); } &&
    18598          { ac_try='test -z "$ac_c_werror_flag"
    18599                          || test ! -s conftest.err'
    18600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18601   (eval $ac_try) 2>&5
    18602   ac_status=$?
    18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18604   (exit $ac_status); }; } &&
    18605          { ac_try='test -s conftest$ac_exeext'
    18606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18607   (eval $ac_try) 2>&5
    18608   ac_status=$?
    18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18610   (exit $ac_status); }; }; then
    18611   ac_cv_func_shl_load=yes
    18612 else
    18613   echo "$as_me: failed program was:" >&5
    18614 sed 's/^/| /' conftest.$ac_ext >&5
    18615 
    18616 ac_cv_func_shl_load=no
    18617 fi
    18618 rm -f conftest.err conftest.$ac_objext \
    18619       conftest$ac_exeext conftest.$ac_ext
    18620 fi
    18621 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
    18622 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
    18623 if test $ac_cv_func_shl_load = yes; then
    18624   lt_cv_dlopen="shl_load"
    18625 else
    18626   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    18627 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
    18628 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    18629   echo $ECHO_N "(cached) $ECHO_C" >&6
     16058if ac_fn_c_try_link "$LINENO"; then :
     16059  ac_cv_lib_dld_shl_load=yes
     16060else
     16061  ac_cv_lib_dld_shl_load=no
     16062fi
     16063rm -f core conftest.err conftest.$ac_objext \
     16064    conftest$ac_exeext conftest.$ac_ext
     16065LIBS=$ac_check_lib_save_LIBS
     16066fi
     16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
     16068$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
     16069if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
     16070  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
     16071else
     16072  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
     16073if test "x$ac_cv_func_dlopen" = xyes; then :
     16074  lt_cv_dlopen="dlopen"
     16075else
     16076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
     16077$as_echo_n "checking for dlopen in -ldl... " >&6; }
     16078if ${ac_cv_lib_dl_dlopen+:} false; then :
     16079  $as_echo_n "(cached) " >&6
    1863016080else
    1863116081  ac_check_lib_save_LIBS=$LIBS
    18632 LIBS="-ldld  $LIBS"
    18633 cat >conftest.$ac_ext <<_ACEOF
    18634 /* confdefs.h.  */
    18635 _ACEOF
    18636 cat confdefs.h >>conftest.$ac_ext
    18637 cat >>conftest.$ac_ext <<_ACEOF
     16082LIBS="-ldl  $LIBS"
     16083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1863816084/* end confdefs.h.  */
    1863916085
    18640 /* Override any gcc2 internal prototype to avoid an error.  */
     16086/* Override any GCC internal prototype to avoid an error.
     16087   Use char because int might match the return type of a GCC
     16088   builtin and then its argument prototype would still apply.  */
    1864116089#ifdef __cplusplus
    1864216090extern "C"
    1864316091#endif
    18644 /* We use char because int might match the return type of a gcc2
    18645    builtin and then its argument prototype would still apply.  */
    18646 char shl_load ();
     16092char dlopen ();
    1864716093int
    1864816094main ()
    1864916095{
    18650 shl_load ();
     16096return dlopen ();
    1865116097  ;
    1865216098  return 0;
    1865316099}
    1865416100_ACEOF
    18655 rm -f conftest.$ac_objext conftest$ac_exeext
    18656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    18657   (eval $ac_link) 2>conftest.er1
    18658   ac_status=$?
    18659   grep -v '^ *+' conftest.er1 >conftest.err
    18660   rm -f conftest.er1
    18661   cat conftest.err >&5
    18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18663   (exit $ac_status); } &&
    18664          { ac_try='test -z "$ac_c_werror_flag"
    18665                          || test ! -s conftest.err'
    18666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18667   (eval $ac_try) 2>&5
    18668   ac_status=$?
    18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18670   (exit $ac_status); }; } &&
    18671          { ac_try='test -s conftest$ac_exeext'
    18672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18673   (eval $ac_try) 2>&5
    18674   ac_status=$?
    18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18676   (exit $ac_status); }; }; then
    18677   ac_cv_lib_dld_shl_load=yes
    18678 else
    18679   echo "$as_me: failed program was:" >&5
    18680 sed 's/^/| /' conftest.$ac_ext >&5
    18681 
    18682 ac_cv_lib_dld_shl_load=no
    18683 fi
    18684 rm -f conftest.err conftest.$ac_objext \
    18685       conftest$ac_exeext conftest.$ac_ext
     16101if ac_fn_c_try_link "$LINENO"; then :
     16102  ac_cv_lib_dl_dlopen=yes
     16103else
     16104  ac_cv_lib_dl_dlopen=no
     16105fi
     16106rm -f core conftest.err conftest.$ac_objext \
     16107    conftest$ac_exeext conftest.$ac_ext
    1868616108LIBS=$ac_check_lib_save_LIBS
    1868716109fi
    18688 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    18689 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
    18690 if test $ac_cv_lib_dld_shl_load = yes; then
    18691   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
    18692 else
    18693   echo "$as_me:$LINENO: checking for dlopen" >&5
    18694 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
    18695 if test "${ac_cv_func_dlopen+set}" = set; then
    18696   echo $ECHO_N "(cached) $ECHO_C" >&6
    18697 else
    18698   cat >conftest.$ac_ext <<_ACEOF
    18699 /* confdefs.h.  */
    18700 _ACEOF
    18701 cat confdefs.h >>conftest.$ac_ext
    18702 cat >>conftest.$ac_ext <<_ACEOF
     16110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
     16111$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
     16112if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
     16113  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
     16114else
     16115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
     16116$as_echo_n "checking for dlopen in -lsvld... " >&6; }
     16117if ${ac_cv_lib_svld_dlopen+:} false; then :
     16118  $as_echo_n "(cached) " >&6
     16119else
     16120  ac_check_lib_save_LIBS=$LIBS
     16121LIBS="-lsvld  $LIBS"
     16122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1870316123/* end confdefs.h.  */
    18704 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
    18705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    18706 #define dlopen innocuous_dlopen
    18707 
    18708 /* System header to define __stub macros and hopefully few prototypes,
    18709     which can conflict with char dlopen (); below.
    18710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    18711     <limits.h> exists even on freestanding compilers.  */
    18712 
    18713 #ifdef __STDC__
    18714 # include <limits.h>
    18715 #else
    18716 # include <assert.h>
    18717 #endif
    18718 
    18719 #undef dlopen
    18720 
    18721 /* Override any gcc2 internal prototype to avoid an error.  */
     16124
     16125/* Override any GCC internal prototype to avoid an error.
     16126   Use char because int might match the return type of a GCC
     16127   builtin and then its argument prototype would still apply.  */
    1872216128#ifdef __cplusplus
    1872316129extern "C"
    18724 {
    1872516130#endif
    18726 /* We use char because int might match the return type of a gcc2
    18727    builtin and then its argument prototype would still apply.  */
    1872816131char dlopen ();
    18729 /* The GNU C library defines this for functions which it implements
    18730     to always fail with ENOSYS.  Some functions are actually named
    18731     something starting with __ and the normal name is an alias.  */
    18732 #if defined (__stub_dlopen) || defined (__stub___dlopen)
    18733 choke me
    18734 #else
    18735 char (*f) () = dlopen;
    18736 #endif
    18737 #ifdef __cplusplus
    18738 }
    18739 #endif
    18740 
    1874116132int
    1874216133main ()
    1874316134{
    18744 return f != dlopen;
     16135return dlopen ();
    1874516136  ;
    1874616137  return 0;
    1874716138}
    1874816139_ACEOF
    18749 rm -f conftest.$ac_objext conftest$ac_exeext
    18750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    18751   (eval $ac_link) 2>conftest.er1
    18752   ac_status=$?
    18753   grep -v '^ *+' conftest.er1 >conftest.err
    18754   rm -f conftest.er1
    18755   cat conftest.err >&5
    18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18757   (exit $ac_status); } &&
    18758          { ac_try='test -z "$ac_c_werror_flag"
    18759                          || test ! -s conftest.err'
    18760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18761   (eval $ac_try) 2>&5
    18762   ac_status=$?
    18763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18764   (exit $ac_status); }; } &&
    18765          { ac_try='test -s conftest$ac_exeext'
    18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18767   (eval $ac_try) 2>&5
    18768   ac_status=$?
    18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18770   (exit $ac_status); }; }; then
    18771   ac_cv_func_dlopen=yes
    18772 else
    18773   echo "$as_me: failed program was:" >&5
    18774 sed 's/^/| /' conftest.$ac_ext >&5
    18775 
    18776 ac_cv_func_dlopen=no
    18777 fi
    18778 rm -f conftest.err conftest.$ac_objext \
    18779       conftest$ac_exeext conftest.$ac_ext
    18780 fi
    18781 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
    18782 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
    18783 if test $ac_cv_func_dlopen = yes; then
    18784   lt_cv_dlopen="dlopen"
    18785 else
    18786   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    18787 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    18788 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    18789   echo $ECHO_N "(cached) $ECHO_C" >&6
     16140if ac_fn_c_try_link "$LINENO"; then :
     16141  ac_cv_lib_svld_dlopen=yes
     16142else
     16143  ac_cv_lib_svld_dlopen=no
     16144fi
     16145rm -f core conftest.err conftest.$ac_objext \
     16146    conftest$ac_exeext conftest.$ac_ext
     16147LIBS=$ac_check_lib_save_LIBS
     16148fi
     16149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
     16150$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
     16151if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
     16152  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
     16153else
     16154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
     16155$as_echo_n "checking for dld_link in -ldld... " >&6; }
     16156if ${ac_cv_lib_dld_dld_link+:} false; then :
     16157  $as_echo_n "(cached) " >&6
    1879016158else
    1879116159  ac_check_lib_save_LIBS=$LIBS
    18792 LIBS="-ldl  $LIBS"
    18793 cat >conftest.$ac_ext <<_ACEOF
    18794 /* confdefs.h.  */
    18795 _ACEOF
    18796 cat confdefs.h >>conftest.$ac_ext
    18797 cat >>conftest.$ac_ext <<_ACEOF
     16160LIBS="-ldld  $LIBS"
     16161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1879816162/* end confdefs.h.  */
    1879916163
    18800 /* Override any gcc2 internal prototype to avoid an error.  */
     16164/* Override any GCC internal prototype to avoid an error.
     16165   Use char because int might match the return type of a GCC
     16166   builtin and then its argument prototype would still apply.  */
    1880116167#ifdef __cplusplus
    1880216168extern "C"
    1880316169#endif
    18804 /* We use char because int might match the return type of a gcc2
    18805    builtin and then its argument prototype would still apply.  */
    18806 char dlopen ();
     16170char dld_link ();
    1880716171int
    1880816172main ()
    1880916173{
    18810 dlopen ();
     16174return dld_link ();
    1881116175  ;
    1881216176  return 0;
    1881316177}
    1881416178_ACEOF
    18815 rm -f conftest.$ac_objext conftest$ac_exeext
    18816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    18817   (eval $ac_link) 2>conftest.er1
    18818   ac_status=$?
    18819   grep -v '^ *+' conftest.er1 >conftest.err
    18820   rm -f conftest.er1
    18821   cat conftest.err >&5
    18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18823   (exit $ac_status); } &&
    18824          { ac_try='test -z "$ac_c_werror_flag"
    18825                          || test ! -s conftest.err'
    18826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18827   (eval $ac_try) 2>&5
    18828   ac_status=$?
    18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18830   (exit $ac_status); }; } &&
    18831          { ac_try='test -s conftest$ac_exeext'
    18832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18833   (eval $ac_try) 2>&5
    18834   ac_status=$?
    18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18836   (exit $ac_status); }; }; then
    18837   ac_cv_lib_dl_dlopen=yes
    18838 else
    18839   echo "$as_me: failed program was:" >&5
    18840 sed 's/^/| /' conftest.$ac_ext >&5
    18841 
    18842 ac_cv_lib_dl_dlopen=no
    18843 fi
    18844 rm -f conftest.err conftest.$ac_objext \
    18845       conftest$ac_exeext conftest.$ac_ext
     16179if ac_fn_c_try_link "$LINENO"; then :
     16180  ac_cv_lib_dld_dld_link=yes
     16181else
     16182  ac_cv_lib_dld_dld_link=no
     16183fi
     16184rm -f core conftest.err conftest.$ac_objext \
     16185    conftest$ac_exeext conftest.$ac_ext
    1884616186LIBS=$ac_check_lib_save_LIBS
    1884716187fi
    18848 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    18849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    18850 if test $ac_cv_lib_dl_dlopen = yes; then
    18851   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    18852 else
    18853   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
    18854 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
    18855 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
    18856   echo $ECHO_N "(cached) $ECHO_C" >&6
    18857 else
    18858   ac_check_lib_save_LIBS=$LIBS
    18859 LIBS="-lsvld  $LIBS"
    18860 cat >conftest.$ac_ext <<_ACEOF
    18861 /* confdefs.h.  */
    18862 _ACEOF
    18863 cat confdefs.h >>conftest.$ac_ext
    18864 cat >>conftest.$ac_ext <<_ACEOF
    18865 /* end confdefs.h.  */
    18866 
    18867 /* Override any gcc2 internal prototype to avoid an error.  */
    18868 #ifdef __cplusplus
    18869 extern "C"
    18870 #endif
    18871 /* We use char because int might match the return type of a gcc2
    18872    builtin and then its argument prototype would still apply.  */
    18873 char dlopen ();
    18874 int
    18875 main ()
    18876 {
    18877 dlopen ();
    18878   ;
    18879   return 0;
    18880 }
    18881 _ACEOF
    18882 rm -f conftest.$ac_objext conftest$ac_exeext
    18883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    18884   (eval $ac_link) 2>conftest.er1
    18885   ac_status=$?
    18886   grep -v '^ *+' conftest.er1 >conftest.err
    18887   rm -f conftest.er1
    18888   cat conftest.err >&5
    18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18890   (exit $ac_status); } &&
    18891          { ac_try='test -z "$ac_c_werror_flag"
    18892                          || test ! -s conftest.err'
    18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18894   (eval $ac_try) 2>&5
    18895   ac_status=$?
    18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18897   (exit $ac_status); }; } &&
    18898          { ac_try='test -s conftest$ac_exeext'
    18899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18900   (eval $ac_try) 2>&5
    18901   ac_status=$?
    18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18903   (exit $ac_status); }; }; then
    18904   ac_cv_lib_svld_dlopen=yes
    18905 else
    18906   echo "$as_me: failed program was:" >&5
    18907 sed 's/^/| /' conftest.$ac_ext >&5
    18908 
    18909 ac_cv_lib_svld_dlopen=no
    18910 fi
    18911 rm -f conftest.err conftest.$ac_objext \
    18912       conftest$ac_exeext conftest.$ac_ext
    18913 LIBS=$ac_check_lib_save_LIBS
    18914 fi
    18915 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
    18916 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
    18917 if test $ac_cv_lib_svld_dlopen = yes; then
    18918   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
    18919 else
    18920   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
    18921 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
    18922 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
    18923   echo $ECHO_N "(cached) $ECHO_C" >&6
    18924 else
    18925   ac_check_lib_save_LIBS=$LIBS
    18926 LIBS="-ldld  $LIBS"
    18927 cat >conftest.$ac_ext <<_ACEOF
    18928 /* confdefs.h.  */
    18929 _ACEOF
    18930 cat confdefs.h >>conftest.$ac_ext
    18931 cat >>conftest.$ac_ext <<_ACEOF
    18932 /* end confdefs.h.  */
    18933 
    18934 /* Override any gcc2 internal prototype to avoid an error.  */
    18935 #ifdef __cplusplus
    18936 extern "C"
    18937 #endif
    18938 /* We use char because int might match the return type of a gcc2
    18939    builtin and then its argument prototype would still apply.  */
    18940 char dld_link ();
    18941 int
    18942 main ()
    18943 {
    18944 dld_link ();
    18945   ;
    18946   return 0;
    18947 }
    18948 _ACEOF
    18949 rm -f conftest.$ac_objext conftest$ac_exeext
    18950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    18951   (eval $ac_link) 2>conftest.er1
    18952   ac_status=$?
    18953   grep -v '^ *+' conftest.er1 >conftest.err
    18954   rm -f conftest.er1
    18955   cat conftest.err >&5
    18956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18957   (exit $ac_status); } &&
    18958          { ac_try='test -z "$ac_c_werror_flag"
    18959                          || test ! -s conftest.err'
    18960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18961   (eval $ac_try) 2>&5
    18962   ac_status=$?
    18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18964   (exit $ac_status); }; } &&
    18965          { ac_try='test -s conftest$ac_exeext'
    18966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18967   (eval $ac_try) 2>&5
    18968   ac_status=$?
    18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18970   (exit $ac_status); }; }; then
    18971   ac_cv_lib_dld_dld_link=yes
    18972 else
    18973   echo "$as_me: failed program was:" >&5
    18974 sed 's/^/| /' conftest.$ac_ext >&5
    18975 
    18976 ac_cv_lib_dld_dld_link=no
    18977 fi
    18978 rm -f conftest.err conftest.$ac_objext \
    18979       conftest$ac_exeext conftest.$ac_ext
    18980 LIBS=$ac_check_lib_save_LIBS
    18981 fi
    18982 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
    18983 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
    18984 if test $ac_cv_lib_dld_dld_link = yes; then
    18985   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
     16188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
     16189$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
     16190if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
     16191  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
    1898616192fi
    1898716193
     
    1902116227    LIBS="$lt_cv_dlopen_libs $LIBS"
    1902216228
    19023     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
    19024 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
    19025 if test "${lt_cv_dlopen_self+set}" = set; then
    19026   echo $ECHO_N "(cached) $ECHO_C" >&6
     16229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
     16230$as_echo_n "checking whether a program can dlopen itself... " >&6; }
     16231if ${lt_cv_dlopen_self+:} false; then :
     16232  $as_echo_n "(cached) " >&6
    1902716233else
    1902816234          if test "$cross_compiling" = yes; then :
     
    1903116237  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    1903216238  lt_status=$lt_dlunknown
    19033   cat > conftest.$ac_ext <<EOF
    19034 #line 19034 "configure"
     16239  cat > conftest.$ac_ext <<_LT_EOF
     16240#line $LINENO "configure"
    1903516241#include "confdefs.h"
    1903616242
     
    1907316279#endif
    1907416280
    19075 #ifdef __cplusplus
    19076 extern "C" void exit (int);
     16281/* When -fvisbility=hidden is used, assume the code has been annotated
     16282   correspondingly for the symbols needed.  */
     16283#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
     16284int fnord () __attribute__((visibility("default")));
    1907716285#endif
    1907816286
    19079 void fnord() { int i=42;}
     16287int fnord () { return 42; }
    1908016288int main ()
    1908116289{
     
    1908616294    {
    1908716295      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    19088       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
     16296      else
     16297        {
     16298          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
     16299          else puts (dlerror ());
     16300        }
    1908916301      /* dlclose (self); */
    1909016302    }
     
    1909216304    puts (dlerror ());
    1909316305
    19094     exit (status);
     16306  return status;
    1909516307}
    19096 EOF
    19097   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     16308_LT_EOF
     16309  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
    1909816310  (eval $ac_link) 2>&5
    1909916311  ac_status=$?
    19100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19101   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
     16312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     16313  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    1910216314    (./conftest; exit; ) >&5 2>/dev/null
    1910316315    lt_status=$?
     
    1911616328
    1911716329fi
    19118 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
    19119 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
     16330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
     16331$as_echo "$lt_cv_dlopen_self" >&6; }
    1912016332
    1912116333    if test "x$lt_cv_dlopen_self" = xyes; then
    1912216334      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
    19123       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
    19124 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
    19125 if test "${lt_cv_dlopen_self_static+set}" = set; then
    19126   echo $ECHO_N "(cached) $ECHO_C" >&6
     16335      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
     16336$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
     16337if ${lt_cv_dlopen_self_static+:} false; then :
     16338  $as_echo_n "(cached) " >&6
    1912716339else
    1912816340          if test "$cross_compiling" = yes; then :
     
    1913116343  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    1913216344  lt_status=$lt_dlunknown
    19133   cat > conftest.$ac_ext <<EOF
    19134 #line 19134 "configure"
     16345  cat > conftest.$ac_ext <<_LT_EOF
     16346#line $LINENO "configure"
    1913516347#include "confdefs.h"
    1913616348
     
    1917316385#endif
    1917416386
    19175 #ifdef __cplusplus
    19176 extern "C" void exit (int);
     16387/* When -fvisbility=hidden is used, assume the code has been annotated
     16388   correspondingly for the symbols needed.  */
     16389#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
     16390int fnord () __attribute__((visibility("default")));
    1917716391#endif
    1917816392
    19179 void fnord() { int i=42;}
     16393int fnord () { return 42; }
    1918016394int main ()
    1918116395{
     
    1918616400    {
    1918716401      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    19188       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
     16402      else
     16403        {
     16404          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
     16405          else puts (dlerror ());
     16406        }
    1918916407      /* dlclose (self); */
    1919016408    }
     
    1919216410    puts (dlerror ());
    1919316411
    19194     exit (status);
     16412  return status;
    1919516413}
    19196 EOF
    19197   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     16414_LT_EOF
     16415  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
    1919816416  (eval $ac_link) 2>&5
    1919916417  ac_status=$?
    19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19201   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
     16418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     16419  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
    1920216420    (./conftest; exit; ) >&5 2>/dev/null
    1920316421    lt_status=$?
     
    1921616434
    1921716435fi
    19218 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
    19219 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
     16436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
     16437$as_echo "$lt_cv_dlopen_self_static" >&6; }
    1922016438    fi
    1922116439
     
    1923816456
    1923916457
    19240 # Report which library types will actually be built
    19241 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
    19242 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
    19243 echo "$as_me:$LINENO: result: $can_build_shared" >&5
    19244 echo "${ECHO_T}$can_build_shared" >&6
    19245 
    19246 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
    19247 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
    19248 test "$can_build_shared" = "no" && enable_shared=no
    19249 
    19250 # On AIX, shared libraries and static libraries use the same namespace, and
    19251 # are all built from PIC.
    19252 case $host_os in
    19253 aix3*)
    19254   test "$enable_shared" = yes && enable_static=no
    19255   if test -n "$RANLIB"; then
    19256     archive_cmds="$archive_cmds~\$RANLIB \$lib"
    19257     postinstall_cmds='$RANLIB $lib'
    19258   fi
    19259   ;;
    19260 
    19261 aix4* | aix5*)
    19262   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    19263     test "$enable_shared" = yes && enable_static=no
    19264   fi
     16458
     16459
     16460
     16461
     16462
     16463
     16464
     16465
     16466
     16467
     16468
     16469
     16470
     16471
     16472
     16473striplib=
     16474old_striplib=
     16475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
     16476$as_echo_n "checking whether stripping libraries is possible... " >&6; }
     16477if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
     16478  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
     16479  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
     16480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     16481$as_echo "yes" >&6; }
     16482else
     16483# FIXME - insert some real tests, host_os isn't really good enough
     16484  case $host_os in
     16485  darwin*)
     16486    if test -n "$STRIP" ; then
     16487      striplib="$STRIP -x"
     16488      old_striplib="$STRIP -S"
     16489      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     16490$as_echo "yes" >&6; }
     16491    else
     16492      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     16493$as_echo "no" >&6; }
     16494    fi
    1926516495    ;;
    19266 esac
    19267 echo "$as_me:$LINENO: result: $enable_shared" >&5
    19268 echo "${ECHO_T}$enable_shared" >&6
    19269 
    19270 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
    19271 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
    19272 # Make sure either enable_shared or enable_static is yes.
    19273 test "$enable_shared" = yes || enable_static=yes
    19274 echo "$as_me:$LINENO: result: $enable_static" >&5
    19275 echo "${ECHO_T}$enable_static" >&6
    19276 
    19277 # The else clause should only fire when bootstrapping the
    19278 # libtool distribution, otherwise you forgot to ship ltmain.sh
    19279 # with your package, and you will get complaints that there are
    19280 # no rules to generate ltmain.sh.
    19281 if test -f "$ltmain"; then
    19282   # See if we are running on zsh, and set the options which allow our commands through
    19283   # without removal of \ escapes.
    19284   if test -n "${ZSH_VERSION+set}" ; then
    19285     setopt NO_GLOB_SUBST
    19286   fi
    19287   # Now quote all the things that may contain metacharacters while being
    19288   # careful not to overquote the AC_SUBSTed values.  We take copies of the
    19289   # variables and quote the copies for generation of the libtool script.
    19290   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    19291     SED SHELL STRIP \
    19292     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    19293     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    19294     deplibs_check_method reload_flag reload_cmds need_locks \
    19295     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    19296     lt_cv_sys_global_symbol_to_c_name_address \
    19297     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    19298     old_postinstall_cmds old_postuninstall_cmds \
    19299     compiler \
    19300     CC \
    19301     LD \
    19302     lt_prog_compiler_wl \
    19303     lt_prog_compiler_pic \
    19304     lt_prog_compiler_static \
    19305     lt_prog_compiler_no_builtin_flag \
    19306     export_dynamic_flag_spec \
    19307     thread_safe_flag_spec \
    19308     whole_archive_flag_spec \
    19309     enable_shared_with_static_runtimes \
    19310     old_archive_cmds \
    19311     old_archive_from_new_cmds \
    19312     predep_objects \
    19313     postdep_objects \
    19314     predeps \
    19315     postdeps \
    19316     compiler_lib_search_path \
    19317     archive_cmds \
    19318     archive_expsym_cmds \
    19319     postinstall_cmds \
    19320     postuninstall_cmds \
    19321     old_archive_from_expsyms_cmds \
    19322     allow_undefined_flag \
    19323     no_undefined_flag \
    19324     export_symbols_cmds \
    19325     hardcode_libdir_flag_spec \
    19326     hardcode_libdir_flag_spec_ld \
    19327     hardcode_libdir_separator \
    19328     hardcode_automatic \
    19329     module_cmds \
    19330     module_expsym_cmds \
    19331     lt_cv_prog_compiler_c_o \
    19332     exclude_expsyms \
    19333     include_expsyms; do
    19334 
    19335     case $var in
    19336     old_archive_cmds | \
    19337     old_archive_from_new_cmds | \
    19338     archive_cmds | \
    19339     archive_expsym_cmds | \
    19340     module_cmds | \
    19341     module_expsym_cmds | \
    19342     old_archive_from_expsyms_cmds | \
    19343     export_symbols_cmds | \
    19344     extract_expsyms_cmds | reload_cmds | finish_cmds | \
    19345     postinstall_cmds | postuninstall_cmds | \
    19346     old_postinstall_cmds | old_postuninstall_cmds | \
    19347     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    19348       # Double-quote double-evaled strings.
    19349       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
    19350       ;;
    19351     *)
    19352       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
    19353       ;;
    19354     esac
    19355   done
    19356 
    19357   case $lt_echo in
    19358   *'\$0 --fallback-echo"')
    19359     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
     16496  *)
     16497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     16498$as_echo "no" >&6; }
    1936016499    ;;
    1936116500  esac
    19362 
    19363 cfgfile="${ofile}T"
    19364   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
    19365   $rm -f "$cfgfile"
    19366   { echo "$as_me:$LINENO: creating $ofile" >&5
    19367 echo "$as_me: creating $ofile" >&6;}
    19368 
    19369   cat <<__EOF__ >> "$cfgfile"
    19370 #! $SHELL
    19371 
    19372 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
    19373 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
    19374 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
    19375 #
    19376 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
    19377 # Free Software Foundation, Inc.
    19378 #
    19379 # This file is part of GNU Libtool:
    19380 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    19381 #
    19382 # This program is free software; you can redistribute it and/or modify
    19383 # it under the terms of the GNU General Public License as published by
    19384 # the Free Software Foundation; either version 2 of the License, or
    19385 # (at your option) any later version.
    19386 #
    19387 # This program is distributed in the hope that it will be useful, but
    19388 # WITHOUT ANY WARRANTY; without even the implied warranty of
    19389 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    19390 # General Public License for more details.
    19391 #
    19392 # You should have received a copy of the GNU General Public License
    19393 # along with this program; if not, write to the Free Software
    19394 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    19395 #
    19396 # As a special exception to the GNU General Public License, if you
    19397 # distribute this file as part of a program that contains a
    19398 # configuration script generated by Autoconf, you may include it under
    19399 # the same distribution terms that you use for the rest of that program.
    19400 
    19401 # A sed program that does not truncate output.
    19402 SED=$lt_SED
    19403 
    19404 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
    19405 Xsed="$SED -e 1s/^X//"
    19406 
    19407 # The HP-UX ksh and POSIX shell print the target directory to stdout
    19408 # if CDPATH is set.
    19409 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    19410 
    19411 # The names of the tagged configurations supported by this script.
    19412 available_tags=
    19413 
    19414 # ### BEGIN LIBTOOL CONFIG
    19415 
    19416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    19417 
    19418 # Shell to use when invoking shell scripts.
    19419 SHELL=$lt_SHELL
    19420 
    19421 # Whether or not to build shared libraries.
    19422 build_libtool_libs=$enable_shared
    19423 
    19424 # Whether or not to build static libraries.
    19425 build_old_libs=$enable_static
    19426 
    19427 # Whether or not to add -lc for building shared libraries.
    19428 build_libtool_need_lc=$archive_cmds_need_lc
    19429 
    19430 # Whether or not to disallow shared libs when runtime libs are static
    19431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
    19432 
    19433 # Whether or not to optimize for fast installation.
    19434 fast_install=$enable_fast_install
    19435 
    19436 # The host system.
    19437 host_alias=$host_alias
    19438 host=$host
    19439 host_os=$host_os
    19440 
    19441 # The build system.
    19442 build_alias=$build_alias
    19443 build=$build
    19444 build_os=$build_os
    19445 
    19446 # An echo program that does not interpret backslashes.
    19447 echo=$lt_echo
    19448 
    19449 # The archiver.
    19450 AR=$lt_AR
    19451 AR_FLAGS=$lt_AR_FLAGS
    19452 
    19453 # A C compiler.
    19454 LTCC=$lt_LTCC
    19455 
    19456 # LTCC compiler flags.
    19457 LTCFLAGS=$lt_LTCFLAGS
    19458 
    19459 # A language-specific compiler.
    19460 CC=$lt_compiler
    19461 
    19462 # Is the compiler the GNU C compiler?
    19463 with_gcc=$GCC
    19464 
    19465 # An ERE matcher.
    19466 EGREP=$lt_EGREP
    19467 
    19468 # The linker used to build libraries.
    19469 LD=$lt_LD
    19470 
    19471 # Whether we need hard or soft links.
    19472 LN_S=$lt_LN_S
    19473 
    19474 # A BSD-compatible nm program.
    19475 NM=$lt_NM
    19476 
    19477 # A symbol stripping program
    19478 STRIP=$lt_STRIP
    19479 
    19480 # Used to examine libraries when file_magic_cmd begins "file"
    19481 MAGIC_CMD=$MAGIC_CMD
    19482 
    19483 # Used on cygwin: DLL creation program.
    19484 DLLTOOL="$DLLTOOL"
    19485 
    19486 # Used on cygwin: object dumper.
    19487 OBJDUMP="$OBJDUMP"
    19488 
    19489 # Used on cygwin: assembler.
    19490 AS="$AS"
    19491 
    19492 # The name of the directory that contains temporary libtool files.
    19493 objdir=$objdir
    19494 
    19495 # How to create reloadable object files.
    19496 reload_flag=$lt_reload_flag
    19497 reload_cmds=$lt_reload_cmds
    19498 
    19499 # How to pass a linker flag through the compiler.
    19500 wl=$lt_lt_prog_compiler_wl
    19501 
    19502 # Object file suffix (normally "o").
    19503 objext="$ac_objext"
    19504 
    19505 # Old archive suffix (normally "a").
    19506 libext="$libext"
    19507 
    19508 # Shared library suffix (normally ".so").
    19509 shrext_cmds='$shrext_cmds'
    19510 
    19511 # Executable file suffix (normally "").
    19512 exeext="$exeext"
    19513 
    19514 # Additional compiler flags for building library objects.
    19515 pic_flag=$lt_lt_prog_compiler_pic
    19516 pic_mode=$pic_mode
    19517 
    19518 # What is the maximum length of a command?
    19519 max_cmd_len=$lt_cv_sys_max_cmd_len
    19520 
    19521 # Does compiler simultaneously support -c and -o options?
    19522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
    19523 
    19524 # Must we lock files when doing compilation?
    19525 need_locks=$lt_need_locks
    19526 
    19527 # Do we need the lib prefix for modules?
    19528 need_lib_prefix=$need_lib_prefix
    19529 
    19530 # Do we need a version for libraries?
    19531 need_version=$need_version
    19532 
    19533 # Whether dlopen is supported.
    19534 dlopen_support=$enable_dlopen
    19535 
    19536 # Whether dlopen of programs is supported.
    19537 dlopen_self=$enable_dlopen_self
    19538 
    19539 # Whether dlopen of statically linked programs is supported.
    19540 dlopen_self_static=$enable_dlopen_self_static
    19541 
    19542 # Compiler flag to prevent dynamic linking.
    19543 link_static_flag=$lt_lt_prog_compiler_static
    19544 
    19545 # Compiler flag to turn off builtin functions.
    19546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
    19547 
    19548 # Compiler flag to allow reflexive dlopens.
    19549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
    19550 
    19551 # Compiler flag to generate shared objects directly from archives.
    19552 whole_archive_flag_spec=$lt_whole_archive_flag_spec
    19553 
    19554 # Compiler flag to generate thread-safe objects.
    19555 thread_safe_flag_spec=$lt_thread_safe_flag_spec
    19556 
    19557 # Library versioning type.
    19558 version_type=$version_type
    19559 
    19560 # Format of library name prefix.
    19561 libname_spec=$lt_libname_spec
    19562 
    19563 # List of archive names.  First name is the real one, the rest are links.
    19564 # The last name is the one that the linker finds with -lNAME.
    19565 library_names_spec=$lt_library_names_spec
    19566 
    19567 # The coded name of the library, if different from the real name.
    19568 soname_spec=$lt_soname_spec
    19569 
    19570 # Commands used to build and install an old-style archive.
    19571 RANLIB=$lt_RANLIB
    19572 old_archive_cmds=$lt_old_archive_cmds
    19573 old_postinstall_cmds=$lt_old_postinstall_cmds
    19574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
    19575 
    19576 # Create an old-style archive from a shared archive.
    19577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
    19578 
    19579 # Create a temporary old-style archive to link instead of a shared archive.
    19580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
    19581 
    19582 # Commands used to build and install a shared archive.
    19583 archive_cmds=$lt_archive_cmds
    19584 archive_expsym_cmds=$lt_archive_expsym_cmds
    19585 postinstall_cmds=$lt_postinstall_cmds
    19586 postuninstall_cmds=$lt_postuninstall_cmds
    19587 
    19588 # Commands used to build a loadable module (assumed same as above if empty)
    19589 module_cmds=$lt_module_cmds
    19590 module_expsym_cmds=$lt_module_expsym_cmds
    19591 
    19592 # Commands to strip libraries.
    19593 old_striplib=$lt_old_striplib
    19594 striplib=$lt_striplib
    19595 
    19596 # Dependencies to place before the objects being linked to create a
    19597 # shared library.
    19598 predep_objects=$lt_predep_objects
    19599 
    19600 # Dependencies to place after the objects being linked to create a
    19601 # shared library.
    19602 postdep_objects=$lt_postdep_objects
    19603 
    19604 # Dependencies to place before the objects being linked to create a
    19605 # shared library.
    19606 predeps=$lt_predeps
    19607 
    19608 # Dependencies to place after the objects being linked to create a
    19609 # shared library.
    19610 postdeps=$lt_postdeps
    19611 
    19612 # The library search path used internally by the compiler when linking
    19613 # a shared library.
    19614 compiler_lib_search_path=$lt_compiler_lib_search_path
    19615 
    19616 # Method to check whether dependent libraries are shared objects.
    19617 deplibs_check_method=$lt_deplibs_check_method
    19618 
    19619 # Command to use when deplibs_check_method == file_magic.
    19620 file_magic_cmd=$lt_file_magic_cmd
    19621 
    19622 # Flag that allows shared libraries with undefined symbols to be built.
    19623 allow_undefined_flag=$lt_allow_undefined_flag
    19624 
    19625 # Flag that forces no undefined symbols.
    19626 no_undefined_flag=$lt_no_undefined_flag
    19627 
    19628 # Commands used to finish a libtool library installation in a directory.
    19629 finish_cmds=$lt_finish_cmds
    19630 
    19631 # Same as above, but a single script fragment to be evaled but not shown.
    19632 finish_eval=$lt_finish_eval
    19633 
    19634 # Take the output of nm and produce a listing of raw symbols and C names.
    19635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
    19636 
    19637 # Transform the output of nm in a proper C declaration
    19638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
    19639 
    19640 # Transform the output of nm in a C name address pair
    19641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
    19642 
    19643 # This is the shared library runtime path variable.
    19644 runpath_var=$runpath_var
    19645 
    19646 # This is the shared library path variable.
    19647 shlibpath_var=$shlibpath_var
    19648 
    19649 # Is shlibpath searched before the hard-coded library search path?
    19650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
    19651 
    19652 # How to hardcode a shared library path into an executable.
    19653 hardcode_action=$hardcode_action
    19654 
    19655 # Whether we should hardcode library paths into libraries.
    19656 hardcode_into_libs=$hardcode_into_libs
    19657 
    19658 # Flag to hardcode \$libdir into a binary during linking.
    19659 # This must work even if \$libdir does not exist.
    19660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
    19661 
    19662 # If ld is used when linking, flag to hardcode \$libdir into
    19663 # a binary during linking. This must work even if \$libdir does
    19664 # not exist.
    19665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
    19666 
    19667 # Whether we need a single -rpath flag with a separated argument.
    19668 hardcode_libdir_separator=$lt_hardcode_libdir_separator
    19669 
    19670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
    19671 # resulting binary.
    19672 hardcode_direct=$hardcode_direct
    19673 
    19674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    19675 # resulting binary.
    19676 hardcode_minus_L=$hardcode_minus_L
    19677 
    19678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    19679 # the resulting binary.
    19680 hardcode_shlibpath_var=$hardcode_shlibpath_var
    19681 
    19682 # Set to yes if building a shared library automatically hardcodes DIR into the library
    19683 # and all subsequent libraries and executables linked against it.
    19684 hardcode_automatic=$hardcode_automatic
    19685 
    19686 # Variables whose values should be saved in libtool wrapper scripts and
    19687 # restored at relink time.
    19688 variables_saved_for_relink="$variables_saved_for_relink"
    19689 
    19690 # Whether libtool must link a program against all its dependency libraries.
    19691 link_all_deplibs=$link_all_deplibs
    19692 
    19693 # Compile-time system search path for libraries
    19694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
    19695 
    19696 # Run-time system search path for libraries
    19697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
    19698 
    19699 # Fix the shell variable \$srcfile for the compiler.
    19700 fix_srcfile_path="$fix_srcfile_path"
    19701 
    19702 # Set to yes if exported symbols are required.
    19703 always_export_symbols=$always_export_symbols
    19704 
    19705 # The commands to list exported symbols.
    19706 export_symbols_cmds=$lt_export_symbols_cmds
    19707 
    19708 # The commands to extract the exported symbol list from a shared archive.
    19709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
    19710 
    19711 # Symbols that should not be listed in the preloaded symbols.
    19712 exclude_expsyms=$lt_exclude_expsyms
    19713 
    19714 # Symbols that must always be exported.
    19715 include_expsyms=$lt_include_expsyms
    19716 
    19717 # ### END LIBTOOL CONFIG
    19718 
    19719 __EOF__
    19720 
    19721 
     16501fi
     16502
     16503
     16504
     16505
     16506
     16507
     16508
     16509
     16510
     16511
     16512
     16513
     16514  # Report which library types will actually be built
     16515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
     16516$as_echo_n "checking if libtool supports shared libraries... " >&6; }
     16517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
     16518$as_echo "$can_build_shared" >&6; }
     16519
     16520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
     16521$as_echo_n "checking whether to build shared libraries... " >&6; }
     16522  test "$can_build_shared" = "no" && enable_shared=no
     16523
     16524  # On AIX, shared libraries and static libraries use the same namespace, and
     16525  # are all built from PIC.
    1972216526  case $host_os in
    1972316527  aix3*)
    19724     cat <<\EOF >> "$cfgfile"
    19725 
    19726 # AIX sometimes has problems with the GCC collect2 program.  For some
    19727 # reason, if we set the COLLECT_NAMES environment variable, the problems
    19728 # vanish in a puff of smoke.
    19729 if test "X${COLLECT_NAMES+set}" != Xset; then
    19730   COLLECT_NAMES=
    19731   export COLLECT_NAMES
    19732 fi
    19733 EOF
     16528    test "$enable_shared" = yes && enable_static=no
     16529    if test -n "$RANLIB"; then
     16530      archive_cmds="$archive_cmds~\$RANLIB \$lib"
     16531      postinstall_cmds='$RANLIB $lib'
     16532    fi
     16533    ;;
     16534
     16535  aix[4-9]*)
     16536    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     16537      test "$enable_shared" = yes && enable_static=no
     16538    fi
    1973416539    ;;
    1973516540  esac
    19736 
    19737   # We use sed instead of cat because bash on DJGPP gets confused if
    19738   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
    19739   # text mode, it properly converts lines to CR/LF.  This bash problem
    19740   # is reportedly fixed, but why not run on old versions too?
    19741   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
    19742 
    19743   mv -f "$cfgfile" "$ofile" || \
    19744     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
    19745   chmod +x "$ofile"
    19746 
    19747 else
    19748   # If there is no Makefile yet, we rely on a make rule to execute
    19749   # `config.status --recheck' to rerun these tests and create the
    19750   # libtool script then.
    19751   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    19752   if test -f "$ltmain_in"; then
    19753     test -f Makefile && make "$ltmain"
    19754   fi
    19755 fi
    19756 
    19757 
     16541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
     16542$as_echo "$enable_shared" >&6; }
     16543
     16544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
     16545$as_echo_n "checking whether to build static libraries... " >&6; }
     16546  # Make sure either enable_shared or enable_static is yes.
     16547  test "$enable_shared" = yes || enable_static=yes
     16548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
     16549$as_echo "$enable_static" >&6; }
     16550
     16551
     16552
     16553
     16554fi
    1975816555ac_ext=c
    1975916556ac_cpp='$CPP $CPPFLAGS'
     
    1976416561CC="$lt_save_CC"
    1976516562
    19766 
    19767 # Check whether --with-tags or --without-tags was given.
    19768 if test "${with_tags+set}" = set; then
    19769   withval="$with_tags"
    19770   tagnames="$withval"
    19771 fi;
    19772 
    19773 if test -f "$ltmain" && test -n "$tagnames"; then
    19774   if test ! -f "${ofile}"; then
    19775     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
    19776 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
    19777   fi
    19778 
    19779   if test -z "$LTCC"; then
    19780     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
    19781     if test -z "$LTCC"; then
    19782       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
    19783 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
    19784     else
    19785       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
    19786 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
    19787     fi
    19788   fi
    19789   if test -z "$LTCFLAGS"; then
    19790     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
    19791   fi
    19792 
    19793   # Extract list of available tagged configurations in $ofile.
    19794   # Note that this assumes the entire list is on one line.
    19795   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
    19796 
    19797   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    19798   for tagname in $tagnames; do
    19799     IFS="$lt_save_ifs"
    19800     # Check whether tagname contains only valid characters
    19801     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
    19802     "") ;;
    19803     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
    19804 echo "$as_me: error: invalid tag name: $tagname" >&2;}
    19805    { (exit 1); exit 1; }; }
    19806         ;;
    19807     esac
    19808 
    19809     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
    19810     then
    19811       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
    19812 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
    19813    { (exit 1); exit 1; }; }
    19814     fi
    19815 
    19816     # Update the list of available tags.
    19817     if test -n "$tagname"; then
    19818       echo appending configuration tag \"$tagname\" to $ofile
    19819 
    19820       case $tagname in
    19821       CXX)
    19822         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    19823             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
    19824             (test "X$CXX" != "Xg++"))) ; then
    19825           ac_ext=cc
     16563      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     16564    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     16565    (test "X$CXX" != "Xg++"))) ; then
     16566  ac_ext=cpp
    1982616567ac_cpp='$CXXCPP $CPPFLAGS'
    1982716568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1982816569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1982916570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    19830 
    19831 
    19832 
     16571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
     16572$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
     16573if test -z "$CXXCPP"; then
     16574  if ${ac_cv_prog_CXXCPP+:} false; then :
     16575  $as_echo_n "(cached) " >&6
     16576else
     16577      # Double quotes because CXXCPP needs to be expanded
     16578    for CXXCPP in "$CXX -E" "/lib/cpp"
     16579    do
     16580      ac_preproc_ok=false
     16581for ac_cxx_preproc_warn_flag in '' yes
     16582do
     16583  # Use a header file that comes with gcc, so configuring glibc
     16584  # with a fresh cross-compiler works.
     16585  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     16586  # <limits.h> exists even on freestanding compilers.
     16587  # On the NeXT, cc -E runs the code through the compiler's parser,
     16588  # not just through cpp. "Syntax error" is here to catch this case.
     16589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16590/* end confdefs.h.  */
     16591#ifdef __STDC__
     16592# include <limits.h>
     16593#else
     16594# include <assert.h>
     16595#endif
     16596                     Syntax error
     16597_ACEOF
     16598if ac_fn_cxx_try_cpp "$LINENO"; then :
     16599
     16600else
     16601  # Broken: fails on valid input.
     16602continue
     16603fi
     16604rm -f conftest.err conftest.i conftest.$ac_ext
     16605
     16606  # OK, works on sane cases.  Now check whether nonexistent headers
     16607  # can be detected and how.
     16608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16609/* end confdefs.h.  */
     16610#include <ac_nonexistent.h>
     16611_ACEOF
     16612if ac_fn_cxx_try_cpp "$LINENO"; then :
     16613  # Broken: success on invalid input.
     16614continue
     16615else
     16616  # Passes both tests.
     16617ac_preproc_ok=:
     16618break
     16619fi
     16620rm -f conftest.err conftest.i conftest.$ac_ext
     16621
     16622done
     16623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     16624rm -f conftest.i conftest.err conftest.$ac_ext
     16625if $ac_preproc_ok; then :
     16626  break
     16627fi
     16628
     16629    done
     16630    ac_cv_prog_CXXCPP=$CXXCPP
     16631
     16632fi
     16633  CXXCPP=$ac_cv_prog_CXXCPP
     16634else
     16635  ac_cv_prog_CXXCPP=$CXXCPP
     16636fi
     16637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
     16638$as_echo "$CXXCPP" >&6; }
     16639ac_preproc_ok=false
     16640for ac_cxx_preproc_warn_flag in '' yes
     16641do
     16642  # Use a header file that comes with gcc, so configuring glibc
     16643  # with a fresh cross-compiler works.
     16644  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     16645  # <limits.h> exists even on freestanding compilers.
     16646  # On the NeXT, cc -E runs the code through the compiler's parser,
     16647  # not just through cpp. "Syntax error" is here to catch this case.
     16648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16649/* end confdefs.h.  */
     16650#ifdef __STDC__
     16651# include <limits.h>
     16652#else
     16653# include <assert.h>
     16654#endif
     16655                     Syntax error
     16656_ACEOF
     16657if ac_fn_cxx_try_cpp "$LINENO"; then :
     16658
     16659else
     16660  # Broken: fails on valid input.
     16661continue
     16662fi
     16663rm -f conftest.err conftest.i conftest.$ac_ext
     16664
     16665  # OK, works on sane cases.  Now check whether nonexistent headers
     16666  # can be detected and how.
     16667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16668/* end confdefs.h.  */
     16669#include <ac_nonexistent.h>
     16670_ACEOF
     16671if ac_fn_cxx_try_cpp "$LINENO"; then :
     16672  # Broken: success on invalid input.
     16673continue
     16674else
     16675  # Passes both tests.
     16676ac_preproc_ok=:
     16677break
     16678fi
     16679rm -f conftest.err conftest.i conftest.$ac_ext
     16680
     16681done
     16682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     16683rm -f conftest.i conftest.err conftest.$ac_ext
     16684if $ac_preproc_ok; then :
     16685
     16686else
     16687  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     16688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     16689as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
     16690See \`config.log' for more details" "$LINENO" 5; }
     16691fi
     16692
     16693ac_ext=c
     16694ac_cpp='$CPP $CPPFLAGS'
     16695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     16696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     16697ac_compiler_gnu=$ac_cv_c_compiler_gnu
     16698
     16699else
     16700  _lt_caught_CXX_error=yes
     16701fi
     16702
     16703ac_ext=cpp
     16704ac_cpp='$CXXCPP $CPPFLAGS'
     16705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     16706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     16707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    1983316708
    1983416709archive_cmds_need_lc_CXX=no
     
    1983616711always_export_symbols_CXX=no
    1983716712archive_expsym_cmds_CXX=
     16713compiler_needs_object_CXX=no
    1983816714export_dynamic_flag_spec_CXX=
    1983916715hardcode_direct_CXX=no
     16716hardcode_direct_absolute_CXX=no
    1984016717hardcode_libdir_flag_spec_CXX=
    19841 hardcode_libdir_flag_spec_ld_CXX=
    1984216718hardcode_libdir_separator_CXX=
    1984316719hardcode_minus_L_CXX=no
    1984416720hardcode_shlibpath_var_CXX=unsupported
    1984516721hardcode_automatic_CXX=no
     16722inherit_rpath_CXX=no
    1984616723module_cmds_CXX=
    1984716724module_expsym_cmds_CXX=
    1984816725link_all_deplibs_CXX=unknown
    1984916726old_archive_cmds_CXX=$old_archive_cmds
     16727reload_flag_CXX=$reload_flag
     16728reload_cmds_CXX=$reload_cmds
    1985016729no_undefined_flag_CXX=
    1985116730whole_archive_flag_spec_CXX=
    1985216731enable_shared_with_static_runtimes_CXX=no
    1985316732
    19854 # Dependencies to place before and after the object being linked:
    19855 predep_objects_CXX=
    19856 postdep_objects_CXX=
    19857 predeps_CXX=
    19858 postdeps_CXX=
    19859 compiler_lib_search_path_CXX=
    19860 
    1986116733# Source file extension for C++ test sources.
    1986216734ac_ext=cpp
     
    1986616738objext_CXX=$objext
    1986716739
    19868 # Code to be used in simple compile tests
    19869 lt_simple_compile_test_code="int some_variable = 0;\n"
    19870 
    19871 # Code to be used in simple link tests
    19872 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
    19873 
    19874 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
     16740# No sense in running all these tests if we already determined that
     16741# the CXX compiler isn't working.  Some variables (like enable_shared)
     16742# are currently assumed to apply to all compilers on this platform,
     16743# and will be corrupted by setting them based on a non-working compiler.
     16744if test "$_lt_caught_CXX_error" != yes; then
     16745  # Code to be used in simple compile tests
     16746  lt_simple_compile_test_code="int some_variable = 0;"
     16747
     16748  # Code to be used in simple link tests
     16749  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
     16750
     16751  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
     16752
     16753
     16754
     16755
     16756
    1987516757
    1987616758# If no C compiler was specified, use CC.
     
    1988416766
    1988516767
    19886 # save warnings/boilerplate of simple test code
    19887 ac_outfile=conftest.$ac_objext
    19888 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
     16768  # save warnings/boilerplate of simple test code
     16769  ac_outfile=conftest.$ac_objext
     16770echo "$lt_simple_compile_test_code" >conftest.$ac_ext
    1988916771eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    1989016772_lt_compiler_boilerplate=`cat conftest.err`
    19891 $rm conftest*
    19892 
    19893 ac_outfile=conftest.$ac_objext
    19894 printf "$lt_simple_link_test_code" >conftest.$ac_ext
     16773$RM conftest*
     16774
     16775  ac_outfile=conftest.$ac_objext
     16776echo "$lt_simple_link_test_code" >conftest.$ac_ext
    1989516777eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    1989616778_lt_linker_boilerplate=`cat conftest.err`
    19897 $rm conftest*
    19898 
    19899 
    19900 # Allow CC to be a program name with arguments.
    19901 lt_save_CC=$CC
    19902 lt_save_LD=$LD
    19903 lt_save_GCC=$GCC
    19904 GCC=$GXX
    19905 lt_save_with_gnu_ld=$with_gnu_ld
    19906 lt_save_path_LD=$lt_cv_path_LD
    19907 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    19908   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
    19909 else
    19910   $as_unset lt_cv_prog_gnu_ld
    19911 fi
    19912 if test -n "${lt_cv_path_LDCXX+set}"; then
    19913   lt_cv_path_LD=$lt_cv_path_LDCXX
    19914 else
    19915   $as_unset lt_cv_path_LD
    19916 fi
    19917 test -z "${LDCXX+set}" || LD=$LDCXX
    19918 CC=${CXX-"c++"}
    19919 compiler=$CC
    19920 compiler_CXX=$CC
    19921 for cc_temp in $compiler""; do
     16779$RM -r conftest*
     16780
     16781
     16782  # Allow CC to be a program name with arguments.
     16783  lt_save_CC=$CC
     16784  lt_save_CFLAGS=$CFLAGS
     16785  lt_save_LD=$LD
     16786  lt_save_GCC=$GCC
     16787  GCC=$GXX
     16788  lt_save_with_gnu_ld=$with_gnu_ld
     16789  lt_save_path_LD=$lt_cv_path_LD
     16790  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
     16791    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
     16792  else
     16793    $as_unset lt_cv_prog_gnu_ld
     16794  fi
     16795  if test -n "${lt_cv_path_LDCXX+set}"; then
     16796    lt_cv_path_LD=$lt_cv_path_LDCXX
     16797  else
     16798    $as_unset lt_cv_path_LD
     16799  fi
     16800  test -z "${LDCXX+set}" || LD=$LDCXX
     16801  CC=${CXX-"c++"}
     16802  CFLAGS=$CXXFLAGS
     16803  compiler=$CC
     16804  compiler_CXX=$CC
     16805  for cc_temp in $compiler""; do
    1992216806  case $cc_temp in
    1992316807    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
     
    1992716811  esac
    1992816812done
    19929 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    19930 
    19931 
    19932 # We don't want -fno-exception wen compiling C++ code, so set the
    19933 # no_builtin_flag separately
    19934 if test "$GXX" = yes; then
    19935   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    19936 else
    19937   lt_prog_compiler_no_builtin_flag_CXX=
    19938 fi
    19939 
    19940 if test "$GXX" = yes; then
    19941   # Set up default GNU C++ configuration
    19942 
    19943 
    19944 # Check whether --with-gnu-ld or --without-gnu-ld was given.
    19945 if test "${with_gnu_ld+set}" = set; then
    19946   withval="$with_gnu_ld"
    19947   test "$withval" = no || with_gnu_ld=yes
     16813cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
     16814
     16815
     16816  if test -n "$compiler"; then
     16817    # We don't want -fno-exception when compiling C++ code, so set the
     16818    # no_builtin_flag separately
     16819    if test "$GXX" = yes; then
     16820      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
     16821    else
     16822      lt_prog_compiler_no_builtin_flag_CXX=
     16823    fi
     16824
     16825    if test "$GXX" = yes; then
     16826      # Set up default GNU C++ configuration
     16827
     16828
     16829
     16830# Check whether --with-gnu-ld was given.
     16831if test "${with_gnu_ld+set}" = set; then :
     16832  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
    1994816833else
    1994916834  with_gnu_ld=no
    19950 fi;
     16835fi
     16836
    1995116837ac_prog=ld
    1995216838if test "$GCC" = yes; then
    1995316839  # Check if gcc -print-prog-name=ld gives a path.
    19954   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
    19955 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
     16840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
     16841$as_echo_n "checking for ld used by $CC... " >&6; }
    1995616842  case $host in
    1995716843  *-*-mingw*)
     
    1996616852      re_direlt='/[^/][^/]*/\.\./'
    1996716853      # Canonicalize the pathname of ld
    19968       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
    19969       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
    19970         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
     16854      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
     16855      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
     16856        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
    1997116857      done
    1997216858      test -z "$LD" && LD="$ac_prog"
     
    1998216868  esac
    1998316869elif test "$with_gnu_ld" = yes; then
    19984   echo "$as_me:$LINENO: checking for GNU ld" >&5
    19985 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
    19986 else
    19987   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
    19988 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
    19989 fi
    19990 if test "${lt_cv_path_LD+set}" = set; then
    19991   echo $ECHO_N "(cached) $ECHO_C" >&6
     16870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
     16871$as_echo_n "checking for GNU ld... " >&6; }
     16872else
     16873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
     16874$as_echo_n "checking for non-GNU ld... " >&6; }
     16875fi
     16876if ${lt_cv_path_LD+:} false; then :
     16877  $as_echo_n "(cached) " >&6
    1999216878else
    1999316879  if test -z "$LD"; then
     
    2001916905LD="$lt_cv_path_LD"
    2002016906if test -n "$LD"; then
    20021   echo "$as_me:$LINENO: result: $LD" >&5
    20022 echo "${ECHO_T}$LD" >&6
    20023 else
    20024   echo "$as_me:$LINENO: result: no" >&5
    20025 echo "${ECHO_T}no" >&6
    20026 fi
    20027 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
    20028 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
    20029    { (exit 1); exit 1; }; }
    20030 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
    20031 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
    20032 if test "${lt_cv_prog_gnu_ld+set}" = set; then
    20033   echo $ECHO_N "(cached) $ECHO_C" >&6
     16907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
     16908$as_echo "$LD" >&6; }
     16909else
     16910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     16911$as_echo "no" >&6; }
     16912fi
     16913test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
     16914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
     16915$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
     16916if ${lt_cv_prog_gnu_ld+:} false; then :
     16917  $as_echo_n "(cached) " >&6
    2003416918else
    2003516919  # I'd rather use --version here, but apparently some GNU lds only accept -v.
     
    2004316927esac
    2004416928fi
    20045 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
    20046 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
     16929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
     16930$as_echo "$lt_cv_prog_gnu_ld" >&6; }
    2004716931with_gnu_ld=$lt_cv_prog_gnu_ld
    2004816932
    2004916933
    2005016934
    20051   # Check if GNU C++ uses GNU ld as the underlying linker, since the
    20052   # archiving commands below assume that GNU ld is being used.
    20053   if test "$with_gnu_ld" = yes; then
    20054     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    20055     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    20056 
    20057     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
    20058     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
    20059 
    20060     # If archive_cmds runs LD, not CC, wlarc should be empty
    20061     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
    20062     #     investigate it a little bit more. (MM)
    20063     wlarc='${wl}'
    20064 
    20065     # ancient GNU ld didn't support --whole-archive et. al.
    20066     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
    20067         grep 'no-whole-archive' > /dev/null; then
    20068       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     16935
     16936
     16937
     16938
     16939      # Check if GNU C++ uses GNU ld as the underlying linker, since the
     16940      # archiving commands below assume that GNU ld is being used.
     16941      if test "$with_gnu_ld" = yes; then
     16942        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     16943        archive_expsym_cmds_CXX='$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'
     16944
     16945        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
     16946        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
     16947
     16948        # If archive_cmds runs LD, not CC, wlarc should be empty
     16949        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
     16950        #     investigate it a little bit more. (MM)
     16951        wlarc='${wl}'
     16952
     16953        # ancient GNU ld didn't support --whole-archive et. al.
     16954        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
     16955          $GREP 'no-whole-archive' > /dev/null; then
     16956          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     16957        else
     16958          whole_archive_flag_spec_CXX=
     16959        fi
     16960      else
     16961        with_gnu_ld=no
     16962        wlarc=
     16963
     16964        # A generic and very simple default shared library creation
     16965        # command for GNU C++ for the case where it uses the native
     16966        # linker, instead of GNU ld.  If possible, this setting should
     16967        # overridden to take advantage of the native linker features on
     16968        # the platform it is being used on.
     16969        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     16970      fi
     16971
     16972      # Commands to make compiler produce verbose output that lists
     16973      # what "hidden" libraries, object files and flags are used when
     16974      # linking a shared library.
     16975      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
     16976
    2006916977    else
    20070       whole_archive_flag_spec_CXX=
     16978      GXX=no
     16979      with_gnu_ld=no
     16980      wlarc=
    2007116981    fi
    20072   else
    20073     with_gnu_ld=no
    20074     wlarc=
    20075 
    20076     # A generic and very simple default shared library creation
    20077     # command for GNU C++ for the case where it uses the native
    20078     # linker, instead of GNU ld.  If possible, this setting should
    20079     # overridden to take advantage of the native linker features on
    20080     # the platform it is being used on.
    20081     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    20082   fi
    20083 
    20084   # Commands to make compiler produce verbose output that lists
    20085   # what "hidden" libraries, object files and flags are used when
    20086   # linking a shared library.
    20087   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    20088 
    20089 else
    20090   GXX=no
    20091   with_gnu_ld=no
    20092   wlarc=
    20093 fi
    20094 
    20095 # PORTME: fill in a description of your system's C++ link characteristics
    20096 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
    20097 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
    20098 ld_shlibs_CXX=yes
    20099 case $host_os in
    20100   aix3*)
    20101     # FIXME: insert proper C++ library support
    20102     ld_shlibs_CXX=no
    20103     ;;
    20104   aix4* | aix5*)
    20105     if test "$host_cpu" = ia64; then
    20106       # On IA64, the linker does run time linking by default, so we don't
    20107       # have to do anything special.
    20108       aix_use_runtimelinking=no
    20109       exp_sym_flag='-Bexport'
    20110       no_entry_flag=""
    20111     else
    20112       aix_use_runtimelinking=no
    20113 
    20114       # Test if we are trying to use run time linking or normal
    20115       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    20116       # need to do runtime linking.
    20117       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
    20118         for ld_flag in $LDFLAGS; do
    20119           case $ld_flag in
    20120           *-brtl*)
    20121             aix_use_runtimelinking=yes
    20122             break
     16982
     16983    # PORTME: fill in a description of your system's C++ link characteristics
     16984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
     16985$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
     16986    ld_shlibs_CXX=yes
     16987    case $host_os in
     16988      aix3*)
     16989        # FIXME: insert proper C++ library support
     16990        ld_shlibs_CXX=no
     16991        ;;
     16992      aix[4-9]*)
     16993        if test "$host_cpu" = ia64; then
     16994          # On IA64, the linker does run time linking by default, so we don't
     16995          # have to do anything special.
     16996          aix_use_runtimelinking=no
     16997          exp_sym_flag='-Bexport'
     16998          no_entry_flag=""
     16999        else
     17000          aix_use_runtimelinking=no
     17001
     17002          # Test if we are trying to use run time linking or normal
     17003          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
     17004          # need to do runtime linking.
     17005          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
     17006            for ld_flag in $LDFLAGS; do
     17007              case $ld_flag in
     17008              *-brtl*)
     17009                aix_use_runtimelinking=yes
     17010                break
     17011                ;;
     17012              esac
     17013            done
    2012317014            ;;
    20124           esac
    20125         done
    20126         ;;
    20127       esac
    20128 
    20129       exp_sym_flag='-bexport'
    20130       no_entry_flag='-bnoentry'
    20131     fi
    20132 
    20133     # When large executables or shared objects are built, AIX ld can
    20134     # have problems creating the table of contents.  If linking a library
    20135     # or program results in "error TOC overflow" add -mminimal-toc to
    20136     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    20137     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
    20138 
    20139     archive_cmds_CXX=''
    20140     hardcode_direct_CXX=yes
    20141     hardcode_libdir_separator_CXX=':'
    20142     link_all_deplibs_CXX=yes
    20143 
    20144     if test "$GXX" = yes; then
    20145       case $host_os in aix4.[012]|aix4.[012].*)
    20146       # We only want to do this on AIX 4.2 and lower, the check
    20147       # below for broken collect2 doesn't work under 4.3+
    20148         collect2name=`${CC} -print-prog-name=collect2`
    20149         if test -f "$collect2name" && \
    20150            strings "$collect2name" | grep resolve_lib_name >/dev/null
    20151         then
    20152           # We have reworked collect2
    20153           hardcode_direct_CXX=yes
    20154         else
    20155           # We have old collect2
    20156           hardcode_direct_CXX=unsupported
    20157           # It fails to find uninstalled libraries when the uninstalled
    20158           # path is not listed in the libpath.  Setting hardcode_minus_L
    20159           # to unsupported forces relinking
    20160           hardcode_minus_L_CXX=yes
    20161           hardcode_libdir_flag_spec_CXX='-L$libdir'
    20162           hardcode_libdir_separator_CXX=
    20163         fi
    20164         ;;
    20165       esac
    20166       shared_flag='-shared'
    20167       if test "$aix_use_runtimelinking" = yes; then
    20168         shared_flag="$shared_flag "'${wl}-G'
    20169       fi
    20170     else
    20171       # not using gcc
    20172       if test "$host_cpu" = ia64; then
    20173         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    20174         # chokes on -Wl,-G. The following line is correct:
    20175         shared_flag='-G'
    20176       else
    20177         if test "$aix_use_runtimelinking" = yes; then
    20178           shared_flag='${wl}-G'
    20179         else
    20180           shared_flag='${wl}-bM:SRE'
    20181         fi
    20182       fi
    20183     fi
    20184 
    20185     # It seems that -bexpall does not export symbols beginning with
    20186     # underscore (_), so it is better to generate a list of symbols to export.
    20187     always_export_symbols_CXX=yes
    20188     if test "$aix_use_runtimelinking" = yes; then
    20189       # Warning - without using the other runtime loading flags (-brtl),
    20190       # -berok will link without error, but may produce a broken library.
    20191       allow_undefined_flag_CXX='-berok'
    20192       # Determine the default libpath from the value encoded in an empty executable.
    20193       cat >conftest.$ac_ext <<_ACEOF
    20194 /* confdefs.h.  */
    20195 _ACEOF
    20196 cat confdefs.h >>conftest.$ac_ext
    20197 cat >>conftest.$ac_ext <<_ACEOF
     17015          esac
     17016
     17017          exp_sym_flag='-bexport'
     17018          no_entry_flag='-bnoentry'
     17019        fi
     17020
     17021        # When large executables or shared objects are built, AIX ld can
     17022        # have problems creating the table of contents.  If linking a library
     17023        # or program results in "error TOC overflow" add -mminimal-toc to
     17024        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
     17025        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
     17026
     17027        archive_cmds_CXX=''
     17028        hardcode_direct_CXX=yes
     17029        hardcode_direct_absolute_CXX=yes
     17030        hardcode_libdir_separator_CXX=':'
     17031        link_all_deplibs_CXX=yes
     17032        file_list_spec_CXX='${wl}-f,'
     17033
     17034        if test "$GXX" = yes; then
     17035          case $host_os in aix4.[012]|aix4.[012].*)
     17036          # We only want to do this on AIX 4.2 and lower, the check
     17037          # below for broken collect2 doesn't work under 4.3+
     17038          collect2name=`${CC} -print-prog-name=collect2`
     17039          if test -f "$collect2name" &&
     17040             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
     17041          then
     17042            # We have reworked collect2
     17043            :
     17044          else
     17045            # We have old collect2
     17046            hardcode_direct_CXX=unsupported
     17047            # It fails to find uninstalled libraries when the uninstalled
     17048            # path is not listed in the libpath.  Setting hardcode_minus_L
     17049            # to unsupported forces relinking
     17050            hardcode_minus_L_CXX=yes
     17051            hardcode_libdir_flag_spec_CXX='-L$libdir'
     17052            hardcode_libdir_separator_CXX=
     17053          fi
     17054          esac
     17055          shared_flag='-shared'
     17056          if test "$aix_use_runtimelinking" = yes; then
     17057            shared_flag="$shared_flag "'${wl}-G'
     17058          fi
     17059        else
     17060          # not using gcc
     17061          if test "$host_cpu" = ia64; then
     17062          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
     17063          # chokes on -Wl,-G. The following line is correct:
     17064          shared_flag='-G'
     17065          else
     17066            if test "$aix_use_runtimelinking" = yes; then
     17067              shared_flag='${wl}-G'
     17068            else
     17069              shared_flag='${wl}-bM:SRE'
     17070            fi
     17071          fi
     17072        fi
     17073
     17074        export_dynamic_flag_spec_CXX='${wl}-bexpall'
     17075        # It seems that -bexpall does not export symbols beginning with
     17076        # underscore (_), so it is better to generate a list of symbols to
     17077        # export.
     17078        always_export_symbols_CXX=yes
     17079        if test "$aix_use_runtimelinking" = yes; then
     17080          # Warning - without using the other runtime loading flags (-brtl),
     17081          # -berok will link without error, but may produce a broken library.
     17082          allow_undefined_flag_CXX='-berok'
     17083          # Determine the default libpath from the value encoded in an empty
     17084          # executable.
     17085          if test "${lt_cv_aix_libpath+set}" = set; then
     17086  aix_libpath=$lt_cv_aix_libpath
     17087else
     17088  if ${lt_cv_aix_libpath__CXX+:} false; then :
     17089  $as_echo_n "(cached) " >&6
     17090else
     17091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2019817092/* end confdefs.h.  */
    2019917093
     
    2020617100}
    2020717101_ACEOF
    20208 rm -f conftest.$ac_objext conftest$ac_exeext
    20209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    20210   (eval $ac_link) 2>conftest.er1
    20211   ac_status=$?
    20212   grep -v '^ *+' conftest.er1 >conftest.err
    20213   rm -f conftest.er1
    20214   cat conftest.err >&5
    20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20216   (exit $ac_status); } &&
    20217          { ac_try='test -z "$ac_cxx_werror_flag"
    20218                          || test ! -s conftest.err'
    20219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20220   (eval $ac_try) 2>&5
    20221   ac_status=$?
    20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20223   (exit $ac_status); }; } &&
    20224          { ac_try='test -s conftest$ac_exeext'
    20225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20226   (eval $ac_try) 2>&5
    20227   ac_status=$?
    20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20229   (exit $ac_status); }; }; then
    20230 
    20231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    20232 }'`
    20233 # Check for a 64-bit object if we didn't find anything.
    20234 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    20235 }'`; fi
    20236 else
    20237   echo "$as_me: failed program was:" >&5
    20238 sed 's/^/| /' conftest.$ac_ext >&5
    20239 
    20240 fi
    20241 rm -f conftest.err conftest.$ac_objext \
    20242       conftest$ac_exeext conftest.$ac_ext
    20243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    20244 
    20245       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
    20246 
    20247       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    20248      else
    20249       if test "$host_cpu" = ia64; then
    20250         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
    20251         allow_undefined_flag_CXX="-z nodefs"
    20252         archive_expsym_cmds_CXX="\$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"
    20253       else
    20254         # Determine the default libpath from the value encoded in an empty executable.
    20255         cat >conftest.$ac_ext <<_ACEOF
    20256 /* confdefs.h.  */
    20257 _ACEOF
    20258 cat confdefs.h >>conftest.$ac_ext
    20259 cat >>conftest.$ac_ext <<_ACEOF
     17102if ac_fn_cxx_try_link "$LINENO"; then :
     17103
     17104  lt_aix_libpath_sed='
     17105      /Import File Strings/,/^$/ {
     17106          /^0/ {
     17107              s/^0  *\([^ ]*\) *$/\1/
     17108              p
     17109          }
     17110      }'
     17111  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     17112  # Check for a 64-bit object if we didn't find anything.
     17113  if test -z "$lt_cv_aix_libpath__CXX"; then
     17114    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     17115  fi
     17116fi
     17117rm -f core conftest.err conftest.$ac_objext \
     17118    conftest$ac_exeext conftest.$ac_ext
     17119  if test -z "$lt_cv_aix_libpath__CXX"; then
     17120    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
     17121  fi
     17122
     17123fi
     17124
     17125  aix_libpath=$lt_cv_aix_libpath__CXX
     17126fi
     17127
     17128          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
     17129
     17130          archive_expsym_cmds_CXX='$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"
     17131        else
     17132          if test "$host_cpu" = ia64; then
     17133            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
     17134            allow_undefined_flag_CXX="-z nodefs"
     17135            archive_expsym_cmds_CXX="\$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"
     17136          else
     17137            # Determine the default libpath from the value encoded in an
     17138            # empty executable.
     17139            if test "${lt_cv_aix_libpath+set}" = set; then
     17140  aix_libpath=$lt_cv_aix_libpath
     17141else
     17142  if ${lt_cv_aix_libpath__CXX+:} false; then :
     17143  $as_echo_n "(cached) " >&6
     17144else
     17145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2026017146/* end confdefs.h.  */
    2026117147
     
    2026817154}
    2026917155_ACEOF
    20270 rm -f conftest.$ac_objext conftest$ac_exeext
    20271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    20272   (eval $ac_link) 2>conftest.er1
    20273   ac_status=$?
    20274   grep -v '^ *+' conftest.er1 >conftest.err
    20275   rm -f conftest.er1
    20276   cat conftest.err >&5
    20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20278   (exit $ac_status); } &&
    20279          { ac_try='test -z "$ac_cxx_werror_flag"
    20280                          || test ! -s conftest.err'
    20281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20282   (eval $ac_try) 2>&5
    20283   ac_status=$?
    20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20285   (exit $ac_status); }; } &&
    20286          { ac_try='test -s conftest$ac_exeext'
    20287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20288   (eval $ac_try) 2>&5
    20289   ac_status=$?
    20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20291   (exit $ac_status); }; }; then
    20292 
    20293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    20294 }'`
    20295 # Check for a 64-bit object if we didn't find anything.
    20296 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    20297 }'`; fi
    20298 else
    20299   echo "$as_me: failed program was:" >&5
    20300 sed 's/^/| /' conftest.$ac_ext >&5
    20301 
    20302 fi
    20303 rm -f conftest.err conftest.$ac_objext \
    20304       conftest$ac_exeext conftest.$ac_ext
    20305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    20306 
    20307         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
    20308         # Warning - without using the other run time loading flags,
    20309         # -berok will link without error, but may produce a broken library.
    20310         no_undefined_flag_CXX=' ${wl}-bernotok'
    20311         allow_undefined_flag_CXX=' ${wl}-berok'
    20312         # Exported symbols can be pulled into shared objects from archives
    20313         whole_archive_flag_spec_CXX='$convenience'
    20314         archive_cmds_need_lc_CXX=yes
    20315         # This is similar to how AIX traditionally builds its shared libraries.
    20316         archive_expsym_cmds_CXX="\$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'
    20317       fi
    20318     fi
    20319     ;;
    20320 
    20321   beos*)
    20322     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    20323       allow_undefined_flag_CXX=unsupported
    20324       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
    20325       # support --undefined.  This deserves some investigation.  FIXME
    20326       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    20327     else
    20328       ld_shlibs_CXX=no
    20329     fi
    20330     ;;
    20331 
    20332   chorus*)
    20333     case $cc_basename in
    20334       *)
    20335         # FIXME: insert proper C++ library support
    20336         ld_shlibs_CXX=no
    20337         ;;
    20338     esac
    20339     ;;
    20340 
    20341   cygwin* | mingw* | pw32*)
    20342     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
    20343     # as there is no search path for DLLs.
    20344     hardcode_libdir_flag_spec_CXX='-L$libdir'
    20345     allow_undefined_flag_CXX=unsupported
    20346     always_export_symbols_CXX=no
    20347     enable_shared_with_static_runtimes_CXX=yes
    20348 
    20349     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    20350       archive_cmds_CXX='$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'
    20351       # If the export-symbols file already is a .def file (1st line
    20352       # is EXPORTS), use it as is; otherwise, prepend...
    20353       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    20354         cp $export_symbols $output_objdir/$soname.def;
    20355       else
    20356         echo EXPORTS > $output_objdir/$soname.def;
    20357         cat $export_symbols >> $output_objdir/$soname.def;
    20358       fi~
    20359       $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'
    20360     else
    20361       ld_shlibs_CXX=no
    20362     fi
    20363   ;;
    20364       darwin* | rhapsody*)
    20365         case $host_os in
    20366         rhapsody* | darwin1.[012])
    20367          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
    20368          ;;
    20369        *) # Darwin 1.3 on
    20370          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    20371            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
    20372          else
    20373            case ${MACOSX_DEPLOYMENT_TARGET} in
    20374              10.[012])
    20375                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
    20376                ;;
    20377              10.*)
    20378                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
    20379                ;;
    20380            esac
    20381          fi
    20382          ;;
    20383         esac
    20384       archive_cmds_need_lc_CXX=no
    20385       hardcode_direct_CXX=no
    20386       hardcode_automatic_CXX=yes
    20387       hardcode_shlibpath_var_CXX=unsupported
    20388       whole_archive_flag_spec_CXX=''
    20389       link_all_deplibs_CXX=yes
    20390 
    20391     if test "$GXX" = yes ; then
    20392       lt_int_apple_cc_single_mod=no
    20393       output_verbose_link_cmd='echo'
    20394       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
    20395        lt_int_apple_cc_single_mod=yes
    20396       fi
    20397       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    20398        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    20399       else
    20400           archive_cmds_CXX='$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'
     17156if ac_fn_cxx_try_link "$LINENO"; then :
     17157
     17158  lt_aix_libpath_sed='
     17159      /Import File Strings/,/^$/ {
     17160          /^0/ {
     17161              s/^0  *\([^ ]*\) *$/\1/
     17162              p
     17163          }
     17164      }'
     17165  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     17166  # Check for a 64-bit object if we didn't find anything.
     17167  if test -z "$lt_cv_aix_libpath__CXX"; then
     17168    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     17169  fi
     17170fi
     17171rm -f core conftest.err conftest.$ac_objext \
     17172    conftest$ac_exeext conftest.$ac_ext
     17173  if test -z "$lt_cv_aix_libpath__CXX"; then
     17174    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
     17175  fi
     17176
     17177fi
     17178
     17179  aix_libpath=$lt_cv_aix_libpath__CXX
     17180fi
     17181
     17182            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
     17183            # Warning - without using the other run time loading flags,
     17184            # -berok will link without error, but may produce a broken library.
     17185            no_undefined_flag_CXX=' ${wl}-bernotok'
     17186            allow_undefined_flag_CXX=' ${wl}-berok'
     17187            if test "$with_gnu_ld" = yes; then
     17188              # We only use this code for GNU lds that support --whole-archive.
     17189              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     17190            else
     17191              # Exported symbols can be pulled into shared objects from archives
     17192              whole_archive_flag_spec_CXX='$convenience'
     17193            fi
     17194            archive_cmds_need_lc_CXX=yes
     17195            # This is similar to how AIX traditionally builds its shared
     17196            # libraries.
     17197            archive_expsym_cmds_CXX="\$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'
     17198          fi
    2040117199        fi
    20402         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    20403         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    20404           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    20405             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    20406           else
    20407             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    20408           fi
    20409             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    20410       else
    20411       case $cc_basename in
    20412         xlc*)
    20413          output_verbose_link_cmd='echo'
    20414           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
    20415           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    20416           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    20417           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    20418           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    20419           ;;
    20420        *)
    20421          ld_shlibs_CXX=no
    20422           ;;
    20423       esac
    20424       fi
    2042517200        ;;
    2042617201
    20427   dgux*)
    20428     case $cc_basename in
    20429       ec++*)
    20430         # FIXME: insert proper C++ library support
    20431         ld_shlibs_CXX=no
    20432         ;;
    20433       ghcx*)
    20434         # Green Hills C++ Compiler
    20435         # FIXME: insert proper C++ library support
    20436         ld_shlibs_CXX=no
    20437         ;;
    20438       *)
    20439         # FIXME: insert proper C++ library support
    20440         ld_shlibs_CXX=no
    20441         ;;
    20442     esac
    20443     ;;
    20444   freebsd[12]*)
    20445     # C++ shared libraries reported to be fairly broken before switch to ELF
    20446     ld_shlibs_CXX=no
    20447     ;;
    20448   freebsd-elf*)
    20449     archive_cmds_need_lc_CXX=no
    20450     ;;
    20451   freebsd* | kfreebsd*-gnu | dragonfly*)
    20452     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    20453     # conventions
    20454     ld_shlibs_CXX=yes
    20455     ;;
    20456   gnu*)
    20457     ;;
    20458   hpux9*)
    20459     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    20460     hardcode_libdir_separator_CXX=:
    20461     export_dynamic_flag_spec_CXX='${wl}-E'
    20462     hardcode_direct_CXX=yes
    20463     hardcode_minus_L_CXX=yes # Not in the search PATH,
    20464                                 # but as the default
    20465                                 # location of the library.
    20466 
    20467     case $cc_basename in
    20468     CC*)
    20469       # FIXME: insert proper C++ library support
    20470       ld_shlibs_CXX=no
    20471       ;;
    20472     aCC*)
    20473       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    20474       # Commands to make compiler produce verbose output that lists
    20475       # what "hidden" libraries, object files and flags are used when
    20476       # linking a shared library.
    20477       #
    20478       # There doesn't appear to be a way to prevent this compiler from
    20479       # explicitly linking system object files so we need to strip them
    20480       # from the output so that they don't get included in the library
    20481       # dependencies.
    20482       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    20483       ;;
    20484     *)
    20485       if test "$GXX" = yes; then
    20486         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    20487       else
    20488         # FIXME: insert proper C++ library support
    20489         ld_shlibs_CXX=no
    20490       fi
    20491       ;;
    20492     esac
    20493     ;;
    20494   hpux10*|hpux11*)
    20495     if test $with_gnu_ld = no; then
    20496       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    20497       hardcode_libdir_separator_CXX=:
    20498 
    20499       case $host_cpu in
    20500       hppa*64*|ia64*)
    20501         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
    20502         ;;
    20503       *)
    20504         export_dynamic_flag_spec_CXX='${wl}-E'
    20505         ;;
    20506       esac
    20507     fi
    20508     case $host_cpu in
    20509     hppa*64*|ia64*)
    20510       hardcode_direct_CXX=no
    20511       hardcode_shlibpath_var_CXX=no
    20512       ;;
    20513     *)
    20514       hardcode_direct_CXX=yes
    20515       hardcode_minus_L_CXX=yes # Not in the search PATH,
    20516                                               # but as the default
    20517                                               # location of the library.
    20518       ;;
    20519     esac
    20520 
    20521     case $cc_basename in
    20522       CC*)
    20523         # FIXME: insert proper C++ library support
    20524         ld_shlibs_CXX=no
    20525         ;;
    20526       aCC*)
    20527         case $host_cpu in
    20528         hppa*64*)
    20529           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    20530           ;;
    20531         ia64*)
    20532           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    20533           ;;
    20534         *)
    20535           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    20536           ;;
    20537         esac
    20538         # Commands to make compiler produce verbose output that lists
    20539         # what "hidden" libraries, object files and flags are used when
    20540         # linking a shared library.
    20541         #
    20542         # There doesn't appear to be a way to prevent this compiler from
    20543         # explicitly linking system object files so we need to strip them
    20544         # from the output so that they don't get included in the library
    20545         # dependencies.
    20546         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    20547         ;;
    20548       *)
    20549         if test "$GXX" = yes; then
    20550           if test $with_gnu_ld = no; then
    20551             case $host_cpu in
    20552             hppa*64*)
    20553               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    20554               ;;
    20555             ia64*)
    20556               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    20557               ;;
    20558             *)
    20559               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    20560               ;;
    20561             esac
    20562           fi
     17202      beos*)
     17203        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     17204          allow_undefined_flag_CXX=unsupported
     17205          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     17206          # support --undefined.  This deserves some investigation.  FIXME
     17207          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    2056317208        else
    20564           # FIXME: insert proper C++ library support
    2056517209          ld_shlibs_CXX=no
    2056617210        fi
    2056717211        ;;
    20568     esac
    20569     ;;
    20570   interix3*)
    20571     hardcode_direct_CXX=no
    20572     hardcode_shlibpath_var_CXX=no
    20573     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    20574     export_dynamic_flag_spec_CXX='${wl}-E'
    20575     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
    20576     # Instead, shared libraries are loaded at an image base (0x10000000 by
    20577     # default) and relocated if they conflict, which is a slow very memory
    20578     # consuming and fragmenting process.  To avoid this, we pick a random,
    20579     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
    20580     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
    20581     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    20582     archive_expsym_cmds_CXX='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'
    20583     ;;
    20584   irix5* | irix6*)
    20585     case $cc_basename in
    20586       CC*)
    20587         # SGI C++
    20588         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    20589 
    20590         # Archives containing C++ object files must be created using
    20591         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
    20592         # necessary to make sure instantiated templates are included
    20593         # in the archive.
    20594         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
    20595         ;;
    20596       *)
    20597         if test "$GXX" = yes; then
    20598           if test "$with_gnu_ld" = no; then
    20599             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     17212
     17213      chorus*)
     17214        case $cc_basename in
     17215          *)
     17216          # FIXME: insert proper C++ library support
     17217          ld_shlibs_CXX=no
     17218          ;;
     17219        esac
     17220        ;;
     17221
     17222      cygwin* | mingw* | pw32* | cegcc*)
     17223        case $GXX,$cc_basename in
     17224        ,cl* | no,cl*)
     17225          # Native MSVC
     17226          # hardcode_libdir_flag_spec is actually meaningless, as there is
     17227          # no search path for DLLs.
     17228          hardcode_libdir_flag_spec_CXX=' '
     17229          allow_undefined_flag_CXX=unsupported
     17230          always_export_symbols_CXX=yes
     17231          file_list_spec_CXX='@'
     17232          # Tell ltmain to make .lib files, not .a files.
     17233          libext=lib
     17234          # Tell ltmain to make .dll files, not .so files.
     17235          shrext_cmds=".dll"
     17236          # FIXME: Setting linknames here is a bad hack.
     17237          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     17238          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     17239              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     17240            else
     17241              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     17242            fi~
     17243            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     17244            linknames='
     17245          # The linker will not automatically build a static lib if we build a DLL.
     17246          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
     17247          enable_shared_with_static_runtimes_CXX=yes
     17248          # Don't use ranlib
     17249          old_postinstall_cmds_CXX='chmod 644 $oldlib'
     17250          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
     17251            lt_tool_outputfile="@TOOL_OUTPUT@"~
     17252            case $lt_outputfile in
     17253              *.exe|*.EXE) ;;
     17254              *)
     17255                lt_outputfile="$lt_outputfile.exe"
     17256                lt_tool_outputfile="$lt_tool_outputfile.exe"
     17257                ;;
     17258            esac~
     17259            func_to_tool_file "$lt_outputfile"~
     17260            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     17261              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     17262              $RM "$lt_outputfile.manifest";
     17263            fi'
     17264          ;;
     17265        *)
     17266          # g++
     17267          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
     17268          # as there is no search path for DLLs.
     17269          hardcode_libdir_flag_spec_CXX='-L$libdir'
     17270          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
     17271          allow_undefined_flag_CXX=unsupported
     17272          always_export_symbols_CXX=no
     17273          enable_shared_with_static_runtimes_CXX=yes
     17274
     17275          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     17276            archive_cmds_CXX='$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'
     17277            # If the export-symbols file already is a .def file (1st line
     17278            # is EXPORTS), use it as is; otherwise, prepend...
     17279            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     17280              cp $export_symbols $output_objdir/$soname.def;
     17281            else
     17282              echo EXPORTS > $output_objdir/$soname.def;
     17283              cat $export_symbols >> $output_objdir/$soname.def;
     17284            fi~
     17285            $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'
    2060017286          else
    20601             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
     17287            ld_shlibs_CXX=no
    2060217288          fi
    20603         fi
    20604         link_all_deplibs_CXX=yes
    20605         ;;
    20606     esac
    20607     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    20608     hardcode_libdir_separator_CXX=:
    20609     ;;
    20610   linux*)
    20611     case $cc_basename in
    20612       KCC*)
    20613         # Kuck and Associates, Inc. (KAI) C++ Compiler
    20614 
    20615         # KCC will only create a shared library if the output file
    20616         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    20617         # to its proper name (with version) after linking.
    20618         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    20619         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
    20620         # Commands to make compiler produce verbose output that lists
    20621         # what "hidden" libraries, object files and flags are used when
    20622         # linking a shared library.
    20623         #
    20624         # There doesn't appear to be a way to prevent this compiler from
    20625         # explicitly linking system object files so we need to strip them
    20626         # from the output so that they don't get included in the library
    20627         # dependencies.
    20628         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    20629 
    20630         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
    20631         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
    20632 
    20633         # Archives containing C++ object files must be created using
    20634         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
    20635         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
    20636         ;;
    20637       icpc*)
    20638         # Intel C++
    20639         with_gnu_ld=yes
    20640         # version 8.0 and above of icpc choke on multiply defined symbols
    20641         # if we add $predep_objects and $postdep_objects, however 7.1 and
    20642         # earlier do not add the objects themselves.
    20643         case `$CC -V 2>&1` in
    20644         *"Version 7."*)
    20645           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    20646           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    20647           ;;
    20648         *)  # Version 8.0 or newer
    20649           tmp_idyn=
    20650           case $host_cpu in
    20651             ia64*) tmp_idyn=' -i_dynamic';;
    20652           esac
    20653           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    20654           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    2065517289          ;;
    2065617290        esac
    20657         archive_cmds_need_lc_CXX=no
     17291        ;;
     17292      darwin* | rhapsody*)
     17293
     17294
     17295  archive_cmds_need_lc_CXX=no
     17296  hardcode_direct_CXX=no
     17297  hardcode_automatic_CXX=yes
     17298  hardcode_shlibpath_var_CXX=unsupported
     17299  if test "$lt_cv_ld_force_load" = "yes"; then
     17300    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
     17301
     17302  else
     17303    whole_archive_flag_spec_CXX=''
     17304  fi
     17305  link_all_deplibs_CXX=yes
     17306  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
     17307  case $cc_basename in
     17308     ifort*) _lt_dar_can_shared=yes ;;
     17309     *) _lt_dar_can_shared=$GCC ;;
     17310  esac
     17311  if test "$_lt_dar_can_shared" = "yes"; then
     17312    output_verbose_link_cmd=func_echo_all
     17313    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
     17314    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     17315    archive_expsym_cmds_CXX="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}"
     17316    module_expsym_cmds_CXX="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}"
     17317       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
     17318      archive_cmds_CXX="\$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}"
     17319      archive_expsym_cmds_CXX="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}"
     17320    fi
     17321
     17322  else
     17323  ld_shlibs_CXX=no
     17324  fi
     17325
     17326        ;;
     17327
     17328      dgux*)
     17329        case $cc_basename in
     17330          ec++*)
     17331            # FIXME: insert proper C++ library support
     17332            ld_shlibs_CXX=no
     17333            ;;
     17334          ghcx*)
     17335            # Green Hills C++ Compiler
     17336            # FIXME: insert proper C++ library support
     17337            ld_shlibs_CXX=no
     17338            ;;
     17339          *)
     17340            # FIXME: insert proper C++ library support
     17341            ld_shlibs_CXX=no
     17342            ;;
     17343        esac
     17344        ;;
     17345
     17346      freebsd2.*)
     17347        # C++ shared libraries reported to be fairly broken before
     17348        # switch to ELF
     17349        ld_shlibs_CXX=no
     17350        ;;
     17351
     17352      freebsd-elf*)
     17353        archive_cmds_need_lc_CXX=no
     17354        ;;
     17355
     17356      freebsd* | dragonfly*)
     17357        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
     17358        # conventions
     17359        ld_shlibs_CXX=yes
     17360        ;;
     17361
     17362      haiku*)
     17363        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     17364        link_all_deplibs_CXX=yes
     17365        ;;
     17366
     17367      hpux9*)
     17368        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
     17369        hardcode_libdir_separator_CXX=:
     17370        export_dynamic_flag_spec_CXX='${wl}-E'
     17371        hardcode_direct_CXX=yes
     17372        hardcode_minus_L_CXX=yes # Not in the search PATH,
     17373                                             # but as the default
     17374                                             # location of the library.
     17375
     17376        case $cc_basename in
     17377          CC*)
     17378            # FIXME: insert proper C++ library support
     17379            ld_shlibs_CXX=no
     17380            ;;
     17381          aCC*)
     17382            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     17383            # Commands to make compiler produce verbose output that lists
     17384            # what "hidden" libraries, object files and flags are used when
     17385            # linking a shared library.
     17386            #
     17387            # There doesn't appear to be a way to prevent this compiler from
     17388            # explicitly linking system object files so we need to strip them
     17389            # from the output so that they don't get included in the library
     17390            # dependencies.
     17391            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"'
     17392            ;;
     17393          *)
     17394            if test "$GXX" = yes; then
     17395              archive_cmds_CXX='$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'
     17396            else
     17397              # FIXME: insert proper C++ library support
     17398              ld_shlibs_CXX=no
     17399            fi
     17400            ;;
     17401        esac
     17402        ;;
     17403
     17404      hpux10*|hpux11*)
     17405        if test $with_gnu_ld = no; then
     17406          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
     17407          hardcode_libdir_separator_CXX=:
     17408
     17409          case $host_cpu in
     17410            hppa*64*|ia64*)
     17411              ;;
     17412            *)
     17413              export_dynamic_flag_spec_CXX='${wl}-E'
     17414              ;;
     17415          esac
     17416        fi
     17417        case $host_cpu in
     17418          hppa*64*|ia64*)
     17419            hardcode_direct_CXX=no
     17420            hardcode_shlibpath_var_CXX=no
     17421            ;;
     17422          *)
     17423            hardcode_direct_CXX=yes
     17424            hardcode_direct_absolute_CXX=yes
     17425            hardcode_minus_L_CXX=yes # Not in the search PATH,
     17426                                                 # but as the default
     17427                                                 # location of the library.
     17428            ;;
     17429        esac
     17430
     17431        case $cc_basename in
     17432          CC*)
     17433            # FIXME: insert proper C++ library support
     17434            ld_shlibs_CXX=no
     17435            ;;
     17436          aCC*)
     17437            case $host_cpu in
     17438              hppa*64*)
     17439                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     17440                ;;
     17441              ia64*)
     17442                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     17443                ;;
     17444              *)
     17445                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     17446                ;;
     17447            esac
     17448            # Commands to make compiler produce verbose output that lists
     17449            # what "hidden" libraries, object files and flags are used when
     17450            # linking a shared library.
     17451            #
     17452            # There doesn't appear to be a way to prevent this compiler from
     17453            # explicitly linking system object files so we need to strip them
     17454            # from the output so that they don't get included in the library
     17455            # dependencies.
     17456            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"'
     17457            ;;
     17458          *)
     17459            if test "$GXX" = yes; then
     17460              if test $with_gnu_ld = no; then
     17461                case $host_cpu in
     17462                  hppa*64*)
     17463                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     17464                    ;;
     17465                  ia64*)
     17466                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     17467                    ;;
     17468                  *)
     17469                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     17470                    ;;
     17471                esac
     17472              fi
     17473            else
     17474              # FIXME: insert proper C++ library support
     17475              ld_shlibs_CXX=no
     17476            fi
     17477            ;;
     17478        esac
     17479        ;;
     17480
     17481      interix[3-9]*)
     17482        hardcode_direct_CXX=no
     17483        hardcode_shlibpath_var_CXX=no
    2065817484        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    20659         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
    20660         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     17485        export_dynamic_flag_spec_CXX='${wl}-E'
     17486        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     17487        # Instead, shared libraries are loaded at an image base (0x10000000 by
     17488        # default) and relocated if they conflict, which is a slow very memory
     17489        # consuming and fragmenting process.  To avoid this, we pick a random,
     17490        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     17491        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     17492        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     17493        archive_expsym_cmds_CXX='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'
    2066117494        ;;
    20662       pgCC*)
    20663         # Portland Group C++ compiler
    20664         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
    20665         archive_expsym_cmds_CXX='$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'
    20666 
    20667         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
    20668         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
    20669         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     17495      irix5* | irix6*)
     17496        case $cc_basename in
     17497          CC*)
     17498            # SGI C++
     17499            archive_cmds_CXX='$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'
     17500
     17501            # Archives containing C++ object files must be created using
     17502            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
     17503            # necessary to make sure instantiated templates are included
     17504            # in the archive.
     17505            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
     17506            ;;
     17507          *)
     17508            if test "$GXX" = yes; then
     17509              if test "$with_gnu_ld" = no; then
     17510                archive_cmds_CXX='$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'
     17511              else
     17512                archive_cmds_CXX='$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'
     17513              fi
     17514            fi
     17515            link_all_deplibs_CXX=yes
     17516            ;;
     17517        esac
     17518        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
     17519        hardcode_libdir_separator_CXX=:
     17520        inherit_rpath_CXX=yes
    2067017521        ;;
    20671       cxx*)
    20672         # Compaq C++
    20673         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    20674         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
    20675 
    20676         runpath_var=LD_RUN_PATH
    20677         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
    20678         hardcode_libdir_separator_CXX=:
    20679 
    20680         # Commands to make compiler produce verbose output that lists
    20681         # what "hidden" libraries, object files and flags are used when
    20682         # linking a shared library.
    20683         #
    20684         # There doesn't appear to be a way to prevent this compiler from
    20685         # explicitly linking system object files so we need to strip them
    20686         # from the output so that they don't get included in the library
    20687         # dependencies.
    20688         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
     17522
     17523      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
     17524        case $cc_basename in
     17525          KCC*)
     17526            # Kuck and Associates, Inc. (KAI) C++ Compiler
     17527
     17528            # KCC will only create a shared library if the output file
     17529            # ends with ".so" (or ".sl" for HP-UX), so rename the library
     17530            # to its proper name (with version) after linking.
     17531            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
     17532            archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
     17533            # Commands to make compiler produce verbose output that lists
     17534            # what "hidden" libraries, object files and flags are used when
     17535            # linking a shared library.
     17536            #
     17537            # There doesn't appear to be a way to prevent this compiler from
     17538            # explicitly linking system object files so we need to strip them
     17539            # from the output so that they don't get included in the library
     17540            # dependencies.
     17541            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"'
     17542
     17543            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
     17544            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
     17545
     17546            # Archives containing C++ object files must be created using
     17547            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
     17548            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
     17549            ;;
     17550          icpc* | ecpc* )
     17551            # Intel C++
     17552            with_gnu_ld=yes
     17553            # version 8.0 and above of icpc choke on multiply defined symbols
     17554            # if we add $predep_objects and $postdep_objects, however 7.1 and
     17555            # earlier do not add the objects themselves.
     17556            case `$CC -V 2>&1` in
     17557              *"Version 7."*)
     17558                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     17559                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     17560                ;;
     17561              *)  # Version 8.0 or newer
     17562                tmp_idyn=
     17563                case $host_cpu in
     17564                  ia64*) tmp_idyn=' -i_dynamic';;
     17565                esac
     17566                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     17567                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     17568                ;;
     17569            esac
     17570            archive_cmds_need_lc_CXX=no
     17571            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
     17572            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
     17573            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     17574            ;;
     17575          pgCC* | pgcpp*)
     17576            # Portland Group C++ compiler
     17577            case `$CC -V` in
     17578            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
     17579              prelink_cmds_CXX='tpldir=Template.dir~
     17580                rm -rf $tpldir~
     17581                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
     17582                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
     17583              old_archive_cmds_CXX='tpldir=Template.dir~
     17584                rm -rf $tpldir~
     17585                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
     17586                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
     17587                $RANLIB $oldlib'
     17588              archive_cmds_CXX='tpldir=Template.dir~
     17589                rm -rf $tpldir~
     17590                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
     17591                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     17592              archive_expsym_cmds_CXX='tpldir=Template.dir~
     17593                rm -rf $tpldir~
     17594                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
     17595                $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'
     17596              ;;
     17597            *) # Version 6 and above use weak symbols
     17598              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     17599              archive_expsym_cmds_CXX='$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'
     17600              ;;
     17601            esac
     17602
     17603            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
     17604            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
     17605            whole_archive_flag_spec_CXX='${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'
     17606            ;;
     17607          cxx*)
     17608            # Compaq C++
     17609            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     17610            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
     17611
     17612            runpath_var=LD_RUN_PATH
     17613            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
     17614            hardcode_libdir_separator_CXX=:
     17615
     17616            # Commands to make compiler produce verbose output that lists
     17617            # what "hidden" libraries, object files and flags are used when
     17618            # linking a shared library.
     17619            #
     17620            # There doesn't appear to be a way to prevent this compiler from
     17621            # explicitly linking system object files so we need to strip them
     17622            # from the output so that they don't get included in the library
     17623            # dependencies.
     17624            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'
     17625            ;;
     17626          xl* | mpixl* | bgxl*)
     17627            # IBM XL 8.0 on PPC, with GNU ld
     17628            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
     17629            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
     17630            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     17631            if test "x$supports_anon_versioning" = xyes; then
     17632              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
     17633                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     17634                echo "local: *; };" >> $output_objdir/$libname.ver~
     17635                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     17636            fi
     17637            ;;
     17638          *)
     17639            case `$CC -V 2>&1 | sed 5q` in
     17640            *Sun\ C*)
     17641              # Sun C++ 5.9
     17642              no_undefined_flag_CXX=' -zdefs'
     17643              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     17644              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
     17645              hardcode_libdir_flag_spec_CXX='-R$libdir'
     17646              whole_archive_flag_spec_CXX='${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'
     17647              compiler_needs_object_CXX=yes
     17648
     17649              # Not sure whether something based on
     17650              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
     17651              # would be better.
     17652              output_verbose_link_cmd='func_echo_all'
     17653
     17654              # Archives containing C++ object files must be created using
     17655              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
     17656              # necessary to make sure instantiated templates are included
     17657              # in the archive.
     17658              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
     17659              ;;
     17660            esac
     17661            ;;
     17662        esac
    2068917663        ;;
    20690     esac
    20691     ;;
    20692   lynxos*)
    20693     # FIXME: insert proper C++ library support
    20694     ld_shlibs_CXX=no
    20695     ;;
    20696   m88k*)
    20697     # FIXME: insert proper C++ library support
    20698     ld_shlibs_CXX=no
    20699     ;;
    20700   mvs*)
    20701     case $cc_basename in
    20702       cxx*)
    20703         # FIXME: insert proper C++ library support
     17664
     17665      lynxos*)
     17666        # FIXME: insert proper C++ library support
    2070417667        ld_shlibs_CXX=no
    2070517668        ;;
    20706       *)
    20707         # FIXME: insert proper C++ library support
     17669
     17670      m88k*)
     17671        # FIXME: insert proper C++ library support
     17672        ld_shlibs_CXX=no
     17673        ;;
     17674
     17675      mvs*)
     17676        case $cc_basename in
     17677          cxx*)
     17678            # FIXME: insert proper C++ library support
     17679            ld_shlibs_CXX=no
     17680            ;;
     17681          *)
     17682            # FIXME: insert proper C++ library support
     17683            ld_shlibs_CXX=no
     17684            ;;
     17685        esac
     17686        ;;
     17687
     17688      netbsd*)
     17689        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
     17690          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
     17691          wlarc=
     17692          hardcode_libdir_flag_spec_CXX='-R$libdir'
     17693          hardcode_direct_CXX=yes
     17694          hardcode_shlibpath_var_CXX=no
     17695        fi
     17696        # Workaround some broken pre-1.5 toolchains
     17697        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
     17698        ;;
     17699
     17700      *nto* | *qnx*)
     17701        ld_shlibs_CXX=yes
     17702        ;;
     17703
     17704      openbsd2*)
     17705        # C++ shared libraries are fairly broken
    2070817706        ld_shlibs_CXX=no
    2070917707        ;;
    20710     esac
    20711     ;;
    20712   netbsd*)
    20713     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    20714       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
    20715       wlarc=
    20716       hardcode_libdir_flag_spec_CXX='-R$libdir'
    20717       hardcode_direct_CXX=yes
    20718       hardcode_shlibpath_var_CXX=no
    20719     fi
    20720     # Workaround some broken pre-1.5 toolchains
    20721     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    20722     ;;
    20723   openbsd2*)
    20724     # C++ shared libraries are fairly broken
    20725     ld_shlibs_CXX=no
    20726     ;;
    20727   openbsd*)
    20728     hardcode_direct_CXX=yes
    20729     hardcode_shlibpath_var_CXX=no
    20730     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    20731     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    20732     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    20733       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
    20734       export_dynamic_flag_spec_CXX='${wl}-E'
    20735       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    20736     fi
    20737     output_verbose_link_cmd='echo'
    20738     ;;
    20739   osf3*)
    20740     case $cc_basename in
    20741       KCC*)
    20742         # Kuck and Associates, Inc. (KAI) C++ Compiler
    20743 
    20744         # KCC will only create a shared library if the output file
    20745         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    20746         # to its proper name (with version) after linking.
    20747         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    20748 
    20749         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    20750         hardcode_libdir_separator_CXX=:
    20751 
    20752         # Archives containing C++ object files must be created using
    20753         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
    20754         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
    20755 
    20756         ;;
    20757       RCC*)
    20758         # Rational C++ 2.4.1
    20759         # FIXME: insert proper C++ library support
    20760         ld_shlibs_CXX=no
    20761         ;;
    20762       cxx*)
    20763         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
    20764         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    20765 
    20766         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    20767         hardcode_libdir_separator_CXX=:
    20768 
    20769         # Commands to make compiler produce verbose output that lists
    20770         # what "hidden" libraries, object files and flags are used when
    20771         # linking a shared library.
    20772         #
    20773         # There doesn't appear to be a way to prevent this compiler from
    20774         # explicitly linking system object files so we need to strip them
    20775         # from the output so that they don't get included in the library
    20776         # dependencies.
    20777         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    20778         ;;
    20779       *)
    20780         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    20781           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
    20782           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    20783 
    20784           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    20785           hardcode_libdir_separator_CXX=:
    20786 
    20787           # Commands to make compiler produce verbose output that lists
    20788           # what "hidden" libraries, object files and flags are used when
    20789           # linking a shared library.
    20790           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    20791 
     17708
     17709      openbsd*)
     17710        if test -f /usr/libexec/ld.so; then
     17711          hardcode_direct_CXX=yes
     17712          hardcode_shlibpath_var_CXX=no
     17713          hardcode_direct_absolute_CXX=yes
     17714          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     17715          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
     17716          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     17717            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
     17718            export_dynamic_flag_spec_CXX='${wl}-E'
     17719            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     17720          fi
     17721          output_verbose_link_cmd=func_echo_all
    2079217722        else
    20793           # FIXME: insert proper C++ library support
    2079417723          ld_shlibs_CXX=no
    2079517724        fi
    2079617725        ;;
    20797     esac
    20798     ;;
    20799   osf4* | osf5*)
    20800     case $cc_basename in
    20801       KCC*)
    20802         # Kuck and Associates, Inc. (KAI) C++ Compiler
    20803 
    20804         # KCC will only create a shared library if the output file
    20805         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    20806         # to its proper name (with version) after linking.
    20807         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    20808 
    20809         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    20810         hardcode_libdir_separator_CXX=:
    20811 
    20812         # Archives containing C++ object files must be created using
    20813         # the KAI C++ compiler.
    20814         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
    20815         ;;
    20816       RCC*)
    20817         # Rational C++ 2.4.1
    20818         # FIXME: insert proper C++ library support
    20819         ld_shlibs_CXX=no
    20820         ;;
    20821       cxx*)
    20822         allow_undefined_flag_CXX=' -expect_unresolved \*'
    20823         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    20824         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    20825           echo "-hidden">> $lib.exp~
    20826           $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~
    20827           $rm $lib.exp'
    20828 
    20829         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
    20830         hardcode_libdir_separator_CXX=:
    20831 
    20832         # Commands to make compiler produce verbose output that lists
    20833         # what "hidden" libraries, object files and flags are used when
    20834         # linking a shared library.
    20835         #
    20836         # There doesn't appear to be a way to prevent this compiler from
    20837         # explicitly linking system object files so we need to strip them
    20838         # from the output so that they don't get included in the library
    20839         # dependencies.
    20840         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    20841         ;;
    20842       *)
    20843         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    20844           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
    20845          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    20846 
    20847           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    20848           hardcode_libdir_separator_CXX=:
    20849 
    20850           # Commands to make compiler produce verbose output that lists
    20851           # what "hidden" libraries, object files and flags are used when
    20852           # linking a shared library.
    20853           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    20854 
    20855         else
    20856           # FIXME: insert proper C++ library support
    20857           ld_shlibs_CXX=no
    20858         fi
    20859         ;;
    20860     esac
    20861     ;;
    20862   psos*)
    20863     # FIXME: insert proper C++ library support
    20864     ld_shlibs_CXX=no
    20865     ;;
    20866   sunos4*)
    20867     case $cc_basename in
    20868       CC*)
    20869         # Sun C++ 4.x
    20870         # FIXME: insert proper C++ library support
    20871         ld_shlibs_CXX=no
    20872         ;;
    20873       lcc*)
    20874         # Lucid
    20875         # FIXME: insert proper C++ library support
    20876         ld_shlibs_CXX=no
    20877         ;;
    20878       *)
    20879         # FIXME: insert proper C++ library support
    20880         ld_shlibs_CXX=no
    20881         ;;
    20882     esac
    20883     ;;
    20884   solaris*)
    20885     case $cc_basename in
    20886       CC*)
    20887         # Sun C++ 4.2, 5.x and Centerline C++
    20888         archive_cmds_need_lc_CXX=yes
    20889         no_undefined_flag_CXX=' -zdefs'
    20890         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    20891         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    20892         $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'
    20893 
    20894         hardcode_libdir_flag_spec_CXX='-R$libdir'
    20895         hardcode_shlibpath_var_CXX=no
    20896         case $host_os in
    20897           solaris2.[0-5] | solaris2.[0-5].*) ;;
    20898           *)
    20899             # The C++ compiler is used as linker so we must use $wl
    20900             # flag to pass the commands to the underlying system
    20901             # linker. We must also pass each convience library through
    20902             # to the system linker between allextract/defaultextract.
    20903             # The C++ compiler will combine linker options so we
    20904             # cannot just pass the convience library names through
    20905             # without $wl.
    20906             # Supported since Solaris 2.6 (maybe 2.5.1?)
    20907             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
     17726
     17727      osf3* | osf4* | osf5*)
     17728        case $cc_basename in
     17729          KCC*)
     17730            # Kuck and Associates, Inc. (KAI) C++ Compiler
     17731
     17732            # KCC will only create a shared library if the output file
     17733            # ends with ".so" (or ".sl" for HP-UX), so rename the library
     17734            # to its proper name (with version) after linking.
     17735            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
     17736
     17737            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
     17738            hardcode_libdir_separator_CXX=:
     17739
     17740            # Archives containing C++ object files must be created using
     17741            # the KAI C++ compiler.
     17742            case $host in
     17743              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
     17744              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
     17745            esac
    2090817746            ;;
    20909         esac
    20910         link_all_deplibs_CXX=yes
    20911 
    20912         output_verbose_link_cmd='echo'
    20913 
    20914         # Archives containing C++ object files must be created using
    20915         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
    20916         # necessary to make sure instantiated templates are included
    20917         # in the archive.
    20918         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
    20919         ;;
    20920       gcx*)
    20921         # Green Hills C++ Compiler
    20922         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    20923 
    20924         # The C++ compiler must be used to create the archive.
    20925         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
    20926         ;;
    20927       *)
    20928         # GNU C++ compiler with Solaris linker
    20929         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    20930           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
    20931           if $CC --version | grep -v '^2\.7' > /dev/null; then
    20932             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    20933             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    20934                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
     17747          RCC*)
     17748            # Rational C++ 2.4.1
     17749            # FIXME: insert proper C++ library support
     17750            ld_shlibs_CXX=no
     17751            ;;
     17752          cxx*)
     17753            case $host in
     17754              osf3*)
     17755                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
     17756                archive_cmds_CXX='$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'
     17757                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
     17758                ;;
     17759              *)
     17760                allow_undefined_flag_CXX=' -expect_unresolved \*'
     17761                archive_cmds_CXX='$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'
     17762                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
     17763                  echo "-hidden">> $lib.exp~
     17764                  $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~
     17765                  $RM $lib.exp'
     17766                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
     17767                ;;
     17768            esac
     17769
     17770            hardcode_libdir_separator_CXX=:
    2093517771
    2093617772            # Commands to make compiler produce verbose output that lists
    2093717773            # what "hidden" libraries, object files and flags are used when
    2093817774            # linking a shared library.
    20939             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
    20940           else
    20941             # g++ 2.7 appears to require `-G' NOT `-shared' on this
    20942             # platform.
    20943             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    20944             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    20945                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    20946 
    20947             # Commands to make compiler produce verbose output that lists
    20948             # what "hidden" libraries, object files and flags are used when
    20949             # linking a shared library.
    20950             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
    20951           fi
    20952 
    20953           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
    20954         fi
    20955         ;;
     17775            #
     17776            # There doesn't appear to be a way to prevent this compiler from
     17777            # explicitly linking system object files so we need to strip them
     17778            # from the output so that they don't get included in the library
     17779            # dependencies.
     17780            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"'
     17781            ;;
     17782          *)
     17783            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
     17784              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
     17785              case $host in
     17786                osf3*)
     17787                  archive_cmds_CXX='$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'
     17788                  ;;
     17789                *)
     17790                  archive_cmds_CXX='$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'
     17791                  ;;
     17792              esac
     17793
     17794              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
     17795              hardcode_libdir_separator_CXX=:
     17796
     17797              # Commands to make compiler produce verbose output that lists
     17798              # what "hidden" libraries, object files and flags are used when
     17799              # linking a shared library.
     17800              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
     17801
     17802            else
     17803              # FIXME: insert proper C++ library support
     17804              ld_shlibs_CXX=no
     17805            fi
     17806            ;;
     17807        esac
     17808        ;;
     17809
     17810      psos*)
     17811        # FIXME: insert proper C++ library support
     17812        ld_shlibs_CXX=no
     17813        ;;
     17814
     17815      sunos4*)
     17816        case $cc_basename in
     17817          CC*)
     17818            # Sun C++ 4.x
     17819            # FIXME: insert proper C++ library support
     17820            ld_shlibs_CXX=no
     17821            ;;
     17822          lcc*)
     17823            # Lucid
     17824            # FIXME: insert proper C++ library support
     17825            ld_shlibs_CXX=no
     17826            ;;
     17827          *)
     17828            # FIXME: insert proper C++ library support
     17829            ld_shlibs_CXX=no
     17830            ;;
     17831        esac
     17832        ;;
     17833
     17834      solaris*)
     17835        case $cc_basename in
     17836          CC* | sunCC*)
     17837            # Sun C++ 4.2, 5.x and Centerline C++
     17838            archive_cmds_need_lc_CXX=yes
     17839            no_undefined_flag_CXX=' -zdefs'
     17840            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     17841            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     17842              $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'
     17843
     17844            hardcode_libdir_flag_spec_CXX='-R$libdir'
     17845            hardcode_shlibpath_var_CXX=no
     17846            case $host_os in
     17847              solaris2.[0-5] | solaris2.[0-5].*) ;;
     17848              *)
     17849                # The compiler driver will combine and reorder linker options,
     17850                # but understands `-z linker_flag'.
     17851                # Supported since Solaris 2.6 (maybe 2.5.1?)
     17852                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
     17853                ;;
     17854            esac
     17855            link_all_deplibs_CXX=yes
     17856
     17857            output_verbose_link_cmd='func_echo_all'
     17858
     17859            # Archives containing C++ object files must be created using
     17860            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
     17861            # necessary to make sure instantiated templates are included
     17862            # in the archive.
     17863            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
     17864            ;;
     17865          gcx*)
     17866            # Green Hills C++ Compiler
     17867            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     17868
     17869            # The C++ compiler must be used to create the archive.
     17870            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
     17871            ;;
     17872          *)
     17873            # GNU C++ compiler with Solaris linker
     17874            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
     17875              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
     17876              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
     17877                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     17878                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     17879                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
     17880
     17881                # Commands to make compiler produce verbose output that lists
     17882                # what "hidden" libraries, object files and flags are used when
     17883                # linking a shared library.
     17884                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
     17885              else
     17886                # g++ 2.7 appears to require `-G' NOT `-shared' on this
     17887                # platform.
     17888                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     17889                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     17890                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
     17891
     17892                # Commands to make compiler produce verbose output that lists
     17893                # what "hidden" libraries, object files and flags are used when
     17894                # linking a shared library.
     17895                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
     17896              fi
     17897
     17898              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
     17899              case $host_os in
     17900                solaris2.[0-5] | solaris2.[0-5].*) ;;
     17901                *)
     17902                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     17903                  ;;
     17904              esac
     17905            fi
     17906            ;;
     17907        esac
     17908        ;;
     17909
     17910    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
     17911      no_undefined_flag_CXX='${wl}-z,text'
     17912      archive_cmds_need_lc_CXX=no
     17913      hardcode_shlibpath_var_CXX=no
     17914      runpath_var='LD_RUN_PATH'
     17915
     17916      case $cc_basename in
     17917        CC*)
     17918          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     17919          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     17920          ;;
     17921        *)
     17922          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     17923          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     17924          ;;
     17925      esac
     17926      ;;
     17927
     17928      sysv5* | sco3.2v5* | sco5v6*)
     17929        # Note: We can NOT use -z defs as we might desire, because we do not
     17930        # link with -lc, and that would cause any symbols used from libc to
     17931        # always be unresolved, which means just about no library would
     17932        # ever link correctly.  If we're not using GNU ld we use -z text
     17933        # though, which does catch some bad symbols but isn't as heavy-handed
     17934        # as -z defs.
     17935        no_undefined_flag_CXX='${wl}-z,text'
     17936        allow_undefined_flag_CXX='${wl}-z,nodefs'
     17937        archive_cmds_need_lc_CXX=no
     17938        hardcode_shlibpath_var_CXX=no
     17939        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
     17940        hardcode_libdir_separator_CXX=':'
     17941        link_all_deplibs_CXX=yes
     17942        export_dynamic_flag_spec_CXX='${wl}-Bexport'
     17943        runpath_var='LD_RUN_PATH'
     17944
     17945        case $cc_basename in
     17946          CC*)
     17947            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     17948            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     17949            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
     17950              '"$old_archive_cmds_CXX"
     17951            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
     17952              '"$reload_cmds_CXX"
     17953            ;;
     17954          *)
     17955            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     17956            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     17957            ;;
     17958        esac
     17959      ;;
     17960
     17961      tandem*)
     17962        case $cc_basename in
     17963          NCC*)
     17964            # NonStop-UX NCC 3.20
     17965            # FIXME: insert proper C++ library support
     17966            ld_shlibs_CXX=no
     17967            ;;
     17968          *)
     17969            # FIXME: insert proper C++ library support
     17970            ld_shlibs_CXX=no
     17971            ;;
     17972        esac
     17973        ;;
     17974
     17975      vxworks*)
     17976        # FIXME: insert proper C++ library support
     17977        ld_shlibs_CXX=no
     17978        ;;
     17979
     17980      *)
     17981        # FIXME: insert proper C++ library support
     17982        ld_shlibs_CXX=no
     17983        ;;
    2095617984    esac
    20957     ;;
    20958   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
    20959     no_undefined_flag_CXX='${wl}-z,text'
    20960     archive_cmds_need_lc_CXX=no
    20961     hardcode_shlibpath_var_CXX=no
    20962     runpath_var='LD_RUN_PATH'
    20963 
    20964     case $cc_basename in
    20965       CC*)
    20966         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    20967         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    20968         ;;
    20969       *)
    20970         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    20971         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    20972         ;;
    20973     esac
    20974     ;;
    20975   sysv5* | sco3.2v5* | sco5v6*)
    20976     # Note: We can NOT use -z defs as we might desire, because we do not
    20977     # link with -lc, and that would cause any symbols used from libc to
    20978     # always be unresolved, which means just about no library would
    20979     # ever link correctly.  If we're not using GNU ld we use -z text
    20980     # though, which does catch some bad symbols but isn't as heavy-handed
    20981     # as -z defs.
    20982     # For security reasons, it is highly recommended that you always
    20983     # use absolute paths for naming shared libraries, and exclude the
    20984     # DT_RUNPATH tag from executables and libraries.  But doing so
    20985     # requires that you compile everything twice, which is a pain.
    20986     # So that behaviour is only enabled if SCOABSPATH is set to a
    20987     # non-empty value in the environment.  Most likely only useful for
    20988     # creating official distributions of packages.
    20989     # This is a hack until libtool officially supports absolute path
    20990     # names for shared libraries.
    20991     no_undefined_flag_CXX='${wl}-z,text'
    20992     allow_undefined_flag_CXX='${wl}-z,nodefs'
    20993     archive_cmds_need_lc_CXX=no
    20994     hardcode_shlibpath_var_CXX=no
    20995     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
    20996     hardcode_libdir_separator_CXX=':'
    20997     link_all_deplibs_CXX=yes
    20998     export_dynamic_flag_spec_CXX='${wl}-Bexport'
    20999     runpath_var='LD_RUN_PATH'
    21000 
    21001     case $cc_basename in
    21002       CC*)
    21003         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    21004         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    21005         ;;
    21006       *)
    21007         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    21008         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    21009         ;;
    21010     esac
    21011     ;;
    21012   tandem*)
    21013     case $cc_basename in
    21014       NCC*)
    21015         # NonStop-UX NCC 3.20
    21016         # FIXME: insert proper C++ library support
    21017         ld_shlibs_CXX=no
    21018         ;;
    21019       *)
    21020         # FIXME: insert proper C++ library support
    21021         ld_shlibs_CXX=no
    21022         ;;
    21023     esac
    21024     ;;
    21025   vxworks*)
    21026     # FIXME: insert proper C++ library support
    21027     ld_shlibs_CXX=no
    21028     ;;
    21029   *)
    21030     # FIXME: insert proper C++ library support
    21031     ld_shlibs_CXX=no
    21032     ;;
    21033 esac
    21034 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
    21035 echo "${ECHO_T}$ld_shlibs_CXX" >&6
    21036 test "$ld_shlibs_CXX" = no && can_build_shared=no
    21037 
    21038 GCC_CXX="$GXX"
    21039 LD_CXX="$LD"
    21040 
    21041 ## CAVEAT EMPTOR:
    21042 ## There is no encapsulation within the following macros, do not change
    21043 ## the running order or otherwise move them around unless you know exactly
    21044 ## what you are doing...
    21045 
    21046 cat > conftest.$ac_ext <<EOF
     17985
     17986    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
     17987$as_echo "$ld_shlibs_CXX" >&6; }
     17988    test "$ld_shlibs_CXX" = no && can_build_shared=no
     17989
     17990    GCC_CXX="$GXX"
     17991    LD_CXX="$LD"
     17992
     17993    ## CAVEAT EMPTOR:
     17994    ## There is no encapsulation within the following macros, do not change
     17995    ## the running order or otherwise move them around unless you know exactly
     17996    ## what you are doing...
     17997    # Dependencies to place before and after the object being linked:
     17998predep_objects_CXX=
     17999postdep_objects_CXX=
     18000predeps_CXX=
     18001postdeps_CXX=
     18002compiler_lib_search_path_CXX=
     18003
     18004cat > conftest.$ac_ext <<_LT_EOF
    2104718005class Foo
    2104818006{
     
    2105218010  int a;
    2105318011};
    21054 EOF
    21055 
    21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     18012_LT_EOF
     18013
     18014
     18015_lt_libdeps_save_CFLAGS=$CFLAGS
     18016case "$CC $CFLAGS " in #(
     18017*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
     18018*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
     18019*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
     18020esac
     18021
     18022if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    2105718023  (eval $ac_compile) 2>&5
    2105818024  ac_status=$?
    21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21060   (exit $ac_status); }; then
     18025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     18026  test $ac_status = 0; }; then
    2106118027  # Parse the compiler output and extract the necessary
    2106218028  # objects, libraries and library flags.
     
    2106618032  pre_test_object_deps_done=no
    2106718033
    21068   # The `*' in the case matches for architectures that use `case' in
    21069   # $output_verbose_cmd can trigger glob expansion during the loop
    21070   # eval without this substitution.
    21071   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
    21072 
    21073   for p in `eval $output_verbose_link_cmd`; do
    21074     case $p in
     18034  for p in `eval "$output_verbose_link_cmd"`; do
     18035    case ${prev}${p} in
    2107518036
    2107618037    -L* | -R* | -l*)
    2107718038       # Some compilers place space between "-{L,R}" and the path.
    2107818039       # Remove the space.
    21079        if test $p = "-L" \
    21080           || test $p = "-R"; then
     18040       if test $p = "-L" ||
     18041          test $p = "-R"; then
    2108118042         prev=$p
    2108218043         continue
    21083        else
    21084          prev=
    2108518044       fi
    2108618045
     18046       # Expand the sysroot to ease extracting the directories later.
     18047       if test -z "$prev"; then
     18048         case $p in
     18049         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
     18050         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
     18051         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
     18052         esac
     18053       fi
     18054       case $p in
     18055       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
     18056       esac
    2108718057       if test "$pre_test_object_deps_done" = no; then
    21088          case $p in
    21089          -L* | -R*)
     18058         case ${prev} in
     18059         -L | -R)
    2109018060           # Internal compiler library paths should come after those
    2109118061           # provided the user.  The postdeps already come after the
     
    2110718077         fi
    2110818078       fi
     18079       prev=
    2110918080       ;;
    2111018081
     18082    *.lto.$objext) ;; # Ignore GCC LTO objects
    2111118083    *.$objext)
    2111218084       # This assumes that the test object file only shows up
     
    2114318115fi
    2114418116
    21145 $rm -f confest.$objext
     18117$RM -f confest.$objext
     18118CFLAGS=$_lt_libdeps_save_CFLAGS
    2114618119
    2114718120# PORTME: override above test on systems where it is broken
    2114818121case $host_os in
    21149 interix3*)
     18122interix[3-9]*)
    2115018123  # Interix 3.5 installs completely hosed .la files for C++, so rather than
    2115118124  # hack all around it, let's just trust "g++" to DTRT.
     
    2115518128  ;;
    2115618129
     18130linux*)
     18131  case `$CC -V 2>&1 | sed 5q` in
     18132  *Sun\ C*)
     18133    # Sun C++ 5.9
     18134
     18135    # The more standards-conforming stlport4 library is
     18136    # incompatible with the Cstd library. Avoid specifying
     18137    # it if it's in CXXFLAGS. Ignore libCrun as
     18138    # -library=stlport4 depends on it.
     18139    case " $CXX $CXXFLAGS " in
     18140    *" -library=stlport4 "*)
     18141      solaris_use_stlport4=yes
     18142      ;;
     18143    esac
     18144
     18145    if test "$solaris_use_stlport4" != yes; then
     18146      postdeps_CXX='-library=Cstd -library=Crun'
     18147    fi
     18148    ;;
     18149  esac
     18150  ;;
     18151
    2115718152solaris*)
    2115818153  case $cc_basename in
    21159   CC*)
     18154  CC* | sunCC*)
     18155    # The more standards-conforming stlport4 library is
     18156    # incompatible with the Cstd library. Avoid specifying
     18157    # it if it's in CXXFLAGS. Ignore libCrun as
     18158    # -library=stlport4 depends on it.
     18159    case " $CXX $CXXFLAGS " in
     18160    *" -library=stlport4 "*)
     18161      solaris_use_stlport4=yes
     18162      ;;
     18163    esac
     18164
    2116018165    # Adding this requires a known-good setup of shared libraries for
    2116118166    # Sun compiler versions before 5.6, else PIC objects from an old
    2116218167    # archive will be linked into the output, leading to subtle bugs.
    21163     postdeps_CXX='-lCstd -lCrun'
     18168    if test "$solaris_use_stlport4" != yes; then
     18169      postdeps_CXX='-library=Cstd -library=Crun'
     18170    fi
    2116418171    ;;
    2116518172  esac
     
    2117118178*" -lc "*) archive_cmds_need_lc_CXX=no ;;
    2117218179esac
    21173 
    21174 lt_prog_compiler_wl_CXX=
     18180 compiler_lib_search_dirs_CXX=
     18181if test -n "${compiler_lib_search_path_CXX}"; then
     18182 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
     18183fi
     18184
     18185
     18186
     18187
     18188
     18189
     18190
     18191
     18192
     18193
     18194
     18195
     18196
     18197
     18198
     18199
     18200
     18201
     18202
     18203
     18204
     18205
     18206
     18207
     18208
     18209
     18210
     18211
     18212
     18213
     18214
     18215    lt_prog_compiler_wl_CXX=
    2117518216lt_prog_compiler_pic_CXX=
    2117618217lt_prog_compiler_static_CXX=
    2117718218
    21178 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
    21179 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
    2118018219
    2118118220  # C++ specific cases for pic, static, wl, etc.
     
    2119218231      fi
    2119318232      ;;
     18233
    2119418234    amigaos*)
    21195       # FIXME: we need at least 68020 code to build shared libraries, but
    21196       # adding the `-m68020' flag to GCC prevents building anything better,
    21197       # like `-m68040'.
    21198       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
     18235      case $host_cpu in
     18236      powerpc)
     18237            # see comment about AmigaOS4 .so support
     18238            lt_prog_compiler_pic_CXX='-fPIC'
     18239        ;;
     18240      m68k)
     18241            # FIXME: we need at least 68020 code to build shared libraries, but
     18242            # adding the `-m68020' flag to GCC prevents building anything better,
     18243            # like `-m68040'.
     18244            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
     18245        ;;
     18246      esac
    2119918247      ;;
    21200     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     18248
     18249    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    2120118250      # PIC is the default for these OSes.
    2120218251      ;;
    21203     mingw* | os2* | pw32*)
     18252    mingw* | cygwin* | os2* | pw32* | cegcc*)
    2120418253      # This hack is so that the source file can tell whether it is being
    2120518254      # built for inclusion in a dll (and should export symbols for example).
     18255      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     18256      # (--disable-auto-import) libraries
    2120618257      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
    2120718258      ;;
     
    2121518266      lt_prog_compiler_pic_CXX=
    2121618267      ;;
    21217     interix3*)
     18268    haiku*)
     18269      # PIC is the default for Haiku.
     18270      # The "-static" flag exists, but is broken.
     18271      lt_prog_compiler_static_CXX=
     18272      ;;
     18273    interix[3-9]*)
    2121818274      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
    2121918275      # Instead, we relocate shared libraries at runtime.
     
    2122518281      ;;
    2122618282    hpux*)
    21227       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    21228       # not for PA HP-UX.
     18283      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
     18284      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
     18285      # sets the default TLS model and affects inlining.
    2122918286      case $host_cpu in
    21230       hppa*64*|ia64*)
     18287      hppa*64*)
    2123118288        ;;
    2123218289      *)
     
    2123418291        ;;
    2123518292      esac
     18293      ;;
     18294    *qnx* | *nto*)
     18295      # QNX uses GNU C++, but need to define -shared option too, otherwise
     18296      # it will coredump.
     18297      lt_prog_compiler_pic_CXX='-fPIC -shared'
    2123618298      ;;
    2123718299    *)
     
    2124118303  else
    2124218304    case $host_os in
    21243       aix4* | aix5*)
     18305      aix[4-9]*)
    2124418306        # All AIX code is PIC.
    2124518307        if test "$host_cpu" = ia64; then
     
    2125418316        cxch68*)
    2125518317          # Green Hills C++ Compiler
    21256           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
     18318          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
    2125718319          ;;
    2125818320        esac
    2125918321        ;;
    21260        darwin*)
    21261          # PIC is the default on this platform
    21262          # Common symbols not allowed in MH_DYLIB files
    21263          case $cc_basename in
    21264            xlc*)
    21265            lt_prog_compiler_pic_CXX='-qnocommon'
    21266            lt_prog_compiler_wl_CXX='-Wl,'
    21267            ;;
    21268          esac
    21269        ;;
     18322      mingw* | cygwin* | os2* | pw32* | cegcc*)
     18323        # This hack is so that the source file can tell whether it is being
     18324        # built for inclusion in a dll (and should export symbols for example).
     18325        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
     18326        ;;
    2127018327      dgux*)
    2127118328        case $cc_basename in
     
    2128118338        esac
    2128218339        ;;
    21283       freebsd* | kfreebsd*-gnu | dragonfly*)
     18340      freebsd* | dragonfly*)
    2128418341        # FreeBSD uses GNU C++
    2128518342        ;;
     
    2132418381        esac
    2132518382        ;;
    21326       linux*)
     18383      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
    2132718384        case $cc_basename in
    2132818385          KCC*)
     
    2133118388            lt_prog_compiler_pic_CXX='-fPIC'
    2133218389            ;;
    21333           icpc* | ecpc*)
    21334             # Intel C++
     18390          ecpc* )
     18391            # old Intel C++ for x86_64 which still supported -KPIC.
    2133518392            lt_prog_compiler_wl_CXX='-Wl,'
    2133618393            lt_prog_compiler_pic_CXX='-KPIC'
    2133718394            lt_prog_compiler_static_CXX='-static'
    2133818395            ;;
    21339           pgCC*)
    21340             # Portland Group C++ compiler.
     18396          icpc* )
     18397            # Intel C++, used to be incompatible with GCC.
     18398            # ICC 10 doesn't accept -KPIC any more.
     18399            lt_prog_compiler_wl_CXX='-Wl,'
     18400            lt_prog_compiler_pic_CXX='-fPIC'
     18401            lt_prog_compiler_static_CXX='-static'
     18402            ;;
     18403          pgCC* | pgcpp*)
     18404            # Portland Group C++ compiler
    2134118405            lt_prog_compiler_wl_CXX='-Wl,'
    2134218406            lt_prog_compiler_pic_CXX='-fpic'
     
    2135018414            lt_prog_compiler_static_CXX='-non_shared'
    2135118415            ;;
     18416          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
     18417            # IBM XL 8.0, 9.0 on PPC and BlueGene
     18418            lt_prog_compiler_wl_CXX='-Wl,'
     18419            lt_prog_compiler_pic_CXX='-qpic'
     18420            lt_prog_compiler_static_CXX='-qstaticlink'
     18421            ;;
    2135218422          *)
     18423            case `$CC -V 2>&1 | sed 5q` in
     18424            *Sun\ C*)
     18425              # Sun C++ 5.9
     18426              lt_prog_compiler_pic_CXX='-KPIC'
     18427              lt_prog_compiler_static_CXX='-Bstatic'
     18428              lt_prog_compiler_wl_CXX='-Qoption ld '
     18429              ;;
     18430            esac
    2135318431            ;;
    2135418432        esac
     
    2136718445        esac
    2136818446        ;;
    21369       netbsd*)
     18447      netbsd* | netbsdelf*-gnu)
    2137018448        ;;
     18449      *qnx* | *nto*)
     18450        # QNX uses GNU C++, but need to define -shared option too, otherwise
     18451        # it will coredump.
     18452        lt_prog_compiler_pic_CXX='-fPIC -shared'
     18453        ;;
    2137118454      osf3* | osf4* | osf5*)
    2137218455        case $cc_basename in
     
    2139418477      solaris*)
    2139518478        case $cc_basename in
    21396           CC*)
     18479          CC* | sunCC*)
    2139718480            # Sun C++ 4.2, 5.x and Centerline C++
    2139818481            lt_prog_compiler_pic_CXX='-KPIC'
     
    2142318506        esac
    2142418507        ;;
     18508      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     18509        case $cc_basename in
     18510          CC*)
     18511            lt_prog_compiler_wl_CXX='-Wl,'
     18512            lt_prog_compiler_pic_CXX='-KPIC'
     18513            lt_prog_compiler_static_CXX='-Bstatic'
     18514            ;;
     18515        esac
     18516        ;;
    2142518517      tandem*)
    2142618518        case $cc_basename in
     
    2143318525        esac
    2143418526        ;;
    21435       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
    21436         case $cc_basename in
    21437           CC*)
    21438             lt_prog_compiler_wl_CXX='-Wl,'
    21439             lt_prog_compiler_pic_CXX='-KPIC'
    21440             lt_prog_compiler_static_CXX='-Bstatic'
    21441             ;;
    21442         esac
    21443         ;;
    2144418527      vxworks*)
    2144518528        ;;
     
    2145018533  fi
    2145118534
    21452 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
    21453 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
     18535case $host_os in
     18536  # For platforms which do not support PIC, -DPIC is meaningless:
     18537  *djgpp*)
     18538    lt_prog_compiler_pic_CXX=
     18539    ;;
     18540  *)
     18541    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
     18542    ;;
     18543esac
     18544
     18545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
     18546$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
     18547if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
     18548  $as_echo_n "(cached) " >&6
     18549else
     18550  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
     18551fi
     18552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
     18553$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
     18554lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
    2145418555
    2145518556#
     
    2145718558#
    2145818559if test -n "$lt_prog_compiler_pic_CXX"; then
    21459 
    21460 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
    21461 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
    21462 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
    21463   echo $ECHO_N "(cached) $ECHO_C" >&6
    21464 else
    21465   lt_prog_compiler_pic_works_CXX=no
    21466   ac_outfile=conftest.$ac_objext
    21467    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     18560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
     18561$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
     18562if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
     18563  $as_echo_n "(cached) " >&6
     18564else
     18565  lt_cv_prog_compiler_pic_works_CXX=no
     18566   ac_outfile=conftest.$ac_objext
     18567   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    2146818568   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
    2146918569   # Insert the option either (1) after the last *FLAGS variable, or
     
    2147618576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    2147718577   -e 's:$: $lt_compiler_flag:'`
    21478    (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
     18578   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    2147918579   (eval "$lt_compile" 2>conftest.err)
    2148018580   ac_status=$?
    2148118581   cat conftest.err >&5
    21482    echo "$as_me:21482: \$? = $ac_status" >&5
     18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2148318583   if (exit $ac_status) && test -s "$ac_outfile"; then
    2148418584     # The compiler can only warn and ignore the option if not recognized
    2148518585     # So say no if there are warnings other than the usual output.
    21486      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     18586     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
    2148718587     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    2148818588     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    21489        lt_prog_compiler_pic_works_CXX=yes
     18589       lt_cv_prog_compiler_pic_works_CXX=yes
    2149018590     fi
    2149118591   fi
    21492    $rm conftest*
    21493 
    21494 fi
    21495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
    21496 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
    21497 
    21498 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
     18592   $RM conftest*
     18593
     18594fi
     18595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
     18596$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
     18597
     18598if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
    2149918599    case $lt_prog_compiler_pic_CXX in
    2150018600     "" | " "*) ;;
     
    2150718607
    2150818608fi
    21509 case $host_os in
    21510   # For platforms which do not support PIC, -DPIC is meaningless:
    21511   *djgpp*)
    21512     lt_prog_compiler_pic_CXX=
    21513     ;;
    21514   *)
    21515     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    21516     ;;
    21517 esac
     18609
     18610
     18611
     18612
    2151818613
    2151918614#
     
    2152118616#
    2152218617wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
    21523 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
    21524 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
    21525 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
    21526   echo $ECHO_N "(cached) $ECHO_C" >&6
    21527 else
    21528   lt_prog_compiler_static_works_CXX=no
     18618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
     18619$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
     18620if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
     18621  $as_echo_n "(cached) " >&6
     18622else
     18623  lt_cv_prog_compiler_static_works_CXX=no
    2152918624   save_LDFLAGS="$LDFLAGS"
    2153018625   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
    21531    printf "$lt_simple_link_test_code" > conftest.$ac_ext
     18626   echo "$lt_simple_link_test_code" > conftest.$ac_ext
    2153218627   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    2153318628     # The linker can only warn and ignore the option if not recognized
     
    2153618631       # Append any errors to the config.log.
    2153718632       cat conftest.err 1>&5
    21538        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     18633       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
    2153918634       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    2154018635       if diff conftest.exp conftest.er2 >/dev/null; then
    21541          lt_prog_compiler_static_works_CXX=yes
     18636         lt_cv_prog_compiler_static_works_CXX=yes
    2154218637       fi
    2154318638     else
    21544        lt_prog_compiler_static_works_CXX=yes
     18639       lt_cv_prog_compiler_static_works_CXX=yes
    2154518640     fi
    2154618641   fi
    21547    $rm conftest*
     18642   $RM -r conftest*
    2154818643   LDFLAGS="$save_LDFLAGS"
    2154918644
    2155018645fi
    21551 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
    21552 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
    21553 
    21554 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
     18646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
     18647$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
     18648
     18649if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
    2155518650    :
    2155618651else
     
    2155918654
    2156018655
    21561 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    21562 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
    21563 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
    21564   echo $ECHO_N "(cached) $ECHO_C" >&6
     18656
     18657
     18658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
     18659$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
     18660if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
     18661  $as_echo_n "(cached) " >&6
    2156518662else
    2156618663  lt_cv_prog_compiler_c_o_CXX=no
    21567    $rm -r conftest 2>/dev/null
     18664   $RM -r conftest 2>/dev/null
    2156818665   mkdir conftest
    2156918666   cd conftest
    2157018667   mkdir out
    21571    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     18668   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    2157218669
    2157318670   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    2158018677   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    2158118678   -e 's:$: $lt_compiler_flag:'`
    21582    (eval echo "\"\$as_me:21582: $lt_compile\"" >&5)
     18679   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    2158318680   (eval "$lt_compile" 2>out/conftest.err)
    2158418681   ac_status=$?
    2158518682   cat out/conftest.err >&5
    21586    echo "$as_me:21586: \$? = $ac_status" >&5
     18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2158718684   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    2158818685   then
    2158918686     # The compiler can only warn and ignore the option if not recognized
    2159018687     # So say no if there are warnings
    21591      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     18688     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
    2159218689     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    2159318690     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    2159618693   fi
    2159718694   chmod u+w . 2>&5
    21598    $rm conftest*
     18695   $RM conftest*
    2159918696   # SGI C++ compiler will create directory out/ii_files/ for
    2160018697   # template instantiation
    21601    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
    21602    $rm out/* && rmdir out
     18698   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
     18699   $RM out/* && rmdir out
    2160318700   cd ..
    21604    rmdir conftest
    21605    $rm conftest*
    21606 
    21607 fi
    21608 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
    21609 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
     18701   $RM -r conftest
     18702   $RM conftest*
     18703
     18704fi
     18705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
     18706$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
     18707
     18708
     18709
     18710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
     18711$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
     18712if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
     18713  $as_echo_n "(cached) " >&6
     18714else
     18715  lt_cv_prog_compiler_c_o_CXX=no
     18716   $RM -r conftest 2>/dev/null
     18717   mkdir conftest
     18718   cd conftest
     18719   mkdir out
     18720   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     18721
     18722   lt_compiler_flag="-o out/conftest2.$ac_objext"
     18723   # Insert the option either (1) after the last *FLAGS variable, or
     18724   # (2) before a word containing "conftest.", or (3) at the end.
     18725   # Note that $ac_compile itself does not contain backslashes and begins
     18726   # with a dollar sign (not a hyphen), so the echo should work correctly.
     18727   lt_compile=`echo "$ac_compile" | $SED \
     18728   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     18729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     18730   -e 's:$: $lt_compiler_flag:'`
     18731   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
     18732   (eval "$lt_compile" 2>out/conftest.err)
     18733   ac_status=$?
     18734   cat out/conftest.err >&5
     18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     18736   if (exit $ac_status) && test -s out/conftest2.$ac_objext
     18737   then
     18738     # The compiler can only warn and ignore the option if not recognized
     18739     # So say no if there are warnings
     18740     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     18741     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     18742     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     18743       lt_cv_prog_compiler_c_o_CXX=yes
     18744     fi
     18745   fi
     18746   chmod u+w . 2>&5
     18747   $RM conftest*
     18748   # SGI C++ compiler will create directory out/ii_files/ for
     18749   # template instantiation
     18750   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
     18751   $RM out/* && rmdir out
     18752   cd ..
     18753   $RM -r conftest
     18754   $RM conftest*
     18755
     18756fi
     18757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
     18758$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
     18759
     18760
    2161018761
    2161118762
     
    2161318764if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
    2161418765  # do not overwrite the value of need_locks provided by the user
    21615   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
    21616 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
     18766  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
     18767$as_echo_n "checking if we can lock with hard links... " >&6; }
    2161718768  hard_links=yes
    21618   $rm conftest*
     18769  $RM conftest*
    2161918770  ln conftest.a conftest.b 2>/dev/null && hard_links=no
    2162018771  touch conftest.a
    2162118772  ln conftest.a conftest.b 2>&5 || hard_links=no
    2162218773  ln conftest.a conftest.b 2>/dev/null && hard_links=no
    21623   echo "$as_me:$LINENO: result: $hard_links" >&5
    21624 echo "${ECHO_T}$hard_links" >&6
     18774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
     18775$as_echo "$hard_links" >&6; }
    2162518776  if test "$hard_links" = no; then
    21626     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
    21627 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
     18777    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
     18778$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    2162818779    need_locks=warn
    2162918780  fi
     
    2163218783fi
    2163318784
    21634 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
    21635 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
     18785
     18786
     18787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
     18788$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    2163618789
    2163718790  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     18791  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
    2163818792  case $host_os in
    21639   aix4* | aix5*)
     18793  aix[4-9]*)
    2164018794    # If we're using GNU nm, then we don't want the "-C" option.
    2164118795    # -C means demangle to AIX nm, but means don't demangle with GNU nm
    21642     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
    21643       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     18796    # Also, AIX nm treats weak defined symbols like other global defined
     18797    # symbols, whereas GNU nm marks them as "W".
     18798    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
     18799      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    2164418800    else
    21645       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     18801      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    2164618802    fi
    2164718803    ;;
    2164818804  pw32*)
    2164918805    export_symbols_cmds_CXX="$ltdll_cmds"
    21650   ;;
    21651   cygwin* | mingw*)
    21652     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
    21653   ;;
     18806    ;;
     18807  cygwin* | mingw* | cegcc*)
     18808    case $cc_basename in
     18809    cl*)
     18810      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
     18811      ;;
     18812    *)
     18813      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
     18814      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
     18815      ;;
     18816    esac
     18817    ;;
     18818  linux* | k*bsd*-gnu | gnu*)
     18819    link_all_deplibs_CXX=no
     18820    ;;
    2165418821  *)
    2165518822    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    21656   ;;
     18823    ;;
    2165718824  esac
    2165818825
    21659 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
    21660 echo "${ECHO_T}$ld_shlibs_CXX" >&6
     18826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
     18827$as_echo "$ld_shlibs_CXX" >&6; }
    2166118828test "$ld_shlibs_CXX" = no && can_build_shared=no
     18829
     18830with_gnu_ld_CXX=$with_gnu_ld
     18831
     18832
     18833
     18834
     18835
    2166218836
    2166318837#
     
    2167818852      # systems, -lgcc has to come before -lc. If gcc already passes -lc
    2167918853      # to ld, don't add -lc before -lgcc.
    21680       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
    21681 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    21682       $rm conftest*
    21683       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    21684 
    21685       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     18854      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
     18855$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
     18856if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
     18857  $as_echo_n "(cached) " >&6
     18858else
     18859  $RM conftest*
     18860        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     18861
     18862        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    2168618863  (eval $ac_compile) 2>&5
    2168718864  ac_status=$?
    21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21689   (exit $ac_status); } 2>conftest.err; then
    21690         soname=conftest
    21691         lib=conftest
    21692         libobjs=conftest.$ac_objext
    21693         deplibs=
    21694         wl=$lt_prog_compiler_wl_CXX
    21695         pic_flag=$lt_prog_compiler_pic_CXX
    21696         compiler_flags=-v
    21697         linker_flags=-v
    21698         verstring=
    21699         output_objdir=.
    21700         libname=conftest
    21701         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
    21702         allow_undefined_flag_CXX=
    21703         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
    21704   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
     18865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     18866  test $ac_status = 0; } 2>conftest.err; then
     18867          soname=conftest
     18868          lib=conftest
     18869          libobjs=conftest.$ac_objext
     18870          deplibs=
     18871          wl=$lt_prog_compiler_wl_CXX
     18872          pic_flag=$lt_prog_compiler_pic_CXX
     18873          compiler_flags=-v
     18874          linker_flags=-v
     18875          verstring=
     18876          output_objdir=.
     18877          libname=conftest
     18878          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
     18879          allow_undefined_flag_CXX=
     18880          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
     18881  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
    2170518882  ac_status=$?
    21706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21707   (exit $ac_status); }
    21708         then
    21709           archive_cmds_need_lc_CXX=no
    21710         else
    21711           archive_cmds_need_lc_CXX=yes
    21712         fi
    21713         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
    21714       else
    21715         cat conftest.err 1>&5
    21716       fi
    21717       $rm conftest*
    21718       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
    21719 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
     18883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     18884  test $ac_status = 0; }
     18885          then
     18886            lt_cv_archive_cmds_need_lc_CXX=no
     18887          else
     18888            lt_cv_archive_cmds_need_lc_CXX=yes
     18889          fi
     18890          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
     18891        else
     18892          cat conftest.err 1>&5
     18893        fi
     18894        $RM conftest*
     18895
     18896fi
     18897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
     18898$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
     18899      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
    2172018900      ;;
    2172118901    esac
     
    2172418904esac
    2172518905
    21726 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
    21727 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
     18906
     18907
     18908
     18909
     18910
     18911
     18912
     18913
     18914
     18915
     18916
     18917
     18918
     18919
     18920
     18921
     18922
     18923
     18924
     18925
     18926
     18927
     18928
     18929
     18930
     18931
     18932
     18933
     18934
     18935
     18936
     18937
     18938
     18939
     18940
     18941
     18942
     18943
     18944
     18945
     18946
     18947
     18948
     18949
     18950
     18951
     18952
     18953
     18954
     18955
     18956
     18957
     18958
     18959
     18960
     18961
     18962
     18963
     18964
     18965
     18966
     18967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
     18968$as_echo_n "checking dynamic linker characteristics... " >&6; }
     18969
    2172818970library_names_spec=
    2172918971libname_spec='lib$name'
     
    2173918981dynamic_linker="$host_os ld.so"
    2174018982sys_lib_dlsearch_path_spec="/lib /usr/lib"
    21741 if test "$GCC" = yes; then
    21742   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    21743   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    21744     # if the path contains ";" then we assume it to be the separator
    21745     # otherwise default to the standard path separator (i.e. ":") - it is
    21746     # assumed that no part of a normal pathname contains ";" but that should
    21747     # okay in the real world where ";" in dirpaths is itself problematic.
    21748     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    21749   else
    21750     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    21751   fi
    21752 else
    21753   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    21754 fi
    2175518983need_lib_prefix=unknown
    2175618984hardcode_into_libs=no
     
    2176218990case $host_os in
    2176318991aix3*)
    21764   version_type=linux
     18992  version_type=linux # correct to gnu/linux during the next big refactor
    2176518993  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
    2176618994  shlibpath_var=LIBPATH
     
    2177018998  ;;
    2177118999
    21772 aix4* | aix5*)
    21773   version_type=linux
     19000aix[4-9]*)
     19001  version_type=linux # correct to gnu/linux during the next big refactor
    2177419002  need_lib_prefix=no
    2177519003  need_version=no
     
    2178919017      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    2179019018           echo ' yes '
    21791            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
     19019           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
    2179219020        :
    2179319021      else
     
    2181519043
    2181619044amigaos*)
    21817   library_names_spec='$libname.ixlibrary $libname.a'
    21818   # Create ${libname}_ixlibrary.a entries in /sys/libs.
    21819   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
     19045  case $host_cpu in
     19046  powerpc)
     19047    # Since July 2007 AmigaOS4 officially supports .so libraries.
     19048    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
     19049    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     19050    ;;
     19051  m68k)
     19052    library_names_spec='$libname.ixlibrary $libname.a'
     19053    # Create ${libname}_ixlibrary.a entries in /sys/libs.
     19054    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'
     19055    ;;
     19056  esac
    2182019057  ;;
    2182119058
     
    2182719064
    2182819065bsdi[45]*)
    21829   version_type=linux
     19066  version_type=linux # correct to gnu/linux during the next big refactor
    2183019067  need_version=no
    2183119068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     
    2184019077  ;;
    2184119078
    21842 cygwin* | mingw* | pw32*)
     19079cygwin* | mingw* | pw32* | cegcc*)
    2184319080  version_type=windows
    2184419081  shrext_cmds=".dll"
     
    2184619083  need_lib_prefix=no
    2184719084
    21848   case $GCC,$host_os in
    21849   yes,cygwin* | yes,mingw* | yes,pw32*)
     19085  case $GCC,$cc_basename in
     19086  yes,*)
     19087    # gcc
    2185019088    library_names_spec='$libname.dll.a'
    2185119089    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    2185219090    postinstall_cmds='base_file=`basename \${file}`~
    21853       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
     19091      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
    2185419092      dldir=$destdir/`dirname \$dlpath`~
    2185519093      test -d \$dldir || mkdir -p \$dldir~
    2185619094      $install_prog $dir/$dlname \$dldir/$dlname~
    21857       chmod a+x \$dldir/$dlname'
     19095      chmod a+x \$dldir/$dlname~
     19096      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
     19097        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
     19098      fi'
    2185819099    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
    2185919100      dlpath=$dir/\$dldll~
    21860        $rm \$dlpath'
     19101       $RM \$dlpath'
    2186119102    shlibpath_overrides_runpath=yes
    2186219103
     
    2186519106      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    2186619107      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    21867       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
     19108
    2186819109      ;;
    21869     mingw*)
     19110    mingw* | cegcc*)
    2187019111      # MinGW DLLs use traditional 'lib' prefix
    2187119112      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    21872       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    21873       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
    21874         # It is most probably a Windows format PATH printed by
    21875         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    21876         # path with ; separators, and with drive letters. We can handle the
    21877         # drive letters (cygwin fileutils understands them), so leave them,
    21878         # especially as we might pass files found there to a mingw objdump,
    21879         # which wouldn't understand a cygwinified path. Ahh.
    21880         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    21881       else
    21882         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    21883       fi
    2188419113      ;;
    2188519114    pw32*)
     
    2188819117      ;;
    2188919118    esac
     19119    dynamic_linker='Win32 ld.exe'
    2189019120    ;;
    2189119121
    21892   linux*)
    21893     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
    21894       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    21895       supports_anon_versioning=no
    21896       case `$LD -v 2>/dev/null` in
    21897         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
    21898         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    21899         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    21900         *\ 2.11.*) ;; # other 2.11 versions
    21901         *) supports_anon_versioning=yes ;;
    21902       esac
    21903       if test $supports_anon_versioning = yes; then
    21904         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
    21905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    21906 $echo "local: *; };" >> $output_objdir/$libname.ver~
    21907         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     19122  *,cl*)
     19123    # Native MSVC
     19124    libname_spec='$name'
     19125    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     19126    library_names_spec='${libname}.dll.lib'
     19127
     19128    case $build_os in
     19129    mingw*)
     19130      sys_lib_search_path_spec=
     19131      lt_save_ifs=$IFS
     19132      IFS=';'
     19133      for lt_path in $LIB
     19134      do
     19135        IFS=$lt_save_ifs
     19136        # Let DOS variable expansion print the short 8.3 style file name.
     19137        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
     19138        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
     19139      done
     19140      IFS=$lt_save_ifs
     19141      # Convert to MSYS style.
     19142      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
     19143      ;;
     19144    cygwin*)
     19145      # Convert to unix form, then to dos form, then back to unix form
     19146      # but this time dos style (no spaces!) so that the unix form looks
     19147      # like /cygdrive/c/PROGRA~1:/cygdr...
     19148      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
     19149      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
     19150      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     19151      ;;
     19152    *)
     19153      sys_lib_search_path_spec="$LIB"
     19154      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
     19155        # It is most probably a Windows format PATH.
     19156        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    2190819157      else
    21909         $archive_expsym_cmds="$archive_cmds"
     19158        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
    2191019159      fi
    21911     else
    21912       ld_shlibs=no
    21913     fi
     19160      # FIXME: find the short name or the path components, as spaces are
     19161      # common. (e.g. "Program Files" -> "PROGRA~1")
     19162      ;;
     19163    esac
     19164
     19165    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     19166    postinstall_cmds='base_file=`basename \${file}`~
     19167      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
     19168      dldir=$destdir/`dirname \$dlpath`~
     19169      test -d \$dldir || mkdir -p \$dldir~
     19170      $install_prog $dir/$dlname \$dldir/$dlname'
     19171    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     19172      dlpath=$dir/\$dldll~
     19173       $RM \$dlpath'
     19174    shlibpath_overrides_runpath=yes
     19175    dynamic_linker='Win32 link.exe'
    2191419176    ;;
    2191519177
    2191619178  *)
     19179    # Assume MSVC wrapper
    2191719180    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
     19181    dynamic_linker='Win32 ld.exe'
    2191819182    ;;
    2191919183  esac
    21920   dynamic_linker='Win32 ld.exe'
    2192119184  # FIXME: first we should search . and the directory the executable is in
    2192219185  shlibpath_var=PATH
     
    2192819191  need_lib_prefix=no
    2192919192  need_version=no
    21930   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
     19193  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
    2193119194  soname_spec='${libname}${release}${major}$shared_ext'
    2193219195  shlibpath_overrides_runpath=yes
    2193319196  shlibpath_var=DYLD_LIBRARY_PATH
    2193419197  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    21935   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    21936   if test "$GCC" = yes; then
    21937     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
    21938   else
    21939     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    21940   fi
     19198
    2194119199  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    2194219200  ;;
    2194319201
    2194419202dgux*)
    21945   version_type=linux
     19203  version_type=linux # correct to gnu/linux during the next big refactor
    2194619204  need_lib_prefix=no
    2194719205  need_version=no
     
    2194919207  soname_spec='${libname}${release}${shared_ext}$major'
    2195019208  shlibpath_var=LD_LIBRARY_PATH
    21951   ;;
    21952 
    21953 freebsd1*)
    21954   dynamic_linker=no
    21955   ;;
    21956 
    21957 kfreebsd*-gnu)
    21958   version_type=linux
    21959   need_lib_prefix=no
    21960   need_version=no
    21961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    21962   soname_spec='${libname}${release}${shared_ext}$major'
    21963   shlibpath_var=LD_LIBRARY_PATH
    21964   shlibpath_overrides_runpath=no
    21965   hardcode_into_libs=yes
    21966   dynamic_linker='GNU ld.so'
    2196719209  ;;
    2196819210
     
    2197419216  else
    2197519217    case $host_os in
    21976     freebsd[123]*) objformat=aout ;;
     19218    freebsd[23].*) objformat=aout ;;
    2197719219    *) objformat=elf ;;
    2197819220    esac
    2197919221  fi
    21980   # Handle Gentoo/FreeBSD as it was Linux
    21981   case $host_vendor in
    21982     gentoo)
    21983       version_type=linux ;;
    21984     *)
    21985       version_type=freebsd-$objformat ;;
    21986   esac
    21987 
     19222  version_type=freebsd-$objformat
    2198819223  case $version_type in
    2198919224    freebsd-elf*)
     
    2199619231      need_version=yes
    2199719232      ;;
    21998     linux)
    21999       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    22000       soname_spec='${libname}${release}${shared_ext}$major'
    22001       need_lib_prefix=no
    22002       need_version=no
    22003       ;;
    2200419233  esac
    2200519234  shlibpath_var=LD_LIBRARY_PATH
    2200619235  case $host_os in
    22007   freebsd2*)
     19236  freebsd2.*)
    2200819237    shlibpath_overrides_runpath=yes
    2200919238    ;;
     
    2201719246    hardcode_into_libs=yes
    2201819247    ;;
    22019   freebsd*) # from 4.6 on
     19248  *) # from 4.6 on, and DragonFly
    2202019249    shlibpath_overrides_runpath=yes
    2202119250    hardcode_into_libs=yes
     
    2202419253  ;;
    2202519254
    22026 gnu*)
    22027   version_type=linux
     19255haiku*)
     19256  version_type=linux # correct to gnu/linux during the next big refactor
    2202819257  need_lib_prefix=no
    2202919258  need_version=no
     19259  dynamic_linker="$host_os runtime_loader"
    2203019260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    2203119261  soname_spec='${libname}${release}${shared_ext}$major'
    22032   shlibpath_var=LD_LIBRARY_PATH
     19262  shlibpath_var=LIBRARY_PATH
     19263  shlibpath_overrides_runpath=yes
     19264  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
    2203319265  hardcode_into_libs=yes
    2203419266  ;;
     
    2205619288    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    2205719289    ;;
    22058    hppa*64*)
    22059      shrext_cmds='.sl'
    22060      hardcode_into_libs=yes
    22061      dynamic_linker="$host_os dld.sl"
    22062      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    22063      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    22064      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    22065      soname_spec='${libname}${release}${shared_ext}$major'
    22066      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    22067      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    22068      ;;
    22069    *)
     19290  hppa*64*)
     19291    shrext_cmds='.sl'
     19292    hardcode_into_libs=yes
     19293    dynamic_linker="$host_os dld.sl"
     19294    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     19295    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     19296    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     19297    soname_spec='${libname}${release}${shared_ext}$major'
     19298    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     19299    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     19300    ;;
     19301  *)
    2207019302    shrext_cmds='.sl'
    2207119303    dynamic_linker="$host_os dld.sl"
     
    2207619308    ;;
    2207719309  esac
    22078   # HP-UX runs *really* slowly unless shared libraries are mode 555.
     19310  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
    2207919311  postinstall_cmds='chmod 555 $lib'
     19312  # or fails outright, so override atomically:
     19313  install_override_mode=555
    2208019314  ;;
    2208119315
    22082 interix3*)
    22083   version_type=linux
     19316interix[3-9]*)
     19317  version_type=linux # correct to gnu/linux during the next big refactor
    2208419318  need_lib_prefix=no
    2208519319  need_version=no
     
    2209719331    *)
    2209819332        if test "$lt_cv_prog_gnu_ld" = yes; then
    22099                 version_type=linux
     19333                version_type=linux # correct to gnu/linux during the next big refactor
    2210019334        else
    2210119335                version_type=irix
     
    2213419368  ;;
    2213519369
    22136 # This must be Linux ELF.
    22137 linux*)
    22138   version_type=linux
     19370# This must be glibc/ELF.
     19371linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
     19372  version_type=linux # correct to gnu/linux during the next big refactor
    2213919373  need_lib_prefix=no
    2214019374  need_version=no
     
    2214419378  shlibpath_var=LD_LIBRARY_PATH
    2214519379  shlibpath_overrides_runpath=no
     19380
     19381  # Some binutils ld are patched to set DT_RUNPATH
     19382  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
     19383  $as_echo_n "(cached) " >&6
     19384else
     19385  lt_cv_shlibpath_overrides_runpath=no
     19386    save_LDFLAGS=$LDFLAGS
     19387    save_libdir=$libdir
     19388    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
     19389         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
     19390    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     19391/* end confdefs.h.  */
     19392
     19393int
     19394main ()
     19395{
     19396
     19397  ;
     19398  return 0;
     19399}
     19400_ACEOF
     19401if ac_fn_cxx_try_link "$LINENO"; then :
     19402  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
     19403  lt_cv_shlibpath_overrides_runpath=yes
     19404fi
     19405fi
     19406rm -f core conftest.err conftest.$ac_objext \
     19407    conftest$ac_exeext conftest.$ac_ext
     19408    LDFLAGS=$save_LDFLAGS
     19409    libdir=$save_libdir
     19410
     19411fi
     19412
     19413  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
     19414
    2214619415  # This implies no fast_install, which is unacceptable.
    2214719416  # Some rework will be needed to allow for fast_install
     
    2215119420  # Append ld.so.conf contents to the search path
    2215219421  if test -f /etc/ld.so.conf; then
    22153     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     19422    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' ' '`
    2215419423    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    2215519424  fi
     
    2216419433  ;;
    2216519434
    22166 knetbsd*-gnu)
     19435netbsdelf*-gnu)
    2216719436  version_type=linux
    2216819437  need_lib_prefix=no
     
    2217319442  shlibpath_overrides_runpath=no
    2217419443  hardcode_into_libs=yes
    22175   dynamic_linker='GNU ld.so'
     19444  dynamic_linker='NetBSD ld.elf_so'
    2217619445  ;;
    2217719446
     
    2218019449  need_lib_prefix=no
    2218119450  need_version=no
    22182   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     19451  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    2218319452    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    2218419453    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     
    2219519464
    2219619465newsos6)
    22197   version_type=linux
     19466  version_type=linux # correct to gnu/linux during the next big refactor
    2219819467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2219919468  shlibpath_var=LD_LIBRARY_PATH
     
    2220119470  ;;
    2220219471
    22203 nto-qnx*)
    22204   version_type=linux
     19472*nto* | *qnx*)
     19473  version_type=qnx
    2220519474  need_lib_prefix=no
    2220619475  need_version=no
     
    2220819477  soname_spec='${libname}${release}${shared_ext}$major'
    2220919478  shlibpath_var=LD_LIBRARY_PATH
    22210   shlibpath_overrides_runpath=yes
     19479  shlibpath_overrides_runpath=no
     19480  hardcode_into_libs=yes
     19481  dynamic_linker='ldqnx.so'
    2221119482  ;;
    2221219483
     
    2221719488  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
    2221819489  case $host_os in
    22219     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    22220     *)                         need_version=no  ;;
     19490    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
     19491    *)                          need_version=no  ;;
    2222119492  esac
    2222219493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    2222319494  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    2222419495  shlibpath_var=LD_LIBRARY_PATH
    22225   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     19496  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    2222619497    case $host_os in
    2222719498      openbsd2.[89] | openbsd2.[89].*)
     
    2225719528  ;;
    2225819529
     19530rdos*)
     19531  dynamic_linker=no
     19532  ;;
     19533
    2225919534solaris*)
    22260   version_type=linux
     19535  version_type=linux # correct to gnu/linux during the next big refactor
    2226119536  need_lib_prefix=no
    2226219537  need_version=no
     
    2228319558
    2228419559sysv4 | sysv4.3*)
    22285   version_type=linux
     19560  version_type=linux # correct to gnu/linux during the next big refactor
    2228619561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2228719562  soname_spec='${libname}${release}${shared_ext}$major'
     
    2229119566      shlibpath_overrides_runpath=no
    2229219567      need_lib_prefix=no
    22293       export_dynamic_flag_spec='${wl}-Blargedynsym'
    2229419568      runpath_var=LD_RUN_PATH
    2229519569      ;;
     
    2230819582sysv4*MP*)
    2230919583  if test -d /usr/nec ;then
    22310     version_type=linux
     19584    version_type=linux # correct to gnu/linux during the next big refactor
    2231119585    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    2231219586    soname_spec='$libname${shared_ext}.$major'
     
    2232219596  soname_spec='${libname}${release}${shared_ext}$major'
    2232319597  shlibpath_var=LD_LIBRARY_PATH
     19598  shlibpath_overrides_runpath=yes
    2232419599  hardcode_into_libs=yes
    2232519600  if test "$with_gnu_ld" = yes; then
    2232619601    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    22327     shlibpath_overrides_runpath=no
    2232819602  else
    2232919603    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    22330     shlibpath_overrides_runpath=yes
    2233119604    case $host_os in
    2233219605      sco3.2v5*)
     
    2233819611  ;;
    2233919612
     19613tpf*)
     19614  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
     19615  version_type=linux # correct to gnu/linux during the next big refactor
     19616  need_lib_prefix=no
     19617  need_version=no
     19618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     19619  shlibpath_var=LD_LIBRARY_PATH
     19620  shlibpath_overrides_runpath=no
     19621  hardcode_into_libs=yes
     19622  ;;
     19623
    2234019624uts4*)
    22341   version_type=linux
     19625  version_type=linux # correct to gnu/linux during the next big refactor
    2234219626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2234319627  soname_spec='${libname}${release}${shared_ext}$major'
     
    2234919633  ;;
    2235019634esac
    22351 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
    22352 echo "${ECHO_T}$dynamic_linker" >&6
     19635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
     19636$as_echo "$dynamic_linker" >&6; }
    2235319637test "$dynamic_linker" = no && can_build_shared=no
    2235419638
     
    2235819642fi
    2235919643
    22360 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
    22361 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
     19644if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
     19645  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
     19646fi
     19647if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
     19648  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
     19649fi
     19650
     19651
     19652
     19653
     19654
     19655
     19656
     19657
     19658
     19659
     19660
     19661
     19662
     19663
     19664
     19665
     19666
     19667
     19668
     19669
     19670
     19671
     19672
     19673
     19674
     19675
     19676
     19677
     19678
     19679
     19680
     19681
     19682
     19683
     19684
     19685
     19686
     19687
     19688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
     19689$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
    2236219690hardcode_action_CXX=
    22363 if test -n "$hardcode_libdir_flag_spec_CXX" || \
    22364    test -n "$runpath_var_CXX" || \
     19691if test -n "$hardcode_libdir_flag_spec_CXX" ||
     19692   test -n "$runpath_var_CXX" ||
    2236519693   test "X$hardcode_automatic_CXX" = "Xyes" ; then
    2236619694
    22367   # We can hardcode non-existant directories.
     19695  # We can hardcode non-existent directories.
    2236819696  if test "$hardcode_direct_CXX" != no &&
    2236919697     # If the only mechanism to avoid hardcoding is shlibpath_var, we
    2237019698     # have to relink, otherwise we might link with an installed library
    2237119699     # when we should be linking with a yet-to-be-installed one
    22372      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
     19700     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
    2237319701     test "$hardcode_minus_L_CXX" != no; then
    2237419702    # Linking always hardcodes the temporary library directory.
     
    2238319711  hardcode_action_CXX=unsupported
    2238419712fi
    22385 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
    22386 echo "${ECHO_T}$hardcode_action_CXX" >&6
    22387 
    22388 if test "$hardcode_action_CXX" = relink; then
     19713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
     19714$as_echo "$hardcode_action_CXX" >&6; }
     19715
     19716if test "$hardcode_action_CXX" = relink ||
     19717   test "$inherit_rpath_CXX" = yes; then
    2238919718  # Fast installation is not supported
    2239019719  enable_fast_install=no
     
    2239619725
    2239719726
    22398 # The else clause should only fire when bootstrapping the
    22399 # libtool distribution, otherwise you forgot to ship ltmain.sh
    22400 # with your package, and you will get complaints that there are
    22401 # no rules to generate ltmain.sh.
    22402 if test -f "$ltmain"; then
    22403   # See if we are running on zsh, and set the options which allow our commands through
    22404   # without removal of \ escapes.
    22405   if test -n "${ZSH_VERSION+set}" ; then
    22406     setopt NO_GLOB_SUBST
    22407   fi
    22408   # Now quote all the things that may contain metacharacters while being
    22409   # careful not to overquote the AC_SUBSTed values.  We take copies of the
    22410   # variables and quote the copies for generation of the libtool script.
    22411   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    22412     SED SHELL STRIP \
    22413     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    22414     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    22415     deplibs_check_method reload_flag reload_cmds need_locks \
    22416     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    22417     lt_cv_sys_global_symbol_to_c_name_address \
    22418     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    22419     old_postinstall_cmds old_postuninstall_cmds \
    22420     compiler_CXX \
    22421     CC_CXX \
    22422     LD_CXX \
    22423     lt_prog_compiler_wl_CXX \
    22424     lt_prog_compiler_pic_CXX \
    22425     lt_prog_compiler_static_CXX \
    22426     lt_prog_compiler_no_builtin_flag_CXX \
    22427     export_dynamic_flag_spec_CXX \
    22428     thread_safe_flag_spec_CXX \
    22429     whole_archive_flag_spec_CXX \
    22430     enable_shared_with_static_runtimes_CXX \
    22431     old_archive_cmds_CXX \
    22432     old_archive_from_new_cmds_CXX \
    22433     predep_objects_CXX \
    22434     postdep_objects_CXX \
    22435     predeps_CXX \
    22436     postdeps_CXX \
    22437     compiler_lib_search_path_CXX \
    22438     archive_cmds_CXX \
    22439     archive_expsym_cmds_CXX \
    22440     postinstall_cmds_CXX \
    22441     postuninstall_cmds_CXX \
    22442     old_archive_from_expsyms_cmds_CXX \
    22443     allow_undefined_flag_CXX \
    22444     no_undefined_flag_CXX \
    22445     export_symbols_cmds_CXX \
    22446     hardcode_libdir_flag_spec_CXX \
    22447     hardcode_libdir_flag_spec_ld_CXX \
    22448     hardcode_libdir_separator_CXX \
    22449     hardcode_automatic_CXX \
    22450     module_cmds_CXX \
    22451     module_expsym_cmds_CXX \
    22452     lt_cv_prog_compiler_c_o_CXX \
    22453     exclude_expsyms_CXX \
    22454     include_expsyms_CXX; do
    22455 
    22456     case $var in
    22457     old_archive_cmds_CXX | \
    22458     old_archive_from_new_cmds_CXX | \
    22459     archive_cmds_CXX | \
    22460     archive_expsym_cmds_CXX | \
    22461     module_cmds_CXX | \
    22462     module_expsym_cmds_CXX | \
    22463     old_archive_from_expsyms_cmds_CXX | \
    22464     export_symbols_cmds_CXX | \
    22465     extract_expsyms_cmds | reload_cmds | finish_cmds | \
    22466     postinstall_cmds | postuninstall_cmds | \
    22467     old_postinstall_cmds | old_postuninstall_cmds | \
    22468     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    22469       # Double-quote double-evaled strings.
    22470       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
    22471       ;;
    22472     *)
    22473       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
    22474       ;;
    22475     esac
    22476   done
    22477 
    22478   case $lt_echo in
    22479   *'\$0 --fallback-echo"')
    22480     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    22481     ;;
    22482   esac
    22483 
    22484 cfgfile="$ofile"
    22485 
    22486   cat <<__EOF__ >> "$cfgfile"
    22487 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
    22488 
    22489 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    22490 
    22491 # Shell to use when invoking shell scripts.
    22492 SHELL=$lt_SHELL
    22493 
    22494 # Whether or not to build shared libraries.
    22495 build_libtool_libs=$enable_shared
    22496 
    22497 # Whether or not to build static libraries.
    22498 build_old_libs=$enable_static
    22499 
    22500 # Whether or not to add -lc for building shared libraries.
    22501 build_libtool_need_lc=$archive_cmds_need_lc_CXX
    22502 
    22503 # Whether or not to disallow shared libs when runtime libs are static
    22504 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
    22505 
    22506 # Whether or not to optimize for fast installation.
    22507 fast_install=$enable_fast_install
    22508 
    22509 # The host system.
    22510 host_alias=$host_alias
    22511 host=$host
    22512 host_os=$host_os
    22513 
    22514 # The build system.
    22515 build_alias=$build_alias
    22516 build=$build
    22517 build_os=$build_os
    22518 
    22519 # An echo program that does not interpret backslashes.
    22520 echo=$lt_echo
    22521 
    22522 # The archiver.
    22523 AR=$lt_AR
    22524 AR_FLAGS=$lt_AR_FLAGS
    22525 
    22526 # A C compiler.
    22527 LTCC=$lt_LTCC
    22528 
    22529 # LTCC compiler flags.
    22530 LTCFLAGS=$lt_LTCFLAGS
    22531 
    22532 # A language-specific compiler.
    22533 CC=$lt_compiler_CXX
    22534 
    22535 # Is the compiler the GNU C compiler?
    22536 with_gcc=$GCC_CXX
    22537 
    22538 # An ERE matcher.
    22539 EGREP=$lt_EGREP
    22540 
    22541 # The linker used to build libraries.
    22542 LD=$lt_LD_CXX
    22543 
    22544 # Whether we need hard or soft links.
    22545 LN_S=$lt_LN_S
    22546 
    22547 # A BSD-compatible nm program.
    22548 NM=$lt_NM
    22549 
    22550 # A symbol stripping program
    22551 STRIP=$lt_STRIP
    22552 
    22553 # Used to examine libraries when file_magic_cmd begins "file"
    22554 MAGIC_CMD=$MAGIC_CMD
    22555 
    22556 # Used on cygwin: DLL creation program.
    22557 DLLTOOL="$DLLTOOL"
    22558 
    22559 # Used on cygwin: object dumper.
    22560 OBJDUMP="$OBJDUMP"
    22561 
    22562 # Used on cygwin: assembler.
    22563 AS="$AS"
    22564 
    22565 # The name of the directory that contains temporary libtool files.
    22566 objdir=$objdir
    22567 
    22568 # How to create reloadable object files.
    22569 reload_flag=$lt_reload_flag
    22570 reload_cmds=$lt_reload_cmds
    22571 
    22572 # How to pass a linker flag through the compiler.
    22573 wl=$lt_lt_prog_compiler_wl_CXX
    22574 
    22575 # Object file suffix (normally "o").
    22576 objext="$ac_objext"
    22577 
    22578 # Old archive suffix (normally "a").
    22579 libext="$libext"
    22580 
    22581 # Shared library suffix (normally ".so").
    22582 shrext_cmds='$shrext_cmds'
    22583 
    22584 # Executable file suffix (normally "").
    22585 exeext="$exeext"
    22586 
    22587 # Additional compiler flags for building library objects.
    22588 pic_flag=$lt_lt_prog_compiler_pic_CXX
    22589 pic_mode=$pic_mode
    22590 
    22591 # What is the maximum length of a command?
    22592 max_cmd_len=$lt_cv_sys_max_cmd_len
    22593 
    22594 # Does compiler simultaneously support -c and -o options?
    22595 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
    22596 
    22597 # Must we lock files when doing compilation?
    22598 need_locks=$lt_need_locks
    22599 
    22600 # Do we need the lib prefix for modules?
    22601 need_lib_prefix=$need_lib_prefix
    22602 
    22603 # Do we need a version for libraries?
    22604 need_version=$need_version
    22605 
    22606 # Whether dlopen is supported.
    22607 dlopen_support=$enable_dlopen
    22608 
    22609 # Whether dlopen of programs is supported.
    22610 dlopen_self=$enable_dlopen_self
    22611 
    22612 # Whether dlopen of statically linked programs is supported.
    22613 dlopen_self_static=$enable_dlopen_self_static
    22614 
    22615 # Compiler flag to prevent dynamic linking.
    22616 link_static_flag=$lt_lt_prog_compiler_static_CXX
    22617 
    22618 # Compiler flag to turn off builtin functions.
    22619 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
    22620 
    22621 # Compiler flag to allow reflexive dlopens.
    22622 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
    22623 
    22624 # Compiler flag to generate shared objects directly from archives.
    22625 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
    22626 
    22627 # Compiler flag to generate thread-safe objects.
    22628 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
    22629 
    22630 # Library versioning type.
    22631 version_type=$version_type
    22632 
    22633 # Format of library name prefix.
    22634 libname_spec=$lt_libname_spec
    22635 
    22636 # List of archive names.  First name is the real one, the rest are links.
    22637 # The last name is the one that the linker finds with -lNAME.
    22638 library_names_spec=$lt_library_names_spec
    22639 
    22640 # The coded name of the library, if different from the real name.
    22641 soname_spec=$lt_soname_spec
    22642 
    22643 # Commands used to build and install an old-style archive.
    22644 RANLIB=$lt_RANLIB
    22645 old_archive_cmds=$lt_old_archive_cmds_CXX
    22646 old_postinstall_cmds=$lt_old_postinstall_cmds
    22647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
    22648 
    22649 # Create an old-style archive from a shared archive.
    22650 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
    22651 
    22652 # Create a temporary old-style archive to link instead of a shared archive.
    22653 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
    22654 
    22655 # Commands used to build and install a shared archive.
    22656 archive_cmds=$lt_archive_cmds_CXX
    22657 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
    22658 postinstall_cmds=$lt_postinstall_cmds
    22659 postuninstall_cmds=$lt_postuninstall_cmds
    22660 
    22661 # Commands used to build a loadable module (assumed same as above if empty)
    22662 module_cmds=$lt_module_cmds_CXX
    22663 module_expsym_cmds=$lt_module_expsym_cmds_CXX
    22664 
    22665 # Commands to strip libraries.
    22666 old_striplib=$lt_old_striplib
    22667 striplib=$lt_striplib
    22668 
    22669 # Dependencies to place before the objects being linked to create a
    22670 # shared library.
    22671 predep_objects=$lt_predep_objects_CXX
    22672 
    22673 # Dependencies to place after the objects being linked to create a
    22674 # shared library.
    22675 postdep_objects=$lt_postdep_objects_CXX
    22676 
    22677 # Dependencies to place before the objects being linked to create a
    22678 # shared library.
    22679 predeps=$lt_predeps_CXX
    22680 
    22681 # Dependencies to place after the objects being linked to create a
    22682 # shared library.
    22683 postdeps=$lt_postdeps_CXX
    22684 
    22685 # The library search path used internally by the compiler when linking
    22686 # a shared library.
    22687 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
    22688 
    22689 # Method to check whether dependent libraries are shared objects.
    22690 deplibs_check_method=$lt_deplibs_check_method
    22691 
    22692 # Command to use when deplibs_check_method == file_magic.
    22693 file_magic_cmd=$lt_file_magic_cmd
    22694 
    22695 # Flag that allows shared libraries with undefined symbols to be built.
    22696 allow_undefined_flag=$lt_allow_undefined_flag_CXX
    22697 
    22698 # Flag that forces no undefined symbols.
    22699 no_undefined_flag=$lt_no_undefined_flag_CXX
    22700 
    22701 # Commands used to finish a libtool library installation in a directory.
    22702 finish_cmds=$lt_finish_cmds
    22703 
    22704 # Same as above, but a single script fragment to be evaled but not shown.
    22705 finish_eval=$lt_finish_eval
    22706 
    22707 # Take the output of nm and produce a listing of raw symbols and C names.
    22708 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
    22709 
    22710 # Transform the output of nm in a proper C declaration
    22711 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
    22712 
    22713 # Transform the output of nm in a C name address pair
    22714 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
    22715 
    22716 # This is the shared library runtime path variable.
    22717 runpath_var=$runpath_var
    22718 
    22719 # This is the shared library path variable.
    22720 shlibpath_var=$shlibpath_var
    22721 
    22722 # Is shlibpath searched before the hard-coded library search path?
    22723 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
    22724 
    22725 # How to hardcode a shared library path into an executable.
    22726 hardcode_action=$hardcode_action_CXX
    22727 
    22728 # Whether we should hardcode library paths into libraries.
    22729 hardcode_into_libs=$hardcode_into_libs
    22730 
    22731 # Flag to hardcode \$libdir into a binary during linking.
    22732 # This must work even if \$libdir does not exist.
    22733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
    22734 
    22735 # If ld is used when linking, flag to hardcode \$libdir into
    22736 # a binary during linking. This must work even if \$libdir does
    22737 # not exist.
    22738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
    22739 
    22740 # Whether we need a single -rpath flag with a separated argument.
    22741 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
    22742 
    22743 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
    22744 # resulting binary.
    22745 hardcode_direct=$hardcode_direct_CXX
    22746 
    22747 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    22748 # resulting binary.
    22749 hardcode_minus_L=$hardcode_minus_L_CXX
    22750 
    22751 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    22752 # the resulting binary.
    22753 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
    22754 
    22755 # Set to yes if building a shared library automatically hardcodes DIR into the library
    22756 # and all subsequent libraries and executables linked against it.
    22757 hardcode_automatic=$hardcode_automatic_CXX
    22758 
    22759 # Variables whose values should be saved in libtool wrapper scripts and
    22760 # restored at relink time.
    22761 variables_saved_for_relink="$variables_saved_for_relink"
    22762 
    22763 # Whether libtool must link a program against all its dependency libraries.
    22764 link_all_deplibs=$link_all_deplibs_CXX
    22765 
    22766 # Compile-time system search path for libraries
    22767 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
    22768 
    22769 # Run-time system search path for libraries
    22770 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
    22771 
    22772 # Fix the shell variable \$srcfile for the compiler.
    22773 fix_srcfile_path="$fix_srcfile_path_CXX"
    22774 
    22775 # Set to yes if exported symbols are required.
    22776 always_export_symbols=$always_export_symbols_CXX
    22777 
    22778 # The commands to list exported symbols.
    22779 export_symbols_cmds=$lt_export_symbols_cmds_CXX
    22780 
    22781 # The commands to extract the exported symbol list from a shared archive.
    22782 extract_expsyms_cmds=$lt_extract_expsyms_cmds
    22783 
    22784 # Symbols that should not be listed in the preloaded symbols.
    22785 exclude_expsyms=$lt_exclude_expsyms_CXX
    22786 
    22787 # Symbols that must always be exported.
    22788 include_expsyms=$lt_include_expsyms_CXX
    22789 
    22790 # ### END LIBTOOL TAG CONFIG: $tagname
    22791 
    22792 __EOF__
    22793 
    22794 
    22795 else
    22796   # If there is no Makefile yet, we rely on a make rule to execute
    22797   # `config.status --recheck' to rerun these tests and create the
    22798   # libtool script then.
    22799   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    22800   if test -f "$ltmain_in"; then
    22801     test -f Makefile && make "$ltmain"
    22802   fi
    22803 fi
    22804 
     19727
     19728
     19729
     19730
     19731
     19732  fi # test -n "$compiler"
     19733
     19734  CC=$lt_save_CC
     19735  CFLAGS=$lt_save_CFLAGS
     19736  LDCXX=$LD
     19737  LD=$lt_save_LD
     19738  GCC=$lt_save_GCC
     19739  with_gnu_ld=$lt_save_with_gnu_ld
     19740  lt_cv_path_LDCXX=$lt_cv_path_LD
     19741  lt_cv_path_LD=$lt_save_path_LD
     19742  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
     19743  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
     19744fi # test "$_lt_caught_CXX_error" != yes
    2280519745
    2280619746ac_ext=c
     
    2281019750ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2281119751
    22812 CC=$lt_save_CC
    22813 LDCXX=$LD
    22814 LD=$lt_save_LD
    22815 GCC=$lt_save_GCC
    22816 with_gnu_ldcxx=$with_gnu_ld
    22817 with_gnu_ld=$lt_save_with_gnu_ld
    22818 lt_cv_path_LDCXX=$lt_cv_path_LD
    22819 lt_cv_path_LD=$lt_save_path_LD
    22820 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
    22821 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
    22822 
    22823         else
    22824           tagname=""
    22825         fi
    22826         ;;
    22827 
    22828       F77)
    22829         if test -n "$F77" && test "X$F77" != "Xno"; then
    22830 
    22831 ac_ext=f
     19752
     19753
     19754      ac_ext=f
    2283219755ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    2283319756ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2283419757ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    2283519758
     19759if test -z "$F77" || test "X$F77" = "Xno"; then
     19760  _lt_disable_F77=yes
     19761fi
    2283619762
    2283719763archive_cmds_need_lc_F77=no
     
    2284119767export_dynamic_flag_spec_F77=
    2284219768hardcode_direct_F77=no
     19769hardcode_direct_absolute_F77=no
    2284319770hardcode_libdir_flag_spec_F77=
    22844 hardcode_libdir_flag_spec_ld_F77=
    2284519771hardcode_libdir_separator_F77=
    2284619772hardcode_minus_L_F77=no
    2284719773hardcode_automatic_F77=no
     19774inherit_rpath_F77=no
    2284819775module_cmds_F77=
    2284919776module_expsym_cmds_F77=
    2285019777link_all_deplibs_F77=unknown
    2285119778old_archive_cmds_F77=$old_archive_cmds
     19779reload_flag_F77=$reload_flag
     19780reload_cmds_F77=$reload_cmds
    2285219781no_undefined_flag_F77=
    2285319782whole_archive_flag_spec_F77=
     
    2286119790objext_F77=$objext
    2286219791
    22863 # Code to be used in simple compile tests
    22864 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
    22865 
    22866 # Code to be used in simple link tests
    22867 lt_simple_link_test_code="      program t\n      end\n"
    22868 
    22869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
     19792# No sense in running all these tests if we already determined that
     19793# the F77 compiler isn't working.  Some variables (like enable_shared)
     19794# are currently assumed to apply to all compilers on this platform,
     19795# and will be corrupted by setting them based on a non-working compiler.
     19796if test "$_lt_disable_F77" != yes; then
     19797  # Code to be used in simple compile tests
     19798  lt_simple_compile_test_code="\
     19799      subroutine t
     19800      return
     19801      end
     19802"
     19803
     19804  # Code to be used in simple link tests
     19805  lt_simple_link_test_code="\
     19806      program t
     19807      end
     19808"
     19809
     19810  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
     19811
     19812
     19813
     19814
     19815
    2287019816
    2287119817# If no C compiler was specified, use CC.
     
    2287919825
    2288019826
    22881 # save warnings/boilerplate of simple test code
    22882 ac_outfile=conftest.$ac_objext
    22883 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
     19827  # save warnings/boilerplate of simple test code
     19828  ac_outfile=conftest.$ac_objext
     19829echo "$lt_simple_compile_test_code" >conftest.$ac_ext
    2288419830eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    2288519831_lt_compiler_boilerplate=`cat conftest.err`
    22886 $rm conftest*
    22887 
    22888 ac_outfile=conftest.$ac_objext
    22889 printf "$lt_simple_link_test_code" >conftest.$ac_ext
     19832$RM conftest*
     19833
     19834  ac_outfile=conftest.$ac_objext
     19835echo "$lt_simple_link_test_code" >conftest.$ac_ext
    2289019836eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    2289119837_lt_linker_boilerplate=`cat conftest.err`
    22892 $rm conftest*
    22893 
    22894 
    22895 # Allow CC to be a program name with arguments.
    22896 lt_save_CC="$CC"
    22897 CC=${F77-"f77"}
    22898 compiler=$CC
    22899 compiler_F77=$CC
    22900 for cc_temp in $compiler""; do
     19838$RM -r conftest*
     19839
     19840
     19841  # Allow CC to be a program name with arguments.
     19842  lt_save_CC="$CC"
     19843  lt_save_GCC=$GCC
     19844  lt_save_CFLAGS=$CFLAGS
     19845  CC=${F77-"f77"}
     19846  CFLAGS=$FFLAGS
     19847  compiler=$CC
     19848  compiler_F77=$CC
     19849  for cc_temp in $compiler""; do
    2290119850  case $cc_temp in
    2290219851    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
     
    2290619855  esac
    2290719856done
    22908 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    22909 
    22910 
    22911 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
    22912 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
    22913 echo "$as_me:$LINENO: result: $can_build_shared" >&5
    22914 echo "${ECHO_T}$can_build_shared" >&6
    22915 
    22916 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
    22917 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
    22918 test "$can_build_shared" = "no" && enable_shared=no
    22919 
    22920 # On AIX, shared libraries and static libraries use the same namespace, and
    22921 # are all built from PIC.
    22922 case $host_os in
    22923 aix3*)
    22924   test "$enable_shared" = yes && enable_static=no
    22925   if test -n "$RANLIB"; then
    22926     archive_cmds="$archive_cmds~\$RANLIB \$lib"
    22927     postinstall_cmds='$RANLIB $lib'
    22928   fi
    22929   ;;
    22930 aix4* | aix5*)
    22931   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    22932     test "$enable_shared" = yes && enable_static=no
    22933   fi
    22934   ;;
    22935 esac
    22936 echo "$as_me:$LINENO: result: $enable_shared" >&5
    22937 echo "${ECHO_T}$enable_shared" >&6
    22938 
    22939 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
    22940 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
    22941 # Make sure either enable_shared or enable_static is yes.
    22942 test "$enable_shared" = yes || enable_static=yes
    22943 echo "$as_me:$LINENO: result: $enable_static" >&5
    22944 echo "${ECHO_T}$enable_static" >&6
    22945 
    22946 GCC_F77="$G77"
    22947 LD_F77="$LD"
    22948 
    22949 lt_prog_compiler_wl_F77=
     19857cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
     19858
     19859  GCC=$G77
     19860  if test -n "$compiler"; then
     19861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
     19862$as_echo_n "checking if libtool supports shared libraries... " >&6; }
     19863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
     19864$as_echo "$can_build_shared" >&6; }
     19865
     19866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
     19867$as_echo_n "checking whether to build shared libraries... " >&6; }
     19868    test "$can_build_shared" = "no" && enable_shared=no
     19869
     19870    # On AIX, shared libraries and static libraries use the same namespace, and
     19871    # are all built from PIC.
     19872    case $host_os in
     19873      aix3*)
     19874        test "$enable_shared" = yes && enable_static=no
     19875        if test -n "$RANLIB"; then
     19876          archive_cmds="$archive_cmds~\$RANLIB \$lib"
     19877          postinstall_cmds='$RANLIB $lib'
     19878        fi
     19879        ;;
     19880      aix[4-9]*)
     19881        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     19882          test "$enable_shared" = yes && enable_static=no
     19883        fi
     19884        ;;
     19885    esac
     19886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
     19887$as_echo "$enable_shared" >&6; }
     19888
     19889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
     19890$as_echo_n "checking whether to build static libraries... " >&6; }
     19891    # Make sure either enable_shared or enable_static is yes.
     19892    test "$enable_shared" = yes || enable_static=yes
     19893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
     19894$as_echo "$enable_static" >&6; }
     19895
     19896    GCC_F77="$G77"
     19897    LD_F77="$LD"
     19898
     19899    ## CAVEAT EMPTOR:
     19900    ## There is no encapsulation within the following macros, do not change
     19901    ## the running order or otherwise move them around unless you know exactly
     19902    ## what you are doing...
     19903    lt_prog_compiler_wl_F77=
    2295019904lt_prog_compiler_pic_F77=
    2295119905lt_prog_compiler_static_F77=
    2295219906
    22953 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
    22954 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
    2295519907
    2295619908  if test "$GCC" = yes; then
     
    2296819920
    2296919921    amigaos*)
    22970       # FIXME: we need at least 68020 code to build shared libraries, but
    22971       # adding the `-m68020' flag to GCC prevents building anything better,
    22972       # like `-m68040'.
    22973       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
     19922      case $host_cpu in
     19923      powerpc)
     19924            # see comment about AmigaOS4 .so support
     19925            lt_prog_compiler_pic_F77='-fPIC'
     19926        ;;
     19927      m68k)
     19928            # FIXME: we need at least 68020 code to build shared libraries, but
     19929            # adding the `-m68020' flag to GCC prevents building anything better,
     19930            # like `-m68040'.
     19931            lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
     19932        ;;
     19933      esac
    2297419934      ;;
    2297519935
    22976     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     19936    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    2297719937      # PIC is the default for these OSes.
    2297819938      ;;
    2297919939
    22980     mingw* | pw32* | os2*)
     19940    mingw* | cygwin* | pw32* | os2* | cegcc*)
    2298119941      # This hack is so that the source file can tell whether it is being
    2298219942      # built for inclusion in a dll (and should export symbols for example).
     19943      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     19944      # (--disable-auto-import) libraries
    2298319945      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
    2298419946      ;;
     
    2299019952      ;;
    2299119953
    22992     interix3*)
    22993       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
    22994       # Instead, we relocate shared libraries at runtime.
     19954    haiku*)
     19955      # PIC is the default for Haiku.
     19956      # The "-static" flag exists, but is broken.
     19957      lt_prog_compiler_static_F77=
    2299519958      ;;
    2299619959
    22997     msdosdjgpp*)
    22998       # Just because we use GCC doesn't mean we suddenly get shared libraries
    22999       # on systems that don't support them.
    23000       lt_prog_compiler_can_build_shared_F77=no
    23001       enable_shared=no
    23002       ;;
    23003 
    23004     sysv4*MP*)
    23005       if test -d /usr/nec; then
    23006         lt_prog_compiler_pic_F77=-Kconform_pic
    23007       fi
    23008       ;;
    23009 
    2301019960    hpux*)
    23011       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    23012       # not for PA HP-UX.
     19961      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
     19962      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
     19963      # sets the default TLS model and affects inlining.
    2301319964      case $host_cpu in
    23014       hppa*64*|ia64*)
     19965      hppa*64*)
    2301519966        # +Z the default
    2301619967        ;;
     
    2302119972      ;;
    2302219973
     19974    interix[3-9]*)
     19975      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     19976      # Instead, we relocate shared libraries at runtime.
     19977      ;;
     19978
     19979    msdosdjgpp*)
     19980      # Just because we use GCC doesn't mean we suddenly get shared libraries
     19981      # on systems that don't support them.
     19982      lt_prog_compiler_can_build_shared_F77=no
     19983      enable_shared=no
     19984      ;;
     19985
     19986    *nto* | *qnx*)
     19987      # QNX uses GNU C++, but need to define -shared option too, otherwise
     19988      # it will coredump.
     19989      lt_prog_compiler_pic_F77='-fPIC -shared'
     19990      ;;
     19991
     19992    sysv4*MP*)
     19993      if test -d /usr/nec; then
     19994        lt_prog_compiler_pic_F77=-Kconform_pic
     19995      fi
     19996      ;;
     19997
    2302319998    *)
    2302419999      lt_prog_compiler_pic_F77='-fPIC'
     20000      ;;
     20001    esac
     20002
     20003    case $cc_basename in
     20004    nvcc*) # Cuda Compiler Driver 2.2
     20005      lt_prog_compiler_wl_F77='-Xlinker '
     20006      if test -n "$lt_prog_compiler_pic_F77"; then
     20007        lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
     20008      fi
    2302520009      ;;
    2302620010    esac
     
    2303720021      fi
    2303820022      ;;
    23039       darwin*)
    23040         # PIC is the default on this platform
    23041         # Common symbols not allowed in MH_DYLIB files
    23042        case $cc_basename in
    23043          xlc*)
    23044          lt_prog_compiler_pic_F77='-qnocommon'
    23045          lt_prog_compiler_wl_F77='-Wl,'
    23046          ;;
    23047        esac
    23048        ;;
    23049 
    23050     mingw* | pw32* | os2*)
     20023
     20024    mingw* | cygwin* | pw32* | os2* | cegcc*)
    2305120025      # This hack is so that the source file can tell whether it is being
    2305220026      # built for inclusion in a dll (and should export symbols for example).
     
    2307620050      ;;
    2307720051
    23078     newsos6)
    23079       lt_prog_compiler_pic_F77='-KPIC'
    23080       lt_prog_compiler_static_F77='-Bstatic'
    23081       ;;
    23082 
    23083     linux*)
     20052    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
    2308420053      case $cc_basename in
    23085       icc* | ecc*)
     20054      # old Intel for x86_64 which still supported -KPIC.
     20055      ecc*)
    2308620056        lt_prog_compiler_wl_F77='-Wl,'
    2308720057        lt_prog_compiler_pic_F77='-KPIC'
    2308820058        lt_prog_compiler_static_F77='-static'
    2308920059        ;;
    23090       pgcc* | pgf77* | pgf90* | pgf95*)
     20060      # icc used to be incompatible with GCC.
     20061      # ICC 10 doesn't accept -KPIC any more.
     20062      icc* | ifort*)
     20063        lt_prog_compiler_wl_F77='-Wl,'
     20064        lt_prog_compiler_pic_F77='-fPIC'
     20065        lt_prog_compiler_static_F77='-static'
     20066        ;;
     20067      # Lahey Fortran 8.1.
     20068      lf95*)
     20069        lt_prog_compiler_wl_F77='-Wl,'
     20070        lt_prog_compiler_pic_F77='--shared'
     20071        lt_prog_compiler_static_F77='--static'
     20072        ;;
     20073      nagfor*)
     20074        # NAG Fortran compiler
     20075        lt_prog_compiler_wl_F77='-Wl,-Wl,,'
     20076        lt_prog_compiler_pic_F77='-PIC'
     20077        lt_prog_compiler_static_F77='-Bstatic'
     20078        ;;
     20079      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
    2309120080        # Portland Group compilers (*not* the Pentium gcc compiler,
    2309220081        # which looks to be a dead project)
     
    2310020089        lt_prog_compiler_static_F77='-non_shared'
    2310120090        ;;
     20091      xl* | bgxl* | bgf* | mpixl*)
     20092        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
     20093        lt_prog_compiler_wl_F77='-Wl,'
     20094        lt_prog_compiler_pic_F77='-qpic'
     20095        lt_prog_compiler_static_F77='-qstaticlink'
     20096        ;;
     20097      *)
     20098        case `$CC -V 2>&1 | sed 5q` in
     20099        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
     20100          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     20101          lt_prog_compiler_pic_F77='-KPIC'
     20102          lt_prog_compiler_static_F77='-Bstatic'
     20103          lt_prog_compiler_wl_F77=''
     20104          ;;
     20105        *Sun\ F* | *Sun*Fortran*)
     20106          lt_prog_compiler_pic_F77='-KPIC'
     20107          lt_prog_compiler_static_F77='-Bstatic'
     20108          lt_prog_compiler_wl_F77='-Qoption ld '
     20109          ;;
     20110        *Sun\ C*)
     20111          # Sun C 5.9
     20112          lt_prog_compiler_pic_F77='-KPIC'
     20113          lt_prog_compiler_static_F77='-Bstatic'
     20114          lt_prog_compiler_wl_F77='-Wl,'
     20115          ;;
     20116        *Intel*\ [CF]*Compiler*)
     20117          lt_prog_compiler_wl_F77='-Wl,'
     20118          lt_prog_compiler_pic_F77='-fPIC'
     20119          lt_prog_compiler_static_F77='-static'
     20120          ;;
     20121        *Portland\ Group*)
     20122          lt_prog_compiler_wl_F77='-Wl,'
     20123          lt_prog_compiler_pic_F77='-fpic'
     20124          lt_prog_compiler_static_F77='-Bstatic'
     20125          ;;
     20126        esac
     20127        ;;
    2310220128      esac
     20129      ;;
     20130
     20131    newsos6)
     20132      lt_prog_compiler_pic_F77='-KPIC'
     20133      lt_prog_compiler_static_F77='-Bstatic'
     20134      ;;
     20135
     20136    *nto* | *qnx*)
     20137      # QNX uses GNU C++, but need to define -shared option too, otherwise
     20138      # it will coredump.
     20139      lt_prog_compiler_pic_F77='-fPIC -shared'
    2310320140      ;;
    2310420141
     
    2310920146      ;;
    2311020147
     20148    rdos*)
     20149      lt_prog_compiler_static_F77='-non_shared'
     20150      ;;
     20151
    2311120152    solaris*)
    2311220153      lt_prog_compiler_pic_F77='-KPIC'
    2311320154      lt_prog_compiler_static_F77='-Bstatic'
    2311420155      case $cc_basename in
    23115       f77* | f90* | f95*)
     20156      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
    2311620157        lt_prog_compiler_wl_F77='-Qoption ld ';;
    2311720158      *)
     
    2316120202  fi
    2316220203
    23163 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
    23164 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
     20204case $host_os in
     20205  # For platforms which do not support PIC, -DPIC is meaningless:
     20206  *djgpp*)
     20207    lt_prog_compiler_pic_F77=
     20208    ;;
     20209  *)
     20210    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
     20211    ;;
     20212esac
     20213
     20214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
     20215$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
     20216if ${lt_cv_prog_compiler_pic_F77+:} false; then :
     20217  $as_echo_n "(cached) " >&6
     20218else
     20219  lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
     20220fi
     20221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
     20222$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
     20223lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
    2316520224
    2316620225#
     
    2316820227#
    2316920228if test -n "$lt_prog_compiler_pic_F77"; then
    23170 
    23171 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
    23172 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
    23173 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
    23174   echo $ECHO_N "(cached) $ECHO_C" >&6
    23175 else
    23176   lt_prog_compiler_pic_works_F77=no
    23177   ac_outfile=conftest.$ac_objext
    23178    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     20229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
     20230$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
     20231if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
     20232  $as_echo_n "(cached) " >&6
     20233else
     20234  lt_cv_prog_compiler_pic_works_F77=no
     20235   ac_outfile=conftest.$ac_objext
     20236   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    2317920237   lt_compiler_flag="$lt_prog_compiler_pic_F77"
    2318020238   # Insert the option either (1) after the last *FLAGS variable, or
     
    2318720245   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    2318820246   -e 's:$: $lt_compiler_flag:'`
    23189    (eval echo "\"\$as_me:23189: $lt_compile\"" >&5)
     20247   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    2319020248   (eval "$lt_compile" 2>conftest.err)
    2319120249   ac_status=$?
    2319220250   cat conftest.err >&5
    23193    echo "$as_me:23193: \$? = $ac_status" >&5
     20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2319420252   if (exit $ac_status) && test -s "$ac_outfile"; then
    2319520253     # The compiler can only warn and ignore the option if not recognized
    2319620254     # So say no if there are warnings other than the usual output.
    23197      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     20255     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
    2319820256     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    2319920257     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    23200        lt_prog_compiler_pic_works_F77=yes
     20258       lt_cv_prog_compiler_pic_works_F77=yes
    2320120259     fi
    2320220260   fi
    23203    $rm conftest*
    23204 
    23205 fi
    23206 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
    23207 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
    23208 
    23209 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
     20261   $RM conftest*
     20262
     20263fi
     20264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
     20265$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
     20266
     20267if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
    2321020268    case $lt_prog_compiler_pic_F77 in
    2321120269     "" | " "*) ;;
     
    2321820276
    2321920277fi
    23220 case $host_os in
    23221   # For platforms which do not support PIC, -DPIC is meaningless:
    23222   *djgpp*)
    23223     lt_prog_compiler_pic_F77=
    23224     ;;
    23225   *)
    23226     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
    23227     ;;
    23228 esac
     20278
     20279
     20280
     20281
    2322920282
    2323020283#
     
    2323220285#
    2323320286wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
    23234 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
    23235 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
    23236 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
    23237   echo $ECHO_N "(cached) $ECHO_C" >&6
    23238 else
    23239   lt_prog_compiler_static_works_F77=no
     20287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
     20288$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
     20289if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
     20290  $as_echo_n "(cached) " >&6
     20291else
     20292  lt_cv_prog_compiler_static_works_F77=no
    2324020293   save_LDFLAGS="$LDFLAGS"
    2324120294   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
    23242    printf "$lt_simple_link_test_code" > conftest.$ac_ext
     20295   echo "$lt_simple_link_test_code" > conftest.$ac_ext
    2324320296   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    2324420297     # The linker can only warn and ignore the option if not recognized
     
    2324720300       # Append any errors to the config.log.
    2324820301       cat conftest.err 1>&5
    23249        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     20302       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
    2325020303       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    2325120304       if diff conftest.exp conftest.er2 >/dev/null; then
    23252          lt_prog_compiler_static_works_F77=yes
     20305         lt_cv_prog_compiler_static_works_F77=yes
    2325320306       fi
    2325420307     else
    23255        lt_prog_compiler_static_works_F77=yes
     20308       lt_cv_prog_compiler_static_works_F77=yes
    2325620309     fi
    2325720310   fi
    23258    $rm conftest*
     20311   $RM -r conftest*
    2325920312   LDFLAGS="$save_LDFLAGS"
    2326020313
    2326120314fi
    23262 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
    23263 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
    23264 
    23265 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
     20315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
     20316$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
     20317
     20318if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
    2326620319    :
    2326720320else
     
    2327020323
    2327120324
    23272 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    23273 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
    23274 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
    23275   echo $ECHO_N "(cached) $ECHO_C" >&6
     20325
     20326
     20327    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
     20328$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
     20329if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
     20330  $as_echo_n "(cached) " >&6
    2327620331else
    2327720332  lt_cv_prog_compiler_c_o_F77=no
    23278    $rm -r conftest 2>/dev/null
     20333   $RM -r conftest 2>/dev/null
    2327920334   mkdir conftest
    2328020335   cd conftest
    2328120336   mkdir out
    23282    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     20337   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    2328320338
    2328420339   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    2329120346   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    2329220347   -e 's:$: $lt_compiler_flag:'`
    23293    (eval echo "\"\$as_me:23293: $lt_compile\"" >&5)
     20348   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
    2329420349   (eval "$lt_compile" 2>out/conftest.err)
    2329520350   ac_status=$?
    2329620351   cat out/conftest.err >&5
    23297    echo "$as_me:23297: \$? = $ac_status" >&5
     20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2329820353   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    2329920354   then
    2330020355     # The compiler can only warn and ignore the option if not recognized
    2330120356     # So say no if there are warnings
    23302      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     20357     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
    2330320358     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    2330420359     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    2330720362   fi
    2330820363   chmod u+w . 2>&5
    23309    $rm conftest*
     20364   $RM conftest*
    2331020365   # SGI C++ compiler will create directory out/ii_files/ for
    2331120366   # template instantiation
    23312    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
    23313    $rm out/* && rmdir out
     20367   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
     20368   $RM out/* && rmdir out
    2331420369   cd ..
    23315    rmdir conftest
    23316    $rm conftest*
    23317 
    23318 fi
    23319 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
    23320 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
     20370   $RM -r conftest
     20371   $RM conftest*
     20372
     20373fi
     20374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
     20375$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
     20376
     20377
     20378
     20379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
     20380$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
     20381if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
     20382  $as_echo_n "(cached) " >&6
     20383else
     20384  lt_cv_prog_compiler_c_o_F77=no
     20385   $RM -r conftest 2>/dev/null
     20386   mkdir conftest
     20387   cd conftest
     20388   mkdir out
     20389   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     20390
     20391   lt_compiler_flag="-o out/conftest2.$ac_objext"
     20392   # Insert the option either (1) after the last *FLAGS variable, or
     20393   # (2) before a word containing "conftest.", or (3) at the end.
     20394   # Note that $ac_compile itself does not contain backslashes and begins
     20395   # with a dollar sign (not a hyphen), so the echo should work correctly.
     20396   lt_compile=`echo "$ac_compile" | $SED \
     20397   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
     20398   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
     20399   -e 's:$: $lt_compiler_flag:'`
     20400   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
     20401   (eval "$lt_compile" 2>out/conftest.err)
     20402   ac_status=$?
     20403   cat out/conftest.err >&5
     20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20405   if (exit $ac_status) && test -s out/conftest2.$ac_objext
     20406   then
     20407     # The compiler can only warn and ignore the option if not recognized
     20408     # So say no if there are warnings
     20409     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     20410     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     20411     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     20412       lt_cv_prog_compiler_c_o_F77=yes
     20413     fi
     20414   fi
     20415   chmod u+w . 2>&5
     20416   $RM conftest*
     20417   # SGI C++ compiler will create directory out/ii_files/ for
     20418   # template instantiation
     20419   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
     20420   $RM out/* && rmdir out
     20421   cd ..
     20422   $RM -r conftest
     20423   $RM conftest*
     20424
     20425fi
     20426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
     20427$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
     20428
     20429
    2332120430
    2332220431
     
    2332420433if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
    2332520434  # do not overwrite the value of need_locks provided by the user
    23326   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
    23327 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
     20435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
     20436$as_echo_n "checking if we can lock with hard links... " >&6; }
    2332820437  hard_links=yes
    23329   $rm conftest*
     20438  $RM conftest*
    2333020439  ln conftest.a conftest.b 2>/dev/null && hard_links=no
    2333120440  touch conftest.a
    2333220441  ln conftest.a conftest.b 2>&5 || hard_links=no
    2333320442  ln conftest.a conftest.b 2>/dev/null && hard_links=no
    23334   echo "$as_me:$LINENO: result: $hard_links" >&5
    23335 echo "${ECHO_T}$hard_links" >&6
     20443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
     20444$as_echo "$hard_links" >&6; }
    2333620445  if test "$hard_links" = no; then
    23337     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
    23338 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
     20446    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
     20447$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    2333920448    need_locks=warn
    2334020449  fi
     
    2334320452fi
    2334420453
    23345 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
    23346 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
     20454
     20455
     20456    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
     20457$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
    2334720458
    2334820459  runpath_var=
    2334920460  allow_undefined_flag_F77=
    23350   enable_shared_with_static_runtimes_F77=no
     20461  always_export_symbols_F77=no
    2335120462  archive_cmds_F77=
    2335220463  archive_expsym_cmds_F77=
    23353   old_archive_From_new_cmds_F77=
    23354   old_archive_from_expsyms_cmds_F77=
     20464  compiler_needs_object_F77=no
     20465  enable_shared_with_static_runtimes_F77=no
    2335520466  export_dynamic_flag_spec_F77=
    23356   whole_archive_flag_spec_F77=
    23357   thread_safe_flag_spec_F77=
     20467  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     20468  hardcode_automatic_F77=no
     20469  hardcode_direct_F77=no
     20470  hardcode_direct_absolute_F77=no
    2335820471  hardcode_libdir_flag_spec_F77=
    23359   hardcode_libdir_flag_spec_ld_F77=
    2336020472  hardcode_libdir_separator_F77=
    23361   hardcode_direct_F77=no
    2336220473  hardcode_minus_L_F77=no
    2336320474  hardcode_shlibpath_var_F77=unsupported
     20475  inherit_rpath_F77=no
    2336420476  link_all_deplibs_F77=unknown
    23365   hardcode_automatic_F77=no
    2336620477  module_cmds_F77=
    2336720478  module_expsym_cmds_F77=
    23368   always_export_symbols_F77=no
    23369   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     20479  old_archive_from_new_cmds_F77=
     20480  old_archive_from_expsyms_cmds_F77=
     20481  thread_safe_flag_spec_F77=
     20482  whole_archive_flag_spec_F77=
    2337020483  # include_expsyms should be a list of space-separated symbols to be *always*
    2337120484  # included in the symbol list
     
    2337520488  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
    2337620489  # as well as any symbol that contains `d'.
    23377   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
     20490  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
    2337820491  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
    2337920492  # platforms (ab)use it in PIC code, but their linkers get confused if
     
    2338120494  # rely on this symbol name, it's probably fine to never include it in
    2338220495  # preloaded symbol tables.
     20496  # Exclude shared library initialization/finalization symbols.
    2338320497  extract_expsyms_cmds=
    23384   # Just being paranoid about ensuring that cc_basename is set.
    23385   for cc_temp in $compiler""; do
    23386   case $cc_temp in
    23387     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    23388     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    23389     \-*) ;;
    23390     *) break;;
    23391   esac
    23392 done
    23393 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    2339420498
    2339520499  case $host_os in
    23396   cygwin* | mingw* | pw32*)
     20500  cygwin* | mingw* | pw32* | cegcc*)
    2339720501    # FIXME: the MSVC++ port hasn't been tested in a loooong time
    2339820502    # When not using gcc, we currently assume that we are using
     
    2340920513    with_gnu_ld=no
    2341020514    ;;
     20515  linux* | k*bsd*-gnu | gnu*)
     20516    link_all_deplibs_F77=no
     20517    ;;
    2341120518  esac
    2341220519
    2341320520  ld_shlibs_F77=yes
     20521
     20522  # On some targets, GNU ld is compatible enough with the native linker
     20523  # that we're better off using the native interface for both.
     20524  lt_use_gnu_ld_interface=no
    2341420525  if test "$with_gnu_ld" = yes; then
     20526    case $host_os in
     20527      aix*)
     20528        # The AIX port of GNU ld has always aspired to compatibility
     20529        # with the native linker.  However, as the warning in the GNU ld
     20530        # block says, versions before 2.19.5* couldn't really create working
     20531        # shared libraries, regardless of the interface used.
     20532        case `$LD -v 2>&1` in
     20533          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
     20534          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
     20535          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
     20536          *)
     20537            lt_use_gnu_ld_interface=yes
     20538            ;;
     20539        esac
     20540        ;;
     20541      *)
     20542        lt_use_gnu_ld_interface=yes
     20543        ;;
     20544    esac
     20545  fi
     20546
     20547  if test "$lt_use_gnu_ld_interface" = yes; then
    2341520548    # If archive_cmds runs LD, not CC, wlarc should be empty
    2341620549    wlarc='${wl}'
     
    2342020553    # here allows them to be overridden if necessary.
    2342120554    runpath_var=LD_RUN_PATH
    23422     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
     20555    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
    2342320556    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
    2342420557    # ancient GNU ld didn't support --whole-archive et. al.
    23425     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
    23426         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    23427       else
    23428         whole_archive_flag_spec_F77=
     20558    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
     20559      whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     20560    else
     20561      whole_archive_flag_spec_F77=
    2342920562    fi
    2343020563    supports_anon_versioning=no
    23431     case `$LD -v 2>/dev/null` in
     20564    case `$LD -v 2>&1` in
     20565      *GNU\ gold*) supports_anon_versioning=yes ;;
    2343220566      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
    2343320567      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
     
    2343920573    # See if GNU ld supports shared libraries.
    2344020574    case $host_os in
    23441     aix3* | aix4* | aix5*)
     20575    aix[3-9]*)
    2344220576      # On AIX/PPC, the GNU linker is very broken
    2344320577      if test "$host_cpu" != ia64; then
    2344420578        ld_shlibs_F77=no
    23445         cat <<EOF 1>&2
    23446 
    23447 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
     20579        cat <<_LT_EOF 1>&2
     20580
     20581*** Warning: the GNU linker, at least up to release 2.19, is reported
    2344820582*** to be unable to reliably create shared libraries on AIX.
    2344920583*** Therefore, libtool is disabling shared libraries support.  If you
    23450 *** really care for shared libraries, you may want to modify your PATH
    23451 *** so that a non-GNU linker is found, and then restart.
    23452 
    23453 EOF
     20584*** really care for shared libraries, you may want to install binutils
     20585*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
     20586*** You will then need to restart the configuration process.
     20587
     20588_LT_EOF
    2345420589      fi
    2345520590      ;;
    2345620591
    2345720592    amigaos*)
    23458       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    23459       hardcode_libdir_flag_spec_F77='-L$libdir'
    23460       hardcode_minus_L_F77=yes
    23461 
    23462       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
    23463       # that the semantics of dynamic libraries on AmigaOS, at least up
    23464       # to version 4, is to share data among multiple programs linked
    23465       # with the same dynamic library.  Since this doesn't match the
    23466       # behavior of shared libraries on other platforms, we can't use
    23467       # them.
    23468       ld_shlibs_F77=no
     20593      case $host_cpu in
     20594      powerpc)
     20595            # see comment about AmigaOS4 .so support
     20596            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     20597            archive_expsym_cmds_F77=''
     20598        ;;
     20599      m68k)
     20600            archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
     20601            hardcode_libdir_flag_spec_F77='-L$libdir'
     20602            hardcode_minus_L_F77=yes
     20603        ;;
     20604      esac
    2346920605      ;;
    2347020606
    2347120607    beos*)
    23472       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     20608      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    2347320609        allow_undefined_flag_F77=unsupported
    2347420610        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     
    2348020616      ;;
    2348120617
    23482     cygwin* | mingw* | pw32*)
    23483       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
     20618    cygwin* | mingw* | pw32* | cegcc*)
     20619      # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
    2348420620      # as there is no search path for DLLs.
    2348520621      hardcode_libdir_flag_spec_F77='-L$libdir'
     20622      export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
    2348620623      allow_undefined_flag_F77=unsupported
    2348720624      always_export_symbols_F77=no
    2348820625      enable_shared_with_static_runtimes_F77=yes
    23489       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
    23490 
    23491       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
     20626      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
     20627      exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
     20628
     20629      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
    2349220630        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    2349320631        # If the export-symbols file already is a .def file (1st line
     
    2350520643      ;;
    2350620644
    23507     interix3*)
     20645    haiku*)
     20646      archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     20647      link_all_deplibs_F77=yes
     20648      ;;
     20649
     20650    interix[3-9]*)
    2350820651      hardcode_direct_F77=no
    2350920652      hardcode_shlibpath_var_F77=no
     
    2352020663      ;;
    2352120664
    23522     linux*)
    23523       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    23524         tmp_addflag=
     20665    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
     20666      tmp_diet=no
     20667      if test "$host_os" = linux-dietlibc; then
     20668        case $cc_basename in
     20669          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
     20670        esac
     20671      fi
     20672      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
     20673         && test "$tmp_diet" = no
     20674      then
     20675        tmp_addflag=' $pic_flag'
     20676        tmp_sharedflag='-shared'
    2352520677        case $cc_basename,$host_cpu in
    23526         pgcc*)                          # Portland Group C compiler
    23527           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     20678        pgcc*)                          # Portland Group C compiler
     20679          whole_archive_flag_spec_F77='${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'
    2352820680          tmp_addflag=' $pic_flag'
    2352920681          ;;
    23530         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
    23531           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     20682        pgf77* | pgf90* | pgf95* | pgfortran*)
     20683                                        # Portland Group f77 and f90 compilers
     20684          whole_archive_flag_spec_F77='${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'
    2353220685          tmp_addflag=' $pic_flag -Mnomain' ;;
    23533         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
     20686        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
    2353420687          tmp_addflag=' -i_dynamic' ;;
    2353520688        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
     
    2353720690        ifc* | ifort*)                  # Intel Fortran compiler
    2353820691          tmp_addflag=' -nofor_main' ;;
     20692        lf95*)                          # Lahey Fortran 8.1
     20693          whole_archive_flag_spec_F77=
     20694          tmp_sharedflag='--shared' ;;
     20695        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
     20696          tmp_sharedflag='-qmkshrobj'
     20697          tmp_addflag= ;;
     20698        nvcc*)  # Cuda Compiler Driver 2.2
     20699          whole_archive_flag_spec_F77='${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'
     20700          compiler_needs_object_F77=yes
     20701          ;;
    2353920702        esac
    23540         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    23541 
    23542         if test $supports_anon_versioning = yes; then
    23543           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
    23544   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    23545   $echo "local: *; };" >> $output_objdir/$libname.ver~
    23546           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    23547         fi
     20703        case `$CC -V 2>&1 | sed 5q` in
     20704        *Sun\ C*)                       # Sun C 5.9
     20705          whole_archive_flag_spec_F77='${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'
     20706          compiler_needs_object_F77=yes
     20707          tmp_sharedflag='-G' ;;
     20708        *Sun\ F*)                       # Sun Fortran 8.3
     20709          tmp_sharedflag='-G' ;;
     20710        esac
     20711        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     20712
     20713        if test "x$supports_anon_versioning" = xyes; then
     20714          archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
     20715            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     20716            echo "local: *; };" >> $output_objdir/$libname.ver~
     20717            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     20718        fi
     20719
     20720        case $cc_basename in
     20721        xlf* | bgf* | bgxlf* | mpixlf*)
     20722          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
     20723          whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
     20724          hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
     20725          archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
     20726          if test "x$supports_anon_versioning" = xyes; then
     20727            archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
     20728              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     20729              echo "local: *; };" >> $output_objdir/$libname.ver~
     20730              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
     20731          fi
     20732          ;;
     20733        esac
    2354820734      else
    23549         ld_shlibs_F77=no
     20735        ld_shlibs_F77=no
    2355020736      fi
    2355120737      ;;
    2355220738
    23553     netbsd*)
    23554       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     20739    netbsd* | netbsdelf*-gnu)
     20740      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    2355520741        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    2355620742        wlarc=
    2355720743      else
    23558         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    23559         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     20744        archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     20745        archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    2356020746      fi
    2356120747      ;;
    2356220748
    2356320749    solaris*)
    23564       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
     20750      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
    2356520751        ld_shlibs_F77=no
    23566         cat <<EOF 1>&2
     20752        cat <<_LT_EOF 1>&2
    2356720753
    2356820754*** Warning: The releases 2.8.* of the GNU linker cannot reliably
     
    2357320759*** used, and then restart.
    2357420760
    23575 EOF
    23576       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    23577         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    23578         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     20761_LT_EOF
     20762      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     20763        archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     20764        archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    2357920765      else
    2358020766        ld_shlibs_F77=no
     
    2359820784        ;;
    2359920785        *)
    23600           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    23601             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
    23602             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
    23603             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
     20786          # For security reasons, it is highly recommended that you always
     20787          # use absolute paths for naming shared libraries, and exclude the
     20788          # DT_RUNPATH tag from executables and libraries.  But doing so
     20789          # requires that you compile everything twice, which is a pain.
     20790          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     20791            hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
     20792            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     20793            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    2360420794          else
    2360520795            ld_shlibs_F77=no
     
    2361720807
    2361820808    *)
    23619       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    23620         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    23621         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     20809      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
     20810        archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     20811        archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    2362220812      else
    2362320813        ld_shlibs_F77=no
     
    2364920839      ;;
    2365020840
    23651     aix4* | aix5*)
     20841    aix[4-9]*)
    2365220842      if test "$host_cpu" = ia64; then
    2365320843        # On IA64, the linker does run time linking by default, so we don't
     
    2365920849        # If we're using GNU nm, then we don't want the "-C" option.
    2366020850        # -C means demangle to AIX nm, but means don't demangle with GNU nm
    23661         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
    23662           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     20851        # Also, AIX nm treats weak defined symbols like other global
     20852        # defined symbols, whereas GNU nm marks them as "W".
     20853        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
     20854          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    2366320855        else
    23664           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     20856          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    2366520857        fi
    2366620858        aix_use_runtimelinking=no
     
    2366920861        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    2367020862        # need to do runtime linking.
    23671         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
     20863        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
    2367220864          for ld_flag in $LDFLAGS; do
    23673           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
    23674             aix_use_runtimelinking=yes
    23675             break
    23676           fi
     20865          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
     20866            aix_use_runtimelinking=yes
     20867            break
     20868          fi
    2367720869          done
    2367820870          ;;
     
    2369120883      archive_cmds_F77=''
    2369220884      hardcode_direct_F77=yes
     20885      hardcode_direct_absolute_F77=yes
    2369320886      hardcode_libdir_separator_F77=':'
    2369420887      link_all_deplibs_F77=yes
     20888      file_list_spec_F77='${wl}-f,'
    2369520889
    2369620890      if test "$GCC" = yes; then
     
    2369920893        # below for broken collect2 doesn't work under 4.3+
    2370020894          collect2name=`${CC} -print-prog-name=collect2`
    23701           if test -f "$collect2name" && \
    23702            strings "$collect2name" | grep resolve_lib_name >/dev/null
     20895          if test -f "$collect2name" &&
     20896           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
    2370320897          then
    23704           # We have reworked collect2
    23705           hardcode_direct_F77=yes
     20898          # We have reworked collect2
     20899          :
    2370620900          else
    23707           # We have old collect2
    23708           hardcode_direct_F77=unsupported
    23709           # It fails to find uninstalled libraries when the uninstalled
    23710           # path is not listed in the libpath.  Setting hardcode_minus_L
    23711           # to unsupported forces relinking
    23712           hardcode_minus_L_F77=yes
    23713           hardcode_libdir_flag_spec_F77='-L$libdir'
    23714           hardcode_libdir_separator_F77=
     20901          # We have old collect2
     20902          hardcode_direct_F77=unsupported
     20903          # It fails to find uninstalled libraries when the uninstalled
     20904          # path is not listed in the libpath.  Setting hardcode_minus_L
     20905          # to unsupported forces relinking
     20906          hardcode_minus_L_F77=yes
     20907          hardcode_libdir_flag_spec_F77='-L$libdir'
     20908          hardcode_libdir_separator_F77=
    2371520909          fi
    2371620910          ;;
     
    2372020914          shared_flag="$shared_flag "'${wl}-G'
    2372120915        fi
     20916        link_all_deplibs_F77=no
    2372220917      else
    2372320918        # not using gcc
    2372420919        if test "$host_cpu" = ia64; then
    23725         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    23726         # chokes on -Wl,-G. The following line is correct:
     20920        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
     20921        # chokes on -Wl,-G. The following line is correct:
    2372720922          shared_flag='-G'
    2372820923        else
     
    2373520930      fi
    2373620931
     20932      export_dynamic_flag_spec_F77='${wl}-bexpall'
    2373720933      # It seems that -bexpall does not export symbols beginning with
    2373820934      # underscore (_), so it is better to generate a list of symbols to export.
     
    2374220938        # -berok will link without error, but may produce a broken library.
    2374320939        allow_undefined_flag_F77='-berok'
    23744        # Determine the default libpath from the value encoded in an empty executable.
    23745        cat >conftest.$ac_ext <<_ACEOF
     20940        # Determine the default libpath from the value encoded in an
     20941        # empty executable.
     20942        if test "${lt_cv_aix_libpath+set}" = set; then
     20943  aix_libpath=$lt_cv_aix_libpath
     20944else
     20945  if ${lt_cv_aix_libpath__F77+:} false; then :
     20946  $as_echo_n "(cached) " >&6
     20947else
     20948  cat > conftest.$ac_ext <<_ACEOF
    2374620949      program main
    2374720950
    2374820951      end
    2374920952_ACEOF
    23750 rm -f conftest.$ac_objext conftest$ac_exeext
    23751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23752   (eval $ac_link) 2>conftest.er1
    23753   ac_status=$?
    23754   grep -v '^ *+' conftest.er1 >conftest.err
    23755   rm -f conftest.er1
    23756   cat conftest.err >&5
    23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23758   (exit $ac_status); } &&
    23759          { ac_try='test -z "$ac_f77_werror_flag"
    23760                          || test ! -s conftest.err'
    23761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23762   (eval $ac_try) 2>&5
    23763   ac_status=$?
    23764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23765   (exit $ac_status); }; } &&
    23766          { ac_try='test -s conftest$ac_exeext'
    23767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23768   (eval $ac_try) 2>&5
    23769   ac_status=$?
    23770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23771   (exit $ac_status); }; }; then
    23772 
    23773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    23774 }'`
    23775 # Check for a 64-bit object if we didn't find anything.
    23776 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    23777 }'`; fi
    23778 else
    23779   echo "$as_me: failed program was:" >&5
    23780 sed 's/^/| /' conftest.$ac_ext >&5
    23781 
    23782 fi
    23783 rm -f conftest.err conftest.$ac_objext \
    23784       conftest$ac_exeext conftest.$ac_ext
    23785 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    23786 
    23787        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
    23788         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    23789        else
     20953if ac_fn_f77_try_link "$LINENO"; then :
     20954
     20955  lt_aix_libpath_sed='
     20956      /Import File Strings/,/^$/ {
     20957          /^0/ {
     20958              s/^0  *\([^ ]*\) *$/\1/
     20959              p
     20960          }
     20961      }'
     20962  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     20963  # Check for a 64-bit object if we didn't find anything.
     20964  if test -z "$lt_cv_aix_libpath__F77"; then
     20965    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     20966  fi
     20967fi
     20968rm -f core conftest.err conftest.$ac_objext \
     20969    conftest$ac_exeext conftest.$ac_ext
     20970  if test -z "$lt_cv_aix_libpath__F77"; then
     20971    lt_cv_aix_libpath__F77="/usr/lib:/lib"
     20972  fi
     20973
     20974fi
     20975
     20976  aix_libpath=$lt_cv_aix_libpath__F77
     20977fi
     20978
     20979        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
     20980        archive_expsym_cmds_F77='$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"
     20981      else
    2379020982        if test "$host_cpu" = ia64; then
    2379120983          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
     
    2379320985          archive_expsym_cmds_F77="\$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"
    2379420986        else
    23795          # Determine the default libpath from the value encoded in an empty executable.
    23796          cat >conftest.$ac_ext <<_ACEOF
     20987         # Determine the default libpath from the value encoded in an
     20988         # empty executable.
     20989         if test "${lt_cv_aix_libpath+set}" = set; then
     20990  aix_libpath=$lt_cv_aix_libpath
     20991else
     20992  if ${lt_cv_aix_libpath__F77+:} false; then :
     20993  $as_echo_n "(cached) " >&6
     20994else
     20995  cat > conftest.$ac_ext <<_ACEOF
    2379720996      program main
    2379820997
    2379920998      end
    2380020999_ACEOF
    23801 rm -f conftest.$ac_objext conftest$ac_exeext
    23802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23803   (eval $ac_link) 2>conftest.er1
    23804   ac_status=$?
    23805   grep -v '^ *+' conftest.er1 >conftest.err
    23806   rm -f conftest.er1
    23807   cat conftest.err >&5
    23808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23809   (exit $ac_status); } &&
    23810          { ac_try='test -z "$ac_f77_werror_flag"
    23811                          || test ! -s conftest.err'
    23812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23813   (eval $ac_try) 2>&5
    23814   ac_status=$?
    23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23816   (exit $ac_status); }; } &&
    23817          { ac_try='test -s conftest$ac_exeext'
    23818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23819   (eval $ac_try) 2>&5
    23820   ac_status=$?
    23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23822   (exit $ac_status); }; }; then
    23823 
    23824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    23825 }'`
    23826 # Check for a 64-bit object if we didn't find anything.
    23827 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    23828 }'`; fi
    23829 else
    23830   echo "$as_me: failed program was:" >&5
    23831 sed 's/^/| /' conftest.$ac_ext >&5
    23832 
    23833 fi
    23834 rm -f conftest.err conftest.$ac_objext \
    23835       conftest$ac_exeext conftest.$ac_ext
    23836 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     21000if ac_fn_f77_try_link "$LINENO"; then :
     21001
     21002  lt_aix_libpath_sed='
     21003      /Import File Strings/,/^$/ {
     21004          /^0/ {
     21005              s/^0  *\([^ ]*\) *$/\1/
     21006              p
     21007          }
     21008      }'
     21009  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     21010  # Check for a 64-bit object if we didn't find anything.
     21011  if test -z "$lt_cv_aix_libpath__F77"; then
     21012    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     21013  fi
     21014fi
     21015rm -f core conftest.err conftest.$ac_objext \
     21016    conftest$ac_exeext conftest.$ac_ext
     21017  if test -z "$lt_cv_aix_libpath__F77"; then
     21018    lt_cv_aix_libpath__F77="/usr/lib:/lib"
     21019  fi
     21020
     21021fi
     21022
     21023  aix_libpath=$lt_cv_aix_libpath__F77
     21024fi
    2383721025
    2383821026         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
     
    2384121029          no_undefined_flag_F77=' ${wl}-bernotok'
    2384221030          allow_undefined_flag_F77=' ${wl}-berok'
    23843           # Exported symbols can be pulled into shared objects from archives
    23844           whole_archive_flag_spec_F77='$convenience'
     21031          if test "$with_gnu_ld" = yes; then
     21032            # We only use this code for GNU lds that support --whole-archive.
     21033            whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     21034          else
     21035            # Exported symbols can be pulled into shared objects from archives
     21036            whole_archive_flag_spec_F77='$convenience'
     21037          fi
    2384521038          archive_cmds_need_lc_F77=yes
    2384621039          # This is similar to how AIX traditionally builds its shared libraries.
     
    2385121044
    2385221045    amigaos*)
    23853       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    23854       hardcode_libdir_flag_spec_F77='-L$libdir'
    23855       hardcode_minus_L_F77=yes
    23856       # see comment about different semantics on the GNU ld section
    23857       ld_shlibs_F77=no
     21046      case $host_cpu in
     21047      powerpc)
     21048            # see comment about AmigaOS4 .so support
     21049            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     21050            archive_expsym_cmds_F77=''
     21051        ;;
     21052      m68k)
     21053            archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
     21054            hardcode_libdir_flag_spec_F77='-L$libdir'
     21055            hardcode_minus_L_F77=yes
     21056        ;;
     21057      esac
    2385821058      ;;
    2385921059
     
    2386221062      ;;
    2386321063
    23864     cygwin* | mingw* | pw32*)
     21064    cygwin* | mingw* | pw32* | cegcc*)
    2386521065      # When not using gcc, we currently assume that we are using
    2386621066      # Microsoft Visual C++.
    2386721067      # hardcode_libdir_flag_spec is actually meaningless, as there is
    2386821068      # no search path for DLLs.
    23869       hardcode_libdir_flag_spec_F77=' '
    23870       allow_undefined_flag_F77=unsupported
    23871       # Tell ltmain to make .lib files, not .a files.
    23872       libext=lib
    23873       # Tell ltmain to make .dll files, not .so files.
    23874       shrext_cmds=".dll"
    23875       # FIXME: Setting linknames here is a bad hack.
    23876       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
    23877       # The linker will automatically build a .lib file if we build a DLL.
    23878       old_archive_From_new_cmds_F77='true'
    23879       # FIXME: Should let the user specify the lib program.
    23880       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
    23881       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
    23882       enable_shared_with_static_runtimes_F77=yes
     21069      case $cc_basename in
     21070      cl*)
     21071        # Native MSVC
     21072        hardcode_libdir_flag_spec_F77=' '
     21073        allow_undefined_flag_F77=unsupported
     21074        always_export_symbols_F77=yes
     21075        file_list_spec_F77='@'
     21076        # Tell ltmain to make .lib files, not .a files.
     21077        libext=lib
     21078        # Tell ltmain to make .dll files, not .so files.
     21079        shrext_cmds=".dll"
     21080        # FIXME: Setting linknames here is a bad hack.
     21081        archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     21082        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     21083            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     21084          else
     21085            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     21086          fi~
     21087          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     21088          linknames='
     21089        # The linker will not automatically build a static lib if we build a DLL.
     21090        # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
     21091        enable_shared_with_static_runtimes_F77=yes
     21092        exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
     21093        export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
     21094        # Don't use ranlib
     21095        old_postinstall_cmds_F77='chmod 644 $oldlib'
     21096        postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
     21097          lt_tool_outputfile="@TOOL_OUTPUT@"~
     21098          case $lt_outputfile in
     21099            *.exe|*.EXE) ;;
     21100            *)
     21101              lt_outputfile="$lt_outputfile.exe"
     21102              lt_tool_outputfile="$lt_tool_outputfile.exe"
     21103              ;;
     21104          esac~
     21105          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     21106            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     21107            $RM "$lt_outputfile.manifest";
     21108          fi'
     21109        ;;
     21110      *)
     21111        # Assume MSVC wrapper
     21112        hardcode_libdir_flag_spec_F77=' '
     21113        allow_undefined_flag_F77=unsupported
     21114        # Tell ltmain to make .lib files, not .a files.
     21115        libext=lib
     21116        # Tell ltmain to make .dll files, not .so files.
     21117        shrext_cmds=".dll"
     21118        # FIXME: Setting linknames here is a bad hack.
     21119        archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
     21120        # The linker will automatically build a .lib file if we build a DLL.
     21121        old_archive_from_new_cmds_F77='true'
     21122        # FIXME: Should let the user specify the lib program.
     21123        old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
     21124        enable_shared_with_static_runtimes_F77=yes
     21125        ;;
     21126      esac
    2388321127      ;;
    2388421128
    2388521129    darwin* | rhapsody*)
    23886       case $host_os in
    23887         rhapsody* | darwin1.[012])
    23888          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
    23889          ;;
    23890        *) # Darwin 1.3 on
    23891          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    23892            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
    23893          else
    23894            case ${MACOSX_DEPLOYMENT_TARGET} in
    23895              10.[012])
    23896                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
    23897                ;;
    23898              10.*)
    23899                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
    23900                ;;
    23901            esac
    23902          fi
    23903          ;;
    23904       esac
    23905       archive_cmds_need_lc_F77=no
    23906       hardcode_direct_F77=no
    23907       hardcode_automatic_F77=yes
    23908       hardcode_shlibpath_var_F77=unsupported
    23909       whole_archive_flag_spec_F77=''
    23910       link_all_deplibs_F77=yes
    23911     if test "$GCC" = yes ; then
    23912         output_verbose_link_cmd='echo'
    23913         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    23914       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    23915       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    23916       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    23917       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    23918     else
    23919       case $cc_basename in
    23920         xlc*)
    23921          output_verbose_link_cmd='echo'
    23922          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
    23923          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    23924           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    23925          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    23926           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    23927           ;;
    23928        *)
    23929          ld_shlibs_F77=no
    23930           ;;
    23931       esac
    23932     fi
     21130
     21131
     21132  archive_cmds_need_lc_F77=no
     21133  hardcode_direct_F77=no
     21134  hardcode_automatic_F77=yes
     21135  hardcode_shlibpath_var_F77=unsupported
     21136  if test "$lt_cv_ld_force_load" = "yes"; then
     21137    whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
     21138    compiler_needs_object_F77=yes
     21139  else
     21140    whole_archive_flag_spec_F77=''
     21141  fi
     21142  link_all_deplibs_F77=yes
     21143  allow_undefined_flag_F77="$_lt_dar_allow_undefined"
     21144  case $cc_basename in
     21145     ifort*) _lt_dar_can_shared=yes ;;
     21146     *) _lt_dar_can_shared=$GCC ;;
     21147  esac
     21148  if test "$_lt_dar_can_shared" = "yes"; then
     21149    output_verbose_link_cmd=func_echo_all
     21150    archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
     21151    module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     21152    archive_expsym_cmds_F77="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}"
     21153    module_expsym_cmds_F77="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}"
     21154
     21155  else
     21156  ld_shlibs_F77=no
     21157  fi
     21158
    2393321159      ;;
    2393421160
     
    2393721163      hardcode_libdir_flag_spec_F77='-L$libdir'
    2393821164      hardcode_shlibpath_var_F77=no
    23939       ;;
    23940 
    23941     freebsd1*)
    23942       ld_shlibs_F77=no
    2394321165      ;;
    2394421166
     
    2395521177
    2395621178    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    23957     freebsd2*)
     21179    freebsd2.*)
    2395821180      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    2395921181      hardcode_direct_F77=yes
     
    2396321185
    2396421186    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    23965     freebsd* | kfreebsd*-gnu | dragonfly*)
    23966       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     21187    freebsd* | dragonfly*)
     21188      archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    2396721189      hardcode_libdir_flag_spec_F77='-R$libdir'
    2396821190      hardcode_direct_F77=yes
     
    2397221194    hpux9*)
    2397321195      if test "$GCC" = yes; then
    23974         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     21196        archive_cmds_F77='$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'
    2397521197      else
    23976         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
     21198        archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    2397721199      fi
    2397821200      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
     
    2398721209
    2398821210    hpux10*)
    23989       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    23990         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     21211      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     21212        archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    2399121213      else
    2399221214        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     
    2399521217        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
    2399621218        hardcode_libdir_separator_F77=:
    23997 
    2399821219        hardcode_direct_F77=yes
     21220        hardcode_direct_absolute_F77=yes
    2399921221        export_dynamic_flag_spec_F77='${wl}-E'
    24000 
    2400121222        # hardcode_minus_L: Not really in the search PATH,
    2400221223        # but as the default location of the library.
     
    2400621227
    2400721228    hpux11*)
    24008       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     21229      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
    2400921230        case $host_cpu in
    2401021231        hppa*64*)
     
    2401221233          ;;
    2401321234        ia64*)
    24014           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     21235          archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    2401521236          ;;
    2401621237        *)
    24017           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     21238          archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    2401821239          ;;
    2401921240        esac
     
    2402721248          ;;
    2402821249        *)
    24029           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     21250        archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    2403021251          ;;
    2403121252        esac
     
    2403721258        case $host_cpu in
    2403821259        hppa*64*|ia64*)
    24039           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
    2404021260          hardcode_direct_F77=no
    2404121261          hardcode_shlibpath_var_F77=no
     
    2404321263        *)
    2404421264          hardcode_direct_F77=yes
     21265          hardcode_direct_absolute_F77=yes
    2404521266          export_dynamic_flag_spec_F77='${wl}-E'
    2404621267
     
    2405521276    irix5* | irix6* | nonstopux*)
    2405621277      if test "$GCC" = yes; then
    24057         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     21278        archive_cmds_F77='$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'
     21279        # Try to use the -exported_symbol ld option, if it does not
     21280        # work, assume that -exports_file does not work either and
     21281        # implicitly export all symbols.
     21282        # This should be the same for all languages, so no per-tag cache variable.
     21283        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
     21284$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
     21285if ${lt_cv_irix_exported_symbol+:} false; then :
     21286  $as_echo_n "(cached) " >&6
     21287else
     21288  save_LDFLAGS="$LDFLAGS"
     21289           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
     21290           cat > conftest.$ac_ext <<_ACEOF
     21291
     21292      subroutine foo
     21293      end
     21294_ACEOF
     21295if ac_fn_f77_try_link "$LINENO"; then :
     21296  lt_cv_irix_exported_symbol=yes
     21297else
     21298  lt_cv_irix_exported_symbol=no
     21299fi
     21300rm -f core conftest.err conftest.$ac_objext \
     21301    conftest$ac_exeext conftest.$ac_ext
     21302           LDFLAGS="$save_LDFLAGS"
     21303fi
     21304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
     21305$as_echo "$lt_cv_irix_exported_symbol" >&6; }
     21306        if test "$lt_cv_irix_exported_symbol" = yes; then
     21307          archive_expsym_cmds_F77='$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'
     21308        fi
    2405821309      else
    24059         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    24060         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
     21310        archive_cmds_F77='$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'
     21311        archive_expsym_cmds_F77='$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'
    2406121312      fi
     21313      archive_cmds_need_lc_F77='no'
    2406221314      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
    2406321315      hardcode_libdir_separator_F77=:
     21316      inherit_rpath_F77=yes
    2406421317      link_all_deplibs_F77=yes
    2406521318      ;;
    2406621319
    24067     netbsd*)
    24068       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     21320    netbsd* | netbsdelf*-gnu)
     21321      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    2406921322        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    2407021323      else
     
    2408421337      ;;
    2408521338
     21339    *nto* | *qnx*)
     21340      ;;
     21341
    2408621342    openbsd*)
    24087       hardcode_direct_F77=yes
    24088       hardcode_shlibpath_var_F77=no
    24089       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    24090         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    24091         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
    24092         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
    24093         export_dynamic_flag_spec_F77='${wl}-E'
     21343      if test -f /usr/libexec/ld.so; then
     21344        hardcode_direct_F77=yes
     21345        hardcode_shlibpath_var_F77=no
     21346        hardcode_direct_absolute_F77=yes
     21347        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     21348          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     21349          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     21350          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
     21351          export_dynamic_flag_spec_F77='${wl}-E'
     21352        else
     21353          case $host_os in
     21354           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
     21355             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     21356             hardcode_libdir_flag_spec_F77='-R$libdir'
     21357             ;;
     21358           *)
     21359             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     21360             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
     21361             ;;
     21362          esac
     21363        fi
    2409421364      else
    24095        case $host_os in
    24096          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
    24097            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    24098            hardcode_libdir_flag_spec_F77='-R$libdir'
    24099            ;;
    24100          *)
    24101            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    24102            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
    24103            ;;
    24104        esac
     21365        ld_shlibs_F77=no
    2410521366      fi
    2410621367      ;;
     
    2411021371      hardcode_minus_L_F77=yes
    2411121372      allow_undefined_flag_F77=unsupported
    24112       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    24113       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
     21373      archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
     21374      old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    2411421375      ;;
    2411521376
     
    2411721378      if test "$GCC" = yes; then
    2411821379        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
    24119         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     21380        archive_cmds_F77='$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'
    2412021381      else
    2412121382        allow_undefined_flag_F77=' -expect_unresolved \*'
    24122         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     21383        archive_cmds_F77='$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'
    2412321384      fi
     21385      archive_cmds_need_lc_F77='no'
    2412421386      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
    2412521387      hardcode_libdir_separator_F77=:
     
    2412921391      if test "$GCC" = yes; then
    2413021392        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
    24131         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     21393        archive_cmds_F77='$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'
    2413221394        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
    2413321395      else
    2413421396        allow_undefined_flag_F77=' -expect_unresolved \*'
    24135         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    24136         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
    24137         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
     21397        archive_cmds_F77='$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'
     21398        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
     21399        $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'
    2413821400
    2413921401        # Both c and cxx compiler support -rpath directly
    2414021402        hardcode_libdir_flag_spec_F77='-rpath $libdir'
    2414121403      fi
     21404      archive_cmds_need_lc_F77='no'
    2414221405      hardcode_libdir_separator_F77=:
    2414321406      ;;
    2414421407
    2414521408    solaris*)
    24146       no_undefined_flag_F77=' -z text'
     21409      no_undefined_flag_F77=' -z defs'
    2414721410      if test "$GCC" = yes; then
    2414821411        wlarc='${wl}'
    24149         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    24150         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    24151           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
     21412        archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     21413        archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     21414          $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'
    2415221415      else
    24153         wlarc=''
    24154         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    24155         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    24156         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
     21416        case `$CC -V 2>&1` in
     21417        *"Compilers 5.0"*)
     21418          wlarc=''
     21419          archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     21420          archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     21421          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
     21422          ;;
     21423        *)
     21424          wlarc='${wl}'
     21425          archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
     21426          archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
     21427          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
     21428          ;;
     21429        esac
    2415721430      fi
    2415821431      hardcode_libdir_flag_spec_F77='-R$libdir'
     
    2416121434      solaris2.[0-5] | solaris2.[0-5].*) ;;
    2416221435      *)
    24163         # The compiler driver will combine linker options so we
    24164         # cannot just pass the convience library names through
    24165         # without $wl, iff we do not link with $LD.
    24166         # Luckily, gcc supports the same syntax we need for Sun Studio.
    24167         # Supported since Solaris 2.6 (maybe 2.5.1?)
    24168         case $wlarc in
    24169         '')
    24170           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
    24171         *)
    24172           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
    24173         esac ;;
     21436        # The compiler driver will combine and reorder linker options,
     21437        # but understands `-z linker_flag'.  GCC discards it without `$wl',
     21438        # but is careful enough not to reorder.
     21439        # Supported since Solaris 2.6 (maybe 2.5.1?)
     21440        if test "$GCC" = yes; then
     21441          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     21442        else
     21443          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
     21444        fi
     21445        ;;
    2417421446      esac
    2417521447      link_all_deplibs_F77=yes
     
    2422821500      ;;
    2422921501
    24230     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
     21502    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
    2423121503      no_undefined_flag_F77='${wl}-z,text'
    2423221504      archive_cmds_need_lc_F77=no
     
    2425421526      archive_cmds_need_lc_F77=no
    2425521527      hardcode_shlibpath_var_F77=no
    24256       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     21528      hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
    2425721529      hardcode_libdir_separator_F77=':'
    2425821530      link_all_deplibs_F77=yes
     
    2426121533
    2426221534      if test "$GCC" = yes; then
    24263         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    24264         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     21535        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     21536        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    2426521537      else
    24266         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    24267         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     21538        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     21539        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    2426821540      fi
    2426921541      ;;
     
    2427921551      ;;
    2428021552    esac
     21553
     21554    if test x$host_vendor = xsni; then
     21555      case $host in
     21556      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     21557        export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
     21558        ;;
     21559      esac
     21560    fi
    2428121561  fi
    2428221562
    24283 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
    24284 echo "${ECHO_T}$ld_shlibs_F77" >&6
     21563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
     21564$as_echo "$ld_shlibs_F77" >&6; }
    2428521565test "$ld_shlibs_F77" = no && can_build_shared=no
     21566
     21567with_gnu_ld_F77=$with_gnu_ld
     21568
     21569
     21570
     21571
     21572
    2428621573
    2428721574#
     
    2430221589      # systems, -lgcc has to come before -lc. If gcc already passes -lc
    2430321590      # to ld, don't add -lc before -lgcc.
    24304       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
    24305 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    24306       $rm conftest*
    24307       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    24308 
    24309       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     21591      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
     21592$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
     21593if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
     21594  $as_echo_n "(cached) " >&6
     21595else
     21596  $RM conftest*
     21597        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     21598
     21599        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    2431021600  (eval $ac_compile) 2>&5
    2431121601  ac_status=$?
    24312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24313   (exit $ac_status); } 2>conftest.err; then
    24314         soname=conftest
    24315         lib=conftest
    24316         libobjs=conftest.$ac_objext
    24317         deplibs=
    24318         wl=$lt_prog_compiler_wl_F77
    24319         pic_flag=$lt_prog_compiler_pic_F77
    24320         compiler_flags=-v
    24321         linker_flags=-v
    24322         verstring=
    24323         output_objdir=.
    24324         libname=conftest
    24325         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
    24326         allow_undefined_flag_F77=
    24327         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
    24328   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
     21602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     21603  test $ac_status = 0; } 2>conftest.err; then
     21604          soname=conftest
     21605          lib=conftest
     21606          libobjs=conftest.$ac_objext
     21607          deplibs=
     21608          wl=$lt_prog_compiler_wl_F77
     21609          pic_flag=$lt_prog_compiler_pic_F77
     21610          compiler_flags=-v
     21611          linker_flags=-v
     21612          verstring=
     21613          output_objdir=.
     21614          libname=conftest
     21615          lt_save_allow_undefined_flag=$allow_undefined_flag_F77
     21616          allow_undefined_flag_F77=
     21617          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
     21618  (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
    2432921619  ac_status=$?
    24330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24331   (exit $ac_status); }
    24332         then
    24333           archive_cmds_need_lc_F77=no
    24334         else
    24335           archive_cmds_need_lc_F77=yes
    24336         fi
    24337         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
    24338       else
    24339         cat conftest.err 1>&5
    24340       fi
    24341       $rm conftest*
    24342       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
    24343 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
     21620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     21621  test $ac_status = 0; }
     21622          then
     21623            lt_cv_archive_cmds_need_lc_F77=no
     21624          else
     21625            lt_cv_archive_cmds_need_lc_F77=yes
     21626          fi
     21627          allow_undefined_flag_F77=$lt_save_allow_undefined_flag
     21628        else
     21629          cat conftest.err 1>&5
     21630        fi
     21631        $RM conftest*
     21632
     21633fi
     21634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
     21635$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
     21636      archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
    2434421637      ;;
    2434521638    esac
     
    2434821641esac
    2434921642
    24350 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
    24351 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
     21643
     21644
     21645
     21646
     21647
     21648
     21649
     21650
     21651
     21652
     21653
     21654
     21655
     21656
     21657
     21658
     21659
     21660
     21661
     21662
     21663
     21664
     21665
     21666
     21667
     21668
     21669
     21670
     21671
     21672
     21673
     21674
     21675
     21676
     21677
     21678
     21679
     21680
     21681
     21682
     21683
     21684
     21685
     21686
     21687
     21688
     21689
     21690
     21691
     21692
     21693
     21694
     21695
     21696
     21697
     21698
     21699
     21700
     21701
     21702
     21703
     21704    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
     21705$as_echo_n "checking dynamic linker characteristics... " >&6; }
     21706
    2435221707library_names_spec=
    2435321708libname_spec='lib$name'
     
    2436321718dynamic_linker="$host_os ld.so"
    2436421719sys_lib_dlsearch_path_spec="/lib /usr/lib"
    24365 if test "$GCC" = yes; then
    24366   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    24367   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    24368     # if the path contains ";" then we assume it to be the separator
    24369     # otherwise default to the standard path separator (i.e. ":") - it is
    24370     # assumed that no part of a normal pathname contains ";" but that should
    24371     # okay in the real world where ";" in dirpaths is itself problematic.
    24372     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    24373   else
    24374     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    24375   fi
    24376 else
    24377   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    24378 fi
    2437921720need_lib_prefix=unknown
    2438021721hardcode_into_libs=no
     
    2438621727case $host_os in
    2438721728aix3*)
    24388   version_type=linux
     21729  version_type=linux # correct to gnu/linux during the next big refactor
    2438921730  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
    2439021731  shlibpath_var=LIBPATH
     
    2439421735  ;;
    2439521736
    24396 aix4* | aix5*)
    24397   version_type=linux
     21737aix[4-9]*)
     21738  version_type=linux # correct to gnu/linux during the next big refactor
    2439821739  need_lib_prefix=no
    2439921740  need_version=no
     
    2441321754      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    2441421755           echo ' yes '
    24415            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
     21756           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
    2441621757        :
    2441721758      else
     
    2443921780
    2444021781amigaos*)
    24441   library_names_spec='$libname.ixlibrary $libname.a'
    24442   # Create ${libname}_ixlibrary.a entries in /sys/libs.
    24443   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
     21782  case $host_cpu in
     21783  powerpc)
     21784    # Since July 2007 AmigaOS4 officially supports .so libraries.
     21785    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
     21786    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     21787    ;;
     21788  m68k)
     21789    library_names_spec='$libname.ixlibrary $libname.a'
     21790    # Create ${libname}_ixlibrary.a entries in /sys/libs.
     21791    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'
     21792    ;;
     21793  esac
    2444421794  ;;
    2444521795
     
    2445121801
    2445221802bsdi[45]*)
    24453   version_type=linux
     21803  version_type=linux # correct to gnu/linux during the next big refactor
    2445421804  need_version=no
    2445521805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     
    2446421814  ;;
    2446521815
    24466 cygwin* | mingw* | pw32*)
     21816cygwin* | mingw* | pw32* | cegcc*)
    2446721817  version_type=windows
    2446821818  shrext_cmds=".dll"
     
    2447021820  need_lib_prefix=no
    2447121821
    24472   case $GCC,$host_os in
    24473   yes,cygwin* | yes,mingw* | yes,pw32*)
     21822  case $GCC,$cc_basename in
     21823  yes,*)
     21824    # gcc
    2447421825    library_names_spec='$libname.dll.a'
    2447521826    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    2447621827    postinstall_cmds='base_file=`basename \${file}`~
    24477       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
     21828      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
    2447821829      dldir=$destdir/`dirname \$dlpath`~
    2447921830      test -d \$dldir || mkdir -p \$dldir~
    2448021831      $install_prog $dir/$dlname \$dldir/$dlname~
    24481       chmod a+x \$dldir/$dlname'
     21832      chmod a+x \$dldir/$dlname~
     21833      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
     21834        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
     21835      fi'
    2448221836    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
    2448321837      dlpath=$dir/\$dldll~
    24484        $rm \$dlpath'
     21838       $RM \$dlpath'
    2448521839    shlibpath_overrides_runpath=yes
    2448621840
     
    2448921843      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    2449021844      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    24491       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
     21845
    2449221846      ;;
    24493     mingw*)
     21847    mingw* | cegcc*)
    2449421848      # MinGW DLLs use traditional 'lib' prefix
    2449521849      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    24496       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    24497       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
    24498         # It is most probably a Windows format PATH printed by
    24499         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    24500         # path with ; separators, and with drive letters. We can handle the
    24501         # drive letters (cygwin fileutils understands them), so leave them,
    24502         # especially as we might pass files found there to a mingw objdump,
    24503         # which wouldn't understand a cygwinified path. Ahh.
    24504         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    24505       else
    24506         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    24507       fi
    2450821850      ;;
    2450921851    pw32*)
     
    2451221854      ;;
    2451321855    esac
     21856    dynamic_linker='Win32 ld.exe'
    2451421857    ;;
    2451521858
    24516   linux*)
    24517     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
    24518       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    24519       supports_anon_versioning=no
    24520       case `$LD -v 2>/dev/null` in
    24521         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
    24522         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    24523         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    24524         *\ 2.11.*) ;; # other 2.11 versions
    24525         *) supports_anon_versioning=yes ;;
    24526       esac
    24527       if test $supports_anon_versioning = yes; then
    24528         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
    24529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    24530 $echo "local: *; };" >> $output_objdir/$libname.ver~
    24531         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     21859  *,cl*)
     21860    # Native MSVC
     21861    libname_spec='$name'
     21862    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     21863    library_names_spec='${libname}.dll.lib'
     21864
     21865    case $build_os in
     21866    mingw*)
     21867      sys_lib_search_path_spec=
     21868      lt_save_ifs=$IFS
     21869      IFS=';'
     21870      for lt_path in $LIB
     21871      do
     21872        IFS=$lt_save_ifs
     21873        # Let DOS variable expansion print the short 8.3 style file name.
     21874        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
     21875        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
     21876      done
     21877      IFS=$lt_save_ifs
     21878      # Convert to MSYS style.
     21879      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
     21880      ;;
     21881    cygwin*)
     21882      # Convert to unix form, then to dos form, then back to unix form
     21883      # but this time dos style (no spaces!) so that the unix form looks
     21884      # like /cygdrive/c/PROGRA~1:/cygdr...
     21885      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
     21886      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
     21887      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     21888      ;;
     21889    *)
     21890      sys_lib_search_path_spec="$LIB"
     21891      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
     21892        # It is most probably a Windows format PATH.
     21893        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    2453221894      else
    24533         $archive_expsym_cmds="$archive_cmds"
     21895        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
    2453421896      fi
    24535     else
    24536       ld_shlibs=no
    24537     fi
     21897      # FIXME: find the short name or the path components, as spaces are
     21898      # common. (e.g. "Program Files" -> "PROGRA~1")
     21899      ;;
     21900    esac
     21901
     21902    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     21903    postinstall_cmds='base_file=`basename \${file}`~
     21904      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
     21905      dldir=$destdir/`dirname \$dlpath`~
     21906      test -d \$dldir || mkdir -p \$dldir~
     21907      $install_prog $dir/$dlname \$dldir/$dlname'
     21908    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     21909      dlpath=$dir/\$dldll~
     21910       $RM \$dlpath'
     21911    shlibpath_overrides_runpath=yes
     21912    dynamic_linker='Win32 link.exe'
    2453821913    ;;
    2453921914
    2454021915  *)
     21916    # Assume MSVC wrapper
    2454121917    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
     21918    dynamic_linker='Win32 ld.exe'
    2454221919    ;;
    2454321920  esac
    24544   dynamic_linker='Win32 ld.exe'
    2454521921  # FIXME: first we should search . and the directory the executable is in
    2454621922  shlibpath_var=PATH
     
    2455221928  need_lib_prefix=no
    2455321929  need_version=no
    24554   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
     21930  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
    2455521931  soname_spec='${libname}${release}${major}$shared_ext'
    2455621932  shlibpath_overrides_runpath=yes
    2455721933  shlibpath_var=DYLD_LIBRARY_PATH
    2455821934  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    24559   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    24560   if test "$GCC" = yes; then
    24561     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
    24562   else
    24563     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    24564   fi
     21935
    2456521936  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    2456621937  ;;
    2456721938
    2456821939dgux*)
    24569   version_type=linux
     21940  version_type=linux # correct to gnu/linux during the next big refactor
    2457021941  need_lib_prefix=no
    2457121942  need_version=no
     
    2457321944  soname_spec='${libname}${release}${shared_ext}$major'
    2457421945  shlibpath_var=LD_LIBRARY_PATH
    24575   ;;
    24576 
    24577 freebsd1*)
    24578   dynamic_linker=no
    24579   ;;
    24580 
    24581 kfreebsd*-gnu)
    24582   version_type=linux
    24583   need_lib_prefix=no
    24584   need_version=no
    24585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    24586   soname_spec='${libname}${release}${shared_ext}$major'
    24587   shlibpath_var=LD_LIBRARY_PATH
    24588   shlibpath_overrides_runpath=no
    24589   hardcode_into_libs=yes
    24590   dynamic_linker='GNU ld.so'
    2459121946  ;;
    2459221947
     
    2459821953  else
    2459921954    case $host_os in
    24600     freebsd[123]*) objformat=aout ;;
     21955    freebsd[23].*) objformat=aout ;;
    2460121956    *) objformat=elf ;;
    2460221957    esac
    2460321958  fi
    24604   # Handle Gentoo/FreeBSD as it was Linux
    24605   case $host_vendor in
    24606     gentoo)
    24607       version_type=linux ;;
    24608     *)
    24609       version_type=freebsd-$objformat ;;
    24610   esac
    24611 
     21959  version_type=freebsd-$objformat
    2461221960  case $version_type in
    2461321961    freebsd-elf*)
     
    2462021968      need_version=yes
    2462121969      ;;
    24622     linux)
    24623       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    24624       soname_spec='${libname}${release}${shared_ext}$major'
    24625       need_lib_prefix=no
    24626       need_version=no
    24627       ;;
    2462821970  esac
    2462921971  shlibpath_var=LD_LIBRARY_PATH
    2463021972  case $host_os in
    24631   freebsd2*)
     21973  freebsd2.*)
    2463221974    shlibpath_overrides_runpath=yes
    2463321975    ;;
     
    2464121983    hardcode_into_libs=yes
    2464221984    ;;
    24643   freebsd*) # from 4.6 on
     21985  *) # from 4.6 on, and DragonFly
    2464421986    shlibpath_overrides_runpath=yes
    2464521987    hardcode_into_libs=yes
     
    2464821990  ;;
    2464921991
    24650 gnu*)
    24651   version_type=linux
     21992haiku*)
     21993  version_type=linux # correct to gnu/linux during the next big refactor
    2465221994  need_lib_prefix=no
    2465321995  need_version=no
     21996  dynamic_linker="$host_os runtime_loader"
    2465421997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    2465521998  soname_spec='${libname}${release}${shared_ext}$major'
    24656   shlibpath_var=LD_LIBRARY_PATH
     21999  shlibpath_var=LIBRARY_PATH
     22000  shlibpath_overrides_runpath=yes
     22001  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
    2465722002  hardcode_into_libs=yes
    2465822003  ;;
     
    2468022025    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    2468122026    ;;
    24682    hppa*64*)
    24683      shrext_cmds='.sl'
    24684      hardcode_into_libs=yes
    24685      dynamic_linker="$host_os dld.sl"
    24686      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    24687      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    24688      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    24689      soname_spec='${libname}${release}${shared_ext}$major'
    24690      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    24691      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    24692      ;;
    24693    *)
     22027  hppa*64*)
     22028    shrext_cmds='.sl'
     22029    hardcode_into_libs=yes
     22030    dynamic_linker="$host_os dld.sl"
     22031    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
     22032    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     22033    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     22034    soname_spec='${libname}${release}${shared_ext}$major'
     22035    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
     22036    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     22037    ;;
     22038  *)
    2469422039    shrext_cmds='.sl'
    2469522040    dynamic_linker="$host_os dld.sl"
     
    2470022045    ;;
    2470122046  esac
    24702   # HP-UX runs *really* slowly unless shared libraries are mode 555.
     22047  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
    2470322048  postinstall_cmds='chmod 555 $lib'
     22049  # or fails outright, so override atomically:
     22050  install_override_mode=555
    2470422051  ;;
    2470522052
    24706 interix3*)
    24707   version_type=linux
     22053interix[3-9]*)
     22054  version_type=linux # correct to gnu/linux during the next big refactor
    2470822055  need_lib_prefix=no
    2470922056  need_version=no
     
    2472122068    *)
    2472222069        if test "$lt_cv_prog_gnu_ld" = yes; then
    24723                 version_type=linux
     22070                version_type=linux # correct to gnu/linux during the next big refactor
    2472422071        else
    2472522072                version_type=irix
     
    2475822105  ;;
    2475922106
    24760 # This must be Linux ELF.
    24761 linux*)
    24762   version_type=linux
     22107# This must be glibc/ELF.
     22108linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
     22109  version_type=linux # correct to gnu/linux during the next big refactor
    2476322110  need_lib_prefix=no
    2476422111  need_version=no
     
    2476822115  shlibpath_var=LD_LIBRARY_PATH
    2476922116  shlibpath_overrides_runpath=no
     22117
     22118  # Some binutils ld are patched to set DT_RUNPATH
     22119  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
     22120  $as_echo_n "(cached) " >&6
     22121else
     22122  lt_cv_shlibpath_overrides_runpath=no
     22123    save_LDFLAGS=$LDFLAGS
     22124    save_libdir=$libdir
     22125    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
     22126         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
     22127    cat > conftest.$ac_ext <<_ACEOF
     22128      program main
     22129
     22130      end
     22131_ACEOF
     22132if ac_fn_f77_try_link "$LINENO"; then :
     22133  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
     22134  lt_cv_shlibpath_overrides_runpath=yes
     22135fi
     22136fi
     22137rm -f core conftest.err conftest.$ac_objext \
     22138    conftest$ac_exeext conftest.$ac_ext
     22139    LDFLAGS=$save_LDFLAGS
     22140    libdir=$save_libdir
     22141
     22142fi
     22143
     22144  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
     22145
    2477022146  # This implies no fast_install, which is unacceptable.
    2477122147  # Some rework will be needed to allow for fast_install
     
    2477522151  # Append ld.so.conf contents to the search path
    2477622152  if test -f /etc/ld.so.conf; then
    24777     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     22153    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' ' '`
    2477822154    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    2477922155  fi
     
    2478822164  ;;
    2478922165
    24790 knetbsd*-gnu)
     22166netbsdelf*-gnu)
    2479122167  version_type=linux
    2479222168  need_lib_prefix=no
     
    2479722173  shlibpath_overrides_runpath=no
    2479822174  hardcode_into_libs=yes
    24799   dynamic_linker='GNU ld.so'
     22175  dynamic_linker='NetBSD ld.elf_so'
    2480022176  ;;
    2480122177
     
    2480422180  need_lib_prefix=no
    2480522181  need_version=no
    24806   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     22182  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    2480722183    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    2480822184    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     
    2481922195
    2482022196newsos6)
    24821   version_type=linux
     22197  version_type=linux # correct to gnu/linux during the next big refactor
    2482222198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2482322199  shlibpath_var=LD_LIBRARY_PATH
     
    2482522201  ;;
    2482622202
    24827 nto-qnx*)
    24828   version_type=linux
     22203*nto* | *qnx*)
     22204  version_type=qnx
    2482922205  need_lib_prefix=no
    2483022206  need_version=no
     
    2483222208  soname_spec='${libname}${release}${shared_ext}$major'
    2483322209  shlibpath_var=LD_LIBRARY_PATH
    24834   shlibpath_overrides_runpath=yes
     22210  shlibpath_overrides_runpath=no
     22211  hardcode_into_libs=yes
     22212  dynamic_linker='ldqnx.so'
    2483522213  ;;
    2483622214
     
    2484122219  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
    2484222220  case $host_os in
    24843     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    24844     *)                         need_version=no  ;;
     22221    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
     22222    *)                          need_version=no  ;;
    2484522223  esac
    2484622224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    2484722225  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    2484822226  shlibpath_var=LD_LIBRARY_PATH
    24849   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     22227  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    2485022228    case $host_os in
    2485122229      openbsd2.[89] | openbsd2.[89].*)
     
    2488122259  ;;
    2488222260
     22261rdos*)
     22262  dynamic_linker=no
     22263  ;;
     22264
    2488322265solaris*)
    24884   version_type=linux
     22266  version_type=linux # correct to gnu/linux during the next big refactor
    2488522267  need_lib_prefix=no
    2488622268  need_version=no
     
    2490722289
    2490822290sysv4 | sysv4.3*)
    24909   version_type=linux
     22291  version_type=linux # correct to gnu/linux during the next big refactor
    2491022292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2491122293  soname_spec='${libname}${release}${shared_ext}$major'
     
    2491522297      shlibpath_overrides_runpath=no
    2491622298      need_lib_prefix=no
    24917       export_dynamic_flag_spec='${wl}-Blargedynsym'
    2491822299      runpath_var=LD_RUN_PATH
    2491922300      ;;
     
    2493222313sysv4*MP*)
    2493322314  if test -d /usr/nec ;then
    24934     version_type=linux
     22315    version_type=linux # correct to gnu/linux during the next big refactor
    2493522316    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    2493622317    soname_spec='$libname${shared_ext}.$major'
     
    2494622327  soname_spec='${libname}${release}${shared_ext}$major'
    2494722328  shlibpath_var=LD_LIBRARY_PATH
     22329  shlibpath_overrides_runpath=yes
    2494822330  hardcode_into_libs=yes
    2494922331  if test "$with_gnu_ld" = yes; then
    2495022332    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    24951     shlibpath_overrides_runpath=no
    2495222333  else
    2495322334    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    24954     shlibpath_overrides_runpath=yes
    2495522335    case $host_os in
    2495622336      sco3.2v5*)
     
    2496222342  ;;
    2496322343
     22344tpf*)
     22345  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
     22346  version_type=linux # correct to gnu/linux during the next big refactor
     22347  need_lib_prefix=no
     22348  need_version=no
     22349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     22350  shlibpath_var=LD_LIBRARY_PATH
     22351  shlibpath_overrides_runpath=no
     22352  hardcode_into_libs=yes
     22353  ;;
     22354
    2496422355uts4*)
    24965   version_type=linux
     22356  version_type=linux # correct to gnu/linux during the next big refactor
    2496622357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2496722358  soname_spec='${libname}${release}${shared_ext}$major'
     
    2497322364  ;;
    2497422365esac
    24975 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
    24976 echo "${ECHO_T}$dynamic_linker" >&6
     22366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
     22367$as_echo "$dynamic_linker" >&6; }
    2497722368test "$dynamic_linker" = no && can_build_shared=no
    2497822369
     
    2498222373fi
    2498322374
    24984 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
    24985 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
     22375if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
     22376  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
     22377fi
     22378if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
     22379  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
     22380fi
     22381
     22382
     22383
     22384
     22385
     22386
     22387
     22388
     22389
     22390
     22391
     22392
     22393
     22394
     22395
     22396
     22397
     22398
     22399
     22400
     22401
     22402
     22403
     22404
     22405
     22406
     22407
     22408
     22409
     22410
     22411
     22412
     22413
     22414
     22415
     22416
     22417
     22418
     22419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
     22420$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
    2498622421hardcode_action_F77=
    24987 if test -n "$hardcode_libdir_flag_spec_F77" || \
    24988    test -n "$runpath_var_F77" || \
     22422if test -n "$hardcode_libdir_flag_spec_F77" ||
     22423   test -n "$runpath_var_F77" ||
    2498922424   test "X$hardcode_automatic_F77" = "Xyes" ; then
    2499022425
    24991   # We can hardcode non-existant directories.
     22426  # We can hardcode non-existent directories.
    2499222427  if test "$hardcode_direct_F77" != no &&
    2499322428     # If the only mechanism to avoid hardcoding is shlibpath_var, we
    2499422429     # have to relink, otherwise we might link with an installed library
    2499522430     # when we should be linking with a yet-to-be-installed one
    24996      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
     22431     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
    2499722432     test "$hardcode_minus_L_F77" != no; then
    2499822433    # Linking always hardcodes the temporary library directory.
     
    2500722442  hardcode_action_F77=unsupported
    2500822443fi
    25009 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
    25010 echo "${ECHO_T}$hardcode_action_F77" >&6
    25011 
    25012 if test "$hardcode_action_F77" = relink; then
     22444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
     22445$as_echo "$hardcode_action_F77" >&6; }
     22446
     22447if test "$hardcode_action_F77" = relink ||
     22448   test "$inherit_rpath_F77" = yes; then
    2501322449  # Fast installation is not supported
    2501422450  enable_fast_install=no
     
    2502022456
    2502122457
    25022 # The else clause should only fire when bootstrapping the
    25023 # libtool distribution, otherwise you forgot to ship ltmain.sh
    25024 # with your package, and you will get complaints that there are
    25025 # no rules to generate ltmain.sh.
    25026 if test -f "$ltmain"; then
    25027   # See if we are running on zsh, and set the options which allow our commands through
    25028   # without removal of \ escapes.
    25029   if test -n "${ZSH_VERSION+set}" ; then
    25030     setopt NO_GLOB_SUBST
    25031   fi
    25032   # Now quote all the things that may contain metacharacters while being
    25033   # careful not to overquote the AC_SUBSTed values.  We take copies of the
    25034   # variables and quote the copies for generation of the libtool script.
    25035   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    25036     SED SHELL STRIP \
    25037     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    25038     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    25039     deplibs_check_method reload_flag reload_cmds need_locks \
    25040     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    25041     lt_cv_sys_global_symbol_to_c_name_address \
    25042     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    25043     old_postinstall_cmds old_postuninstall_cmds \
    25044     compiler_F77 \
    25045     CC_F77 \
    25046     LD_F77 \
    25047     lt_prog_compiler_wl_F77 \
    25048     lt_prog_compiler_pic_F77 \
    25049     lt_prog_compiler_static_F77 \
    25050     lt_prog_compiler_no_builtin_flag_F77 \
    25051     export_dynamic_flag_spec_F77 \
    25052     thread_safe_flag_spec_F77 \
    25053     whole_archive_flag_spec_F77 \
    25054     enable_shared_with_static_runtimes_F77 \
    25055     old_archive_cmds_F77 \
    25056     old_archive_from_new_cmds_F77 \
    25057     predep_objects_F77 \
    25058     postdep_objects_F77 \
    25059     predeps_F77 \
    25060     postdeps_F77 \
    25061     compiler_lib_search_path_F77 \
    25062     archive_cmds_F77 \
    25063     archive_expsym_cmds_F77 \
    25064     postinstall_cmds_F77 \
    25065     postuninstall_cmds_F77 \
    25066     old_archive_from_expsyms_cmds_F77 \
    25067     allow_undefined_flag_F77 \
    25068     no_undefined_flag_F77 \
    25069     export_symbols_cmds_F77 \
    25070     hardcode_libdir_flag_spec_F77 \
    25071     hardcode_libdir_flag_spec_ld_F77 \
    25072     hardcode_libdir_separator_F77 \
    25073     hardcode_automatic_F77 \
    25074     module_cmds_F77 \
    25075     module_expsym_cmds_F77 \
    25076     lt_cv_prog_compiler_c_o_F77 \
    25077     exclude_expsyms_F77 \
    25078     include_expsyms_F77; do
    25079 
    25080     case $var in
    25081     old_archive_cmds_F77 | \
    25082     old_archive_from_new_cmds_F77 | \
    25083     archive_cmds_F77 | \
    25084     archive_expsym_cmds_F77 | \
    25085     module_cmds_F77 | \
    25086     module_expsym_cmds_F77 | \
    25087     old_archive_from_expsyms_cmds_F77 | \
    25088     export_symbols_cmds_F77 | \
    25089     extract_expsyms_cmds | reload_cmds | finish_cmds | \
    25090     postinstall_cmds | postuninstall_cmds | \
    25091     old_postinstall_cmds | old_postuninstall_cmds | \
    25092     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    25093       # Double-quote double-evaled strings.
    25094       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
    25095       ;;
    25096     *)
    25097       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
    25098       ;;
    25099     esac
    25100   done
    25101 
    25102   case $lt_echo in
    25103   *'\$0 --fallback-echo"')
    25104     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    25105     ;;
    25106   esac
    25107 
    25108 cfgfile="$ofile"
    25109 
    25110   cat <<__EOF__ >> "$cfgfile"
    25111 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
    25112 
    25113 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    25114 
    25115 # Shell to use when invoking shell scripts.
    25116 SHELL=$lt_SHELL
    25117 
    25118 # Whether or not to build shared libraries.
    25119 build_libtool_libs=$enable_shared
    25120 
    25121 # Whether or not to build static libraries.
    25122 build_old_libs=$enable_static
    25123 
    25124 # Whether or not to add -lc for building shared libraries.
    25125 build_libtool_need_lc=$archive_cmds_need_lc_F77
    25126 
    25127 # Whether or not to disallow shared libs when runtime libs are static
    25128 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
    25129 
    25130 # Whether or not to optimize for fast installation.
    25131 fast_install=$enable_fast_install
    25132 
    25133 # The host system.
    25134 host_alias=$host_alias
    25135 host=$host
    25136 host_os=$host_os
    25137 
    25138 # The build system.
    25139 build_alias=$build_alias
    25140 build=$build
    25141 build_os=$build_os
    25142 
    25143 # An echo program that does not interpret backslashes.
    25144 echo=$lt_echo
    25145 
    25146 # The archiver.
    25147 AR=$lt_AR
    25148 AR_FLAGS=$lt_AR_FLAGS
    25149 
    25150 # A C compiler.
    25151 LTCC=$lt_LTCC
    25152 
    25153 # LTCC compiler flags.
    25154 LTCFLAGS=$lt_LTCFLAGS
    25155 
    25156 # A language-specific compiler.
    25157 CC=$lt_compiler_F77
    25158 
    25159 # Is the compiler the GNU C compiler?
    25160 with_gcc=$GCC_F77
    25161 
    25162 # An ERE matcher.
    25163 EGREP=$lt_EGREP
    25164 
    25165 # The linker used to build libraries.
    25166 LD=$lt_LD_F77
    25167 
    25168 # Whether we need hard or soft links.
    25169 LN_S=$lt_LN_S
    25170 
    25171 # A BSD-compatible nm program.
    25172 NM=$lt_NM
    25173 
    25174 # A symbol stripping program
    25175 STRIP=$lt_STRIP
    25176 
    25177 # Used to examine libraries when file_magic_cmd begins "file"
    25178 MAGIC_CMD=$MAGIC_CMD
    25179 
    25180 # Used on cygwin: DLL creation program.
    25181 DLLTOOL="$DLLTOOL"
    25182 
    25183 # Used on cygwin: object dumper.
    25184 OBJDUMP="$OBJDUMP"
    25185 
    25186 # Used on cygwin: assembler.
    25187 AS="$AS"
    25188 
    25189 # The name of the directory that contains temporary libtool files.
    25190 objdir=$objdir
    25191 
    25192 # How to create reloadable object files.
    25193 reload_flag=$lt_reload_flag
    25194 reload_cmds=$lt_reload_cmds
    25195 
    25196 # How to pass a linker flag through the compiler.
    25197 wl=$lt_lt_prog_compiler_wl_F77
    25198 
    25199 # Object file suffix (normally "o").
    25200 objext="$ac_objext"
    25201 
    25202 # Old archive suffix (normally "a").
    25203 libext="$libext"
    25204 
    25205 # Shared library suffix (normally ".so").
    25206 shrext_cmds='$shrext_cmds'
    25207 
    25208 # Executable file suffix (normally "").
    25209 exeext="$exeext"
    25210 
    25211 # Additional compiler flags for building library objects.
    25212 pic_flag=$lt_lt_prog_compiler_pic_F77
    25213 pic_mode=$pic_mode
    25214 
    25215 # What is the maximum length of a command?
    25216 max_cmd_len=$lt_cv_sys_max_cmd_len
    25217 
    25218 # Does compiler simultaneously support -c and -o options?
    25219 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
    25220 
    25221 # Must we lock files when doing compilation?
    25222 need_locks=$lt_need_locks
    25223 
    25224 # Do we need the lib prefix for modules?
    25225 need_lib_prefix=$need_lib_prefix
    25226 
    25227 # Do we need a version for libraries?
    25228 need_version=$need_version
    25229 
    25230 # Whether dlopen is supported.
    25231 dlopen_support=$enable_dlopen
    25232 
    25233 # Whether dlopen of programs is supported.
    25234 dlopen_self=$enable_dlopen_self
    25235 
    25236 # Whether dlopen of statically linked programs is supported.
    25237 dlopen_self_static=$enable_dlopen_self_static
    25238 
    25239 # Compiler flag to prevent dynamic linking.
    25240 link_static_flag=$lt_lt_prog_compiler_static_F77
    25241 
    25242 # Compiler flag to turn off builtin functions.
    25243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
    25244 
    25245 # Compiler flag to allow reflexive dlopens.
    25246 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
    25247 
    25248 # Compiler flag to generate shared objects directly from archives.
    25249 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
    25250 
    25251 # Compiler flag to generate thread-safe objects.
    25252 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
    25253 
    25254 # Library versioning type.
    25255 version_type=$version_type
    25256 
    25257 # Format of library name prefix.
    25258 libname_spec=$lt_libname_spec
    25259 
    25260 # List of archive names.  First name is the real one, the rest are links.
    25261 # The last name is the one that the linker finds with -lNAME.
    25262 library_names_spec=$lt_library_names_spec
    25263 
    25264 # The coded name of the library, if different from the real name.
    25265 soname_spec=$lt_soname_spec
    25266 
    25267 # Commands used to build and install an old-style archive.
    25268 RANLIB=$lt_RANLIB
    25269 old_archive_cmds=$lt_old_archive_cmds_F77
    25270 old_postinstall_cmds=$lt_old_postinstall_cmds
    25271 old_postuninstall_cmds=$lt_old_postuninstall_cmds
    25272 
    25273 # Create an old-style archive from a shared archive.
    25274 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
    25275 
    25276 # Create a temporary old-style archive to link instead of a shared archive.
    25277 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
    25278 
    25279 # Commands used to build and install a shared archive.
    25280 archive_cmds=$lt_archive_cmds_F77
    25281 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
    25282 postinstall_cmds=$lt_postinstall_cmds
    25283 postuninstall_cmds=$lt_postuninstall_cmds
    25284 
    25285 # Commands used to build a loadable module (assumed same as above if empty)
    25286 module_cmds=$lt_module_cmds_F77
    25287 module_expsym_cmds=$lt_module_expsym_cmds_F77
    25288 
    25289 # Commands to strip libraries.
    25290 old_striplib=$lt_old_striplib
    25291 striplib=$lt_striplib
    25292 
    25293 # Dependencies to place before the objects being linked to create a
    25294 # shared library.
    25295 predep_objects=$lt_predep_objects_F77
    25296 
    25297 # Dependencies to place after the objects being linked to create a
    25298 # shared library.
    25299 postdep_objects=$lt_postdep_objects_F77
    25300 
    25301 # Dependencies to place before the objects being linked to create a
    25302 # shared library.
    25303 predeps=$lt_predeps_F77
    25304 
    25305 # Dependencies to place after the objects being linked to create a
    25306 # shared library.
    25307 postdeps=$lt_postdeps_F77
    25308 
    25309 # The library search path used internally by the compiler when linking
    25310 # a shared library.
    25311 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
    25312 
    25313 # Method to check whether dependent libraries are shared objects.
    25314 deplibs_check_method=$lt_deplibs_check_method
    25315 
    25316 # Command to use when deplibs_check_method == file_magic.
    25317 file_magic_cmd=$lt_file_magic_cmd
    25318 
    25319 # Flag that allows shared libraries with undefined symbols to be built.
    25320 allow_undefined_flag=$lt_allow_undefined_flag_F77
    25321 
    25322 # Flag that forces no undefined symbols.
    25323 no_undefined_flag=$lt_no_undefined_flag_F77
    25324 
    25325 # Commands used to finish a libtool library installation in a directory.
    25326 finish_cmds=$lt_finish_cmds
    25327 
    25328 # Same as above, but a single script fragment to be evaled but not shown.
    25329 finish_eval=$lt_finish_eval
    25330 
    25331 # Take the output of nm and produce a listing of raw symbols and C names.
    25332 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
    25333 
    25334 # Transform the output of nm in a proper C declaration
    25335 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
    25336 
    25337 # Transform the output of nm in a C name address pair
    25338 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
    25339 
    25340 # This is the shared library runtime path variable.
    25341 runpath_var=$runpath_var
    25342 
    25343 # This is the shared library path variable.
    25344 shlibpath_var=$shlibpath_var
    25345 
    25346 # Is shlibpath searched before the hard-coded library search path?
    25347 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
    25348 
    25349 # How to hardcode a shared library path into an executable.
    25350 hardcode_action=$hardcode_action_F77
    25351 
    25352 # Whether we should hardcode library paths into libraries.
    25353 hardcode_into_libs=$hardcode_into_libs
    25354 
    25355 # Flag to hardcode \$libdir into a binary during linking.
    25356 # This must work even if \$libdir does not exist.
    25357 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
    25358 
    25359 # If ld is used when linking, flag to hardcode \$libdir into
    25360 # a binary during linking. This must work even if \$libdir does
    25361 # not exist.
    25362 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
    25363 
    25364 # Whether we need a single -rpath flag with a separated argument.
    25365 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
    25366 
    25367 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
    25368 # resulting binary.
    25369 hardcode_direct=$hardcode_direct_F77
    25370 
    25371 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    25372 # resulting binary.
    25373 hardcode_minus_L=$hardcode_minus_L_F77
    25374 
    25375 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    25376 # the resulting binary.
    25377 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
    25378 
    25379 # Set to yes if building a shared library automatically hardcodes DIR into the library
    25380 # and all subsequent libraries and executables linked against it.
    25381 hardcode_automatic=$hardcode_automatic_F77
    25382 
    25383 # Variables whose values should be saved in libtool wrapper scripts and
    25384 # restored at relink time.
    25385 variables_saved_for_relink="$variables_saved_for_relink"
    25386 
    25387 # Whether libtool must link a program against all its dependency libraries.
    25388 link_all_deplibs=$link_all_deplibs_F77
    25389 
    25390 # Compile-time system search path for libraries
    25391 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
    25392 
    25393 # Run-time system search path for libraries
    25394 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
    25395 
    25396 # Fix the shell variable \$srcfile for the compiler.
    25397 fix_srcfile_path="$fix_srcfile_path_F77"
    25398 
    25399 # Set to yes if exported symbols are required.
    25400 always_export_symbols=$always_export_symbols_F77
    25401 
    25402 # The commands to list exported symbols.
    25403 export_symbols_cmds=$lt_export_symbols_cmds_F77
    25404 
    25405 # The commands to extract the exported symbol list from a shared archive.
    25406 extract_expsyms_cmds=$lt_extract_expsyms_cmds
    25407 
    25408 # Symbols that should not be listed in the preloaded symbols.
    25409 exclude_expsyms=$lt_exclude_expsyms_F77
    25410 
    25411 # Symbols that must always be exported.
    25412 include_expsyms=$lt_include_expsyms_F77
    25413 
    25414 # ### END LIBTOOL TAG CONFIG: $tagname
    25415 
    25416 __EOF__
    25417 
    25418 
    25419 else
    25420   # If there is no Makefile yet, we rely on a make rule to execute
    25421   # `config.status --recheck' to rerun these tests and create the
    25422   # libtool script then.
    25423   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    25424   if test -f "$ltmain_in"; then
    25425     test -f Makefile && make "$ltmain"
    25426   fi
    25427 fi
    25428 
     22458
     22459
     22460
     22461
     22462
     22463  fi # test -n "$compiler"
     22464
     22465  GCC=$lt_save_GCC
     22466  CC="$lt_save_CC"
     22467  CFLAGS="$lt_save_CFLAGS"
     22468fi # test "$_lt_disable_F77" != yes
    2542922469
    2543022470ac_ext=c
     
    2543422474ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2543522475
    25436 CC="$lt_save_CC"
    25437 
    25438         else
    25439           tagname=""
    25440         fi
    25441         ;;
    25442 
    25443       GCJ)
    25444         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
    25445 
    25446 
    25447 
    25448 # Source file extension for Java test sources.
    25449 ac_ext=java
    25450 
    25451 # Object file extension for compiled Java test sources.
    25452 objext=o
    25453 objext_GCJ=$objext
    25454 
    25455 # Code to be used in simple compile tests
    25456 lt_simple_compile_test_code="class foo {}\n"
    25457 
    25458 # Code to be used in simple link tests
    25459 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
    25460 
    25461 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    25462 
    25463 # If no C compiler was specified, use CC.
    25464 LTCC=${LTCC-"$CC"}
    25465 
    25466 # If no C compiler flags were specified, use CFLAGS.
    25467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
    25468 
    25469 # Allow CC to be a program name with arguments.
    25470 compiler=$CC
    25471 
    25472 
    25473 # save warnings/boilerplate of simple test code
    25474 ac_outfile=conftest.$ac_objext
    25475 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
    25476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    25477 _lt_compiler_boilerplate=`cat conftest.err`
    25478 $rm conftest*
    25479 
    25480 ac_outfile=conftest.$ac_objext
    25481 printf "$lt_simple_link_test_code" >conftest.$ac_ext
    25482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    25483 _lt_linker_boilerplate=`cat conftest.err`
    25484 $rm conftest*
    25485 
    25486 
    25487 # Allow CC to be a program name with arguments.
    25488 lt_save_CC="$CC"
    25489 CC=${GCJ-"gcj"}
    25490 compiler=$CC
    25491 compiler_GCJ=$CC
    25492 for cc_temp in $compiler""; do
    25493   case $cc_temp in
    25494     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    25495     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    25496     \-*) ;;
    25497     *) break;;
    25498   esac
    25499 done
    25500 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    25501 
    25502 
    25503 # GCJ did not exist at the time GCC didn't implicitly link libc in.
    25504 archive_cmds_need_lc_GCJ=no
    25505 
    25506 old_archive_cmds_GCJ=$old_archive_cmds
    25507 
    25508 ## CAVEAT EMPTOR:
    25509 ## There is no encapsulation within the following macros, do not change
    25510 ## the running order or otherwise move them around unless you know exactly
    25511 ## what you are doing...
    25512 
    25513 lt_prog_compiler_no_builtin_flag_GCJ=
    25514 
    25515 if test "$GCC" = yes; then
    25516   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
    25517 
    25518 
    25519 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
    25520 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
    25521 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
    25522   echo $ECHO_N "(cached) $ECHO_C" >&6
    25523 else
    25524   lt_cv_prog_compiler_rtti_exceptions=no
    25525   ac_outfile=conftest.$ac_objext
    25526    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    25527    lt_compiler_flag="-fno-rtti -fno-exceptions"
    25528    # Insert the option either (1) after the last *FLAGS variable, or
    25529    # (2) before a word containing "conftest.", or (3) at the end.
    25530    # Note that $ac_compile itself does not contain backslashes and begins
    25531    # with a dollar sign (not a hyphen), so the echo should work correctly.
    25532    # The option is referenced via a variable to avoid confusing sed.
    25533    lt_compile=`echo "$ac_compile" | $SED \
    25534    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    25535    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    25536    -e 's:$: $lt_compiler_flag:'`
    25537    (eval echo "\"\$as_me:25537: $lt_compile\"" >&5)
    25538    (eval "$lt_compile" 2>conftest.err)
    25539    ac_status=$?
    25540    cat conftest.err >&5
    25541    echo "$as_me:25541: \$? = $ac_status" >&5
    25542    if (exit $ac_status) && test -s "$ac_outfile"; then
    25543      # The compiler can only warn and ignore the option if not recognized
    25544      # So say no if there are warnings other than the usual output.
    25545      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
    25546      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    25547      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    25548        lt_cv_prog_compiler_rtti_exceptions=yes
    25549      fi
    25550    fi
    25551    $rm conftest*
    25552 
    25553 fi
    25554 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
    25555 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
    25556 
    25557 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    25558     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
    25559 else
    25560     :
    25561 fi
    25562 
    25563 fi
    25564 
    25565 lt_prog_compiler_wl_GCJ=
    25566 lt_prog_compiler_pic_GCJ=
    25567 lt_prog_compiler_static_GCJ=
    25568 
    25569 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
    25570 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
    25571 
    25572   if test "$GCC" = yes; then
    25573     lt_prog_compiler_wl_GCJ='-Wl,'
    25574     lt_prog_compiler_static_GCJ='-static'
    25575 
    25576     case $host_os in
    25577       aix*)
    25578       # All AIX code is PIC.
    25579       if test "$host_cpu" = ia64; then
    25580         # AIX 5 now supports IA64 processor
    25581         lt_prog_compiler_static_GCJ='-Bstatic'
    25582       fi
    25583       ;;
    25584 
    25585     amigaos*)
    25586       # FIXME: we need at least 68020 code to build shared libraries, but
    25587       # adding the `-m68020' flag to GCC prevents building anything better,
    25588       # like `-m68040'.
    25589       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
    25590       ;;
    25591 
    25592     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    25593       # PIC is the default for these OSes.
    25594       ;;
    25595 
    25596     mingw* | pw32* | os2*)
    25597       # This hack is so that the source file can tell whether it is being
    25598       # built for inclusion in a dll (and should export symbols for example).
    25599       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
    25600       ;;
    25601 
    25602     darwin* | rhapsody*)
    25603       # PIC is the default on this platform
    25604       # Common symbols not allowed in MH_DYLIB files
    25605       lt_prog_compiler_pic_GCJ='-fno-common'
    25606       ;;
    25607 
    25608     interix3*)
    25609       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
    25610       # Instead, we relocate shared libraries at runtime.
    25611       ;;
    25612 
    25613     msdosdjgpp*)
    25614       # Just because we use GCC doesn't mean we suddenly get shared libraries
    25615       # on systems that don't support them.
    25616       lt_prog_compiler_can_build_shared_GCJ=no
    25617       enable_shared=no
    25618       ;;
    25619 
    25620     sysv4*MP*)
    25621       if test -d /usr/nec; then
    25622         lt_prog_compiler_pic_GCJ=-Kconform_pic
    25623       fi
    25624       ;;
    25625 
    25626     hpux*)
    25627       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    25628       # not for PA HP-UX.
    25629       case $host_cpu in
    25630       hppa*64*|ia64*)
    25631         # +Z the default
    25632         ;;
    25633       *)
    25634         lt_prog_compiler_pic_GCJ='-fPIC'
    25635         ;;
    25636       esac
    25637       ;;
    25638 
    25639     *)
    25640       lt_prog_compiler_pic_GCJ='-fPIC'
    25641       ;;
    25642     esac
    25643   else
    25644     # PORTME Check for flag to pass linker flags through the system compiler.
    25645     case $host_os in
    25646     aix*)
    25647       lt_prog_compiler_wl_GCJ='-Wl,'
    25648       if test "$host_cpu" = ia64; then
    25649         # AIX 5 now supports IA64 processor
    25650         lt_prog_compiler_static_GCJ='-Bstatic'
    25651       else
    25652         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
    25653       fi
    25654       ;;
    25655       darwin*)
    25656         # PIC is the default on this platform
    25657         # Common symbols not allowed in MH_DYLIB files
    25658        case $cc_basename in
    25659          xlc*)
    25660          lt_prog_compiler_pic_GCJ='-qnocommon'
    25661          lt_prog_compiler_wl_GCJ='-Wl,'
    25662          ;;
    25663        esac
    25664        ;;
    25665 
    25666     mingw* | pw32* | os2*)
    25667       # This hack is so that the source file can tell whether it is being
    25668       # built for inclusion in a dll (and should export symbols for example).
    25669       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
    25670       ;;
    25671 
    25672     hpux9* | hpux10* | hpux11*)
    25673       lt_prog_compiler_wl_GCJ='-Wl,'
    25674       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    25675       # not for PA HP-UX.
    25676       case $host_cpu in
    25677       hppa*64*|ia64*)
    25678         # +Z the default
    25679         ;;
    25680       *)
    25681         lt_prog_compiler_pic_GCJ='+Z'
    25682         ;;
    25683       esac
    25684       # Is there a better lt_prog_compiler_static that works with the bundled CC?
    25685       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
    25686       ;;
    25687 
    25688     irix5* | irix6* | nonstopux*)
    25689       lt_prog_compiler_wl_GCJ='-Wl,'
    25690       # PIC (with -KPIC) is the default.
    25691       lt_prog_compiler_static_GCJ='-non_shared'
    25692       ;;
    25693 
    25694     newsos6)
    25695       lt_prog_compiler_pic_GCJ='-KPIC'
    25696       lt_prog_compiler_static_GCJ='-Bstatic'
    25697       ;;
    25698 
    25699     linux*)
    25700       case $cc_basename in
    25701       icc* | ecc*)
    25702         lt_prog_compiler_wl_GCJ='-Wl,'
    25703         lt_prog_compiler_pic_GCJ='-KPIC'
    25704         lt_prog_compiler_static_GCJ='-static'
    25705         ;;
    25706       pgcc* | pgf77* | pgf90* | pgf95*)
    25707         # Portland Group compilers (*not* the Pentium gcc compiler,
    25708         # which looks to be a dead project)
    25709         lt_prog_compiler_wl_GCJ='-Wl,'
    25710         lt_prog_compiler_pic_GCJ='-fpic'
    25711         lt_prog_compiler_static_GCJ='-Bstatic'
    25712         ;;
    25713       ccc*)
    25714         lt_prog_compiler_wl_GCJ='-Wl,'
    25715         # All Alpha code is PIC.
    25716         lt_prog_compiler_static_GCJ='-non_shared'
    25717         ;;
    25718       esac
    25719       ;;
    25720 
    25721     osf3* | osf4* | osf5*)
    25722       lt_prog_compiler_wl_GCJ='-Wl,'
    25723       # All OSF/1 code is PIC.
    25724       lt_prog_compiler_static_GCJ='-non_shared'
    25725       ;;
    25726 
    25727     solaris*)
    25728       lt_prog_compiler_pic_GCJ='-KPIC'
    25729       lt_prog_compiler_static_GCJ='-Bstatic'
    25730       case $cc_basename in
    25731       f77* | f90* | f95*)
    25732         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
    25733       *)
    25734         lt_prog_compiler_wl_GCJ='-Wl,';;
    25735       esac
    25736       ;;
    25737 
    25738     sunos4*)
    25739       lt_prog_compiler_wl_GCJ='-Qoption ld '
    25740       lt_prog_compiler_pic_GCJ='-PIC'
    25741       lt_prog_compiler_static_GCJ='-Bstatic'
    25742       ;;
    25743 
    25744     sysv4 | sysv4.2uw2* | sysv4.3*)
    25745       lt_prog_compiler_wl_GCJ='-Wl,'
    25746       lt_prog_compiler_pic_GCJ='-KPIC'
    25747       lt_prog_compiler_static_GCJ='-Bstatic'
    25748       ;;
    25749 
    25750     sysv4*MP*)
    25751       if test -d /usr/nec ;then
    25752         lt_prog_compiler_pic_GCJ='-Kconform_pic'
    25753         lt_prog_compiler_static_GCJ='-Bstatic'
    25754       fi
    25755       ;;
    25756 
    25757     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
    25758       lt_prog_compiler_wl_GCJ='-Wl,'
    25759       lt_prog_compiler_pic_GCJ='-KPIC'
    25760       lt_prog_compiler_static_GCJ='-Bstatic'
    25761       ;;
    25762 
    25763     unicos*)
    25764       lt_prog_compiler_wl_GCJ='-Wl,'
    25765       lt_prog_compiler_can_build_shared_GCJ=no
    25766       ;;
    25767 
    25768     uts4*)
    25769       lt_prog_compiler_pic_GCJ='-pic'
    25770       lt_prog_compiler_static_GCJ='-Bstatic'
    25771       ;;
    25772 
    25773     *)
    25774       lt_prog_compiler_can_build_shared_GCJ=no
    25775       ;;
    25776     esac
    25777   fi
    25778 
    25779 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
    25780 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
    25781 
    25782 #
    25783 # Check to make sure the PIC flag actually works.
    25784 #
    25785 if test -n "$lt_prog_compiler_pic_GCJ"; then
    25786 
    25787 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
    25788 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
    25789 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
    25790   echo $ECHO_N "(cached) $ECHO_C" >&6
    25791 else
    25792   lt_prog_compiler_pic_works_GCJ=no
    25793   ac_outfile=conftest.$ac_objext
    25794    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    25795    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
    25796    # Insert the option either (1) after the last *FLAGS variable, or
    25797    # (2) before a word containing "conftest.", or (3) at the end.
    25798    # Note that $ac_compile itself does not contain backslashes and begins
    25799    # with a dollar sign (not a hyphen), so the echo should work correctly.
    25800    # The option is referenced via a variable to avoid confusing sed.
    25801    lt_compile=`echo "$ac_compile" | $SED \
    25802    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    25803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    25804    -e 's:$: $lt_compiler_flag:'`
    25805    (eval echo "\"\$as_me:25805: $lt_compile\"" >&5)
    25806    (eval "$lt_compile" 2>conftest.err)
    25807    ac_status=$?
    25808    cat conftest.err >&5
    25809    echo "$as_me:25809: \$? = $ac_status" >&5
    25810    if (exit $ac_status) && test -s "$ac_outfile"; then
    25811      # The compiler can only warn and ignore the option if not recognized
    25812      # So say no if there are warnings other than the usual output.
    25813      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
    25814      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    25815      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    25816        lt_prog_compiler_pic_works_GCJ=yes
    25817      fi
    25818    fi
    25819    $rm conftest*
    25820 
    25821 fi
    25822 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
    25823 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
    25824 
    25825 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
    25826     case $lt_prog_compiler_pic_GCJ in
    25827      "" | " "*) ;;
    25828      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
    25829      esac
    25830 else
    25831     lt_prog_compiler_pic_GCJ=
    25832      lt_prog_compiler_can_build_shared_GCJ=no
    25833 fi
    25834 
    25835 fi
    25836 case $host_os in
    25837   # For platforms which do not support PIC, -DPIC is meaningless:
    25838   *djgpp*)
    25839     lt_prog_compiler_pic_GCJ=
    25840     ;;
    25841   *)
    25842     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
    25843     ;;
    25844 esac
    25845 
    25846 #
    25847 # Check to make sure the static flag actually works.
    25848 #
    25849 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
    25850 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
    25851 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
    25852 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
    25853   echo $ECHO_N "(cached) $ECHO_C" >&6
    25854 else
    25855   lt_prog_compiler_static_works_GCJ=no
    25856    save_LDFLAGS="$LDFLAGS"
    25857    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
    25858    printf "$lt_simple_link_test_code" > conftest.$ac_ext
    25859    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    25860      # The linker can only warn and ignore the option if not recognized
    25861      # So say no if there are warnings
    25862      if test -s conftest.err; then
    25863        # Append any errors to the config.log.
    25864        cat conftest.err 1>&5
    25865        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
    25866        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    25867        if diff conftest.exp conftest.er2 >/dev/null; then
    25868          lt_prog_compiler_static_works_GCJ=yes
    25869        fi
    25870      else
    25871        lt_prog_compiler_static_works_GCJ=yes
    25872      fi
    25873    fi
    25874    $rm conftest*
    25875    LDFLAGS="$save_LDFLAGS"
    25876 
    25877 fi
    25878 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
    25879 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
    25880 
    25881 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
    25882     :
    25883 else
    25884     lt_prog_compiler_static_GCJ=
    25885 fi
    25886 
    25887 
    25888 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    25889 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
    25890 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
    25891   echo $ECHO_N "(cached) $ECHO_C" >&6
    25892 else
    25893   lt_cv_prog_compiler_c_o_GCJ=no
    25894    $rm -r conftest 2>/dev/null
    25895    mkdir conftest
    25896    cd conftest
    25897    mkdir out
    25898    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    25899 
    25900    lt_compiler_flag="-o out/conftest2.$ac_objext"
    25901    # Insert the option either (1) after the last *FLAGS variable, or
    25902    # (2) before a word containing "conftest.", or (3) at the end.
    25903    # Note that $ac_compile itself does not contain backslashes and begins
    25904    # with a dollar sign (not a hyphen), so the echo should work correctly.
    25905    lt_compile=`echo "$ac_compile" | $SED \
    25906    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    25907    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    25908    -e 's:$: $lt_compiler_flag:'`
    25909    (eval echo "\"\$as_me:25909: $lt_compile\"" >&5)
    25910    (eval "$lt_compile" 2>out/conftest.err)
    25911    ac_status=$?
    25912    cat out/conftest.err >&5
    25913    echo "$as_me:25913: \$? = $ac_status" >&5
    25914    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    25915    then
    25916      # The compiler can only warn and ignore the option if not recognized
    25917      # So say no if there are warnings
    25918      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
    25919      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    25920      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
    25921        lt_cv_prog_compiler_c_o_GCJ=yes
    25922      fi
    25923    fi
    25924    chmod u+w . 2>&5
    25925    $rm conftest*
    25926    # SGI C++ compiler will create directory out/ii_files/ for
    25927    # template instantiation
    25928    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
    25929    $rm out/* && rmdir out
    25930    cd ..
    25931    rmdir conftest
    25932    $rm conftest*
    25933 
    25934 fi
    25935 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
    25936 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
    25937 
    25938 
    25939 hard_links="nottested"
    25940 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
    25941   # do not overwrite the value of need_locks provided by the user
    25942   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
    25943 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
    25944   hard_links=yes
    25945   $rm conftest*
    25946   ln conftest.a conftest.b 2>/dev/null && hard_links=no
    25947   touch conftest.a
    25948   ln conftest.a conftest.b 2>&5 || hard_links=no
    25949   ln conftest.a conftest.b 2>/dev/null && hard_links=no
    25950   echo "$as_me:$LINENO: result: $hard_links" >&5
    25951 echo "${ECHO_T}$hard_links" >&6
    25952   if test "$hard_links" = no; then
    25953     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
    25954 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    25955     need_locks=warn
    25956   fi
    25957 else
    25958   need_locks=no
    25959 fi
    25960 
    25961 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
    25962 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
    25963 
    25964   runpath_var=
    25965   allow_undefined_flag_GCJ=
    25966   enable_shared_with_static_runtimes_GCJ=no
    25967   archive_cmds_GCJ=
    25968   archive_expsym_cmds_GCJ=
    25969   old_archive_From_new_cmds_GCJ=
    25970   old_archive_from_expsyms_cmds_GCJ=
    25971   export_dynamic_flag_spec_GCJ=
    25972   whole_archive_flag_spec_GCJ=
    25973   thread_safe_flag_spec_GCJ=
    25974   hardcode_libdir_flag_spec_GCJ=
    25975   hardcode_libdir_flag_spec_ld_GCJ=
    25976   hardcode_libdir_separator_GCJ=
    25977   hardcode_direct_GCJ=no
    25978   hardcode_minus_L_GCJ=no
    25979   hardcode_shlibpath_var_GCJ=unsupported
    25980   link_all_deplibs_GCJ=unknown
    25981   hardcode_automatic_GCJ=no
    25982   module_cmds_GCJ=
    25983   module_expsym_cmds_GCJ=
    25984   always_export_symbols_GCJ=no
    25985   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    25986   # include_expsyms should be a list of space-separated symbols to be *always*
    25987   # included in the symbol list
    25988   include_expsyms_GCJ=
    25989   # exclude_expsyms can be an extended regexp of symbols to exclude
    25990   # it will be wrapped by ` (' and `)$', so one must not match beginning or
    25991   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
    25992   # as well as any symbol that contains `d'.
    25993   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
    25994   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
    25995   # platforms (ab)use it in PIC code, but their linkers get confused if
    25996   # the symbol is explicitly referenced.  Since portable code cannot
    25997   # rely on this symbol name, it's probably fine to never include it in
    25998   # preloaded symbol tables.
    25999   extract_expsyms_cmds=
    26000   # Just being paranoid about ensuring that cc_basename is set.
    26001   for cc_temp in $compiler""; do
    26002   case $cc_temp in
    26003     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    26004     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    26005     \-*) ;;
    26006     *) break;;
    26007   esac
    26008 done
    26009 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    26010 
    26011   case $host_os in
    26012   cygwin* | mingw* | pw32*)
    26013     # FIXME: the MSVC++ port hasn't been tested in a loooong time
    26014     # When not using gcc, we currently assume that we are using
    26015     # Microsoft Visual C++.
    26016     if test "$GCC" != yes; then
    26017       with_gnu_ld=no
    26018     fi
    26019     ;;
    26020   interix*)
    26021     # we just hope/assume this is gcc and not c89 (= MSVC++)
    26022     with_gnu_ld=yes
    26023     ;;
    26024   openbsd*)
    26025     with_gnu_ld=no
    26026     ;;
    26027   esac
    26028 
    26029   ld_shlibs_GCJ=yes
    26030   if test "$with_gnu_ld" = yes; then
    26031     # If archive_cmds runs LD, not CC, wlarc should be empty
    26032     wlarc='${wl}'
    26033 
    26034     # Set some defaults for GNU ld with shared library support. These
    26035     # are reset later if shared libraries are not supported. Putting them
    26036     # here allows them to be overridden if necessary.
    26037     runpath_var=LD_RUN_PATH
    26038     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
    26039     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
    26040     # ancient GNU ld didn't support --whole-archive et. al.
    26041     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
    26042         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    26043       else
    26044         whole_archive_flag_spec_GCJ=
    26045     fi
    26046     supports_anon_versioning=no
    26047     case `$LD -v 2>/dev/null` in
    26048       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
    26049       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    26050       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    26051       *\ 2.11.*) ;; # other 2.11 versions
    26052       *) supports_anon_versioning=yes ;;
    26053     esac
    26054 
    26055     # See if GNU ld supports shared libraries.
    26056     case $host_os in
    26057     aix3* | aix4* | aix5*)
    26058       # On AIX/PPC, the GNU linker is very broken
    26059       if test "$host_cpu" != ia64; then
    26060         ld_shlibs_GCJ=no
    26061         cat <<EOF 1>&2
    26062 
    26063 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
    26064 *** to be unable to reliably create shared libraries on AIX.
    26065 *** Therefore, libtool is disabling shared libraries support.  If you
    26066 *** really care for shared libraries, you may want to modify your PATH
    26067 *** so that a non-GNU linker is found, and then restart.
    26068 
    26069 EOF
    26070       fi
    26071       ;;
    26072 
    26073     amigaos*)
    26074       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    26075       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    26076       hardcode_minus_L_GCJ=yes
    26077 
    26078       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
    26079       # that the semantics of dynamic libraries on AmigaOS, at least up
    26080       # to version 4, is to share data among multiple programs linked
    26081       # with the same dynamic library.  Since this doesn't match the
    26082       # behavior of shared libraries on other platforms, we can't use
    26083       # them.
    26084       ld_shlibs_GCJ=no
    26085       ;;
    26086 
    26087     beos*)
    26088       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    26089         allow_undefined_flag_GCJ=unsupported
    26090         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
    26091         # support --undefined.  This deserves some investigation.  FIXME
    26092         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    26093       else
    26094         ld_shlibs_GCJ=no
    26095       fi
    26096       ;;
    26097 
    26098     cygwin* | mingw* | pw32*)
    26099       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
    26100       # as there is no search path for DLLs.
    26101       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    26102       allow_undefined_flag_GCJ=unsupported
    26103       always_export_symbols_GCJ=no
    26104       enable_shared_with_static_runtimes_GCJ=yes
    26105       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
    26106 
    26107       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    26108         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    26109         # If the export-symbols file already is a .def file (1st line
    26110         # is EXPORTS), use it as is; otherwise, prepend...
    26111         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    26112           cp $export_symbols $output_objdir/$soname.def;
    26113         else
    26114           echo EXPORTS > $output_objdir/$soname.def;
    26115           cat $export_symbols >> $output_objdir/$soname.def;
    26116         fi~
    26117         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    26118       else
    26119         ld_shlibs_GCJ=no
    26120       fi
    26121       ;;
    26122 
    26123     interix3*)
    26124       hardcode_direct_GCJ=no
    26125       hardcode_shlibpath_var_GCJ=no
    26126       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
    26127       export_dynamic_flag_spec_GCJ='${wl}-E'
    26128       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
    26129       # Instead, shared libraries are loaded at an image base (0x10000000 by
    26130       # default) and relocated if they conflict, which is a slow very memory
    26131       # consuming and fragmenting process.  To avoid this, we pick a random,
    26132       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
    26133       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
    26134       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
    26135       archive_expsym_cmds_GCJ='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'
    26136       ;;
    26137 
    26138     linux*)
    26139       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    26140         tmp_addflag=
    26141         case $cc_basename,$host_cpu in
    26142         pgcc*)                          # Portland Group C compiler
    26143           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
    26144           tmp_addflag=' $pic_flag'
    26145           ;;
    26146         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
    26147           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
    26148           tmp_addflag=' $pic_flag -Mnomain' ;;
    26149         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
    26150           tmp_addflag=' -i_dynamic' ;;
    26151         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
    26152           tmp_addflag=' -i_dynamic -nofor_main' ;;
    26153         ifc* | ifort*)                  # Intel Fortran compiler
    26154           tmp_addflag=' -nofor_main' ;;
    26155         esac
    26156         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    26157 
    26158         if test $supports_anon_versioning = yes; then
    26159           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
    26160   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    26161   $echo "local: *; };" >> $output_objdir/$libname.ver~
    26162           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    26163         fi
    26164       else
    26165         ld_shlibs_GCJ=no
    26166       fi
    26167       ;;
    26168 
    26169     netbsd*)
    26170       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    26171         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    26172         wlarc=
    26173       else
    26174         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    26175         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    26176       fi
    26177       ;;
    26178 
    26179     solaris*)
    26180       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
    26181         ld_shlibs_GCJ=no
    26182         cat <<EOF 1>&2
    26183 
    26184 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
    26185 *** create shared libraries on Solaris systems.  Therefore, libtool
    26186 *** is disabling shared libraries support.  We urge you to upgrade GNU
    26187 *** binutils to release 2.9.1 or newer.  Another option is to modify
    26188 *** your PATH or compiler configuration so that the native linker is
    26189 *** used, and then restart.
    26190 
    26191 EOF
    26192       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    26193         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    26194         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    26195       else
    26196         ld_shlibs_GCJ=no
    26197       fi
    26198       ;;
    26199 
    26200     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
    26201       case `$LD -v 2>&1` in
    26202         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
    26203         ld_shlibs_GCJ=no
    26204         cat <<_LT_EOF 1>&2
    26205 
    26206 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
    26207 *** reliably create shared libraries on SCO systems.  Therefore, libtool
    26208 *** is disabling shared libraries support.  We urge you to upgrade GNU
    26209 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
    26210 *** your PATH or compiler configuration so that the native linker is
    26211 *** used, and then restart.
    26212 
    26213 _LT_EOF
    26214         ;;
    26215         *)
    26216           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    26217             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
    26218             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
    26219             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
    26220           else
    26221             ld_shlibs_GCJ=no
    26222           fi
    26223         ;;
    26224       esac
    26225       ;;
    26226 
    26227     sunos4*)
    26228       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    26229       wlarc=
    26230       hardcode_direct_GCJ=yes
    26231       hardcode_shlibpath_var_GCJ=no
    26232       ;;
    26233 
    26234     *)
    26235       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    26236         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    26237         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    26238       else
    26239         ld_shlibs_GCJ=no
    26240       fi
    26241       ;;
    26242     esac
    26243 
    26244     if test "$ld_shlibs_GCJ" = no; then
    26245       runpath_var=
    26246       hardcode_libdir_flag_spec_GCJ=
    26247       export_dynamic_flag_spec_GCJ=
    26248       whole_archive_flag_spec_GCJ=
    26249     fi
    26250   else
    26251     # PORTME fill in a description of your system's linker (not GNU ld)
    26252     case $host_os in
    26253     aix3*)
    26254       allow_undefined_flag_GCJ=unsupported
    26255       always_export_symbols_GCJ=yes
    26256       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
    26257       # Note: this linker hardcodes the directories in LIBPATH if there
    26258       # are no directories specified by -L.
    26259       hardcode_minus_L_GCJ=yes
    26260       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
    26261         # Neither direct hardcoding nor static linking is supported with a
    26262         # broken collect2.
    26263         hardcode_direct_GCJ=unsupported
    26264       fi
    26265       ;;
    26266 
    26267     aix4* | aix5*)
    26268       if test "$host_cpu" = ia64; then
    26269         # On IA64, the linker does run time linking by default, so we don't
    26270         # have to do anything special.
    26271         aix_use_runtimelinking=no
    26272         exp_sym_flag='-Bexport'
    26273         no_entry_flag=""
    26274       else
    26275         # If we're using GNU nm, then we don't want the "-C" option.
    26276         # -C means demangle to AIX nm, but means don't demangle with GNU nm
    26277         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
    26278           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    26279         else
    26280           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    26281         fi
    26282         aix_use_runtimelinking=no
    26283 
    26284         # Test if we are trying to use run time linking or normal
    26285         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    26286         # need to do runtime linking.
    26287         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
    26288           for ld_flag in $LDFLAGS; do
    26289           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
    26290             aix_use_runtimelinking=yes
    26291             break
    26292           fi
    26293           done
    26294           ;;
    26295         esac
    26296 
    26297         exp_sym_flag='-bexport'
    26298         no_entry_flag='-bnoentry'
    26299       fi
    26300 
    26301       # When large executables or shared objects are built, AIX ld can
    26302       # have problems creating the table of contents.  If linking a library
    26303       # or program results in "error TOC overflow" add -mminimal-toc to
    26304       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    26305       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
    26306 
    26307       archive_cmds_GCJ=''
    26308       hardcode_direct_GCJ=yes
    26309       hardcode_libdir_separator_GCJ=':'
    26310       link_all_deplibs_GCJ=yes
    26311 
    26312       if test "$GCC" = yes; then
    26313         case $host_os in aix4.[012]|aix4.[012].*)
    26314         # We only want to do this on AIX 4.2 and lower, the check
    26315         # below for broken collect2 doesn't work under 4.3+
    26316           collect2name=`${CC} -print-prog-name=collect2`
    26317           if test -f "$collect2name" && \
    26318            strings "$collect2name" | grep resolve_lib_name >/dev/null
    26319           then
    26320           # We have reworked collect2
    26321           hardcode_direct_GCJ=yes
    26322           else
    26323           # We have old collect2
    26324           hardcode_direct_GCJ=unsupported
    26325           # It fails to find uninstalled libraries when the uninstalled
    26326           # path is not listed in the libpath.  Setting hardcode_minus_L
    26327           # to unsupported forces relinking
    26328           hardcode_minus_L_GCJ=yes
    26329           hardcode_libdir_flag_spec_GCJ='-L$libdir'
    26330           hardcode_libdir_separator_GCJ=
    26331           fi
    26332           ;;
    26333         esac
    26334         shared_flag='-shared'
    26335         if test "$aix_use_runtimelinking" = yes; then
    26336           shared_flag="$shared_flag "'${wl}-G'
    26337         fi
    26338       else
    26339         # not using gcc
    26340         if test "$host_cpu" = ia64; then
    26341         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    26342         # chokes on -Wl,-G. The following line is correct:
    26343           shared_flag='-G'
    26344         else
    26345           if test "$aix_use_runtimelinking" = yes; then
    26346             shared_flag='${wl}-G'
    26347           else
    26348             shared_flag='${wl}-bM:SRE'
    26349           fi
    26350         fi
    26351       fi
    26352 
    26353       # It seems that -bexpall does not export symbols beginning with
    26354       # underscore (_), so it is better to generate a list of symbols to export.
    26355       always_export_symbols_GCJ=yes
    26356       if test "$aix_use_runtimelinking" = yes; then
    26357         # Warning - without using the other runtime loading flags (-brtl),
    26358         # -berok will link without error, but may produce a broken library.
    26359         allow_undefined_flag_GCJ='-berok'
    26360        # Determine the default libpath from the value encoded in an empty executable.
    26361        cat >conftest.$ac_ext <<_ACEOF
    26362 /* confdefs.h.  */
    26363 _ACEOF
    26364 cat confdefs.h >>conftest.$ac_ext
    26365 cat >>conftest.$ac_ext <<_ACEOF
    26366 /* end confdefs.h.  */
    26367 
    26368 int
    26369 main ()
    26370 {
    26371 
    26372   ;
    26373   return 0;
    26374 }
    26375 _ACEOF
    26376 rm -f conftest.$ac_objext conftest$ac_exeext
    26377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    26378   (eval $ac_link) 2>conftest.er1
    26379   ac_status=$?
    26380   grep -v '^ *+' conftest.er1 >conftest.err
    26381   rm -f conftest.er1
    26382   cat conftest.err >&5
    26383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26384   (exit $ac_status); } &&
    26385          { ac_try='test -z "$ac_c_werror_flag"
    26386                          || test ! -s conftest.err'
    26387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    26388   (eval $ac_try) 2>&5
    26389   ac_status=$?
    26390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26391   (exit $ac_status); }; } &&
    26392          { ac_try='test -s conftest$ac_exeext'
    26393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    26394   (eval $ac_try) 2>&5
    26395   ac_status=$?
    26396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26397   (exit $ac_status); }; }; then
    26398 
    26399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    26400 }'`
    26401 # Check for a 64-bit object if we didn't find anything.
    26402 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    26403 }'`; fi
    26404 else
    26405   echo "$as_me: failed program was:" >&5
    26406 sed 's/^/| /' conftest.$ac_ext >&5
    26407 
    26408 fi
    26409 rm -f conftest.err conftest.$ac_objext \
    26410       conftest$ac_exeext conftest.$ac_ext
    26411 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    26412 
    26413        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
    26414         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    26415        else
    26416         if test "$host_cpu" = ia64; then
    26417           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
    26418           allow_undefined_flag_GCJ="-z nodefs"
    26419           archive_expsym_cmds_GCJ="\$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"
    26420         else
    26421          # Determine the default libpath from the value encoded in an empty executable.
    26422          cat >conftest.$ac_ext <<_ACEOF
    26423 /* confdefs.h.  */
    26424 _ACEOF
    26425 cat confdefs.h >>conftest.$ac_ext
    26426 cat >>conftest.$ac_ext <<_ACEOF
    26427 /* end confdefs.h.  */
    26428 
    26429 int
    26430 main ()
    26431 {
    26432 
    26433   ;
    26434   return 0;
    26435 }
    26436 _ACEOF
    26437 rm -f conftest.$ac_objext conftest$ac_exeext
    26438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    26439   (eval $ac_link) 2>conftest.er1
    26440   ac_status=$?
    26441   grep -v '^ *+' conftest.er1 >conftest.err
    26442   rm -f conftest.er1
    26443   cat conftest.err >&5
    26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26445   (exit $ac_status); } &&
    26446          { ac_try='test -z "$ac_c_werror_flag"
    26447                          || test ! -s conftest.err'
    26448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    26449   (eval $ac_try) 2>&5
    26450   ac_status=$?
    26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26452   (exit $ac_status); }; } &&
    26453          { ac_try='test -s conftest$ac_exeext'
    26454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    26455   (eval $ac_try) 2>&5
    26456   ac_status=$?
    26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26458   (exit $ac_status); }; }; then
    26459 
    26460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    26461 }'`
    26462 # Check for a 64-bit object if we didn't find anything.
    26463 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    26464 }'`; fi
    26465 else
    26466   echo "$as_me: failed program was:" >&5
    26467 sed 's/^/| /' conftest.$ac_ext >&5
    26468 
    26469 fi
    26470 rm -f conftest.err conftest.$ac_objext \
    26471       conftest$ac_exeext conftest.$ac_ext
    26472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    26473 
    26474          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
    26475           # Warning - without using the other run time loading flags,
    26476           # -berok will link without error, but may produce a broken library.
    26477           no_undefined_flag_GCJ=' ${wl}-bernotok'
    26478           allow_undefined_flag_GCJ=' ${wl}-berok'
    26479           # Exported symbols can be pulled into shared objects from archives
    26480           whole_archive_flag_spec_GCJ='$convenience'
    26481           archive_cmds_need_lc_GCJ=yes
    26482           # This is similar to how AIX traditionally builds its shared libraries.
    26483           archive_expsym_cmds_GCJ="\$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'
    26484         fi
    26485       fi
    26486       ;;
    26487 
    26488     amigaos*)
    26489       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    26490       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    26491       hardcode_minus_L_GCJ=yes
    26492       # see comment about different semantics on the GNU ld section
    26493       ld_shlibs_GCJ=no
    26494       ;;
    26495 
    26496     bsdi[45]*)
    26497       export_dynamic_flag_spec_GCJ=-rdynamic
    26498       ;;
    26499 
    26500     cygwin* | mingw* | pw32*)
    26501       # When not using gcc, we currently assume that we are using
    26502       # Microsoft Visual C++.
    26503       # hardcode_libdir_flag_spec is actually meaningless, as there is
    26504       # no search path for DLLs.
    26505       hardcode_libdir_flag_spec_GCJ=' '
    26506       allow_undefined_flag_GCJ=unsupported
    26507       # Tell ltmain to make .lib files, not .a files.
    26508       libext=lib
    26509       # Tell ltmain to make .dll files, not .so files.
    26510       shrext_cmds=".dll"
    26511       # FIXME: Setting linknames here is a bad hack.
    26512       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
    26513       # The linker will automatically build a .lib file if we build a DLL.
    26514       old_archive_From_new_cmds_GCJ='true'
    26515       # FIXME: Should let the user specify the lib program.
    26516       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
    26517       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
    26518       enable_shared_with_static_runtimes_GCJ=yes
    26519       ;;
    26520 
    26521     darwin* | rhapsody*)
    26522       case $host_os in
    26523         rhapsody* | darwin1.[012])
    26524          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
    26525          ;;
    26526        *) # Darwin 1.3 on
    26527          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    26528            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
    26529          else
    26530            case ${MACOSX_DEPLOYMENT_TARGET} in
    26531              10.[012])
    26532                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
    26533                ;;
    26534              10.*)
    26535                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
    26536                ;;
    26537            esac
    26538          fi
    26539          ;;
    26540       esac
    26541       archive_cmds_need_lc_GCJ=no
    26542       hardcode_direct_GCJ=no
    26543       hardcode_automatic_GCJ=yes
    26544       hardcode_shlibpath_var_GCJ=unsupported
    26545       whole_archive_flag_spec_GCJ=''
    26546       link_all_deplibs_GCJ=yes
    26547     if test "$GCC" = yes ; then
    26548         output_verbose_link_cmd='echo'
    26549         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    26550       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    26551       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    26552       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    26553       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    26554     else
    26555       case $cc_basename in
    26556         xlc*)
    26557          output_verbose_link_cmd='echo'
    26558          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
    26559          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    26560           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
    26561          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    26562           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
    26563           ;;
    26564        *)
    26565          ld_shlibs_GCJ=no
    26566           ;;
    26567       esac
    26568     fi
    26569       ;;
    26570 
    26571     dgux*)
    26572       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    26573       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    26574       hardcode_shlibpath_var_GCJ=no
    26575       ;;
    26576 
    26577     freebsd1*)
    26578       ld_shlibs_GCJ=no
    26579       ;;
    26580 
    26581     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    26582     # support.  Future versions do this automatically, but an explicit c++rt0.o
    26583     # does not break anything, and helps significantly (at the cost of a little
    26584     # extra space).
    26585     freebsd2.2*)
    26586       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
    26587       hardcode_libdir_flag_spec_GCJ='-R$libdir'
    26588       hardcode_direct_GCJ=yes
    26589       hardcode_shlibpath_var_GCJ=no
    26590       ;;
    26591 
    26592     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    26593     freebsd2*)
    26594       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    26595       hardcode_direct_GCJ=yes
    26596       hardcode_minus_L_GCJ=yes
    26597       hardcode_shlibpath_var_GCJ=no
    26598       ;;
    26599 
    26600     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    26601     freebsd* | kfreebsd*-gnu | dragonfly*)
    26602       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    26603       hardcode_libdir_flag_spec_GCJ='-R$libdir'
    26604       hardcode_direct_GCJ=yes
    26605       hardcode_shlibpath_var_GCJ=no
    26606       ;;
    26607 
    26608     hpux9*)
    26609       if test "$GCC" = yes; then
    26610         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    26611       else
    26612         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    26613       fi
    26614       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
    26615       hardcode_libdir_separator_GCJ=:
    26616       hardcode_direct_GCJ=yes
    26617 
    26618       # hardcode_minus_L: Not really in the search PATH,
    26619       # but as the default location of the library.
    26620       hardcode_minus_L_GCJ=yes
    26621       export_dynamic_flag_spec_GCJ='${wl}-E'
    26622       ;;
    26623 
    26624     hpux10*)
    26625       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    26626         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    26627       else
    26628         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
    26629       fi
    26630       if test "$with_gnu_ld" = no; then
    26631         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
    26632         hardcode_libdir_separator_GCJ=:
    26633 
    26634         hardcode_direct_GCJ=yes
    26635         export_dynamic_flag_spec_GCJ='${wl}-E'
    26636 
    26637         # hardcode_minus_L: Not really in the search PATH,
    26638         # but as the default location of the library.
    26639         hardcode_minus_L_GCJ=yes
    26640       fi
    26641       ;;
    26642 
    26643     hpux11*)
    26644       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    26645         case $host_cpu in
    26646         hppa*64*)
    26647           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    26648           ;;
    26649         ia64*)
    26650           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    26651           ;;
    26652         *)
    26653           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    26654           ;;
    26655         esac
    26656       else
    26657         case $host_cpu in
    26658         hppa*64*)
    26659           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    26660           ;;
    26661         ia64*)
    26662           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    26663           ;;
    26664         *)
    26665           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    26666           ;;
    26667         esac
    26668       fi
    26669       if test "$with_gnu_ld" = no; then
    26670         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
    26671         hardcode_libdir_separator_GCJ=:
    26672 
    26673         case $host_cpu in
    26674         hppa*64*|ia64*)
    26675           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
    26676           hardcode_direct_GCJ=no
    26677           hardcode_shlibpath_var_GCJ=no
    26678           ;;
    26679         *)
    26680           hardcode_direct_GCJ=yes
    26681           export_dynamic_flag_spec_GCJ='${wl}-E'
    26682 
    26683           # hardcode_minus_L: Not really in the search PATH,
    26684           # but as the default location of the library.
    26685           hardcode_minus_L_GCJ=yes
    26686           ;;
    26687         esac
    26688       fi
    26689       ;;
    26690 
    26691     irix5* | irix6* | nonstopux*)
    26692       if test "$GCC" = yes; then
    26693         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    26694       else
    26695         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    26696         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
    26697       fi
    26698       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
    26699       hardcode_libdir_separator_GCJ=:
    26700       link_all_deplibs_GCJ=yes
    26701       ;;
    26702 
    26703     netbsd*)
    26704       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    26705         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    26706       else
    26707         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
    26708       fi
    26709       hardcode_libdir_flag_spec_GCJ='-R$libdir'
    26710       hardcode_direct_GCJ=yes
    26711       hardcode_shlibpath_var_GCJ=no
    26712       ;;
    26713 
    26714     newsos6)
    26715       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    26716       hardcode_direct_GCJ=yes
    26717       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
    26718       hardcode_libdir_separator_GCJ=:
    26719       hardcode_shlibpath_var_GCJ=no
    26720       ;;
    26721 
    26722     openbsd*)
    26723       hardcode_direct_GCJ=yes
    26724       hardcode_shlibpath_var_GCJ=no
    26725       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    26726         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    26727         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
    26728         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
    26729         export_dynamic_flag_spec_GCJ='${wl}-E'
    26730       else
    26731        case $host_os in
    26732          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
    26733            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    26734            hardcode_libdir_flag_spec_GCJ='-R$libdir'
    26735            ;;
    26736          *)
    26737            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    26738            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
    26739            ;;
    26740        esac
    26741       fi
    26742       ;;
    26743 
    26744     os2*)
    26745       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    26746       hardcode_minus_L_GCJ=yes
    26747       allow_undefined_flag_GCJ=unsupported
    26748       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    26749       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    26750       ;;
    26751 
    26752     osf3*)
    26753       if test "$GCC" = yes; then
    26754         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
    26755         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    26756       else
    26757         allow_undefined_flag_GCJ=' -expect_unresolved \*'
    26758         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    26759       fi
    26760       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
    26761       hardcode_libdir_separator_GCJ=:
    26762       ;;
    26763 
    26764     osf4* | osf5*)      # as osf3* with the addition of -msym flag
    26765       if test "$GCC" = yes; then
    26766         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
    26767         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    26768         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
    26769       else
    26770         allow_undefined_flag_GCJ=' -expect_unresolved \*'
    26771         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    26772         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
    26773         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
    26774 
    26775         # Both c and cxx compiler support -rpath directly
    26776         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
    26777       fi
    26778       hardcode_libdir_separator_GCJ=:
    26779       ;;
    26780 
    26781     solaris*)
    26782       no_undefined_flag_GCJ=' -z text'
    26783       if test "$GCC" = yes; then
    26784         wlarc='${wl}'
    26785         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    26786         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    26787           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
    26788       else
    26789         wlarc=''
    26790         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    26791         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    26792         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    26793       fi
    26794       hardcode_libdir_flag_spec_GCJ='-R$libdir'
    26795       hardcode_shlibpath_var_GCJ=no
    26796       case $host_os in
    26797       solaris2.[0-5] | solaris2.[0-5].*) ;;
    26798       *)
    26799         # The compiler driver will combine linker options so we
    26800         # cannot just pass the convience library names through
    26801         # without $wl, iff we do not link with $LD.
    26802         # Luckily, gcc supports the same syntax we need for Sun Studio.
    26803         # Supported since Solaris 2.6 (maybe 2.5.1?)
    26804         case $wlarc in
    26805         '')
    26806           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
    26807         *)
    26808           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
    26809         esac ;;
    26810       esac
    26811       link_all_deplibs_GCJ=yes
    26812       ;;
    26813 
    26814     sunos4*)
    26815       if test "x$host_vendor" = xsequent; then
    26816         # Use $CC to link under sequent, because it throws in some extra .o
    26817         # files that make .init and .fini sections work.
    26818         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    26819       else
    26820         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
    26821       fi
    26822       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    26823       hardcode_direct_GCJ=yes
    26824       hardcode_minus_L_GCJ=yes
    26825       hardcode_shlibpath_var_GCJ=no
    26826       ;;
    26827 
    26828     sysv4)
    26829       case $host_vendor in
    26830         sni)
    26831           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    26832           hardcode_direct_GCJ=yes # is this really true???
    26833         ;;
    26834         siemens)
    26835           ## LD is ld it makes a PLAMLIB
    26836           ## CC just makes a GrossModule.
    26837           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    26838           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
    26839           hardcode_direct_GCJ=no
    26840         ;;
    26841         motorola)
    26842           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    26843           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
    26844         ;;
    26845       esac
    26846       runpath_var='LD_RUN_PATH'
    26847       hardcode_shlibpath_var_GCJ=no
    26848       ;;
    26849 
    26850     sysv4.3*)
    26851       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    26852       hardcode_shlibpath_var_GCJ=no
    26853       export_dynamic_flag_spec_GCJ='-Bexport'
    26854       ;;
    26855 
    26856     sysv4*MP*)
    26857       if test -d /usr/nec; then
    26858         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    26859         hardcode_shlibpath_var_GCJ=no
    26860         runpath_var=LD_RUN_PATH
    26861         hardcode_runpath_var=yes
    26862         ld_shlibs_GCJ=yes
    26863       fi
    26864       ;;
    26865 
    26866     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
    26867       no_undefined_flag_GCJ='${wl}-z,text'
    26868       archive_cmds_need_lc_GCJ=no
    26869       hardcode_shlibpath_var_GCJ=no
    26870       runpath_var='LD_RUN_PATH'
    26871 
    26872       if test "$GCC" = yes; then
    26873         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    26874         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    26875       else
    26876         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    26877         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    26878       fi
    26879       ;;
    26880 
    26881     sysv5* | sco3.2v5* | sco5v6*)
    26882       # Note: We can NOT use -z defs as we might desire, because we do not
    26883       # link with -lc, and that would cause any symbols used from libc to
    26884       # always be unresolved, which means just about no library would
    26885       # ever link correctly.  If we're not using GNU ld we use -z text
    26886       # though, which does catch some bad symbols but isn't as heavy-handed
    26887       # as -z defs.
    26888       no_undefined_flag_GCJ='${wl}-z,text'
    26889       allow_undefined_flag_GCJ='${wl}-z,nodefs'
    26890       archive_cmds_need_lc_GCJ=no
    26891       hardcode_shlibpath_var_GCJ=no
    26892       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
    26893       hardcode_libdir_separator_GCJ=':'
    26894       link_all_deplibs_GCJ=yes
    26895       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
    26896       runpath_var='LD_RUN_PATH'
    26897 
    26898       if test "$GCC" = yes; then
    26899         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    26900         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    26901       else
    26902         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    26903         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
    26904       fi
    26905       ;;
    26906 
    26907     uts4*)
    26908       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    26909       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    26910       hardcode_shlibpath_var_GCJ=no
    26911       ;;
    26912 
    26913     *)
    26914       ld_shlibs_GCJ=no
    26915       ;;
    26916     esac
    26917   fi
    26918 
    26919 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
    26920 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
    26921 test "$ld_shlibs_GCJ" = no && can_build_shared=no
    26922 
    26923 #
    26924 # Do we need to explicitly link libc?
    26925 #
    26926 case "x$archive_cmds_need_lc_GCJ" in
    26927 x|xyes)
    26928   # Assume -lc should be added
    26929   archive_cmds_need_lc_GCJ=yes
    26930 
    26931   if test "$enable_shared" = yes && test "$GCC" = yes; then
    26932     case $archive_cmds_GCJ in
    26933     *'~'*)
    26934       # FIXME: we may have to deal with multi-command sequences.
    26935       ;;
    26936     '$CC '*)
    26937       # Test whether the compiler implicitly links with -lc since on some
    26938       # systems, -lgcc has to come before -lc. If gcc already passes -lc
    26939       # to ld, don't add -lc before -lgcc.
    26940       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
    26941 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    26942       $rm conftest*
    26943       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    26944 
    26945       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    26946   (eval $ac_compile) 2>&5
    26947   ac_status=$?
    26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26949   (exit $ac_status); } 2>conftest.err; then
    26950         soname=conftest
    26951         lib=conftest
    26952         libobjs=conftest.$ac_objext
    26953         deplibs=
    26954         wl=$lt_prog_compiler_wl_GCJ
    26955         pic_flag=$lt_prog_compiler_pic_GCJ
    26956         compiler_flags=-v
    26957         linker_flags=-v
    26958         verstring=
    26959         output_objdir=.
    26960         libname=conftest
    26961         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
    26962         allow_undefined_flag_GCJ=
    26963         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
    26964   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
    26965   ac_status=$?
    26966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26967   (exit $ac_status); }
    26968         then
    26969           archive_cmds_need_lc_GCJ=no
    26970         else
    26971           archive_cmds_need_lc_GCJ=yes
    26972         fi
    26973         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
    26974       else
    26975         cat conftest.err 1>&5
    26976       fi
    26977       $rm conftest*
    26978       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
    26979 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
    26980       ;;
    26981     esac
    26982   fi
    26983   ;;
    26984 esac
    26985 
    26986 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
    26987 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
    26988 library_names_spec=
    26989 libname_spec='lib$name'
    26990 soname_spec=
    26991 shrext_cmds=".so"
    26992 postinstall_cmds=
    26993 postuninstall_cmds=
    26994 finish_cmds=
    26995 finish_eval=
    26996 shlibpath_var=
    26997 shlibpath_overrides_runpath=unknown
    26998 version_type=none
    26999 dynamic_linker="$host_os ld.so"
    27000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
    27001 if test "$GCC" = yes; then
    27002   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    27003   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    27004     # if the path contains ";" then we assume it to be the separator
    27005     # otherwise default to the standard path separator (i.e. ":") - it is
    27006     # assumed that no part of a normal pathname contains ";" but that should
    27007     # okay in the real world where ";" in dirpaths is itself problematic.
    27008     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    27009   else
    27010     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    27011   fi
    27012 else
    27013   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    27014 fi
    27015 need_lib_prefix=unknown
    27016 hardcode_into_libs=no
    27017 
    27018 # when you set need_version to no, make sure it does not cause -set_version
    27019 # flags to be left without arguments
    27020 need_version=unknown
    27021 
    27022 case $host_os in
    27023 aix3*)
    27024   version_type=linux
    27025   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
    27026   shlibpath_var=LIBPATH
    27027 
    27028   # AIX 3 has no versioning support, so we append a major version to the name.
    27029   soname_spec='${libname}${release}${shared_ext}$major'
    27030   ;;
    27031 
    27032 aix4* | aix5*)
    27033   version_type=linux
    27034   need_lib_prefix=no
    27035   need_version=no
    27036   hardcode_into_libs=yes
    27037   if test "$host_cpu" = ia64; then
    27038     # AIX 5 supports IA64
    27039     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    27040     shlibpath_var=LD_LIBRARY_PATH
    27041   else
    27042     # With GCC up to 2.95.x, collect2 would create an import file
    27043     # for dependence libraries.  The import file would start with
    27044     # the line `#! .'.  This would cause the generated library to
    27045     # depend on `.', always an invalid library.  This was fixed in
    27046     # development snapshots of GCC prior to 3.0.
    27047     case $host_os in
    27048       aix4 | aix4.[01] | aix4.[01].*)
    27049       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    27050            echo ' yes '
    27051            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
    27052         :
    27053       else
    27054         can_build_shared=no
    27055       fi
    27056       ;;
    27057     esac
    27058     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    27059     # soname into executable. Probably we can add versioning support to
    27060     # collect2, so additional links can be useful in future.
    27061     if test "$aix_use_runtimelinking" = yes; then
    27062       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
    27063       # instead of lib<name>.a to let people know that these are not
    27064       # typical AIX shared libraries.
    27065       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27066     else
    27067       # We preserve .a as extension for shared libraries through AIX4.2
    27068       # and later when we are not doing run time linking.
    27069       library_names_spec='${libname}${release}.a $libname.a'
    27070       soname_spec='${libname}${release}${shared_ext}$major'
    27071     fi
    27072     shlibpath_var=LIBPATH
    27073   fi
    27074   ;;
    27075 
    27076 amigaos*)
    27077   library_names_spec='$libname.ixlibrary $libname.a'
    27078   # Create ${libname}_ixlibrary.a entries in /sys/libs.
    27079   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    27080   ;;
    27081 
    27082 beos*)
    27083   library_names_spec='${libname}${shared_ext}'
    27084   dynamic_linker="$host_os ld.so"
    27085   shlibpath_var=LIBRARY_PATH
    27086   ;;
    27087 
    27088 bsdi[45]*)
    27089   version_type=linux
    27090   need_version=no
    27091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27092   soname_spec='${libname}${release}${shared_ext}$major'
    27093   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
    27094   shlibpath_var=LD_LIBRARY_PATH
    27095   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
    27096   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
    27097   # the default ld.so.conf also contains /usr/contrib/lib and
    27098   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
    27099   # libtool to hard-code these into programs
    27100   ;;
    27101 
    27102 cygwin* | mingw* | pw32*)
    27103   version_type=windows
    27104   shrext_cmds=".dll"
    27105   need_version=no
    27106   need_lib_prefix=no
    27107 
    27108   case $GCC,$host_os in
    27109   yes,cygwin* | yes,mingw* | yes,pw32*)
    27110     library_names_spec='$libname.dll.a'
    27111     # DLL is installed to $(libdir)/../bin by postinstall_cmds
    27112     postinstall_cmds='base_file=`basename \${file}`~
    27113       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
    27114       dldir=$destdir/`dirname \$dlpath`~
    27115       test -d \$dldir || mkdir -p \$dldir~
    27116       $install_prog $dir/$dlname \$dldir/$dlname~
    27117       chmod a+x \$dldir/$dlname'
    27118     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
    27119       dlpath=$dir/\$dldll~
    27120        $rm \$dlpath'
    27121     shlibpath_overrides_runpath=yes
    27122 
    27123     case $host_os in
    27124     cygwin*)
    27125       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    27126       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    27127       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
    27128       ;;
    27129     mingw*)
    27130       # MinGW DLLs use traditional 'lib' prefix
    27131       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    27132       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    27133       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
    27134         # It is most probably a Windows format PATH printed by
    27135         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    27136         # path with ; separators, and with drive letters. We can handle the
    27137         # drive letters (cygwin fileutils understands them), so leave them,
    27138         # especially as we might pass files found there to a mingw objdump,
    27139         # which wouldn't understand a cygwinified path. Ahh.
    27140         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    27141       else
    27142         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    27143       fi
    27144       ;;
    27145     pw32*)
    27146       # pw32 DLLs use 'pw' prefix rather than 'lib'
    27147       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    27148       ;;
    27149     esac
    27150     ;;
    27151 
    27152   linux*)
    27153     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
    27154       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    27155       supports_anon_versioning=no
    27156       case `$LD -v 2>/dev/null` in
    27157         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
    27158         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    27159         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    27160         *\ 2.11.*) ;; # other 2.11 versions
    27161         *) supports_anon_versioning=yes ;;
    27162       esac
    27163       if test $supports_anon_versioning = yes; then
    27164         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
    27165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    27166 $echo "local: *; };" >> $output_objdir/$libname.ver~
    27167         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    27168       else
    27169         $archive_expsym_cmds="$archive_cmds"
    27170       fi
    27171     else
    27172       ld_shlibs=no
    27173     fi
    27174     ;;
    27175 
    27176   *)
    27177     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    27178     ;;
    27179   esac
    27180   dynamic_linker='Win32 ld.exe'
    27181   # FIXME: first we should search . and the directory the executable is in
    27182   shlibpath_var=PATH
    27183   ;;
    27184 
    27185 darwin* | rhapsody*)
    27186   dynamic_linker="$host_os dyld"
    27187   version_type=darwin
    27188   need_lib_prefix=no
    27189   need_version=no
    27190   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
    27191   soname_spec='${libname}${release}${major}$shared_ext'
    27192   shlibpath_overrides_runpath=yes
    27193   shlibpath_var=DYLD_LIBRARY_PATH
    27194   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    27195   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    27196   if test "$GCC" = yes; then
    27197     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
    27198   else
    27199     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    27200   fi
    27201   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    27202   ;;
    27203 
    27204 dgux*)
    27205   version_type=linux
    27206   need_lib_prefix=no
    27207   need_version=no
    27208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
    27209   soname_spec='${libname}${release}${shared_ext}$major'
    27210   shlibpath_var=LD_LIBRARY_PATH
    27211   ;;
    27212 
    27213 freebsd1*)
    27214   dynamic_linker=no
    27215   ;;
    27216 
    27217 kfreebsd*-gnu)
    27218   version_type=linux
    27219   need_lib_prefix=no
    27220   need_version=no
    27221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    27222   soname_spec='${libname}${release}${shared_ext}$major'
    27223   shlibpath_var=LD_LIBRARY_PATH
    27224   shlibpath_overrides_runpath=no
    27225   hardcode_into_libs=yes
    27226   dynamic_linker='GNU ld.so'
    27227   ;;
    27228 
    27229 freebsd* | dragonfly*)
    27230   # DragonFly does not have aout.  When/if they implement a new
    27231   # versioning mechanism, adjust this.
    27232   if test -x /usr/bin/objformat; then
    27233     objformat=`/usr/bin/objformat`
    27234   else
    27235     case $host_os in
    27236     freebsd[123]*) objformat=aout ;;
    27237     *) objformat=elf ;;
    27238     esac
    27239   fi
    27240   # Handle Gentoo/FreeBSD as it was Linux
    27241   case $host_vendor in
    27242     gentoo)
    27243       version_type=linux ;;
    27244     *)
    27245       version_type=freebsd-$objformat ;;
    27246   esac
    27247 
    27248   case $version_type in
    27249     freebsd-elf*)
    27250       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
    27251       need_version=no
    27252       need_lib_prefix=no
    27253       ;;
    27254     freebsd-*)
    27255       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
    27256       need_version=yes
    27257       ;;
    27258     linux)
    27259       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    27260       soname_spec='${libname}${release}${shared_ext}$major'
    27261       need_lib_prefix=no
    27262       need_version=no
    27263       ;;
    27264   esac
    27265   shlibpath_var=LD_LIBRARY_PATH
    27266   case $host_os in
    27267   freebsd2*)
    27268     shlibpath_overrides_runpath=yes
    27269     ;;
    27270   freebsd3.[01]* | freebsdelf3.[01]*)
    27271     shlibpath_overrides_runpath=yes
    27272     hardcode_into_libs=yes
    27273     ;;
    27274   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
    27275   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
    27276     shlibpath_overrides_runpath=no
    27277     hardcode_into_libs=yes
    27278     ;;
    27279   freebsd*) # from 4.6 on
    27280     shlibpath_overrides_runpath=yes
    27281     hardcode_into_libs=yes
    27282     ;;
    27283   esac
    27284   ;;
    27285 
    27286 gnu*)
    27287   version_type=linux
    27288   need_lib_prefix=no
    27289   need_version=no
    27290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    27291   soname_spec='${libname}${release}${shared_ext}$major'
    27292   shlibpath_var=LD_LIBRARY_PATH
    27293   hardcode_into_libs=yes
    27294   ;;
    27295 
    27296 hpux9* | hpux10* | hpux11*)
    27297   # Give a soname corresponding to the major version so that dld.sl refuses to
    27298   # link against other versions.
    27299   version_type=sunos
    27300   need_lib_prefix=no
    27301   need_version=no
    27302   case $host_cpu in
    27303   ia64*)
    27304     shrext_cmds='.so'
    27305     hardcode_into_libs=yes
    27306     dynamic_linker="$host_os dld.so"
    27307     shlibpath_var=LD_LIBRARY_PATH
    27308     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    27309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27310     soname_spec='${libname}${release}${shared_ext}$major'
    27311     if test "X$HPUX_IA64_MODE" = X32; then
    27312       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    27313     else
    27314       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    27315     fi
    27316     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    27317     ;;
    27318    hppa*64*)
    27319      shrext_cmds='.sl'
    27320      hardcode_into_libs=yes
    27321      dynamic_linker="$host_os dld.sl"
    27322      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    27323      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    27324      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27325      soname_spec='${libname}${release}${shared_ext}$major'
    27326      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    27327      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    27328      ;;
    27329    *)
    27330     shrext_cmds='.sl'
    27331     dynamic_linker="$host_os dld.sl"
    27332     shlibpath_var=SHLIB_PATH
    27333     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    27334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27335     soname_spec='${libname}${release}${shared_ext}$major'
    27336     ;;
    27337   esac
    27338   # HP-UX runs *really* slowly unless shared libraries are mode 555.
    27339   postinstall_cmds='chmod 555 $lib'
    27340   ;;
    27341 
    27342 interix3*)
    27343   version_type=linux
    27344   need_lib_prefix=no
    27345   need_version=no
    27346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    27347   soname_spec='${libname}${release}${shared_ext}$major'
    27348   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
    27349   shlibpath_var=LD_LIBRARY_PATH
    27350   shlibpath_overrides_runpath=no
    27351   hardcode_into_libs=yes
    27352   ;;
    27353 
    27354 irix5* | irix6* | nonstopux*)
    27355   case $host_os in
    27356     nonstopux*) version_type=nonstopux ;;
    27357     *)
    27358         if test "$lt_cv_prog_gnu_ld" = yes; then
    27359                 version_type=linux
    27360         else
    27361                 version_type=irix
    27362         fi ;;
    27363   esac
    27364   need_lib_prefix=no
    27365   need_version=no
    27366   soname_spec='${libname}${release}${shared_ext}$major'
    27367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
    27368   case $host_os in
    27369   irix5* | nonstopux*)
    27370     libsuff= shlibsuff=
    27371     ;;
    27372   *)
    27373     case $LD in # libtool.m4 will add one of these switches to LD
    27374     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
    27375       libsuff= shlibsuff= libmagic=32-bit;;
    27376     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
    27377       libsuff=32 shlibsuff=N32 libmagic=N32;;
    27378     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
    27379       libsuff=64 shlibsuff=64 libmagic=64-bit;;
    27380     *) libsuff= shlibsuff= libmagic=never-match;;
    27381     esac
    27382     ;;
    27383   esac
    27384   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
    27385   shlibpath_overrides_runpath=no
    27386   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
    27387   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
    27388   hardcode_into_libs=yes
    27389   ;;
    27390 
    27391 # No shared lib support for Linux oldld, aout, or coff.
    27392 linux*oldld* | linux*aout* | linux*coff*)
    27393   dynamic_linker=no
    27394   ;;
    27395 
    27396 # This must be Linux ELF.
    27397 linux*)
    27398   version_type=linux
    27399   need_lib_prefix=no
    27400   need_version=no
    27401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27402   soname_spec='${libname}${release}${shared_ext}$major'
    27403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
    27404   shlibpath_var=LD_LIBRARY_PATH
    27405   shlibpath_overrides_runpath=no
    27406   # This implies no fast_install, which is unacceptable.
    27407   # Some rework will be needed to allow for fast_install
    27408   # before this can be enabled.
    27409   hardcode_into_libs=yes
    27410 
    27411   # Append ld.so.conf contents to the search path
    27412   if test -f /etc/ld.so.conf; then
    27413     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    27414     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    27415   fi
    27416 
    27417   # We used to test for /lib/ld.so.1 and disable shared libraries on
    27418   # powerpc, because MkLinux only supported shared libraries with the
    27419   # GNU dynamic linker.  Since this was broken with cross compilers,
    27420   # most powerpc-linux boxes support dynamic linking these days and
    27421   # people can always --disable-shared, the test was removed, and we
    27422   # assume the GNU/Linux dynamic linker is in use.
    27423   dynamic_linker='GNU/Linux ld.so'
    27424   ;;
    27425 
    27426 knetbsd*-gnu)
    27427   version_type=linux
    27428   need_lib_prefix=no
    27429   need_version=no
    27430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    27431   soname_spec='${libname}${release}${shared_ext}$major'
    27432   shlibpath_var=LD_LIBRARY_PATH
    27433   shlibpath_overrides_runpath=no
    27434   hardcode_into_libs=yes
    27435   dynamic_linker='GNU ld.so'
    27436   ;;
    27437 
    27438 netbsd*)
    27439   version_type=sunos
    27440   need_lib_prefix=no
    27441   need_version=no
    27442   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    27443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    27444     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    27445     dynamic_linker='NetBSD (a.out) ld.so'
    27446   else
    27447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    27448     soname_spec='${libname}${release}${shared_ext}$major'
    27449     dynamic_linker='NetBSD ld.elf_so'
    27450   fi
    27451   shlibpath_var=LD_LIBRARY_PATH
    27452   shlibpath_overrides_runpath=yes
    27453   hardcode_into_libs=yes
    27454   ;;
    27455 
    27456 newsos6)
    27457   version_type=linux
    27458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27459   shlibpath_var=LD_LIBRARY_PATH
    27460   shlibpath_overrides_runpath=yes
    27461   ;;
    27462 
    27463 nto-qnx*)
    27464   version_type=linux
    27465   need_lib_prefix=no
    27466   need_version=no
    27467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27468   soname_spec='${libname}${release}${shared_ext}$major'
    27469   shlibpath_var=LD_LIBRARY_PATH
    27470   shlibpath_overrides_runpath=yes
    27471   ;;
    27472 
    27473 openbsd*)
    27474   version_type=sunos
    27475   sys_lib_dlsearch_path_spec="/usr/lib"
    27476   need_lib_prefix=no
    27477   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
    27478   case $host_os in
    27479     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
    27480     *)                         need_version=no  ;;
    27481   esac
    27482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    27483   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    27484   shlibpath_var=LD_LIBRARY_PATH
    27485   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    27486     case $host_os in
    27487       openbsd2.[89] | openbsd2.[89].*)
    27488         shlibpath_overrides_runpath=no
    27489         ;;
    27490       *)
    27491         shlibpath_overrides_runpath=yes
    27492         ;;
    27493       esac
    27494   else
    27495     shlibpath_overrides_runpath=yes
    27496   fi
    27497   ;;
    27498 
    27499 os2*)
    27500   libname_spec='$name'
    27501   shrext_cmds=".dll"
    27502   need_lib_prefix=no
    27503   library_names_spec='$libname${shared_ext} $libname.a'
    27504   dynamic_linker='OS/2 ld.exe'
    27505   shlibpath_var=LIBPATH
    27506   ;;
    27507 
    27508 osf3* | osf4* | osf5*)
    27509   version_type=osf
    27510   need_lib_prefix=no
    27511   need_version=no
    27512   soname_spec='${libname}${release}${shared_ext}$major'
    27513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27514   shlibpath_var=LD_LIBRARY_PATH
    27515   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
    27516   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
    27517   ;;
    27518 
    27519 solaris*)
    27520   version_type=linux
    27521   need_lib_prefix=no
    27522   need_version=no
    27523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27524   soname_spec='${libname}${release}${shared_ext}$major'
    27525   shlibpath_var=LD_LIBRARY_PATH
    27526   shlibpath_overrides_runpath=yes
    27527   hardcode_into_libs=yes
    27528   # ldd complains unless libraries are executable
    27529   postinstall_cmds='chmod +x $lib'
    27530   ;;
    27531 
    27532 sunos4*)
    27533   version_type=sunos
    27534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    27535   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
    27536   shlibpath_var=LD_LIBRARY_PATH
    27537   shlibpath_overrides_runpath=yes
    27538   if test "$with_gnu_ld" = yes; then
    27539     need_lib_prefix=no
    27540   fi
    27541   need_version=yes
    27542   ;;
    27543 
    27544 sysv4 | sysv4.3*)
    27545   version_type=linux
    27546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27547   soname_spec='${libname}${release}${shared_ext}$major'
    27548   shlibpath_var=LD_LIBRARY_PATH
    27549   case $host_vendor in
    27550     sni)
    27551       shlibpath_overrides_runpath=no
    27552       need_lib_prefix=no
    27553       export_dynamic_flag_spec='${wl}-Blargedynsym'
    27554       runpath_var=LD_RUN_PATH
    27555       ;;
    27556     siemens)
    27557       need_lib_prefix=no
    27558       ;;
    27559     motorola)
    27560       need_lib_prefix=no
    27561       need_version=no
    27562       shlibpath_overrides_runpath=no
    27563       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
    27564       ;;
    27565   esac
    27566   ;;
    27567 
    27568 sysv4*MP*)
    27569   if test -d /usr/nec ;then
    27570     version_type=linux
    27571     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    27572     soname_spec='$libname${shared_ext}.$major'
    27573     shlibpath_var=LD_LIBRARY_PATH
    27574   fi
    27575   ;;
    27576 
    27577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
    27578   version_type=freebsd-elf
    27579   need_lib_prefix=no
    27580   need_version=no
    27581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
    27582   soname_spec='${libname}${release}${shared_ext}$major'
    27583   shlibpath_var=LD_LIBRARY_PATH
    27584   hardcode_into_libs=yes
    27585   if test "$with_gnu_ld" = yes; then
    27586     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    27587     shlibpath_overrides_runpath=no
    27588   else
    27589     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
    27590     shlibpath_overrides_runpath=yes
    27591     case $host_os in
    27592       sco3.2v5*)
    27593         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
    27594         ;;
    27595     esac
    27596   fi
    27597   sys_lib_dlsearch_path_spec='/usr/lib'
    27598   ;;
    27599 
    27600 uts4*)
    27601   version_type=linux
    27602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    27603   soname_spec='${libname}${release}${shared_ext}$major'
    27604   shlibpath_var=LD_LIBRARY_PATH
    27605   ;;
    27606 
    27607 *)
    27608   dynamic_linker=no
    27609   ;;
    27610 esac
    27611 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
    27612 echo "${ECHO_T}$dynamic_linker" >&6
    27613 test "$dynamic_linker" = no && can_build_shared=no
    27614 
    27615 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    27616 if test "$GCC" = yes; then
    27617   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    27618 fi
    27619 
    27620 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
    27621 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
    27622 hardcode_action_GCJ=
    27623 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
    27624    test -n "$runpath_var_GCJ" || \
    27625    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
    27626 
    27627   # We can hardcode non-existant directories.
    27628   if test "$hardcode_direct_GCJ" != no &&
    27629      # If the only mechanism to avoid hardcoding is shlibpath_var, we
    27630      # have to relink, otherwise we might link with an installed library
    27631      # when we should be linking with a yet-to-be-installed one
    27632      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
    27633      test "$hardcode_minus_L_GCJ" != no; then
    27634     # Linking always hardcodes the temporary library directory.
    27635     hardcode_action_GCJ=relink
    27636   else
    27637     # We can link without hardcoding, and we can hardcode nonexisting dirs.
    27638     hardcode_action_GCJ=immediate
    27639   fi
    27640 else
    27641   # We cannot hardcode anything, or else we can only hardcode existing
    27642   # directories.
    27643   hardcode_action_GCJ=unsupported
    27644 fi
    27645 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
    27646 echo "${ECHO_T}$hardcode_action_GCJ" >&6
    27647 
    27648 if test "$hardcode_action_GCJ" = relink; then
    27649   # Fast installation is not supported
    27650   enable_fast_install=no
    27651 elif test "$shlibpath_overrides_runpath" = yes ||
    27652      test "$enable_shared" = no; then
    27653   # Fast installation is not necessary
    27654   enable_fast_install=needless
    27655 fi
    27656 
    27657 
    27658 # The else clause should only fire when bootstrapping the
    27659 # libtool distribution, otherwise you forgot to ship ltmain.sh
    27660 # with your package, and you will get complaints that there are
    27661 # no rules to generate ltmain.sh.
    27662 if test -f "$ltmain"; then
    27663   # See if we are running on zsh, and set the options which allow our commands through
    27664   # without removal of \ escapes.
    27665   if test -n "${ZSH_VERSION+set}" ; then
    27666     setopt NO_GLOB_SUBST
    27667   fi
    27668   # Now quote all the things that may contain metacharacters while being
    27669   # careful not to overquote the AC_SUBSTed values.  We take copies of the
    27670   # variables and quote the copies for generation of the libtool script.
    27671   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    27672     SED SHELL STRIP \
    27673     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    27674     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    27675     deplibs_check_method reload_flag reload_cmds need_locks \
    27676     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    27677     lt_cv_sys_global_symbol_to_c_name_address \
    27678     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    27679     old_postinstall_cmds old_postuninstall_cmds \
    27680     compiler_GCJ \
    27681     CC_GCJ \
    27682     LD_GCJ \
    27683     lt_prog_compiler_wl_GCJ \
    27684     lt_prog_compiler_pic_GCJ \
    27685     lt_prog_compiler_static_GCJ \
    27686     lt_prog_compiler_no_builtin_flag_GCJ \
    27687     export_dynamic_flag_spec_GCJ \
    27688     thread_safe_flag_spec_GCJ \
    27689     whole_archive_flag_spec_GCJ \
    27690     enable_shared_with_static_runtimes_GCJ \
    27691     old_archive_cmds_GCJ \
    27692     old_archive_from_new_cmds_GCJ \
    27693     predep_objects_GCJ \
    27694     postdep_objects_GCJ \
    27695     predeps_GCJ \
    27696     postdeps_GCJ \
    27697     compiler_lib_search_path_GCJ \
    27698     archive_cmds_GCJ \
    27699     archive_expsym_cmds_GCJ \
    27700     postinstall_cmds_GCJ \
    27701     postuninstall_cmds_GCJ \
    27702     old_archive_from_expsyms_cmds_GCJ \
    27703     allow_undefined_flag_GCJ \
    27704     no_undefined_flag_GCJ \
    27705     export_symbols_cmds_GCJ \
    27706     hardcode_libdir_flag_spec_GCJ \
    27707     hardcode_libdir_flag_spec_ld_GCJ \
    27708     hardcode_libdir_separator_GCJ \
    27709     hardcode_automatic_GCJ \
    27710     module_cmds_GCJ \
    27711     module_expsym_cmds_GCJ \
    27712     lt_cv_prog_compiler_c_o_GCJ \
    27713     exclude_expsyms_GCJ \
    27714     include_expsyms_GCJ; do
    27715 
    27716     case $var in
    27717     old_archive_cmds_GCJ | \
    27718     old_archive_from_new_cmds_GCJ | \
    27719     archive_cmds_GCJ | \
    27720     archive_expsym_cmds_GCJ | \
    27721     module_cmds_GCJ | \
    27722     module_expsym_cmds_GCJ | \
    27723     old_archive_from_expsyms_cmds_GCJ | \
    27724     export_symbols_cmds_GCJ | \
    27725     extract_expsyms_cmds | reload_cmds | finish_cmds | \
    27726     postinstall_cmds | postuninstall_cmds | \
    27727     old_postinstall_cmds | old_postuninstall_cmds | \
    27728     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    27729       # Double-quote double-evaled strings.
    27730       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
    27731       ;;
    27732     *)
    27733       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
    27734       ;;
    27735     esac
    27736   done
    27737 
    27738   case $lt_echo in
    27739   *'\$0 --fallback-echo"')
    27740     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    27741     ;;
    27742   esac
    27743 
    27744 cfgfile="$ofile"
    27745 
    27746   cat <<__EOF__ >> "$cfgfile"
    27747 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
    27748 
    27749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    27750 
    27751 # Shell to use when invoking shell scripts.
    27752 SHELL=$lt_SHELL
    27753 
    27754 # Whether or not to build shared libraries.
    27755 build_libtool_libs=$enable_shared
    27756 
    27757 # Whether or not to build static libraries.
    27758 build_old_libs=$enable_static
    27759 
    27760 # Whether or not to add -lc for building shared libraries.
    27761 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
    27762 
    27763 # Whether or not to disallow shared libs when runtime libs are static
    27764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
    27765 
    27766 # Whether or not to optimize for fast installation.
    27767 fast_install=$enable_fast_install
    27768 
    27769 # The host system.
    27770 host_alias=$host_alias
    27771 host=$host
    27772 host_os=$host_os
    27773 
    27774 # The build system.
    27775 build_alias=$build_alias
    27776 build=$build
    27777 build_os=$build_os
    27778 
    27779 # An echo program that does not interpret backslashes.
    27780 echo=$lt_echo
    27781 
    27782 # The archiver.
    27783 AR=$lt_AR
    27784 AR_FLAGS=$lt_AR_FLAGS
    27785 
    27786 # A C compiler.
    27787 LTCC=$lt_LTCC
    27788 
    27789 # LTCC compiler flags.
    27790 LTCFLAGS=$lt_LTCFLAGS
    27791 
    27792 # A language-specific compiler.
    27793 CC=$lt_compiler_GCJ
    27794 
    27795 # Is the compiler the GNU C compiler?
    27796 with_gcc=$GCC_GCJ
    27797 
    27798 # An ERE matcher.
    27799 EGREP=$lt_EGREP
    27800 
    27801 # The linker used to build libraries.
    27802 LD=$lt_LD_GCJ
    27803 
    27804 # Whether we need hard or soft links.
    27805 LN_S=$lt_LN_S
    27806 
    27807 # A BSD-compatible nm program.
    27808 NM=$lt_NM
    27809 
    27810 # A symbol stripping program
    27811 STRIP=$lt_STRIP
    27812 
    27813 # Used to examine libraries when file_magic_cmd begins "file"
    27814 MAGIC_CMD=$MAGIC_CMD
    27815 
    27816 # Used on cygwin: DLL creation program.
    27817 DLLTOOL="$DLLTOOL"
    27818 
    27819 # Used on cygwin: object dumper.
    27820 OBJDUMP="$OBJDUMP"
    27821 
    27822 # Used on cygwin: assembler.
    27823 AS="$AS"
    27824 
    27825 # The name of the directory that contains temporary libtool files.
    27826 objdir=$objdir
    27827 
    27828 # How to create reloadable object files.
    27829 reload_flag=$lt_reload_flag
    27830 reload_cmds=$lt_reload_cmds
    27831 
    27832 # How to pass a linker flag through the compiler.
    27833 wl=$lt_lt_prog_compiler_wl_GCJ
    27834 
    27835 # Object file suffix (normally "o").
    27836 objext="$ac_objext"
    27837 
    27838 # Old archive suffix (normally "a").
    27839 libext="$libext"
    27840 
    27841 # Shared library suffix (normally ".so").
    27842 shrext_cmds='$shrext_cmds'
    27843 
    27844 # Executable file suffix (normally "").
    27845 exeext="$exeext"
    27846 
    27847 # Additional compiler flags for building library objects.
    27848 pic_flag=$lt_lt_prog_compiler_pic_GCJ
    27849 pic_mode=$pic_mode
    27850 
    27851 # What is the maximum length of a command?
    27852 max_cmd_len=$lt_cv_sys_max_cmd_len
    27853 
    27854 # Does compiler simultaneously support -c and -o options?
    27855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
    27856 
    27857 # Must we lock files when doing compilation?
    27858 need_locks=$lt_need_locks
    27859 
    27860 # Do we need the lib prefix for modules?
    27861 need_lib_prefix=$need_lib_prefix
    27862 
    27863 # Do we need a version for libraries?
    27864 need_version=$need_version
    27865 
    27866 # Whether dlopen is supported.
    27867 dlopen_support=$enable_dlopen
    27868 
    27869 # Whether dlopen of programs is supported.
    27870 dlopen_self=$enable_dlopen_self
    27871 
    27872 # Whether dlopen of statically linked programs is supported.
    27873 dlopen_self_static=$enable_dlopen_self_static
    27874 
    27875 # Compiler flag to prevent dynamic linking.
    27876 link_static_flag=$lt_lt_prog_compiler_static_GCJ
    27877 
    27878 # Compiler flag to turn off builtin functions.
    27879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
    27880 
    27881 # Compiler flag to allow reflexive dlopens.
    27882 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
    27883 
    27884 # Compiler flag to generate shared objects directly from archives.
    27885 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
    27886 
    27887 # Compiler flag to generate thread-safe objects.
    27888 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
    27889 
    27890 # Library versioning type.
    27891 version_type=$version_type
    27892 
    27893 # Format of library name prefix.
    27894 libname_spec=$lt_libname_spec
    27895 
    27896 # List of archive names.  First name is the real one, the rest are links.
    27897 # The last name is the one that the linker finds with -lNAME.
    27898 library_names_spec=$lt_library_names_spec
    27899 
    27900 # The coded name of the library, if different from the real name.
    27901 soname_spec=$lt_soname_spec
    27902 
    27903 # Commands used to build and install an old-style archive.
    27904 RANLIB=$lt_RANLIB
    27905 old_archive_cmds=$lt_old_archive_cmds_GCJ
    27906 old_postinstall_cmds=$lt_old_postinstall_cmds
    27907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
    27908 
    27909 # Create an old-style archive from a shared archive.
    27910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
    27911 
    27912 # Create a temporary old-style archive to link instead of a shared archive.
    27913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
    27914 
    27915 # Commands used to build and install a shared archive.
    27916 archive_cmds=$lt_archive_cmds_GCJ
    27917 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
    27918 postinstall_cmds=$lt_postinstall_cmds
    27919 postuninstall_cmds=$lt_postuninstall_cmds
    27920 
    27921 # Commands used to build a loadable module (assumed same as above if empty)
    27922 module_cmds=$lt_module_cmds_GCJ
    27923 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
    27924 
    27925 # Commands to strip libraries.
    27926 old_striplib=$lt_old_striplib
    27927 striplib=$lt_striplib
    27928 
    27929 # Dependencies to place before the objects being linked to create a
    27930 # shared library.
    27931 predep_objects=$lt_predep_objects_GCJ
    27932 
    27933 # Dependencies to place after the objects being linked to create a
    27934 # shared library.
    27935 postdep_objects=$lt_postdep_objects_GCJ
    27936 
    27937 # Dependencies to place before the objects being linked to create a
    27938 # shared library.
    27939 predeps=$lt_predeps_GCJ
    27940 
    27941 # Dependencies to place after the objects being linked to create a
    27942 # shared library.
    27943 postdeps=$lt_postdeps_GCJ
    27944 
    27945 # The library search path used internally by the compiler when linking
    27946 # a shared library.
    27947 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
    27948 
    27949 # Method to check whether dependent libraries are shared objects.
    27950 deplibs_check_method=$lt_deplibs_check_method
    27951 
    27952 # Command to use when deplibs_check_method == file_magic.
    27953 file_magic_cmd=$lt_file_magic_cmd
    27954 
    27955 # Flag that allows shared libraries with undefined symbols to be built.
    27956 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
    27957 
    27958 # Flag that forces no undefined symbols.
    27959 no_undefined_flag=$lt_no_undefined_flag_GCJ
    27960 
    27961 # Commands used to finish a libtool library installation in a directory.
    27962 finish_cmds=$lt_finish_cmds
    27963 
    27964 # Same as above, but a single script fragment to be evaled but not shown.
    27965 finish_eval=$lt_finish_eval
    27966 
    27967 # Take the output of nm and produce a listing of raw symbols and C names.
    27968 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
    27969 
    27970 # Transform the output of nm in a proper C declaration
    27971 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
    27972 
    27973 # Transform the output of nm in a C name address pair
    27974 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
    27975 
    27976 # This is the shared library runtime path variable.
    27977 runpath_var=$runpath_var
    27978 
    27979 # This is the shared library path variable.
    27980 shlibpath_var=$shlibpath_var
    27981 
    27982 # Is shlibpath searched before the hard-coded library search path?
    27983 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
    27984 
    27985 # How to hardcode a shared library path into an executable.
    27986 hardcode_action=$hardcode_action_GCJ
    27987 
    27988 # Whether we should hardcode library paths into libraries.
    27989 hardcode_into_libs=$hardcode_into_libs
    27990 
    27991 # Flag to hardcode \$libdir into a binary during linking.
    27992 # This must work even if \$libdir does not exist.
    27993 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
    27994 
    27995 # If ld is used when linking, flag to hardcode \$libdir into
    27996 # a binary during linking. This must work even if \$libdir does
    27997 # not exist.
    27998 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
    27999 
    28000 # Whether we need a single -rpath flag with a separated argument.
    28001 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
    28002 
    28003 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
    28004 # resulting binary.
    28005 hardcode_direct=$hardcode_direct_GCJ
    28006 
    28007 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    28008 # resulting binary.
    28009 hardcode_minus_L=$hardcode_minus_L_GCJ
    28010 
    28011 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    28012 # the resulting binary.
    28013 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
    28014 
    28015 # Set to yes if building a shared library automatically hardcodes DIR into the library
    28016 # and all subsequent libraries and executables linked against it.
    28017 hardcode_automatic=$hardcode_automatic_GCJ
    28018 
    28019 # Variables whose values should be saved in libtool wrapper scripts and
    28020 # restored at relink time.
    28021 variables_saved_for_relink="$variables_saved_for_relink"
    28022 
    28023 # Whether libtool must link a program against all its dependency libraries.
    28024 link_all_deplibs=$link_all_deplibs_GCJ
    28025 
    28026 # Compile-time system search path for libraries
    28027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
    28028 
    28029 # Run-time system search path for libraries
    28030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
    28031 
    28032 # Fix the shell variable \$srcfile for the compiler.
    28033 fix_srcfile_path="$fix_srcfile_path_GCJ"
    28034 
    28035 # Set to yes if exported symbols are required.
    28036 always_export_symbols=$always_export_symbols_GCJ
    28037 
    28038 # The commands to list exported symbols.
    28039 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
    28040 
    28041 # The commands to extract the exported symbol list from a shared archive.
    28042 extract_expsyms_cmds=$lt_extract_expsyms_cmds
    28043 
    28044 # Symbols that should not be listed in the preloaded symbols.
    28045 exclude_expsyms=$lt_exclude_expsyms_GCJ
    28046 
    28047 # Symbols that must always be exported.
    28048 include_expsyms=$lt_include_expsyms_GCJ
    28049 
    28050 # ### END LIBTOOL TAG CONFIG: $tagname
    28051 
    28052 __EOF__
    28053 
    28054 
    28055 else
    28056   # If there is no Makefile yet, we rely on a make rule to execute
    28057   # `config.status --recheck' to rerun these tests and create the
    28058   # libtool script then.
    28059   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    28060   if test -f "$ltmain_in"; then
    28061     test -f Makefile && make "$ltmain"
    28062   fi
    28063 fi
    28064 
    28065 
    28066 ac_ext=c
    28067 ac_cpp='$CPP $CPPFLAGS'
    28068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    28069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    28070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    28071 
    28072 CC="$lt_save_CC"
    28073 
    28074         else
    28075           tagname=""
    28076         fi
    28077         ;;
    28078 
    28079       RC)
    28080 
    28081 
    28082 
    28083 # Source file extension for RC test sources.
    28084 ac_ext=rc
    28085 
    28086 # Object file extension for compiled RC test sources.
    28087 objext=o
    28088 objext_RC=$objext
    28089 
    28090 # Code to be used in simple compile tests
    28091 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
    28092 
    28093 # Code to be used in simple link tests
    28094 lt_simple_link_test_code="$lt_simple_compile_test_code"
    28095 
    28096 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    28097 
    28098 # If no C compiler was specified, use CC.
    28099 LTCC=${LTCC-"$CC"}
    28100 
    28101 # If no C compiler flags were specified, use CFLAGS.
    28102 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
    28103 
    28104 # Allow CC to be a program name with arguments.
    28105 compiler=$CC
    28106 
    28107 
    28108 # save warnings/boilerplate of simple test code
    28109 ac_outfile=conftest.$ac_objext
    28110 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
    28111 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    28112 _lt_compiler_boilerplate=`cat conftest.err`
    28113 $rm conftest*
    28114 
    28115 ac_outfile=conftest.$ac_objext
    28116 printf "$lt_simple_link_test_code" >conftest.$ac_ext
    28117 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
    28118 _lt_linker_boilerplate=`cat conftest.err`
    28119 $rm conftest*
    28120 
    28121 
    28122 # Allow CC to be a program name with arguments.
    28123 lt_save_CC="$CC"
    28124 CC=${RC-"windres"}
    28125 compiler=$CC
    28126 compiler_RC=$CC
    28127 for cc_temp in $compiler""; do
    28128   case $cc_temp in
    28129     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
    28130     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
    28131     \-*) ;;
    28132     *) break;;
    28133   esac
    28134 done
    28135 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    28136 
    28137 lt_cv_prog_compiler_c_o_RC=yes
    28138 
    28139 # The else clause should only fire when bootstrapping the
    28140 # libtool distribution, otherwise you forgot to ship ltmain.sh
    28141 # with your package, and you will get complaints that there are
    28142 # no rules to generate ltmain.sh.
    28143 if test -f "$ltmain"; then
    28144   # See if we are running on zsh, and set the options which allow our commands through
    28145   # without removal of \ escapes.
    28146   if test -n "${ZSH_VERSION+set}" ; then
    28147     setopt NO_GLOB_SUBST
    28148   fi
    28149   # Now quote all the things that may contain metacharacters while being
    28150   # careful not to overquote the AC_SUBSTed values.  We take copies of the
    28151   # variables and quote the copies for generation of the libtool script.
    28152   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    28153     SED SHELL STRIP \
    28154     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    28155     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    28156     deplibs_check_method reload_flag reload_cmds need_locks \
    28157     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    28158     lt_cv_sys_global_symbol_to_c_name_address \
    28159     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    28160     old_postinstall_cmds old_postuninstall_cmds \
    28161     compiler_RC \
    28162     CC_RC \
    28163     LD_RC \
    28164     lt_prog_compiler_wl_RC \
    28165     lt_prog_compiler_pic_RC \
    28166     lt_prog_compiler_static_RC \
    28167     lt_prog_compiler_no_builtin_flag_RC \
    28168     export_dynamic_flag_spec_RC \
    28169     thread_safe_flag_spec_RC \
    28170     whole_archive_flag_spec_RC \
    28171     enable_shared_with_static_runtimes_RC \
    28172     old_archive_cmds_RC \
    28173     old_archive_from_new_cmds_RC \
    28174     predep_objects_RC \
    28175     postdep_objects_RC \
    28176     predeps_RC \
    28177     postdeps_RC \
    28178     compiler_lib_search_path_RC \
    28179     archive_cmds_RC \
    28180     archive_expsym_cmds_RC \
    28181     postinstall_cmds_RC \
    28182     postuninstall_cmds_RC \
    28183     old_archive_from_expsyms_cmds_RC \
    28184     allow_undefined_flag_RC \
    28185     no_undefined_flag_RC \
    28186     export_symbols_cmds_RC \
    28187     hardcode_libdir_flag_spec_RC \
    28188     hardcode_libdir_flag_spec_ld_RC \
    28189     hardcode_libdir_separator_RC \
    28190     hardcode_automatic_RC \
    28191     module_cmds_RC \
    28192     module_expsym_cmds_RC \
    28193     lt_cv_prog_compiler_c_o_RC \
    28194     exclude_expsyms_RC \
    28195     include_expsyms_RC; do
    28196 
    28197     case $var in
    28198     old_archive_cmds_RC | \
    28199     old_archive_from_new_cmds_RC | \
    28200     archive_cmds_RC | \
    28201     archive_expsym_cmds_RC | \
    28202     module_cmds_RC | \
    28203     module_expsym_cmds_RC | \
    28204     old_archive_from_expsyms_cmds_RC | \
    28205     export_symbols_cmds_RC | \
    28206     extract_expsyms_cmds | reload_cmds | finish_cmds | \
    28207     postinstall_cmds | postuninstall_cmds | \
    28208     old_postinstall_cmds | old_postuninstall_cmds | \
    28209     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    28210       # Double-quote double-evaled strings.
    28211       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
    28212       ;;
    28213     *)
    28214       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
    28215       ;;
    28216     esac
    28217   done
    28218 
    28219   case $lt_echo in
    28220   *'\$0 --fallback-echo"')
    28221     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    28222     ;;
    28223   esac
    28224 
    28225 cfgfile="$ofile"
    28226 
    28227   cat <<__EOF__ >> "$cfgfile"
    28228 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
    28229 
    28230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    28231 
    28232 # Shell to use when invoking shell scripts.
    28233 SHELL=$lt_SHELL
    28234 
    28235 # Whether or not to build shared libraries.
    28236 build_libtool_libs=$enable_shared
    28237 
    28238 # Whether or not to build static libraries.
    28239 build_old_libs=$enable_static
    28240 
    28241 # Whether or not to add -lc for building shared libraries.
    28242 build_libtool_need_lc=$archive_cmds_need_lc_RC
    28243 
    28244 # Whether or not to disallow shared libs when runtime libs are static
    28245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
    28246 
    28247 # Whether or not to optimize for fast installation.
    28248 fast_install=$enable_fast_install
    28249 
    28250 # The host system.
    28251 host_alias=$host_alias
    28252 host=$host
    28253 host_os=$host_os
    28254 
    28255 # The build system.
    28256 build_alias=$build_alias
    28257 build=$build
    28258 build_os=$build_os
    28259 
    28260 # An echo program that does not interpret backslashes.
    28261 echo=$lt_echo
    28262 
    28263 # The archiver.
    28264 AR=$lt_AR
    28265 AR_FLAGS=$lt_AR_FLAGS
    28266 
    28267 # A C compiler.
    28268 LTCC=$lt_LTCC
    28269 
    28270 # LTCC compiler flags.
    28271 LTCFLAGS=$lt_LTCFLAGS
    28272 
    28273 # A language-specific compiler.
    28274 CC=$lt_compiler_RC
    28275 
    28276 # Is the compiler the GNU C compiler?
    28277 with_gcc=$GCC_RC
    28278 
    28279 # An ERE matcher.
    28280 EGREP=$lt_EGREP
    28281 
    28282 # The linker used to build libraries.
    28283 LD=$lt_LD_RC
    28284 
    28285 # Whether we need hard or soft links.
    28286 LN_S=$lt_LN_S
    28287 
    28288 # A BSD-compatible nm program.
    28289 NM=$lt_NM
    28290 
    28291 # A symbol stripping program
    28292 STRIP=$lt_STRIP
    28293 
    28294 # Used to examine libraries when file_magic_cmd begins "file"
    28295 MAGIC_CMD=$MAGIC_CMD
    28296 
    28297 # Used on cygwin: DLL creation program.
    28298 DLLTOOL="$DLLTOOL"
    28299 
    28300 # Used on cygwin: object dumper.
    28301 OBJDUMP="$OBJDUMP"
    28302 
    28303 # Used on cygwin: assembler.
    28304 AS="$AS"
    28305 
    28306 # The name of the directory that contains temporary libtool files.
    28307 objdir=$objdir
    28308 
    28309 # How to create reloadable object files.
    28310 reload_flag=$lt_reload_flag
    28311 reload_cmds=$lt_reload_cmds
    28312 
    28313 # How to pass a linker flag through the compiler.
    28314 wl=$lt_lt_prog_compiler_wl_RC
    28315 
    28316 # Object file suffix (normally "o").
    28317 objext="$ac_objext"
    28318 
    28319 # Old archive suffix (normally "a").
    28320 libext="$libext"
    28321 
    28322 # Shared library suffix (normally ".so").
    28323 shrext_cmds='$shrext_cmds'
    28324 
    28325 # Executable file suffix (normally "").
    28326 exeext="$exeext"
    28327 
    28328 # Additional compiler flags for building library objects.
    28329 pic_flag=$lt_lt_prog_compiler_pic_RC
    28330 pic_mode=$pic_mode
    28331 
    28332 # What is the maximum length of a command?
    28333 max_cmd_len=$lt_cv_sys_max_cmd_len
    28334 
    28335 # Does compiler simultaneously support -c and -o options?
    28336 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
    28337 
    28338 # Must we lock files when doing compilation?
    28339 need_locks=$lt_need_locks
    28340 
    28341 # Do we need the lib prefix for modules?
    28342 need_lib_prefix=$need_lib_prefix
    28343 
    28344 # Do we need a version for libraries?
    28345 need_version=$need_version
    28346 
    28347 # Whether dlopen is supported.
    28348 dlopen_support=$enable_dlopen
    28349 
    28350 # Whether dlopen of programs is supported.
    28351 dlopen_self=$enable_dlopen_self
    28352 
    28353 # Whether dlopen of statically linked programs is supported.
    28354 dlopen_self_static=$enable_dlopen_self_static
    28355 
    28356 # Compiler flag to prevent dynamic linking.
    28357 link_static_flag=$lt_lt_prog_compiler_static_RC
    28358 
    28359 # Compiler flag to turn off builtin functions.
    28360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
    28361 
    28362 # Compiler flag to allow reflexive dlopens.
    28363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
    28364 
    28365 # Compiler flag to generate shared objects directly from archives.
    28366 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
    28367 
    28368 # Compiler flag to generate thread-safe objects.
    28369 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
    28370 
    28371 # Library versioning type.
    28372 version_type=$version_type
    28373 
    28374 # Format of library name prefix.
    28375 libname_spec=$lt_libname_spec
    28376 
    28377 # List of archive names.  First name is the real one, the rest are links.
    28378 # The last name is the one that the linker finds with -lNAME.
    28379 library_names_spec=$lt_library_names_spec
    28380 
    28381 # The coded name of the library, if different from the real name.
    28382 soname_spec=$lt_soname_spec
    28383 
    28384 # Commands used to build and install an old-style archive.
    28385 RANLIB=$lt_RANLIB
    28386 old_archive_cmds=$lt_old_archive_cmds_RC
    28387 old_postinstall_cmds=$lt_old_postinstall_cmds
    28388 old_postuninstall_cmds=$lt_old_postuninstall_cmds
    28389 
    28390 # Create an old-style archive from a shared archive.
    28391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
    28392 
    28393 # Create a temporary old-style archive to link instead of a shared archive.
    28394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
    28395 
    28396 # Commands used to build and install a shared archive.
    28397 archive_cmds=$lt_archive_cmds_RC
    28398 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
    28399 postinstall_cmds=$lt_postinstall_cmds
    28400 postuninstall_cmds=$lt_postuninstall_cmds
    28401 
    28402 # Commands used to build a loadable module (assumed same as above if empty)
    28403 module_cmds=$lt_module_cmds_RC
    28404 module_expsym_cmds=$lt_module_expsym_cmds_RC
    28405 
    28406 # Commands to strip libraries.
    28407 old_striplib=$lt_old_striplib
    28408 striplib=$lt_striplib
    28409 
    28410 # Dependencies to place before the objects being linked to create a
    28411 # shared library.
    28412 predep_objects=$lt_predep_objects_RC
    28413 
    28414 # Dependencies to place after the objects being linked to create a
    28415 # shared library.
    28416 postdep_objects=$lt_postdep_objects_RC
    28417 
    28418 # Dependencies to place before the objects being linked to create a
    28419 # shared library.
    28420 predeps=$lt_predeps_RC
    28421 
    28422 # Dependencies to place after the objects being linked to create a
    28423 # shared library.
    28424 postdeps=$lt_postdeps_RC
    28425 
    28426 # The library search path used internally by the compiler when linking
    28427 # a shared library.
    28428 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
    28429 
    28430 # Method to check whether dependent libraries are shared objects.
    28431 deplibs_check_method=$lt_deplibs_check_method
    28432 
    28433 # Command to use when deplibs_check_method == file_magic.
    28434 file_magic_cmd=$lt_file_magic_cmd
    28435 
    28436 # Flag that allows shared libraries with undefined symbols to be built.
    28437 allow_undefined_flag=$lt_allow_undefined_flag_RC
    28438 
    28439 # Flag that forces no undefined symbols.
    28440 no_undefined_flag=$lt_no_undefined_flag_RC
    28441 
    28442 # Commands used to finish a libtool library installation in a directory.
    28443 finish_cmds=$lt_finish_cmds
    28444 
    28445 # Same as above, but a single script fragment to be evaled but not shown.
    28446 finish_eval=$lt_finish_eval
    28447 
    28448 # Take the output of nm and produce a listing of raw symbols and C names.
    28449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
    28450 
    28451 # Transform the output of nm in a proper C declaration
    28452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
    28453 
    28454 # Transform the output of nm in a C name address pair
    28455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
    28456 
    28457 # This is the shared library runtime path variable.
    28458 runpath_var=$runpath_var
    28459 
    28460 # This is the shared library path variable.
    28461 shlibpath_var=$shlibpath_var
    28462 
    28463 # Is shlibpath searched before the hard-coded library search path?
    28464 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
    28465 
    28466 # How to hardcode a shared library path into an executable.
    28467 hardcode_action=$hardcode_action_RC
    28468 
    28469 # Whether we should hardcode library paths into libraries.
    28470 hardcode_into_libs=$hardcode_into_libs
    28471 
    28472 # Flag to hardcode \$libdir into a binary during linking.
    28473 # This must work even if \$libdir does not exist.
    28474 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
    28475 
    28476 # If ld is used when linking, flag to hardcode \$libdir into
    28477 # a binary during linking. This must work even if \$libdir does
    28478 # not exist.
    28479 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
    28480 
    28481 # Whether we need a single -rpath flag with a separated argument.
    28482 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
    28483 
    28484 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
    28485 # resulting binary.
    28486 hardcode_direct=$hardcode_direct_RC
    28487 
    28488 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    28489 # resulting binary.
    28490 hardcode_minus_L=$hardcode_minus_L_RC
    28491 
    28492 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    28493 # the resulting binary.
    28494 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
    28495 
    28496 # Set to yes if building a shared library automatically hardcodes DIR into the library
    28497 # and all subsequent libraries and executables linked against it.
    28498 hardcode_automatic=$hardcode_automatic_RC
    28499 
    28500 # Variables whose values should be saved in libtool wrapper scripts and
    28501 # restored at relink time.
    28502 variables_saved_for_relink="$variables_saved_for_relink"
    28503 
    28504 # Whether libtool must link a program against all its dependency libraries.
    28505 link_all_deplibs=$link_all_deplibs_RC
    28506 
    28507 # Compile-time system search path for libraries
    28508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
    28509 
    28510 # Run-time system search path for libraries
    28511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
    28512 
    28513 # Fix the shell variable \$srcfile for the compiler.
    28514 fix_srcfile_path="$fix_srcfile_path_RC"
    28515 
    28516 # Set to yes if exported symbols are required.
    28517 always_export_symbols=$always_export_symbols_RC
    28518 
    28519 # The commands to list exported symbols.
    28520 export_symbols_cmds=$lt_export_symbols_cmds_RC
    28521 
    28522 # The commands to extract the exported symbol list from a shared archive.
    28523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
    28524 
    28525 # Symbols that should not be listed in the preloaded symbols.
    28526 exclude_expsyms=$lt_exclude_expsyms_RC
    28527 
    28528 # Symbols that must always be exported.
    28529 include_expsyms=$lt_include_expsyms_RC
    28530 
    28531 # ### END LIBTOOL TAG CONFIG: $tagname
    28532 
    28533 __EOF__
    28534 
    28535 
    28536 else
    28537   # If there is no Makefile yet, we rely on a make rule to execute
    28538   # `config.status --recheck' to rerun these tests and create the
    28539   # libtool script then.
    28540   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    28541   if test -f "$ltmain_in"; then
    28542     test -f Makefile && make "$ltmain"
    28543   fi
    28544 fi
    28545 
    28546 
    28547 ac_ext=c
    28548 ac_cpp='$CPP $CPPFLAGS'
    28549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    28550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    28551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    28552 
    28553 CC="$lt_save_CC"
    28554 
    28555         ;;
    28556 
    28557       *)
    28558         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
    28559 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
    28560    { (exit 1); exit 1; }; }
    28561         ;;
    28562       esac
    28563 
    28564       # Append the new tag name to the list of available tags.
    28565       if test -n "$tagname" ; then
    28566       available_tags="$available_tags $tagname"
    28567     fi
    28568     fi
    28569   done
    28570   IFS="$lt_save_ifs"
    28571 
    28572   # Now substitute the updated list of available tags.
    28573   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
    28574     mv "${ofile}T" "$ofile"
    28575     chmod +x "$ofile"
    28576   else
    28577     rm -f "${ofile}T"
    28578     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
    28579 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
    28580    { (exit 1); exit 1; }; }
    28581   fi
    28582 fi
    28583 
    28584 
    28585 
    28586 # This can be used to rebuild libtool when needed
    28587 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
    28588 
    28589 # Always use our own libtool.
    28590 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
    28591 
    28592 # Prevent multiple expansion
    28593 
    28594 
    28595 
    28596 
    28597 
    28598 
    28599 
    28600 
    28601 
    28602 
    28603 
    28604 
    28605 
    28606 
    28607 
    28608 
    28609 
    28610 
     22476
     22477
     22478
     22479
     22480
     22481
     22482
     22483
     22484
     22485
     22486
     22487
     22488        ac_config_commands="$ac_config_commands libtool"
     22489
     22490
     22491
     22492
     22493# Only expand once:
    2861122494
    2861222495
     
    2863422517  if test $HAVE_MPI == "yes" &&
    2863522518     test $HAVE_MPIPP == "no"; then
    28636     { { echo "$as_me:$LINENO: error: libmpi++ needed for mpi cca components" >&5
    28637 echo "$as_me: error: libmpi++ needed for mpi cca components" >&2;}
    28638    { (exit 1); exit 1; }; }
     22519    as_fn_error $? "libmpi++ needed for mpi cca components" "$LINENO" 5
    2863922520  fi
    2864022521
    2864122522  if test -z $CCA_CHEM_CONFIG && ! test -x $CCA_CHEM_CONFIG; then
    28642     { { echo "$as_me:$LINENO: error: cca-chem-config is required to build CCA component code" >&5
    28643 echo "$as_me: error: cca-chem-config is required to build CCA component code" >&2;}
    28644    { (exit 1); exit 1; }; }
     22523    as_fn_error $? "cca-chem-config is required to build CCA component code" "$LINENO" 5
    2864522524  fi
    2864622525
     
    2865922538  # ccaffeine gives us everything else
    2866022539
    28661 # Check whether --with-ccafe-config or --without-ccafe-config was given.
    28662 if test "${with_ccafe_config+set}" = set; then
    28663   withval="$with_ccafe_config"
    28664    CCAFE_CONFIG=$withval
     22540# Check whether --with-ccafe-config was given.
     22541if test "${with_ccafe_config+set}" = set; then :
     22542  withval=$with_ccafe_config;  CCAFE_CONFIG=$withval
    2866522543else
    2866622544   if test -z $CCAFE_CONFIG || test ! -x $CCAFE_CONFIG; then
    2866722545      # Extract the first word of "ccafe-config", so it can be a program name with args.
    2866822546set dummy ccafe-config; ac_word=$2
    28669 echo "$as_me:$LINENO: checking for $ac_word" >&5
    28670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    28671 if test "${ac_cv_path_CCAFE_CONFIG+set}" = set; then
    28672   echo $ECHO_N "(cached) $ECHO_C" >&6
     22547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     22548$as_echo_n "checking for $ac_word... " >&6; }
     22549if ${ac_cv_path_CCAFE_CONFIG+:} false; then :
     22550  $as_echo_n "(cached) " >&6
    2867322551else
    2867422552  case $CCAFE_CONFIG in
     
    2868222560  IFS=$as_save_IFS
    2868322561  test -z "$as_dir" && as_dir=.
    28684   for ac_exec_ext in '' $ac_executable_extensions; do
    28685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     22562    for ac_exec_ext in '' $ac_executable_extensions; do
     22563  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2868622564    ac_cv_path_CCAFE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    28687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     22565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2868822566    break 2
    2868922567  fi
    2869022568done
    28691 done
     22569  done
     22570IFS=$as_save_IFS
    2869222571
    2869322572  test -z "$ac_cv_path_CCAFE_CONFIG" && ac_cv_path_CCAFE_CONFIG=""not-found""
     
    2869622575fi
    2869722576CCAFE_CONFIG=$ac_cv_path_CCAFE_CONFIG
    28698 
    2869922577if test -n "$CCAFE_CONFIG"; then
    28700   echo "$as_me:$LINENO: result: $CCAFE_CONFIG" >&5
    28701 echo "${ECHO_T}$CCAFE_CONFIG" >&6
    28702 else
    28703   echo "$as_me:$LINENO: result: no" >&5
    28704 echo "${ECHO_T}no" >&6
    28705 fi
     22578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCAFE_CONFIG" >&5
     22579$as_echo "$CCAFE_CONFIG" >&6; }
     22580else
     22581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     22582$as_echo "no" >&6; }
     22583fi
     22584
    2870622585
    2870722586    fi
    2870822587
    2870922588
    28710 fi;
     22589fi
     22590
    2871122591  if ! test -x $CCAFE_CONFIG; then
    28712     { { echo "$as_me:$LINENO: error: ccaffeine not found, use --with-ccafe-config" >&5
    28713 echo "$as_me: error: ccaffeine not found, use --with-ccafe-config" >&2;}
    28714    { (exit 1); exit 1; }; }
     22592    as_fn_error $? "ccaffeine not found, use --with-ccafe-config" "$LINENO" 5
    2871522593  fi
    2871622594  CCAFE_INCLUDE=`$CCAFE_CONFIG --var CCAFE_pkgincludedir`
     
    2872722605  CCA_SPEC_BABEL_CONFIG=`$CCAFE_CONFIG --var CCAFE_CCA_SPEC_BABEL_CONFIG`
    2872822606  if test -z $CCA_SPEC_BABEL_CONFIG || ! test -x $CCA_SPEC_BABEL_CONFIG; then
    28729     { { echo "$as_me:$LINENO: error: can't find cca-spec-babel-config" >&5
    28730 echo "$as_me: error: can't find cca-spec-babel-config" >&2;}
    28731    { (exit 1); exit 1; }; }
     22607    as_fn_error $? "can't find cca-spec-babel-config" "$LINENO" 5
    2873222608  fi
    2873322609  CCA_SPEC_BABEL_INCLUDE=`$CCA_SPEC_BABEL_CONFIG --var CCASPEC_pkgincludedir`
     
    2874322619  CCA_SPEC_CLASSIC_CONFIG="$CCA_SPEC_CLASSIC_ROOT/bin/cca-spec-classic-config"
    2874422620  if test -z $CCA_SPEC_CLASSIC_CONFIG || test ! -e $CCA_SPEC_CLASSIC_CONFIG; then
    28745     { { echo "$as_me:$LINENO: error: can't find cca-spec-classic-config" >&5
    28746 echo "$as_me: error: can't find cca-spec-classic-config" >&2;}
    28747    { (exit 1); exit 1; }; }
     22621    as_fn_error $? "can't find cca-spec-classic-config" "$LINENO" 5
    2874822622  fi
    2874922623  CCA_SPEC_CLASSIC_INCLUDE=`$CCA_SPEC_CLASSIC_CONFIG --var CLASSIC_pkgincludedir`
     
    2875822632  BABEL_CONFIG=`$CCA_SPEC_BABEL_CONFIG --var CCASPEC_BABEL_BABEL_CONFIG`
    2875922633  if test ! -x $BABEL_CONFIG; then
    28760     { { echo "$as_me:$LINENO: error: can't find babel-config" >&5
    28761 echo "$as_me: error: can't find babel-config" >&2;}
    28762    { (exit 1); exit 1; }; }
     22634    as_fn_error $? "can't find babel-config" "$LINENO" 5
    2876322635  fi
    2876422636  BABEL_INCLUDE=`$BABEL_CONFIG --includedir`
     
    2878622658  BABEL_LIBTOOL=$BABEL_BIN/babel-libtool
    2878722659  if test -z $BABEL_LIBTOOL || ! test -x $BABEL_LIBTOOL; then
    28788     { { echo "$as_me:$LINENO: error: can't find babel-libtool" >&5
    28789 echo "$as_me: error: can't find babel-libtool" >&2;}
    28790    { (exit 1); exit 1; }; }
     22660    as_fn_error $? "can't find babel-libtool" "$LINENO" 5
    2879122661  fi
    2879222662
     
    2879822668  if test -z "$CCAFE_MPI_INCLUDE"; then
    2879922669    CCAFE_MPI_ENABLE="no"
    28800     { echo "$as_me:$LINENO: WARNING: Ccaffeine not configured for MPI" >&5
    28801 echo "$as_me: WARNING: Ccaffeine not configured for MPI" >&2;}
     22670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ccaffeine not configured for MPI" >&5
     22671$as_echo "$as_me: WARNING: Ccaffeine not configured for MPI" >&2;}
    2880222672  else
    2880322673   CCAFE_MPI_ENABLE="yes"
     
    2881322683    BABEL_PYTHON_ENABLE=`$BABEL_CONFIG --query-var=SUPPORT_PYTHON`
    2881422684    if test $BABEL_PYTHON_ENABLE == "false"; then
    28815       { { echo "$as_me:$LINENO: error: Babel not properly configured for python" >&5
    28816 echo "$as_me: error: Babel not properly configured for python" >&2;}
    28817    { (exit 1); exit 1; }; }
     22685      as_fn_error $? "Babel not properly configured for python" "$LINENO" 5
    2881822686    fi
    2881922687    # check that ccafe is configured for python
    2882022688    if ! test -d $CCAFE_ROOT/lib/python$PYTHON_VERSION/site-packages/ccaffeine; then
    28821       { { echo "$as_me:$LINENO: error: Ccaffeine not properly configured for Python" >&5
    28822 echo "$as_me: error: Ccaffeine not properly configured for Python" >&2;}
    28823    { (exit 1); exit 1; }; }
     22689      as_fn_error $? "Ccaffeine not properly configured for Python" "$LINENO" 5
    2882422690    else
    2882522691      CCAFE_PYTHON_ENABLE="yes"
     
    2888122747  CPPFLAGS="$CPPFLAGS $BABEL_INCLUDE $CCA_SPEC_BABEL_INCLUDE $CCA_CHEM_INCLUDE $CCAFE_INCLUDE"
    2888222748
    28883   if test "${ac_cv_header_sidl_h+set}" = set; then
    28884   echo "$as_me:$LINENO: checking for sidl.h" >&5
    28885 echo $ECHO_N "checking for sidl.h... $ECHO_C" >&6
    28886 if test "${ac_cv_header_sidl_h+set}" = set; then
    28887   echo $ECHO_N "(cached) $ECHO_C" >&6
    28888 fi
    28889 echo "$as_me:$LINENO: result: $ac_cv_header_sidl_h" >&5
    28890 echo "${ECHO_T}$ac_cv_header_sidl_h" >&6
    28891 else
    28892   # Is the header compilable?
    28893 echo "$as_me:$LINENO: checking sidl.h usability" >&5
    28894 echo $ECHO_N "checking sidl.h usability... $ECHO_C" >&6
    28895 cat >conftest.$ac_ext <<_ACEOF
    28896 /* confdefs.h.  */
    28897 _ACEOF
    28898 cat confdefs.h >>conftest.$ac_ext
    28899 cat >>conftest.$ac_ext <<_ACEOF
    28900 /* end confdefs.h.  */
    28901 $ac_includes_default
    28902 #include <sidl.h>
    28903 _ACEOF
    28904 rm -f conftest.$ac_objext
    28905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    28906   (eval $ac_compile) 2>conftest.er1
    28907   ac_status=$?
    28908   grep -v '^ *+' conftest.er1 >conftest.err
    28909   rm -f conftest.er1
    28910   cat conftest.err >&5
    28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    28912   (exit $ac_status); } &&
    28913          { ac_try='test -z "$ac_c_werror_flag"
    28914                          || test ! -s conftest.err'
    28915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    28916   (eval $ac_try) 2>&5
    28917   ac_status=$?
    28918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    28919   (exit $ac_status); }; } &&
    28920          { ac_try='test -s conftest.$ac_objext'
    28921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    28922   (eval $ac_try) 2>&5
    28923   ac_status=$?
    28924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    28925   (exit $ac_status); }; }; then
    28926   ac_header_compiler=yes
    28927 else
    28928   echo "$as_me: failed program was:" >&5
    28929 sed 's/^/| /' conftest.$ac_ext >&5
    28930 
    28931 ac_header_compiler=no
    28932 fi
    28933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    28934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    28935 echo "${ECHO_T}$ac_header_compiler" >&6
    28936 
    28937 # Is the header present?
    28938 echo "$as_me:$LINENO: checking sidl.h presence" >&5
    28939 echo $ECHO_N "checking sidl.h presence... $ECHO_C" >&6
    28940 cat >conftest.$ac_ext <<_ACEOF
    28941 /* confdefs.h.  */
    28942 _ACEOF
    28943 cat confdefs.h >>conftest.$ac_ext
    28944 cat >>conftest.$ac_ext <<_ACEOF
    28945 /* end confdefs.h.  */
    28946 #include <sidl.h>
    28947 _ACEOF
    28948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    28949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    28950   ac_status=$?
    28951   grep -v '^ *+' conftest.er1 >conftest.err
    28952   rm -f conftest.er1
    28953   cat conftest.err >&5
    28954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    28955   (exit $ac_status); } >/dev/null; then
    28956   if test -s conftest.err; then
    28957     ac_cpp_err=$ac_c_preproc_warn_flag
    28958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    28959   else
    28960     ac_cpp_err=
    28961   fi
    28962 else
    28963   ac_cpp_err=yes
    28964 fi
    28965 if test -z "$ac_cpp_err"; then
    28966   ac_header_preproc=yes
    28967 else
    28968   echo "$as_me: failed program was:" >&5
    28969 sed 's/^/| /' conftest.$ac_ext >&5
    28970 
    28971   ac_header_preproc=no
    28972 fi
    28973 rm -f conftest.err conftest.$ac_ext
    28974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    28975 echo "${ECHO_T}$ac_header_preproc" >&6
    28976 
    28977 # So?  What about this header?
    28978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    28979   yes:no: )
    28980     { echo "$as_me:$LINENO: WARNING: sidl.h: accepted by the compiler, rejected by the preprocessor!" >&5
    28981 echo "$as_me: WARNING: sidl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    28982     { echo "$as_me:$LINENO: WARNING: sidl.h: proceeding with the compiler's result" >&5
    28983 echo "$as_me: WARNING: sidl.h: proceeding with the compiler's result" >&2;}
    28984     ac_header_preproc=yes
    28985     ;;
    28986   no:yes:* )
    28987     { echo "$as_me:$LINENO: WARNING: sidl.h: present but cannot be compiled" >&5
    28988 echo "$as_me: WARNING: sidl.h: present but cannot be compiled" >&2;}
    28989     { echo "$as_me:$LINENO: WARNING: sidl.h:     check for missing prerequisite headers?" >&5
    28990 echo "$as_me: WARNING: sidl.h:     check for missing prerequisite headers?" >&2;}
    28991     { echo "$as_me:$LINENO: WARNING: sidl.h: see the Autoconf documentation" >&5
    28992 echo "$as_me: WARNING: sidl.h: see the Autoconf documentation" >&2;}
    28993     { echo "$as_me:$LINENO: WARNING: sidl.h:     section \"Present But Cannot Be Compiled\"" >&5
    28994 echo "$as_me: WARNING: sidl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    28995     { echo "$as_me:$LINENO: WARNING: sidl.h: proceeding with the preprocessor's result" >&5
    28996 echo "$as_me: WARNING: sidl.h: proceeding with the preprocessor's result" >&2;}
    28997     { echo "$as_me:$LINENO: WARNING: sidl.h: in the future, the compiler will take precedence" >&5
    28998 echo "$as_me: WARNING: sidl.h: in the future, the compiler will take precedence" >&2;}
    28999     (
    29000       cat <<\_ASBOX
    29001 ## ------------------------------------------ ##
    29002 ## Report this to the AC_PACKAGE_NAME lists.  ##
    29003 ## ------------------------------------------ ##
    29004 _ASBOX
    29005     ) |
    29006       sed "s/^/$as_me: WARNING:     /" >&2
    29007     ;;
    29008 esac
    29009 echo "$as_me:$LINENO: checking for sidl.h" >&5
    29010 echo $ECHO_N "checking for sidl.h... $ECHO_C" >&6
    29011 if test "${ac_cv_header_sidl_h+set}" = set; then
    29012   echo $ECHO_N "(cached) $ECHO_C" >&6
    29013 else
    29014   ac_cv_header_sidl_h=$ac_header_preproc
    29015 fi
    29016 echo "$as_me:$LINENO: result: $ac_cv_header_sidl_h" >&5
    29017 echo "${ECHO_T}$ac_cv_header_sidl_h" >&6
    29018 
    29019 fi
    29020 if test $ac_cv_header_sidl_h = yes; then
    29021   cat >>confdefs.h <<\_ACEOF
    29022 #define HAVE_SIDL_HEADERS 1
    29023 _ACEOF
    29024 
    29025 else
    29026   { { echo "$as_me:$LINENO: error: problem with babel headers" >&5
    29027 echo "$as_me: error: problem with babel headers" >&2;}
    29028    { (exit 1); exit 1; }; }
    29029 fi
    29030 
    29031 
    29032   if test "${ac_cv_header_gov_cca_IOR_h+set}" = set; then
    29033   echo "$as_me:$LINENO: checking for gov_cca_IOR.h" >&5
    29034 echo $ECHO_N "checking for gov_cca_IOR.h... $ECHO_C" >&6
    29035 if test "${ac_cv_header_gov_cca_IOR_h+set}" = set; then
    29036   echo $ECHO_N "(cached) $ECHO_C" >&6
    29037 fi
    29038 echo "$as_me:$LINENO: result: $ac_cv_header_gov_cca_IOR_h" >&5
    29039 echo "${ECHO_T}$ac_cv_header_gov_cca_IOR_h" >&6
    29040 else
    29041   # Is the header compilable?
    29042 echo "$as_me:$LINENO: checking gov_cca_IOR.h usability" >&5
    29043 echo $ECHO_N "checking gov_cca_IOR.h usability... $ECHO_C" >&6
    29044 cat >conftest.$ac_ext <<_ACEOF
    29045 /* confdefs.h.  */
    29046 _ACEOF
    29047 cat confdefs.h >>conftest.$ac_ext
    29048 cat >>conftest.$ac_ext <<_ACEOF
    29049 /* end confdefs.h.  */
    29050 $ac_includes_default
    29051 #include <gov_cca_IOR.h>
    29052 _ACEOF
    29053 rm -f conftest.$ac_objext
    29054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    29055   (eval $ac_compile) 2>conftest.er1
    29056   ac_status=$?
    29057   grep -v '^ *+' conftest.er1 >conftest.err
    29058   rm -f conftest.er1
    29059   cat conftest.err >&5
    29060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29061   (exit $ac_status); } &&
    29062          { ac_try='test -z "$ac_c_werror_flag"
    29063                          || test ! -s conftest.err'
    29064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    29065   (eval $ac_try) 2>&5
    29066   ac_status=$?
    29067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29068   (exit $ac_status); }; } &&
    29069          { ac_try='test -s conftest.$ac_objext'
    29070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    29071   (eval $ac_try) 2>&5
    29072   ac_status=$?
    29073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29074   (exit $ac_status); }; }; then
    29075   ac_header_compiler=yes
    29076 else
    29077   echo "$as_me: failed program was:" >&5
    29078 sed 's/^/| /' conftest.$ac_ext >&5
    29079 
    29080 ac_header_compiler=no
    29081 fi
    29082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    29083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    29084 echo "${ECHO_T}$ac_header_compiler" >&6
    29085 
    29086 # Is the header present?
    29087 echo "$as_me:$LINENO: checking gov_cca_IOR.h presence" >&5
    29088 echo $ECHO_N "checking gov_cca_IOR.h presence... $ECHO_C" >&6
    29089 cat >conftest.$ac_ext <<_ACEOF
    29090 /* confdefs.h.  */
    29091 _ACEOF
    29092 cat confdefs.h >>conftest.$ac_ext
    29093 cat >>conftest.$ac_ext <<_ACEOF
    29094 /* end confdefs.h.  */
    29095 #include <gov_cca_IOR.h>
    29096 _ACEOF
    29097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    29098   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    29099   ac_status=$?
    29100   grep -v '^ *+' conftest.er1 >conftest.err
    29101   rm -f conftest.er1
    29102   cat conftest.err >&5
    29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29104   (exit $ac_status); } >/dev/null; then
    29105   if test -s conftest.err; then
    29106     ac_cpp_err=$ac_c_preproc_warn_flag
    29107     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    29108   else
    29109     ac_cpp_err=
    29110   fi
    29111 else
    29112   ac_cpp_err=yes
    29113 fi
    29114 if test -z "$ac_cpp_err"; then
    29115   ac_header_preproc=yes
    29116 else
    29117   echo "$as_me: failed program was:" >&5
    29118 sed 's/^/| /' conftest.$ac_ext >&5
    29119 
    29120   ac_header_preproc=no
    29121 fi
    29122 rm -f conftest.err conftest.$ac_ext
    29123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    29124 echo "${ECHO_T}$ac_header_preproc" >&6
    29125 
    29126 # So?  What about this header?
    29127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    29128   yes:no: )
    29129     { echo "$as_me:$LINENO: WARNING: gov_cca_IOR.h: accepted by the compiler, rejected by the preprocessor!" >&5
    29130 echo "$as_me: WARNING: gov_cca_IOR.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    29131     { echo "$as_me:$LINENO: WARNING: gov_cca_IOR.h: proceeding with the compiler's result" >&5
    29132 echo "$as_me: WARNING: gov_cca_IOR.h: proceeding with the compiler's result" >&2;}
    29133     ac_header_preproc=yes
    29134     ;;
    29135   no:yes:* )
    29136     { echo "$as_me:$LINENO: WARNING: gov_cca_IOR.h: present but cannot be compiled" >&5
    29137 echo "$as_me: WARNING: gov_cca_IOR.h: present but cannot be compiled" >&2;}
    29138     { echo "$as_me:$LINENO: WARNING: gov_cca_IOR.h:     check for missing prerequisite headers?" >&5
    29139 echo "$as_me: WARNING: gov_cca_IOR.h:     check for missing prerequisite headers?" >&2;}
    29140     { echo "$as_me:$LINENO: WARNING: gov_cca_IOR.h: see the Autoconf documentation" >&5
    29141 echo "$as_me: WARNING: gov_cca_IOR.h: see the Autoconf documentation" >&2;}
    29142     { echo "$as_me:$LINENO: WARNING: gov_cca_IOR.h:     section \"Present But Cannot Be Compiled\"" >&5
    29143 echo "$as_me: WARNING: gov_cca_IOR.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    29144     { echo "$as_me:$LINENO: WARNING: gov_cca_IOR.h: proceeding with the preprocessor's result" >&5
    29145 echo "$as_me: WARNING: gov_cca_IOR.h: proceeding with the preprocessor's result" >&2;}
    29146     { echo "$as_me:$LINENO: WARNING: gov_cca_IOR.h: in the future, the compiler will take precedence" >&5
    29147 echo "$as_me: WARNING: gov_cca_IOR.h: in the future, the compiler will take precedence" >&2;}
    29148     (
    29149       cat <<\_ASBOX
    29150 ## ------------------------------------------ ##
    29151 ## Report this to the AC_PACKAGE_NAME lists.  ##
    29152 ## ------------------------------------------ ##
    29153 _ASBOX
    29154     ) |
    29155       sed "s/^/$as_me: WARNING:     /" >&2
    29156     ;;
    29157 esac
    29158 echo "$as_me:$LINENO: checking for gov_cca_IOR.h" >&5
    29159 echo $ECHO_N "checking for gov_cca_IOR.h... $ECHO_C" >&6
    29160 if test "${ac_cv_header_gov_cca_IOR_h+set}" = set; then
    29161   echo $ECHO_N "(cached) $ECHO_C" >&6
    29162 else
    29163   ac_cv_header_gov_cca_IOR_h=$ac_header_preproc
    29164 fi
    29165 echo "$as_me:$LINENO: result: $ac_cv_header_gov_cca_IOR_h" >&5
    29166 echo "${ECHO_T}$ac_cv_header_gov_cca_IOR_h" >&6
    29167 
    29168 fi
    29169 if test $ac_cv_header_gov_cca_IOR_h = yes; then
    29170   cat >>confdefs.h <<\_ACEOF
    29171 #define HAVE_CCA_SPEC_BABEL_HEADERS 1
    29172 _ACEOF
    29173 
    29174 else
    29175   { { echo "$as_me:$LINENO: error: problem with cca-spec-babel headers" >&5
    29176 echo "$as_me: error: problem with cca-spec-babel headers" >&2;}
    29177    { (exit 1); exit 1; }; }
    29178 fi
    29179 
    29180 
    29181   if test "${ac_cv_header_Chemistry_QC_Model_IOR_h+set}" = set; then
    29182   echo "$as_me:$LINENO: checking for Chemistry_QC_Model_IOR.h" >&5
    29183 echo $ECHO_N "checking for Chemistry_QC_Model_IOR.h... $ECHO_C" >&6
    29184 if test "${ac_cv_header_Chemistry_QC_Model_IOR_h+set}" = set; then
    29185   echo $ECHO_N "(cached) $ECHO_C" >&6
    29186 fi
    29187 echo "$as_me:$LINENO: result: $ac_cv_header_Chemistry_QC_Model_IOR_h" >&5
    29188 echo "${ECHO_T}$ac_cv_header_Chemistry_QC_Model_IOR_h" >&6
    29189 else
    29190   # Is the header compilable?
    29191 echo "$as_me:$LINENO: checking Chemistry_QC_Model_IOR.h usability" >&5
    29192 echo $ECHO_N "checking Chemistry_QC_Model_IOR.h usability... $ECHO_C" >&6
    29193 cat >conftest.$ac_ext <<_ACEOF
    29194 /* confdefs.h.  */
    29195 _ACEOF
    29196 cat confdefs.h >>conftest.$ac_ext
    29197 cat >>conftest.$ac_ext <<_ACEOF
    29198 /* end confdefs.h.  */
    29199 $ac_includes_default
    29200 #include <Chemistry_QC_Model_IOR.h>
    29201 _ACEOF
    29202 rm -f conftest.$ac_objext
    29203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    29204   (eval $ac_compile) 2>conftest.er1
    29205   ac_status=$?
    29206   grep -v '^ *+' conftest.er1 >conftest.err
    29207   rm -f conftest.er1
    29208   cat conftest.err >&5
    29209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29210   (exit $ac_status); } &&
    29211          { ac_try='test -z "$ac_c_werror_flag"
    29212                          || test ! -s conftest.err'
    29213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    29214   (eval $ac_try) 2>&5
    29215   ac_status=$?
    29216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29217   (exit $ac_status); }; } &&
    29218          { ac_try='test -s conftest.$ac_objext'
    29219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    29220   (eval $ac_try) 2>&5
    29221   ac_status=$?
    29222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29223   (exit $ac_status); }; }; then
    29224   ac_header_compiler=yes
    29225 else
    29226   echo "$as_me: failed program was:" >&5
    29227 sed 's/^/| /' conftest.$ac_ext >&5
    29228 
    29229 ac_header_compiler=no
    29230 fi
    29231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    29232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    29233 echo "${ECHO_T}$ac_header_compiler" >&6
    29234 
    29235 # Is the header present?
    29236 echo "$as_me:$LINENO: checking Chemistry_QC_Model_IOR.h presence" >&5
    29237 echo $ECHO_N "checking Chemistry_QC_Model_IOR.h presence... $ECHO_C" >&6
    29238 cat >conftest.$ac_ext <<_ACEOF
    29239 /* confdefs.h.  */
    29240 _ACEOF
    29241 cat confdefs.h >>conftest.$ac_ext
    29242 cat >>conftest.$ac_ext <<_ACEOF
    29243 /* end confdefs.h.  */
    29244 #include <Chemistry_QC_Model_IOR.h>
    29245 _ACEOF
    29246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    29247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    29248   ac_status=$?
    29249   grep -v '^ *+' conftest.er1 >conftest.err
    29250   rm -f conftest.er1
    29251   cat conftest.err >&5
    29252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29253   (exit $ac_status); } >/dev/null; then
    29254   if test -s conftest.err; then
    29255     ac_cpp_err=$ac_c_preproc_warn_flag
    29256     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    29257   else
    29258     ac_cpp_err=
    29259   fi
    29260 else
    29261   ac_cpp_err=yes
    29262 fi
    29263 if test -z "$ac_cpp_err"; then
    29264   ac_header_preproc=yes
    29265 else
    29266   echo "$as_me: failed program was:" >&5
    29267 sed 's/^/| /' conftest.$ac_ext >&5
    29268 
    29269   ac_header_preproc=no
    29270 fi
    29271 rm -f conftest.err conftest.$ac_ext
    29272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    29273 echo "${ECHO_T}$ac_header_preproc" >&6
    29274 
    29275 # So?  What about this header?
    29276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    29277   yes:no: )
    29278     { echo "$as_me:$LINENO: WARNING: Chemistry_QC_Model_IOR.h: accepted by the compiler, rejected by the preprocessor!" >&5
    29279 echo "$as_me: WARNING: Chemistry_QC_Model_IOR.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    29280     { echo "$as_me:$LINENO: WARNING: Chemistry_QC_Model_IOR.h: proceeding with the compiler's result" >&5
    29281 echo "$as_me: WARNING: Chemistry_QC_Model_IOR.h: proceeding with the compiler's result" >&2;}
    29282     ac_header_preproc=yes
    29283     ;;
    29284   no:yes:* )
    29285     { echo "$as_me:$LINENO: WARNING: Chemistry_QC_Model_IOR.h: present but cannot be compiled" >&5
    29286 echo "$as_me: WARNING: Chemistry_QC_Model_IOR.h: present but cannot be compiled" >&2;}
    29287     { echo "$as_me:$LINENO: WARNING: Chemistry_QC_Model_IOR.h:     check for missing prerequisite headers?" >&5
    29288 echo "$as_me: WARNING: Chemistry_QC_Model_IOR.h:     check for missing prerequisite headers?" >&2;}
    29289     { echo "$as_me:$LINENO: WARNING: Chemistry_QC_Model_IOR.h: see the Autoconf documentation" >&5
    29290 echo "$as_me: WARNING: Chemistry_QC_Model_IOR.h: see the Autoconf documentation" >&2;}
    29291     { echo "$as_me:$LINENO: WARNING: Chemistry_QC_Model_IOR.h:     section \"Present But Cannot Be Compiled\"" >&5
    29292 echo "$as_me: WARNING: Chemistry_QC_Model_IOR.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    29293     { echo "$as_me:$LINENO: WARNING: Chemistry_QC_Model_IOR.h: proceeding with the preprocessor's result" >&5
    29294 echo "$as_me: WARNING: Chemistry_QC_Model_IOR.h: proceeding with the preprocessor's result" >&2;}
    29295     { echo "$as_me:$LINENO: WARNING: Chemistry_QC_Model_IOR.h: in the future, the compiler will take precedence" >&5
    29296 echo "$as_me: WARNING: Chemistry_QC_Model_IOR.h: in the future, the compiler will take precedence" >&2;}
    29297     (
    29298       cat <<\_ASBOX
    29299 ## ------------------------------------------ ##
    29300 ## Report this to the AC_PACKAGE_NAME lists.  ##
    29301 ## ------------------------------------------ ##
    29302 _ASBOX
    29303     ) |
    29304       sed "s/^/$as_me: WARNING:     /" >&2
    29305     ;;
    29306 esac
    29307 echo "$as_me:$LINENO: checking for Chemistry_QC_Model_IOR.h" >&5
    29308 echo $ECHO_N "checking for Chemistry_QC_Model_IOR.h... $ECHO_C" >&6
    29309 if test "${ac_cv_header_Chemistry_QC_Model_IOR_h+set}" = set; then
    29310   echo $ECHO_N "(cached) $ECHO_C" >&6
    29311 else
    29312   ac_cv_header_Chemistry_QC_Model_IOR_h=$ac_header_preproc
    29313 fi
    29314 echo "$as_me:$LINENO: result: $ac_cv_header_Chemistry_QC_Model_IOR_h" >&5
    29315 echo "${ECHO_T}$ac_cv_header_Chemistry_QC_Model_IOR_h" >&6
    29316 
    29317 fi
    29318 if test $ac_cv_header_Chemistry_QC_Model_IOR_h = yes; then
    29319   cat >>confdefs.h <<\_ACEOF
    29320 #define HAVE_CCA_CHEM_HEADERS 1
    29321 _ACEOF
    29322 
    29323 else
    29324   { { echo "$as_me:$LINENO: error: problem with cca-chem-generic headers" >&5
    29325 echo "$as_me: error: problem with cca-chem-generic headers" >&2;}
    29326    { (exit 1); exit 1; }; }
     22749  ac_fn_c_check_header_mongrel "$LINENO" "sidl.h" "ac_cv_header_sidl_h" "$ac_includes_default"
     22750if test "x$ac_cv_header_sidl_h" = xyes; then :
     22751
     22752$as_echo "#define HAVE_SIDL_HEADERS 1" >>confdefs.h
     22753
     22754else
     22755  as_fn_error $? "problem with babel headers" "$LINENO" 5
     22756fi
     22757
     22758
     22759  ac_fn_c_check_header_mongrel "$LINENO" "gov_cca_IOR.h" "ac_cv_header_gov_cca_IOR_h" "$ac_includes_default"
     22760if test "x$ac_cv_header_gov_cca_IOR_h" = xyes; then :
     22761
     22762$as_echo "#define HAVE_CCA_SPEC_BABEL_HEADERS 1" >>confdefs.h
     22763
     22764else
     22765  as_fn_error $? "problem with cca-spec-babel headers" "$LINENO" 5
     22766fi
     22767
     22768
     22769  ac_fn_c_check_header_mongrel "$LINENO" "Chemistry_QC_Model_IOR.h" "ac_cv_header_Chemistry_QC_Model_IOR_h" "$ac_includes_default"
     22770if test "x$ac_cv_header_Chemistry_QC_Model_IOR_h" = xyes; then :
     22771
     22772$as_echo "#define HAVE_CCA_CHEM_HEADERS 1" >>confdefs.h
     22773
     22774else
     22775  as_fn_error $? "problem with cca-chem-generic headers" "$LINENO" 5
    2932722776fi
    2932822777
     
    2934022789if test "$enableproduction" = "no"; then
    2934122790
    29342   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
    29343   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    29344   ac_define_dir=`eval echo $srcdir/lib`
    29345   ac_define_dir=`eval echo $ac_define_dir`
    29346   cat >>confdefs.h <<_ACEOF
     22791  prefix_NONE=
     22792  exec_prefix_NONE=
     22793  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
     22794  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
     22795  eval ac_define_dir="\"$srcdir/lib\""
     22796  eval ac_define_dir="\"$ac_define_dir\""
     22797  SRC_SCLIBDIR="$ac_define_dir"
     22798
     22799
     22800cat >>confdefs.h <<_ACEOF
    2934722801#define SRC_SCLIBDIR "$ac_define_dir"
    2934822802_ACEOF
    2934922803
    29350 
    29351 fi
    29352 
    29353   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
    29354   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    29355   ac_define_dir=`eval echo $prefix/lib`
    29356   ac_define_dir=`eval echo $ac_define_dir`
    29357   cat >>confdefs.h <<_ACEOF
     22804  test "$prefix_NONE" && prefix=NONE
     22805  test "$exec_prefix_NONE" && exec_prefix=NONE
     22806
     22807fi
     22808
     22809  prefix_NONE=
     22810  exec_prefix_NONE=
     22811  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
     22812  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
     22813  eval ac_define_dir="\"$prefix/lib\""
     22814  eval ac_define_dir="\"$ac_define_dir\""
     22815  INSTALLED_SCLIBDIR="$ac_define_dir"
     22816
     22817
     22818cat >>confdefs.h <<_ACEOF
    2935822819#define INSTALLED_SCLIBDIR "$ac_define_dir"
    2935922820_ACEOF
    2936022821
    29361 
    29362 
    29363   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
    29364   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    29365   ac_define_dir=`eval echo $scdatadir`
    29366   ac_define_dir=`eval echo $ac_define_dir`
    29367   cat >>confdefs.h <<_ACEOF
     22822  test "$prefix_NONE" && prefix=NONE
     22823  test "$exec_prefix_NONE" && exec_prefix=NONE
     22824
     22825
     22826  prefix_NONE=
     22827  exec_prefix_NONE=
     22828  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
     22829  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
     22830  eval ac_define_dir="\"$scdatadir\""
     22831  eval ac_define_dir="\"$ac_define_dir\""
     22832  SCDATADIR="$ac_define_dir"
     22833
     22834
     22835cat >>confdefs.h <<_ACEOF
    2936822836#define SCDATADIR "$ac_define_dir"
    2936922837_ACEOF
    2937022838
     22839  test "$prefix_NONE" && prefix=NONE
     22840  test "$exec_prefix_NONE" && exec_prefix=NONE
    2937122841
    2937222842
     
    2937422844$PERL $srcdir/bin/objectdir.pl $EXCLUDED_DIRS $srcdir
    2937522845
    29376                                                                                                     ac_config_files="$ac_config_files lib/LocalMakefile lib/cca/components.cca bin/sc-config bin/mkf77sym.pl src/bin/mpqc/mpqcrun src/bin/mpqc/ccarun src/bin/mpqc/validate/makeccain.pl doc/doxygen.cfg doc/doxygen.man1.cfg doc/doxygen.man3.cfg"
     22846ac_config_files="$ac_config_files lib/LocalMakefile lib/cca/components.cca bin/sc-config bin/mkf77sym.pl src/bin/mpqc/mpqcrun src/bin/mpqc/ccarun src/bin/mpqc/validate/makeccain.pl doc/doxygen.cfg doc/doxygen.man1.cfg doc/doxygen.man3.cfg"
     22847
    2937722848
    2937822849
     
    2938122852test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    2938222853
    29383 # VPATH may cause trouble with some makes, so we remove $(srcdir),
    29384 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    29385 # trailing colons and then remove the whole line if VPATH becomes empty
    29386 # (actually we leave an empty line to preserve line numbers).
    29387 if test "x$srcdir" = x.; then
    29388   ac_vpsub='/^[  ]*VPATH[        ]*=/{
    29389 s/:*\$(srcdir):*/:/;
    29390 s/:*\${srcdir}:*/:/;
    29391 s/:*@srcdir@:*/:/;
    29392 s/^\([^=]*=[     ]*\):*/\1/;
    29393 s/:*$//;
    29394 s/^[^=]*=[       ]*$//;
    29395 }'
    29396 fi
    29397 
    2939822854DEFS=-DHAVE_CONFIG_H
    2939922855
    2940022856ac_libobjs=
    2940122857ac_ltlibobjs=
     22858U=
    2940222859for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    2940322860  # 1. Remove the extension, and $U if already installed.
    29404   ac_i=`echo "$ac_i" |
    29405          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    29406   # 2. Add them.
    29407   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
    29408   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
     22861  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
     22862  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
     22863  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
     22864  #    will be set to the directory where LIBOBJS objects are built.
     22865  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
     22866  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
    2940922867done
    2941022868LIBOBJS=$ac_libobjs
     
    2941422872
    2941522873
    29416 : ${CONFIG_STATUS=./config.status}
     22874: "${CONFIG_STATUS=./config.status}"
     22875ac_write_fail=0
    2941722876ac_clean_files_save=$ac_clean_files
    2941822877ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    29419 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
    29420 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    29421 cat >$CONFIG_STATUS <<_ACEOF
     22878{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
     22879$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
     22880as_write_fail=0
     22881cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
    2942222882#! $SHELL
    2942322883# Generated by $as_me.
     
    2942922889ac_cs_recheck=false
    2943022890ac_cs_silent=false
     22891
    2943122892SHELL=\${CONFIG_SHELL-$SHELL}
    29432 _ACEOF
    29433 
    29434 cat >>$CONFIG_STATUS <<\_ACEOF
    29435 ## --------------------- ##
    29436 ## M4sh Initialization.  ##
    29437 ## --------------------- ##
    29438 
    29439 # Be Bourne compatible
    29440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     22893export SHELL
     22894_ASEOF
     22895cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
     22896## -------------------- ##
     22897## M4sh Initialization. ##
     22898## -------------------- ##
     22899
     22900# Be more Bourne compatible
     22901DUALCASE=1; export DUALCASE # for MKS sh
     22902if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    2944122903  emulate sh
    2944222904  NULLCMD=:
    29443   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     22905  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    2944422906  # is contrary to our usage.  Disable this feature.
    2944522907  alias -g '${1+"$@"}'='"$@"'
    29446 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
    29447   set -o posix
    29448 fi
    29449 DUALCASE=1; export DUALCASE # for MKS sh
    29450 
    29451 # Support unset when possible.
    29452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    29453   as_unset=unset
    29454 else
    29455   as_unset=false
    29456 fi
    29457 
    29458 
    29459 # Work around bugs in pre-3.0 UWIN ksh.
    29460 $as_unset ENV MAIL MAILPATH
     22908  setopt NO_GLOB_SUBST
     22909else
     22910  case `(set -o) 2>/dev/null` in #(
     22911  *posix*) :
     22912    set -o posix ;; #(
     22913  *) :
     22914     ;;
     22915esac
     22916fi
     22917
     22918
     22919as_nl='
     22920'
     22921export as_nl
     22922# Printing a long string crashes Solaris 7 /usr/bin/printf.
     22923as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     22924as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     22925as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     22926# Prefer a ksh shell builtin over an external printf program on Solaris,
     22927# but without wasting forks for bash or zsh.
     22928if test -z "$BASH_VERSION$ZSH_VERSION" \
     22929    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     22930  as_echo='print -r --'
     22931  as_echo_n='print -rn --'
     22932elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     22933  as_echo='printf %s\n'
     22934  as_echo_n='printf %s'
     22935else
     22936  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     22937    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     22938    as_echo_n='/usr/ucb/echo -n'
     22939  else
     22940    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     22941    as_echo_n_body='eval
     22942      arg=$1;
     22943      case $arg in #(
     22944      *"$as_nl"*)
     22945        expr "X$arg" : "X\\(.*\\)$as_nl";
     22946        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     22947      esac;
     22948      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     22949    '
     22950    export as_echo_n_body
     22951    as_echo_n='sh -c $as_echo_n_body as_echo'
     22952  fi
     22953  export as_echo_body
     22954  as_echo='sh -c $as_echo_body as_echo'
     22955fi
     22956
     22957# The user is always right.
     22958if test "${PATH_SEPARATOR+set}" != set; then
     22959  PATH_SEPARATOR=:
     22960  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     22961    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     22962      PATH_SEPARATOR=';'
     22963  }
     22964fi
     22965
     22966
     22967# IFS
     22968# We need space, tab and new line, in precisely that order.  Quoting is
     22969# there to prevent editors from complaining about space-tab.
     22970# (If _AS_PATH_WALK were called with IFS unset, it would disable word
     22971# splitting by setting IFS to empty value.)
     22972IFS=" ""        $as_nl"
     22973
     22974# Find who we are.  Look in the path if we contain no directory separator.
     22975as_myself=
     22976case $0 in #((
     22977  *[\\/]* ) as_myself=$0 ;;
     22978  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     22979for as_dir in $PATH
     22980do
     22981  IFS=$as_save_IFS
     22982  test -z "$as_dir" && as_dir=.
     22983    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     22984  done
     22985IFS=$as_save_IFS
     22986
     22987     ;;
     22988esac
     22989# We did not find ourselves, most probably we were run as `sh COMMAND'
     22990# in which case we are not to be found in the path.
     22991if test "x$as_myself" = x; then
     22992  as_myself=$0
     22993fi
     22994if test ! -f "$as_myself"; then
     22995  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     22996  exit 1
     22997fi
     22998
     22999# Unset variables that we do not need and which cause bugs (e.g. in
     23000# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
     23001# suppresses any "Segmentation fault" message there.  '((' could
     23002# trigger a bug in pdksh 5.2.14.
     23003for as_var in BASH_ENV ENV MAIL MAILPATH
     23004do eval test x\${$as_var+set} = xset \
     23005  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
     23006done
    2946123007PS1='$ '
    2946223008PS2='> '
     
    2946423010
    2946523011# NLS nuisances.
    29466 for as_var in \
    29467   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    29468   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    29469   LC_TELEPHONE LC_TIME
    29470 do
    29471   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    29472     eval $as_var=C; export $as_var
    29473   else
    29474     $as_unset $as_var
     23012LC_ALL=C
     23013export LC_ALL
     23014LANGUAGE=C
     23015export LANGUAGE
     23016
     23017# CDPATH.
     23018(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     23019
     23020
     23021# as_fn_error STATUS ERROR [LINENO LOG_FD]
     23022# ----------------------------------------
     23023# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
     23024# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
     23025# script with STATUS, using 1 if that was 0.
     23026as_fn_error ()
     23027{
     23028  as_status=$1; test $as_status -eq 0 && as_status=1
     23029  if test "$4"; then
     23030    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     23031    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    2947523032  fi
    29476 done
    29477 
    29478 # Required to use basename.
    29479 if expr a : '\(a\)' >/dev/null 2>&1; then
     23033  $as_echo "$as_me: error: $2" >&2
     23034  as_fn_exit $as_status
     23035} # as_fn_error
     23036
     23037
     23038# as_fn_set_status STATUS
     23039# -----------------------
     23040# Set $? to STATUS, without forking.
     23041as_fn_set_status ()
     23042{
     23043  return $1
     23044} # as_fn_set_status
     23045
     23046# as_fn_exit STATUS
     23047# -----------------
     23048# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
     23049as_fn_exit ()
     23050{
     23051  set +e
     23052  as_fn_set_status $1
     23053  exit $1
     23054} # as_fn_exit
     23055
     23056# as_fn_unset VAR
     23057# ---------------
     23058# Portably unset VAR.
     23059as_fn_unset ()
     23060{
     23061  { eval $1=; unset $1;}
     23062}
     23063as_unset=as_fn_unset
     23064# as_fn_append VAR VALUE
     23065# ----------------------
     23066# Append the text in VALUE to the end of the definition contained in VAR. Take
     23067# advantage of any shell optimizations that allow amortized linear growth over
     23068# repeated appends, instead of the typical quadratic growth present in naive
     23069# implementations.
     23070if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
     23071  eval 'as_fn_append ()
     23072  {
     23073    eval $1+=\$2
     23074  }'
     23075else
     23076  as_fn_append ()
     23077  {
     23078    eval $1=\$$1\$2
     23079  }
     23080fi # as_fn_append
     23081
     23082# as_fn_arith ARG...
     23083# ------------------
     23084# Perform arithmetic evaluation on the ARGs, and store the result in the
     23085# global $as_val. Take advantage of shells that can avoid forks. The arguments
     23086# must be portable across $(()) and expr.
     23087if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
     23088  eval 'as_fn_arith ()
     23089  {
     23090    as_val=$(( $* ))
     23091  }'
     23092else
     23093  as_fn_arith ()
     23094  {
     23095    as_val=`expr "$@" || test $? -eq 1`
     23096  }
     23097fi # as_fn_arith
     23098
     23099
     23100if expr a : '\(a\)' >/dev/null 2>&1 &&
     23101   test "X`expr 00001 : '.*\(...\)'`" = X001; then
    2948023102  as_expr=expr
    2948123103else
     
    2948323105fi
    2948423106
    29485 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     23107if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    2948623108  as_basename=basename
    2948723109else
     
    2948923111fi
    2949023112
    29491 
    29492 # Name of the executable.
    29493 as_me=`$as_basename "$0" ||
     23113if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
     23114  as_dirname=dirname
     23115else
     23116  as_dirname=false
     23117fi
     23118
     23119as_me=`$as_basename -- "$0" ||
    2949423120$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    2949523121         X"$0" : 'X\(//\)$' \| \
    29496          X"$0" : 'X\(/\)$' \| \
    29497          .     : '\(.\)' 2>/dev/null ||
    29498 echo X/"$0" |
    29499     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
    29500           /^X\/\(\/\/\)$/{ s//\1/; q; }
    29501           /^X\/\(\/\).*/{ s//\1/; q; }
    29502           s/.*/./; q'`
    29503 
    29504 
    29505 # PATH needs CR, and LINENO needs CR and PATH.
     23122         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     23123$as_echo X/"$0" |
     23124    sed '/^.*\/\([^/][^/]*\)\/*$/{
     23125            s//\1/
     23126            q
     23127          }
     23128          /^X\/\(\/\/\)$/{
     23129            s//\1/
     23130            q
     23131          }
     23132          /^X\/\(\/\).*/{
     23133            s//\1/
     23134            q
     23135          }
     23136          s/.*/./; q'`
     23137
    2950623138# Avoid depending upon Character Ranges.
    2950723139as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    2951123143as_cr_alnum=$as_cr_Letters$as_cr_digits
    2951223144
    29513 # The user is always right.
    29514 if test "${PATH_SEPARATOR+set}" != set; then
    29515   echo "#! /bin/sh" >conf$$.sh
    29516   echo  "exit 0"   >>conf$$.sh
    29517   chmod +x conf$$.sh
    29518   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    29519     PATH_SEPARATOR=';'
     23145ECHO_C= ECHO_N= ECHO_T=
     23146case `echo -n x` in #(((((
     23147-n*)
     23148  case `echo 'xy\c'` in
     23149  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
     23150  xy)  ECHO_C='\c';;
     23151  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
     23152       ECHO_T=' ';;
     23153  esac;;
     23154*)
     23155  ECHO_N='-n';;
     23156esac
     23157
     23158rm -f conf$$ conf$$.exe conf$$.file
     23159if test -d conf$$.dir; then
     23160  rm -f conf$$.dir/conf$$.file
     23161else
     23162  rm -f conf$$.dir
     23163  mkdir conf$$.dir 2>/dev/null
     23164fi
     23165if (echo >conf$$.file) 2>/dev/null; then
     23166  if ln -s conf$$.file conf$$ 2>/dev/null; then
     23167    as_ln_s='ln -s'
     23168    # ... but there are two gotchas:
     23169    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     23170    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
     23171    # In both cases, we have to default to `cp -pR'.
     23172    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     23173      as_ln_s='cp -pR'
     23174  elif ln conf$$.file conf$$ 2>/dev/null; then
     23175    as_ln_s=ln
    2952023176  else
    29521     PATH_SEPARATOR=:
     23177    as_ln_s='cp -pR'
    2952223178  fi
    29523   rm -f conf$$.sh
    29524 fi
    29525 
    29526 
    29527   as_lineno_1=$LINENO
    29528   as_lineno_2=$LINENO
    29529   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    29530   test "x$as_lineno_1" != "x$as_lineno_2" &&
    29531   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
    29532   # Find who we are.  Look in the path if we contain no path at all
    29533   # relative or not.
    29534   case $0 in
    29535     *[\\/]* ) as_myself=$0 ;;
    29536     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    29537 for as_dir in $PATH
    29538 do
    29539   IFS=$as_save_IFS
    29540   test -z "$as_dir" && as_dir=.
    29541   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    29542 done
    29543 
    29544        ;;
     23179else
     23180  as_ln_s='cp -pR'
     23181fi
     23182rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     23183rmdir conf$$.dir 2>/dev/null
     23184
     23185
     23186# as_fn_mkdir_p
     23187# -------------
     23188# Create "$as_dir" as a directory, including parents if necessary.
     23189as_fn_mkdir_p ()
     23190{
     23191
     23192  case $as_dir in #(
     23193  -*) as_dir=./$as_dir;;
    2954523194  esac
    29546   # We did not find ourselves, most probably we were run as `sh COMMAND'
    29547   # in which case we are not to be found in the path.
    29548   if test "x$as_myself" = x; then
    29549     as_myself=$0
    29550   fi
    29551   if test ! -f "$as_myself"; then
    29552     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
    29553 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
    29554    { (exit 1); exit 1; }; }
    29555   fi
    29556   case $CONFIG_SHELL in
    29557   '')
    29558     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    29559 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    29560 do
    29561   IFS=$as_save_IFS
    29562   test -z "$as_dir" && as_dir=.
    29563   for as_base in sh bash ksh sh5; do
    29564          case $as_dir in
    29565          /*)
    29566            if ("$as_dir/$as_base" -c '
    29567   as_lineno_1=$LINENO
    29568   as_lineno_2=$LINENO
    29569   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    29570   test "x$as_lineno_1" != "x$as_lineno_2" &&
    29571   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
    29572              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
    29573              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
    29574              CONFIG_SHELL=$as_dir/$as_base
    29575              export CONFIG_SHELL
    29576              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
    29577            fi;;
    29578          esac
    29579        done
    29580 done
    29581 ;;
    29582   esac
    29583 
    29584   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    29585   # uniformly replaced by the line number.  The first 'sed' inserts a
    29586   # line-number line before each line; the second 'sed' does the real
    29587   # work.  The second script uses 'N' to pair each line-number line
    29588   # with the numbered line, and appends trailing '-' during
    29589   # substitution so that $LINENO is not a special case at line end.
    29590   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    29591   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
    29592   sed '=' <$as_myself |
    29593     sed '
    29594       N
    29595       s,$,-,
    29596       : loop
    29597       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    29598       t loop
    29599       s,-$,,
    29600       s,^['$as_cr_digits']*\n,,
    29601     ' >$as_me.lineno &&
    29602   chmod +x $as_me.lineno ||
    29603     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
    29604 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
    29605    { (exit 1); exit 1; }; }
    29606 
    29607   # Don't try to exec as it changes $[0], causing all sort of problems
    29608   # (the dirname of $[0] is not the place where we might find the
    29609   # original and so on.  Autoconf is especially sensible to this).
    29610   . ./$as_me.lineno
    29611   # Exit status is that of the last command.
    29612   exit
    29613 }
    29614 
    29615 
    29616 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
    29617   *c*,-n*) ECHO_N= ECHO_C='
    29618 ' ECHO_T='      ' ;;
    29619   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
    29620   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    29621 esac
    29622 
    29623 if expr a : '\(a\)' >/dev/null 2>&1; then
    29624   as_expr=expr
    29625 else
    29626   as_expr=false
    29627 fi
    29628 
    29629 rm -f conf$$ conf$$.exe conf$$.file
    29630 echo >conf$$.file
    29631 if ln -s conf$$.file conf$$ 2>/dev/null; then
    29632   # We could just check for DJGPP; but this test a) works b) is more generic
    29633   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
    29634   if test -f conf$$.exe; then
    29635     # Don't use ln at all; we don't have any links
    29636     as_ln_s='cp -p'
    29637   else
    29638     as_ln_s='ln -s'
    29639   fi
    29640 elif ln conf$$.file conf$$ 2>/dev/null; then
    29641   as_ln_s=ln
    29642 else
    29643   as_ln_s='cp -p'
    29644 fi
    29645 rm -f conf$$ conf$$.exe conf$$.file
    29646 
     23195  test -d "$as_dir" || eval $as_mkdir_p || {
     23196    as_dirs=
     23197    while :; do
     23198      case $as_dir in #(
     23199      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
     23200      *) as_qdir=$as_dir;;
     23201      esac
     23202      as_dirs="'$as_qdir' $as_dirs"
     23203      as_dir=`$as_dirname -- "$as_dir" ||
     23204$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     23205         X"$as_dir" : 'X\(//\)[^/]' \| \
     23206         X"$as_dir" : 'X\(//\)$' \| \
     23207         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
     23208$as_echo X"$as_dir" |
     23209    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     23210            s//\1/
     23211            q
     23212          }
     23213          /^X\(\/\/\)[^/].*/{
     23214            s//\1/
     23215            q
     23216          }
     23217          /^X\(\/\/\)$/{
     23218            s//\1/
     23219            q
     23220          }
     23221          /^X\(\/\).*/{
     23222            s//\1/
     23223            q
     23224          }
     23225          s/.*/./; q'`
     23226      test -d "$as_dir" && break
     23227    done
     23228    test -z "$as_dirs" || eval "mkdir $as_dirs"
     23229  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     23230
     23231
     23232} # as_fn_mkdir_p
    2964723233if mkdir -p . 2>/dev/null; then
    29648   as_mkdir_p=:
     23234  as_mkdir_p='mkdir -p "$as_dir"'
    2964923235else
    2965023236  test -d ./-p && rmdir ./-p
     
    2965223238fi
    2965323239
    29654 as_executable_p="test -f"
     23240
     23241# as_fn_executable_p FILE
     23242# -----------------------
     23243# Test if FILE is an executable regular file.
     23244as_fn_executable_p ()
     23245{
     23246  test -f "$1" && test -x "$1"
     23247} # as_fn_executable_p
     23248as_test_x='test -x'
     23249as_executable_p=as_fn_executable_p
    2965523250
    2965623251# Sed expression to map a string onto a valid CPP name.
     
    2966123256
    2966223257
    29663 # IFS
    29664 # We need space, tab and new line, in precisely that order.
    29665 as_nl='
    29666 '
    29667 IFS="   $as_nl"
    29668 
    29669 # CDPATH.
    29670 $as_unset CDPATH
    29671 
    2967223258exec 6>&1
    29673 
    29674 # Open the log real soon, to keep \$[0] and so on meaningful, and to
     23259## ----------------------------------- ##
     23260## Main body of $CONFIG_STATUS script. ##
     23261## ----------------------------------- ##
     23262_ASEOF
     23263test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
     23264
     23265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     23266# Save the log message, to keep $0 and so on meaningful, and to
    2967523267# report actual input values of CONFIG_FILES etc. instead of their
    29676 # values after options handling.  Logging --version etc. is OK.
     23268# values after options handling.
     23269ac_log="
     23270This file was extended by $as_me, which was
     23271generated by GNU Autoconf 2.69.  Invocation command line was
     23272
     23273  CONFIG_FILES    = $CONFIG_FILES
     23274  CONFIG_HEADERS  = $CONFIG_HEADERS
     23275  CONFIG_LINKS    = $CONFIG_LINKS
     23276  CONFIG_COMMANDS = $CONFIG_COMMANDS
     23277  $ $0 $@
     23278
     23279on `(hostname || uname -n) 2>/dev/null | sed 1q`
     23280"
     23281
     23282_ACEOF
     23283
     23284case $ac_config_files in *"
     23285"*) set x $ac_config_files; shift; ac_config_files=$*;;
     23286esac
     23287
     23288case $ac_config_headers in *"
     23289"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     23290esac
     23291
     23292
     23293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     23294# Files that config.status was made for.
     23295config_files="$ac_config_files"
     23296config_headers="$ac_config_headers"
     23297config_commands="$ac_config_commands"
     23298
     23299_ACEOF
     23300
     23301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     23302ac_cs_usage="\
     23303\`$as_me' instantiates files and other configuration actions
     23304from templates according to the current configuration.  Unless the files
     23305and actions are specified as TAGs, all are instantiated by default.
     23306
     23307Usage: $0 [OPTION]... [TAG]...
     23308
     23309  -h, --help       print this help, then exit
     23310  -V, --version    print version number and configuration settings, then exit
     23311      --config     print configuration, then exit
     23312  -q, --quiet, --silent
     23313                   do not print progress messages
     23314  -d, --debug      don't remove temporary files
     23315      --recheck    update $as_me by reconfiguring in the same conditions
     23316      --file=FILE[:TEMPLATE]
     23317                   instantiate the configuration file FILE
     23318      --header=FILE[:TEMPLATE]
     23319                   instantiate the configuration header FILE
     23320
     23321Configuration files:
     23322$config_files
     23323
     23324Configuration headers:
     23325$config_headers
     23326
     23327Configuration commands:
     23328$config_commands
     23329
     23330Report bugs to the package provider."
     23331
     23332_ACEOF
     23333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     23334ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
     23335ac_cs_version="\\
     23336config.status
     23337configured by $0, generated by GNU Autoconf 2.69,
     23338  with options \\"\$ac_cs_config\\"
     23339
     23340Copyright (C) 2012 Free Software Foundation, Inc.
     23341This config.status script is free software; the Free Software Foundation
     23342gives unlimited permission to copy, distribute and modify it."
     23343
     23344ac_pwd='$ac_pwd'
     23345srcdir='$srcdir'
     23346INSTALL='$INSTALL'
     23347AWK='$AWK'
     23348test -n "\$AWK" || AWK=awk
     23349_ACEOF
     23350
     23351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     23352# The default lists apply if the user does not specify any file.
     23353ac_need_defaults=:
     23354while test $# != 0
     23355do
     23356  case $1 in
     23357  --*=?*)
     23358    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     23359    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
     23360    ac_shift=:
     23361    ;;
     23362  --*=)
     23363    ac_option=`expr "X$1" : 'X\([^=]*\)='`
     23364    ac_optarg=
     23365    ac_shift=:
     23366    ;;
     23367  *)
     23368    ac_option=$1
     23369    ac_optarg=$2
     23370    ac_shift=shift
     23371    ;;
     23372  esac
     23373
     23374  case $ac_option in
     23375  # Handling of the options.
     23376  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     23377    ac_cs_recheck=: ;;
     23378  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
     23379    $as_echo "$ac_cs_version"; exit ;;
     23380  --config | --confi | --conf | --con | --co | --c )
     23381    $as_echo "$ac_cs_config"; exit ;;
     23382  --debug | --debu | --deb | --de | --d | -d )
     23383    debug=: ;;
     23384  --file | --fil | --fi | --f )
     23385    $ac_shift
     23386    case $ac_optarg in
     23387    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     23388    '') as_fn_error $? "missing file argument" ;;
     23389    esac
     23390    as_fn_append CONFIG_FILES " '$ac_optarg'"
     23391    ac_need_defaults=false;;
     23392  --header | --heade | --head | --hea )
     23393    $ac_shift
     23394    case $ac_optarg in
     23395    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     23396    esac
     23397    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     23398    ac_need_defaults=false;;
     23399  --he | --h)
     23400    # Conflict between --help and --header
     23401    as_fn_error $? "ambiguous option: \`$1'
     23402Try \`$0 --help' for more information.";;
     23403  --help | --hel | -h )
     23404    $as_echo "$ac_cs_usage"; exit ;;
     23405  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     23406  | -silent | --silent | --silen | --sile | --sil | --si | --s)
     23407    ac_cs_silent=: ;;
     23408
     23409  # This is an error.
     23410  -*) as_fn_error $? "unrecognized option: \`$1'
     23411Try \`$0 --help' for more information." ;;
     23412
     23413  *) as_fn_append ac_config_targets " $1"
     23414     ac_need_defaults=false ;;
     23415
     23416  esac
     23417  shift
     23418done
     23419
     23420ac_configure_extra_args=
     23421
     23422if $ac_cs_silent; then
     23423  exec 6>/dev/null
     23424  ac_configure_extra_args="$ac_configure_extra_args --silent"
     23425fi
     23426
     23427_ACEOF
     23428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     23429if \$ac_cs_recheck; then
     23430  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     23431  shift
     23432  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     23433  CONFIG_SHELL='$SHELL'
     23434  export CONFIG_SHELL
     23435  exec "\$@"
     23436fi
     23437
     23438_ACEOF
     23439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    2967723440exec 5>>config.log
    2967823441{
     
    2968123444## Running $as_me. ##
    2968223445_ASBOX
     23446  $as_echo "$ac_log"
    2968323447} >&5
    29684 cat >&5 <<_CSEOF
    29685 
    29686 This file was extended by $as_me, which was
    29687 generated by GNU Autoconf 2.59.  Invocation command line was
    29688 
    29689   CONFIG_FILES    = $CONFIG_FILES
    29690   CONFIG_HEADERS  = $CONFIG_HEADERS
    29691   CONFIG_LINKS    = $CONFIG_LINKS
    29692   CONFIG_COMMANDS = $CONFIG_COMMANDS
    29693   $ $0 $@
    29694 
    29695 _CSEOF
    29696 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
    29697 echo >&5
     23448
    2969823449_ACEOF
    29699 
    29700 # Files that config.status was made for.
    29701 if test -n "$ac_config_files"; then
    29702   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
    29703 fi
    29704 
    29705 if test -n "$ac_config_headers"; then
    29706   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
    29707 fi
    29708 
    29709 if test -n "$ac_config_links"; then
    29710   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
    29711 fi
    29712 
    29713 if test -n "$ac_config_commands"; then
    29714   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
    29715 fi
    29716 
    29717 cat >>$CONFIG_STATUS <<\_ACEOF
    29718 
    29719 ac_cs_usage="\
    29720 \`$as_me' instantiates files from templates according to the
    29721 current configuration.
    29722 
    29723 Usage: $0 [OPTIONS] [FILE]...
    29724 
    29725   -h, --help       print this help, then exit
    29726   -V, --version    print version number, then exit
    29727   -q, --quiet      do not print progress messages
    29728   -d, --debug      don't remove temporary files
    29729       --recheck    update $as_me by reconfiguring in the same conditions
    29730   --file=FILE[:TEMPLATE]
    29731                    instantiate the configuration file FILE
    29732   --header=FILE[:TEMPLATE]
    29733                    instantiate the configuration header FILE
    29734 
    29735 Configuration files:
    29736 $config_files
    29737 
    29738 Configuration headers:
    29739 $config_headers
    29740 
    29741 Report bugs to <bug-autoconf@gnu.org>."
     23450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     23451#
     23452# INIT-COMMANDS
     23453#
     23454
     23455
     23456# The HP-UX ksh and POSIX shell print the target directory to stdout
     23457# if CDPATH is set.
     23458(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     23459
     23460sed_quote_subst='$sed_quote_subst'
     23461double_quote_subst='$double_quote_subst'
     23462delay_variable_subst='$delay_variable_subst'
     23463enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
     23464macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
     23465macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
     23466enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
     23467pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
     23468enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
     23469SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
     23470ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
     23471PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
     23472host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
     23473host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
     23474host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
     23475build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
     23476build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
     23477build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
     23478SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
     23479Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
     23480GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
     23481EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
     23482FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
     23483LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
     23484NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
     23485LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
     23486max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
     23487ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
     23488exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
     23489lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
     23490lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
     23491lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
     23492lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
     23493lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
     23494reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
     23495reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
     23496OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
     23497deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
     23498file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
     23499file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
     23500want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
     23501DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
     23502sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
     23503AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
     23504AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
     23505archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
     23506STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
     23507RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
     23508old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
     23509old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
     23510old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
     23511lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
     23512CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
     23513CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
     23514compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
     23515GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
     23516lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
     23517lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
     23518lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
     23519lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
     23520nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
     23521lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
     23522objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
     23523MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
     23524lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
     23525lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
     23526lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
     23527lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
     23528lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
     23529need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
     23530MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
     23531DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
     23532NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
     23533LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
     23534OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
     23535OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
     23536libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
     23537shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
     23538extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
     23539archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
     23540enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
     23541export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
     23542whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
     23543compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
     23544old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
     23545old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
     23546archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
     23547archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
     23548module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
     23549module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
     23550with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
     23551allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
     23552no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
     23553hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
     23554hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
     23555hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
     23556hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
     23557hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
     23558hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
     23559hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
     23560inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
     23561link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
     23562always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
     23563export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
     23564exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
     23565include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
     23566prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
     23567postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
     23568file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
     23569variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
     23570need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
     23571need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
     23572version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
     23573runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
     23574shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
     23575shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
     23576libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
     23577library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
     23578soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
     23579install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
     23580postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
     23581postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
     23582finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
     23583finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
     23584hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
     23585sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
     23586sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
     23587hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
     23588enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
     23589enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
     23590enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
     23591old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
     23592striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
     23593compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
     23594predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
     23595postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
     23596predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
     23597postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
     23598compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
     23599LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
     23600LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
     23601reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
     23602reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
     23603reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23604reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23605old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23606old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23607compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
     23608compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
     23609GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
     23610GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
     23611lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
     23612lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
     23613lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
     23614lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
     23615lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
     23616lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
     23617lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
     23618lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
     23619lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
     23620lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
     23621archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
     23622archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
     23623enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
     23624enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
     23625export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
     23626export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
     23627whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
     23628whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
     23629compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
     23630compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
     23631old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23632old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23633old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23634old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23635archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23636archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23637archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23638archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23639module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23640module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23641module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23642module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23643with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
     23644with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
     23645allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
     23646allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
     23647no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
     23648no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
     23649hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
     23650hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
     23651hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
     23652hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
     23653hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
     23654hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
     23655hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
     23656hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
     23657hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
     23658hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
     23659hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
     23660hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
     23661hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
     23662hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
     23663inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
     23664inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
     23665link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
     23666link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
     23667always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
     23668always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
     23669export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23670export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23671exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
     23672exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
     23673include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
     23674include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
     23675prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23676prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23677postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
     23678postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
     23679file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
     23680file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
     23681hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
     23682hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
     23683compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
     23684compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
     23685predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
     23686predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
     23687postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
     23688postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
     23689predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
     23690predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
     23691postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
     23692postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
     23693compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
     23694compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
     23695
     23696LTCC='$LTCC'
     23697LTCFLAGS='$LTCFLAGS'
     23698compiler='$compiler_DEFAULT'
     23699
     23700# A function that is used when there is no print builtin or printf.
     23701func_fallback_echo ()
     23702{
     23703  eval 'cat <<_LTECHO_EOF
     23704\$1
     23705_LTECHO_EOF'
     23706}
     23707
     23708# Quote evaled strings.
     23709for var in SHELL \
     23710ECHO \
     23711PATH_SEPARATOR \
     23712SED \
     23713GREP \
     23714EGREP \
     23715FGREP \
     23716LD \
     23717NM \
     23718LN_S \
     23719lt_SP2NL \
     23720lt_NL2SP \
     23721reload_flag \
     23722OBJDUMP \
     23723deplibs_check_method \
     23724file_magic_cmd \
     23725file_magic_glob \
     23726want_nocaseglob \
     23727DLLTOOL \
     23728sharedlib_from_linklib_cmd \
     23729AR \
     23730AR_FLAGS \
     23731archiver_list_spec \
     23732STRIP \
     23733RANLIB \
     23734CC \
     23735CFLAGS \
     23736compiler \
     23737lt_cv_sys_global_symbol_pipe \
     23738lt_cv_sys_global_symbol_to_cdecl \
     23739lt_cv_sys_global_symbol_to_c_name_address \
     23740lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
     23741nm_file_list_spec \
     23742lt_prog_compiler_no_builtin_flag \
     23743lt_prog_compiler_pic \
     23744lt_prog_compiler_wl \
     23745lt_prog_compiler_static \
     23746lt_cv_prog_compiler_c_o \
     23747need_locks \
     23748MANIFEST_TOOL \
     23749DSYMUTIL \
     23750NMEDIT \
     23751LIPO \
     23752OTOOL \
     23753OTOOL64 \
     23754shrext_cmds \
     23755export_dynamic_flag_spec \
     23756whole_archive_flag_spec \
     23757compiler_needs_object \
     23758with_gnu_ld \
     23759allow_undefined_flag \
     23760no_undefined_flag \
     23761hardcode_libdir_flag_spec \
     23762hardcode_libdir_separator \
     23763exclude_expsyms \
     23764include_expsyms \
     23765file_list_spec \
     23766variables_saved_for_relink \
     23767libname_spec \
     23768library_names_spec \
     23769soname_spec \
     23770install_override_mode \
     23771finish_eval \
     23772old_striplib \
     23773striplib \
     23774compiler_lib_search_dirs \
     23775predep_objects \
     23776postdep_objects \
     23777predeps \
     23778postdeps \
     23779compiler_lib_search_path \
     23780LD_CXX \
     23781LD_F77 \
     23782reload_flag_CXX \
     23783reload_flag_F77 \
     23784compiler_CXX \
     23785compiler_F77 \
     23786lt_prog_compiler_no_builtin_flag_CXX \
     23787lt_prog_compiler_no_builtin_flag_F77 \
     23788lt_prog_compiler_pic_CXX \
     23789lt_prog_compiler_pic_F77 \
     23790lt_prog_compiler_wl_CXX \
     23791lt_prog_compiler_wl_F77 \
     23792lt_prog_compiler_static_CXX \
     23793lt_prog_compiler_static_F77 \
     23794lt_cv_prog_compiler_c_o_CXX \
     23795lt_cv_prog_compiler_c_o_F77 \
     23796export_dynamic_flag_spec_CXX \
     23797export_dynamic_flag_spec_F77 \
     23798whole_archive_flag_spec_CXX \
     23799whole_archive_flag_spec_F77 \
     23800compiler_needs_object_CXX \
     23801compiler_needs_object_F77 \
     23802with_gnu_ld_CXX \
     23803with_gnu_ld_F77 \
     23804allow_undefined_flag_CXX \
     23805allow_undefined_flag_F77 \
     23806no_undefined_flag_CXX \
     23807no_undefined_flag_F77 \
     23808hardcode_libdir_flag_spec_CXX \
     23809hardcode_libdir_flag_spec_F77 \
     23810hardcode_libdir_separator_CXX \
     23811hardcode_libdir_separator_F77 \
     23812exclude_expsyms_CXX \
     23813exclude_expsyms_F77 \
     23814include_expsyms_CXX \
     23815include_expsyms_F77 \
     23816file_list_spec_CXX \
     23817file_list_spec_F77 \
     23818compiler_lib_search_dirs_CXX \
     23819compiler_lib_search_dirs_F77 \
     23820predep_objects_CXX \
     23821predep_objects_F77 \
     23822postdep_objects_CXX \
     23823postdep_objects_F77 \
     23824predeps_CXX \
     23825predeps_F77 \
     23826postdeps_CXX \
     23827postdeps_F77 \
     23828compiler_lib_search_path_CXX \
     23829compiler_lib_search_path_F77; do
     23830    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
     23831    *[\\\\\\\`\\"\\\$]*)
     23832      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
     23833      ;;
     23834    *)
     23835      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
     23836      ;;
     23837    esac
     23838done
     23839
     23840# Double-quote double-evaled strings.
     23841for var in reload_cmds \
     23842old_postinstall_cmds \
     23843old_postuninstall_cmds \
     23844old_archive_cmds \
     23845extract_expsyms_cmds \
     23846old_archive_from_new_cmds \
     23847old_archive_from_expsyms_cmds \
     23848archive_cmds \
     23849archive_expsym_cmds \
     23850module_cmds \
     23851module_expsym_cmds \
     23852export_symbols_cmds \
     23853prelink_cmds \
     23854postlink_cmds \
     23855postinstall_cmds \
     23856postuninstall_cmds \
     23857finish_cmds \
     23858sys_lib_search_path_spec \
     23859sys_lib_dlsearch_path_spec \
     23860reload_cmds_CXX \
     23861reload_cmds_F77 \
     23862old_archive_cmds_CXX \
     23863old_archive_cmds_F77 \
     23864old_archive_from_new_cmds_CXX \
     23865old_archive_from_new_cmds_F77 \
     23866old_archive_from_expsyms_cmds_CXX \
     23867old_archive_from_expsyms_cmds_F77 \
     23868archive_cmds_CXX \
     23869archive_cmds_F77 \
     23870archive_expsym_cmds_CXX \
     23871archive_expsym_cmds_F77 \
     23872module_cmds_CXX \
     23873module_cmds_F77 \
     23874module_expsym_cmds_CXX \
     23875module_expsym_cmds_F77 \
     23876export_symbols_cmds_CXX \
     23877export_symbols_cmds_F77 \
     23878prelink_cmds_CXX \
     23879prelink_cmds_F77 \
     23880postlink_cmds_CXX \
     23881postlink_cmds_F77; do
     23882    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
     23883    *[\\\\\\\`\\"\\\$]*)
     23884      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
     23885      ;;
     23886    *)
     23887      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
     23888      ;;
     23889    esac
     23890done
     23891
     23892ac_aux_dir='$ac_aux_dir'
     23893xsi_shell='$xsi_shell'
     23894lt_shell_append='$lt_shell_append'
     23895
     23896# See if we are running on zsh, and set the options which allow our
     23897# commands through without removal of \ escapes INIT.
     23898if test -n "\${ZSH_VERSION+set}" ; then
     23899   setopt NO_GLOB_SUBST
     23900fi
     23901
     23902
     23903    PACKAGE='$PACKAGE'
     23904    VERSION='$VERSION'
     23905    TIMESTAMP='$TIMESTAMP'
     23906    RM='$RM'
     23907    ofile='$ofile'
     23908
     23909
     23910
     23911
     23912
     23913
     23914
     23915
    2974223916_ACEOF
    2974323917
    29744 cat >>$CONFIG_STATUS <<_ACEOF
    29745 ac_cs_version="\\
    29746 config.status
    29747 configured by $0, generated by GNU Autoconf 2.59,
    29748   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    29749 
    29750 Copyright (C) 2003 Free Software Foundation, Inc.
    29751 This config.status script is free software; the Free Software Foundation
    29752 gives unlimited permission to copy, distribute and modify it."
    29753 srcdir=$srcdir
    29754 INSTALL="$INSTALL"
    29755 _ACEOF
    29756 
    29757 cat >>$CONFIG_STATUS <<\_ACEOF
    29758 # If no file are specified by the user, then we need to provide default
    29759 # value.  By we need to know if files were specified by the user.
    29760 ac_need_defaults=:
    29761 while test $# != 0
    29762 do
    29763   case $1 in
    29764   --*=*)
    29765     ac_option=`expr "x$1" : 'x\([^=]*\)='`
    29766     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
    29767     ac_shift=:
    29768     ;;
    29769   -*)
    29770     ac_option=$1
    29771     ac_optarg=$2
    29772     ac_shift=shift
    29773     ;;
    29774   *) # This is not an option, so the user has probably given explicit
    29775      # arguments.
    29776      ac_option=$1
    29777      ac_need_defaults=false;;
    29778   esac
    29779 
    29780   case $ac_option in
    29781   # Handling of the options.
    29782 _ACEOF
    29783 cat >>$CONFIG_STATUS <<\_ACEOF
    29784   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    29785     ac_cs_recheck=: ;;
    29786   --version | --vers* | -V )
    29787     echo "$ac_cs_version"; exit 0 ;;
    29788   --he | --h)
    29789     # Conflict between --help and --header
    29790     { { echo "$as_me:$LINENO: error: ambiguous option: $1
    29791 Try \`$0 --help' for more information." >&5
    29792 echo "$as_me: error: ambiguous option: $1
    29793 Try \`$0 --help' for more information." >&2;}
    29794    { (exit 1); exit 1; }; };;
    29795   --help | --hel | -h )
    29796     echo "$ac_cs_usage"; exit 0 ;;
    29797   --debug | --d* | -d )
    29798     debug=: ;;
    29799   --file | --fil | --fi | --f )
    29800     $ac_shift
    29801     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    29802     ac_need_defaults=false;;
    29803   --header | --heade | --head | --hea )
    29804     $ac_shift
    29805     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    29806     ac_need_defaults=false;;
    29807   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    29808   | -silent | --silent | --silen | --sile | --sil | --si | --s)
    29809     ac_cs_silent=: ;;
    29810 
    29811   # This is an error.
    29812   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
    29813 Try \`$0 --help' for more information." >&5
    29814 echo "$as_me: error: unrecognized option: $1
    29815 Try \`$0 --help' for more information." >&2;}
    29816    { (exit 1); exit 1; }; } ;;
    29817 
    29818   *) ac_config_targets="$ac_config_targets $1" ;;
    29819 
    29820   esac
    29821   shift
    29822 done
    29823 
    29824 ac_configure_extra_args=
    29825 
    29826 if $ac_cs_silent; then
    29827   exec 6>/dev/null
    29828   ac_configure_extra_args="$ac_configure_extra_args --silent"
    29829 fi
    29830 
    29831 _ACEOF
    29832 cat >>$CONFIG_STATUS <<_ACEOF
    29833 if \$ac_cs_recheck; then
    29834   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
    29835   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    29836 fi
    29837 
    29838 _ACEOF
    29839 
    29840 
    29841 
    29842 
    29843 
    29844 cat >>$CONFIG_STATUS <<\_ACEOF
     23918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     23919
     23920# Handling of arguments.
    2984523921for ac_config_target in $ac_config_targets
    2984623922do
    29847   case "$ac_config_target" in
    29848   # Handling of arguments.
    29849   "lib/LocalMakefile" ) CONFIG_FILES="$CONFIG_FILES lib/LocalMakefile" ;;
    29850   "lib/cca/components.cca" ) CONFIG_FILES="$CONFIG_FILES lib/cca/components.cca" ;;
    29851   "bin/sc-config" ) CONFIG_FILES="$CONFIG_FILES bin/sc-config" ;;
    29852   "bin/mkf77sym.pl" ) CONFIG_FILES="$CONFIG_FILES bin/mkf77sym.pl" ;;
    29853   "src/bin/mpqc/mpqcrun" ) CONFIG_FILES="$CONFIG_FILES src/bin/mpqc/mpqcrun" ;;
    29854   "src/bin/mpqc/ccarun" ) CONFIG_FILES="$CONFIG_FILES src/bin/mpqc/ccarun" ;;
    29855   "src/bin/mpqc/validate/makeccain.pl" ) CONFIG_FILES="$CONFIG_FILES src/bin/mpqc/validate/makeccain.pl" ;;
    29856   "doc/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
    29857   "doc/doxygen.man1.cfg" ) CONFIG_FILES="$CONFIG_FILES doc/doxygen.man1.cfg" ;;
    29858   "doc/doxygen.man3.cfg" ) CONFIG_FILES="$CONFIG_FILES doc/doxygen.man3.cfg" ;;
    29859   "src/lib/scconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/lib/scconfig.h" ;;
    29860   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    29861 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    29862    { (exit 1); exit 1; }; };;
     23923  case $ac_config_target in
     23924    "src/lib/scconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lib/scconfig.h" ;;
     23925    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
     23926    "lib/LocalMakefile") CONFIG_FILES="$CONFIG_FILES lib/LocalMakefile" ;;
     23927    "lib/cca/components.cca") CONFIG_FILES="$CONFIG_FILES lib/cca/components.cca" ;;
     23928    "bin/sc-config") CONFIG_FILES="$CONFIG_FILES bin/sc-config" ;;
     23929    "bin/mkf77sym.pl") CONFIG_FILES="$CONFIG_FILES bin/mkf77sym.pl" ;;
     23930    "src/bin/mpqc/mpqcrun") CONFIG_FILES="$CONFIG_FILES src/bin/mpqc/mpqcrun" ;;
     23931    "src/bin/mpqc/ccarun") CONFIG_FILES="$CONFIG_FILES src/bin/mpqc/ccarun" ;;
     23932    "src/bin/mpqc/validate/makeccain.pl") CONFIG_FILES="$CONFIG_FILES src/bin/mpqc/validate/makeccain.pl" ;;
     23933    "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
     23934    "doc/doxygen.man1.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.man1.cfg" ;;
     23935    "doc/doxygen.man3.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.man3.cfg" ;;
     23936
     23937  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
    2986323938  esac
    2986423939done
     23940
    2986523941
    2986623942# If the user did not use the arguments to specify the items to instantiate,
     
    2987123947  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
    2987223948  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     23949  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
    2987323950fi
    2987423951
    2987523952# Have a temporary directory for convenience.  Make it in the build tree
    29876 # simply because there is no reason to put it here, and in addition,
     23953# simply because there is no reason against having it here, and in addition,
    2987723954# creating and moving files from /tmp can sometimes cause problems.
    29878 # Create a temporary directory, and hook for its removal unless debugging.
     23955# Hook for its removal unless debugging.
     23956# Note that there is a small window in which the directory will not be cleaned:
     23957# after its creation but before its name has been assigned to `$tmp'.
    2987923958$debug ||
    2988023959{
    29881   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
    29882   trap '{ (exit 1); exit 1; }' 1 2 13 15
     23960  tmp= ac_tmp=
     23961  trap 'exit_status=$?
     23962  : "${ac_tmp:=$tmp}"
     23963  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
     23964' 0
     23965  trap 'as_fn_exit 1' 1 2 13 15
    2988323966}
    29884 
    2988523967# Create a (secure) tmp directory for tmp files.
    2988623968
    2988723969{
    29888   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
    29889   test -n "$tmp" && test -d "$tmp"
     23970  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
     23971  test -d "$tmp"
    2989023972}  ||
    2989123973{
    29892   tmp=./confstat$$-$RANDOM
    29893   (umask 077 && mkdir $tmp)
    29894 } ||
     23974  tmp=./conf$$-$RANDOM
     23975  (umask 077 && mkdir "$tmp")
     23976} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     23977ac_tmp=$tmp
     23978
     23979# Set up the scripts for CONFIG_FILES section.
     23980# No need to generate them if there are no CONFIG_FILES.
     23981# This happens for instance with `./config.status config.h'.
     23982if test -n "$CONFIG_FILES"; then
     23983
     23984
     23985ac_cr=`echo X | tr X '\015'`
     23986# On cygwin, bash can eat \r inside `` if the user requested igncr.
     23987# But we know of no other shell where ac_cr would be empty at this
     23988# point, so we can use a bashism as a fallback.
     23989if test "x$ac_cr" = x; then
     23990  eval ac_cr=\$\'\\r\'
     23991fi
     23992ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
     23993if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
     23994  ac_cs_awk_cr='\\r'
     23995else
     23996  ac_cs_awk_cr=$ac_cr
     23997fi
     23998
     23999echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
     24000_ACEOF
     24001
     24002
    2989524003{
    29896    echo "$me: cannot create a temporary directory in ." >&2
    29897    { (exit 1); exit 1; }
     24004  echo "cat >conf$$subs.awk <<_ACEOF" &&
     24005  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
     24006  echo "_ACEOF"
     24007} >conf$$subs.sh ||
     24008  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     24009ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     24010ac_delim='%!_!# '
     24011for ac_last_try in false false false false false :; do
     24012  . ./conf$$subs.sh ||
     24013    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     24014
     24015  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     24016  if test $ac_delim_n = $ac_delim_num; then
     24017    break
     24018  elif $ac_last_try; then
     24019    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     24020  else
     24021    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     24022  fi
     24023done
     24024rm -f conf$$subs.sh
     24025
     24026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     24027cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
     24028_ACEOF
     24029sed -n '
     24030h
     24031s/^/S["/; s/!.*/"]=/
     24032p
     24033g
     24034s/^[^!]*!//
     24035:repl
     24036t repl
     24037s/'"$ac_delim"'$//
     24038t delim
     24039:nl
     24040h
     24041s/\(.\{148\}\)..*/\1/
     24042t more1
     24043s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     24044p
     24045n
     24046b repl
     24047:more1
     24048s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     24049p
     24050g
     24051s/.\{148\}//
     24052t nl
     24053:delim
     24054h
     24055s/\(.\{148\}\)..*/\1/
     24056t more2
     24057s/["\\]/\\&/g; s/^/"/; s/$/"/
     24058p
     24059b
     24060:more2
     24061s/["\\]/\\&/g; s/^/"/; s/$/"\\/
     24062p
     24063g
     24064s/.\{148\}//
     24065t delim
     24066' <conf$$subs.awk | sed '
     24067/^[^""]/{
     24068  N
     24069  s/\n//
    2989824070}
    29899 
     24071' >>$CONFIG_STATUS || ac_write_fail=1
     24072rm -f conf$$subs.awk
     24073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     24074_ACAWK
     24075cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
     24076  for (key in S) S_is_set[key] = 1
     24077  FS = ""
     24078
     24079}
     24080{
     24081  line = $ 0
     24082  nfields = split(line, field, "@")
     24083  substed = 0
     24084  len = length(field[1])
     24085  for (i = 2; i < nfields; i++) {
     24086    key = field[i]
     24087    keylen = length(key)
     24088    if (S_is_set[key]) {
     24089      value = S[key]
     24090      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
     24091      len += length(value) + length(field[++i])
     24092      substed = 1
     24093    } else
     24094      len += 1 + keylen
     24095  }
     24096
     24097  print line
     24098}
     24099
     24100_ACAWK
    2990024101_ACEOF
    29901 
    29902 cat >>$CONFIG_STATUS <<_ACEOF
    29903 
    29904 #
    29905 # CONFIG_FILES section.
    29906 #
    29907 
    29908 # No need to generate the scripts if there are no CONFIG_FILES.
    29909 # This happens for instance when ./config.status config.h
    29910 if test -n "\$CONFIG_FILES"; then
    29911   # Protect against being on the right side of a sed subst in config.status.
    29912   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
    29913    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
    29914 s,@SHELL@,$SHELL,;t t
    29915 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
    29916 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
    29917 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
    29918 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
    29919 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
    29920 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
    29921 s,@exec_prefix@,$exec_prefix,;t t
    29922 s,@prefix@,$prefix,;t t
    29923 s,@program_transform_name@,$program_transform_name,;t t
    29924 s,@bindir@,$bindir,;t t
    29925 s,@sbindir@,$sbindir,;t t
    29926 s,@libexecdir@,$libexecdir,;t t
    29927 s,@datadir@,$datadir,;t t
    29928 s,@sysconfdir@,$sysconfdir,;t t
    29929 s,@sharedstatedir@,$sharedstatedir,;t t
    29930 s,@localstatedir@,$localstatedir,;t t
    29931 s,@libdir@,$libdir,;t t
    29932 s,@includedir@,$includedir,;t t
    29933 s,@oldincludedir@,$oldincludedir,;t t
    29934 s,@infodir@,$infodir,;t t
    29935 s,@mandir@,$mandir,;t t
    29936 s,@build_alias@,$build_alias,;t t
    29937 s,@host_alias@,$host_alias,;t t
    29938 s,@target_alias@,$target_alias,;t t
    29939 s,@DEFS@,$DEFS,;t t
    29940 s,@ECHO_C@,$ECHO_C,;t t
    29941 s,@ECHO_N@,$ECHO_N,;t t
    29942 s,@ECHO_T@,$ECHO_T,;t t
    29943 s,@LIBS@,$LIBS,;t t
    29944 s,@build@,$build,;t t
    29945 s,@build_cpu@,$build_cpu,;t t
    29946 s,@build_vendor@,$build_vendor,;t t
    29947 s,@build_os@,$build_os,;t t
    29948 s,@host@,$host,;t t
    29949 s,@host_cpu@,$host_cpu,;t t
    29950 s,@host_vendor@,$host_vendor,;t t
    29951 s,@host_os@,$host_os,;t t
    29952 s,@target@,$target,;t t
    29953 s,@target_cpu@,$target_cpu,;t t
    29954 s,@target_vendor@,$target_vendor,;t t
    29955 s,@target_os@,$target_os,;t t
    29956 s,@SC_SO_VERSION@,$SC_SO_VERSION,;t t
    29957 s,@DOXYGEN_MAN@,$DOXYGEN_MAN,;t t
    29958 s,@FOOTER_HTML@,$FOOTER_HTML,;t t
    29959 s,@ENABLECCA@,$ENABLECCA,;t t
    29960 s,@BUILDID@,$BUILDID,;t t
    29961 s,@SC_VERSION@,$SC_VERSION,;t t
    29962 s,@ARFLAGS@,$ARFLAGS,;t t
    29963 s,@LAUNCH@,$LAUNCH,;t t
    29964 s,@CCALAUNCH@,$CCALAUNCH,;t t
    29965 s,@scdatadir@,$scdatadir,;t t
    29966 s,@scincludedir@,$scincludedir,;t t
    29967 s,@CCA_CHEM_CONFIG@,$CCA_CHEM_CONFIG,;t t
    29968 s,@compiledir@,$compiledir,;t t
    29969 s,@scbindir@,$scbindir,;t t
    29970 s,@sclibdir@,$sclibdir,;t t
    29971 s,@LN_S@,$LN_S,;t t
    29972 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    29973 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    29974 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    29975 s,@RANLIB@,$RANLIB,;t t
    29976 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    29977 s,@CC@,$CC,;t t
    29978 s,@CFLAGS@,$CFLAGS,;t t
    29979 s,@LDFLAGS@,$LDFLAGS,;t t
    29980 s,@CPPFLAGS@,$CPPFLAGS,;t t
    29981 s,@ac_ct_CC@,$ac_ct_CC,;t t
    29982 s,@EXEEXT@,$EXEEXT,;t t
    29983 s,@OBJEXT@,$OBJEXT,;t t
    29984 s,@CXX@,$CXX,;t t
    29985 s,@CXXFLAGS@,$CXXFLAGS,;t t
    29986 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    29987 s,@F77@,$F77,;t t
    29988 s,@FFLAGS@,$FFLAGS,;t t
    29989 s,@ac_ct_F77@,$ac_ct_F77,;t t
    29990 s,@FLIBS@,$FLIBS,;t t
    29991 s,@CPP@,$CPP,;t t
    29992 s,@CXXCPP@,$CXXCPP,;t t
    29993 s,@AR@,$AR,;t t
    29994 s,@PERL@,$PERL,;t t
    29995 s,@WISH@,$WISH,;t t
    29996 s,@HAVE_DOT@,$HAVE_DOT,;t t
    29997 s,@DOT_PATH@,$DOT_PATH,;t t
    29998 s,@EGREP@,$EGREP,;t t
    29999 s,@EXTRAINCLUDE@,$EXTRAINCLUDE,;t t
    30000 s,@LIBDIRS@,$LIBDIRS,;t t
    30001 s,@OBJSUF@,$OBJSUF,;t t
    30002 s,@LIBSUF@,$LIBSUF,;t t
    30003 s,@CCDEPENDSUF@,$CCDEPENDSUF,;t t
    30004 s,@CXXDEPENDSUF@,$CXXDEPENDSUF,;t t
    30005 s,@CCDEPENDFLAGS@,$CCDEPENDFLAGS,;t t
    30006 s,@CXXDEPENDFLAGS@,$CXXDEPENDFLAGS,;t t
    30007 s,@HAVE_PERF@,$HAVE_PERF,;t t
    30008 s,@HAVE_MPI@,$HAVE_MPI,;t t
    30009 s,@ALWAYS_USE_MPI@,$ALWAYS_USE_MPI,;t t
    30010 s,@HAVE_ARMCI@,$HAVE_ARMCI,;t t
    30011 s,@HAVE_MPIIO@,$HAVE_MPIIO,;t t
    30012 s,@HAVE_PTHREAD@,$HAVE_PTHREAD,;t t
    30013 s,@EXTRADEFINES@,$EXTRADEFINES,;t t
    30014 s,@HAVE_FCHDIR@,$HAVE_FCHDIR,;t t
    30015 s,@HAVE_IOS_FMTFLAGS@,$HAVE_IOS_FMTFLAGS,;t t
    30016 s,@HAVE_SGETN@,$HAVE_SGETN,;t t
    30017 s,@HAVE_PUBSEEKOFF@,$HAVE_PUBSEEKOFF,;t t
    30018 s,@HAVE_SEEKOFF@,$HAVE_SEEKOFF,;t t
    30019 s,@HAVE_SYSV_IPC@,$HAVE_SYSV_IPC,;t t
    30020 s,@F77_SYMBOLS@,$F77_SYMBOLS,;t t
    30021 s,@HAVE_BLAS@,$HAVE_BLAS,;t t
    30022 s,@HAVE_LAPACK@,$HAVE_LAPACK,;t t
    30023 s,@NIAMACFG@,$NIAMACFG,;t t
    30024 s,@HAVE_LIBINT@,$HAVE_LIBINT,;t t
    30025 s,@HAVE_LIBR12@,$HAVE_LIBR12,;t t
    30026 s,@HAVE_LIBDERIV@,$HAVE_LIBDERIV,;t t
    30027 s,@TMPLINST@,$TMPLINST,;t t
    30028 s,@TMPLREPO@,$TMPLREPO,;t t
    30029 s,@TMPLINLIB@,$TMPLINLIB,;t t
    30030 s,@ECHO@,$ECHO,;t t
    30031 s,@ac_ct_AR@,$ac_ct_AR,;t t
    30032 s,@STRIP@,$STRIP,;t t
    30033 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
    30034 s,@LIBTOOL@,$LIBTOOL,;t t
    30035 s,@ENABLESHARED@,$ENABLESHARED,;t t
    30036 s,@CCA_CHEM_INCLUDE@,$CCA_CHEM_INCLUDE,;t t
    30037 s,@CCA_CHEM_LIB@,$CCA_CHEM_LIB,;t t
    30038 s,@CCA_CHEM_REPO@,$CCA_CHEM_REPO,;t t
    30039 s,@CCAFE_CONFIG@,$CCAFE_CONFIG,;t t
    30040 s,@CCAFE_INCLUDE@,$CCAFE_INCLUDE,;t t
    30041 s,@CCAFE_LIB@,$CCAFE_LIB,;t t
    30042 s,@CCAFE_SHARE@,$CCAFE_SHARE,;t t
    30043 s,@CCAFE_BIN@,$CCAFE_BIN,;t t
    30044 s,@CCA_SPEC_BABEL_CONFIG@,$CCA_SPEC_BABEL_CONFIG,;t t
    30045 s,@CCA_SPEC_BABEL_INCLUDE@,$CCA_SPEC_BABEL_INCLUDE,;t t
    30046 s,@CCA_SPEC_BABEL_LIB@,$CCA_SPEC_BABEL_LIB,;t t
    30047 s,@CCA_SPEC_BABEL_SHARE@,$CCA_SPEC_BABEL_SHARE,;t t
    30048 s,@CCA_SPEC_CLASSIC_CONFIG@,$CCA_SPEC_CLASSIC_CONFIG,;t t
    30049 s,@CCA_SPEC_CLASSIC_INCLUDE@,$CCA_SPEC_CLASSIC_INCLUDE,;t t
    30050 s,@CCA_SPEC_CLASSIC_LIB@,$CCA_SPEC_CLASSIC_LIB,;t t
    30051 s,@CCA_SPEC_CLASSIC_SHARE@,$CCA_SPEC_CLASSIC_SHARE,;t t
    30052 s,@BABEL_CONFIG@,$BABEL_CONFIG,;t t
    30053 s,@BABEL_INCLUDE@,$BABEL_INCLUDE,;t t
    30054 s,@BABEL_LIB@,$BABEL_LIB,;t t
    30055 s,@BABEL_SHARE@,$BABEL_SHARE,;t t
    30056 s,@BABEL_BIN@,$BABEL_BIN,;t t
    30057 s,@BABEL_CC@,$BABEL_CC,;t t
    30058 s,@BABEL_CFLAGS@,$BABEL_CFLAGS,;t t
    30059 s,@BABEL_CXX@,$BABEL_CXX,;t t
    30060 s,@BABEL_CXXFLAGS@,$BABEL_CXXFLAGS,;t t
    30061 s,@BABEL_LIBTOOL@,$BABEL_LIBTOOL,;t t
    30062 s,@CCAFE_MPI_ENABLE@,$CCAFE_MPI_ENABLE,;t t
    30063 s,@CCAFE_MPI_INCLUDE@,$CCAFE_MPI_INCLUDE,;t t
    30064 s,@CCAFE_MPI_LIB@,$CCAFE_MPI_LIB,;t t
    30065 s,@CCAFE_MPI_BIN@,$CCAFE_MPI_BIN,;t t
    30066 s,@BABEL_PYTHON@,$BABEL_PYTHON,;t t
    30067 s,@BABEL_PYTHON_VERSION@,$BABEL_PYTHON_VERSION,;t t
    30068 s,@BABEL_PYTHON_LIB@,$BABEL_PYTHON_LIB,;t t
    30069 s,@BABEL_PYTHON_INCLUDE@,$BABEL_PYTHON_INCLUDE,;t t
    30070 s,@SCLIBS@,$SCLIBS,;t t
    30071 s,@LIBOBJS@,$LIBOBJS,;t t
    30072 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
    30073 CEOF
    30074 
     24102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     24103if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
     24104  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
     24105else
     24106  cat
     24107fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
     24108  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
    3007524109_ACEOF
    3007624110
    30077   cat >>$CONFIG_STATUS <<\_ACEOF
    30078   # Split the substitutions into bite-sized pieces for seds with
    30079   # small command number limits, like on Digital OSF/1 and HP-UX.
    30080   ac_max_sed_lines=48
    30081   ac_sed_frag=1 # Number of current file.
    30082   ac_beg=1 # First line for current file.
    30083   ac_end=$ac_max_sed_lines # Line after last line for current file.
    30084   ac_more_lines=:
    30085   ac_sed_cmds=
    30086   while $ac_more_lines; do
    30087     if test $ac_beg -gt 1; then
    30088       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
    30089     else
    30090       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     24111# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
     24112# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     24113# trailing colons and then remove the whole line if VPATH becomes empty
     24114# (actually we leave an empty line to preserve line numbers).
     24115if test "x$srcdir" = x.; then
     24116  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
     24117h
     24118s///
     24119s/^/:/
     24120s/[      ]*$/:/
     24121s/:\$(srcdir):/:/g
     24122s/:\${srcdir}:/:/g
     24123s/:@srcdir@:/:/g
     24124s/^:*//
     24125s/:*$//
     24126x
     24127s/\(=[   ]*\).*/\1/
     24128G
     24129s/\n//
     24130s/^[^=]*=[       ]*$//
     24131}'
     24132fi
     24133
     24134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     24135fi # test -n "$CONFIG_FILES"
     24136
     24137# Set up the scripts for CONFIG_HEADERS section.
     24138# No need to generate them if there are no CONFIG_HEADERS.
     24139# This happens for instance with `./config.status Makefile'.
     24140if test -n "$CONFIG_HEADERS"; then
     24141cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
     24142BEGIN {
     24143_ACEOF
     24144
     24145# Transform confdefs.h into an awk script `defines.awk', embedded as
     24146# here-document in config.status, that substitutes the proper values into
     24147# config.h.in to produce config.h.
     24148
     24149# Create a delimiter string that does not exist in confdefs.h, to ease
     24150# handling of long lines.
     24151ac_delim='%!_!# '
     24152for ac_last_try in false false :; do
     24153  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
     24154  if test -z "$ac_tt"; then
     24155    break
     24156  elif $ac_last_try; then
     24157    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     24158  else
     24159    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     24160  fi
     24161done
     24162
     24163# For the awk script, D is an array of macro values keyed by name,
     24164# likewise P contains macro parameters if any.  Preserve backslash
     24165# newline sequences.
     24166
     24167ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     24168sed -n '
     24169s/.\{148\}/&'"$ac_delim"'/g
     24170t rset
     24171:rset
     24172s/^[     ]*#[    ]*define[       ][      ]*/ /
     24173t def
     24174d
     24175:def
     24176s/\\$//
     24177t bsnl
     24178s/["\\]/\\&/g
     24179s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     24180D["\1"]=" \3"/p
     24181s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
     24182d
     24183:bsnl
     24184s/["\\]/\\&/g
     24185s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     24186D["\1"]=" \3\\\\\\n"\\/p
     24187t cont
     24188s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     24189t cont
     24190d
     24191:cont
     24192n
     24193s/.\{148\}/&'"$ac_delim"'/g
     24194t clear
     24195:clear
     24196s/\\$//
     24197t bsnlc
     24198s/["\\]/\\&/g; s/^/"/; s/$/"/p
     24199d
     24200:bsnlc
     24201s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     24202b cont
     24203' <confdefs.h | sed '
     24204s/'"$ac_delim"'/"\\\
     24205"/g' >>$CONFIG_STATUS || ac_write_fail=1
     24206
     24207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     24208  for (key in D) D_is_set[key] = 1
     24209  FS = ""
     24210}
     24211/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     24212  line = \$ 0
     24213  split(line, arg, " ")
     24214  if (arg[1] == "#") {
     24215    defundef = arg[2]
     24216    mac1 = arg[3]
     24217  } else {
     24218    defundef = substr(arg[1], 2)
     24219    mac1 = arg[2]
     24220  }
     24221  split(mac1, mac2, "(") #)
     24222  macro = mac2[1]
     24223  prefix = substr(line, 1, index(line, defundef) - 1)
     24224  if (D_is_set[macro]) {
     24225    # Preserve the white space surrounding the "#".
     24226    print prefix "define", macro P[macro] D[macro]
     24227    next
     24228  } else {
     24229    # Replace #undef with comments.  This is necessary, for example,
     24230    # in the case of _POSIX_SOURCE, which is predefined and required
     24231    # on some systems where configure will not decide to define it.
     24232    if (defundef == "undef") {
     24233      print "/*", prefix defundef, macro, "*/"
     24234      next
     24235    }
     24236  }
     24237}
     24238{ print }
     24239_ACAWK
     24240_ACEOF
     24241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     24242  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     24243fi # test -n "$CONFIG_HEADERS"
     24244
     24245
     24246eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
     24247shift
     24248for ac_tag
     24249do
     24250  case $ac_tag in
     24251  :[FHLC]) ac_mode=$ac_tag; continue;;
     24252  esac
     24253  case $ac_mode$ac_tag in
     24254  :[FHL]*:*);;
     24255  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
     24256  :[FH]-) ac_tag=-:-;;
     24257  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     24258  esac
     24259  ac_save_IFS=$IFS
     24260  IFS=:
     24261  set x $ac_tag
     24262  IFS=$ac_save_IFS
     24263  shift
     24264  ac_file=$1
     24265  shift
     24266
     24267  case $ac_mode in
     24268  :L) ac_source=$1;;
     24269  :[FH])
     24270    ac_file_inputs=
     24271    for ac_f
     24272    do
     24273      case $ac_f in
     24274      -) ac_f="$ac_tmp/stdin";;
     24275      *) # Look for the file first in the build tree, then in the source tree
     24276         # (if the path is not absolute).  The absolute path cannot be DOS-style,
     24277         # because $ac_f cannot contain `:'.
     24278         test -f "$ac_f" ||
     24279           case $ac_f in
     24280           [\\/$]*) false;;
     24281           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
     24282           esac ||
     24283           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
     24284      esac
     24285      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     24286      as_fn_append ac_file_inputs " '$ac_f'"
     24287    done
     24288
     24289    # Let's still pretend it is `configure' which instantiates (i.e., don't
     24290    # use $as_me), people would be surprised to read:
     24291    #    /* config.h.  Generated by config.status.  */
     24292    configure_input='Generated from '`
     24293          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
     24294        `' by configure.'
     24295    if test x"$ac_file" != x-; then
     24296      configure_input="$ac_file.  $configure_input"
     24297      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
     24298$as_echo "$as_me: creating $ac_file" >&6;}
    3009124299    fi
    30092     if test ! -s $tmp/subs.frag; then
    30093       ac_more_lines=false
    30094     else
    30095       # The purpose of the label and of the branching condition is to
    30096       # speed up the sed processing (if there are no `@' at all, there
    30097       # is no need to browse any of the substitutions).
    30098       # These are the two extra sed commands mentioned above.
    30099       (echo ':t
    30100   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    30101       if test -z "$ac_sed_cmds"; then
    30102         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    30103       else
    30104         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    30105       fi
    30106       ac_sed_frag=`expr $ac_sed_frag + 1`
    30107       ac_beg=$ac_end
    30108       ac_end=`expr $ac_end + $ac_max_sed_lines`
    30109     fi
    30110   done
    30111   if test -z "$ac_sed_cmds"; then
    30112     ac_sed_cmds=cat
    30113   fi
    30114 fi # test -n "$CONFIG_FILES"
    30115 
    30116 _ACEOF
    30117 cat >>$CONFIG_STATUS <<\_ACEOF
    30118 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    30119   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    30120   case $ac_file in
    30121   - | *:- | *:-:* ) # input from stdin
    30122         cat >$tmp/stdin
    30123         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    30124         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    30125   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    30126         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    30127   * )   ac_file_in=$ac_file.in ;;
     24300    # Neutralize special characters interpreted by sed in replacement strings.
     24301    case $configure_input in #(
     24302    *\&* | *\|* | *\\* )
     24303       ac_sed_conf_input=`$as_echo "$configure_input" |
     24304       sed 's/[\\\\&|]/\\\\&/g'`;; #(
     24305    *) ac_sed_conf_input=$configure_input;;
     24306    esac
     24307
     24308    case $ac_tag in
     24309    *:-:* | *:-) cat >"$ac_tmp/stdin" \
     24310      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
     24311    esac
     24312    ;;
    3012824313  esac
    3012924314
    30130   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
    30131   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     24315  ac_dir=`$as_dirname -- "$ac_file" ||
    3013224316$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    3013324317         X"$ac_file" : 'X\(//\)[^/]' \| \
    3013424318         X"$ac_file" : 'X\(//\)$' \| \
    30135          X"$ac_file" : 'X\(/\)' \| \
    30136          .     : '\(.\)' 2>/dev/null ||
    30137 echo X"$ac_file" |
    30138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    30139           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    30140           /^X\(\/\/\)$/{ s//\1/; q; }
    30141           /^X\(\/\).*/{ s//\1/; q; }
    30142           s/.*/./; q'`
    30143   { if $as_mkdir_p; then
    30144     mkdir -p "$ac_dir"
    30145   else
    30146     as_dir="$ac_dir"
    30147     as_dirs=
    30148     while test ! -d "$as_dir"; do
    30149       as_dirs="$as_dir $as_dirs"
    30150       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    30151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    30152          X"$as_dir" : 'X\(//\)[^/]' \| \
    30153          X"$as_dir" : 'X\(//\)$' \| \
    30154          X"$as_dir" : 'X\(/\)' \| \
    30155          .     : '\(.\)' 2>/dev/null ||
    30156 echo X"$as_dir" |
    30157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    30158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    30159           /^X\(\/\/\)$/{ s//\1/; q; }
    30160           /^X\(\/\).*/{ s//\1/; q; }
    30161           s/.*/./; q'`
    30162     done
    30163     test ! -n "$as_dirs" || mkdir $as_dirs
    30164   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    30165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    30166    { (exit 1); exit 1; }; }; }
    30167 
     24319         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
     24320$as_echo X"$ac_file" |
     24321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
     24322            s//\1/
     24323            q
     24324          }
     24325          /^X\(\/\/\)[^/].*/{
     24326            s//\1/
     24327            q
     24328          }
     24329          /^X\(\/\/\)$/{
     24330            s//\1/
     24331            q
     24332          }
     24333          /^X\(\/\).*/{
     24334            s//\1/
     24335            q
     24336          }
     24337          s/.*/./; q'`
     24338  as_dir="$ac_dir"; as_fn_mkdir_p
    3016824339  ac_builddir=.
    3016924340
    30170 if test "$ac_dir" != .; then
    30171   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    30172   # A "../" for each directory in $ac_dir_suffix.
    30173   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
    30174 else
    30175   ac_dir_suffix= ac_top_builddir=
    30176 fi
     24341case "$ac_dir" in
     24342.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     24343*)
     24344  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
     24345  # A ".." for each directory in $ac_dir_suffix.
     24346  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
     24347  case $ac_top_builddir_sub in
     24348  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
     24349  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
     24350  esac ;;
     24351esac
     24352ac_abs_top_builddir=$ac_pwd
     24353ac_abs_builddir=$ac_pwd$ac_dir_suffix
     24354# for backward compatibility:
     24355ac_top_builddir=$ac_top_build_prefix
    3017724356
    3017824357case $srcdir in
    30179   .)  # No --srcdir option.  We are building in place.
     24358  .)  # We are building in place.
    3018024359    ac_srcdir=.
    30181     if test -z "$ac_top_builddir"; then
    30182        ac_top_srcdir=.
    30183     else
    30184        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
    30185     fi ;;
    30186   [\\/]* | ?:[\\/]* )  # Absolute path.
     24360    ac_top_srcdir=$ac_top_builddir_sub
     24361    ac_abs_top_srcdir=$ac_pwd ;;
     24362  [\\/]* | ?:[\\/]* )  # Absolute name.
    3018724363    ac_srcdir=$srcdir$ac_dir_suffix;
    30188     ac_top_srcdir=$srcdir ;;
    30189   *) # Relative path.
    30190     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
    30191     ac_top_srcdir=$ac_top_builddir$srcdir ;;
     24364    ac_top_srcdir=$srcdir
     24365    ac_abs_top_srcdir=$srcdir ;;
     24366  *) # Relative name.
     24367    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
     24368    ac_top_srcdir=$ac_top_build_prefix$srcdir
     24369    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    3019224370esac
    30193 
    30194 # Do not use `cd foo && pwd` to compute absolute paths, because
    30195 # the directories may not exist.
    30196 case `pwd` in
    30197 .) ac_abs_builddir="$ac_dir";;
    30198 *)
    30199   case "$ac_dir" in
    30200   .) ac_abs_builddir=`pwd`;;
    30201   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    30202   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    30203   esac;;
    30204 esac
    30205 case $ac_abs_builddir in
    30206 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    30207 *)
    30208   case ${ac_top_builddir}. in
    30209   .) ac_abs_top_builddir=$ac_abs_builddir;;
    30210   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    30211   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    30212   esac;;
    30213 esac
    30214 case $ac_abs_builddir in
    30215 .) ac_abs_srcdir=$ac_srcdir;;
    30216 *)
    30217   case $ac_srcdir in
    30218   .) ac_abs_srcdir=$ac_abs_builddir;;
    30219   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    30220   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    30221   esac;;
    30222 esac
    30223 case $ac_abs_builddir in
    30224 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    30225 *)
    30226   case $ac_top_srcdir in
    30227   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    30228   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    30229   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    30230   esac;;
    30231 esac
    30232 
     24371ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
     24372
     24373
     24374  case $ac_mode in
     24375  :F)
     24376  #
     24377  # CONFIG_FILE
     24378  #
    3023324379
    3023424380  case $INSTALL in
    3023524381  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
    30236   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
     24382  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
    3023724383  esac
    30238 
    30239   if test x"$ac_file" != x-; then
    30240     { echo "$as_me:$LINENO: creating $ac_file" >&5
    30241 echo "$as_me: creating $ac_file" >&6;}
    30242     rm -f "$ac_file"
    30243   fi
    30244   # Let's still pretend it is `configure' which instantiates (i.e., don't
    30245   # use $as_me), people would be surprised to read:
    30246   #    /* config.h.  Generated by config.status.  */
    30247   if test x"$ac_file" = x-; then
    30248     configure_input=
    30249   else
    30250     configure_input="$ac_file.  "
    30251   fi
    30252   configure_input=$configure_input"Generated from `echo $ac_file_in |
    30253                                      sed 's,.*/,,'` by configure."
    30254 
    30255   # First look for the input files in the build tree, otherwise in the
    30256   # src tree.
    30257   ac_file_inputs=`IFS=:
    30258     for f in $ac_file_in; do
    30259       case $f in
    30260       -) echo $tmp/stdin ;;
    30261       [\\/$]*)
    30262          # Absolute (can't be DOS-style, as IFS=:)
    30263          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    30264 echo "$as_me: error: cannot find input file: $f" >&2;}
    30265    { (exit 1); exit 1; }; }
    30266          echo "$f";;
    30267       *) # Relative
    30268          if test -f "$f"; then
    30269            # Build tree
    30270            echo "$f"
    30271          elif test -f "$srcdir/$f"; then
    30272            # Source tree
    30273            echo "$srcdir/$f"
    30274          else
    30275            # /dev/null tree
    30276            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    30277 echo "$as_me: error: cannot find input file: $f" >&2;}
    30278    { (exit 1); exit 1; }; }
    30279          fi;;
    30280       esac
    30281     done` || { (exit 1); exit 1; }
    3028224384_ACEOF
    30283 cat >>$CONFIG_STATUS <<_ACEOF
    30284   sed "$ac_vpsub
     24385
     24386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     24387# If the template does not know about datarootdir, expand it.
     24388# FIXME: This hack should be removed a few years after 2.60.
     24389ac_datarootdir_hack=; ac_datarootdir_seen=
     24390ac_sed_dataroot='
     24391/datarootdir/ {
     24392  p
     24393  q
     24394}
     24395/@datadir@/p
     24396/@docdir@/p
     24397/@infodir@/p
     24398/@localedir@/p
     24399/@mandir@/p'
     24400case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
     24401*datarootdir*) ac_datarootdir_seen=yes;;
     24402*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
     24403  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
     24404$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
     24405_ACEOF
     24406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     24407  ac_datarootdir_hack='
     24408  s&@datadir@&$datadir&g
     24409  s&@docdir@&$docdir&g
     24410  s&@infodir@&$infodir&g
     24411  s&@localedir@&$localedir&g
     24412  s&@mandir@&$mandir&g
     24413  s&\\\${datarootdir}&$datarootdir&g' ;;
     24414esac
     24415_ACEOF
     24416
     24417# Neutralize VPATH when `$srcdir' = `.'.
     24418# Shell code in configure.ac might set extrasub.
     24419# FIXME: do we really want to maintain this feature?
     24420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     24421ac_sed_extra="$ac_vpsub
    3028524422$extrasub
    3028624423_ACEOF
    30287 cat >>$CONFIG_STATUS <<\_ACEOF
     24424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    3028824425:t
    3028924426/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
    30290 s,@configure_input@,$configure_input,;t t
    30291 s,@srcdir@,$ac_srcdir,;t t
    30292 s,@abs_srcdir@,$ac_abs_srcdir,;t t
    30293 s,@top_srcdir@,$ac_top_srcdir,;t t
    30294 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    30295 s,@builddir@,$ac_builddir,;t t
    30296 s,@abs_builddir@,$ac_abs_builddir,;t t
    30297 s,@top_builddir@,$ac_top_builddir,;t t
    30298 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    30299 s,@INSTALL@,$ac_INSTALL,;t t
    30300 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    30301   rm -f $tmp/stdin
     24427s|@configure_input@|$ac_sed_conf_input|;t t
     24428s&@top_builddir@&$ac_top_builddir_sub&;t t
     24429s&@top_build_prefix@&$ac_top_build_prefix&;t t
     24430s&@srcdir@&$ac_srcdir&;t t
     24431s&@abs_srcdir@&$ac_abs_srcdir&;t t
     24432s&@top_srcdir@&$ac_top_srcdir&;t t
     24433s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
     24434s&@builddir@&$ac_builddir&;t t
     24435s&@abs_builddir@&$ac_abs_builddir&;t t
     24436s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
     24437s&@INSTALL@&$ac_INSTALL&;t t
     24438$ac_datarootdir_hack
     24439"
     24440eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
     24441  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     24442
     24443test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     24444  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
     24445  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
     24446      "$ac_tmp/out"`; test -z "$ac_out"; } &&
     24447  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     24448which seems to be undefined.  Please make sure it is defined" >&5
     24449$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
     24450which seems to be undefined.  Please make sure it is defined" >&2;}
     24451
     24452  rm -f "$ac_tmp/stdin"
     24453  case $ac_file in
     24454  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
     24455  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
     24456  esac \
     24457  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     24458 ;;
     24459  :H)
     24460  #
     24461  # CONFIG_HEADER
     24462  #
    3030224463  if test x"$ac_file" != x-; then
    30303     mv $tmp/out $ac_file
    30304   else
    30305     cat $tmp/out
    30306     rm -f $tmp/out
    30307   fi
    30308 
    30309 done
    30310 _ACEOF
    30311 cat >>$CONFIG_STATUS <<\_ACEOF
    30312 
    30313 #
    30314 # CONFIG_HEADER section.
    30315 #
    30316 
    30317 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
    30318 # NAME is the cpp macro being defined and VALUE is the value it is being given.
    30319 #
    30320 # ac_d sets the value in "#define NAME VALUE" lines.
    30321 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
    30322 ac_dB='[         ].*$,\1#\2'
    30323 ac_dC=' '
    30324 ac_dD=',;t'
    30325 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    30326 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    30327 ac_uB='$,\1#\2define\3'
    30328 ac_uC=' '
    30329 ac_uD=',;t'
    30330 
    30331 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
    30332   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    30333   case $ac_file in
    30334   - | *:- | *:-:* ) # input from stdin
    30335         cat >$tmp/stdin
    30336         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    30337         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    30338   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    30339         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    30340   * )   ac_file_in=$ac_file.in ;;
    30341   esac
    30342 
    30343   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
    30344 echo "$as_me: creating $ac_file" >&6;}
    30345 
    30346   # First look for the input files in the build tree, otherwise in the
    30347   # src tree.
    30348   ac_file_inputs=`IFS=:
    30349     for f in $ac_file_in; do
    30350       case $f in
    30351       -) echo $tmp/stdin ;;
    30352       [\\/$]*)
    30353          # Absolute (can't be DOS-style, as IFS=:)
    30354          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    30355 echo "$as_me: error: cannot find input file: $f" >&2;}
    30356    { (exit 1); exit 1; }; }
    30357          # Do quote $f, to prevent DOS paths from being IFS'd.
    30358          echo "$f";;
    30359       *) # Relative
    30360          if test -f "$f"; then
    30361            # Build tree
    30362            echo "$f"
    30363          elif test -f "$srcdir/$f"; then
    30364            # Source tree
    30365            echo "$srcdir/$f"
    30366          else
    30367            # /dev/null tree
    30368            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    30369 echo "$as_me: error: cannot find input file: $f" >&2;}
    30370    { (exit 1); exit 1; }; }
    30371          fi;;
    30372       esac
    30373     done` || { (exit 1); exit 1; }
    30374   # Remove the trailing spaces.
    30375   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
    30376 
    30377 _ACEOF
    30378 
    30379 # Transform confdefs.h into two sed scripts, `conftest.defines' and
    30380 # `conftest.undefs', that substitutes the proper values into
    30381 # config.h.in to produce config.h.  The first handles `#define'
    30382 # templates, and the second `#undef' templates.
    30383 # And first: Protect against being on the right side of a sed subst in
    30384 # config.status.  Protect against being in an unquoted here document
    30385 # in config.status.
    30386 rm -f conftest.defines conftest.undefs
    30387 # Using a here document instead of a string reduces the quoting nightmare.
    30388 # Putting comments in sed scripts is not portable.
    30389 #
    30390 # `end' is used to avoid that the second main sed command (meant for
    30391 # 0-ary CPP macros) applies to n-ary macro definitions.
    30392 # See the Autoconf documentation for `clear'.
    30393 cat >confdef2sed.sed <<\_ACEOF
    30394 s/[\\&,]/\\&/g
    30395 s,[\\$`],\\&,g
    30396 t clear
    30397 : clear
    30398 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    30399 t end
    30400 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    30401 : end
    30402 _ACEOF
    30403 # If some macros were called several times there might be several times
    30404 # the same #defines, which is useless.  Nevertheless, we may not want to
    30405 # sort them, since we want the *last* AC-DEFINE to be honored.
    30406 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
    30407 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
    30408 rm -f confdef2sed.sed
    30409 
    30410 # This sed command replaces #undef with comments.  This is necessary, for
    30411 # example, in the case of _POSIX_SOURCE, which is predefined and required
    30412 # on some systems where configure will not decide to define it.
    30413 cat >>conftest.undefs <<\_ACEOF
    30414 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    30415 _ACEOF
    30416 
    30417 # Break up conftest.defines because some shells have a limit on the size
    30418 # of here documents, and old seds have small limits too (100 cmds).
    30419 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    30420 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    30421 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    30422 echo '  :' >>$CONFIG_STATUS
    30423 rm -f conftest.tail
    30424 while grep . conftest.defines >/dev/null
    30425 do
    30426   # Write a limited-size here document to $tmp/defines.sed.
    30427   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    30428   # Speed up: don't consider the non `#define' lines.
    30429   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
    30430   # Work around the forget-to-reset-the-flag bug.
    30431   echo 't clr' >>$CONFIG_STATUS
    30432   echo ': clr' >>$CONFIG_STATUS
    30433   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    30434   echo 'CEOF
    30435   sed -f $tmp/defines.sed $tmp/in >$tmp/out
    30436   rm -f $tmp/in
    30437   mv $tmp/out $tmp/in
    30438 ' >>$CONFIG_STATUS
    30439   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
    30440   rm -f conftest.defines
    30441   mv conftest.tail conftest.defines
    30442 done
    30443 rm -f conftest.defines
    30444 echo '  fi # grep' >>$CONFIG_STATUS
    30445 echo >>$CONFIG_STATUS
    30446 
    30447 # Break up conftest.undefs because some shells have a limit on the size
    30448 # of here documents, and old seds have small limits too (100 cmds).
    30449 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
    30450 rm -f conftest.tail
    30451 while grep . conftest.undefs >/dev/null
    30452 do
    30453   # Write a limited-size here document to $tmp/undefs.sed.
    30454   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    30455   # Speed up: don't consider the non `#undef'
    30456   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    30457   # Work around the forget-to-reset-the-flag bug.
    30458   echo 't clr' >>$CONFIG_STATUS
    30459   echo ': clr' >>$CONFIG_STATUS
    30460   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
    30461   echo 'CEOF
    30462   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
    30463   rm -f $tmp/in
    30464   mv $tmp/out $tmp/in
    30465 ' >>$CONFIG_STATUS
    30466   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
    30467   rm -f conftest.undefs
    30468   mv conftest.tail conftest.undefs
    30469 done
    30470 rm -f conftest.undefs
    30471 
    30472 cat >>$CONFIG_STATUS <<\_ACEOF
    30473   # Let's still pretend it is `configure' which instantiates (i.e., don't
    30474   # use $as_me), people would be surprised to read:
    30475   #    /* config.h.  Generated by config.status.  */
    30476   if test x"$ac_file" = x-; then
    30477     echo "/* Generated by configure.  */" >$tmp/config.h
    30478   else
    30479     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
    30480   fi
    30481   cat $tmp/in >>$tmp/config.h
    30482   rm -f $tmp/in
    30483   if test x"$ac_file" != x-; then
    30484     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
    30485       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
    30486 echo "$as_me: $ac_file is unchanged" >&6;}
     24464    {
     24465      $as_echo "/* $configure_input  */" \
     24466      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
     24467    } >"$ac_tmp/config.h" \
     24468      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     24469    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
     24470      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     24471$as_echo "$as_me: $ac_file is unchanged" >&6;}
    3048724472    else
    30488       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    30489 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    30490          X"$ac_file" : 'X\(//\)[^/]' \| \
    30491          X"$ac_file" : 'X\(//\)$' \| \
    30492          X"$ac_file" : 'X\(/\)' \| \
    30493          .     : '\(.\)' 2>/dev/null ||
    30494 echo X"$ac_file" |
    30495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    30496           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    30497           /^X\(\/\/\)$/{ s//\1/; q; }
    30498           /^X\(\/\).*/{ s//\1/; q; }
    30499           s/.*/./; q'`
    30500       { if $as_mkdir_p; then
    30501     mkdir -p "$ac_dir"
    30502   else
    30503     as_dir="$ac_dir"
    30504     as_dirs=
    30505     while test ! -d "$as_dir"; do
    30506       as_dirs="$as_dir $as_dirs"
    30507       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    30508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    30509          X"$as_dir" : 'X\(//\)[^/]' \| \
    30510          X"$as_dir" : 'X\(//\)$' \| \
    30511          X"$as_dir" : 'X\(/\)' \| \
    30512          .     : '\(.\)' 2>/dev/null ||
    30513 echo X"$as_dir" |
    30514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    30515           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    30516           /^X\(\/\/\)$/{ s//\1/; q; }
    30517           /^X\(\/\).*/{ s//\1/; q; }
    30518           s/.*/./; q'`
    30519     done
    30520     test ! -n "$as_dirs" || mkdir $as_dirs
    30521   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    30522 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    30523    { (exit 1); exit 1; }; }; }
    30524 
    30525       rm -f $ac_file
    30526       mv $tmp/config.h $ac_file
     24473      rm -f "$ac_file"
     24474      mv "$ac_tmp/config.h" "$ac_file" \
     24475        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    3052724476    fi
    3052824477  else
    30529     cat $tmp/config.h
    30530     rm -f $tmp/config.h
     24478    $as_echo "/* $configure_input  */" \
     24479      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
     24480      || as_fn_error $? "could not create -" "$LINENO" 5
    3053124481  fi
    30532 done
     24482 ;;
     24483
     24484  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
     24485$as_echo "$as_me: executing $ac_file commands" >&6;}
     24486 ;;
     24487  esac
     24488
     24489
     24490  case $ac_file$ac_mode in
     24491    "libtool":C)
     24492
     24493    # See if we are running on zsh, and set the options which allow our
     24494    # commands through without removal of \ escapes.
     24495    if test -n "${ZSH_VERSION+set}" ; then
     24496      setopt NO_GLOB_SUBST
     24497    fi
     24498
     24499    cfgfile="${ofile}T"
     24500    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
     24501    $RM "$cfgfile"
     24502
     24503    cat <<_LT_EOF >> "$cfgfile"
     24504#! $SHELL
     24505
     24506# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
     24507# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
     24508# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     24509# NOTE: Changes made to this file will be lost: look at ltmain.sh.
     24510#
     24511#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
     24512#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
     24513#                 Foundation, Inc.
     24514#   Written by Gordon Matzigkeit, 1996
     24515#
     24516#   This file is part of GNU Libtool.
     24517#
     24518# GNU Libtool is free software; you can redistribute it and/or
     24519# modify it under the terms of the GNU General Public License as
     24520# published by the Free Software Foundation; either version 2 of
     24521# the License, or (at your option) any later version.
     24522#
     24523# As a special exception to the GNU General Public License,
     24524# if you distribute this file as part of a program or library that
     24525# is built using GNU Libtool, you may include this file under the
     24526# same distribution terms that you use for the rest of that program.
     24527#
     24528# GNU Libtool is distributed in the hope that it will be useful,
     24529# but WITHOUT ANY WARRANTY; without even the implied warranty of
     24530# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     24531# GNU General Public License for more details.
     24532#
     24533# You should have received a copy of the GNU General Public License
     24534# along with GNU Libtool; see the file COPYING.  If not, a copy
     24535# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
     24536# obtained by writing to the Free Software Foundation, Inc.,
     24537# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
     24538
     24539
     24540# The names of the tagged configurations supported by this script.
     24541available_tags="CXX F77 "
     24542
     24543# ### BEGIN LIBTOOL CONFIG
     24544
     24545# Whether or not to build shared libraries.
     24546build_libtool_libs=$enable_shared
     24547
     24548# Which release of libtool.m4 was used?
     24549macro_version=$macro_version
     24550macro_revision=$macro_revision
     24551
     24552# Whether or not to build static libraries.
     24553build_old_libs=$enable_static
     24554
     24555# What type of objects to build.
     24556pic_mode=$pic_mode
     24557
     24558# Whether or not to optimize for fast installation.
     24559fast_install=$enable_fast_install
     24560
     24561# Shell to use when invoking shell scripts.
     24562SHELL=$lt_SHELL
     24563
     24564# An echo program that protects backslashes.
     24565ECHO=$lt_ECHO
     24566
     24567# The PATH separator for the build system.
     24568PATH_SEPARATOR=$lt_PATH_SEPARATOR
     24569
     24570# The host system.
     24571host_alias=$host_alias
     24572host=$host
     24573host_os=$host_os
     24574
     24575# The build system.
     24576build_alias=$build_alias
     24577build=$build
     24578build_os=$build_os
     24579
     24580# A sed program that does not truncate output.
     24581SED=$lt_SED
     24582
     24583# Sed that helps us avoid accidentally triggering echo(1) options like -n.
     24584Xsed="\$SED -e 1s/^X//"
     24585
     24586# A grep program that handles long lines.
     24587GREP=$lt_GREP
     24588
     24589# An ERE matcher.
     24590EGREP=$lt_EGREP
     24591
     24592# A literal string matcher.
     24593FGREP=$lt_FGREP
     24594
     24595# A BSD- or MS-compatible name lister.
     24596NM=$lt_NM
     24597
     24598# Whether we need soft or hard links.
     24599LN_S=$lt_LN_S
     24600
     24601# What is the maximum length of a command?
     24602max_cmd_len=$max_cmd_len
     24603
     24604# Object file suffix (normally "o").
     24605objext=$ac_objext
     24606
     24607# Executable file suffix (normally "").
     24608exeext=$exeext
     24609
     24610# whether the shell understands "unset".
     24611lt_unset=$lt_unset
     24612
     24613# turn spaces into newlines.
     24614SP2NL=$lt_lt_SP2NL
     24615
     24616# turn newlines into spaces.
     24617NL2SP=$lt_lt_NL2SP
     24618
     24619# convert \$build file names to \$host format.
     24620to_host_file_cmd=$lt_cv_to_host_file_cmd
     24621
     24622# convert \$build files to toolchain format.
     24623to_tool_file_cmd=$lt_cv_to_tool_file_cmd
     24624
     24625# An object symbol dumper.
     24626OBJDUMP=$lt_OBJDUMP
     24627
     24628# Method to check whether dependent libraries are shared objects.
     24629deplibs_check_method=$lt_deplibs_check_method
     24630
     24631# Command to use when deplibs_check_method = "file_magic".
     24632file_magic_cmd=$lt_file_magic_cmd
     24633
     24634# How to find potential files when deplibs_check_method = "file_magic".
     24635file_magic_glob=$lt_file_magic_glob
     24636
     24637# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
     24638want_nocaseglob=$lt_want_nocaseglob
     24639
     24640# DLL creation program.
     24641DLLTOOL=$lt_DLLTOOL
     24642
     24643# Command to associate shared and link libraries.
     24644sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
     24645
     24646# The archiver.
     24647AR=$lt_AR
     24648
     24649# Flags to create an archive.
     24650AR_FLAGS=$lt_AR_FLAGS
     24651
     24652# How to feed a file listing to the archiver.
     24653archiver_list_spec=$lt_archiver_list_spec
     24654
     24655# A symbol stripping program.
     24656STRIP=$lt_STRIP
     24657
     24658# Commands used to install an old-style archive.
     24659RANLIB=$lt_RANLIB
     24660old_postinstall_cmds=$lt_old_postinstall_cmds
     24661old_postuninstall_cmds=$lt_old_postuninstall_cmds
     24662
     24663# Whether to use a lock for old archive extraction.
     24664lock_old_archive_extraction=$lock_old_archive_extraction
     24665
     24666# A C compiler.
     24667LTCC=$lt_CC
     24668
     24669# LTCC compiler flags.
     24670LTCFLAGS=$lt_CFLAGS
     24671
     24672# Take the output of nm and produce a listing of raw symbols and C names.
     24673global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
     24674
     24675# Transform the output of nm in a proper C declaration.
     24676global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
     24677
     24678# Transform the output of nm in a C name address pair.
     24679global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
     24680
     24681# Transform the output of nm in a C name address pair when lib prefix is needed.
     24682global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
     24683
     24684# Specify filename containing input files for \$NM.
     24685nm_file_list_spec=$lt_nm_file_list_spec
     24686
     24687# The root where to search for dependent libraries,and in which our libraries should be installed.
     24688lt_sysroot=$lt_sysroot
     24689
     24690# The name of the directory that contains temporary libtool files.
     24691objdir=$objdir
     24692
     24693# Used to examine libraries when file_magic_cmd begins with "file".
     24694MAGIC_CMD=$MAGIC_CMD
     24695
     24696# Must we lock files when doing compilation?
     24697need_locks=$lt_need_locks
     24698
     24699# Manifest tool.
     24700MANIFEST_TOOL=$lt_MANIFEST_TOOL
     24701
     24702# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
     24703DSYMUTIL=$lt_DSYMUTIL
     24704
     24705# Tool to change global to local symbols on Mac OS X.
     24706NMEDIT=$lt_NMEDIT
     24707
     24708# Tool to manipulate fat objects and archives on Mac OS X.
     24709LIPO=$lt_LIPO
     24710
     24711# ldd/readelf like tool for Mach-O binaries on Mac OS X.
     24712OTOOL=$lt_OTOOL
     24713
     24714# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
     24715OTOOL64=$lt_OTOOL64
     24716
     24717# Old archive suffix (normally "a").
     24718libext=$libext
     24719
     24720# Shared library suffix (normally ".so").
     24721shrext_cmds=$lt_shrext_cmds
     24722
     24723# The commands to extract the exported symbol list from a shared archive.
     24724extract_expsyms_cmds=$lt_extract_expsyms_cmds
     24725
     24726# Variables whose values should be saved in libtool wrapper scripts and
     24727# restored at link time.
     24728variables_saved_for_relink=$lt_variables_saved_for_relink
     24729
     24730# Do we need the "lib" prefix for modules?
     24731need_lib_prefix=$need_lib_prefix
     24732
     24733# Do we need a version for libraries?
     24734need_version=$need_version
     24735
     24736# Library versioning type.
     24737version_type=$version_type
     24738
     24739# Shared library runtime path variable.
     24740runpath_var=$runpath_var
     24741
     24742# Shared library path variable.
     24743shlibpath_var=$shlibpath_var
     24744
     24745# Is shlibpath searched before the hard-coded library search path?
     24746shlibpath_overrides_runpath=$shlibpath_overrides_runpath
     24747
     24748# Format of library name prefix.
     24749libname_spec=$lt_libname_spec
     24750
     24751# List of archive names.  First name is the real one, the rest are links.
     24752# The last name is the one that the linker finds with -lNAME
     24753library_names_spec=$lt_library_names_spec
     24754
     24755# The coded name of the library, if different from the real name.
     24756soname_spec=$lt_soname_spec
     24757
     24758# Permission mode override for installation of shared libraries.
     24759install_override_mode=$lt_install_override_mode
     24760
     24761# Command to use after installation of a shared archive.
     24762postinstall_cmds=$lt_postinstall_cmds
     24763
     24764# Command to use after uninstallation of a shared archive.
     24765postuninstall_cmds=$lt_postuninstall_cmds
     24766
     24767# Commands used to finish a libtool library installation in a directory.
     24768finish_cmds=$lt_finish_cmds
     24769
     24770# As "finish_cmds", except a single script fragment to be evaled but
     24771# not shown.
     24772finish_eval=$lt_finish_eval
     24773
     24774# Whether we should hardcode library paths into libraries.
     24775hardcode_into_libs=$hardcode_into_libs
     24776
     24777# Compile-time system search path for libraries.
     24778sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
     24779
     24780# Run-time system search path for libraries.
     24781sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
     24782
     24783# Whether dlopen is supported.
     24784dlopen_support=$enable_dlopen
     24785
     24786# Whether dlopen of programs is supported.
     24787dlopen_self=$enable_dlopen_self
     24788
     24789# Whether dlopen of statically linked programs is supported.
     24790dlopen_self_static=$enable_dlopen_self_static
     24791
     24792# Commands to strip libraries.
     24793old_striplib=$lt_old_striplib
     24794striplib=$lt_striplib
     24795
     24796
     24797# The linker used to build libraries.
     24798LD=$lt_LD
     24799
     24800# How to create reloadable object files.
     24801reload_flag=$lt_reload_flag
     24802reload_cmds=$lt_reload_cmds
     24803
     24804# Commands used to build an old-style archive.
     24805old_archive_cmds=$lt_old_archive_cmds
     24806
     24807# A language specific compiler.
     24808CC=$lt_compiler
     24809
     24810# Is the compiler the GNU compiler?
     24811with_gcc=$GCC
     24812
     24813# Compiler flag to turn off builtin functions.
     24814no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
     24815
     24816# Additional compiler flags for building library objects.
     24817pic_flag=$lt_lt_prog_compiler_pic
     24818
     24819# How to pass a linker flag through the compiler.
     24820wl=$lt_lt_prog_compiler_wl
     24821
     24822# Compiler flag to prevent dynamic linking.
     24823link_static_flag=$lt_lt_prog_compiler_static
     24824
     24825# Does compiler simultaneously support -c and -o options?
     24826compiler_c_o=$lt_lt_cv_prog_compiler_c_o
     24827
     24828# Whether or not to add -lc for building shared libraries.
     24829build_libtool_need_lc=$archive_cmds_need_lc
     24830
     24831# Whether or not to disallow shared libs when runtime libs are static.
     24832allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
     24833
     24834# Compiler flag to allow reflexive dlopens.
     24835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
     24836
     24837# Compiler flag to generate shared objects directly from archives.
     24838whole_archive_flag_spec=$lt_whole_archive_flag_spec
     24839
     24840# Whether the compiler copes with passing no objects directly.
     24841compiler_needs_object=$lt_compiler_needs_object
     24842
     24843# Create an old-style archive from a shared archive.
     24844old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
     24845
     24846# Create a temporary old-style archive to link instead of a shared archive.
     24847old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
     24848
     24849# Commands used to build a shared archive.
     24850archive_cmds=$lt_archive_cmds
     24851archive_expsym_cmds=$lt_archive_expsym_cmds
     24852
     24853# Commands used to build a loadable module if different from building
     24854# a shared archive.
     24855module_cmds=$lt_module_cmds
     24856module_expsym_cmds=$lt_module_expsym_cmds
     24857
     24858# Whether we are building with GNU ld or not.
     24859with_gnu_ld=$lt_with_gnu_ld
     24860
     24861# Flag that allows shared libraries with undefined symbols to be built.
     24862allow_undefined_flag=$lt_allow_undefined_flag
     24863
     24864# Flag that enforces no undefined symbols.
     24865no_undefined_flag=$lt_no_undefined_flag
     24866
     24867# Flag to hardcode \$libdir into a binary during linking.
     24868# This must work even if \$libdir does not exist
     24869hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
     24870
     24871# Whether we need a single "-rpath" flag with a separated argument.
     24872hardcode_libdir_separator=$lt_hardcode_libdir_separator
     24873
     24874# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
     24875# DIR into the resulting binary.
     24876hardcode_direct=$hardcode_direct
     24877
     24878# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
     24879# DIR into the resulting binary and the resulting library dependency is
     24880# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
     24881# library is relocated.
     24882hardcode_direct_absolute=$hardcode_direct_absolute
     24883
     24884# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
     24885# into the resulting binary.
     24886hardcode_minus_L=$hardcode_minus_L
     24887
     24888# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
     24889# into the resulting binary.
     24890hardcode_shlibpath_var=$hardcode_shlibpath_var
     24891
     24892# Set to "yes" if building a shared library automatically hardcodes DIR
     24893# into the library and all subsequent libraries and executables linked
     24894# against it.
     24895hardcode_automatic=$hardcode_automatic
     24896
     24897# Set to yes if linker adds runtime paths of dependent libraries
     24898# to runtime path list.
     24899inherit_rpath=$inherit_rpath
     24900
     24901# Whether libtool must link a program against all its dependency libraries.
     24902link_all_deplibs=$link_all_deplibs
     24903
     24904# Set to "yes" if exported symbols are required.
     24905always_export_symbols=$always_export_symbols
     24906
     24907# The commands to list exported symbols.
     24908export_symbols_cmds=$lt_export_symbols_cmds
     24909
     24910# Symbols that should not be listed in the preloaded symbols.
     24911exclude_expsyms=$lt_exclude_expsyms
     24912
     24913# Symbols that must always be exported.
     24914include_expsyms=$lt_include_expsyms
     24915
     24916# Commands necessary for linking programs (against libraries) with templates.
     24917prelink_cmds=$lt_prelink_cmds
     24918
     24919# Commands necessary for finishing linking programs.
     24920postlink_cmds=$lt_postlink_cmds
     24921
     24922# Specify filename containing input files.
     24923file_list_spec=$lt_file_list_spec
     24924
     24925# How to hardcode a shared library path into an executable.
     24926hardcode_action=$hardcode_action
     24927
     24928# The directories searched by this compiler when creating a shared library.
     24929compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
     24930
     24931# Dependencies to place before and after the objects being linked to
     24932# create a shared library.
     24933predep_objects=$lt_predep_objects
     24934postdep_objects=$lt_postdep_objects
     24935predeps=$lt_predeps
     24936postdeps=$lt_postdeps
     24937
     24938# The library search path used internally by the compiler when linking
     24939# a shared library.
     24940compiler_lib_search_path=$lt_compiler_lib_search_path
     24941
     24942# ### END LIBTOOL CONFIG
     24943
     24944_LT_EOF
     24945
     24946  case $host_os in
     24947  aix3*)
     24948    cat <<\_LT_EOF >> "$cfgfile"
     24949# AIX sometimes has problems with the GCC collect2 program.  For some
     24950# reason, if we set the COLLECT_NAMES environment variable, the problems
     24951# vanish in a puff of smoke.
     24952if test "X${COLLECT_NAMES+set}" != Xset; then
     24953  COLLECT_NAMES=
     24954  export COLLECT_NAMES
     24955fi
     24956_LT_EOF
     24957    ;;
     24958  esac
     24959
     24960
     24961ltmain="$ac_aux_dir/ltmain.sh"
     24962
     24963
     24964  # We use sed instead of cat because bash on DJGPP gets confused if
     24965  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
     24966  # text mode, it properly converts lines to CR/LF.  This bash problem
     24967  # is reportedly fixed, but why not run on old versions too?
     24968  sed '$q' "$ltmain" >> "$cfgfile" \
     24969     || (rm -f "$cfgfile"; exit 1)
     24970
     24971  if test x"$xsi_shell" = xyes; then
     24972  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
     24973func_dirname ()\
     24974{\
     24975\    case ${1} in\
     24976\      */*) func_dirname_result="${1%/*}${2}" ;;\
     24977\      *  ) func_dirname_result="${3}" ;;\
     24978\    esac\
     24979} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
     24980  && mv -f "$cfgfile.tmp" "$cfgfile" \
     24981    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     24982test 0 -eq $? || _lt_function_replace_fail=:
     24983
     24984
     24985  sed -e '/^func_basename ()$/,/^} # func_basename /c\
     24986func_basename ()\
     24987{\
     24988\    func_basename_result="${1##*/}"\
     24989} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
     24990  && mv -f "$cfgfile.tmp" "$cfgfile" \
     24991    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     24992test 0 -eq $? || _lt_function_replace_fail=:
     24993
     24994
     24995  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
     24996func_dirname_and_basename ()\
     24997{\
     24998\    case ${1} in\
     24999\      */*) func_dirname_result="${1%/*}${2}" ;;\
     25000\      *  ) func_dirname_result="${3}" ;;\
     25001\    esac\
     25002\    func_basename_result="${1##*/}"\
     25003} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
     25004  && mv -f "$cfgfile.tmp" "$cfgfile" \
     25005    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25006test 0 -eq $? || _lt_function_replace_fail=:
     25007
     25008
     25009  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
     25010func_stripname ()\
     25011{\
     25012\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
     25013\    # positional parameters, so assign one to ordinary parameter first.\
     25014\    func_stripname_result=${3}\
     25015\    func_stripname_result=${func_stripname_result#"${1}"}\
     25016\    func_stripname_result=${func_stripname_result%"${2}"}\
     25017} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
     25018  && mv -f "$cfgfile.tmp" "$cfgfile" \
     25019    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25020test 0 -eq $? || _lt_function_replace_fail=:
     25021
     25022
     25023  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
     25024func_split_long_opt ()\
     25025{\
     25026\    func_split_long_opt_name=${1%%=*}\
     25027\    func_split_long_opt_arg=${1#*=}\
     25028} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
     25029  && mv -f "$cfgfile.tmp" "$cfgfile" \
     25030    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25031test 0 -eq $? || _lt_function_replace_fail=:
     25032
     25033
     25034  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
     25035func_split_short_opt ()\
     25036{\
     25037\    func_split_short_opt_arg=${1#??}\
     25038\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
     25039} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
     25040  && mv -f "$cfgfile.tmp" "$cfgfile" \
     25041    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25042test 0 -eq $? || _lt_function_replace_fail=:
     25043
     25044
     25045  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
     25046func_lo2o ()\
     25047{\
     25048\    case ${1} in\
     25049\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
     25050\      *)    func_lo2o_result=${1} ;;\
     25051\    esac\
     25052} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
     25053  && mv -f "$cfgfile.tmp" "$cfgfile" \
     25054    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25055test 0 -eq $? || _lt_function_replace_fail=:
     25056
     25057
     25058  sed -e '/^func_xform ()$/,/^} # func_xform /c\
     25059func_xform ()\
     25060{\
     25061    func_xform_result=${1%.*}.lo\
     25062} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
     25063  && mv -f "$cfgfile.tmp" "$cfgfile" \
     25064    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25065test 0 -eq $? || _lt_function_replace_fail=:
     25066
     25067
     25068  sed -e '/^func_arith ()$/,/^} # func_arith /c\
     25069func_arith ()\
     25070{\
     25071    func_arith_result=$(( $* ))\
     25072} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
     25073  && mv -f "$cfgfile.tmp" "$cfgfile" \
     25074    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25075test 0 -eq $? || _lt_function_replace_fail=:
     25076
     25077
     25078  sed -e '/^func_len ()$/,/^} # func_len /c\
     25079func_len ()\
     25080{\
     25081    func_len_result=${#1}\
     25082} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
     25083  && mv -f "$cfgfile.tmp" "$cfgfile" \
     25084    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25085test 0 -eq $? || _lt_function_replace_fail=:
     25086
     25087fi
     25088
     25089if test x"$lt_shell_append" = xyes; then
     25090  sed -e '/^func_append ()$/,/^} # func_append /c\
     25091func_append ()\
     25092{\
     25093    eval "${1}+=\\${2}"\
     25094} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
     25095  && mv -f "$cfgfile.tmp" "$cfgfile" \
     25096    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25097test 0 -eq $? || _lt_function_replace_fail=:
     25098
     25099
     25100  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
     25101func_append_quoted ()\
     25102{\
     25103\    func_quote_for_eval "${2}"\
     25104\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
     25105} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
     25106  && mv -f "$cfgfile.tmp" "$cfgfile" \
     25107    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25108test 0 -eq $? || _lt_function_replace_fail=:
     25109
     25110
     25111  # Save a `func_append' function call where possible by direct use of '+='
     25112  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
     25113    && mv -f "$cfgfile.tmp" "$cfgfile" \
     25114      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25115  test 0 -eq $? || _lt_function_replace_fail=:
     25116else
     25117  # Save a `func_append' function call even when '+=' is not available
     25118  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
     25119    && mv -f "$cfgfile.tmp" "$cfgfile" \
     25120      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     25121  test 0 -eq $? || _lt_function_replace_fail=:
     25122fi
     25123
     25124if test x"$_lt_function_replace_fail" = x":"; then
     25125  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
     25126$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
     25127fi
     25128
     25129
     25130   mv -f "$cfgfile" "$ofile" ||
     25131    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
     25132  chmod +x "$ofile"
     25133
     25134
     25135    cat <<_LT_EOF >> "$ofile"
     25136
     25137# ### BEGIN LIBTOOL TAG CONFIG: CXX
     25138
     25139# The linker used to build libraries.
     25140LD=$lt_LD_CXX
     25141
     25142# How to create reloadable object files.
     25143reload_flag=$lt_reload_flag_CXX
     25144reload_cmds=$lt_reload_cmds_CXX
     25145
     25146# Commands used to build an old-style archive.
     25147old_archive_cmds=$lt_old_archive_cmds_CXX
     25148
     25149# A language specific compiler.
     25150CC=$lt_compiler_CXX
     25151
     25152# Is the compiler the GNU compiler?
     25153with_gcc=$GCC_CXX
     25154
     25155# Compiler flag to turn off builtin functions.
     25156no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
     25157
     25158# Additional compiler flags for building library objects.
     25159pic_flag=$lt_lt_prog_compiler_pic_CXX
     25160
     25161# How to pass a linker flag through the compiler.
     25162wl=$lt_lt_prog_compiler_wl_CXX
     25163
     25164# Compiler flag to prevent dynamic linking.
     25165link_static_flag=$lt_lt_prog_compiler_static_CXX
     25166
     25167# Does compiler simultaneously support -c and -o options?
     25168compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
     25169
     25170# Whether or not to add -lc for building shared libraries.
     25171build_libtool_need_lc=$archive_cmds_need_lc_CXX
     25172
     25173# Whether or not to disallow shared libs when runtime libs are static.
     25174allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
     25175
     25176# Compiler flag to allow reflexive dlopens.
     25177export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
     25178
     25179# Compiler flag to generate shared objects directly from archives.
     25180whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
     25181
     25182# Whether the compiler copes with passing no objects directly.
     25183compiler_needs_object=$lt_compiler_needs_object_CXX
     25184
     25185# Create an old-style archive from a shared archive.
     25186old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
     25187
     25188# Create a temporary old-style archive to link instead of a shared archive.
     25189old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
     25190
     25191# Commands used to build a shared archive.
     25192archive_cmds=$lt_archive_cmds_CXX
     25193archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
     25194
     25195# Commands used to build a loadable module if different from building
     25196# a shared archive.
     25197module_cmds=$lt_module_cmds_CXX
     25198module_expsym_cmds=$lt_module_expsym_cmds_CXX
     25199
     25200# Whether we are building with GNU ld or not.
     25201with_gnu_ld=$lt_with_gnu_ld_CXX
     25202
     25203# Flag that allows shared libraries with undefined symbols to be built.
     25204allow_undefined_flag=$lt_allow_undefined_flag_CXX
     25205
     25206# Flag that enforces no undefined symbols.
     25207no_undefined_flag=$lt_no_undefined_flag_CXX
     25208
     25209# Flag to hardcode \$libdir into a binary during linking.
     25210# This must work even if \$libdir does not exist
     25211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
     25212
     25213# Whether we need a single "-rpath" flag with a separated argument.
     25214hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
     25215
     25216# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
     25217# DIR into the resulting binary.
     25218hardcode_direct=$hardcode_direct_CXX
     25219
     25220# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
     25221# DIR into the resulting binary and the resulting library dependency is
     25222# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
     25223# library is relocated.
     25224hardcode_direct_absolute=$hardcode_direct_absolute_CXX
     25225
     25226# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
     25227# into the resulting binary.
     25228hardcode_minus_L=$hardcode_minus_L_CXX
     25229
     25230# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
     25231# into the resulting binary.
     25232hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
     25233
     25234# Set to "yes" if building a shared library automatically hardcodes DIR
     25235# into the library and all subsequent libraries and executables linked
     25236# against it.
     25237hardcode_automatic=$hardcode_automatic_CXX
     25238
     25239# Set to yes if linker adds runtime paths of dependent libraries
     25240# to runtime path list.
     25241inherit_rpath=$inherit_rpath_CXX
     25242
     25243# Whether libtool must link a program against all its dependency libraries.
     25244link_all_deplibs=$link_all_deplibs_CXX
     25245
     25246# Set to "yes" if exported symbols are required.
     25247always_export_symbols=$always_export_symbols_CXX
     25248
     25249# The commands to list exported symbols.
     25250export_symbols_cmds=$lt_export_symbols_cmds_CXX
     25251
     25252# Symbols that should not be listed in the preloaded symbols.
     25253exclude_expsyms=$lt_exclude_expsyms_CXX
     25254
     25255# Symbols that must always be exported.
     25256include_expsyms=$lt_include_expsyms_CXX
     25257
     25258# Commands necessary for linking programs (against libraries) with templates.
     25259prelink_cmds=$lt_prelink_cmds_CXX
     25260
     25261# Commands necessary for finishing linking programs.
     25262postlink_cmds=$lt_postlink_cmds_CXX
     25263
     25264# Specify filename containing input files.
     25265file_list_spec=$lt_file_list_spec_CXX
     25266
     25267# How to hardcode a shared library path into an executable.
     25268hardcode_action=$hardcode_action_CXX
     25269
     25270# The directories searched by this compiler when creating a shared library.
     25271compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
     25272
     25273# Dependencies to place before and after the objects being linked to
     25274# create a shared library.
     25275predep_objects=$lt_predep_objects_CXX
     25276postdep_objects=$lt_postdep_objects_CXX
     25277predeps=$lt_predeps_CXX
     25278postdeps=$lt_postdeps_CXX
     25279
     25280# The library search path used internally by the compiler when linking
     25281# a shared library.
     25282compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
     25283
     25284# ### END LIBTOOL TAG CONFIG: CXX
     25285_LT_EOF
     25286
     25287
     25288    cat <<_LT_EOF >> "$ofile"
     25289
     25290# ### BEGIN LIBTOOL TAG CONFIG: F77
     25291
     25292# The linker used to build libraries.
     25293LD=$lt_LD_F77
     25294
     25295# How to create reloadable object files.
     25296reload_flag=$lt_reload_flag_F77
     25297reload_cmds=$lt_reload_cmds_F77
     25298
     25299# Commands used to build an old-style archive.
     25300old_archive_cmds=$lt_old_archive_cmds_F77
     25301
     25302# A language specific compiler.
     25303CC=$lt_compiler_F77
     25304
     25305# Is the compiler the GNU compiler?
     25306with_gcc=$GCC_F77
     25307
     25308# Compiler flag to turn off builtin functions.
     25309no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
     25310
     25311# Additional compiler flags for building library objects.
     25312pic_flag=$lt_lt_prog_compiler_pic_F77
     25313
     25314# How to pass a linker flag through the compiler.
     25315wl=$lt_lt_prog_compiler_wl_F77
     25316
     25317# Compiler flag to prevent dynamic linking.
     25318link_static_flag=$lt_lt_prog_compiler_static_F77
     25319
     25320# Does compiler simultaneously support -c and -o options?
     25321compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
     25322
     25323# Whether or not to add -lc for building shared libraries.
     25324build_libtool_need_lc=$archive_cmds_need_lc_F77
     25325
     25326# Whether or not to disallow shared libs when runtime libs are static.
     25327allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
     25328
     25329# Compiler flag to allow reflexive dlopens.
     25330export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
     25331
     25332# Compiler flag to generate shared objects directly from archives.
     25333whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
     25334
     25335# Whether the compiler copes with passing no objects directly.
     25336compiler_needs_object=$lt_compiler_needs_object_F77
     25337
     25338# Create an old-style archive from a shared archive.
     25339old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
     25340
     25341# Create a temporary old-style archive to link instead of a shared archive.
     25342old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
     25343
     25344# Commands used to build a shared archive.
     25345archive_cmds=$lt_archive_cmds_F77
     25346archive_expsym_cmds=$lt_archive_expsym_cmds_F77
     25347
     25348# Commands used to build a loadable module if different from building
     25349# a shared archive.
     25350module_cmds=$lt_module_cmds_F77
     25351module_expsym_cmds=$lt_module_expsym_cmds_F77
     25352
     25353# Whether we are building with GNU ld or not.
     25354with_gnu_ld=$lt_with_gnu_ld_F77
     25355
     25356# Flag that allows shared libraries with undefined symbols to be built.
     25357allow_undefined_flag=$lt_allow_undefined_flag_F77
     25358
     25359# Flag that enforces no undefined symbols.
     25360no_undefined_flag=$lt_no_undefined_flag_F77
     25361
     25362# Flag to hardcode \$libdir into a binary during linking.
     25363# This must work even if \$libdir does not exist
     25364hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
     25365
     25366# Whether we need a single "-rpath" flag with a separated argument.
     25367hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
     25368
     25369# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
     25370# DIR into the resulting binary.
     25371hardcode_direct=$hardcode_direct_F77
     25372
     25373# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
     25374# DIR into the resulting binary and the resulting library dependency is
     25375# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
     25376# library is relocated.
     25377hardcode_direct_absolute=$hardcode_direct_absolute_F77
     25378
     25379# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
     25380# into the resulting binary.
     25381hardcode_minus_L=$hardcode_minus_L_F77
     25382
     25383# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
     25384# into the resulting binary.
     25385hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
     25386
     25387# Set to "yes" if building a shared library automatically hardcodes DIR
     25388# into the library and all subsequent libraries and executables linked
     25389# against it.
     25390hardcode_automatic=$hardcode_automatic_F77
     25391
     25392# Set to yes if linker adds runtime paths of dependent libraries
     25393# to runtime path list.
     25394inherit_rpath=$inherit_rpath_F77
     25395
     25396# Whether libtool must link a program against all its dependency libraries.
     25397link_all_deplibs=$link_all_deplibs_F77
     25398
     25399# Set to "yes" if exported symbols are required.
     25400always_export_symbols=$always_export_symbols_F77
     25401
     25402# The commands to list exported symbols.
     25403export_symbols_cmds=$lt_export_symbols_cmds_F77
     25404
     25405# Symbols that should not be listed in the preloaded symbols.
     25406exclude_expsyms=$lt_exclude_expsyms_F77
     25407
     25408# Symbols that must always be exported.
     25409include_expsyms=$lt_include_expsyms_F77
     25410
     25411# Commands necessary for linking programs (against libraries) with templates.
     25412prelink_cmds=$lt_prelink_cmds_F77
     25413
     25414# Commands necessary for finishing linking programs.
     25415postlink_cmds=$lt_postlink_cmds_F77
     25416
     25417# Specify filename containing input files.
     25418file_list_spec=$lt_file_list_spec_F77
     25419
     25420# How to hardcode a shared library path into an executable.
     25421hardcode_action=$hardcode_action_F77
     25422
     25423# The directories searched by this compiler when creating a shared library.
     25424compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
     25425
     25426# Dependencies to place before and after the objects being linked to
     25427# create a shared library.
     25428predep_objects=$lt_predep_objects_F77
     25429postdep_objects=$lt_postdep_objects_F77
     25430predeps=$lt_predeps_F77
     25431postdeps=$lt_postdeps_F77
     25432
     25433# The library search path used internally by the compiler when linking
     25434# a shared library.
     25435compiler_lib_search_path=$lt_compiler_lib_search_path_F77
     25436
     25437# ### END LIBTOOL TAG CONFIG: F77
     25438_LT_EOF
     25439
     25440 ;;
     25441
     25442  esac
     25443done # for ac_tag
     25444
     25445
     25446as_fn_exit 0
    3053325447_ACEOF
    30534 
    30535 cat >>$CONFIG_STATUS <<\_ACEOF
    30536 
    30537 { (exit 0); exit 0; }
    30538 _ACEOF
    30539 chmod +x $CONFIG_STATUS
    3054025448ac_clean_files=$ac_clean_files_save
     25449
     25450test $ac_write_fail = 0 ||
     25451  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
    3054125452
    3054225453
     
    3055925470  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    3056025471  # would make configure fail if this is the last instruction.
    30561   $ac_cs_success || { (exit 1); exit 1; }
     25472  $ac_cs_success || as_fn_exit 1
     25473fi
     25474if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
     25475  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
     25476$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
    3056225477fi
    3056325478
  • ThirdParty/mpqc_open/configure.ac

    r860145 r482400e  
    1313AC_CANONICAL_SYSTEM
    1414
    15 AC_DEFINE_UNQUOTED(HOST_ARCH, "$host")
    16 AC_DEFINE_UNQUOTED(TARGET_ARCH, "$target")
     15AC_DEFINE_UNQUOTED(HOST_ARCH, "$host", ["host"])
     16AC_DEFINE_UNQUOTED(TARGET_ARCH, "$target", ["target"])
    1717
    1818define([default_prefix_dash],ifelse(sc_buildid, ,[],[-]))
     
    3030SC_MICRO_VERSION=`echo $SC_MMM_VERSION|sed 's/[0-9]*\.[0-9]*\.\([0-9]*\)/\1/'`
    3131changequote([, ])dnl
    32 AC_DEFINE_UNQUOTED(SC_MAJOR_VERSION,$SC_MAJOR_VERSION)
    33 AC_DEFINE_UNQUOTED(SC_MINOR_VERSION,$SC_MINOR_VERSION)
    34 AC_DEFINE_UNQUOTED(SC_MICRO_VERSION,$SC_MICRO_VERSION)
     32AC_DEFINE_UNQUOTED(SC_MAJOR_VERSION,$SC_MAJOR_VERSION, ["major version number"])
     33AC_DEFINE_UNQUOTED(SC_MINOR_VERSION,$SC_MINOR_VERSION, ["minor version number"])
     34AC_DEFINE_UNQUOTED(SC_MICRO_VERSION,$SC_MICRO_VERSION, ["micro version number"])
    3535
    3636EXCLUDED_DIRS=
     
    158158)
    159159if test $DEFAULT_PARALLEL = mpi; then
    160   AC_DEFINE(DEFAULT_MPI)
     160  AC_DEFINE(DEFAULT_MPI, 1, ["use MPI as default"])
    161161elif test $DEFAULT_PARALLEL = mtmpi; then
    162   AC_DEFINE(DEFAULT_MPI)
    163   AC_DEFINE(DEFAULT_MTMPI)
     162  AC_DEFINE(DEFAULT_MPI, 1, ["use MPI as default"])
     163  AC_DEFINE(DEFAULT_MTMPI, 1, ["use multi-threaded MPI as default"])
    164164elif test $DEFAULT_PARALLEL = armcimpi; then
    165   AC_DEFINE(DEFAULT_MPI)
    166   AC_DEFINE(DEFAULT_ARMCI)
     165  AC_DEFINE(DEFAULT_MPI, 1, ["use MPI as default"])
     166  AC_DEFINE(DEFAULT_ARMCI, 1, ["use ARMCI as default"])
    167167fi
    168168
     
    190190]
    191191)
    192 AC_DEFINE_UNQUOTED(SC_MPI_THREAD_LEVEL,$SC_MPI_THREAD_LEVEL)
     192AC_DEFINE_UNQUOTED(SC_MPI_THREAD_LEVEL,$SC_MPI_THREAD_LEVEL, ["thread level for MPI"])
    193193
    194194AC_ARG_ENABLE(long-long,
     
    237237  ;;
    238238  no)
    239     AC_DEFINE(REF_OPTIMIZE)
     239    AC_DEFINE(REF_OPTIMIZE, 1, ["do not check for reference count overwrites"])
    240240  ;;
    241241  *)
     
    245245],[
    246246  if test $DEBUG = no -o $DEBUG = opt; then
    247     AC_DEFINE(REF_OPTIMIZE)
     247    AC_DEFINE(REF_OPTIMIZE, 1, ["do not check for reference count overwrites"])
    248248  fi
    249249]
     
    330330)
    331331AC_SUBST(BUILDID)
    332 AC_DEFINE_UNQUOTED(SC_BUILDID,"$BUILDID")
     332AC_DEFINE_UNQUOTED(SC_BUILDID,"$BUILDID", ["build identifier"])
    333333
    334334DEFAULT_SC_MEMORY=32000000
     
    337337DEFAULT_SC_MEMORY=$withval
    338338)
    339 AC_DEFINE_UNQUOTED(DEFAULT_SC_MEMORY,$DEFAULT_SC_MEMORY)
     339AC_DEFINE_UNQUOTED(DEFAULT_SC_MEMORY,$DEFAULT_SC_MEMORY, ["default memory allocation"])
    340340
    341341if test "$BUILDID"; then
     
    345345fi
    346346
    347 AC_DEFINE_UNQUOTED(SC_VERSION, "$SC_VERSION")
     347AC_DEFINE_UNQUOTED(SC_VERSION, "$SC_VERSION", ["SC version"])
    348348AC_SUBST(SC_VERSION)
    349349
     
    754754  CXXFLAGS_SAV=$CXXFLAGS
    755755  CXXFLAGS="-mtune=$opt_target_cpu $CXXFLAGS_SAV"
    756   AC_COMPILE_IFELSE([int main(){}],cxx_tuneflag="-mtune",cxx_tuneflag="-mcpu")
     756  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int main(){}])],cxx_tuneflag="-mtune",cxx_tuneflag="-mcpu")
    757757  CXXFLAGS=$CXXFLAGS_SAV
    758758  AC_LANG_RESTORE
     
    764764  CFLAGS_SAV=$CFLAGS
    765765  CFLAGS="-mtune=$opt_target_cpu $CFLAGS_SAV"
    766   AC_COMPILE_IFELSE([int main(){}],cc_tuneflag="-mtune",cc_tuneflag="-mcpu")
     766  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int main(){}])],cc_tuneflag="-mtune",cc_tuneflag="-mcpu")
    767767  CFLAGS=$CFLAGS_SAV
    768768  AC_MSG_RESULT($cc_tuneflag)
     
    892892  f(g);
    893893],[
    894 AC_DEFINE(HAVE_TYPENAME)
     894AC_DEFINE(HAVE_TYPENAME, 1, ["use typename keyword"])
    895895AC_MSG_RESULT("yes")
    896896],
    897897AC_MSG_RESULT("no")
     898AC_DEFINE(typename, [], ["remove usage of absent typename keyword by empty define"])
    898899);
    899900AC_LANG_RESTORE
     
    903904AC_LANG_SAVE
    904905AC_LANG_CPLUSPLUS
    905 AC_TRY_LINK(,[double *restrict x=0;],AC_DEFINE(CXX_RESTRICT))
     906AC_TRY_LINK(,[double *restrict x=0;],
     907        AC_DEFINE(CXX_RESTRICT, 1, ["c++ restricted extensions"])
     908        AC_DEFINE(restrictxx, [restrict], ["convert keyword for c++ restricted extensions"]),
     909
     910        AC_DEFINE(restrictxx, [], ["convert keyword to none for c++ restricted extensions"]),
     911)
    906912AC_LANG_RESTORE
    907913
     
    933939  o << endl;
    934940],[
    935 AC_DEFINE(USING_NAMESPACE_STD)
     941AC_DEFINE(USING_NAMESPACE_STD, 1, ["using namespace std"])
    936942NAMESPACE_STD=std::
    937943AC_MSG_RESULT("yes")
     
    10621068fi])
    10631069if test $sc_cv_c_bigendian = yes; then
    1064   AC_DEFINE(WORDS_BIGENDIAN)
     1070  AC_DEFINE(WORDS_BIGENDIAN, 1, ["use big endian encoding"])
    10651071fi
    10661072])
     
    11131119fi
    11141120if test X$HAVE_PTHREAD = Xyes; then
    1115   AC_DEFINE(HAVE_PTHREAD)
     1121  AC_DEFINE(HAVE_PTHREAD, 1, ["use pthreads"])
    11161122  EXTRADEFINES="-D_REENTRANT $EXTRADEFINES"
    11171123  AC_CHECK_FUNC(pthread_attr_getstacksize)
     
    11381144    HAVE_PERF=yes
    11391145    LIBS="-lperf $LIBS"
    1140     AC_DEFINE(HAVE_PERF)
     1146    AC_DEFINE(HAVE_PERF, 1, ["use perf"])
    11411147    ])
    11421148  ]
     
    11471153AC_CHECK_FUNC(backtrace_symbols_fd, HAVE_BACKTRACE_SYMBOLS_FD_FUNC=1)
    11481154if test -n "$HAVE_EXECINFO_H_INC" -a -n "$HAVE_BACKTRACE_FUNC"  -a -n "$HAVE_BACKTRACE_SYMBOLS_FD_FUNC"; then
    1149   AC_DEFINE(HAVE_BACKTRACE)
     1155  AC_DEFINE(HAVE_BACKTRACE, 1, ["use backtrace"])
    11501156fi
    11511157
     
    11701176  fi
    11711177  if test X$HAVE_MPI = Xyes; then
    1172     AC_DEFINE(HAVE_MPI)
     1178    AC_DEFINE(HAVE_MPI, 1, ["have MPI"])
    11731179    AC_CHECK_FUNC(MPI_File_open,
    1174                  [HAVE_MPIIO=yes;AC_DEFINE(HAVE_MPIIO)])
     1180                 [HAVE_MPIIO=yes;AC_DEFINE(HAVE_MPIIO, 1, ["have MPI IO extensions"])])
    11751181    AC_CHECK_FUNC(MPI_Init_thread,
    1176                  [AC_DEFINE(HAVE_MPI_INIT_THREAD)])
     1182                 [AC_DEFINE(HAVE_MPI_INIT_THREAD, 1, ["have MPI init thread"])])
    11771183    HAVE_MPIPP=no;
    11781184    AC_CHECK_LIB(mpi++,MPI_Abort,[HAVE_MPIPP=yes;LIBS="-lmpi++ $LIBS"])
     
    11801186      AC_CHECK_LIB(pmpich++,MPI_Abort,[HAVE_MPIPP=yes;LIBS="-lpmpich++ $LIBS"])
    11811187    fi
    1182     AC_DEFINE(HAVE_MPIPP)
     1188    AC_DEFINE(HAVE_MPIPP, 1, ["have MPI PP"])
    11831189  fi
    11841190  AC_LANG_RESTORE
     
    11881194  AC_MSG_ERROR([--enable-always-use-mpi is set but MPI is not available])
    11891195elif test $ALWAYS_USE_MPI = yes; then
    1190   AC_DEFINE(ALWAYS_USE_MPI)
     1196  AC_DEFINE(ALWAYS_USE_MPI, 1, ["always use MPI"])
    11911197fi
    11921198
     
    12021208
    12031209  if test X$HAVE_ARMCI = Xyes; then
    1204     AC_DEFINE(HAVE_ARMCI)
     1210    AC_DEFINE(HAVE_ARMCI, 1, ["use ARMCI"])
    12051211  fi
    12061212
     
    12471253AC_LANG_CPLUSPLUS
    12481254AC_MSG_CHECKING(isnan and iostream)
    1249 AC_LINK_IFELSE([
     1255AC_LINK_IFELSE([AC_LANG_PROGRAM([
    12501256  #include <iostream>
    12511257  #include <math.h>
    12521258  int main(int,char**) { isnan(1.0); return 0; }
    1253   ],
    1254   AC_DEFINE(HAVE_ISNAN)
     1259  ])],
     1260  AC_DEFINE(HAVE_ISNAN,1, ["isnan available"])
    12551261  AC_MSG_RESULT(yes),
    12561262  AC_MSG_RESULT(no)
     
    12701276fchdir(0);
    12711277],[HAVE_FCHDIR=yes
    1272 AC_DEFINE(HAVE_FCHDIR)
     1278AC_DEFINE(HAVE_FCHDIR, 1, ["have fchdir"])
    12731279AC_MSG_RESULT(yes)],[
    12741280AC_MSG_RESULT(no)
     
    12861292$NAMESPACE_STD ios::fmtflags flags;
    12871293],[HAVE_IOS_FMTFLAGS=yes
    1288 AC_DEFINE(HAVE_IOS_FMTFLAGS)
     1294AC_DEFINE(HAVE_IOS_FMTFLAGS, 1, ["have iostream format flags"])
    12891295AC_MSG_RESULT(yes)],[
    12901296AC_MSG_RESULT(no)
     
    13021308AC_TRY_COMPILE([],[
    13031309long long i;
    1304 ],[AC_DEFINE(HAVE_LONG_LONG)
     1310],[AC_DEFINE(HAVE_LONG_LONG, 1, ["have long long"])
    13051311AC_MSG_RESULT(yes)],[
    13061312AC_MSG_RESULT(no)
     
    13181324$NAMESPACE_STD streambuf *s=0; s->sgetn(c,0);
    13191325],[HAVE_SGETN=yes
    1320 AC_DEFINE(HAVE_SGETN)
     1326AC_DEFINE(HAVE_SGETN, 1, ["have sgetn"])
    13211327AC_MSG_RESULT(yes)],[
    13221328AC_MSG_RESULT(no)
     
    13351341                                        $NAMESPACE_STD ios::out);
    13361342],[HAVE_PUBSEEKOFF=yes
    1337 AC_DEFINE(HAVE_PUBSEEKOFF)
     1343AC_DEFINE(HAVE_PUBSEEKOFF, 1, ["have pubseekoff"])
    13381344AC_MSG_RESULT(yes)],[
    13391345AC_MSG_RESULT(no)
     
    13521358                                     $NAMESPACE_STD ios::out);
    13531359],[HAVE_SEEKOFF=yes
    1354 AC_DEFINE(HAVE_SEEKOFF)
     1360AC_DEFINE(HAVE_SEEKOFF, 1, ["have seekoff"])
    13551361AC_MSG_RESULT(yes)],[
    13561362AC_MSG_RESULT(no)
     
    13751381  signal(SIGINT, (signal_handler)handler);
    13761382],
    1377 AC_DEFINE(SIGHASELLIP) AC_MSG_RESULT(yes),
     1383AC_DEFINE(SIGHASELLIP, 1, ["signal handler needs ellipsis"]) AC_MSG_RESULT(yes),
    13781384AC_MSG_RESULT(no))
    13791385AC_LANG_RESTORE
     
    13981404          X$ac_cv_header_sys_shm_h = Xyes; then
    13991405    HAVE_SYSV_IPC=yes
    1400     AC_DEFINE(HAVE_SYSV_IPC)
     1406    AC_DEFINE(HAVE_SYSV_IPC, 1, ["use SYSVIPC"])
    14011407  else
    14021408    HAVE_SYSV_IPC=no
     
    14221428case $target in
    14231429  *-sgi-irix*)
    1424     AC_DEFINE(SEMCTL_REQUIRES_SEMUN) AC_MSG_RESULT(sgi-irix -- yes)
     1430    AC_DEFINE(SEMCTL_REQUIRES_SEMUN, 1, ["semctl requires semun"]) AC_MSG_RESULT(sgi-irix -- yes)
    14251431  ;;
    14261432  *)
     
    14291435esac
    14301436],
    1431 AC_DEFINE(SEMCTL_REQUIRES_SEMUN) AC_MSG_RESULT(yes))
    1432 AC_LANG_RESTORE
     1437AC_DEFINE(SEMCTL_REQUIRES_SEMUN, 1, ["semctl requires semun"]) AC_MSG_RESULT(yes))
     1438AC_LANG_RESTORE
     1439AC_DEFINE(SHMTYPE, [char *], ["type to use in shared memory"])
    14331440
    14341441dnl ----------- See if Fortran works --------------
     
    15421549LIBS="$LIBSSAV"
    15431550if test $HAVE_SCALABLE_BLAS = yes; then
    1544   AC_DEFINE(HAVE_SCALABLE_BLAS)
     1551  AC_DEFINE(HAVE_SCALABLE_BLAS, 1, ["have scalabale blas"])
    15451552fi
    15461553
     
    15611568  exit(0);
    15621569],[
    1563   AC_DEFINE(HAVE_NIAMA)
     1570  AC_DEFINE(HAVE_NIAMA, 1, ["have NIAMA"])
    15641571],[
    15651572  LIBS="$LIBSSAV"
     
    15771584  AC_CHECK_LIB(int,init_libint_base,
    15781585    HAVE_LIBINT=yes
    1579     AC_DEFINE(HAVE_LIBINT)
     1586    AC_DEFINE(HAVE_LIBINT, 1, ["have libint"])
    15801587    AC_SUBST(HAVE_LIBINT)
    15811588    LIBS="-lint $LIBS"
     
    15911598  AC_CHECK_LIB(r12,init_libr12_base,
    15921599    HAVE_LIBR12=yes
    1593     AC_DEFINE(HAVE_LIBR12)
     1600    AC_DEFINE(HAVE_LIBR12, 1, ["have libr12"])
    15941601    AC_SUBST(HAVE_LIBR12)
    15951602    LIBS="-lr12 $LIBS"
     
    16051612  AC_CHECK_LIB(deriv,init_libderiv_base,
    16061613    HAVE_LIBDERIV=yes
    1607     AC_DEFINE(HAVE_LIBDERIV)
     1614    AC_DEFINE(HAVE_LIBDERIV, 1, ["have libderiv"])
    16081615    AC_SUBST(HAVE_LIBDERIV)
    16091616    LIBS="-lderiv $LIBS"
     
    16811688    CXXFLAGS="$CXXFLAGS -fno-implicit-templates"
    16821689    EXPLICIT_TEMPLATE_INSTANTIATION=yes
    1683     AC_DEFINE(EXPLICIT_TEMPLATE_INSTANTIATION)
     1690    AC_DEFINE(EXPLICIT_TEMPLATE_INSTANTIATION, 1, ["template instantiation flags"])
    16841691    ;;
    16851692  sunexpl)
    16861693    CXXFLAGS="$CXXFLAGS -instances=explicit"
    1687     AC_DEFINE(EXPLICIT_TEMPLATE_INSTANTIATION)
     1694    AC_DEFINE(EXPLICIT_TEMPLATE_INSTANTIATION, 1, ["template instantiation flags"])
    16881695    ;;
    16891696  ptused)
     
    18011808
    18021809  AC_CHECK_HEADER(sidl.h,
    1803     AC_DEFINE(HAVE_SIDL_HEADERS),
     1810    AC_DEFINE(HAVE_SIDL_HEADERS, 1, ["have sidl"]),
    18041811    AC_MSG_ERROR([problem with babel headers]) )
    18051812  AC_CHECK_HEADER(gov_cca_IOR.h,
    1806     AC_DEFINE(HAVE_CCA_SPEC_BABEL_HEADERS),
     1813    AC_DEFINE(HAVE_CCA_SPEC_BABEL_HEADERS, 1, ["have CCA spec babel headers"]),
    18071814    AC_MSG_ERROR([problem with cca-spec-babel headers]) )
    18081815  AC_CHECK_HEADER(Chemistry_QC_Model_IOR.h,
    1809     AC_DEFINE(HAVE_CCA_CHEM_HEADERS),
     1816    AC_DEFINE(HAVE_CCA_CHEM_HEADERS, 1, ["have CCA chem headers"]),
    18101817    AC_MSG_ERROR([problem with cca-chem-generic headers]) )
    18111818
     
    18221829
    18231830if test "$enableproduction" = "no"; then
    1824 AC_DEFINE_DIR(SRC_SCLIBDIR, srcdir/lib)
    1825 fi
    1826 AC_DEFINE_DIR(INSTALLED_SCLIBDIR, prefix/lib)
    1827 AC_DEFINE_DIR(SCDATADIR, scdatadir)
     1831AC_DEFINE_DIR(SRC_SCLIBDIR, srcdir/lib, ["source SC libdir"])
     1832fi
     1833AC_DEFINE_DIR(INSTALLED_SCLIBDIR, prefix/lib, ["install SC libdir"])
     1834AC_DEFINE_DIR(SCDATADIR, scdatadir, ["SC data dir"])
    18281835
    18291836dnl --------- Create the stub Makefiles. ---------
  • ThirdParty/mpqc_open/src/bin/mpqc/Makefile

    r860145 r482400e  
    44  SRCDIR=$(shell pwd)
    55endif
     6BUILDDIR=$(shell pwd)
    67
    78LOCALMAKEFILE_OPTIONAL = yes
     
    3132
    3233DEFINES += \
    33         -DHAVE_JOBMARKET -I/home/heber/packages/JobMarket-1.0.0/include -I/home/heber/workspace_C/JobMarket/build64 -I/home/heber/packages/boost-1.47/include/boost-1_47\
    34         -DHAVE_MPQCDATA -I/home/heber/workspace_C/molecuilder/build64/include/MoleCuilder
     34        -DHAVE_JOBMARKET -I$(SRCDIR)/$(TOPDIR)/../JobMarket/src -I$(TOPDIR)/../JobMarket -I$(SRCDIR)/$(TOPDIR)/../../src -I$(SRCDIR)/$(TOPDIR)/../LinearAlgebra/src $(BOOST_SYSTEM_CFLAGS)\
     35        -DHAVE_MPQCDATA -I$(TOPDIR)/../../src
    3536
    3637XDEF =
    37 XLIBS = -L/home/heber/packages/JobMarket-1.0.0/lib -lJobMarketPoolWorker -Wl,-rpath,/home/heber/packages/JobMarket-1.0.0/lib -Wl,-rpath,/home/heber/packages/boost-1.47/lib -L/home/heber/workspace_C/molecuilder/build64/lib/ -lMolecuilderJobs -Wl,-rpath,/home/heber/workspace_C/molecuilder/build64/lib
     38XLIBS = -L$(TOPDIR)/../JobMarket/src/JobMarket/.libs -Wl,-rpath,$(BUILDDIR)/$(TOPDIR)/../JobMarket/src/JobMarket/.libs -lJobMarketPoolWorker -lJobMarket -L$(TOPDIR)/../../src/.libs -Wl,-rpath,$(BUILDDIR)/$(TOPDIR)/../../src/.libs -lMolecuilderJobs -lMolecuilderFragmentationSummation $(BOOST_SYSTEM_LDFLAGS) -lboost_serialization
    3839ifeq ($(HAVE_SC_SRC_LIB_CHEMISTRY_QC_PSI),yes)
    3940XDEF += -DHAVE_CHEMISTRY_QC_PSI
  • ThirdParty/mpqc_open/src/lib/scconfig.h.in

    r860145 r482400e  
    1 
    2 #ifndef _CONFIG_H
    3 #define _CONFIG_H
    4 
    5 #ifndef __cplusplus
    6 
    7 /* Define to empty if the keyword does not work.  */
     1/* src/lib/scconfig.h.in.  Generated from configure.ac by autoheader.  */
     2
     3/* "always use MPI" */
     4#undef ALWAYS_USE_MPI
     5
     6/* "c++ restricted extensions" */
     7#undef CXX_RESTRICT
     8
     9/* "use ARMCI as default" */
     10#undef DEFAULT_ARMCI
     11
     12/* "use MPI as default" */
     13#undef DEFAULT_MPI
     14
     15/* "use multi-threaded MPI as default" */
     16#undef DEFAULT_MTMPI
     17
     18/* "default memory allocation" */
     19#undef DEFAULT_SC_MEMORY
     20
     21/* "template instantiation flags" */
     22#undef EXPLICIT_TEMPLATE_INSTANTIATION
     23
     24/* "use ARMCI" */
     25#undef HAVE_ARMCI
     26
     27/* Define to 1 if you have the <asm/fpu.h> header file. */
     28#undef HAVE_ASM_FPU_H
     29
     30/* "use backtrace" */
     31#undef HAVE_BACKTRACE
     32
     33/* "have CCA chem headers" */
     34#undef HAVE_CCA_CHEM_HEADERS
     35
     36/* "have CCA spec babel headers" */
     37#undef HAVE_CCA_SPEC_BABEL_HEADERS
     38
     39/* Define to 1 if you have the `ctime' function. */
     40#undef HAVE_CTIME
     41
     42/* Define to 1 if you have the <dlfcn.h> header file. */
     43#undef HAVE_DLFCN_H
     44
     45/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
     46#undef HAVE_DOPRNT
     47
     48/* Define to 1 if you have the `drand48' function. */
     49#undef HAVE_DRAND48
     50
     51/* Define to 1 if you have the <endian.h> header file. */
     52#undef HAVE_ENDIAN_H
     53
     54/* "have fchdir" */
     55#undef HAVE_FCHDIR
     56
     57/* Define to 1 if you have the <fcntl.h> header file. */
     58#undef HAVE_FCNTL_H
     59
     60/* Define to 1 if you have the `fedisableexcept' function. */
     61#undef HAVE_FEDISABLEEXCEPT
     62
     63/* Define to 1 if you have the `feenableexcept' function. */
     64#undef HAVE_FEENABLEEXCEPT
     65
     66/* Define to 1 if you have the <fenv.h> header file. */
     67#undef HAVE_FENV_H
     68
     69/* Define to 1 if you have the <fp.h> header file. */
     70#undef HAVE_FP_H
     71
     72/* Define to 1 if you have the `geteuid' function. */
     73#undef HAVE_GETEUID
     74
     75/* Define to 1 if you have the `gethostname' function. */
     76#undef HAVE_GETHOSTNAME
     77
     78/* Define to 1 if you have the `getpwuid' function. */
     79#undef HAVE_GETPWUID
     80
     81/* Define to 1 if you have the <inttypes.h> header file. */
     82#undef HAVE_INTTYPES_H
     83
     84/* Define to 1 if you have the <iostream> header file. */
     85#undef HAVE_IOSTREAM
     86
     87/* "have iostream format flags" */
     88#undef HAVE_IOS_FMTFLAGS
     89
     90/* "isnan available" */
     91#undef HAVE_ISNAN
     92
     93/* "have libderiv" */
     94#undef HAVE_LIBDERIV
     95
     96/* Define to 1 if you have the <libderiv/libderiv.h> header file. */
     97#undef HAVE_LIBDERIV_LIBDERIV_H
     98
     99/* Define to 1 if you have the `dl' library (-ldl). */
     100#undef HAVE_LIBDL
     101
     102/* Define to 1 if you have the `fl' library (-lfl). */
     103#undef HAVE_LIBFL
     104
     105/* "have libint" */
     106#undef HAVE_LIBINT
     107
     108/* Define to 1 if you have the <libint/libint.h> header file. */
     109#undef HAVE_LIBINT_LIBINT_H
     110
     111/* Define to 1 if you have the `m' library (-lm). */
     112#undef HAVE_LIBM
     113
     114/* "have libr12" */
     115#undef HAVE_LIBR12
     116
     117/* Define to 1 if you have the <libr12/libr12.h> header file. */
     118#undef HAVE_LIBR12_LIBR12_H
     119
     120/* Define to 1 if you have the <limits.h> header file. */
     121#undef HAVE_LIMITS_H
     122
     123/* "have long long" */
     124#undef HAVE_LONG_LONG
     125
     126/* Define to 1 if you have the <machine/endian.h> header file. */
     127#undef HAVE_MACHINE_ENDIAN_H
     128
     129/* Define to 1 if you have the <machine/fpu.h> header file. */
     130#undef HAVE_MACHINE_FPU_H
     131
     132/* Define to 1 if you have the <memory.h> header file. */
     133#undef HAVE_MEMORY_H
     134
     135/* "have MPI" */
     136#undef HAVE_MPI
     137
     138/* "have MPI IO extensions" */
     139#undef HAVE_MPIIO
     140
     141/* "have MPI PP" */
     142#undef HAVE_MPIPP
     143
     144/* "have MPI init thread" */
     145#undef HAVE_MPI_INIT_THREAD
     146
     147/* "have NIAMA" */
     148#undef HAVE_NIAMA
     149
     150/* "use perf" */
     151#undef HAVE_PERF
     152
     153/* "use pthreads" */
     154#undef HAVE_PTHREAD
     155
     156/* "have pubseekoff" */
     157#undef HAVE_PUBSEEKOFF
     158
     159/* Define to 1 if you have the <pwd.h> header file. */
     160#undef HAVE_PWD_H
     161
     162/* "have scalabale blas" */
     163#undef HAVE_SCALABLE_BLAS
     164
     165/* "have seekoff" */
     166#undef HAVE_SEEKOFF
     167
     168/* Define to 1 if you have the `semget' function. */
     169#undef HAVE_SEMGET
     170
     171/* Define to 1 if you have the `setenv' function. */
     172#undef HAVE_SETENV
     173
     174/* Define to 1 if you have the `setrlimit' function. */
     175#undef HAVE_SETRLIMIT
     176
     177/* "have sgetn" */
     178#undef HAVE_SGETN
     179
     180/* Define to 1 if you have the `shmget' function. */
     181#undef HAVE_SHMGET
     182
     183/* "have sidl" */
     184#undef HAVE_SIDL_HEADERS
     185
     186/* Define to 1 if you have the `sigfillset' function. */
     187#undef HAVE_SIGFILLSET
     188
     189/* Define to 1 if you have the `signal' function. */
     190#undef HAVE_SIGNAL
     191
     192/* Define to 1 if you have the <sstream> header file. */
     193#undef HAVE_SSTREAM
     194
     195/* Define to 1 if you have the <stdint.h> header file. */
     196#undef HAVE_STDINT_H
     197
     198/* Define to 1 if you have the <stdlib.h> header file. */
     199#undef HAVE_STDLIB_H
     200
     201/* Define to 1 if you have the `strerror' function. */
     202#undef HAVE_STRERROR
     203
     204/* Define to 1 if you have the <strings.h> header file. */
     205#undef HAVE_STRINGS_H
     206
     207/* Define to 1 if you have the <string.h> header file. */
     208#undef HAVE_STRING_H
     209
     210/* Define to 1 if you have the `system' function. */
     211#undef HAVE_SYSTEM
     212
     213/* "use SYSVIPC" */
     214#undef HAVE_SYSV_IPC
     215
     216/* Define to 1 if you have the <sys/endian.h> header file. */
     217#undef HAVE_SYS_ENDIAN_H
     218
     219/* Define to 1 if you have the <sys/ioctl.h> header file. */
     220#undef HAVE_SYS_IOCTL_H
     221
     222/* Define to 1 if you have the <sys/ipc.h> header file. */
     223#undef HAVE_SYS_IPC_H
     224
     225/* Define to 1 if you have the <sys/machine.h> header file. */
     226#undef HAVE_SYS_MACHINE_H
     227
     228/* Define to 1 if you have the <sys/resource.h> header file. */
     229#undef HAVE_SYS_RESOURCE_H
     230
     231/* Define to 1 if you have the <sys/sem.h> header file. */
     232#undef HAVE_SYS_SEM_H
     233
     234/* Define to 1 if you have the <sys/shm.h> header file. */
     235#undef HAVE_SYS_SHM_H
     236
     237/* Define to 1 if you have the <sys/stat.h> header file. */
     238#undef HAVE_SYS_STAT_H
     239
     240/* Define to 1 if you have the <sys/times.h> header file. */
     241#undef HAVE_SYS_TIMES_H
     242
     243/* Define to 1 if you have the <sys/time.h> header file. */
     244#undef HAVE_SYS_TIME_H
     245
     246/* Define to 1 if you have the <sys/types.h> header file. */
     247#undef HAVE_SYS_TYPES_H
     248
     249/* Define to 1 if you have the <termios.h> header file. */
     250#undef HAVE_TERMIOS_H
     251
     252/* Define to 1 if you have the `time' function. */
     253#undef HAVE_TIME
     254
     255/* Define to 1 if you have the <time.h> header file. */
     256#undef HAVE_TIME_H
     257
     258/* "use typename keyword" */
     259#undef HAVE_TYPENAME
     260
     261/* Define to 1 if you have the <unistd.h> header file. */
     262#undef HAVE_UNISTD_H
     263
     264/* Define to 1 if you have the `vprintf' function. */
     265#undef HAVE_VPRINTF
     266
     267/* "host" */
     268#undef HOST_ARCH
     269
     270/* "install SC libdir" */
     271#undef INSTALLED_SCLIBDIR
     272
     273/* Define to the sub-directory in which libtool stores uninstalled libraries.
     274   */
     275#undef LT_OBJDIR
     276
     277/* Define to the address where bug reports for this package should be sent. */
     278#undef PACKAGE_BUGREPORT
     279
     280/* Define to the full name of this package. */
     281#undef PACKAGE_NAME
     282
     283/* Define to the full name and version of this package. */
     284#undef PACKAGE_STRING
     285
     286/* Define to the one symbol short name of this package. */
     287#undef PACKAGE_TARNAME
     288
     289/* Define to the home page for this package. */
     290#undef PACKAGE_URL
     291
     292/* Define to the version of this package. */
     293#undef PACKAGE_VERSION
     294
     295/* "do not check for reference count overwrites" */
     296#undef REF_OPTIMIZE
     297
     298/* Define as the return type of signal handlers (`int' or `void'). */
     299#undef RETSIGTYPE
     300
     301/* "SC data dir" */
     302#undef SCDATADIR
     303
     304/* "build identifier" */
     305#undef SC_BUILDID
     306
     307/* "major version number" */
     308#undef SC_MAJOR_VERSION
     309
     310/* "micro version number" */
     311#undef SC_MICRO_VERSION
     312
     313/* "minor version number" */
     314#undef SC_MINOR_VERSION
     315
     316/* "thread level for MPI" */
     317#undef SC_MPI_THREAD_LEVEL
     318
     319/* "SC version" */
     320#undef SC_VERSION
     321
     322/* "semctl requires semun" */
     323#undef SEMCTL_REQUIRES_SEMUN
     324
     325/* "type to use in shared memory" */
     326#undef SHMTYPE
     327
     328/* "signal handler needs ellipsis" */
     329#undef SIGHASELLIP
     330
     331/* "source SC libdir" */
     332#undef SRC_SCLIBDIR
     333
     334/* Define to 1 if you have the ANSI C header files. */
     335#undef STDC_HEADERS
     336
     337/* "target" */
     338#undef TARGET_ARCH
     339
     340/* Define to 1 if your <sys/time.h> declares `struct tm'. */
     341#undef TM_IN_SYS_TIME
     342
     343/* "using namespace std" */
     344#undef USING_NAMESPACE_STD
     345
     346/* "use big endian encoding" */
     347#undef WORDS_BIGENDIAN
     348
     349/* Define to empty if `const' does not conform to ANSI C. */
    8350#undef const
    9351
    10 #endif /* __cplusplus */
    11 
    12 #ifdef __cplusplus
    13 
    14 /* Define if the C++ restrict keyword extension exists.  */
    15 #undef CXX_RESTRICT
    16 
    17 #ifdef CXX_RESTRICT
    18 #define restrictxx restrict
    19 #else
    20 #define restrictxx
    21 #endif
    22 
    23 #endif
    24 
    25 /* Define if you want to optimize the reference counting code.  */
    26 #undef REF_OPTIMIZE
    27 
    28 /* Define if you have <stdint.h>.  */
    29 #undef HAVE_STDINT_H
    30 
    31 /* Define if you have <sys/stat.h>.  */
    32 #undef HAVE_SYS_STAT_H
    33 
    34 /* Define if you have <sys/types.h>.  */
    35 #undef HAVE_SYS_TYPES_H
    36 
    37 /* Define if you have <pwd.h>.  */
    38 #undef HAVE_PWD_H
    39 
    40 /* Define if you have <termios.h>.  */
    41 #undef HAVE_TERMIOS_H
    42 
    43 /* Define if you have <sys/times.h>.  */
    44 #undef HAVE_SYS_TIMES_H
    45 
    46 /* Define if you have <time.h>.  */
    47 #undef HAVE_TIME_H
    48 
    49 /* Define if you have <machine/fpu.h>.  */
    50 #undef HAVE_MACHINE_FPU_H
    51 
    52 /* Define if you have <asm/fpu.h>.  */
    53 #undef HAVE_ASM_FPU_H
    54 
    55 /* Define if you have <sys/resource.h>.  */
    56 #undef HAVE_SYS_RESOURCE_H
    57 
    58 /* Define if <sstream> is present.  */
    59 #undef HAVE_SSTREAM
    60 
    61 /* Define if you have the vprintf function.  */
    62 #undef HAVE_VPRINTF
    63 
    64 /* Define if you have the ios::fmtflags.  */
    65 #undef HAVE_IOS_FMTFLAGS
    66 
    67 /* Define if you have the long long type extension.  */
    68 #ifndef HAVE_LONG_LONG
    69 #undef HAVE_LONG_LONG
    70 #endif
    71 
    72 /* Define if you have streambuf::pubseekoff (you should).  */
    73 #undef HAVE_PUBSEEKOFF
    74 
    75 /* Define if you have streambuf::sgetn (you should).  */
    76 #undef HAVE_SGETN
    77 
    78 /* Define if you have a public streambuf::seekoff.  */
    79 #undef HAVE_SEEKOFF
    80 
    81 /* Define as the return type of signal handlers (int or void).  */
    82 #undef RETSIGTYPE
    83 
    84 /* Define if signal handlers have an ellipsis argument in C++.  */
    85 #undef SIGHASELLIP
    86 
    87 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
     352/* "convert keyword to none for c++ restricted extensions" */
     353#undef restrictxx
     354
     355/* Define to `unsigned int' if <sys/types.h> does not define. */
    88356#undef size_t
    89357
    90 /* Define if you have the ANSI C header files.  */
    91 #undef STDC_HEADERS
    92 
    93 /* Define if your <sys/time.h> declares struct tm.  */
    94 #undef TM_IN_SYS_TIME
    95 
    96 /* Define if you have the strerror function.  */
    97 #undef HAVE_STRERROR
    98 
    99 /* Define if you have the setenv function.  */
    100 #undef HAVE_SETENV
    101 
    102 /* Define if isnan is available from C++.  */
    103 #undef HAVE_ISNAN
    104 
    105 /* Define if you have the sigfillset function (and company).  */
    106 #undef HAVE_SIGFILLSET
    107 
    108 /* Define if you have the signal function.  */
    109 #undef HAVE_SIGNAL
    110 
    111 /* Define if you have the system function.  */
    112 #undef HAVE_SYSTEM
    113 
    114 /* Define if you have the drand48 function.  */
    115 #undef HAVE_DRAND48
    116 
    117 /* Define if you have the isnan function.  */
    118 #undef HAVE_ISNAN
    119 
    120 /* Define if you have the fchdir function.  */
    121 #undef HAVE_FCHDIR
    122 
    123 /* Define if you have the getpwuid function.  */
    124 #undef HAVE_GETPWUID
    125 
    126 /* Define if you have the geteuid function.  */
    127 #undef HAVE_GETEUID
    128 
    129 /* Define if you have the gethostname function.  */
    130 #undef HAVE_GETHOSTNAME
    131 
    132 /* Define if you have the time function.  */
    133 #undef HAVE_TIME
    134 
    135 /* Define if you have the ctime function.  */
    136 #undef HAVE_CTIME
    137 
    138 /* Define if you have the C99 <fenv.h>.  */
    139 #undef HAVE_FENV_H
    140 
    141 /* Define if you have the glibc feenableexcept extension.  */
    142 #undef HAVE_FEENABLEEXCEPT
    143 
    144 /* Define if you have the glibc fedisableexcept extension.  */
    145 #undef HAVE_FEDISABLEEXCEPT
    146 
    147 /* Define if you have the setrlimit function.  */
    148 #undef HAVE_SETRLIMIT
    149 
    150 /* Define if you have functioning SYSV IPC.  */
    151 #undef HAVE_SYSV_IPC
    152 
    153 /* Define if semctl must have a semun as the fourth argument.  */
    154 #undef SEMCTL_REQUIRES_SEMUN
    155 
    156 /* Define to the type used for shared memory.  */
    157 /* #undef SHMTYPE */
    158 
    159 #ifndef SHMTYPE
    160 #define SHMTYPE char*
    161 #endif
    162 
    163 /* Define if you have the <fcntl.h> header file.  */
    164 #undef HAVE_FCNTL_H
    165 
    166 /* Define if you have the <limits.h> header file.  */
    167 #undef HAVE_LIMITS_H
    168 
    169 /* Define if you have the <sys/ioctl.h> header file.  */
    170 #undef HAVE_SYS_IOCTL_H
    171 
    172 /* Define if you have the <sys/time.h> header file.  */
    173 #undef HAVE_SYS_TIME_H
    174 
    175 /* Define if you have the <unistd.h> header file.  */
    176 #undef HAVE_UNISTD_H
    177 
    178 /* Define if you have the <pthread.h> header file and the pthread library.  */
    179 #undef HAVE_PTHREAD
    180 
    181 /* Define if you can have the pthread_attr_setstacksize function.  */
    182 #undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
    183 
    184 /* Define if you can have the pthread_attr_getstacksize function.  */
    185 #undef HAVE_PTHREAD_ATTR_GETSTACKSIZE
    186 
    187 /* Define if you can have the pthread_attr_getscope function.  */
    188 #undef HAVE_PTHREAD_ATTR_GETSCOPE
    189 
    190 /* Define if you can have the pthread_attr_setscope function.  */
    191 #undef HAVE_PTHREAD_ATTR_SETSCOPE
    192 
    193 /* Define if you can have the pthread_attr_getinheritsched function.  */
    194 #undef HAVE_PTHREAD_ATTR_GETINHERITSCHED
    195 
    196 /* Define if you can have the pthread_attr_setinheritsched function.  */
    197 #undef HAVE_PTHREAD_ATTR_SETINHERITSCHED
    198 
    199 /* Define if you can have the pthread_attr_setschedpolicy function.  */
    200 #undef HAVE_PTHREAD_ATTR_SETSCHEDPOLICY
    201 
    202 /* Define if you can have the pthread_attr_getschedpolicy function.  */
    203 #undef HAVE_PTHREAD_ATTR_GETSCHEDPOLICY
    204 
    205 /* Define if you can have the pthread_attr_setschedparam function.  */
    206 #undef HAVE_PTHREAD_ATTR_SETSCHEDPARAM
    207 
    208 /* Define if you can have the pthread_attr_getschedparam function.  */
    209 #undef HAVE_PTHREAD_ATTR_GETSCHEDPARAM
    210 
    211 /* Define if you can have the sched_get_priority_max function.  */
    212 #undef HAVE_SCHED_GET_PRIORITY_MAX
    213 
    214 /* Define if you can have the sched_get_priority_min function.  */
    215 #undef HAVE_SCHED_GET_PRIORITY_MIN
    216 
    217 /* Define if you have the NIAMA library.  */
    218 #undef HAVE_NIAMA
    219 
    220 /* Define if you have the <mpi.h> header file and library.  */
    221 #undef HAVE_MPI
    222 
    223 /* Define if you have the MPI_Init_thread routine.  */
    224 #undef HAVE_MPI_INIT_THREAD
    225 
    226 /* Set to the MPI macro defined the desired threading support level.  */
    227 #undef SC_MPI_THREAD_LEVEL
    228 
    229 /* Define if you have the <armci.h> header file and library.  */
    230 #undef HAVE_ARMCI
    231 
    232 /* Define if you have the libint header file and library.  */
    233 #undef HAVE_LIBINT
    234 
    235 /* Define if you have the libr12 header file and library.  */
    236 #undef HAVE_LIBR12
    237 
    238 /* Define if you have the libderiv header file and library.  */
    239 #undef HAVE_LIBDERIV
    240 
    241 /* Define if your MPI implementation has MPI-IO functions */
    242 #undef HAVE_MPIIO
    243 
    244 /* Define if you have the <perf.h> header file and library.  */
    245 #undef HAVE_PERF
    246 
    247 /* Define if you have <execinfo.h> backtrace and backtrace_symbol_fd.  */
    248 #undef HAVE_BACKTRACE
    249 
    250 /* Define if MPIMessageGrp should be used by default. */
    251 #undef DEFAULT_MPI
    252 
    253 /* Define if MTMPIMemoryGrp should be used by default. */
    254 #undef DEFAULT_MTMPI
    255 
    256 /* Define if ARMCIMemoryGrp should be used by default. */
    257 #undef DEFAULT_ARMCI
    258 
    259 /* Define if is MPI is always used (needed if MPI_Init is used to
    260    initialize argument list). */
    261 #undef ALWAYS_USE_MPI
    262 
    263 /* Define if you have the m library (-lm).  */
    264 #undef HAVE_LIBM
    265 
    266 /* Define if you have the sun library (-lsun).  */
    267 #undef HAVE_LIBSUN
    268 
    269 /* Define if you have the fl library (-lfl).  */
    270 #undef HAVE_LIBFL
    271 
    272 /* Define if you have the dl library (-ldl).  */
    273 #undef HAVE_LIBDL
    274 
    275 /* Define if you have the <dlfcn.h> header file.  */
    276 #undef HAVE_DLFCN_H
    277 
    278 /* Define if you have LAPACK
    279  */
    280 #undef HAVE_LAPACK
    281 
    282 /* Define if you have the Scalable BLAS package and everything needed for it.
    283  */
    284 #undef HAVE_SCALABLE_BLAS
    285 
    286 /* Define if machine byte order is big endian. */
    287 #undef WORDS_BIGENDIAN
    288 
    289 /* The host architecture. */
    290 #undef HOST_ARCH
    291 
    292 /* The target architecture. */
    293 #undef TARGET_ARCH
    294 
    295 /* The version number. */
    296 #undef SC_VERSION
    297 
    298 /* The major version number. */
    299 #undef SC_MAJOR_VERSION
    300 
    301 /* The minor version number. */
    302 #undef SC_MINOR_VERSION
    303 
    304 /* The micro version number. */
    305 #undef SC_MICRO_VERSION
    306 
    307 /* The buildid. */
    308 #undef SC_BUILDID
    309 
    310 /* The library directory in the src distribution. */
    311 #undef SRC_SCLIBDIR
    312 
    313 /* The installed location of the library directory. */
    314 #undef INSTALLED_SCLIBDIR
    315 
    316 /* The location of architecture independent files. */
    317 #undef SCDATADIR
    318 
    319 /* The default memory allocation, in bytes. */
    320 #undef DEFAULT_SC_MEMORY
    321 
    322 /* Define if template should be explicitly instantiated.  */
    323 #undef EXPLICIT_TEMPLATE_INSTANTIATION
    324 
    325 /* Define if the C++ keywork "typename" exists.  */
    326 #undef HAVE_TYPENAME
    327 
    328 #ifdef __cplusplus
    329 #  ifndef HAVE_TYPENAME
    330 #    define typename
    331 #  endif
    332 #endif
    333 
    334 /* Set to true if "using namespace std" needed to access ostream, etc.  */
    335 #undef USING_NAMESPACE_STD
    336 
    337 #endif /* _CONFIG_H */
    338 
    339 /*
    340  * Local Variables:
    341  * mode: c++
    342  * End:
    343  */
     358/* "remove usage of absent typename keyword by empty define" */
     359#undef typename
Note: See TracChangeset for help on using the changeset viewer.