Changeset 321


Ignore:
Timestamp:
May 15, 2012 4:58:14 AM (8 years ago)
Author:
kulshres
Message:

regenerate files

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

Location:
trunk
Files:
34 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/Makefile.in

    r319 r321  
    146146LTLIBOBJS = @LTLIBOBJS@
    147147MAKEINFO = @MAKEINFO@
     148MANIFEST_TOOL = @MANIFEST_TOOL@
    148149MKDIR_P = @MKDIR_P@
    149150NM = @NM@
     
    175176ac_adolc_cxxflags = @ac_adolc_cxxflags@
    176177ac_aux_dir = @ac_aux_dir@
     178ac_ct_AR = @ac_ct_AR@
    177179ac_ct_CC = @ac_ct_CC@
    178180ac_ct_CXX = @ac_ct_CXX@
     
    208210localedir = @localedir@
    209211localstatedir = @localstatedir@
    210 lt_ECHO = @lt_ECHO@
    211212mandir = @mandir@
    212213mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/Makefile.in

    r319 r321  
    202202LTLIBOBJS = @LTLIBOBJS@
    203203MAKEINFO = @MAKEINFO@
     204MANIFEST_TOOL = @MANIFEST_TOOL@
    204205MKDIR_P = @MKDIR_P@
    205206NM = @NM@
     
    231232ac_adolc_cxxflags = @ac_adolc_cxxflags@
    232233ac_aux_dir = @ac_aux_dir@
     234ac_ct_AR = @ac_ct_AR@
    233235ac_ct_CC = @ac_ct_CC@
    234236ac_ct_CXX = @ac_ct_CXX@
     
    264266localedir = @localedir@
    265267localstatedir = @localstatedir@
    266 lt_ECHO = @lt_ECHO@
    267268mandir = @mandir@
    268269mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/Makefile.in

    r319 r321  
    148148LTLIBOBJS = @LTLIBOBJS@
    149149MAKEINFO = @MAKEINFO@
     150MANIFEST_TOOL = @MANIFEST_TOOL@
    150151MKDIR_P = @MKDIR_P@
    151152NM = @NM@
     
    177178ac_adolc_cxxflags = @ac_adolc_cxxflags@
    178179ac_aux_dir = @ac_aux_dir@
     180ac_ct_AR = @ac_ct_AR@
    179181ac_ct_CC = @ac_ct_CC@
    180182ac_ct_CXX = @ac_ct_CXX@
     
    210212localedir = @localedir@
    211213localstatedir = @localstatedir@
    212 lt_ECHO = @lt_ECHO@
    213214mandir = @mandir@
    214215mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/checkpointing/Makefile.in

    r319 r321  
    138138LTLIBOBJS = @LTLIBOBJS@
    139139MAKEINFO = @MAKEINFO@
     140MANIFEST_TOOL = @MANIFEST_TOOL@
    140141MKDIR_P = @MKDIR_P@
    141142NM = @NM@
     
    167168ac_adolc_cxxflags = @ac_adolc_cxxflags@
    168169ac_aux_dir = @ac_aux_dir@
     170ac_ct_AR = @ac_ct_AR@
    169171ac_ct_CC = @ac_ct_CC@
    170172ac_ct_CXX = @ac_ct_CXX@
     
    200202localedir = @localedir@
    201203localstatedir = @localstatedir@
    202 lt_ECHO = @lt_ECHO@
    203204mandir = @mandir@
    204205mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/clock/Makefile.in

    r319 r321  
    106106LTLIBOBJS = @LTLIBOBJS@
    107107MAKEINFO = @MAKEINFO@
     108MANIFEST_TOOL = @MANIFEST_TOOL@
    108109MKDIR_P = @MKDIR_P@
    109110NM = @NM@
     
    135136ac_adolc_cxxflags = @ac_adolc_cxxflags@
    136137ac_aux_dir = @ac_aux_dir@
     138ac_ct_AR = @ac_ct_AR@
    137139ac_ct_CC = @ac_ct_CC@
    138140ac_ct_CXX = @ac_ct_CXX@
     
    168170localedir = @localedir@
    169171localstatedir = @localstatedir@
    170 lt_ECHO = @lt_ECHO@
    171172mandir = @mandir@
    172173mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/detexam/Makefile.in

    r319 r321  
    142142LTLIBOBJS = @LTLIBOBJS@
    143143MAKEINFO = @MAKEINFO@
     144MANIFEST_TOOL = @MANIFEST_TOOL@
    144145MKDIR_P = @MKDIR_P@
    145146NM = @NM@
     
    171172ac_adolc_cxxflags = @ac_adolc_cxxflags@
    172173ac_aux_dir = @ac_aux_dir@
     174ac_ct_AR = @ac_ct_AR@
    173175ac_ct_CC = @ac_ct_CC@
    174176ac_ct_CXX = @ac_ct_CXX@
     
    204206localedir = @localedir@
    205207localstatedir = @localstatedir@
    206 lt_ECHO = @lt_ECHO@
    207208mandir = @mandir@
    208209mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/ext_diff_func/Makefile.in

    r319 r321  
    138138LTLIBOBJS = @LTLIBOBJS@
    139139MAKEINFO = @MAKEINFO@
     140MANIFEST_TOOL = @MANIFEST_TOOL@
    140141MKDIR_P = @MKDIR_P@
    141142NM = @NM@
     
    167168ac_adolc_cxxflags = @ac_adolc_cxxflags@
    168169ac_aux_dir = @ac_aux_dir@
     170ac_ct_AR = @ac_ct_AR@
    169171ac_ct_CC = @ac_ct_CC@
    170172ac_ct_CXX = @ac_ct_CXX@
     
    200202localedir = @localedir@
    201203localstatedir = @localstatedir@
    202 lt_ECHO = @lt_ECHO@
    203204mandir = @mandir@
    204205mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/fixpoint_exam/Makefile.in

    r319 r321  
    138138LTLIBOBJS = @LTLIBOBJS@
    139139MAKEINFO = @MAKEINFO@
     140MANIFEST_TOOL = @MANIFEST_TOOL@
    140141MKDIR_P = @MKDIR_P@
    141142NM = @NM@
     
    167168ac_adolc_cxxflags = @ac_adolc_cxxflags@
    168169ac_aux_dir = @ac_aux_dir@
     170ac_ct_AR = @ac_ct_AR@
    169171ac_ct_CC = @ac_ct_CC@
    170172ac_ct_CXX = @ac_ct_CXX@
     
    200202localedir = @localedir@
    201203localstatedir = @localstatedir@
    202 lt_ECHO = @lt_ECHO@
    203204mandir = @mandir@
    204205mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/helm/Makefile.in

    r319 r321  
    142142LTLIBOBJS = @LTLIBOBJS@
    143143MAKEINFO = @MAKEINFO@
     144MANIFEST_TOOL = @MANIFEST_TOOL@
    144145MKDIR_P = @MKDIR_P@
    145146NM = @NM@
     
    171172ac_adolc_cxxflags = @ac_adolc_cxxflags@
    172173ac_aux_dir = @ac_aux_dir@
     174ac_ct_AR = @ac_ct_AR@
    173175ac_ct_CC = @ac_ct_CC@
    174176ac_ct_CXX = @ac_ct_CXX@
     
    204206localedir = @localedir@
    205207localstatedir = @localstatedir@
    206 lt_ECHO = @lt_ECHO@
    207208mandir = @mandir@
    208209mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/hessmat/Makefile.in

    r319 r321  
    138138LTLIBOBJS = @LTLIBOBJS@
    139139MAKEINFO = @MAKEINFO@
     140MANIFEST_TOOL = @MANIFEST_TOOL@
    140141MKDIR_P = @MKDIR_P@
    141142NM = @NM@
     
    167168ac_adolc_cxxflags = @ac_adolc_cxxflags@
    168169ac_aux_dir = @ac_aux_dir@
     170ac_ct_AR = @ac_ct_AR@
    169171ac_ct_CC = @ac_ct_CC@
    170172ac_ct_CXX = @ac_ct_CXX@
     
    200202localedir = @localedir@
    201203localstatedir = @localstatedir@
    202 lt_ECHO = @lt_ECHO@
    203204mandir = @mandir@
    204205mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/lighthouse/Makefile.in

    r319 r321  
    153153LTLIBOBJS = @LTLIBOBJS@
    154154MAKEINFO = @MAKEINFO@
     155MANIFEST_TOOL = @MANIFEST_TOOL@
    155156MKDIR_P = @MKDIR_P@
    156157NM = @NM@
     
    182183ac_adolc_cxxflags = @ac_adolc_cxxflags@
    183184ac_aux_dir = @ac_aux_dir@
     185ac_ct_AR = @ac_ct_AR@
    184186ac_ct_CC = @ac_ct_CC@
    185187ac_ct_CXX = @ac_ct_CXX@
     
    215217localedir = @localedir@
    216218localstatedir = @localstatedir@
    217 lt_ECHO = @lt_ECHO@
    218219mandir = @mandir@
    219220mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/lufact/Makefile.in

    r319 r321  
    142142LTLIBOBJS = @LTLIBOBJS@
    143143MAKEINFO = @MAKEINFO@
     144MANIFEST_TOOL = @MANIFEST_TOOL@
    144145MKDIR_P = @MKDIR_P@
    145146NM = @NM@
     
    171172ac_adolc_cxxflags = @ac_adolc_cxxflags@
    172173ac_aux_dir = @ac_aux_dir@
     174ac_ct_AR = @ac_ct_AR@
    173175ac_ct_CC = @ac_ct_CC@
    174176ac_ct_CXX = @ac_ct_CXX@
     
    204206localedir = @localedir@
    205207localstatedir = @localstatedir@
    206 lt_ECHO = @lt_ECHO@
    207208mandir = @mandir@
    208209mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/ode/Makefile.in

    r319 r321  
    150150LTLIBOBJS = @LTLIBOBJS@
    151151MAKEINFO = @MAKEINFO@
     152MANIFEST_TOOL = @MANIFEST_TOOL@
    152153MKDIR_P = @MKDIR_P@
    153154NM = @NM@
     
    179180ac_adolc_cxxflags = @ac_adolc_cxxflags@
    180181ac_aux_dir = @ac_aux_dir@
     182ac_ct_AR = @ac_ct_AR@
    181183ac_ct_CC = @ac_ct_CC@
    182184ac_ct_CXX = @ac_ct_CXX@
     
    212214localedir = @localedir@
    213215localstatedir = @localstatedir@
    214 lt_ECHO = @lt_ECHO@
    215216mandir = @mandir@
    216217mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/openmp_exam/Makefile.in

    r319 r321  
    142142LTLIBOBJS = @LTLIBOBJS@
    143143MAKEINFO = @MAKEINFO@
     144MANIFEST_TOOL = @MANIFEST_TOOL@
    144145MKDIR_P = @MKDIR_P@
    145146NM = @NM@
     
    171172ac_adolc_cxxflags = @ac_adolc_cxxflags@
    172173ac_aux_dir = @ac_aux_dir@
     174ac_ct_AR = @ac_ct_AR@
    173175ac_ct_CC = @ac_ct_CC@
    174176ac_ct_CXX = @ac_ct_CXX@
     
    204206localedir = @localedir@
    205207localstatedir = @localstatedir@
    206 lt_ECHO = @lt_ECHO@
    207208mandir = @mandir@
    208209mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/pow/Makefile.in

    r319 r321  
    138138LTLIBOBJS = @LTLIBOBJS@
    139139MAKEINFO = @MAKEINFO@
     140MANIFEST_TOOL = @MANIFEST_TOOL@
    140141MKDIR_P = @MKDIR_P@
    141142NM = @NM@
     
    167168ac_adolc_cxxflags = @ac_adolc_cxxflags@
    168169ac_aux_dir = @ac_aux_dir@
     170ac_ct_AR = @ac_ct_AR@
    169171ac_ct_CC = @ac_ct_CC@
    170172ac_ct_CXX = @ac_ct_CXX@
     
    200202localedir = @localedir@
    201203localstatedir = @localstatedir@
    202 lt_ECHO = @lt_ECHO@
    203204mandir = @mandir@
    204205mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/scal/Makefile.in

    r319 r321  
    138138LTLIBOBJS = @LTLIBOBJS@
    139139MAKEINFO = @MAKEINFO@
     140MANIFEST_TOOL = @MANIFEST_TOOL@
    140141MKDIR_P = @MKDIR_P@
    141142NM = @NM@
     
    167168ac_adolc_cxxflags = @ac_adolc_cxxflags@
    168169ac_aux_dir = @ac_aux_dir@
     170ac_ct_AR = @ac_ct_AR@
    169171ac_ct_CC = @ac_ct_CC@
    170172ac_ct_CXX = @ac_ct_CXX@
     
    200202localedir = @localedir@
    201203localstatedir = @localstatedir@
    202 lt_ECHO = @lt_ECHO@
    203204mandir = @mandir@
    204205mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/sparse/Makefile.in

    r319 r321  
    155155LTLIBOBJS = @LTLIBOBJS@
    156156MAKEINFO = @MAKEINFO@
     157MANIFEST_TOOL = @MANIFEST_TOOL@
    157158MKDIR_P = @MKDIR_P@
    158159NM = @NM@
     
    184185ac_adolc_cxxflags = @ac_adolc_cxxflags@
    185186ac_aux_dir = @ac_aux_dir@
     187ac_ct_AR = @ac_ct_AR@
    186188ac_ct_CC = @ac_ct_CC@
    187189ac_ct_CXX = @ac_ct_CXX@
     
    217219localedir = @localedir@
    218220localstatedir = @localstatedir@
    219 lt_ECHO = @lt_ECHO@
    220221mandir = @mandir@
    221222mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/speelpenning/Makefile.in

    r319 r321  
    138138LTLIBOBJS = @LTLIBOBJS@
    139139MAKEINFO = @MAKEINFO@
     140MANIFEST_TOOL = @MANIFEST_TOOL@
    140141MKDIR_P = @MKDIR_P@
    141142NM = @NM@
     
    167168ac_adolc_cxxflags = @ac_adolc_cxxflags@
    168169ac_aux_dir = @ac_aux_dir@
     170ac_ct_AR = @ac_ct_AR@
    169171ac_ct_CC = @ac_ct_CC@
    170172ac_ct_CXX = @ac_ct_CXX@
     
    200202localedir = @localedir@
    201203localstatedir = @localstatedir@
    202 lt_ECHO = @lt_ECHO@
    203204mandir = @mandir@
    204205mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/tapesave/Makefile.in

    r319 r321  
    142142LTLIBOBJS = @LTLIBOBJS@
    143143MAKEINFO = @MAKEINFO@
     144MANIFEST_TOOL = @MANIFEST_TOOL@
    144145MKDIR_P = @MKDIR_P@
    145146NM = @NM@
     
    171172ac_adolc_cxxflags = @ac_adolc_cxxflags@
    172173ac_aux_dir = @ac_aux_dir@
     174ac_ct_AR = @ac_ct_AR@
    173175ac_ct_CC = @ac_ct_CC@
    174176ac_ct_CXX = @ac_ct_CXX@
     
    204206localedir = @localedir@
    205207localstatedir = @localstatedir@
    206 lt_ECHO = @lt_ECHO@
    207208mandir = @mandir@
    208209mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/taylor/Makefile.in

    r319 r321  
    158158LTLIBOBJS = @LTLIBOBJS@
    159159MAKEINFO = @MAKEINFO@
     160MANIFEST_TOOL = @MANIFEST_TOOL@
    160161MKDIR_P = @MKDIR_P@
    161162NM = @NM@
     
    187188ac_adolc_cxxflags = @ac_adolc_cxxflags@
    188189ac_aux_dir = @ac_aux_dir@
     190ac_ct_AR = @ac_ct_AR@
    189191ac_ct_CC = @ac_ct_CC@
    190192ac_ct_CXX = @ac_ct_CXX@
     
    220222localedir = @localedir@
    221223localstatedir = @localstatedir@
    222 lt_ECHO = @lt_ECHO@
    223224mandir = @mandir@
    224225mkdir_p = @mkdir_p@
  • trunk/ADOL-C/examples/additional_examples/timing/Makefile.in

    r319 r321  
    228228LTLIBOBJS = @LTLIBOBJS@
    229229MAKEINFO = @MAKEINFO@
     230MANIFEST_TOOL = @MANIFEST_TOOL@
    230231MKDIR_P = @MKDIR_P@
    231232NM = @NM@
     
    257258ac_adolc_cxxflags = @ac_adolc_cxxflags@
    258259ac_aux_dir = @ac_aux_dir@
     260ac_ct_AR = @ac_ct_AR@
    259261ac_ct_CC = @ac_ct_CC@
    260262ac_ct_CXX = @ac_ct_CXX@
     
    290292localedir = @localedir@
    291293localstatedir = @localstatedir@
    292 lt_ECHO = @lt_ECHO@
    293294mandir = @mandir@
    294295mkdir_p = @mkdir_p@
  • trunk/ADOL-C/src/Makefile.in

    r319 r321  
    253253LTLIBOBJS = @LTLIBOBJS@
    254254MAKEINFO = @MAKEINFO@
     255MANIFEST_TOOL = @MANIFEST_TOOL@
    255256MKDIR_P = @MKDIR_P@
    256257NM = @NM@
     
    282283ac_adolc_cxxflags = @ac_adolc_cxxflags@
    283284ac_aux_dir = @ac_aux_dir@
     285ac_ct_AR = @ac_ct_AR@
    284286ac_ct_CC = @ac_ct_CC@
    285287ac_ct_CXX = @ac_ct_CXX@
     
    315317localedir = @localedir@
    316318localstatedir = @localstatedir@
    317 lt_ECHO = @lt_ECHO@
    318319mandir = @mandir@
    319320mkdir_p = @mkdir_p@
  • trunk/ADOL-C/src/drivers/Makefile.in

    r319 r321  
    162162LTLIBOBJS = @LTLIBOBJS@
    163163MAKEINFO = @MAKEINFO@
     164MANIFEST_TOOL = @MANIFEST_TOOL@
    164165MKDIR_P = @MKDIR_P@
    165166NM = @NM@
     
    191192ac_adolc_cxxflags = @ac_adolc_cxxflags@
    192193ac_aux_dir = @ac_aux_dir@
     194ac_ct_AR = @ac_ct_AR@
    193195ac_ct_CC = @ac_ct_CC@
    194196ac_ct_CXX = @ac_ct_CXX@
     
    224226localedir = @localedir@
    225227localstatedir = @localstatedir@
    226 lt_ECHO = @lt_ECHO@
    227228mandir = @mandir@
    228229mkdir_p = @mkdir_p@
  • trunk/ADOL-C/src/sparse/Makefile.in

    r319 r321  
    161161LTLIBOBJS = @LTLIBOBJS@
    162162MAKEINFO = @MAKEINFO@
     163MANIFEST_TOOL = @MANIFEST_TOOL@
    163164MKDIR_P = @MKDIR_P@
    164165NM = @NM@
     
    190191ac_adolc_cxxflags = @ac_adolc_cxxflags@
    191192ac_aux_dir = @ac_aux_dir@
     193ac_ct_AR = @ac_ct_AR@
    192194ac_ct_CC = @ac_ct_CC@
    193195ac_ct_CXX = @ac_ct_CXX@
     
    223225localedir = @localedir@
    224226localstatedir = @localstatedir@
    225 lt_ECHO = @lt_ECHO@
    226227mandir = @mandir@
    227228mkdir_p = @mkdir_p@
  • trunk/ADOL-C/src/tapedoc/Makefile.in

    r319 r321  
    161161LTLIBOBJS = @LTLIBOBJS@
    162162MAKEINFO = @MAKEINFO@
     163MANIFEST_TOOL = @MANIFEST_TOOL@
    163164MKDIR_P = @MKDIR_P@
    164165NM = @NM@
     
    190191ac_adolc_cxxflags = @ac_adolc_cxxflags@
    191192ac_aux_dir = @ac_aux_dir@
     193ac_ct_AR = @ac_ct_AR@
    192194ac_ct_CC = @ac_ct_CC@
    193195ac_ct_CXX = @ac_ct_CXX@
     
    223225localedir = @localedir@
    224226localstatedir = @localstatedir@
    225 lt_ECHO = @lt_ECHO@
    226227mandir = @mandir@
    227228mkdir_p = @mkdir_p@
  • trunk/ADOL-C/test/Makefile.in

    r319 r321  
    145145LTLIBOBJS = @LTLIBOBJS@
    146146MAKEINFO = @MAKEINFO@
     147MANIFEST_TOOL = @MANIFEST_TOOL@
    147148MKDIR_P = @MKDIR_P@
    148149NM = @NM@
     
    174175ac_adolc_cxxflags = @ac_adolc_cxxflags@
    175176ac_aux_dir = @ac_aux_dir@
     177ac_ct_AR = @ac_ct_AR@
    176178ac_ct_CC = @ac_ct_CC@
    177179ac_ct_CXX = @ac_ct_CXX@
     
    207209localedir = @localedir@
    208210localstatedir = @localstatedir@
    209 lt_ECHO = @lt_ECHO@
    210211mandir = @mandir@
    211212mkdir_p = @mkdir_p@
  • trunk/Makefile.in

    r319 r321  
    171171LTLIBOBJS = @LTLIBOBJS@
    172172MAKEINFO = @MAKEINFO@
     173MANIFEST_TOOL = @MANIFEST_TOOL@
    173174MKDIR_P = @MKDIR_P@
    174175NM = @NM@
     
    200201ac_adolc_cxxflags = @ac_adolc_cxxflags@
    201202ac_aux_dir = @ac_aux_dir@
     203ac_ct_AR = @ac_ct_AR@
    202204ac_ct_CC = @ac_ct_CC@
    203205ac_ct_CXX = @ac_ct_CXX@
     
    233235localedir = @localedir@
    234236localstatedir = @localstatedir@
    235 lt_ECHO = @lt_ECHO@
    236237mandir = @mandir@
    237238mkdir_p = @mkdir_p@
  • trunk/aclocal.m4

    r319 r321  
    1414m4_ifndef([AC_AUTOCONF_VERSION],
    1515  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
    17 [m4_warning([this file was generated for autoconf 2.67.
     16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
     17[m4_warning([this file was generated for autoconf 2.68.
    1818You have another version of autoconf.  It may work, but is not guaranteed to.
    1919If you have problems, you may need to regenerate the build system entirely.
     
    2323#
    2424#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    25 #                 2006, 2007, 2008 Free Software Foundation, Inc.
     25#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
     26#                 Inc.
    2627#   Written by Gordon Matzigkeit, 1996
    2728#
     
    3233m4_define([_LT_COPYING], [dnl
    3334#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    34 #                 2006, 2007, 2008 Free Software Foundation, Inc.
     35#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
     36#                 Inc.
    3537#   Written by Gordon Matzigkeit, 1996
    3638#
     
    5961])
    6062
    61 # serial 56 LT_INIT
     63# serial 57 LT_INIT
    6264
    6365
     
    8890AC_DEFUN([LT_INIT],
    8991[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
     92AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    9093AC_BEFORE([$0], [LT_LANG])dnl
    9194AC_BEFORE([$0], [LT_OUTPUT])dnl
     
    103106AC_REQUIRE([LTOBSOLETE_VERSION])dnl
    104107m4_require([_LT_PROG_LTMAIN])dnl
     108
     109_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
    105110
    106111dnl Parse OPTIONS
     
    140145  esac
    141146done
    142 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     147cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    143148])
    144149
     
    160165[AC_REQUIRE([AC_CANONICAL_HOST])dnl
    161166AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     167AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
     168AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
     169
    162170_LT_DECL([], [host_alias], [0], [The host system])dnl
    163171_LT_DECL([], [host], [0])dnl
     
    182190m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    183191m4_require([_LT_CHECK_SHELL_FEATURES])dnl
     192m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
    184193m4_require([_LT_CMD_RELOAD])dnl
    185194m4_require([_LT_CHECK_MAGIC_METHOD])dnl
     195m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
    186196m4_require([_LT_CMD_OLD_ARCHIVE])dnl
    187197m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
     198m4_require([_LT_WITH_SYSROOT])dnl
    188199
    189200_LT_CONFIG_LIBTOOL_INIT([
     
    201212
    202213m4_require([_LT_TAG_COMPILER])dnl
    203 _LT_PROG_ECHO_BACKSLASH
    204214
    205215case $host_os in
     
    215225esac
    216226
    217 # Sed substitution that helps us do robust quoting.  It backslashifies
    218 # metacharacters that are still active within double-quoted strings.
    219 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
    220 
    221 # Same as above, but do not quote variable references.
    222 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
    223 
    224 # Sed substitution to delay expansion of an escaped shell variable in a
    225 # double_quote_subst'ed string.
    226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    227 
    228 # Sed substitution to delay expansion of an escaped single quote.
    229 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
    230 
    231 # Sed substitution to avoid accidental globbing in evaled expressions
    232 no_glob_subst='s/\*/\\\*/g'
    233 
    234227# Global variables:
    235228ofile=libtool
     
    271264])# _LT_SETUP
    272265
     266
     267# _LT_PREPARE_SED_QUOTE_VARS
     268# --------------------------
     269# Define a few sed substitution that help us do robust quoting.
     270m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
     271[# Backslashify metacharacters that are still active within
     272# double-quoted strings.
     273sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
     274
     275# Same as above, but do not quote variable references.
     276double_quote_subst='s/\([["`\\]]\)/\\\1/g'
     277
     278# Sed substitution to delay expansion of an escaped shell variable in a
     279# double_quote_subst'ed string.
     280delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     281
     282# Sed substitution to delay expansion of an escaped single quote.
     283delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
     284
     285# Sed substitution to avoid accidental globbing in evaled expressions
     286no_glob_subst='s/\*/\\\*/g'
     287])
    273288
    274289# _LT_PROG_LTMAIN
     
    424439# must have a single quote delimited value for this to work.
    425440m4_define([_LT_CONFIG_STATUS_DECLARE],
    426 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
     441[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
    427442
    428443
     
    434449# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
    435450#
    436 #    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
     451#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
    437452m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
    438453[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
     
    533548compiler='$compiler_DEFAULT'
    534549
     550# A function that is used when there is no print builtin or printf.
     551func_fallback_echo ()
     552{
     553  eval 'cat <<_LTECHO_EOF
     554\$[]1
     555_LTECHO_EOF'
     556}
     557
    535558# Quote evaled strings.
    536559for var in lt_decl_all_varnames([[ \
    537560]], lt_decl_quote_varnames); do
    538     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
     561    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    539562    *[[\\\\\\\`\\"\\\$]]*)
    540       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
     563      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
    541564      ;;
    542565    *)
     
    549572for var in lt_decl_all_varnames([[ \
    550573]], lt_decl_dquote_varnames); do
    551     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
     574    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    552575    *[[\\\\\\\`\\"\\\$]]*)
    553       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
     576      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
    554577      ;;
    555578    *)
     
    559582done
    560583
    561 # Fix-up fallback echo if it was mangled by the above quoting rules.
    562 case \$lt_ECHO in
    563 *'\\\[$]0 --fallback-echo"')dnl "
    564   lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
    565   ;;
    566 esac
    567 
    568584_LT_OUTPUT_LIBTOOL_INIT
    569585])
    570586
     587# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
     588# ------------------------------------
     589# Generate a child script FILE with all initialization necessary to
     590# reuse the environment learned by the parent script, and make the
     591# file executable.  If COMMENT is supplied, it is inserted after the
     592# `#!' sequence but before initialization text begins.  After this
     593# macro, additional text can be appended to FILE to form the body of
     594# the child script.  The macro ends with non-zero status if the
     595# file could not be fully written (such as if the disk is full).
     596m4_ifdef([AS_INIT_GENERATED],
     597[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
     598[m4_defun([_LT_GENERATED_FILE_INIT],
     599[m4_require([AS_PREPARE])]dnl
     600[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
     601[lt_write_fail=0
     602cat >$1 <<_ASEOF || lt_write_fail=1
     603#! $SHELL
     604# Generated by $as_me.
     605$2
     606SHELL=\${CONFIG_SHELL-$SHELL}
     607export SHELL
     608_ASEOF
     609cat >>$1 <<\_ASEOF || lt_write_fail=1
     610AS_SHELL_SANITIZE
     611_AS_PREPARE
     612exec AS_MESSAGE_FD>&1
     613_ASEOF
     614test $lt_write_fail = 0 && chmod +x $1[]dnl
     615m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
    571616
    572617# LT_OUTPUT
     
    578623[: ${CONFIG_LT=./config.lt}
    579624AC_MSG_NOTICE([creating $CONFIG_LT])
    580 cat >"$CONFIG_LT" <<_LTEOF
    581 #! $SHELL
    582 # Generated by $as_me.
    583 # Run this file to recreate a libtool stub with the current configuration.
    584 
     625_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
     626[# Run this file to recreate a libtool stub with the current configuration.])
     627
     628cat >>"$CONFIG_LT" <<\_LTEOF
    585629lt_cl_silent=false
    586 SHELL=\${CONFIG_SHELL-$SHELL}
    587 _LTEOF
    588 
    589 cat >>"$CONFIG_LT" <<\_LTEOF
    590 AS_SHELL_SANITIZE
    591 _AS_PREPARE
    592 
    593 exec AS_MESSAGE_FD>&1
    594630exec AS_MESSAGE_LOG_FD>>config.log
    595631{
     
    617653configured by $[0], generated by m4_PACKAGE_STRING.
    618654
    619 Copyright (C) 2008 Free Software Foundation, Inc.
     655Copyright (C) 2010 Free Software Foundation, Inc.
    620656This config.lt script is free software; the Free Software Foundation
    621657gives unlimited permision to copy, distribute and modify it."
     
    662698# open by configure.  Here we exec the FD to /dev/null, effectively closing
    663699# config.log, so it can be properly (re)opened and appended to by config.lt.
    664 if test "$no_create" != yes; then
    665   lt_cl_success=:
    666   test "$silent" = yes &&
    667     lt_config_lt_args="$lt_config_lt_args --quiet"
    668   exec AS_MESSAGE_LOG_FD>/dev/null
    669   $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
    670   exec AS_MESSAGE_LOG_FD>>config.log
    671   $lt_cl_success || AS_EXIT(1)
    672 fi
     700lt_cl_success=:
     701test "$silent" = yes &&
     702  lt_config_lt_args="$lt_config_lt_args --quiet"
     703exec AS_MESSAGE_LOG_FD>/dev/null
     704$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
     705exec AS_MESSAGE_LOG_FD>>config.log
     706$lt_cl_success || AS_EXIT(1)
    673707])# LT_OUTPUT
    674708
     
    733767  # text mode, it properly converts lines to CR/LF.  This bash problem
    734768  # is reportedly fixed, but why not run on old versions too?
    735   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
    736     || (rm -f "$cfgfile"; exit 1)
    737 
    738   _LT_PROG_XSI_SHELLFNS
    739 
    740   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
    741     || (rm -f "$cfgfile"; exit 1)
    742 
    743   mv -f "$cfgfile" "$ofile" ||
     769  sed '$q' "$ltmain" >> "$cfgfile" \
     770     || (rm -f "$cfgfile"; exit 1)
     771
     772  _LT_PROG_REPLACE_SHELLFNS
     773
     774   mv -f "$cfgfile" "$ofile" ||
    744775    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
    745776  chmod +x "$ofile"
     
    847878AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
    848879AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
     880AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
    849881dnl aclocal-1.4 backwards compatibility:
    850882dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
     
    852884dnl AC_DEFUN([AC_LIBTOOL_FC], [])
    853885dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
     886dnl AC_DEFUN([AC_LIBTOOL_RC], [])
    854887
    855888
     
    956989        LDFLAGS="$save_LDFLAGS"
    957990    ])
     991    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
     992      [lt_cv_ld_force_load=no
     993      cat > conftest.c << _LT_EOF
     994int forced_loaded() { return 2;}
     995_LT_EOF
     996      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
     997      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
     998      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
     999      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
     1000      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
     1001      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
     1002      cat > conftest.c << _LT_EOF
     1003int main() { return 0;}
     1004_LT_EOF
     1005      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
     1006      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
     1007      _lt_result=$?
     1008      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
     1009        lt_cv_ld_force_load=yes
     1010      else
     1011        cat conftest.err >&AS_MESSAGE_LOG_FD
     1012      fi
     1013        rm -f conftest.err libconftest.a conftest conftest.c
     1014        rm -rf conftest.dSYM
     1015    ])
    9581016    case $host_os in
    9591017    rhapsody* | darwin1.[[012]])
     
    9831041      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    9841042    fi
    985     if test "$DSYMUTIL" != ":"; then
     1043    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
    9861044      _lt_dsymutil='~$DSYMUTIL $lib || :'
    9871045    else
     
    10031061  _LT_TAGVAR(hardcode_automatic, $1)=yes
    10041062  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    1005   _LT_TAGVAR(whole_archive_flag_spec, $1)=''
     1063  if test "$lt_cv_ld_force_load" = "yes"; then
     1064    _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\"`'
     1065  else
     1066    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
     1067  fi
    10061068  _LT_TAGVAR(link_all_deplibs, $1)=yes
    10071069  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
     
    10111073  esac
    10121074  if test "$_lt_dar_can_shared" = "yes"; then
    1013     output_verbose_link_cmd=echo
     1075    output_verbose_link_cmd=func_echo_all
    10141076    _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}"
    10151077    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     
    10271089])
    10281090
    1029 # _LT_SYS_MODULE_PATH_AIX
    1030 # -----------------------
     1091# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
     1092# ----------------------------------
    10311093# Links a minimal program and checks the executable
    10321094# for the system default hardcoded library path. In most cases,
     
    10351097# If we don't find anything, use the default library path according
    10361098# to the aix ld manual.
     1099# Store the results from the different compilers for each TAGNAME.
     1100# Allow to override them for all tags through lt_cv_aix_libpath.
    10371101m4_defun([_LT_SYS_MODULE_PATH_AIX],
    10381102[m4_require([_LT_DECL_SED])dnl
    1039 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
    1040 lt_aix_libpath_sed='
    1041     /Import File Strings/,/^$/ {
    1042         /^0/ {
    1043             s/^0  *\(.*\)$/\1/
    1044             p
    1045         }
    1046     }'
    1047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1048 # Check for a 64-bit object if we didn't find anything.
    1049 if test -z "$aix_libpath"; then
    1050   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    1051 fi],[])
    1052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
     1103if test "${lt_cv_aix_libpath+set}" = set; then
     1104  aix_libpath=$lt_cv_aix_libpath
     1105else
     1106  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
     1107  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
     1108  lt_aix_libpath_sed='[
     1109      /Import File Strings/,/^$/ {
     1110          /^0/ {
     1111              s/^0  *\([^ ]*\) *$/\1/
     1112              p
     1113          }
     1114      }]'
     1115  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     1116  # Check for a 64-bit object if we didn't find anything.
     1117  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
     1118    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     1119  fi],[])
     1120  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
     1121    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
     1122  fi
     1123  ])
     1124  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
     1125fi
    10531126])# _LT_SYS_MODULE_PATH_AIX
    10541127
     
    10571130# -------------------
    10581131m4_define([_LT_SHELL_INIT],
    1059 [ifdef([AC_DIVERSION_NOTICE],
    1060              [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
    1061          [AC_DIVERT_PUSH(NOTICE)])
    1062 $1
    1063 AC_DIVERT_POP
    1064 ])# _LT_SHELL_INIT
     1132[m4_divert_text([M4SH-INIT], [$1
     1133])])# _LT_SHELL_INIT
     1134
    10651135
    10661136
    10671137# _LT_PROG_ECHO_BACKSLASH
    10681138# -----------------------
    1069 # Add some code to the start of the generated configure script which
    1070 # will find an echo command which doesn't interpret backslashes.
     1139# Find how we can fake an echo command that does not interpret backslash.
     1140# In particular, with Autoconf 2.60 or later we add some code to the start
     1141# of the generated configure script which will find a shell with a builtin
     1142# printf (which we can use as an echo command).
    10711143m4_defun([_LT_PROG_ECHO_BACKSLASH],
    1072 [_LT_SHELL_INIT([
    1073 # Check that we are running under the correct shell.
    1074 SHELL=${CONFIG_SHELL-/bin/sh}
    1075 
    1076 case X$lt_ECHO in
    1077 X*--fallback-echo)
    1078   # Remove one level of quotation (which was required for Make).
    1079   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
    1080   ;;
     1144[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     1145ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
     1146ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
     1147
     1148AC_MSG_CHECKING([how to print strings])
     1149# Test print first, because it will be a builtin if present.
     1150if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
     1151   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
     1152  ECHO='print -r --'
     1153elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
     1154  ECHO='printf %s\n'
     1155else
     1156  # Use this function as a fallback that always works.
     1157  func_fallback_echo ()
     1158  {
     1159    eval 'cat <<_LTECHO_EOF
     1160$[]1
     1161_LTECHO_EOF'
     1162  }
     1163  ECHO='func_fallback_echo'
     1164fi
     1165
     1166# func_echo_all arg...
     1167# Invoke $ECHO with all args, space-separated.
     1168func_echo_all ()
     1169{
     1170    $ECHO "$*"
     1171}
     1172
     1173case "$ECHO" in
     1174  printf*) AC_MSG_RESULT([printf]) ;;
     1175  print*) AC_MSG_RESULT([print -r]) ;;
     1176  *) AC_MSG_RESULT([cat]) ;;
    10811177esac
    10821178
    1083 ECHO=${lt_ECHO-echo}
    1084 if test "X[$]1" = X--no-reexec; then
    1085   # Discard the --no-reexec flag, and continue.
    1086   shift
    1087 elif test "X[$]1" = X--fallback-echo; then
    1088   # Avoid inline document here, it may be left over
    1089   :
    1090 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
    1091   # Yippee, $ECHO works!
    1092   :
    1093 else
    1094   # Restart under the correct shell.
    1095   exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
    1096 fi
    1097 
    1098 if test "X[$]1" = X--fallback-echo; then
    1099   # used as fallback echo
    1100   shift
    1101   cat <<_LT_EOF
    1102 [$]*
    1103 _LT_EOF
    1104   exit 0
    1105 fi
    1106 
    1107 # The HP-UX ksh and POSIX shell print the target directory to stdout
    1108 # if CDPATH is set.
    1109 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    1110 
    1111 if test -z "$lt_ECHO"; then
    1112   if test "X${echo_test_string+set}" != Xset; then
    1113     # find a string as large as possible, as long as the shell can cope with it
    1114     for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
    1115       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    1116       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
    1117          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
    1118       then
    1119         break
    1120       fi
    1121     done
    1122   fi
    1123 
    1124   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
    1125      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
    1126      test "X$echo_testing_string" = "X$echo_test_string"; then
    1127     :
    1128   else
    1129     # The Solaris, AIX, and Digital Unix default echo programs unquote
    1130     # backslashes.  This makes it impossible to quote backslashes using
    1131     #   echo "$something" | sed 's/\\/\\\\/g'
    1132     #
    1133     # So, first we look for a working echo in the user's PATH.
    1134 
    1135     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    1136     for dir in $PATH /usr/ucb; do
    1137       IFS="$lt_save_ifs"
    1138       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    1139          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
    1140          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
    1141          test "X$echo_testing_string" = "X$echo_test_string"; then
    1142         ECHO="$dir/echo"
    1143         break
    1144       fi
    1145     done
    1146     IFS="$lt_save_ifs"
    1147 
    1148     if test "X$ECHO" = Xecho; then
    1149       # We didn't find a better echo, so look for alternatives.
    1150       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
    1151          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
    1152          test "X$echo_testing_string" = "X$echo_test_string"; then
    1153         # This shell has a builtin print -r that does the trick.
    1154         ECHO='print -r'
    1155       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
    1156            test "X$CONFIG_SHELL" != X/bin/ksh; then
    1157         # If we have ksh, try running configure again with it.
    1158         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
    1159         export ORIGINAL_CONFIG_SHELL
    1160         CONFIG_SHELL=/bin/ksh
    1161         export CONFIG_SHELL
    1162         exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
    1163       else
    1164         # Try using printf.
    1165         ECHO='printf %s\n'
    1166         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
    1167            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
    1168            test "X$echo_testing_string" = "X$echo_test_string"; then
    1169           # Cool, printf works
    1170           :
    1171         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
    1172              test "X$echo_testing_string" = 'X\t' &&
    1173              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    1174              test "X$echo_testing_string" = "X$echo_test_string"; then
    1175           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
    1176           export CONFIG_SHELL
    1177           SHELL="$CONFIG_SHELL"
    1178           export SHELL
    1179           ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
    1180         elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
    1181              test "X$echo_testing_string" = 'X\t' &&
    1182              echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    1183              test "X$echo_testing_string" = "X$echo_test_string"; then
    1184           ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
    1185         else
    1186           # maybe with a smaller string...
    1187           prev=:
    1188 
    1189           for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
    1190             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
    1191             then
    1192               break
    1193             fi
    1194             prev="$cmd"
    1195           done
    1196 
    1197           if test "$prev" != 'sed 50q "[$]0"'; then
    1198             echo_test_string=`eval $prev`
    1199             export echo_test_string
    1200             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
    1201           else
    1202             # Oops.  We lost completely, so just stick with echo.
    1203             ECHO=echo
    1204           fi
    1205         fi
    1206       fi
    1207     fi
    1208   fi
    1209 fi
    1210 
    1211 # Copy echo and quote the copy suitably for passing to libtool from
    1212 # the Makefile, instead of quoting the original, which is used later.
    1213 lt_ECHO=$ECHO
    1214 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
    1215    lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
    1216 fi
    1217 
    1218 AC_SUBST(lt_ECHO)
    1219 ])
     1179m4_ifdef([_AS_DETECT_SUGGESTED],
     1180[_AS_DETECT_SUGGESTED([
     1181  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
     1182    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     1183    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
     1184    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
     1185    PATH=/empty FPATH=/empty; export PATH FPATH
     1186    test "X`printf %s $ECHO`" = "X$ECHO" \
     1187      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
     1188
    12201189_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
    1221 _LT_DECL([], [ECHO], [1],
    1222     [An echo program that does not interpret backslashes])
     1190_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
    12231191])# _LT_PROG_ECHO_BACKSLASH
    12241192
     1193
     1194# _LT_WITH_SYSROOT
     1195# ----------------
     1196AC_DEFUN([_LT_WITH_SYSROOT],
     1197[AC_MSG_CHECKING([for sysroot])
     1198AC_ARG_WITH([sysroot],
     1199[  --with-sysroot[=DIR] Search for dependent libraries within DIR
     1200                        (or the compiler's sysroot if not specified).],
     1201[], [with_sysroot=no])
     1202
     1203dnl lt_sysroot will always be passed unquoted.  We quote it here
     1204dnl in case the user passed a directory name.
     1205lt_sysroot=
     1206case ${with_sysroot} in #(
     1207 yes)
     1208   if test "$GCC" = yes; then
     1209     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
     1210   fi
     1211   ;; #(
     1212 /*)
     1213   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
     1214   ;; #(
     1215 no|'')
     1216   ;; #(
     1217 *)
     1218   AC_MSG_RESULT([${with_sysroot}])
     1219   AC_MSG_ERROR([The sysroot must be an absolute path.])
     1220   ;;
     1221esac
     1222
     1223 AC_MSG_RESULT([${lt_sysroot:-no}])
     1224_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
     1225[dependent libraries, and in which our libraries should be installed.])])
    12251226
    12261227# _LT_ENABLE_LOCK
     
    12521253*-*-irix6*)
    12531254  # Find out which ABI we are using.
    1254   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
     1255  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
    12551256  if AC_TRY_EVAL(ac_compile); then
    12561257    if test "$lt_cv_prog_gnu_ld" = yes; then
     
    13701371
    13711372
     1373# _LT_PROG_AR
     1374# -----------
     1375m4_defun([_LT_PROG_AR],
     1376[AC_CHECK_TOOLS(AR, [ar], false)
     1377: ${AR=ar}
     1378: ${AR_FLAGS=cru}
     1379_LT_DECL([], [AR], [1], [The archiver])
     1380_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
     1381
     1382AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
     1383  [lt_cv_ar_at_file=no
     1384   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
     1385     [echo conftest.$ac_objext > conftest.lst
     1386      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
     1387      AC_TRY_EVAL([lt_ar_try])
     1388      if test "$ac_status" -eq 0; then
     1389        # Ensure the archiver fails upon bogus file names.
     1390        rm -f conftest.$ac_objext libconftest.a
     1391        AC_TRY_EVAL([lt_ar_try])
     1392        if test "$ac_status" -ne 0; then
     1393          lt_cv_ar_at_file=@
     1394        fi
     1395      fi
     1396      rm -f conftest.* libconftest.a
     1397     ])
     1398  ])
     1399
     1400if test "x$lt_cv_ar_at_file" = xno; then
     1401  archiver_list_spec=
     1402else
     1403  archiver_list_spec=$lt_cv_ar_at_file
     1404fi
     1405_LT_DECL([], [archiver_list_spec], [1],
     1406  [How to feed a file listing to the archiver])
     1407])# _LT_PROG_AR
     1408
     1409
    13721410# _LT_CMD_OLD_ARCHIVE
    13731411# -------------------
    13741412m4_defun([_LT_CMD_OLD_ARCHIVE],
    1375 [AC_CHECK_TOOL(AR, ar, false)
    1376 test -z "$AR" && AR=ar
    1377 test -z "$AR_FLAGS" && AR_FLAGS=cru
    1378 _LT_DECL([], [AR], [1], [The archiver])
    1379 _LT_DECL([], [AR_FLAGS], [1])
     1413[_LT_PROG_AR
    13801414
    13811415AC_CHECK_TOOL(STRIP, strip, :)
     
    14041438  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    14051439fi
     1440
     1441case $host_os in
     1442  darwin*)
     1443    lock_old_archive_extraction=yes ;;
     1444  *)
     1445    lock_old_archive_extraction=no ;;
     1446esac
    14061447_LT_DECL([], [old_postinstall_cmds], [2])
    14071448_LT_DECL([], [old_postuninstall_cmds], [2])
    14081449_LT_TAGDECL([], [old_archive_cmds], [2],
    14091450    [Commands used to build an old-style archive])
     1451_LT_DECL([], [lock_old_archive_extraction], [0],
     1452    [Whether to use a lock for old archive extraction])
    14101453])# _LT_CMD_OLD_ARCHIVE
    14111454
     
    14321475   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    14331476   -e 's:$: $lt_compiler_flag:'`
    1434    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
     1477   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
    14351478   (eval "$lt_compile" 2>conftest.err)
    14361479   ac_status=$?
    14371480   cat conftest.err >&AS_MESSAGE_LOG_FD
    1438    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
     1481   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    14391482   if (exit $ac_status) && test -s "$ac_outfile"; then
    14401483     # The compiler can only warn and ignore the option if not recognized
    14411484     # So say no if there are warnings other than the usual output.
    1442      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     1485     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
    14431486     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    14441487     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     
    14801523       # Append any errors to the config.log.
    14811524       cat conftest.err 1>&AS_MESSAGE_LOG_FD
    1482        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     1525       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
    14831526       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    14841527       if diff conftest.exp conftest.er2 >/dev/null; then
     
    15401583    # Instead, let's just punt: use the minimum linelength reported by
    15411584    # all of the supported platforms: 8192 (on NT/2K/XP).
     1585    lt_cv_sys_max_cmd_len=8192;
     1586    ;;
     1587
     1588  mint*)
     1589    # On MiNT this can take a long time and run out of memory.
    15421590    lt_cv_sys_max_cmd_len=8192;
    15431591    ;;
     
    16071655      # maximum length that is only half of the actual maximum length, but
    16081656      # we can't tell.
    1609       while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
    1610                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
     1657      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
     1658                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
    16111659              test $i != 17 # 1/2 MB should be enough
    16121660      do
     
    16591707  lt_status=$lt_dlunknown
    16601708  cat > conftest.$ac_ext <<_LT_EOF
    1661 [#line __oline__ "configure"
     1709[#line $LINENO "configure"
    16621710#include "confdefs.h"
    16631711
     
    17001748#endif
    17011749
    1702 void fnord() { int i=42;}
     1750/* When -fvisbility=hidden is used, assume the code has been annotated
     1751   correspondingly for the symbols needed.  */
     1752#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
     1753int fnord () __attribute__((visibility("default")));
     1754#endif
     1755
     1756int fnord () { return 42; }
    17031757int main ()
    17041758{
     
    17091763    {
    17101764      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    1711       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
     1765      else
     1766        {
     1767          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
     1768          else puts (dlerror ());
     1769        }
    17121770      /* dlclose (self); */
    17131771    }
     
    18851943   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    18861944   -e 's:$: $lt_compiler_flag:'`
    1887    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
     1945   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
    18881946   (eval "$lt_compile" 2>out/conftest.err)
    18891947   ac_status=$?
    18901948   cat out/conftest.err >&AS_MESSAGE_LOG_FD
    1891    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
     1949   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    18921950   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    18931951   then
    18941952     # The compiler can only warn and ignore the option if not recognized
    18951953     # So say no if there are warnings
    1896      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     1954     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
    18971955     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    18981956     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    20532111m4_require([_LT_DECL_OBJDUMP])dnl
    20542112m4_require([_LT_DECL_SED])dnl
     2113m4_require([_LT_CHECK_SHELL_FEATURES])dnl
    20552114AC_MSG_CHECKING([dynamic linker characteristics])
    20562115m4_if([$1],
     
    20612120    *) lt_awk_arg="/^libraries:/" ;;
    20622121  esac
    2063   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    2064   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
     2122  case $host_os in
     2123    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
     2124    *) lt_sed_strip_eq="s,=/,/,g" ;;
     2125  esac
     2126  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
     2127  case $lt_search_path_spec in
     2128  *\;*)
    20652129    # if the path contains ";" then we assume it to be the separator
    20662130    # otherwise default to the standard path separator (i.e. ":") - it is
    20672131    # assumed that no part of a normal pathname contains ";" but that should
    20682132    # okay in the real world where ";" in dirpaths is itself problematic.
    2069     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
    2070   else
    2071     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    2072   fi
     2133    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
     2134    ;;
     2135  *)
     2136    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
     2137    ;;
     2138  esac
    20732139  # Ok, now we have the path, separated by spaces, we can step through it
    20742140  # and add multilib dir if necessary.
     
    20832149    fi
    20842150  done
    2085   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
     2151  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
    20862152BEGIN {RS=" "; FS="/|\n";} {
    20872153  lt_foo="";
     
    21032169  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
    21042170}'`
    2105   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
     2171  # AWK program above erroneously prepends '/' to C:/dos/paths
     2172  # for these hosts.
     2173  case $host_os in
     2174    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
     2175      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
     2176  esac
     2177  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
    21062178else
    21072179  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
     
    21912263    library_names_spec='$libname.ixlibrary $libname.a'
    21922264    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    2193     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'
     2265    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'
    21942266    ;;
    21952267  esac
     
    22222294  need_lib_prefix=no
    22232295
    2224   case $GCC,$host_os in
    2225   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
     2296  case $GCC,$cc_basename in
     2297  yes,*)
     2298    # gcc
    22262299    library_names_spec='$libname.dll.a'
    22272300    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     
    22442317      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    22452318      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    2246       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
     2319m4_if([$1], [],[
     2320      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
    22472321      ;;
    22482322    mingw* | cegcc*)
    22492323      # MinGW DLLs use traditional 'lib' prefix
    22502324      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    2251       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    2252       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
    2253         # It is most probably a Windows format PATH printed by
    2254         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    2255         # path with ; separators, and with drive letters. We can handle the
    2256         # drive letters (cygwin fileutils understands them), so leave them,
    2257         # especially as we might pass files found there to a mingw objdump,
    2258         # which wouldn't understand a cygwinified path. Ahh.
    2259         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    2260       else
    2261         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    2262       fi
    22632325      ;;
    22642326    pw32*)
     
    22672329      ;;
    22682330    esac
     2331    dynamic_linker='Win32 ld.exe'
    22692332    ;;
    22702333
     2334  *,cl*)
     2335    # Native MSVC
     2336    libname_spec='$name'
     2337    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
     2338    library_names_spec='${libname}.dll.lib'
     2339
     2340    case $build_os in
     2341    mingw*)
     2342      sys_lib_search_path_spec=
     2343      lt_save_ifs=$IFS
     2344      IFS=';'
     2345      for lt_path in $LIB
     2346      do
     2347        IFS=$lt_save_ifs
     2348        # Let DOS variable expansion print the short 8.3 style file name.
     2349        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
     2350        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
     2351      done
     2352      IFS=$lt_save_ifs
     2353      # Convert to MSYS style.
     2354      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
     2355      ;;
     2356    cygwin*)
     2357      # Convert to unix form, then to dos form, then back to unix form
     2358      # but this time dos style (no spaces!) so that the unix form looks
     2359      # like /cygdrive/c/PROGRA~1:/cygdr...
     2360      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
     2361      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
     2362      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     2363      ;;
     2364    *)
     2365      sys_lib_search_path_spec="$LIB"
     2366      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
     2367        # It is most probably a Windows format PATH.
     2368        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     2369      else
     2370        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
     2371      fi
     2372      # FIXME: find the short name or the path components, as spaces are
     2373      # common. (e.g. "Program Files" -> "PROGRA~1")
     2374      ;;
     2375    esac
     2376
     2377    # DLL is installed to $(libdir)/../bin by postinstall_cmds
     2378    postinstall_cmds='base_file=`basename \${file}`~
     2379      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
     2380      dldir=$destdir/`dirname \$dlpath`~
     2381      test -d \$dldir || mkdir -p \$dldir~
     2382      $install_prog $dir/$dlname \$dldir/$dlname'
     2383    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     2384      dlpath=$dir/\$dldll~
     2385       $RM \$dlpath'
     2386    shlibpath_overrides_runpath=yes
     2387    dynamic_linker='Win32 link.exe'
     2388    ;;
     2389
    22712390  *)
     2391    # Assume MSVC wrapper
    22722392    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
     2393    dynamic_linker='Win32 ld.exe'
    22732394    ;;
    22742395  esac
    2275   dynamic_linker='Win32 ld.exe'
    22762396  # FIXME: first we should search . and the directory the executable is in
    22772397  shlibpath_var=PATH
     
    23572477  soname_spec='${libname}${release}${shared_ext}$major'
    23582478  shlibpath_var=LD_LIBRARY_PATH
     2479  hardcode_into_libs=yes
     2480  ;;
     2481
     2482haiku*)
     2483  version_type=linux
     2484  need_lib_prefix=no
     2485  need_version=no
     2486  dynamic_linker="$host_os runtime_loader"
     2487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
     2488  soname_spec='${libname}${release}${shared_ext}$major'
     2489  shlibpath_var=LIBRARY_PATH
     2490  shlibpath_overrides_runpath=yes
     2491  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
    23592492  hardcode_into_libs=yes
    23602493  ;;
     
    24022535    ;;
    24032536  esac
    2404   # HP-UX runs *really* slowly unless shared libraries are mode 555.
     2537  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
    24052538  postinstall_cmds='chmod 555 $lib'
     2539  # or fails outright, so override atomically:
     2540  install_override_mode=555
    24062541  ;;
    24072542
     
    24702605  shlibpath_var=LD_LIBRARY_PATH
    24712606  shlibpath_overrides_runpath=no
     2607
    24722608  # Some binutils ld are patched to set DT_RUNPATH
    2473   save_LDFLAGS=$LDFLAGS
    2474   save_libdir=$libdir
    2475   eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
    2476        LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
    2477   AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
    2478     [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
    2479        [shlibpath_overrides_runpath=yes])])
    2480   LDFLAGS=$save_LDFLAGS
    2481   libdir=$save_libdir
     2609  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
     2610    [lt_cv_shlibpath_overrides_runpath=no
     2611    save_LDFLAGS=$LDFLAGS
     2612    save_libdir=$libdir
     2613    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
     2614         LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
     2615    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
     2616      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
     2617         [lt_cv_shlibpath_overrides_runpath=yes])])
     2618    LDFLAGS=$save_LDFLAGS
     2619    libdir=$save_libdir
     2620    ])
     2621  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
    24822622
    24832623  # This implies no fast_install, which is unacceptable.
     
    24882628  # Append ld.so.conf contents to the search path
    24892629  if test -f /etc/ld.so.conf; then
    2490     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
     2630    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' ' '`
    24912631    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    24922632  fi
     
    24992639  # assume the GNU/Linux dynamic linker is in use.
    25002640  dynamic_linker='GNU/Linux ld.so'
    2501   ;;
    2502 
    2503 netbsdelf*-gnu)
    2504   version_type=linux
    2505   need_lib_prefix=no
    2506   need_version=no
    2507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    2508   soname_spec='${libname}${release}${shared_ext}$major'
    2509   shlibpath_var=LD_LIBRARY_PATH
    2510   shlibpath_overrides_runpath=no
    2511   hardcode_into_libs=yes
    2512   dynamic_linker='NetBSD ld.elf_so'
    25132641  ;;
    25142642
     
    27332861_LT_DECL([], [soname_spec], [1],
    27342862    [[The coded name of the library, if different from the real name]])
     2863_LT_DECL([], [install_override_mode], [1],
     2864    [Permission mode override for installation of shared libraries])
    27352865_LT_DECL([], [postinstall_cmds], [2],
    27362866    [Command to use after installation of a shared archive])
     
    28452975m4_require([_LT_DECL_SED])dnl
    28462976m4_require([_LT_DECL_EGREP])dnl
     2977m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
    28472978
    28482979AC_ARG_WITH([gnu-ld],
     
    29663097reload_cmds='$LD$reload_flag -o $output$reload_objs'
    29673098case $host_os in
     3099  cygwin* | mingw* | pw32* | cegcc*)
     3100    if test "$GCC" != yes; then
     3101      reload_cmds=false
     3102    fi
     3103    ;;
    29683104  darwin*)
    29693105    if test "$GCC" = yes; then
     
    29743110    ;;
    29753111esac
    2976 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
    2977 _LT_DECL([], [reload_cmds], [2])dnl
     3112_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
     3113_LT_TAGDECL([], [reload_cmds], [2])dnl
    29783114])# _LT_CMD_RELOAD
    29793115
     
    30273163  # func_win32_libid shell function, so use a weaker test based on 'objdump',
    30283164  # unless we find 'file', for example because we are cross-compiling.
    3029   if ( file / ) >/dev/null 2>&1; then
     3165  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
     3166  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    30303167    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    30313168    lt_cv_file_magic_cmd='func_win32_libid'
    30323169  else
    3033     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     3170    # Keep this pattern in sync with the one in func_win32_libid.
     3171    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
    30343172    lt_cv_file_magic_cmd='$OBJDUMP -f'
    30353173  fi
    30363174  ;;
    30373175
    3038 cegcc)
     3176cegcc*)
    30393177  # use the weaker test based on 'objdump'. See mingw*.
    30403178  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
     
    30663204  ;;
    30673205
     3206haiku*)
     3207  lt_cv_deplibs_check_method=pass_all
     3208  ;;
     3209
    30683210hpux10.20* | hpux11*)
    30693211  lt_cv_file_magic_cmd=/usr/bin/file
     
    30743216    ;;
    30753217  hppa*64*)
    3076     [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]']
     3218    [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]']
    30773219    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    30783220    ;;
    30793221  *)
    3080     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
     3222    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
    30813223    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    30823224    ;;
     
    31043246  ;;
    31053247
    3106 netbsd* | netbsdelf*-gnu)
     3248netbsd*)
    31073249  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    31083250    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
     
    31783320esac
    31793321])
     3322
     3323file_magic_glob=
     3324want_nocaseglob=no
     3325if test "$build" = "$host"; then
     3326  case $host_os in
     3327  mingw* | pw32*)
     3328    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
     3329      want_nocaseglob=yes
     3330    else
     3331      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
     3332    fi
     3333    ;;
     3334  esac
     3335fi
     3336
    31803337file_magic_cmd=$lt_cv_file_magic_cmd
    31813338deplibs_check_method=$lt_cv_deplibs_check_method
     
    31853342    [Method to check whether dependent libraries are shared objects])
    31863343_LT_DECL([], [file_magic_cmd], [1],
    3187     [Command to use when deplibs_check_method == "file_magic"])
     3344    [Command to use when deplibs_check_method = "file_magic"])
     3345_LT_DECL([], [file_magic_glob], [1],
     3346    [How to find potential files when deplibs_check_method = "file_magic"])
     3347_LT_DECL([], [want_nocaseglob], [1],
     3348    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
    31883349])# _LT_CHECK_MAGIC_METHOD
    31893350
     
    32423403else
    32433404  # Didn't find any BSD compatible name lister, look for dumpbin.
    3244   AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
     3405  if test -n "$DUMPBIN"; then :
     3406    # Let the user override the test.
     3407  else
     3408    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
     3409    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
     3410    *COFF*)
     3411      DUMPBIN="$DUMPBIN -symbols"
     3412      ;;
     3413    *)
     3414      DUMPBIN=:
     3415      ;;
     3416    esac
     3417  fi
    32453418  AC_SUBST([DUMPBIN])
    32463419  if test "$DUMPBIN" != ":"; then
     
    32553428  [lt_cv_nm_interface="BSD nm"
    32563429  echo "int some_variable = 0;" > conftest.$ac_ext
    3257   (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
     3430  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
    32583431  (eval "$ac_compile" 2>conftest.err)
    32593432  cat conftest.err >&AS_MESSAGE_LOG_FD
    3260   (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
     3433  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
    32613434  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
    32623435  cat conftest.err >&AS_MESSAGE_LOG_FD
    3263   (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
     3436  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
    32643437  cat conftest.out >&AS_MESSAGE_LOG_FD
    32653438  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     
    32753448dnl AC_DEFUN([AM_PROG_NM], [])
    32763449dnl AC_DEFUN([AC_PROG_NM], [])
     3450
     3451# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
     3452# --------------------------------
     3453# how to determine the name of the shared library
     3454# associated with a specific link library.
     3455#  -- PORTME fill in with the dynamic library characteristics
     3456m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
     3457[m4_require([_LT_DECL_EGREP])
     3458m4_require([_LT_DECL_OBJDUMP])
     3459m4_require([_LT_DECL_DLLTOOL])
     3460AC_CACHE_CHECK([how to associate runtime and link libraries],
     3461lt_cv_sharedlib_from_linklib_cmd,
     3462[lt_cv_sharedlib_from_linklib_cmd='unknown'
     3463
     3464case $host_os in
     3465cygwin* | mingw* | pw32* | cegcc*)
     3466  # two different shell functions defined in ltmain.sh
     3467  # decide which to use based on capabilities of $DLLTOOL
     3468  case `$DLLTOOL --help 2>&1` in
     3469  *--identify-strict*)
     3470    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
     3471    ;;
     3472  *)
     3473    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
     3474    ;;
     3475  esac
     3476  ;;
     3477*)
     3478  # fallback: assume linklib IS sharedlib
     3479  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
     3480  ;;
     3481esac
     3482])
     3483sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
     3484test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
     3485
     3486_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
     3487    [Command to associate shared and link libraries])
     3488])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
     3489
     3490
     3491# _LT_PATH_MANIFEST_TOOL
     3492# ----------------------
     3493# locate the manifest tool
     3494m4_defun([_LT_PATH_MANIFEST_TOOL],
     3495[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
     3496test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
     3497AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
     3498  [lt_cv_path_mainfest_tool=no
     3499  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
     3500  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
     3501  cat conftest.err >&AS_MESSAGE_LOG_FD
     3502  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
     3503    lt_cv_path_mainfest_tool=yes
     3504  fi
     3505  rm -f conftest*])
     3506if test "x$lt_cv_path_mainfest_tool" != xyes; then
     3507  MANIFEST_TOOL=:
     3508fi
     3509_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
     3510])# _LT_PATH_MANIFEST_TOOL
    32773511
    32783512
     
    32843518LIBM=
    32853519case $host in
    3286 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
     3520*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
    32873521  # These system don't have libm, or don't need it
    32883522  ;;
     
    33123546
    33133547if test "$GCC" = yes; then
    3314   _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
     3548  case $cc_basename in
     3549  nvcc*)
     3550    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
     3551  *)
     3552    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
     3553  esac
    33153554
    33163555  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
     
    33293568[AC_REQUIRE([AC_CANONICAL_HOST])dnl
    33303569AC_REQUIRE([AC_PROG_CC])dnl
     3570AC_REQUIRE([AC_PROG_AWK])dnl
    33313571AC_REQUIRE([LT_PATH_NM])dnl
    33323572AC_REQUIRE([LT_PATH_LD])dnl
     
    33963636
    33973637# Transform an extracted symbol line into symbol name and symbol address
    3398 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
    3399 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
     3638lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
     3639lt_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'"
    34003640
    34013641# Handle CRLF in mingw tool chain
     
    34333673    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
    34343674  fi
     3675  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
    34353676
    34363677  # Check to see that the pipe works correctly.
     
    34543695    # Now try to grab the symbols.
    34553696    nlist=conftest.nm
    3456     if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
     3697    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
    34573698      # Try sorting and uniquifying the output.
    34583699      if sort "$nlist" | uniq > "$nlist"T; then
     
    34663707        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
    34673708          cat <<_LT_EOF > conftest.$ac_ext
     3709/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
     3710#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
     3711/* DATA imports from DLLs on WIN32 con't be const, because runtime
     3712   relocations are performed -- see ld's documentation on pseudo-relocs.  */
     3713# define LT@&t@_DLSYM_CONST
     3714#elif defined(__osf__)
     3715/* This system does not cope well with relocations in const data.  */
     3716# define LT@&t@_DLSYM_CONST
     3717#else
     3718# define LT@&t@_DLSYM_CONST const
     3719#endif
     3720
    34683721#ifdef __cplusplus
    34693722extern "C" {
     
    34773730
    34783731/* The mapping between symbol names and symbols.  */
    3479 const struct {
     3732LT@&t@_DLSYM_CONST struct {
    34803733  const char *name;
    34813734  void       *address;
     
    35033756          # Now try linking the two files.
    35043757          mv conftest.$ac_objext conftstm.$ac_objext
    3505           lt_save_LIBS="$LIBS"
    3506           lt_save_CFLAGS="$CFLAGS"
     3758          lt_globsym_save_LIBS=$LIBS
     3759          lt_globsym_save_CFLAGS=$CFLAGS
    35073760          LIBS="conftstm.$ac_objext"
    35083761          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
     
    35103763            pipe_works=yes
    35113764          fi
    3512           LIBS="$lt_save_LIBS"
    3513           CFLAGS="$lt_save_CFLAGS"
     3765          LIBS=$lt_globsym_save_LIBS
     3766          CFLAGS=$lt_globsym_save_CFLAGS
    35143767        else
    35153768          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
     
    35443797fi
    35453798
     3799# Response file support.
     3800if test "$lt_cv_nm_interface" = "MS dumpbin"; then
     3801  nm_file_list_spec='@'
     3802elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
     3803  nm_file_list_spec='@'
     3804fi
     3805
    35463806_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
    35473807    [Take the output of nm and produce a listing of raw symbols and C names])
     
    35543814    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
    35553815    [Transform the output of nm in a C name address pair when lib prefix is needed])
     3816_LT_DECL([], [nm_file_list_spec], [1],
     3817    [Specify filename containing input files for $NM])
    35563818]) # _LT_CMD_GLOBAL_SYMBOLS
    35573819
     
    35653827_LT_TAGVAR(lt_prog_compiler_static, $1)=
    35663828
    3567 AC_MSG_CHECKING([for $compiler option to produce PIC])
    35683829m4_if([$1], [CXX], [
    35693830  # C++ specific cases for pic, static, wl, etc.
     
    36153876      # DJGPP does not support shared libraries at all
    36163877      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
     3878      ;;
     3879    haiku*)
     3880      # PIC is the default for Haiku.
     3881      # The "-static" flag exists, but is broken.
     3882      _LT_TAGVAR(lt_prog_compiler_static, $1)=
    36173883      ;;
    36183884    interix[[3-9]]*)
     
    36643930          ;;
    36653931        esac
     3932        ;;
     3933      mingw* | cygwin* | os2* | pw32* | cegcc*)
     3934        # This hack is so that the source file can tell whether it is being
     3935        # built for inclusion in a dll (and should export symbols for example).
     3936        m4_if([$1], [GCJ], [],
     3937          [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
    36663938        ;;
    36673939      dgux*)
     
    37544026            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    37554027            ;;
    3756           xlc* | xlC*)
    3757             # IBM XL 8.0 on PPC
     4028          xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
     4029            # IBM XL 8.0, 9.0 on PPC and BlueGene
    37584030            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    37594031            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
     
    37854057        esac
    37864058        ;;
    3787       netbsd* | netbsdelf*-gnu)
     4059      netbsd*)
    37884060        ;;
    37894061      *qnx* | *nto*)
     
    38174089      solaris*)
    38184090        case $cc_basename in
    3819           CC*)
     4091          CC* | sunCC*)
    38204092            # Sun C++ 4.2, 5.x and Centerline C++
    38214093            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    39214193      ;;
    39224194
     4195    haiku*)
     4196      # PIC is the default for Haiku.
     4197      # The "-static" flag exists, but is broken.
     4198      _LT_TAGVAR(lt_prog_compiler_static, $1)=
     4199      ;;
     4200
    39234201    hpux*)
    39244202      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
     
    39614239    *)
    39624240      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
     4241      ;;
     4242    esac
     4243
     4244    case $cc_basename in
     4245    nvcc*) # Cuda Compiler Driver 2.2
     4246      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
     4247      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
    39634248      ;;
    39644249    esac
     
    40264311        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
    40274312        ;;
    4028       pgcc* | pgf77* | pgf90* | pgf95*)
     4313      nagfor*)
     4314        # NAG Fortran compiler
     4315        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
     4316        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
     4317        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4318        ;;
     4319      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
    40294320        # Portland Group compilers (*not* the Pentium gcc compiler,
    40304321        # which looks to be a dead project)
     
    40384329        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    40394330        ;;
    4040       xl*)
    4041         # IBM XL C 8.0/Fortran 10.1 on PPC
     4331      xl* | bgxl* | bgf* | mpixl*)
     4332        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
    40424333        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    40434334        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
     
    40464337      *)
    40474338        case `$CC -V 2>&1 | sed 5q` in
     4339        *Sun\ F* | *Sun*Fortran*)
     4340          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     4341          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     4342          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4343          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
     4344          ;;
    40484345        *Sun\ C*)
    40494346          # Sun C 5.9
     
    40524349          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    40534350          ;;
    4054         *Sun\ F*)
    4055           # Sun Fortran 8.3 passes all unrecognized flags to the linker
    4056           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4057           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4058           _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
    4059           ;;
    40604351        esac
    40614352        ;;
     
    40884379      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    40894380      case $cc_basename in
    4090       f77* | f90* | f95*)
     4381      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
    40914382        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
    40924383      *)
     
    41454436    ;;
    41464437esac
    4147 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
    4148 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
    4149         [How to pass a linker flag through the compiler])
     4438
     4439AC_CACHE_CHECK([for $compiler option to produce PIC],
     4440  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
     4441  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
     4442_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
    41504443
    41514444#
     
    41664459        [Additional compiler flags for building library objects])
    41674460
     4461_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
     4462        [How to pass a linker flag through the compiler])
    41684463#
    41694464# Check to make sure the static flag actually works.
     
    41864481[AC_REQUIRE([LT_PATH_LD])dnl
    41874482AC_REQUIRE([LT_PATH_NM])dnl
     4483m4_require([_LT_PATH_MANIFEST_TOOL])dnl
    41884484m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    41894485m4_require([_LT_DECL_EGREP])dnl
     
    41944490m4_if([$1], [CXX], [
    41954491  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     4492  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
    41964493  case $host_os in
    41974494  aix[[4-9]]*)
    41984495    # If we're using GNU nm, then we don't want the "-C" option.
    41994496    # -C means demangle to AIX nm, but means don't demangle with GNU nm
     4497    # Also, AIX nm treats weak defined symbols like other global defined
     4498    # symbols, whereas GNU nm marks them as "W".
    42004499    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    4201       _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     4500      _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'
    42024501    else
    42034502      _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'
     
    42064505  pw32*)
    42074506    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
    4208   ;;
     4507    ;;
    42094508  cygwin* | mingw* | cegcc*)
    4210     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
    4211   ;;
    4212   linux* | k*bsd*-gnu)
    4213     _LT_TAGVAR(link_all_deplibs, $1)=no
    4214   ;;
     4509    case $cc_basename in
     4510    cl*) ;;
     4511    *)
     4512      _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'
     4513      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
     4514      ;;
     4515    esac
     4516    ;;
    42154517  *)
    42164518    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    4217   ;;
     4519    ;;
    42184520  esac
    4219   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
    42204521], [
    42214522  runpath_var=
     
    42774578    with_gnu_ld=no
    42784579    ;;
    4279   linux* | k*bsd*-gnu)
    4280     _LT_TAGVAR(link_all_deplibs, $1)=no
    4281     ;;
    42824580  esac
    42834581
    42844582  _LT_TAGVAR(ld_shlibs, $1)=yes
     4583
     4584  # On some targets, GNU ld is compatible enough with the native linker
     4585  # that we're better off using the native interface for both.
     4586  lt_use_gnu_ld_interface=no
    42854587  if test "$with_gnu_ld" = yes; then
     4588    case $host_os in
     4589      aix*)
     4590        # The AIX port of GNU ld has always aspired to compatibility
     4591        # with the native linker.  However, as the warning in the GNU ld
     4592        # block says, versions before 2.19.5* couldn't really create working
     4593        # shared libraries, regardless of the interface used.
     4594        case `$LD -v 2>&1` in
     4595          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
     4596          *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
     4597          *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
     4598          *)
     4599            lt_use_gnu_ld_interface=yes
     4600            ;;
     4601        esac
     4602        ;;
     4603      *)
     4604        lt_use_gnu_ld_interface=yes
     4605        ;;
     4606    esac
     4607  fi
     4608
     4609  if test "$lt_use_gnu_ld_interface" = yes; then
    42864610    # If archive_cmds runs LD, not CC, wlarc should be empty
    42874611    wlarc='${wl}'
     
    43174641        cat <<_LT_EOF 1>&2
    43184642
    4319 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
     4643*** Warning: the GNU linker, at least up to release 2.19, is reported
    43204644*** to be unable to reliably create shared libraries on AIX.
    43214645*** Therefore, libtool is disabling shared libraries support.  If you
    4322 *** really care for shared libraries, you may want to modify your PATH
    4323 *** so that a non-GNU linker is found, and then restart.
     4646*** really care for shared libraries, you may want to install binutils
     4647*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
     4648*** You will then need to restart the configuration process.
    43244649
    43254650_LT_EOF
     
    43574682      # as there is no search path for DLLs.
    43584683      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     4684      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
    43594685      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    43604686      _LT_TAGVAR(always_export_symbols, $1)=no
    43614687      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    4362       _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'
     4688      _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'
     4689      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
    43634690
    43644691      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     
    43784705      ;;
    43794706
     4707    haiku*)
     4708      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4709      _LT_TAGVAR(link_all_deplibs, $1)=yes
     4710      ;;
     4711
    43804712    interix[[3-9]]*)
    43814713      _LT_TAGVAR(hardcode_direct, $1)=no
     
    44034735         && test "$tmp_diet" = no
    44044736      then
    4405         tmp_addflag=
     4737        tmp_addflag=' $pic_flag'
    44064738        tmp_sharedflag='-shared'
    44074739        case $cc_basename,$host_cpu in
    44084740        pgcc*)                          # Portland Group C compiler
    4409           _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     4741          _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'
    44104742          tmp_addflag=' $pic_flag'
    44114743          ;;
    4412         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
    4413           _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     4744        pgf77* | pgf90* | pgf95* | pgfortran*)
     4745                                        # Portland Group f77 and f90 compilers
     4746          _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'
    44144747          tmp_addflag=' $pic_flag -Mnomain' ;;
    44154748        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
     
    44224755          _LT_TAGVAR(whole_archive_flag_spec, $1)=
    44234756          tmp_sharedflag='--shared' ;;
    4424         xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
     4757        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
    44254758          tmp_sharedflag='-qmkshrobj'
    44264759          tmp_addflag= ;;
     4760        nvcc*)  # Cuda Compiler Driver 2.2
     4761          _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'
     4762          _LT_TAGVAR(compiler_needs_object, $1)=yes
     4763          ;;
    44274764        esac
    44284765        case `$CC -V 2>&1 | sed 5q` in
    44294766        *Sun\ C*)                       # Sun C 5.9
    4430           _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     4767          _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'
    44314768          _LT_TAGVAR(compiler_needs_object, $1)=yes
    44324769          tmp_sharedflag='-G' ;;
     
    44444781
    44454782        case $cc_basename in
    4446         xlf*)
     4783        xlf* | bgf* | bgxlf* | mpixlf*)
    44474784          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
    44484785          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
    44494786          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
    44504787          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
    4451           _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
     4788          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
    44524789          if test "x$supports_anon_versioning" = xyes; then
    44534790            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
    44544791              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    44554792              echo "local: *; };" >> $output_objdir/$libname.ver~
    4456               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
     4793              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
    44574794          fi
    44584795          ;;
     
    44634800      ;;
    44644801
    4465     netbsd* | netbsdelf*-gnu)
     4802    netbsd*)
    44664803      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    44674804        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    44684805        wlarc=
    44694806      else
    4470         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    4471         _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'
     4807        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4808        _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'
    44724809      fi
    44734810      ;;
     
    44874824_LT_EOF
    44884825      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    4489         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    4490         _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'
     4826        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4827        _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'
    44914828      else
    44924829        _LT_TAGVAR(ld_shlibs, $1)=no
     
    45344871    *)
    45354872      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    4536         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    4537         _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'
     4873        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4874        _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'
    45384875      else
    45394876        _LT_TAGVAR(ld_shlibs, $1)=no
     
    45754912        # If we're using GNU nm, then we don't want the "-C" option.
    45764913        # -C means demangle to AIX nm, but means don't demangle with GNU nm
     4914        # Also, AIX nm treats weak defined symbols like other global
     4915        # defined symbols, whereas GNU nm marks them as "W".
    45774916        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    4578           _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     4917          _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'
    45794918        else
    45804919          _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'
     
    46384977          shared_flag="$shared_flag "'${wl}-G'
    46394978        fi
    4640         _LT_TAGVAR(link_all_deplibs, $1)=no
    46414979      else
    46424980        # not using gcc
     
    46645002        # Determine the default libpath from the value encoded in an
    46655003        # empty executable.
    4666         _LT_SYS_MODULE_PATH_AIX
     5004        _LT_SYS_MODULE_PATH_AIX([$1])
    46675005        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    4668         _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     5006        _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"
    46695007      else
    46705008        if test "$host_cpu" = ia64; then
     
    46755013         # Determine the default libpath from the value encoded in an
    46765014         # empty executable.
    4677          _LT_SYS_MODULE_PATH_AIX
     5015         _LT_SYS_MODULE_PATH_AIX([$1])
    46785016         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    46795017          # Warning - without using the other run time loading flags,
     
    46815019          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    46825020          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    4683           # Exported symbols can be pulled into shared objects from archives
    4684           _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     5021          if test "$with_gnu_ld" = yes; then
     5022            # We only use this code for GNU lds that support --whole-archive.
     5023            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     5024          else
     5025            # Exported symbols can be pulled into shared objects from archives
     5026            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     5027          fi
    46855028          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    46865029          # This is similar to how AIX traditionally builds its shared libraries.
     
    47145057      # hardcode_libdir_flag_spec is actually meaningless, as there is
    47155058      # no search path for DLLs.
    4716       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
    4717       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    4718       # Tell ltmain to make .lib files, not .a files.
    4719       libext=lib
    4720       # Tell ltmain to make .dll files, not .so files.
    4721       shrext_cmds=".dll"
    4722       # FIXME: Setting linknames here is a bad hack.
    4723       _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
    4724       # The linker will automatically build a .lib file if we build a DLL.
    4725       _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
    4726       # FIXME: Should let the user specify the lib program.
    4727       _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
    4728       _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
    4729       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5059      case $cc_basename in
     5060      cl*)
     5061        # Native MSVC
     5062        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     5063        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     5064        _LT_TAGVAR(always_export_symbols, $1)=yes
     5065        _LT_TAGVAR(file_list_spec, $1)='@'
     5066        # Tell ltmain to make .lib files, not .a files.
     5067        libext=lib
     5068        # Tell ltmain to make .dll files, not .so files.
     5069        shrext_cmds=".dll"
     5070        # FIXME: Setting linknames here is a bad hack.
     5071        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     5072        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     5073            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     5074          else
     5075            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     5076          fi~
     5077          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     5078          linknames='
     5079        # The linker will not automatically build a static lib if we build a DLL.
     5080        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     5081        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5082        _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'
     5083        # Don't use ranlib
     5084        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
     5085        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
     5086          lt_tool_outputfile="@TOOL_OUTPUT@"~
     5087          case $lt_outputfile in
     5088            *.exe|*.EXE) ;;
     5089            *)
     5090              lt_outputfile="$lt_outputfile.exe"
     5091              lt_tool_outputfile="$lt_tool_outputfile.exe"
     5092              ;;
     5093          esac~
     5094          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     5095            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     5096            $RM "$lt_outputfile.manifest";
     5097          fi'
     5098        ;;
     5099      *)
     5100        # Assume MSVC wrapper
     5101        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     5102        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     5103        # Tell ltmain to make .lib files, not .a files.
     5104        libext=lib
     5105        # Tell ltmain to make .dll files, not .so files.
     5106        shrext_cmds=".dll"
     5107        # FIXME: Setting linknames here is a bad hack.
     5108        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
     5109        # The linker will automatically build a .lib file if we build a DLL.
     5110        _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     5111        # FIXME: Should let the user specify the lib program.
     5112        _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
     5113        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5114        ;;
     5115      esac
    47305116      ;;
    47315117
     
    47655151    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    47665152    freebsd* | dragonfly*)
    4767       _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     5153      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    47685154      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    47695155      _LT_TAGVAR(hardcode_direct, $1)=yes
     
    47735159    hpux9*)
    47745160      if test "$GCC" = yes; then
    4775         _LT_TAGVAR(archive_cmds, $1)='$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'
     5161        _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'
    47765162      else
    47775163        _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'
     
    47885174
    47895175    hpux10*)
    4790       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    4791         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5176      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     5177        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    47925178      else
    47935179        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     
    48075193
    48085194    hpux11*)
    4809       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     5195      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
    48105196        case $host_cpu in
    48115197        hppa*64*)
     
    48135199          ;;
    48145200        ia64*)
    4815           _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     5201          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    48165202          ;;
    48175203        *)
    4818           _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5204          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    48195205          ;;
    48205206        esac
     
    48285214          ;;
    48295215        *)
    4830           _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5216        m4_if($1, [], [
     5217          # Older versions of the 11.00 compiler do not understand -b yet
     5218          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
     5219          _LT_LINKER_OPTION([if $CC understands -b],
     5220            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
     5221            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
     5222            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
     5223          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
    48315224          ;;
    48325225        esac
     
    48565249    irix5* | irix6* | nonstopux*)
    48575250      if test "$GCC" = yes; then
    4858         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     5251        _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'
    48595252        # Try to use the -exported_symbol ld option, if it does not
    48605253        # work, assume that -exports_file does not work either and
    48615254        # implicitly export all symbols.
    4862         save_LDFLAGS="$LDFLAGS"
    4863         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
    4864         AC_LINK_IFELSE(int foo(void) {},
    4865           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
    4866         )
    4867         LDFLAGS="$save_LDFLAGS"
     5255        # This should be the same for all languages, so no per-tag cache variable.
     5256        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
     5257          [lt_cv_irix_exported_symbol],
     5258          [save_LDFLAGS="$LDFLAGS"
     5259           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
     5260           AC_LINK_IFELSE(
     5261             [AC_LANG_SOURCE(
     5262                [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
     5263                              [C++], [[int foo (void) { return 0; }]],
     5264                              [Fortran 77], [[
     5265      subroutine foo
     5266      end]],
     5267                              [Fortran], [[
     5268      subroutine foo
     5269      end]])])],
     5270              [lt_cv_irix_exported_symbol=yes],
     5271              [lt_cv_irix_exported_symbol=no])
     5272           LDFLAGS="$save_LDFLAGS"])
     5273        if test "$lt_cv_irix_exported_symbol" = yes; then
     5274          _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'
     5275        fi
    48685276      else
    4869         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
    4870         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
     5277        _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'
     5278        _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'
    48715279      fi
    48725280      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
     
    48775285      ;;
    48785286
    4879     netbsd* | netbsdelf*-gnu)
     5287    netbsd*)
    48805288      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    48815289        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     
    49305338      _LT_TAGVAR(hardcode_minus_L, $1)=yes
    49315339      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    4932       _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'
     5340      _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'
    49335341      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    49345342      ;;
     
    49375345      if test "$GCC" = yes; then
    49385346        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    4939         _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     5347        _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'
    49405348      else
    49415349        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    4942         _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     5350        _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'
    49435351      fi
    49445352      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
     
    49505358      if test "$GCC" = yes; then
    49515359        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    4952         _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     5360        _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'
    49535361        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    49545362      else
    49555363        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    4956         _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     5364        _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'
    49575365        _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~
    4958         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
     5366        $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'
    49595367
    49605368        # Both c and cxx compiler support -rpath directly
     
    49695377      if test "$GCC" = yes; then
    49705378        wlarc='${wl}'
    4971         _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     5379        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    49725380        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    4973           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
     5381          $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'
    49745382      else
    49755383        case `$CC -V 2>&1` in
     
    51475555      # systems, -lgcc has to come before -lc. If gcc already passes -lc
    51485556      # to ld, don't add -lc before -lgcc.
    5149       AC_MSG_CHECKING([whether -lc should be explicitly linked in])
    5150       $RM conftest*
    5151       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    5152 
    5153       if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
    5154         soname=conftest
    5155         lib=conftest
    5156         libobjs=conftest.$ac_objext
    5157         deplibs=
    5158         wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
    5159         pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
    5160         compiler_flags=-v
    5161         linker_flags=-v
    5162         verstring=
    5163         output_objdir=.
    5164         libname=conftest
    5165         lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
    5166         _LT_TAGVAR(allow_undefined_flag, $1)=
    5167         if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
    5168         then
    5169           _LT_TAGVAR(archive_cmds_need_lc, $1)=no
    5170         else
    5171           _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    5172         fi
    5173         _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
    5174       else
    5175         cat conftest.err 1>&5
    5176       fi
    5177       $RM conftest*
    5178       AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
     5557      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
     5558        [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
     5559        [$RM conftest*
     5560        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     5561
     5562        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
     5563          soname=conftest
     5564          lib=conftest
     5565          libobjs=conftest.$ac_objext
     5566          deplibs=
     5567          wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
     5568          pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
     5569          compiler_flags=-v
     5570          linker_flags=-v
     5571          verstring=
     5572          output_objdir=.
     5573          libname=conftest
     5574          lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
     5575          _LT_TAGVAR(allow_undefined_flag, $1)=
     5576          if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
     5577          then
     5578            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     5579          else
     5580            lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
     5581          fi
     5582          _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
     5583        else
     5584          cat conftest.err 1>&5
     5585        fi
     5586        $RM conftest*
     5587        ])
     5588      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
    51795589      ;;
    51805590    esac
     
    52415651_LT_TAGDECL([], [link_all_deplibs], [0],
    52425652    [Whether libtool must link a program against all its dependency libraries])
    5243 _LT_TAGDECL([], [fix_srcfile_path], [1],
    5244     [Fix the shell variable $srcfile for the compiler])
    52455653_LT_TAGDECL([], [always_export_symbols], [0],
    52465654    [Set to "yes" if exported symbols are required])
     
    52535661_LT_TAGDECL([], [prelink_cmds], [2],
    52545662    [Commands necessary for linking programs (against libraries) with templates])
     5663_LT_TAGDECL([], [postlink_cmds], [2],
     5664    [Commands necessary for finishing linking programs])
    52555665_LT_TAGDECL([], [file_list_spec], [1],
    52565666    [Specify filename containing input files])
     
    53425752
    53435753
    5344 # _LT_PROG_CXX
    5345 # ------------
    5346 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
    5347 # compiler, we have our own version here.
    5348 m4_defun([_LT_PROG_CXX],
    5349 [
    5350 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
    5351 AC_PROG_CXX
     5754# _LT_LANG_CXX_CONFIG([TAG])
     5755# --------------------------
     5756# Ensure that the configuration variables for a C++ compiler are suitably
     5757# defined.  These variables are subsequently used by _LT_CONFIG to write
     5758# the compiler configuration to `libtool'.
     5759m4_defun([_LT_LANG_CXX_CONFIG],
     5760[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     5761m4_require([_LT_DECL_EGREP])dnl
     5762m4_require([_LT_PATH_MANIFEST_TOOL])dnl
    53525763if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
    53535764    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     
    53575768  _lt_caught_CXX_error=yes
    53585769fi
    5359 popdef([AC_MSG_ERROR])
    5360 ])# _LT_PROG_CXX
    5361 
    5362 dnl aclocal-1.4 backwards compatibility:
    5363 dnl AC_DEFUN([_LT_PROG_CXX], [])
    5364 
    5365 
    5366 # _LT_LANG_CXX_CONFIG([TAG])
    5367 # --------------------------
    5368 # Ensure that the configuration variables for a C++ compiler are suitably
    5369 # defined.  These variables are subsequently used by _LT_CONFIG to write
    5370 # the compiler configuration to `libtool'.
    5371 m4_defun([_LT_LANG_CXX_CONFIG],
    5372 [AC_REQUIRE([_LT_PROG_CXX])dnl
    5373 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    5374 m4_require([_LT_DECL_EGREP])dnl
    53755770
    53765771AC_LANG_PUSH(C++)
     
    53945789_LT_TAGVAR(link_all_deplibs, $1)=unknown
    53955790_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     5791_LT_TAGVAR(reload_flag, $1)=$reload_flag
     5792_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    53965793_LT_TAGVAR(no_undefined_flag, $1)=
    53975794_LT_TAGVAR(whole_archive_flag_spec, $1)=
     
    54255822  # Allow CC to be a program name with arguments.
    54265823  lt_save_CC=$CC
     5824  lt_save_CFLAGS=$CFLAGS
    54275825  lt_save_LD=$LD
    54285826  lt_save_GCC=$GCC
     
    54425840  test -z "${LDCXX+set}" || LD=$LDCXX
    54435841  CC=${CXX-"c++"}
     5842  CFLAGS=$CXXFLAGS
    54445843  compiler=$CC
    54455844  _LT_TAGVAR(compiler, $1)=$CC
     
    54635862      # archiving commands below assume that GNU ld is being used.
    54645863      if test "$with_gnu_ld" = yes; then
    5465         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5466         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     5864        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5865        _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'
    54675866
    54685867        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    54965895      # what "hidden" libraries, object files and flags are used when
    54975896      # linking a shared library.
    5498       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     5897      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    54995898
    55005899    else
     
    56056004          # Determine the default libpath from the value encoded in an empty
    56066005          # executable.
    5607           _LT_SYS_MODULE_PATH_AIX
     6006          _LT_SYS_MODULE_PATH_AIX([$1])
    56086007          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    56096008
    5610           _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     6009          _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"
    56116010        else
    56126011          if test "$host_cpu" = ia64; then
     
    56176016            # Determine the default libpath from the value encoded in an
    56186017            # empty executable.
    5619             _LT_SYS_MODULE_PATH_AIX
     6018            _LT_SYS_MODULE_PATH_AIX([$1])
    56206019            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    56216020            # Warning - without using the other run time loading flags,
     
    56236022            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    56246023            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    5625             # Exported symbols can be pulled into shared objects from archives
    5626             _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     6024            if test "$with_gnu_ld" = yes; then
     6025              # We only use this code for GNU lds that support --whole-archive.
     6026              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
     6027            else
     6028              # Exported symbols can be pulled into shared objects from archives
     6029              _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
     6030            fi
    56276031            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    56286032            # This is similar to how AIX traditionally builds its shared
     
    56546058
    56556059      cygwin* | mingw* | pw32* | cegcc*)
    5656         # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
    5657         # as there is no search path for DLLs.
    5658         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5659         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    5660         _LT_TAGVAR(always_export_symbols, $1)=no
    5661         _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    5662 
    5663         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
    5664           _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'
    5665           # If the export-symbols file already is a .def file (1st line
    5666           # is EXPORTS), use it as is; otherwise, prepend...
    5667           _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    5668             cp $export_symbols $output_objdir/$soname.def;
    5669           else
    5670             echo EXPORTS > $output_objdir/$soname.def;
    5671             cat $export_symbols >> $output_objdir/$soname.def;
    5672           fi~
    5673           $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'
    5674         else
    5675           _LT_TAGVAR(ld_shlibs, $1)=no
    5676         fi
    5677         ;;
     6060        case $GXX,$cc_basename in
     6061        ,cl* | no,cl*)
     6062          # Native MSVC
     6063          # hardcode_libdir_flag_spec is actually meaningless, as there is
     6064          # no search path for DLLs.
     6065          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
     6066          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     6067          _LT_TAGVAR(always_export_symbols, $1)=yes
     6068          _LT_TAGVAR(file_list_spec, $1)='@'
     6069          # Tell ltmain to make .lib files, not .a files.
     6070          libext=lib
     6071          # Tell ltmain to make .dll files, not .so files.
     6072          shrext_cmds=".dll"
     6073          # FIXME: Setting linknames here is a bad hack.
     6074          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     6075          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6076              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     6077            else
     6078              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     6079            fi~
     6080            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     6081            linknames='
     6082          # The linker will not automatically build a static lib if we build a DLL.
     6083          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     6084          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     6085          # Don't use ranlib
     6086          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
     6087          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
     6088            lt_tool_outputfile="@TOOL_OUTPUT@"~
     6089            case $lt_outputfile in
     6090              *.exe|*.EXE) ;;
     6091              *)
     6092                lt_outputfile="$lt_outputfile.exe"
     6093                lt_tool_outputfile="$lt_tool_outputfile.exe"
     6094                ;;
     6095            esac~
     6096            func_to_tool_file "$lt_outputfile"~
     6097            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     6098              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     6099              $RM "$lt_outputfile.manifest";
     6100            fi'
     6101          ;;
     6102        *)
     6103          # g++
     6104          # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
     6105          # as there is no search path for DLLs.
     6106          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
     6107          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
     6108          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
     6109          _LT_TAGVAR(always_export_symbols, $1)=no
     6110          _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     6111
     6112          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
     6113            _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'
     6114            # If the export-symbols file already is a .def file (1st line
     6115            # is EXPORTS), use it as is; otherwise, prepend...
     6116            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6117              cp $export_symbols $output_objdir/$soname.def;
     6118            else
     6119              echo EXPORTS > $output_objdir/$soname.def;
     6120              cat $export_symbols >> $output_objdir/$soname.def;
     6121            fi~
     6122            $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'
     6123          else
     6124            _LT_TAGVAR(ld_shlibs, $1)=no
     6125          fi
     6126          ;;
     6127        esac
     6128        ;;
    56786129      darwin* | rhapsody*)
    56796130        _LT_DARWIN_LINKER_FEATURES($1)
     
    57176168        ;;
    57186169
     6170      haiku*)
     6171        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6172        _LT_TAGVAR(link_all_deplibs, $1)=yes
     6173        ;;
     6174
    57196175      hpux9*)
    57206176        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     
    57416197            # from the output so that they don't get included in the library
    57426198            # dependencies.
    5743             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; $ECHO "X$list" | $Xsed'
     6199            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"'
    57446200            ;;
    57456201          *)
    57466202            if test "$GXX" = yes; then
    5747               _LT_TAGVAR(archive_cmds, $1)='$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'
     6203              _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'
    57486204            else
    57496205              # FIXME: insert proper C++ library support
     
    58066262            # from the output so that they don't get included in the library
    58076263            # dependencies.
    5808             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 "X$list" | $Xsed'
     6264            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"'
    58096265            ;;
    58106266          *)
     
    58166272                    ;;
    58176273                  ia64*)
    5818                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6274                    _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'
    58196275                    ;;
    58206276                  *)
    5821                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6277                    _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'
    58226278                    ;;
    58236279                esac
     
    58496305          CC*)
    58506306            # SGI C++
    5851             _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     6307            _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'
    58526308
    58536309            # Archives containing C++ object files must be created using
     
    58606316            if test "$GXX" = yes; then
    58616317              if test "$with_gnu_ld" = no; then
    5862                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     6318                _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'
    58636319              else
    5864                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
     6320                _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'
    58656321              fi
    58666322            fi
     
    58916347            # from the output so that they don't get included in the library
    58926348            # dependencies.
    5893             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 "X$list" | $Xsed'
     6349            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"'
    58946350
    58956351            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     
    59286384            # Portland Group C++ compiler
    59296385            case `$CC -V` in
    5930             *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
     6386            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
    59316387              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
    59326388                rm -rf $tpldir~
    59336389                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
    5934                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
     6390                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
    59356391              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
    59366392                rm -rf $tpldir~
    59376393                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
    5938                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
     6394                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
    59396395                $RANLIB $oldlib'
    59406396              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
    59416397                rm -rf $tpldir~
    59426398                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
    5943                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     6399                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
    59446400              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
    59456401                rm -rf $tpldir~
    59466402                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
    5947                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
     6403                $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'
    59486404              ;;
    5949             *) # Version 6 will use weak symbols
     6405            *) # Version 6 and above use weak symbols
    59506406              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
    59516407              _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'
     
    59556411            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
    59566412            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    5957             _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     6413            _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'
    59586414            ;;
    59596415          cxx*)
     
    59746430            # from the output so that they don't get included in the library
    59756431            # dependencies.
    5976             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     6432            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'
    59776433            ;;
    5978           xl*)
     6434          xl* | mpixl* | bgxl*)
    59796435            # IBM XL 8.0 on PPC, with GNU ld
    59806436            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    59966452              _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'
    59976453              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    5998               _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
     6454              _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'
    59996455              _LT_TAGVAR(compiler_needs_object, $1)=yes
    60006456
     
    60026458              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
    60036459              # would be better.
    6004               output_verbose_link_cmd='echo'
     6460              output_verbose_link_cmd='func_echo_all'
    60056461
    60066462              # Archives containing C++ object files must be created using
     
    60716527            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    60726528          fi
    6073           output_verbose_link_cmd=echo
     6529          output_verbose_link_cmd=func_echo_all
    60746530        else
    60756531          _LT_TAGVAR(ld_shlibs, $1)=no
     
    61066562              osf3*)
    61076563                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    6108                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     6564                _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'
    61096565                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    61106566                ;;
    61116567              *)
    61126568                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    6113                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     6569                _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'
    61146570                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    61156571                  echo "-hidden">> $lib.exp~
    6116                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
     6572                  $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~
    61176573                  $RM $lib.exp'
    61186574                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
     
    61306586            # from the output so that they don't get included in the library
    61316587            # dependencies.
    6132             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
     6588            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"'
    61336589            ;;
    61346590          *)
     
    61376593              case $host in
    61386594                osf3*)
    6139                   _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     6595                  _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'
    61406596                  ;;
    61416597                *)
    6142                   _LT_TAGVAR(archive_cmds, $1)='$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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     6598                  _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'
    61436599                  ;;
    61446600              esac
     
    61506606              # what "hidden" libraries, object files and flags are used when
    61516607              # linking a shared library.
    6152               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     6608              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    61536609
    61546610            else
     
    61866642      solaris*)
    61876643        case $cc_basename in
    6188           CC*)
     6644          CC* | sunCC*)
    61896645            # Sun C++ 4.2, 5.x and Centerline C++
    61906646            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
     
    62076663            _LT_TAGVAR(link_all_deplibs, $1)=yes
    62086664
    6209             output_verbose_link_cmd='echo'
     6665            output_verbose_link_cmd='func_echo_all'
    62106666
    62116667            # Archives containing C++ object files must be created using
     
    62276683              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
    62286684              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
    6229                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     6685                _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'
    62306686                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    6231                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
     6687                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
    62326688
    62336689                # Commands to make compiler produce verbose output that lists
    62346690                # what "hidden" libraries, object files and flags are used when
    62356691                # linking a shared library.
    6236                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     6692                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    62376693              else
    62386694                # g++ 2.7 appears to require `-G' NOT `-shared' on this
     
    62456701                # what "hidden" libraries, object files and flags are used when
    62466702                # linking a shared library.
    6247                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
     6703                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    62486704              fi
    62496705
     
    62996755            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    63006756            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6757            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
     6758              '"$_LT_TAGVAR(old_archive_cmds, $1)"
     6759            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
     6760              '"$_LT_TAGVAR(reload_cmds, $1)"
    63016761            ;;
    63026762          *)
     
    63546814
    63556815  CC=$lt_save_CC
     6816  CFLAGS=$lt_save_CFLAGS
    63566817  LDCXX=$LD
    63576818  LD=$lt_save_LD
     
    63686829
    63696830
     6831# _LT_FUNC_STRIPNAME_CNF
     6832# ----------------------
     6833# func_stripname_cnf prefix suffix name
     6834# strip PREFIX and SUFFIX off of NAME.
     6835# PREFIX and SUFFIX must not contain globbing or regex special
     6836# characters, hashes, percent signs, but SUFFIX may contain a leading
     6837# dot (in which case that matches only a dot).
     6838#
     6839# This function is identical to the (non-XSI) version of func_stripname,
     6840# except this one can be used by m4 code that may be executed by configure,
     6841# rather than the libtool script.
     6842m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
     6843AC_REQUIRE([_LT_DECL_SED])
     6844AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
     6845func_stripname_cnf ()
     6846{
     6847  case ${2} in
     6848  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     6849  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     6850  esac
     6851} # func_stripname_cnf
     6852])# _LT_FUNC_STRIPNAME_CNF
     6853
    63706854# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
    63716855# ---------------------------------
     
    63766860m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
    63776861[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
     6862AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
    63786863# Dependencies to place before and after the object being linked:
    63796864_LT_TAGVAR(predep_objects, $1)=
     
    64266911_LT_EOF
    64276912])
     6913
     6914_lt_libdeps_save_CFLAGS=$CFLAGS
     6915case "$CC $CFLAGS " in #(
     6916*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
     6917*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
     6918esac
     6919
    64286920dnl Parse the compiler output and extract the necessary
    64296921dnl objects, libraries and library flags.
     
    64376929
    64386930  for p in `eval "$output_verbose_link_cmd"`; do
    6439     case $p in
     6931    case ${prev}${p} in
    64406932
    64416933    -L* | -R* | -l*)
     
    64466938         prev=$p
    64476939         continue
    6448        else
    6449          prev=
    64506940       fi
    64516941
     6942       # Expand the sysroot to ease extracting the directories later.
     6943       if test -z "$prev"; then
     6944         case $p in
     6945         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
     6946         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
     6947         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
     6948         esac
     6949       fi
     6950       case $p in
     6951       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
     6952       esac
    64526953       if test "$pre_test_object_deps_done" = no; then
    6453          case $p in
    6454          -L* | -R*)
     6954         case ${prev} in
     6955         -L | -R)
    64556956           # Internal compiler library paths should come after those
    64566957           # provided the user.  The postdeps already come after the
     
    64726973         fi
    64736974       fi
     6975       prev=
    64746976       ;;
    64756977
     6978    *.lto.$objext) ;; # Ignore GCC LTO objects
    64766979    *.$objext)
    64776980       # This assumes that the test object file only shows up
     
    65097012
    65107013$RM -f confest.$objext
     7014CFLAGS=$_lt_libdeps_save_CFLAGS
    65117015
    65127016# PORTME: override above test on systems where it is broken
     
    65457049solaris*)
    65467050  case $cc_basename in
    6547   CC*)
     7051  CC* | sunCC*)
    65487052    # The more standards-conforming stlport4 library is
    65497053    # incompatible with the Cstd library. Avoid specifying
     
    65897093
    65907094
    6591 # _LT_PROG_F77
    6592 # ------------
    6593 # Since AC_PROG_F77 is broken, in that it returns the empty string
    6594 # if there is no fortran compiler, we have our own version here.
    6595 m4_defun([_LT_PROG_F77],
    6596 [
    6597 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
    6598 AC_PROG_F77
    6599 if test -z "$F77" || test "X$F77" = "Xno"; then
    6600   _lt_disable_F77=yes
    6601 fi
    6602 popdef([AC_MSG_ERROR])
    6603 ])# _LT_PROG_F77
    6604 
    6605 dnl aclocal-1.4 backwards compatibility:
    6606 dnl AC_DEFUN([_LT_PROG_F77], [])
    6607 
    6608 
    66097095# _LT_LANG_F77_CONFIG([TAG])
    66107096# --------------------------
     
    66137099# to write the compiler configuration to `libtool'.
    66147100m4_defun([_LT_LANG_F77_CONFIG],
    6615 [AC_REQUIRE([_LT_PROG_F77])dnl
    6616 AC_LANG_PUSH(Fortran 77)
     7101[AC_LANG_PUSH(Fortran 77)
     7102if test -z "$F77" || test "X$F77" = "Xno"; then
     7103  _lt_disable_F77=yes
     7104fi
    66177105
    66187106_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     
    66337121_LT_TAGVAR(link_all_deplibs, $1)=unknown
    66347122_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7123_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7124_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    66357125_LT_TAGVAR(no_undefined_flag, $1)=
    66367126_LT_TAGVAR(whole_archive_flag_spec, $1)=
     
    66727162  lt_save_CC="$CC"
    66737163  lt_save_GCC=$GCC
     7164  lt_save_CFLAGS=$CFLAGS
    66747165  CC=${F77-"f77"}
     7166  CFLAGS=$FFLAGS
    66757167  compiler=$CC
    66767168  _LT_TAGVAR(compiler, $1)=$CC
     
    67267218  GCC=$lt_save_GCC
    67277219  CC="$lt_save_CC"
     7220  CFLAGS="$lt_save_CFLAGS"
    67287221fi # test "$_lt_disable_F77" != yes
    67297222
    67307223AC_LANG_POP
    67317224])# _LT_LANG_F77_CONFIG
    6732 
    6733 
    6734 # _LT_PROG_FC
    6735 # -----------
    6736 # Since AC_PROG_FC is broken, in that it returns the empty string
    6737 # if there is no fortran compiler, we have our own version here.
    6738 m4_defun([_LT_PROG_FC],
    6739 [
    6740 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
    6741 AC_PROG_FC
    6742 if test -z "$FC" || test "X$FC" = "Xno"; then
    6743   _lt_disable_FC=yes
    6744 fi
    6745 popdef([AC_MSG_ERROR])
    6746 ])# _LT_PROG_FC
    6747 
    6748 dnl aclocal-1.4 backwards compatibility:
    6749 dnl AC_DEFUN([_LT_PROG_FC], [])
    67507225
    67517226
     
    67567231# to write the compiler configuration to `libtool'.
    67577232m4_defun([_LT_LANG_FC_CONFIG],
    6758 [AC_REQUIRE([_LT_PROG_FC])dnl
    6759 AC_LANG_PUSH(Fortran)
     7233[AC_LANG_PUSH(Fortran)
     7234
     7235if test -z "$FC" || test "X$FC" = "Xno"; then
     7236  _lt_disable_FC=yes
     7237fi
    67607238
    67617239_LT_TAGVAR(archive_cmds_need_lc, $1)=no
     
    67767254_LT_TAGVAR(link_all_deplibs, $1)=unknown
    67777255_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7256_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7257_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    67787258_LT_TAGVAR(no_undefined_flag, $1)=
    67797259_LT_TAGVAR(whole_archive_flag_spec, $1)=
     
    68157295  lt_save_CC="$CC"
    68167296  lt_save_GCC=$GCC
     7297  lt_save_CFLAGS=$CFLAGS
    68177298  CC=${FC-"f95"}
     7299  CFLAGS=$FCFLAGS
    68187300  compiler=$CC
    68197301  GCC=$ac_cv_fc_compiler_gnu
     
    68717353
    68727354  GCC=$lt_save_GCC
    6873   CC="$lt_save_CC"
     7355  CC=$lt_save_CC
     7356  CFLAGS=$lt_save_CFLAGS
    68747357fi # test "$_lt_disable_FC" != yes
    68757358
     
    69087391
    69097392# Allow CC to be a program name with arguments.
    6910 lt_save_CC="$CC"
     7393lt_save_CC=$CC
     7394lt_save_CFLAGS=$CFLAGS
    69117395lt_save_GCC=$GCC
    69127396GCC=yes
    69137397CC=${GCJ-"gcj"}
     7398CFLAGS=$GCJFLAGS
    69147399compiler=$CC
    69157400_LT_TAGVAR(compiler, $1)=$CC
     
    69217406
    69227407_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
     7408_LT_TAGVAR(reload_flag, $1)=$reload_flag
     7409_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
    69237410
    69247411if test -n "$compiler"; then
     
    69367423
    69377424GCC=$lt_save_GCC
    6938 CC="$lt_save_CC"
     7425CC=$lt_save_CC
     7426CFLAGS=$lt_save_CFLAGS
    69397427])# _LT_LANG_GCJ_CONFIG
    69407428
     
    69717459# Allow CC to be a program name with arguments.
    69727460lt_save_CC="$CC"
     7461lt_save_CFLAGS=$CFLAGS
    69737462lt_save_GCC=$GCC
    69747463GCC=
    69757464CC=${RC-"windres"}
     7465CFLAGS=
    69767466compiler=$CC
    69777467_LT_TAGVAR(compiler, $1)=$CC
     
    69867476GCC=$lt_save_GCC
    69877477AC_LANG_RESTORE
    6988 CC="$lt_save_CC"
     7478CC=$lt_save_CC
     7479CFLAGS=$lt_save_CFLAGS
    69897480])# _LT_LANG_RC_CONFIG
    69907481
     
    70457536])
    70467537
     7538# _LT_DECL_DLLTOOL
     7539# ----------------
     7540# Ensure DLLTOOL variable is set.
     7541m4_defun([_LT_DECL_DLLTOOL],
     7542[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
     7543test -z "$DLLTOOL" && DLLTOOL=dlltool
     7544_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
     7545AC_SUBST([DLLTOOL])
     7546])
    70477547
    70487548# _LT_DECL_SED
     
    71367636xsi_shell=no
    71377637( _lt_dummy="a/b/c"
    7138   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
    7139       = c,a/b,, \
     7638  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
     7639      = c,a/b,b/c, \
    71407640    && eval 'test $(( 1 + 1 )) -eq 2 \
    71417641    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
     
    71767676
    71777677
    7178 # _LT_PROG_XSI_SHELLFNS
    7179 # ---------------------
    7180 # Bourne and XSI compatible variants of some useful shell functions.
    7181 m4_defun([_LT_PROG_XSI_SHELLFNS],
    7182 [case $xsi_shell in
    7183   yes)
    7184     cat << \_LT_EOF >> "$cfgfile"
    7185 
    7186 # func_dirname file append nondir_replacement
    7187 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
    7188 # otherwise set result to NONDIR_REPLACEMENT.
    7189 func_dirname ()
    7190 {
    7191   case ${1} in
    7192     */*) func_dirname_result="${1%/*}${2}" ;;
    7193     *  ) func_dirname_result="${3}" ;;
    7194   esac
    7195 }
    7196 
    7197 # func_basename file
    7198 func_basename ()
    7199 {
    7200   func_basename_result="${1##*/}"
    7201 }
    7202 
    7203 # func_dirname_and_basename file append nondir_replacement
    7204 # perform func_basename and func_dirname in a single function
    7205 # call:
    7206 #   dirname:  Compute the dirname of FILE.  If nonempty,
    7207 #             add APPEND to the result, otherwise set result
    7208 #             to NONDIR_REPLACEMENT.
    7209 #             value returned in "$func_dirname_result"
    7210 #   basename: Compute filename of FILE.
    7211 #             value retuned in "$func_basename_result"
    7212 # Implementation must be kept synchronized with func_dirname
    7213 # and func_basename. For efficiency, we do not delegate to
    7214 # those functions but instead duplicate the functionality here.
    7215 func_dirname_and_basename ()
    7216 {
    7217   case ${1} in
    7218     */*) func_dirname_result="${1%/*}${2}" ;;
    7219     *  ) func_dirname_result="${3}" ;;
    7220   esac
    7221   func_basename_result="${1##*/}"
    7222 }
    7223 
    7224 # func_stripname prefix suffix name
    7225 # strip PREFIX and SUFFIX off of NAME.
    7226 # PREFIX and SUFFIX must not contain globbing or regex special
    7227 # characters, hashes, percent signs, but SUFFIX may contain a leading
    7228 # dot (in which case that matches only a dot).
    7229 func_stripname ()
    7230 {
    7231   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
    7232   # positional parameters, so assign one to ordinary parameter first.
    7233   func_stripname_result=${3}
    7234   func_stripname_result=${func_stripname_result#"${1}"}
    7235   func_stripname_result=${func_stripname_result%"${2}"}
    7236 }
    7237 
    7238 # func_opt_split
    7239 func_opt_split ()
    7240 {
    7241   func_opt_split_opt=${1%%=*}
    7242   func_opt_split_arg=${1#*=}
    7243 }
    7244 
    7245 # func_lo2o object
    7246 func_lo2o ()
    7247 {
    7248   case ${1} in
    7249     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
    7250     *)    func_lo2o_result=${1} ;;
    7251   esac
    7252 }
    7253 
    7254 # func_xform libobj-or-source
    7255 func_xform ()
    7256 {
    7257   func_xform_result=${1%.*}.lo
    7258 }
    7259 
    7260 # func_arith arithmetic-term...
    7261 func_arith ()
    7262 {
    7263   func_arith_result=$(( $[*] ))
    7264 }
    7265 
    7266 # func_len string
    7267 # STRING may not start with a hyphen.
    7268 func_len ()
    7269 {
    7270   func_len_result=${#1}
    7271 }
    7272 
    7273 _LT_EOF
     7678# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
     7679# ------------------------------------------------------
     7680# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
     7681# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
     7682m4_defun([_LT_PROG_FUNCTION_REPLACE],
     7683[dnl {
     7684sed -e '/^$1 ()$/,/^} # $1 /c\
     7685$1 ()\
     7686{\
     7687m4_bpatsubsts([$2], [$], [\\], [^\([     ]\)], [\\\1])
     7688} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
     7689  && mv -f "$cfgfile.tmp" "$cfgfile" \
     7690    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7691test 0 -eq $? || _lt_function_replace_fail=:
     7692])
     7693
     7694
     7695# _LT_PROG_REPLACE_SHELLFNS
     7696# -------------------------
     7697# Replace existing portable implementations of several shell functions with
     7698# equivalent extended shell implementations where those features are available..
     7699m4_defun([_LT_PROG_REPLACE_SHELLFNS],
     7700[if test x"$xsi_shell" = xyes; then
     7701  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
     7702    case ${1} in
     7703      */*) func_dirname_result="${1%/*}${2}" ;;
     7704      *  ) func_dirname_result="${3}" ;;
     7705    esac])
     7706
     7707  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
     7708    func_basename_result="${1##*/}"])
     7709
     7710  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
     7711    case ${1} in
     7712      */*) func_dirname_result="${1%/*}${2}" ;;
     7713      *  ) func_dirname_result="${3}" ;;
     7714    esac
     7715    func_basename_result="${1##*/}"])
     7716
     7717  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
     7718    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
     7719    # positional parameters, so assign one to ordinary parameter first.
     7720    func_stripname_result=${3}
     7721    func_stripname_result=${func_stripname_result#"${1}"}
     7722    func_stripname_result=${func_stripname_result%"${2}"}])
     7723
     7724  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
     7725    func_split_long_opt_name=${1%%=*}
     7726    func_split_long_opt_arg=${1#*=}])
     7727
     7728  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
     7729    func_split_short_opt_arg=${1#??}
     7730    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
     7731
     7732  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
     7733    case ${1} in
     7734      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
     7735      *)    func_lo2o_result=${1} ;;
     7736    esac])
     7737
     7738  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
     7739
     7740  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
     7741
     7742  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
     7743fi
     7744
     7745if test x"$lt_shell_append" = xyes; then
     7746  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
     7747
     7748  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
     7749    func_quote_for_eval "${2}"
     7750dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
     7751    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
     7752
     7753  # Save a `func_append' function call where possible by direct use of '+='
     7754  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
     7755    && mv -f "$cfgfile.tmp" "$cfgfile" \
     7756      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7757  test 0 -eq $? || _lt_function_replace_fail=:
     7758else
     7759  # Save a `func_append' function call even when '+=' is not available
     7760  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
     7761    && mv -f "$cfgfile.tmp" "$cfgfile" \
     7762      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
     7763  test 0 -eq $? || _lt_function_replace_fail=:
     7764fi
     7765
     7766if test x"$_lt_function_replace_fail" = x":"; then
     7767  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
     7768fi
     7769])
     7770
     7771# _LT_PATH_CONVERSION_FUNCTIONS
     7772# -----------------------------
     7773# Determine which file name conversion functions should be used by
     7774# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
     7775# for certain cross-compile configurations and native mingw.
     7776m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
     7777[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     7778AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     7779AC_MSG_CHECKING([how to convert $build file names to $host format])
     7780AC_CACHE_VAL(lt_cv_to_host_file_cmd,
     7781[case $host in
     7782  *-*-mingw* )
     7783    case $build in
     7784      *-*-mingw* ) # actually msys
     7785        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
     7786        ;;
     7787      *-*-cygwin* )
     7788        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
     7789        ;;
     7790      * ) # otherwise, assume *nix
     7791        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
     7792        ;;
     7793    esac
    72747794    ;;
    7275   *) # Bourne compatible functions.
    7276     cat << \_LT_EOF >> "$cfgfile"
    7277 
    7278 # func_dirname file append nondir_replacement
    7279 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
    7280 # otherwise set result to NONDIR_REPLACEMENT.
    7281 func_dirname ()
    7282 {
    7283   # Extract subdirectory from the argument.
    7284   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
    7285   if test "X$func_dirname_result" = "X${1}"; then
    7286     func_dirname_result="${3}"
    7287   else
    7288     func_dirname_result="$func_dirname_result${2}"
    7289   fi
    7290 }
    7291 
    7292 # func_basename file
    7293 func_basename ()
    7294 {
    7295   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
    7296 }
    7297 
    7298 dnl func_dirname_and_basename
    7299 dnl A portable version of this function is already defined in general.m4sh
    7300 dnl so there is no need for it here.
    7301 
    7302 # func_stripname prefix suffix name
    7303 # strip PREFIX and SUFFIX off of NAME.
    7304 # PREFIX and SUFFIX must not contain globbing or regex special
    7305 # characters, hashes, percent signs, but SUFFIX may contain a leading
    7306 # dot (in which case that matches only a dot).
    7307 # func_strip_suffix prefix name
    7308 func_stripname ()
    7309 {
    7310   case ${2} in
    7311     .*) func_stripname_result=`$ECHO "X${3}" \
    7312            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
    7313     *)  func_stripname_result=`$ECHO "X${3}" \
    7314            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
    7315   esac
    7316 }
    7317 
    7318 # sed scripts:
    7319 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
    7320 my_sed_long_arg='1s/^-[[^=]]*=//'
    7321 
    7322 # func_opt_split
    7323 func_opt_split ()
    7324 {
    7325   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
    7326   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
    7327 }
    7328 
    7329 # func_lo2o object
    7330 func_lo2o ()
    7331 {
    7332   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
    7333 }
    7334 
    7335 # func_xform libobj-or-source
    7336 func_xform ()
    7337 {
    7338   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
    7339 }
    7340 
    7341 # func_arith arithmetic-term...
    7342 func_arith ()
    7343 {
    7344   func_arith_result=`expr "$[@]"`
    7345 }
    7346 
    7347 # func_len string
    7348 # STRING may not start with a hyphen.
    7349 func_len ()
    7350 {
    7351   func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
    7352 }
    7353 
    7354 _LT_EOF
     7795  *-*-cygwin* )
     7796    case $build in
     7797      *-*-mingw* ) # actually msys
     7798        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
     7799        ;;
     7800      *-*-cygwin* )
     7801        lt_cv_to_host_file_cmd=func_convert_file_noop
     7802        ;;
     7803      * ) # otherwise, assume *nix
     7804        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
     7805        ;;
     7806    esac
     7807    ;;
     7808  * ) # unhandled hosts (and "normal" native builds)
     7809    lt_cv_to_host_file_cmd=func_convert_file_noop
     7810    ;;
    73557811esac
    7356 
    7357 case $lt_shell_append in
    7358   yes)
    7359     cat << \_LT_EOF >> "$cfgfile"
    7360 
    7361 # func_append var value
    7362 # Append VALUE to the end of shell variable VAR.
    7363 func_append ()
    7364 {
    7365   eval "$[1]+=\$[2]"
    7366 }
    7367 _LT_EOF
     7812])
     7813to_host_file_cmd=$lt_cv_to_host_file_cmd
     7814AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
     7815_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
     7816         [0], [convert $build file names to $host format])dnl
     7817
     7818AC_MSG_CHECKING([how to convert $build file names to toolchain format])
     7819AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
     7820[#assume ordinary cross tools, or native build.
     7821lt_cv_to_tool_file_cmd=func_convert_file_noop
     7822case $host in
     7823  *-*-mingw* )
     7824    case $build in
     7825      *-*-mingw* ) # actually msys
     7826        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
     7827        ;;
     7828    esac
    73687829    ;;
    7369   *)
    7370     cat << \_LT_EOF >> "$cfgfile"
    7371 
    7372 # func_append var value
    7373 # Append VALUE to the end of shell variable VAR.
    7374 func_append ()
    7375 {
    7376   eval "$[1]=\$$[1]\$[2]"
    7377 }
    7378 
    7379 _LT_EOF
    7380     ;;
    7381   esac
     7830esac
    73827831])
     7832to_tool_file_cmd=$lt_cv_to_tool_file_cmd
     7833AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
     7834_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
     7835         [0], [convert $build files to toolchain format])dnl
     7836])# _LT_PATH_CONVERSION_FUNCTIONS
    73837837
    73847838# Helper functions for option handling.                    -*- Autoconf -*-
    73857839#
    7386 #   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
     7840#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
     7841#   Inc.
    73877842#   Written by Gary V. Vaughan, 2004
    73887843#
     
    73917846# modifications, as long as this notice is preserved.
    73927847
    7393 # serial 6 ltoptions.m4
     7848# serial 7 ltoptions.m4
    73947849
    73957850# This is to help aclocal find these macros, as it can't see m4_define.
     
    75067961
    75077962case $host in
    7508 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
     7963*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
    75097964  AC_CHECK_TOOL(AS, as, false)
    75107965  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
     
    75147969
    75157970test -z "$AS" && AS=as
    7516 _LT_DECL([], [AS],      [0], [Assembler program])dnl
     7971_LT_DECL([], [AS],      [1], [Assembler program])dnl
    75177972
    75187973test -z "$DLLTOOL" && DLLTOOL=dlltool
    7519 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
     7974_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
    75207975
    75217976test -z "$OBJDUMP" && OBJDUMP=objdump
    7522 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
     7977_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
    75237978])# win32-dll
    75247979
     
    78788333# modifications, as long as this notice is preserved.
    78798334
    7880 # Generated from ltversion.in.
    7881 
    7882 # serial 3017 ltversion.m4
     8335# @configure_input@
     8336
     8337# serial 3293 ltversion.m4
    78838338# This file is part of GNU Libtool
    78848339
    7885 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
    7886 m4_define([LT_PACKAGE_REVISION], [1.3017])
     8340m4_define([LT_PACKAGE_VERSION], [2.4])
     8341m4_define([LT_PACKAGE_REVISION], [1.3293])
    78878342
    78888343AC_DEFUN([LTVERSION_VERSION],
    7889 [macro_version='2.2.6b'
    7890 macro_revision='1.3017'
     8344[macro_version='2.4'
     8345macro_revision='1.3293'
    78918346_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
    78928347_LT_DECL(, macro_revision, 0)
     
    78958350# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
    78968351#
    7897 #   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
     8352#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
    78988353#   Written by Scott James Remnant, 2004.
    78998354#
     
    79028357# modifications, as long as this notice is preserved.
    79038358
    7904 # serial 4 lt~obsolete.m4
     8359# serial 5 lt~obsolete.m4
    79058360
    79068361# These exist entirely to fool aclocal when bootstrapping libtool.
     
    79728427m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
    79738428m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
    7974 m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
    79758429m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
    79768430m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
     
    79858439m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
    79868440m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
     8441m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
     8442m4_ifndef([_LT_AC_PROG_CXXCPP],         [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
     8443m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
     8444m4_ifndef([_LT_PROG_ECHO_BACKSLASH],    [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
     8445m4_ifndef([_LT_PROG_F77],               [AC_DEFUN([_LT_PROG_F77])])
     8446m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
     8447m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
    79878448
    79888449# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
  • trunk/autoconf/config.guess

    r319 r321  
    22# Attempt to guess a canonical system name.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
    55#   Free Software Foundation, Inc.
    66
    7 timestamp='2009-12-30'
     7timestamp='2009-11-20'
    88
    99# This file is free software; you can redistribute it and/or modify it
     
    5757
    5858Originally written by Per Bothner.
    59 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    60 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
    61 Software Foundation, Inc.
     59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
     602002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    6261
    6362This is free software; see the source for copying conditions.  There is NO
     
    140139UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
    141140UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
     141
     142case "${UNAME_MACHINE}" in
     143    i?86)
     144        test -z "$VENDOR" && VENDOR=pc
     145        ;;
     146    *)
     147        test -z "$VENDOR" && VENDOR=unknown
     148        ;;
     149esac
     150test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
    142151
    143152# Note: order is significant - the case branches are not exclusive.
     
    205214    *:OpenBSD:*:*)
    206215        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
    207         echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
     216        echo ${UNAME_MACHINE_ARCH}-${VENDOR}-openbsd${UNAME_RELEASE}
    208217        exit ;;
    209218    *:ekkoBSD:*:*)
    210         echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
     219        echo ${UNAME_MACHINE}-${VENDOR}-ekkobsd${UNAME_RELEASE}
    211220        exit ;;
    212221    *:SolidBSD:*:*)
    213         echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
     222        echo ${UNAME_MACHINE}-${VENDOR}-solidbsd${UNAME_RELEASE}
    214223        exit ;;
    215224    macppc:MirBSD:*:*)
    216         echo powerpc-unknown-mirbsd${UNAME_RELEASE}
     225        echo powerpc-${VENDOR}-mirbsd${UNAME_RELEASE}
    217226        exit ;;
    218227    *:MirBSD:*:*)
    219         echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     228        echo ${UNAME_MACHINE}-${VENDOR}-mirbsd${UNAME_RELEASE}
    220229        exit ;;
    221230    alpha:OSF1:*:*)
     
    282291        exit ;;
    283292    Amiga*:UNIX_System_V:4.0:*)
    284         echo m68k-unknown-sysv4
     293        echo m68k-${VENDOR}-sysv4
    285294        exit ;;
    286295    *:[Aa]miga[Oo][Ss]:*:*)
    287         echo ${UNAME_MACHINE}-unknown-amigaos
     296        echo ${UNAME_MACHINE}-${VENDOR}-amigaos
    288297        exit ;;
    289298    *:[Mm]orph[Oo][Ss]:*:*)
    290         echo ${UNAME_MACHINE}-unknown-morphos
     299        echo ${UNAME_MACHINE}-${VENDOR}-morphos
    291300        exit ;;
    292301    *:OS/390:*:*)
     
    303312        exit ;;
    304313    arm:riscos:*:*|arm:RISCOS:*:*)
    305         echo arm-unknown-riscos
     314        echo arm-${VENDOR}-riscos
    306315        exit ;;
    307316    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
     
    411420        exit ;;
    412421    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    413         echo m68k-unknown-mint${UNAME_RELEASE}
     422        echo m68k-${VENDOR}-mint${UNAME_RELEASE}
    414423        exit ;;
    415424    m68k:machten:*:*)
     
    722731    i*86:OSF1:*:*)
    723732        if [ -x /usr/sbin/sysversion ] ; then
    724             echo ${UNAME_MACHINE}-unknown-osf1mk
     733            echo ${UNAME_MACHINE}-${VENDOR}-osf1mk
    725734        else
    726             echo ${UNAME_MACHINE}-unknown-osf1
     735            echo ${UNAME_MACHINE}-${VENDOR}-osf1
    727736        fi
    728737        exit ;;
     
    784793        exit ;;
    785794    sparc*:BSD/OS:*:*)
    786         echo sparc-unknown-bsdi${UNAME_RELEASE}
     795        echo sparc-${VENDOR}-bsdi${UNAME_RELEASE}
    787796        exit ;;
    788797    *:BSD/OS:*:*)
    789         echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
     798        echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE}
    790799        exit ;;
    791800    *:FreeBSD:*:*)
    792801        case ${UNAME_MACHINE} in
    793802            pc98)
    794                 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     803                echo i386-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    795804            amd64)
    796                 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     805                echo x86_64-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    797806            *)
    798                 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     807                echo ${UNAME_MACHINE}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    799808        esac
    800809        exit ;;
     
    818827                exit ;;
    819828            authenticamd | genuineintel | EM64T)
    820                 echo x86_64-unknown-interix${UNAME_RELEASE}
     829                echo x86_64-${VENDOR}-interix${UNAME_RELEASE}
    821830                exit ;;
    822831            IA64)
    823                 echo ia64-unknown-interix${UNAME_RELEASE}
     832                echo ia64-${VENDOR}-interix${UNAME_RELEASE}
    824833                exit ;;
    825834        esac ;;
     
    840849        exit ;;
    841850    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
    842         echo x86_64-unknown-cygwin
     851        echo x86_64-${VENDOR}-cygwin
    843852        exit ;;
    844853    p*:CYGWIN*:*)
    845         echo powerpcle-unknown-cygwin
     854        echo powerpcle-${VENDOR}-cygwin
    846855        exit ;;
    847856    prep*:SunOS:5.*:*)
    848         echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     857        echo powerpcle-${VENDOR}-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    849858        exit ;;
    850859    *:GNU:*:*)
    851860        # the GNU system
    852         echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
     861        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    853862        exit ;;
    854863    *:GNU/*:*:*)
    855864        # other systems with GNU libc and userland
    856         echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
     865        echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    857866        exit ;;
    858867    i*86:Minix:*:*)
     
    871880        objdump --private-headers /bin/sh | grep -q ld.so.1
    872881        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    873         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
     882        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
    874883        exit ;;
    875884    arm*:Linux:*:*)
     
    878887            | grep -q __ARM_EABI__
    879888        then
    880             echo ${UNAME_MACHINE}-unknown-linux-gnu
     889            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
    881890        else
    882             echo ${UNAME_MACHINE}-unknown-linux-gnueabi
     891            echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
    883892        fi
    884893        exit ;;
    885894    avr32*:Linux:*:*)
    886         echo ${UNAME_MACHINE}-unknown-linux-gnu
     895        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
    887896        exit ;;
    888897    cris:Linux:*:*)
     
    893902        exit ;;
    894903    frv:Linux:*:*)
    895         echo frv-unknown-linux-gnu
     904        echo frv-${VENDOR}-linux-gnu
    896905        exit ;;
    897906    i*86:Linux:*:*)
     
    904913EOF
    905914        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
    906         echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
     915        echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
    907916        exit ;;
    908917    ia64:Linux:*:*)
    909         echo ${UNAME_MACHINE}-unknown-linux-gnu
     918        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
    910919        exit ;;
    911920    m32r*:Linux:*:*)
    912         echo ${UNAME_MACHINE}-unknown-linux-gnu
     921        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
    913922        exit ;;
    914923    m68*:Linux:*:*)
    915         echo ${UNAME_MACHINE}-unknown-linux-gnu
     924        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
    916925        exit ;;
    917926    mips:Linux:*:* | mips64:Linux:*:*)
     
    932941EOF
    933942        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
    934         test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
     943        test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
    935944        ;;
    936945    or32:Linux:*:*)
    937         echo or32-unknown-linux-gnu
     946        echo or32-${VENDOR}-linux-gnu
    938947        exit ;;
    939948    padre:Linux:*:*)
    940         echo sparc-unknown-linux-gnu
     949        echo sparc-${VENDOR}-linux-gnu
    941950        exit ;;
    942951    parisc64:Linux:*:* | hppa64:Linux:*:*)
    943         echo hppa64-unknown-linux-gnu
     952        echo hppa64-${VENDOR}-linux-gnu
    944953        exit ;;
    945954    parisc:Linux:*:* | hppa:Linux:*:*)
    946955        # Look for CPU level
    947956        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    948           PA7*) echo hppa1.1-unknown-linux-gnu ;;
    949           PA8*) echo hppa2.0-unknown-linux-gnu ;;
    950           *)    echo hppa-unknown-linux-gnu ;;
     957          PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
     958          PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
     959          *)    echo hppa-${VENDOR}-linux-gnu ;;
    951960        esac
    952961        exit ;;
    953962    ppc64:Linux:*:*)
    954         echo powerpc64-unknown-linux-gnu
     963        echo powerpc64-${VENDOR}-linux-gnu
    955964        exit ;;
    956965    ppc:Linux:*:*)
    957         echo powerpc-unknown-linux-gnu
     966        echo powerpc-${VENDOR}-linux-gnu
    958967        exit ;;
    959968    s390:Linux:*:* | s390x:Linux:*:*)
     
    961970        exit ;;
    962971    sh64*:Linux:*:*)
    963         echo ${UNAME_MACHINE}-unknown-linux-gnu
     972        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
    964973        exit ;;
    965974    sh*:Linux:*:*)
    966         echo ${UNAME_MACHINE}-unknown-linux-gnu
     975        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
    967976        exit ;;
    968977    sparc:Linux:*:* | sparc64:Linux:*:*)
    969         echo ${UNAME_MACHINE}-unknown-linux-gnu
     978        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
    970979        exit ;;
    971980    vax:Linux:*:*)
     
    973982        exit ;;
    974983    x86_64:Linux:*:*)
    975         echo x86_64-unknown-linux-gnu
     984        echo x86_64-${VENDOR}-linux-gnu
    976985        exit ;;
    977986    xtensa*:Linux:*:*)
    978         echo ${UNAME_MACHINE}-unknown-linux-gnu
     987        echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
    979988        exit ;;
    980989    i*86:DYNIX/ptx:4*:*)
     
    9981007        exit ;;
    9991008    i*86:XTS-300:*:STOP)
    1000         echo ${UNAME_MACHINE}-unknown-stop
     1009        echo ${UNAME_MACHINE}-${VENDOR}-stop
    10011010        exit ;;
    10021011    i*86:atheos:*:*)
    1003         echo ${UNAME_MACHINE}-unknown-atheos
     1012        echo ${UNAME_MACHINE}-${VENDOR}-atheos
    10041013        exit ;;
    10051014    i*86:syllable:*:*)
     
    10071016        exit ;;
    10081017    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
    1009         echo i386-unknown-lynxos${UNAME_RELEASE}
     1018        echo i386-${VENDOR}-lynxos${UNAME_RELEASE}
    10101019        exit ;;
    10111020    i*86:*DOS:*:*)
     
    10271036            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
    10281037        esac
    1029         echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
     1038        echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
    10301039        exit ;;
    10311040    i*86:*:3.2:*)
     
    10661075          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
    10671076        else # Add other i860-SVR4 vendors below as they are discovered.
    1068           echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
     1077          echo i860-${VENDOR}-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
    10691078        fi
    10701079        exit ;;
     
    11031112            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    11041113    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    1105         echo m68k-unknown-lynxos${UNAME_RELEASE}
     1114        echo m68k-${VENDOR}-lynxos${UNAME_RELEASE}
    11061115        exit ;;
    11071116    mc68030:UNIX_System_V:4.*:*)
     
    11091118        exit ;;
    11101119    TSUNAMI:LynxOS:2.*:*)
    1111         echo sparc-unknown-lynxos${UNAME_RELEASE}
     1120        echo sparc-${VENDOR}-lynxos${UNAME_RELEASE}
    11121121        exit ;;
    11131122    rs6000:LynxOS:2.*:*)
    1114         echo rs6000-unknown-lynxos${UNAME_RELEASE}
     1123        echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE}
    11151124        exit ;;
    11161125    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
    1117         echo powerpc-unknown-lynxos${UNAME_RELEASE}
     1126        echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE}
    11181127        exit ;;
    11191128    SM[BE]S:UNIX_SV:*:*)
     
    11651174                echo mips-nec-sysv${UNAME_RELEASE}
    11661175        else
    1167                 echo mips-unknown-sysv${UNAME_RELEASE}
     1176                echo mips-${VENDOR}-sysv${UNAME_RELEASE}
    11681177        fi
    11691178        exit ;;
     
    12561265            UNAME_MACHINE="$cputype"
    12571266        fi
    1258         echo ${UNAME_MACHINE}-unknown-plan9
     1267        echo ${UNAME_MACHINE}-${VENDOR}-plan9
    12591268        exit ;;
    12601269    *:TOPS-10:*:*)
    1261         echo pdp10-unknown-tops10
     1270        echo pdp10-${VENDOR}-tops10
    12621271        exit ;;
    12631272    *:TENEX:*:*)
    1264         echo pdp10-unknown-tenex
     1273        echo pdp10-${VENDOR}-tenex
    12651274        exit ;;
    12661275    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
     
    12711280        exit ;;
    12721281    *:TOPS-20:*:*)
    1273         echo pdp10-unknown-tops20
     1282        echo pdp10-${VENDOR}-tops20
    12741283        exit ;;
    12751284    *:ITS:*:*)
    1276         echo pdp10-unknown-its
     1285        echo pdp10-${VENDOR}-its
    12771286        exit ;;
    12781287    SEI:*:*:SEIUX)
     
    12801289        exit ;;
    12811290    *:DragonFly:*:*)
    1282         echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     1291        echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    12831292        exit ;;
    12841293    *:*VMS:*:*)
  • trunk/autoconf/config.sub

    r319 r321  
    22# Configuration validation subroutine script.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
    55#   Free Software Foundation, Inc.
    66
    7 timestamp='2010-01-22'
     7timestamp='2009-11-20'
    88
    99# This file is (in principle) common to ALL GNU software.
     
    7676GNU config.sub ($timestamp)
    7777
    78 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
    79 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
    80 Software Foundation, Inc.
     78Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
     792002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
    8180
    8281This is free software; see the source for copying conditions.  There is NO
     
    382381        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
    383382        | tahoe-* | thumb-* \
    384         | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
    385         | tile-* | tilegx-* \
     383        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
    386384        | tron-* \
    387385        | ubicom32-* \
     
    10871085                basic_machine=tic6x-unknown
    10881086                os=-coff
    1089                 ;;
    1090         # This must be matched before tile*.
    1091         tilegx*)
    1092                 basic_machine=tilegx-unknown
    1093                 os=-linux-gnu
    10941087                ;;
    10951088        tile*)
     
    14431436                os=-dicos
    14441437                ;;
    1445         -nacl*)
    1446                 ;;
    14471438        -none)
    14481439                ;;
  • trunk/autoconf/ltmain.sh

    r319 r321  
    1 # Generated from ltmain.m4sh.
    2 
    3 # ltmain.sh (GNU libtool) 2.2.6b
     1
     2# libtool (GNU libtool) 2.4
    43# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    54
    6 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
     5# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
     6# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
    77# This is free software; see the source for copying conditions.  There is NO
    88# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     
    3333# Provide generalized library-building support services.
    3434#
    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 #     --tag=TAG            use configuration variables from tag TAG
    43 # -v, --verbose            print informational messages (default)
    44 #     --version            print version information
    45 # -h, --help               print short or long help message
     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#       --tag=TAG            use configuration variables from tag TAG
     45#   -v, --verbose            print more informational messages than default
     46#       --no-verbose         don't print the extra informational messages
     47#       --version            print version information
     48#   -h, --help, --help-all   print short, long, or detailed help message
    4649#
    4750# MODE must be one of the following:
    4851#
    49 #       clean              remove files from the build directory
    50 #       compile            compile a source file into a libtool object
    51 #       execute            automatically set library path, then run a program
    52 #       finish             complete the installation of libtool libraries
    53 #       install            install libraries or executables
    54 #       link               create a library or an executable
    55 #       uninstall          remove libraries from an installed directory
     52#         clean              remove files from the build directory
     53#         compile            compile a source file into a libtool object
     54#         execute            automatically set library path, then run a program
     55#         finish             complete the installation of libtool libraries
     56#         install            install libraries or executables
     57#         link               create a library or an executable
     58#         uninstall          remove libraries from an installed directory
    5659#
    57 # MODE-ARGS vary depending on the MODE.
     60# MODE-ARGS vary depending on the MODE.  When passed as first option,
     61# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
    5862# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
    5963#
     
    6165# include the following information:
    6266#
    63 #       host-triplet:   $host
    64 #       shell:          $SHELL
    65 #       compiler:               $LTCC
    66 #       compiler flags:         $LTCFLAGS
    67 #       linker:         $LD (gnu? $with_gnu_ld)
    68 #       $progname:              (GNU libtool) 2.2.6b Debian-2.2.6b-2
    69 #       automake:               $automake_version
    70 #       autoconf:               $autoconf_version
     67#         host-triplet: $host
     68#         shell:                $SHELL
     69#         compiler:             $LTCC
     70#         compiler flags:               $LTCFLAGS
     71#         linker:               $LD (gnu? $with_gnu_ld)
     72#         $progname:    (GNU libtool) 2.4
     73#         automake:     $automake_version
     74#         autoconf:     $autoconf_version
    7175#
    7276# Report bugs to <bug-libtool@gnu.org>.
    73 
    74 PROGRAM=ltmain.sh
     77# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
     78# General help using GNU software: <http://www.gnu.org/gethelp/>.
     79
     80PROGRAM=libtool
    7581PACKAGE=libtool
    76 VERSION="2.2.6b Debian-2.2.6b-2"
     82VERSION=2.4
    7783TIMESTAMP=""
    78 package_revision=1.3017
     84package_revision=1.3293
    7985
    8086# Be Bourne compatible
     
    9298DUALCASE=1; export DUALCASE # for MKS sh
    9399
     100# A function that is used when there is no print builtin or printf.
     101func_fallback_echo ()
     102{
     103  eval 'cat <<_LTECHO_EOF
     104$1
     105_LTECHO_EOF'
     106}
     107
    94108# NLS nuisances: We save the old values to restore during execute mode.
    95 # Only set LANG and LC_ALL to C if already set.
    96 # These must not be set unconditionally because not all systems understand
    97 # e.g. LANG=C (notably SCO).
    98109lt_user_locale=
    99110lt_safe_locale=
     
    108119        fi"
    109120done
     121LC_ALL=C
     122LANGUAGE=C
     123export LANGUAGE LC_ALL
    110124
    111125$lt_unset CDPATH
    112126
    113127
     128# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
     129# is ksh but when the shell is invoked as "sh" and the current value of
     130# the _XPG environment variable is not equal to 1 (one), the special
     131# positional parameter $0, within a function call, is the name of the
     132# function.
     133progpath="$0"
    114134
    115135
    116136
    117137: ${CP="cp -f"}
    118 : ${ECHO="echo"}
    119 : ${EGREP="/bin/grep -E"}
    120 : ${FGREP="/bin/grep -F"}
    121 : ${GREP="/bin/grep"}
     138test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
     139: ${EGREP="grep -E"}
     140: ${FGREP="grep -F"}
     141: ${GREP="grep"}
    122142: ${LN_S="ln -s"}
    123143: ${MAKE="make"}
     
    125145: ${MV="mv -f"}
    126146: ${RM="rm -f"}
    127 : ${SED="/bin/sed"}
     147: ${SED="sed"}
    128148: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
    129149: ${Xsed="$SED -e 1s/^X//"}
     
    144164dirname="s,/[^/]*$,,"
    145165basename="s,^.*/,,"
     166
     167# func_dirname file append nondir_replacement
     168# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
     169# otherwise set result to NONDIR_REPLACEMENT.
     170func_dirname ()
     171{
     172    func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
     173    if test "X$func_dirname_result" = "X${1}"; then
     174      func_dirname_result="${3}"
     175    else
     176      func_dirname_result="$func_dirname_result${2}"
     177    fi
     178} # func_dirname may be replaced by extended shell implementation
     179
     180
     181# func_basename file
     182func_basename ()
     183{
     184    func_basename_result=`$ECHO "${1}" | $SED "$basename"`
     185} # func_basename may be replaced by extended shell implementation
     186
    146187
    147188# func_dirname_and_basename file append nondir_replacement
     
    159200func_dirname_and_basename ()
    160201{
    161   # Extract subdirectory from the argument.
    162   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
    163   if test "X$func_dirname_result" = "X${1}"; then
    164     func_dirname_result="${3}"
    165   else
    166     func_dirname_result="$func_dirname_result${2}"
     202    # Extract subdirectory from the argument.
     203    func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
     204    if test "X$func_dirname_result" = "X${1}"; then
     205      func_dirname_result="${3}"
     206    else
     207      func_dirname_result="$func_dirname_result${2}"
     208    fi
     209    func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
     210} # func_dirname_and_basename may be replaced by extended shell implementation
     211
     212
     213# func_stripname prefix suffix name
     214# strip PREFIX and SUFFIX off of NAME.
     215# PREFIX and SUFFIX must not contain globbing or regex special
     216# characters, hashes, percent signs, but SUFFIX may contain a leading
     217# dot (in which case that matches only a dot).
     218# func_strip_suffix prefix name
     219func_stripname ()
     220{
     221    case ${2} in
     222      .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     223      *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
     224    esac
     225} # func_stripname may be replaced by extended shell implementation
     226
     227
     228# These SED scripts presuppose an absolute path with a trailing slash.
     229pathcar='s,^/\([^/]*\).*$,\1,'
     230pathcdr='s,^/[^/]*,,'
     231removedotparts=':dotsl
     232                s@/\./@/@g
     233                t dotsl
     234                s,/\.$,/,'
     235collapseslashes='s@/\{1,\}@/@g'
     236finalslash='s,/*$,/,'
     237
     238# func_normal_abspath PATH
     239# Remove doubled-up and trailing slashes, "." path components,
     240# and cancel out any ".." path components in PATH after making
     241# it an absolute path.
     242#             value returned in "$func_normal_abspath_result"
     243func_normal_abspath ()
     244{
     245  # Start from root dir and reassemble the path.
     246  func_normal_abspath_result=
     247  func_normal_abspath_tpath=$1
     248  func_normal_abspath_altnamespace=
     249  case $func_normal_abspath_tpath in
     250    "")
     251      # Empty path, that just means $cwd.
     252      func_stripname '' '/' "`pwd`"
     253      func_normal_abspath_result=$func_stripname_result
     254      return
     255    ;;
     256    # The next three entries are used to spot a run of precisely
     257    # two leading slashes without using negated character classes;
     258    # we take advantage of case's first-match behaviour.
     259    ///*)
     260      # Unusual form of absolute path, do nothing.
     261    ;;
     262    //*)
     263      # Not necessarily an ordinary path; POSIX reserves leading '//'
     264      # and for example Cygwin uses it to access remote file shares
     265      # over CIFS/SMB, so we conserve a leading double slash if found.
     266      func_normal_abspath_altnamespace=/
     267    ;;
     268    /*)
     269      # Absolute path, do nothing.
     270    ;;
     271    *)
     272      # Relative path, prepend $cwd.
     273      func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
     274    ;;
     275  esac
     276  # Cancel out all the simple stuff to save iterations.  We also want
     277  # the path to end with a slash for ease of parsing, so make sure
     278  # there is one (and only one) here.
     279  func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
     280        -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
     281  while :; do
     282    # Processed it all yet?
     283    if test "$func_normal_abspath_tpath" = / ; then
     284      # If we ascended to the root using ".." the result may be empty now.
     285      if test -z "$func_normal_abspath_result" ; then
     286        func_normal_abspath_result=/
     287      fi
     288      break
     289    fi
     290    func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
     291        -e "$pathcar"`
     292    func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
     293        -e "$pathcdr"`
     294    # Figure out what to do with it
     295    case $func_normal_abspath_tcomponent in
     296      "")
     297        # Trailing empty path component, ignore it.
     298      ;;
     299      ..)
     300        # Parent dir; strip last assembled component from result.
     301        func_dirname "$func_normal_abspath_result"
     302        func_normal_abspath_result=$func_dirname_result
     303      ;;
     304      *)
     305        # Actual path component, append it.
     306        func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
     307      ;;
     308    esac
     309  done
     310  # Restore leading double-slash if one was found on entry.
     311  func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
     312}
     313
     314# func_relative_path SRCDIR DSTDIR
     315# generates a relative path from SRCDIR to DSTDIR, with a trailing
     316# slash if non-empty, suitable for immediately appending a filename
     317# without needing to append a separator.
     318#             value returned in "$func_relative_path_result"
     319func_relative_path ()
     320{
     321  func_relative_path_result=
     322  func_normal_abspath "$1"
     323  func_relative_path_tlibdir=$func_normal_abspath_result
     324  func_normal_abspath "$2"
     325  func_relative_path_tbindir=$func_normal_abspath_result
     326
     327  # Ascend the tree starting from libdir
     328  while :; do
     329    # check if we have found a prefix of bindir
     330    case $func_relative_path_tbindir in
     331      $func_relative_path_tlibdir)
     332        # found an exact match
     333        func_relative_path_tcancelled=
     334        break
     335        ;;
     336      $func_relative_path_tlibdir*)
     337        # found a matching prefix
     338        func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
     339        func_relative_path_tcancelled=$func_stripname_result
     340        if test -z "$func_relative_path_result"; then
     341          func_relative_path_result=.
     342        fi
     343        break
     344        ;;
     345      *)
     346        func_dirname $func_relative_path_tlibdir
     347        func_relative_path_tlibdir=${func_dirname_result}
     348        if test "x$func_relative_path_tlibdir" = x ; then
     349          # Have to descend all the way to the root!
     350          func_relative_path_result=../$func_relative_path_result
     351          func_relative_path_tcancelled=$func_relative_path_tbindir
     352          break
     353        fi
     354        func_relative_path_result=../$func_relative_path_result
     355        ;;
     356    esac
     357  done
     358
     359  # Now calculate path; take care to avoid doubling-up slashes.
     360  func_stripname '' '/' "$func_relative_path_result"
     361  func_relative_path_result=$func_stripname_result
     362  func_stripname '/' '/' "$func_relative_path_tcancelled"
     363  if test "x$func_stripname_result" != x ; then
     364    func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
    167365  fi
    168   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
    169 }
    170 
    171 # Generated shell functions inserted here.
    172 
    173 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
    174 # is ksh but when the shell is invoked as "sh" and the current value of
    175 # the _XPG environment variable is not equal to 1 (one), the special
    176 # positional parameter $0, within a function call, is the name of the
    177 # function.
    178 progpath="$0"
     366
     367  # Normalisation. If bindir is libdir, return empty string,
     368  # else relative path ending with a slash; either way, target
     369  # file name can be directly appended.
     370  if test ! -z "$func_relative_path_result"; then
     371    func_stripname './' '' "$func_relative_path_result/"
     372    func_relative_path_result=$func_stripname_result
     373  fi
     374}
    179375
    180376# The name of this program:
    181 # In the unlikely event $progname began with a '-', it would play havoc with
    182 # func_echo (imagine progname=-n), so we prepend ./ in that case:
    183377func_dirname_and_basename "$progpath"
    184378progname=$func_basename_result
    185 case $progname in
    186   -*) progname=./$progname ;;
    187 esac
    188379
    189380# Make sure we have an absolute path for reexecution:
     
    216407double_quote_subst='s/\(["`\\]\)/\\\1/g'
    217408
     409# Sed substitution that turns a string into a regex matching for the
     410# string literally.
     411sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
     412
     413# Sed substitution that converts a w32 file name or path
     414# which contains forward slashes, into one that contains
     415# (escaped) backslashes.  A very naive implementation.
     416lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
     417
    218418# Re-`\' parameter expansions in output of double_quote_subst that were
    219419# `\'-ed in input to the same.  If an odd number of `\' preceded a '$'
     
    244444func_echo ()
    245445{
    246     $ECHO "$progname${mode+: }$mode: $*"
     446    $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
    247447}
    248448
     
    259459}
    260460
     461# func_echo_all arg...
     462# Invoke $ECHO with all args, space-separated.
     463func_echo_all ()
     464{
     465    $ECHO "$*"
     466}
     467
    261468# func_error arg...
    262469# Echo program name prefixed message to standard error.
    263470func_error ()
    264471{
    265     $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
     472    $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
    266473}
    267474
     
    270477func_warning ()
    271478{
    272     $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
     479    $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
    273480
    274481    # bash bug again:
     
    327534
    328535        # ...otherwise throw away the child directory and loop
    329         my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
     536        my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
    330537      done
    331       my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
     538      my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
    332539
    333540      save_mkdir_p_IFS="$IFS"; IFS=':'
     
    379586    fi
    380587
    381     $ECHO "X$my_tmpdir" | $Xsed
     588    $ECHO "$my_tmpdir"
    382589}
    383590
     
    393600    case $1 in
    394601      *[\\\`\"\$]*)
    395         func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
     602        func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
    396603      *)
    397604        func_quote_for_eval_unquoted_result="$1" ;;
     
    420627    case $1 in
    421628      *[\\\`\"]*)
    422         my_arg=`$ECHO "X$1" | $Xsed \
     629        my_arg=`$ECHO "$1" | $SED \
    423630            -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
    424631      *)
     
    489696}
    490697
    491 
    492 
     698# func_tr_sh
     699# Turn $1 into a string suitable for a shell variable name.
     700# Result is stored in $func_tr_sh_result.  All characters
     701# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
     702# if $1 begins with a digit, a '_' is prepended as well.
     703func_tr_sh ()
     704{
     705  case $1 in
     706  [0-9]* | *[!a-zA-Z0-9_]*)
     707    func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
     708    ;;
     709  * )
     710    func_tr_sh_result=$1
     711    ;;
     712  esac
     713}
    493714
    494715
     
    497718func_version ()
    498719{
    499     $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
     720    $opt_debug
     721
     722    $SED -n '/(C)/!b go
     723        :more
     724        /\./!{
     725          N
     726          s/\n# / /
     727          b more
     728        }
     729        :go
     730        /^# '$PROGRAM' (GNU /,/# warranty; / {
    500731        s/^# //
    501732        s/^# *$//
     
    510741func_usage ()
    511742{
    512     $SED -n '/^# Usage:/,/# -h/ {
     743    $opt_debug
     744
     745    $SED -n '/^# Usage:/,/^#  *.*--help/ {
    513746        s/^# //
    514747        s/^# *$//
     
    516749        p
    517750    }' < "$progpath"
    518     $ECHO
     751    echo
    519752    $ECHO "run \`$progname --help | more' for full usage"
    520753    exit $?
    521754}
    522755
    523 # func_help
    524 # Echo long help message to standard output and exit.
     756# func_help [NOEXIT]
     757# Echo long help message to standard output and exit,
     758# unless 'noexit' is passed as argument.
    525759func_help ()
    526760{
     761    $opt_debug
     762
    527763    $SED -n '/^# Usage:/,/# Report bugs to/ {
     764        :print
    528765        s/^# //
    529766        s/^# *$//
     
    538775        s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
    539776        p
    540      }' < "$progpath"
    541     exit $?
     777        d
     778     }
     779     /^# .* home page:/b print
     780     /^# General help using/b print
     781     ' < "$progpath"
     782    ret=$?
     783    if test -z "$1"; then
     784      exit $ret
     785    fi
    542786}
    543787
     
    547791func_missing_arg ()
    548792{
    549     func_error "missing argument for $1"
     793    $opt_debug
     794
     795    func_error "missing argument for $1."
    550796    exit_cmd=exit
    551797}
    552798
     799
     800# func_split_short_opt shortopt
     801# Set func_split_short_opt_name and func_split_short_opt_arg shell
     802# variables after splitting SHORTOPT after the 2nd character.
     803func_split_short_opt ()
     804{
     805    my_sed_short_opt='1s/^\(..\).*$/\1/;q'
     806    my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
     807
     808    func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
     809    func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
     810} # func_split_short_opt may be replaced by extended shell implementation
     811
     812
     813# func_split_long_opt longopt
     814# Set func_split_long_opt_name and func_split_long_opt_arg shell
     815# variables after splitting LONGOPT at the `=' sign.
     816func_split_long_opt ()
     817{
     818    my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
     819    my_sed_long_arg='1s/^--[^=]*=//'
     820
     821    func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
     822    func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
     823} # func_split_long_opt may be replaced by extended shell implementation
     824
    553825exit_cmd=:
    554826
     
    556828
    557829
    558 
    559 # Check that we have a working $ECHO.
    560 if test "X$1" = X--no-reexec; then
    561   # Discard the --no-reexec flag, and continue.
    562   shift
    563 elif test "X$1" = X--fallback-echo; then
    564   # Avoid inline document here, it may be left over
    565   :
    566 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
    567   # Yippee, $ECHO works!
    568   :
    569 else
    570   # Restart under the correct shell, and then maybe $ECHO will work.
    571   exec $SHELL "$progpath" --no-reexec ${1+"$@"}
    572 fi
    573 
    574 if test "X$1" = X--fallback-echo; then
    575   # used as fallback echo
    576   shift
    577   cat <<EOF
    578 $*
    579 EOF
    580   exit $EXIT_SUCCESS
    581 fi
    582830
    583831magic="%%%MAGIC variable%%%"
     
    585833
    586834# Global variables.
    587 # $mode is unset
    588835nonopt=
    589 execute_dlfiles=
    590836preserve_args=
    591837lo2o="s/\\.lo\$/.${objext}/"
     
    594840extracted_serial=0
    595841
    596 opt_dry_run=false
    597 opt_duplicate_deps=false
    598 opt_silent=false
    599 opt_debug=:
    600 
    601842# If this variable is set in any of the actions, the command in it
    602843# will be execed at the end.  This prevents here-documents from being
     
    604845exec_cmd=
    605846
     847# func_append var value
     848# Append VALUE to the end of shell variable VAR.
     849func_append ()
     850{
     851    eval "${1}=\$${1}\${2}"
     852} # func_append may be replaced by extended shell implementation
     853
     854# func_append_quoted var value
     855# Quote VALUE and append to the end of shell variable VAR, separated
     856# by a space.
     857func_append_quoted ()
     858{
     859    func_quote_for_eval "${2}"
     860    eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
     861} # func_append_quoted may be replaced by extended shell implementation
     862
     863
     864# func_arith arithmetic-term...
     865func_arith ()
     866{
     867    func_arith_result=`expr "${@}"`
     868} # func_arith may be replaced by extended shell implementation
     869
     870
     871# func_len string
     872# STRING may not start with a hyphen.
     873func_len ()
     874{
     875    func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
     876} # func_len may be replaced by extended shell implementation
     877
     878
     879# func_lo2o object
     880func_lo2o ()
     881{
     882    func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
     883} # func_lo2o may be replaced by extended shell implementation
     884
     885
     886# func_xform libobj-or-source
     887func_xform ()
     888{
     889    func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
     890} # func_xform may be replaced by extended shell implementation
     891
     892
    606893# func_fatal_configuration arg...
    607894# Echo program name prefixed message to standard error, followed by
     
    637924func_features ()
    638925{
    639     $ECHO "host: $host"
     926    echo "host: $host"
    640927    if test "$build_libtool_libs" = yes; then
    641       $ECHO "enable shared libraries"
     928      echo "enable shared libraries"
    642929    else
    643       $ECHO "disable shared libraries"
     930      echo "disable shared libraries"
    644931    fi
    645932    if test "$build_old_libs" = yes; then
    646       $ECHO "enable static libraries"
     933      echo "enable static libraries"
    647934    else
    648       $ECHO "disable static libraries"
     935      echo "disable static libraries"
    649936    fi
    650937
     
    691978      ;;
    692979  esac
    693 }
    694 
    695 # Parse options once, thoroughly.  This comes as soon as possible in
    696 # the script to make things like `libtool --version' happen quickly.
    697 {
    698 
    699   # Shorthand for --mode=foo, only valid as the first argument
    700   case $1 in
    701   clean|clea|cle|cl)
    702     shift; set dummy --mode clean ${1+"$@"}; shift
    703     ;;
    704   compile|compil|compi|comp|com|co|c)
    705     shift; set dummy --mode compile ${1+"$@"}; shift
    706     ;;
    707   execute|execut|execu|exec|exe|ex|e)
    708     shift; set dummy --mode execute ${1+"$@"}; shift
    709     ;;
    710   finish|finis|fini|fin|fi|f)
    711     shift; set dummy --mode finish ${1+"$@"}; shift
    712     ;;
    713   install|instal|insta|inst|ins|in|i)
    714     shift; set dummy --mode install ${1+"$@"}; shift
    715     ;;
    716   link|lin|li|l)
    717     shift; set dummy --mode link ${1+"$@"}; shift
    718     ;;
    719   uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
    720     shift; set dummy --mode uninstall ${1+"$@"}; shift
    721     ;;
    722   esac
    723 
    724   # Parse non-mode specific arguments:
    725   while test "$#" -gt 0; do
    726     opt="$1"
    727     shift
    728 
    729     case $opt in
    730       --config)         func_config                                     ;;
    731 
    732       --debug)          preserve_args="$preserve_args $opt"
    733                         func_echo "enabling shell trace mode"
    734                         opt_debug='set -x'
    735                         $opt_debug
    736                         ;;
    737 
    738       -dlopen)          test "$#" -eq 0 && func_missing_arg "$opt" && break
    739                         execute_dlfiles="$execute_dlfiles $1"
    740                         shift
    741                         ;;
    742 
    743       --dry-run | -n)   opt_dry_run=:                                   ;;
    744       --features)       func_features                                   ;;
    745       --finish)         mode="finish"                                   ;;
    746 
    747       --mode)           test "$#" -eq 0 && func_missing_arg "$opt" && break
    748                         case $1 in
    749                           # Valid mode arguments:
    750                           clean)        ;;
    751                           compile)      ;;
    752                           execute)      ;;
    753                           finish)       ;;
    754                           install)      ;;
    755                           link)         ;;
    756                           relink)       ;;
    757                           uninstall)    ;;
    758 
    759                           # Catch anything else as an error
    760                           *) func_error "invalid argument for $opt"
    761                              exit_cmd=exit
    762                              break
    763                              ;;
    764                         esac
    765 
    766                         mode="$1"
    767                         shift
    768                         ;;
    769 
    770       --preserve-dup-deps)
    771                         opt_duplicate_deps=:                            ;;
    772 
    773       --quiet|--silent) preserve_args="$preserve_args $opt"
    774                         opt_silent=:
    775                         ;;
    776 
    777       --verbose| -v)    preserve_args="$preserve_args $opt"
    778                         opt_silent=false
    779                         ;;
    780 
    781       --tag)            test "$#" -eq 0 && func_missing_arg "$opt" && break
    782                         preserve_args="$preserve_args $opt $1"
    783                         func_enable_tag "$1"    # tagname is set here
    784                         shift
    785                         ;;
    786 
    787       # Separate optargs to long options:
    788       -dlopen=*|--mode=*|--tag=*)
    789                         func_opt_split "$opt"
    790                         set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
    791                         shift
    792                         ;;
    793 
    794       -\?|-h)           func_usage                                      ;;
    795       --help)           opt_help=:                                      ;;
    796       --version)        func_version                                    ;;
    797 
    798       -*)               func_fatal_help "unrecognized option \`$opt'"   ;;
    799 
    800       *)                nonopt="$opt"
    801                         break
    802                         ;;
    803     esac
    804   done
    805 
    806 
    807   case $host in
    808     *cygwin* | *mingw* | *pw32* | *cegcc*)
    809       # don't eliminate duplications in $postdeps and $predeps
    810       opt_duplicate_compiler_generated_deps=:
    811       ;;
    812     *)
    813       opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
    814       ;;
    815   esac
    816 
    817   # Having warned about all mis-specified options, bail out if
    818   # anything was wrong.
    819   $exit_cmd $EXIT_FAILURE
    820980}
    821981
     
    8561016
    8571017
     1018# Shorthand for --mode=foo, only valid as the first argument
     1019case $1 in
     1020clean|clea|cle|cl)
     1021  shift; set dummy --mode clean ${1+"$@"}; shift
     1022  ;;
     1023compile|compil|compi|comp|com|co|c)
     1024  shift; set dummy --mode compile ${1+"$@"}; shift
     1025  ;;
     1026execute|execut|execu|exec|exe|ex|e)
     1027  shift; set dummy --mode execute ${1+"$@"}; shift
     1028  ;;
     1029finish|finis|fini|fin|fi|f)
     1030  shift; set dummy --mode finish ${1+"$@"}; shift
     1031  ;;
     1032install|instal|insta|inst|ins|in|i)
     1033  shift; set dummy --mode install ${1+"$@"}; shift
     1034  ;;
     1035link|lin|li|l)
     1036  shift; set dummy --mode link ${1+"$@"}; shift
     1037  ;;
     1038uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
     1039  shift; set dummy --mode uninstall ${1+"$@"}; shift
     1040  ;;
     1041esac
     1042
     1043
     1044
     1045# Option defaults:
     1046opt_debug=:
     1047opt_dry_run=false
     1048opt_config=false
     1049opt_preserve_dup_deps=false
     1050opt_features=false
     1051opt_finish=false
     1052opt_help=false
     1053opt_help_all=false
     1054opt_silent=:
     1055opt_verbose=:
     1056opt_silent=false
     1057opt_verbose=false
     1058
     1059
     1060# Parse options once, thoroughly.  This comes as soon as possible in the
     1061# script to make things like `--version' happen as quickly as we can.
     1062{
     1063  # this just eases exit handling
     1064  while test $# -gt 0; do
     1065    opt="$1"
     1066    shift
     1067    case $opt in
     1068      --debug|-x)       opt_debug='set -x'
     1069                        func_echo "enabling shell trace mode"
     1070                        $opt_debug
     1071                        ;;
     1072      --dry-run|--dryrun|-n)
     1073                        opt_dry_run=:
     1074                        ;;
     1075      --config)
     1076                        opt_config=:
     1077func_config
     1078                        ;;
     1079      --dlopen|-dlopen)
     1080                        optarg="$1"
     1081                        opt_dlopen="${opt_dlopen+$opt_dlopen
     1082}$optarg"
     1083                        shift
     1084                        ;;
     1085      --preserve-dup-deps)
     1086                        opt_preserve_dup_deps=:
     1087                        ;;
     1088      --features)
     1089                        opt_features=:
     1090func_features
     1091                        ;;
     1092      --finish)
     1093                        opt_finish=:
     1094set dummy --mode finish ${1+"$@"}; shift
     1095                        ;;
     1096      --help)
     1097                        opt_help=:
     1098                        ;;
     1099      --help-all)
     1100                        opt_help_all=:
     1101opt_help=': help-all'
     1102                        ;;
     1103      --mode)
     1104                        test $# = 0 && func_missing_arg $opt && break
     1105                        optarg="$1"
     1106                        opt_mode="$optarg"
     1107case $optarg in
     1108  # Valid mode arguments:
     1109  clean|compile|execute|finish|install|link|relink|uninstall) ;;
     1110
     1111  # Catch anything else as an error
     1112  *) func_error "invalid argument for $opt"
     1113     exit_cmd=exit
     1114     break
     1115     ;;
     1116esac
     1117                        shift
     1118                        ;;
     1119      --no-silent|--no-quiet)
     1120                        opt_silent=false
     1121func_append preserve_args " $opt"
     1122                        ;;
     1123      --no-verbose)
     1124                        opt_verbose=false
     1125func_append preserve_args " $opt"
     1126                        ;;
     1127      --silent|--quiet)
     1128                        opt_silent=:
     1129func_append preserve_args " $opt"
     1130        opt_verbose=false
     1131                        ;;
     1132      --verbose|-v)
     1133                        opt_verbose=:
     1134func_append preserve_args " $opt"
     1135opt_silent=false
     1136                        ;;
     1137      --tag)
     1138                        test $# = 0 && func_missing_arg $opt && break
     1139                        optarg="$1"
     1140                        opt_tag="$optarg"
     1141func_append preserve_args " $opt $optarg"
     1142func_enable_tag "$optarg"
     1143                        shift
     1144                        ;;
     1145
     1146      -\?|-h)           func_usage                              ;;
     1147      --help)           func_help                               ;;
     1148      --version)        func_version                            ;;