~ubuntu-branches/ubuntu/oneiric/indicator-sound/oneiric

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-06-28 10:51:51 UTC
  • mfrom: (67.1.31 indicator-sound-ubuntu)
  • Revision ID: james.westby@ubuntu.com-20110628105151-y3r7g5b2rvlll3lb
Tags: 0.7.2-0ubuntu1
* New upstream release.
  - "Sound Preferences..." should be "Sound Settings" (LP: #785571)
  - Not obvious what track info menu item does (LP: #699899)
* debian/patches/lp_750823.patch
  - Dropped patch, merged upstream
* debian/patches/gtk3_define.patch
  - Wrap another gtk3 block in an ifdef
* debian/control
  - Updated standards version to 3.9.2
  - Cleaned up description to quiet lintian
  - Added quilt build dep

Show diffs side-by-side

added added

removed removed

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