~ubuntu-branches/ubuntu/quantal/indicator-session/quantal

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher, Ken VanDine
  • Date: 2012-02-14 18:49:02 UTC
  • mfrom: (1.1.46)
  • Revision ID: package-import@ubuntu.com-20120214184902-uf9zw55ys3x2v7za
Tags: 0.3.91-0ubuntu1

* Backport "Don't lock the session when switching to another one"
  work from Robert Ancell, the screen locking is already done by 
  consolekit and enforcing it there is problematic to i.e use the 
  lightdm greeter as a lock screen (lp: #878836)
* debian/control:
  - recommends python-aptdaemon.pkcompat so packagekit doesn't get installed
* debian/source/format:
  - use v1, v3 doesn't play nicely with vcs backports

[ Ken VanDine ]
* New upstream release. (lp: #903756)
* debian/control
  - added new build depends on libpackagekit-glib2-dev

Show diffs side-by-side

added added

removed removed

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